Skip to content

Commit

Permalink
APPS-3693: add new signing method
Browse files Browse the repository at this point in the history
  • Loading branch information
eadm committed Aug 12, 2023
1 parent c800531 commit d4b5271
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ android {
vectorDrawables.useSupportLibrary = true

multiDexEnabled true

buildConfigField "boolean", "IS_GOOGLE_PLAY", "true"
}

sourceSets {
Expand Down Expand Up @@ -104,6 +106,16 @@ android {
}
}

/**
* Release with old keys for app distribution provider other than Google Play
*/
releaseOldKeys {
initWith release
signingConfig signingConfigs.stage
buildConfigField "boolean", "IS_GOOGLE_PLAY", "false"
matchingFallbacks = ['release']
}

//the apk of this type is signed by old prod keys
//it makes apk testable (sign in, smart lock, etc are worked).
//now new sign configs are used for providing to Google Play
Expand Down Expand Up @@ -235,6 +247,7 @@ dependencies {

debugImplementation libraries.leakCanaryNoOp // TODO APPS-3670: Update LeakCanary to support Android 12
releaseImplementation libraries.leakCanaryNoOp
releaseOldKeysImplementation libraries.leakCanaryNoOp
stageImplementation libraries.leakCanaryNoOp
stageDebuggableImplementation libraries.leakCanaryNoOp

Expand Down Expand Up @@ -268,6 +281,7 @@ dependencies {
stageDebuggableImplementation libraries.toolargetool

stageImplementation libraries.flipperNoop
releaseOldKeysImplementation libraries.flipperNoop
releaseImplementation libraries.flipperNoop
}

Expand Down

0 comments on commit d4b5271

Please sign in to comment.