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
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
signingConfig signingConfigs.debug
|
||||
buildConfigField 'boolean', 'CRASHLYTICS', 'Boolean.parseBoolean("false")'
|
||||
}
|
||||
debug {
|
||||
debuggable true
|
||||
minifyEnabled false
|
||||
applicationIdSuffix ".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 ""
|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@
|
|||
<resources>
|
||||
|
||||
<string name="app_name">DEBUG</string>
|
||||
<string name="log_file_provider_authorities">com.tangem.debug.data.LogFileProvider</string>
|
||||
|
||||
</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)
|
||||
|
||||
if (BuildConfig.DEBUG) {
|
||||
Fabric.with(this, Crashlytics())
|
||||
com.tangem.card_common.util.Log.setLogger(
|
||||
object : com.tangem.card_common.util.LoggerInterface {
|
||||
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
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
debug_beta {
|
||||
initWith debug
|
||||
versionNameSuffix "-beta"
|
||||
}
|
||||
}
|
||||
buildToolsVersion '28.0.3'
|
||||
|
||||
|
|
|
|||
|
|
@ -40,10 +40,12 @@ platform :android do
|
|||
|
||||
desc "Build debug and release APKs"
|
||||
lane :build do |options|
|
||||
|
||||
gradle(
|
||||
task: "clean assemble",
|
||||
flavor: "tangemAccess",
|
||||
build_type: "Debug")
|
||||
build_type: "Debug_beta")
|
||||
|
||||
gradle(
|
||||
task: "assemble",
|
||||
flavor: "tangemAccess",
|
||||
|
|
@ -60,7 +62,7 @@ platform :android do
|
|||
lane :debug do
|
||||
gradle(task: "clean assemble",
|
||||
flavor: "tangemAccess",
|
||||
build_type: "Debug")
|
||||
build_type: "Debug_beta")
|
||||
end
|
||||
|
||||
desc "Submit a new Beta Build to Crashlytics Beta"
|
||||
|
|
|
|||
|
|
@ -20,6 +20,10 @@ android {
|
|||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
debug_beta {
|
||||
initWith debug
|
||||
versionNameSuffix "-beta"
|
||||
}
|
||||
}
|
||||
productFlavors {
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue