I've been trying to work out why the min SDK was always being set to `19` even 
when I updated it to `23` every where possible.

I believe I've found an issue here 
https://github.com/apache/cordova-android/blob/master/bin/templates/project/app/build.gradle#L120
 where it's setting the `cdvMinSdkVersion` to `null` when it's already `null`, 
else if it's not `null` it's setting it to the default min SDK version, meaning 
if you ever set a min SDK it will always change it to the default.

I believe the correct line should read:

```
ext.cdvMinSdkVersion = cdvMinSdkVersion == null ? defaultMinSdkVersion : 
cdvMinSdkVersion
```

[ Full content available at: 
https://github.com/apache/cordova-android/issues/489 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to