|
|
@ -42,6 +42,7 @@ android {
|
|
|
|
testInstrumentationRunnerArguments clearPackageData: 'true'
|
|
|
|
testInstrumentationRunnerArguments clearPackageData: 'true'
|
|
|
|
resValue "bool", "IS_DEBUG", "false"
|
|
|
|
resValue "bool", "IS_DEBUG", "false"
|
|
|
|
buildConfigField "boolean", "USE_RELEASE_VERSIONING", "false"
|
|
|
|
buildConfigField "boolean", "USE_RELEASE_VERSIONING", "false"
|
|
|
|
|
|
|
|
buildConfigField "String", "GIT_HASH", "\"\"" // see override in release builds for why it's blank.
|
|
|
|
// This should be the "public" base URL of AMO.
|
|
|
|
// This should be the "public" base URL of AMO.
|
|
|
|
buildConfigField "String", "AMO_BASE_URL", "\"https://addons.mozilla.org\""
|
|
|
|
buildConfigField "String", "AMO_BASE_URL", "\"https://addons.mozilla.org\""
|
|
|
|
buildConfigField "String", "AMO_COLLECTION_NAME", "\"7dfae8669acc4312a65e8ba5553036\""
|
|
|
|
buildConfigField "String", "AMO_COLLECTION_NAME", "\"7dfae8669acc4312a65e8ba5553036\""
|
|
|
@ -82,6 +83,10 @@ android {
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
matchingFallbacks = ['release'] // Use on the "release" build type in dependencies (AARs)
|
|
|
|
matchingFallbacks = ['release'] // Use on the "release" build type in dependencies (AARs)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Changing the build config can cause files that depend on BuildConfig.java to recompile
|
|
|
|
|
|
|
|
// so we only set the git hash in release builds to avoid possible recompilation in debug builds.
|
|
|
|
|
|
|
|
buildConfigField "String", "GIT_HASH", "\"${Config.getGitHash()}\""
|
|
|
|
|
|
|
|
|
|
|
|
if (gradle.hasProperty("localProperties.autosignReleaseWithDebugKey")) {
|
|
|
|
if (gradle.hasProperty("localProperties.autosignReleaseWithDebugKey")) {
|
|
|
|
signingConfig signingConfigs.debug
|
|
|
|
signingConfig signingConfigs.debug
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -227,6 +232,7 @@ android {
|
|
|
|
composeOptions {
|
|
|
|
composeOptions {
|
|
|
|
kotlinCompilerExtensionVersion = Versions.androidx_compose
|
|
|
|
kotlinCompilerExtensionVersion = Versions.androidx_compose
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------------------------------------
|
|
|
|
// -------------------------------------------------------------------------------------------------
|
|
|
|