Updated on 2026-08-14
This commit is contained in:
parent
fc2820c9bc
commit
adcabd2ac2
8 changed files with 47 additions and 3 deletions
|
|
@ -30,12 +30,20 @@ android {
|
||||||
minifyEnabled false
|
minifyEnabled false
|
||||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||||
signingConfig signingConfigs.debug
|
signingConfig signingConfigs.debug
|
||||||
|
buildConfigField 'boolean', 'CRASHLYTICS', 'Boolean.parseBoolean("false")'
|
||||||
}
|
}
|
||||||
debug {
|
debug {
|
||||||
debuggable true
|
debuggable true
|
||||||
minifyEnabled false
|
minifyEnabled false
|
||||||
applicationIdSuffix ".debug"
|
applicationIdSuffix ".debug"
|
||||||
signingConfig signingConfigs.debug
|
signingConfig signingConfigs.debug
|
||||||
|
buildConfigField 'boolean', 'CRASHLYTICS', 'Boolean.parseBoolean("false")'
|
||||||
|
}
|
||||||
|
debug_beta {
|
||||||
|
initWith debug
|
||||||
|
versionNameSuffix "-beta"
|
||||||
|
applicationIdSuffix ".debug_beta"
|
||||||
|
buildConfigField 'boolean', 'CRASHLYTICS', 'Boolean.parseBoolean("true")'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
flavorDimensions ""
|
flavorDimensions ""
|
||||||
|
|
|
||||||
|
|
@ -2,5 +2,6 @@
|
||||||
<resources>
|
<resources>
|
||||||
|
|
||||||
<string name="app_name">DEBUG</string>
|
<string name="app_name">DEBUG</string>
|
||||||
|
<string name="log_file_provider_authorities">com.tangem.debug.data.LogFileProvider</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
19
app/src/debug_beta/AndroidManifest.xml
Normal file
19
app/src/debug_beta/AndroidManifest.xml
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
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>
|
||||||
6
app/src/debug_beta/res/values/strings.xml
Normal file
6
app/src/debug_beta/res/values/strings.xml
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
|
||||||
|
<string name="app_name">TangemBeta</string>
|
||||||
|
|
||||||
|
</resources>
|
||||||
|
|
@ -60,7 +60,6 @@ class App : Application() {
|
||||||
pendingTransactionsStorage = PendingTransactionsStorage(applicationContext)
|
pendingTransactionsStorage = PendingTransactionsStorage(applicationContext)
|
||||||
|
|
||||||
if (BuildConfig.DEBUG) {
|
if (BuildConfig.DEBUG) {
|
||||||
Fabric.with(this, Crashlytics())
|
|
||||||
com.tangem.card_common.util.Log.setLogger(
|
com.tangem.card_common.util.Log.setLogger(
|
||||||
object : com.tangem.card_common.util.LoggerInterface {
|
object : com.tangem.card_common.util.LoggerInterface {
|
||||||
override fun i(logTag: String, message: String) {
|
override fun i(logTag: String, message: String) {
|
||||||
|
|
@ -76,6 +75,7 @@ class App : Application() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
if (BuildConfig.CRASHLYTICS) Fabric.with(this, Crashlytics())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,10 @@ android {
|
||||||
minifyEnabled false
|
minifyEnabled false
|
||||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||||
}
|
}
|
||||||
|
debug_beta {
|
||||||
|
initWith debug
|
||||||
|
versionNameSuffix "-beta"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
buildToolsVersion '28.0.3'
|
buildToolsVersion '28.0.3'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,10 +40,12 @@ platform :android do
|
||||||
|
|
||||||
desc "Build debug and release APKs"
|
desc "Build debug and release APKs"
|
||||||
lane :build do |options|
|
lane :build do |options|
|
||||||
|
|
||||||
gradle(
|
gradle(
|
||||||
task: "clean assemble",
|
task: "clean assemble",
|
||||||
flavor: "tangemAccess",
|
flavor: "tangemAccess",
|
||||||
build_type: "Debug")
|
build_type: "Debug_beta")
|
||||||
|
|
||||||
gradle(
|
gradle(
|
||||||
task: "assemble",
|
task: "assemble",
|
||||||
flavor: "tangemAccess",
|
flavor: "tangemAccess",
|
||||||
|
|
@ -60,7 +62,7 @@ platform :android do
|
||||||
lane :debug do
|
lane :debug do
|
||||||
gradle(task: "clean assemble",
|
gradle(task: "clean assemble",
|
||||||
flavor: "tangemAccess",
|
flavor: "tangemAccess",
|
||||||
build_type: "Debug")
|
build_type: "Debug_beta")
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Submit a new Beta Build to Crashlytics Beta"
|
desc "Submit a new Beta Build to Crashlytics Beta"
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,10 @@ android {
|
||||||
minifyEnabled false
|
minifyEnabled false
|
||||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||||
}
|
}
|
||||||
|
debug_beta {
|
||||||
|
initWith debug
|
||||||
|
versionNameSuffix "-beta"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
productFlavors {
|
productFlavors {
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue