Closed matejsemancik closed 4 months ago
The generated classes have package resolved from applicationId + applicationIdSuffix which breaks compatibility between different build variants.
applicationId
applicationIdSuffix
For example:
// app module build.gradle.kts android { namespace = "com.example.app.android" defaultConfig { applicationId = "com.example.app" } buildTypes { debug { applicationIdSuffix = ".debug" } release { applicationIdSuffix = ".release" } } } bytemaskConfig { className.set("BytemaskConfig") }
debug
com.example.app.debug.BytemaskConfig
release
com.example.app.release.BytemaskConfig
This breaks binary compatibility between build variants and project will not compile after switching between build types.
I think the solution would be either to:
Thanks for raising this issue and helping to make it better.
We'll plan it for upcoming alpha version: 1.0.0-alpha02
1.0.0-alpha02
The generated classes have package resolved from
applicationId
+applicationIdSuffix
which breaks compatibility between different build variants.For example:
debug
build type, the generated class will be generated ascom.example.app.debug.BytemaskConfig
release
build type, the generated class will be generated ascom.example.app.release.BytemaskConfig
This breaks binary compatibility between build variants and project will not compile after switching between build types.
I think the solution would be either to: