I want to configure a third BuildType in my project that inherits all the configurations from another BuildType.
How can I do this?
Just use the initWith
property with in the build type:
uitesting {
initWith debug
}
You can find more information on the respectively developer page: https://developer.android.com/studio/build/build-variants#build-types
As an alternative you can also use:
<<new_build_type>>.initWith(buildTypes.<<old_build_type>>)
In a real case this looks like:
uitesting.initWith(buildTypes.debug)
uitesting {
...
}
Use jnidebug.initWith(buildTypes.debug)
to inherit properties of another build type
Please try something like this
android {
buildTypes {
debug {
applicationIdSuffix ".debug"
}
jnidebug.initWith(buildTypes.debug)
jnidebug {
packageNameSuffix ".jnidebug"
jniDebuggable true
}
}
}
This might be helpful http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Types
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With