RuPLayMarket

This commit is contained in:
Sad Ellie 2022-05-03 18:52:39 +03:00
parent ecadfe8d58
commit b5d66029ac
2 changed files with 29 additions and 10 deletions

View File

@ -47,6 +47,15 @@ android {
signingConfig signingConfigs.debug signingConfig signingConfigs.debug
} }
debugRuPlayMarket {
// We don't need analytics for debug builds
resValue("bool", "FIREBASE_ANALYTICS_DEACTIVATED", "true")
resValue("bool", "FIREBASE_CRASHLYTICS_ENABLED", "false")
buildConfigField ("String", "StoreLink", "null")
debuggable true
signingConfig signingConfigs.debug
}
releaseNoAnal { releaseNoAnal {
// Same as release // Same as release
// Used for on device testing. Same performance, but no analytics // Used for on device testing. Same performance, but no analytics
@ -75,6 +84,15 @@ android {
minifyEnabled true minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
} }
releaseRuPlayMarket {
resValue("bool", "FIREBASE_ANALYTICS_DEACTIVATED", "false")
resValue("bool", "FIREBASE_CRASHLYTICS_ENABLED", "true")
buildConfigField ("String", "StoreLink", "null")
shrinkResources true
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
} }
compileOptions { compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8 sourceCompatibility JavaVersion.VERSION_1_8
@ -85,7 +103,6 @@ android {
compose true compose true
// These are unused features // These are unused features
// buildConfig false
aidl false aidl false
renderScript false renderScript false
shaders false shaders false

View File

@ -135,18 +135,20 @@ fun SettingsScreen(
onClick = { navControllerAction(ABOUT_SCREEN) } onClick = { navControllerAction(ABOUT_SCREEN) }
) )
BuildConfig.StoreLink?.let {
SettingsListItem( SettingsListItem(
label = stringResource(R.string.rate_this_app), label = stringResource(R.string.rate_this_app),
onClick = { onClick = {
openLink( openLink(
mContext, mContext,
BuildConfig.StoreLink it
) )
} }
) )
} }
} }
} }
}
}, },
) )