Skip to content

Commit

Permalink
Disable Proguard to fix Wear -> Mobile Device communication
Browse files Browse the repository at this point in the history
  • Loading branch information
Florianisme committed Jan 27, 2023
1 parent fe09bbd commit 1ac9317
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 68 deletions.
8 changes: 3 additions & 5 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,23 @@ pipeline {
steps {
archiveArtifacts artifacts: 'app/build/outputs/bundle/release/app-release.aab', followSymlinks: false, onlyIfSuccessful: true
archiveArtifacts artifacts: 'app/build/outputs/apk/release/app-release.apk', followSymlinks: false, onlyIfSuccessful: true
archiveArtifacts artifacts: 'app/build/outputs/mapping/release/mapping.txt', followSymlinks: false, onlyIfSuccessful: true
archiveArtifacts artifacts: 'wear/build/outputs/bundle/release/wear-release.aab', followSymlinks: false, onlyIfSuccessful: true
archiveArtifacts artifacts: 'wear/build/outputs/apk/release/wear-release.apk', followSymlinks: false, onlyIfSuccessful: true
archiveArtifacts artifacts: 'wear/build/outputs/mapping/release/mapping.txt', followSymlinks: false, onlyIfSuccessful: true
}
}
stage('Publish to Play Store') {
steps {
script {
if (env.BRANCH_NAME == 'master') {
echo 'Publishing Bundle to Beta channel (Not allowed to fail)'
androidApkUpload deobfuscationFilesPattern: 'app/build/outputs/mapping/release/mapping.txt,wear/build/outputs/mapping/release/mapping.txt', filesPattern: 'app/build/outputs/bundle/release/app-release.aab,wear/build/outputs/bundle/release/wear-release.aab', googleCredentialsId: 'Florianisme', rolloutPercentage: '20', trackName: 'beta'
androidApkUpload filesPattern: 'app/build/outputs/bundle/release/app-release.aab,wear/build/outputs/bundle/release/wear-release.aab', googleCredentialsId: 'Florianisme', rolloutPercentage: '20', trackName: 'beta'
} else if (env.BRANCH_NAME == 'release') {
echo 'Publishing Bundle to Internal channel (Not allowed to fail)'
androidApkUpload deobfuscationFilesPattern: 'app/build/outputs/mapping/release/mapping.txt,wear/build/outputs/mapping/release/mapping.txt', filesPattern: 'app/build/outputs/bundle/release/app-release.aab,wear/build/outputs/bundle/release/wear-release.aab', googleCredentialsId: 'Florianisme', rolloutPercentage: '100', trackName: 'internal'
androidApkUpload filesPattern: 'app/build/outputs/bundle/release/app-release.aab,wear/build/outputs/bundle/release/wear-release.aab', googleCredentialsId: 'Florianisme', rolloutPercentage: '100', trackName: 'internal'
} else if (env.BRANCH_NAME == 'develop' || env.BRANCH_NAME.contains('feature')) {
echo 'Publishing Bundle to Internal channel (Allowed to fail)'
try {
androidApkUpload deobfuscationFilesPattern: 'app/build/outputs/mapping/release/mapping.txt,wear/build/outputs/mapping/release/mapping.txt', filesPattern: 'app/build/outputs/bundle/release/app-release.aab,wear/build/outputs/bundle/release/wear-release.aab', googleCredentialsId: 'Florianisme', rolloutPercentage: '100', trackName: 'internal'
androidApkUpload filesPattern: 'app/build/outputs/bundle/release/app-release.aab,wear/build/outputs/bundle/release/wear-release.aab', googleCredentialsId: 'Florianisme', rolloutPercentage: '100', trackName: 'internal'
} catch(error) {
currentBuild.result = 'SUCCESS'
}
Expand Down
30 changes: 0 additions & 30 deletions app/proguard-rules.pro

This file was deleted.

3 changes: 0 additions & 3 deletions shared-build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ android {
buildTypes {
release {
signingConfig signingConfigs.release
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
Expand Down
30 changes: 0 additions & 30 deletions wear/proguard-rules.pro

This file was deleted.

0 comments on commit 1ac9317

Please sign in to comment.