Answer the question
In order to leave comments, you need to log in
How to use different "applicationId" for debug and release builds?
Is it possible to build one Android project with different applicationId values depending on the type without having to manually change something every time? The fact is that the analytics and error reporting in Firebase logs a lot of unnecessary things during development and, as a result, spoils the statistics.
Answer the question
In order to leave comments, you need to log in
Found a way: https://developer.android.com/studio/build/index.html
productFlavors {
free {
applicationId 'com.example.myapp.free'
}
paid {
applicationId 'com.example.myapp.paid'
}
}
android {
buildTypes {
debug {
applicationIdSuffix '.debug'
versionNameSuffix '-DEBUG'
}
release {
// ...
}
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question