Updated on 2026-08-14
This commit is contained in:
commit
fccb0e8347
17 changed files with 117 additions and 107 deletions
|
|
@ -1,18 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:tools="http://schemas.android.com/tools"
|
||||
package="com.tangem.wallet">
|
||||
|
||||
|
||||
<application
|
||||
tools:ignore="GoogleAppIndexingWarning">
|
||||
|
||||
<!-- <provider-->
|
||||
<!-- android:name="com.tangem.data.LogFileProvider"-->
|
||||
<!-- android:authorities="@string/log_file_provider_authorities"-->
|
||||
<!-- android:enabled="true"-->
|
||||
<!-- android:exported="false"-->
|
||||
<!-- android:grantUriPermissions="true" />-->
|
||||
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<string name="tangem_app_name">DebugTangem</string>
|
||||
<string name="tangem_app_name" translatable="false">DebugTangem</string>
|
||||
|
||||
</resources>
|
||||
|
|
|
|||
9
app/src/debug/res/xml/network_security_config.xml
Normal file
9
app/src/debug/res/xml/network_security_config.xml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<network-security-config>
|
||||
<base-config cleartextTrafficPermitted="true">
|
||||
<trust-anchors>
|
||||
<certificates src="user" />
|
||||
<certificates src="system" />
|
||||
</trust-anchors>
|
||||
</base-config>
|
||||
</network-security-config>
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:tools="http://schemas.android.com/tools"
|
||||
package="com.tangem.wallet">
|
||||
|
||||
|
||||
<application
|
||||
tools:ignore="GoogleAppIndexingWarning">
|
||||
|
||||
<!-- <provider-->
|
||||
<!-- android:name="com.tangem.data.LogFileProvider"-->
|
||||
<!-- android:authorities="@string/log_file_provider_authorities"-->
|
||||
<!-- android:enabled="true"-->
|
||||
<!-- android:exported="false"-->
|
||||
<!-- android:grantUriPermissions="true" />-->
|
||||
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<string name="tangem_app_name">BetaTangem</string>
|
||||
|
||||
</resources>
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<string name="tangem_app_name">BetaTangem</string>
|
||||
|
||||
</resources>
|
||||
6
app/src/external/res/values-ru/strings.xml
vendored
Normal file
6
app/src/external/res/values-ru/strings.xml
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<string name="tangem_app_name" translatable="false">ExternalTangem</string>
|
||||
|
||||
</resources>
|
||||
6
app/src/external/res/values/strings.xml
vendored
Normal file
6
app/src/external/res/values/strings.xml
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<string name="tangem_app_name" translatable="false">ExternalTangem</string>
|
||||
|
||||
</resources>
|
||||
6
app/src/internal/res/values-ru/strings.xml
Normal file
6
app/src/internal/res/values-ru/strings.xml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<string name="tangem_app_name" translatable="false">InternalTangem</string>
|
||||
|
||||
</resources>
|
||||
6
app/src/internal/res/values/strings.xml
Normal file
6
app/src/internal/res/values/strings.xml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<string name="tangem_app_name" translatable="false">InternalTangem</string>
|
||||
|
||||
</resources>
|
||||
9
app/src/internal/res/xml/network_security_config.xml
Normal file
9
app/src/internal/res/xml/network_security_config.xml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<network-security-config>
|
||||
<base-config cleartextTrafficPermitted="true">
|
||||
<trust-anchors>
|
||||
<certificates src="user" />
|
||||
<certificates src="system" />
|
||||
</trust-anchors>
|
||||
</base-config>
|
||||
</network-security-config>
|
||||
|
|
@ -1 +1 @@
|
|||
Subproject commit f5f6ac954894ef66331db8fe383b9773feb69ef4
|
||||
Subproject commit a5f541fa4380cf430144fab04e42b32b033ff548
|
||||
|
|
@ -1,12 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<network-security-config>
|
||||
<debug-overrides>
|
||||
<trust-anchors>
|
||||
<certificates src="user" />
|
||||
<certificates src="system" />
|
||||
</trust-anchors>
|
||||
</debug-overrides>
|
||||
|
||||
<domain-config>
|
||||
<domain includeSubdomains="true">api.tangem.com</domain>
|
||||
<trust-anchors>
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ platform :android do
|
|||
before_all do |lane, options|
|
||||
FileUtils.cp("../app/src/main/assets/tangem-app-config/android/google-services.json", "../app")
|
||||
end
|
||||
|
||||
|
||||
desc "Runs all the tests"
|
||||
lane :test do
|
||||
gradle(
|
||||
|
|
@ -44,11 +44,11 @@ platform :android do
|
|||
})
|
||||
end
|
||||
|
||||
desc "Build debug and release APKs"
|
||||
desc "Build internal and release APKs"
|
||||
lane :build do |options|
|
||||
gradle(
|
||||
task: "clean assemble",
|
||||
build_type: "Debug_beta",
|
||||
build_type: "Internal",
|
||||
properties: {
|
||||
'versionCode' => options[:versionCode],
|
||||
'versionName' => options[:versionName],
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ Build a signed release APK
|
|||
[bundle exec] fastlane android build
|
||||
```
|
||||
|
||||
Build debug and release APKs
|
||||
Build internal and release APKs
|
||||
|
||||
### android beta
|
||||
|
||||
|
|
|
|||
|
|
@ -72,7 +72,9 @@ private fun AndroidBuildType.configureBuildVariant(extension: AppExtension, buil
|
|||
isDebuggable = true
|
||||
isMinifyEnabled = false
|
||||
}
|
||||
BuildType.External -> {
|
||||
BuildType.Internal,
|
||||
BuildType.External,
|
||||
-> {
|
||||
initWith(extension.buildTypes.getByName(BuildType.Release.id))
|
||||
signingConfig = extension.signingConfigs.getByName(BuildType.Debug.id)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,6 +7,72 @@ internal enum class BuildType(
|
|||
val configFields: List<BuildConfigField>,
|
||||
) {
|
||||
|
||||
/**
|
||||
* Build type for developers
|
||||
*
|
||||
* Features:
|
||||
* - Env: dev
|
||||
* - Signing config: debug
|
||||
* - Debuggable
|
||||
* - Logs
|
||||
* - Tester menu
|
||||
* - Test action
|
||||
* - Traffic sniffing
|
||||
* */
|
||||
Debug(
|
||||
id = "debug",
|
||||
appIdSuffix = "debug",
|
||||
configFields = listOf(
|
||||
BuildConfigField.Environment(value = "dev"),
|
||||
BuildConfigField.TestActionEnabled(isEnabled = true),
|
||||
BuildConfigField.LogEnabled(isEnabled = true),
|
||||
BuildConfigField.TesterMenuAvailability(isEnabled = true),
|
||||
),
|
||||
),
|
||||
|
||||
/**
|
||||
* Build type for QA
|
||||
*
|
||||
* Features:
|
||||
* - Env: beta
|
||||
* - Signing config: debug
|
||||
* - Logs
|
||||
* - Tester menu
|
||||
* - Test action
|
||||
* - Traffic sniffing
|
||||
* */
|
||||
Internal(
|
||||
id = "internal",
|
||||
appIdSuffix = "internal",
|
||||
versionSuffix = "internal",
|
||||
configFields = listOf(
|
||||
BuildConfigField.Environment(value = "beta"),
|
||||
BuildConfigField.TestActionEnabled(isEnabled = true),
|
||||
BuildConfigField.LogEnabled(isEnabled = true),
|
||||
BuildConfigField.TesterMenuAvailability(isEnabled = true),
|
||||
),
|
||||
),
|
||||
|
||||
/**
|
||||
* Build type for QA and business
|
||||
*
|
||||
* Features:
|
||||
* - Env: prod
|
||||
* - Signing config: debug
|
||||
* - Proguard
|
||||
* */
|
||||
External(
|
||||
id = "external",
|
||||
appIdSuffix = "external",
|
||||
versionSuffix = "external",
|
||||
configFields = listOf(
|
||||
BuildConfigField.Environment(value = "prod"),
|
||||
BuildConfigField.TestActionEnabled(isEnabled = false),
|
||||
BuildConfigField.LogEnabled(isEnabled = false),
|
||||
BuildConfigField.TesterMenuAvailability(isEnabled = false),
|
||||
),
|
||||
),
|
||||
|
||||
/**
|
||||
* Production ready build type for clients
|
||||
*
|
||||
|
|
@ -24,49 +90,4 @@ internal enum class BuildType(
|
|||
BuildConfigField.TesterMenuAvailability(isEnabled = false),
|
||||
),
|
||||
),
|
||||
|
||||
/**
|
||||
* Build type for developers
|
||||
*
|
||||
* Features:
|
||||
* - Env: dev
|
||||
* - Signing config: debug
|
||||
* - Debuggable
|
||||
* - Logs
|
||||
* - Tester menu
|
||||
* - Test action
|
||||
* - Traffic sniffing
|
||||
* */
|
||||
Debug(
|
||||
id = "debug",
|
||||
appIdSuffix = "dev",
|
||||
configFields = listOf(
|
||||
BuildConfigField.Environment(value = "dev"),
|
||||
BuildConfigField.TestActionEnabled(isEnabled = true),
|
||||
BuildConfigField.LogEnabled(isEnabled = true),
|
||||
BuildConfigField.TesterMenuAvailability(isEnabled = true),
|
||||
),
|
||||
),
|
||||
|
||||
/**
|
||||
* Build type for QA and business
|
||||
*
|
||||
* Features:
|
||||
* - Env: prod
|
||||
* - Signing config: debug
|
||||
* - Tester menu
|
||||
* - Test action
|
||||
* - Proguard
|
||||
* */
|
||||
External(
|
||||
id = "debug_beta",
|
||||
appIdSuffix = "debug",
|
||||
versionSuffix = "debug",
|
||||
configFields = listOf(
|
||||
BuildConfigField.Environment(value = "prod"),
|
||||
BuildConfigField.TestActionEnabled(isEnabled = true),
|
||||
BuildConfigField.LogEnabled(isEnabled = false),
|
||||
BuildConfigField.TesterMenuAvailability(isEnabled = true),
|
||||
),
|
||||
),
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue