diff --git a/PayPalMessaging/build.gradle b/PayPalMessaging/build.gradle index ef8de11c94..aaf9f05a1b 100644 --- a/PayPalMessaging/build.gradle +++ b/PayPalMessaging/build.gradle @@ -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 diff --git a/gradle/gradle-publish.gradle b/gradle/gradle-publish.gradle index 0388bcf3c0..261cbf45e7 100644 --- a/gradle/gradle-publish.gradle +++ b/gradle/gradle-publish.gradle @@ -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 {