Created
May 15, 2017 12:38
-
-
Save rafakob/a00e607d38cc644605e3a363e6d22ca5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| task uploadFirebaseMapping { | |
| def configPath = rootProject.rootDir.absolutePath; | |
| switch (project.findProperty('variant')) { | |
| case 'frog': | |
| setProperty('FirebaseServiceAccountFilePath', configPath + getProperty('firebase.crash.frog')) | |
| uploadFirebaseMapping.dependsOn('firebaseUploadFrogProguardMapping') | |
| break | |
| case 'smartearly': | |
| setProperty('FirebaseServiceAccountFilePath', configPath + getProperty('firebase.crash.smartearly')) | |
| uploadFirebaseMapping.dependsOn('firebaseUploadSmartearlyProguardMapping') | |
| break | |
| case 'release': | |
| setProperty("FirebaseServiceAccountFilePath", configPath + getProperty('firebase.crash.production')) | |
| uploadFirebaseMapping.dependsOn('firebaseUploadReleaseProguardMapping') | |
| break | |
| default: | |
| println 'Invalid variant name. Proguard mapping was not uploaded to Firebase.' | |
| break | |
| } | |
| } | |
| ./gradlew uploadFirebaseMapping -Pvariant=frog | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment