How can I define the right package name regarding my buildType ?
I have this command line to build :
cordova run android --device --buildType=beta
I have this hook (after prepare) which set the buildType from the command line :
fs.appendFileSync( buildExtras, "ext.postBuildExtras = {\nandroid.buildTypes." +
( isRelease ? "release" : "debug" ) + ".applicationIdSuffix='." + buildType + "'\n}" );
but in AndroidManifest.xml packageName in platforms/android/ is not the right.
Only if I change manually in the config.xml file
widget id="com.exemple.beta"
then the AndroidManifest.xml package name is correct