enighma
11/07/2022, 7:46 PMgildor
11/08/2022, 3:56 AMenighma
11/08/2022, 8:03 PMgildor
11/09/2022, 9:38 AMOptimized
which will do everything what Release is doing, but with debug signature, but It’s actually quite a heavy weight solution, it increases amount of tasks, requires full rebuilding on switch between build types (it will not reuse many caches from release), may require explicit support on side of your code (if you use BuildConfig)
So our solution for this is that we just use debug keystore for release builds by default, because we anyway cannot push release keystore to the repo and we use gradle properties to specify path to release key store/alias/password so it allows you to build release with any signature without adding new build typeenighma
11/09/2022, 10:54 PMSo our solution for this is that we just use debug keystore for release builds by default, because we anyway cannot push release keystore to the repo and we use gradle properties to specify path to release key store/alias/password so it allows you to build release with any signature without adding new build typeThis is what what I want to do. This app will never be uploaded to the play store either way. I think I might have to google for the syntax to set that up though 🙂 like I said, by Gradle skills are rusty at best 😄 I really appreciate the longer explanation! big thanks!
gildor
11/10/2022, 1:46 AMbuildTypes {
...
release {
...
if (signingConfigs.release.storeFile == null) {
// Use debug config instead of release
signingConfig signingConfigs.debug
} else {
signingConfig signingConfigs.release
}
}
}
gildor
11/10/2022, 1:49 AM