I have an Android project using two firebase instances per build variant (e.g. staging -> Firebase Project 1 and release -> Firebase Project 2). I'd like to be able to upload the mapping.txt whenever I invoke assemble so the crashes would be deobfuscated. Is there a way to dynamically set FirebaseServiceAccountFilePath property for each build variant? Thanks
Define FirebaseServiceAccountFilePath dynamically for build variants
533 Views Asked by Emarc Magtanong At
2
There are 2 best solutions below
0
Dheeraj M
On
I faced this problem too today. After spending some time on this I simply wrote .sh file copied both the ./gradlew statements. It is simply running both the statements one by one and I am able build apk and upload mapping file programmatically for both the firebase projects in single invocation.
Related Questions in ANDROID
- Delay in loading Html Page(WebView) from assets folder in real android device
- MPAndroidChart method setWordWrapEnabled() not found
- Designing a 'new post' android activity
- Android :EditText inside ListView always update first item in the listview
- Android: Transferring Data via ContentIntent
- Wrong xml being inflated android
- AsyncTask Class
- Unable to receive extras in Android Intent
- Website zoomed out on Android default browser
- Square FloatingActionButton with Android Design Library
- Google Maps API Re-size
- Push toolbar content below statusbar
- Android FragmentPagerAdapter Circular listview
- Layout not shifting up when keyboard is open
- auDIO_OUTPUT_FLAG_FAST denied by client can't connect to localhost
Related Questions in FIREBASE
- Firebase facebook authentication not working
- Add @JsonAutoDetect to third party lib and firebase Java lib
- firebase-import timing out?
- Understanding Firebase orderByChild
- Wait until Firebase retrieves data
- Firebase logout show Permission denied error.
- angular $firebaseArrray: difference between controller and directive
- Firebase: combine filtering with ordering in swift
- AngularJS - Firebase - Promise Error
- How to get simple list of devices on a Nest account using Firebase in Android?
- Event-Driven(Real - Time) mobile set-up suggestions
- How do you nest two of Polymer's firebase-collection elements inside dom-repeat?
- AngularFire Watch and Retrieve Item Key
- Firebase and AngularFire - $add in a array - unexpected behaviour
- Saving an html object to firebase
Related Questions in ANDROID-PROGUARD
- Proguard with Duplicate Zip entry error
- Android design support library proguard rules
- App Engine Backend with Google Cloud Messaging connection fails building release version with proguard
- Proguard optimization
- Proguard - also use proguard files from modules
- i can't build app when use ProGuard in Android Studio
- Proguard config to use retrofit Retrofit
- App cannot build when using ProGuard in Android Studio
- How do I use proguard with 3DR Services?
- SQLite insertion exception when android code is ofuscated with Proguard
- Why do we have to exclude library from ProGuard obfuscation?
- Why does ProGuard not obfuscate these classes?
- Using proguard with Android Studio
- Retrofit illegalargumentexception, no annotation found
- ProGuard in Android Studio
Related Questions in FIREBASE-CRASH-REPORTING
- Uploading ProGuard Mapping Files to Firebase
- Does Firebase Crash Reporter work only under installation from Google Play?
- Is there any way to set key-value pairs in Firebase Crash Reporting?
- How to use the new FirebaseCrash/upload-sym?
- How to execute a task after assembleRelease?
- Why I don't see Logs in Firebase Crash Reporting
- Firebase Messaging “E/FirebaseCrash: Failed to initialize crash reporting”
- Firebase Crash reporting for alpha & beta
- Firebase Crash Reporting doesn't deobfuscate crash reports
- Firebase crash reporting confusion
- Android Firebase Crash Reporting difference between Log and Logcat
- Define FirebaseServiceAccountFilePath dynamically for build variants
- Application crashing on some devices because "Default FirebaseApp is not initialized in this process"
- Firebase crash reporting or different Crashlytics API key to mitigate collision with Crashlytics in App
- Firebase Crash Reporting - Does it support NDK now?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Currently, you will have to invoke two different builds on the command line with the two different paths for your service account. So, something like this, if you have variants foo and bar:
There isn't currently a way to specify a different service account for both builds in a single invocation. However, if both variants use the same mapping, you can upload them both in the same invocation.