Created
May 15, 2017 12:38
-
-
Save rafakob/a00e607d38cc644605e3a363e6d22ca5 to your computer and use it in GitHub Desktop.
Revisions
-
rafakob created this gist
May 15, 2017 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,27 @@ 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