cordova-android
cordova-android copied to clipboard
Doesn't support add customised `buildType`?
I am trying to add a new buildType in my android application. I edited build-extras.gradle
as below
android {
buildTypes {
staging {
initWith release
}
}
}
After that the change is added to platforms/android/build-extras.gradle
but the build will fail because the module platforms/android/CordovaLib/build.gradle
doesn't have such configuration. If I added the this configuration on platforms/android/CordovaLib/build.gradle
manually, the command cordova build android --release
will success but it doesn't generate the staging
APK.
Did you solve it?
I am interested in a solution for this as well.
You should be able to use
staging {
matchingFallbacks = ['release']
}
That should fallback to the release build when the staging flavor is not available