Wed, 15 Dec 2021 08:21:22 GMT
Join the conversation at slack.cordova.io
Wed, 15 Dec 2021 01:05:12 GMT
@info460 says
but in gradle build I still have different values even if I cordova platform rm android and cordova platform add android
Wed, 15 Dec 2021 01:06:14 GMT
@info460 says
how to enforce the values for the build??
Wed, 15 Dec 2021 01:10:49 GMT
@norman137 says
those are just the default values. inside
app/build.gradle
there is more logic involved to pull the sdk version from settings, and if missing it will fall back to those defaults that you see insideandroid/build.gradle
Wed, 15 Dec 2021 01:12:00 GMT
@norman137 says
If you want to confirm the APK is compiled with the expected target SDK, you can use the
aapt
[1] tooltargetSdkVersion:'30'``` [1] `aapt` tool can be found inside `$ANDROID_SDK_ROOT/build-tools/<BUILD_TOOLS_VERSION>/`
Wed, 15 Dec 2021 01:13:57 GMT
@info460 says
Hi Norman, never had such problem before, the build followed the values in config.xml (dont know why it ignores them)
Wed, 15 Dec 2021 01:15:46 GMT
@norman137 says
the file you shown isn't suppose to be updated, it defines the variables for the default values. They should only be used in fallbacks.
Wed, 15 Dec 2021 01:16:55 GMT
@norman137 says
the app's build.gradle file does more logic to determine what target/compile sdk should be
Wed, 15 Dec 2021 00:08:12 GMT
@info460 says
Hi everybody. I like to ask what plugin do you use to integrate G Admob for android? thanks and happy christmas