File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -40,12 +40,21 @@ android {
4040 proguardFiles(getDefaultProguardFile(" proguard-android-optimize.txt" ), " proguard-rules.pro" )
4141 }
4242
43- if (project.hasProperty(" signAsDebug" )) {
43+ val keystoreFile = file(" keystore.jks" )
44+
45+ if (project.hasProperty(" signAsDebug" ) || ! keystoreFile.exists()) {
4446 applicationIdSuffix = " .debug_signed"
4547 resValue(" string" , " app_name" , " ReVanced Manager (Debug signed)" )
4648 signingConfig = signingConfigs.getByName(" debug" )
4749
4850 isPseudoLocalesEnabled = true
51+ } else {
52+ signingConfig = signingConfigs.create(" release" ) {
53+ storeFile = keystoreFile
54+ storePassword = System .getenv(" KEYSTORE_PASSWORD" )
55+ keyAlias = System .getenv(" KEYSTORE_ENTRY_ALIAS" )
56+ keyPassword = System .getenv(" KEYSTORE_ENTRY_PASSWORD" )
57+ }
4958 }
5059
5160 buildConfigField(" long" , " BUILD_ID" , " 0L" )
You can’t perform that action at this time.
0 commit comments