Skip to content

Commit

Permalink
Fix Publish Release Signing Issue (#1076)
Browse files Browse the repository at this point in the history
* Temp add release build type back to the demo app

* Add release signing config to each module

* Remove temp branch from release_snapshot workflow

* Move signing configs to a separate gradle file

* Move signing configs to gradle-publish.gradle

* Remove feature branch from snapshot workflow
  • Loading branch information
tdchow authored Jul 22, 2024
1 parent e8e0b2a commit e5500e0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
6 changes: 0 additions & 6 deletions PayPalMessaging/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ android {
}
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility versions.javaSourceCompatibility
targetCompatibility versions.javaTargetCompatibility
Expand Down
12 changes: 11 additions & 1 deletion gradle/gradle-publish.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
apply plugin: 'maven-publish'
apply plugin: 'signing'


ext["signing.keyId"] = System.getenv('SIGNING_KEY_ID') ?: ''
ext["signing.password"] = System.getenv('SIGNING_KEY_PASSWORD') ?: ''
ext["signing.secretKeyRingFile"] = System.getenv('SIGNING_KEY_FILE') ?: ''

android {
signingConfigs {
release {
storeFile file(System.env['KEYSTORE_FILE'] ?: 'debug.keystore')
storePassword System.env['KEYSTORE_PASSWORD'] ?: 'android'
keyAlias System.env['KEY_ALIAS'] ?: 'androiddebugkey'
keyPassword System.env['KEY_PASSWORD'] ?: 'android'
}
}
}

afterEvaluate {
publishing {
publications {
Expand Down

0 comments on commit e5500e0

Please sign in to comment.