Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot override minSdkVersion on android manifest #60

Closed
gustavocampos opened this issue Jun 30, 2016 · 4 comments
Closed

Cannot override minSdkVersion on android manifest #60

gustavocampos opened this issue Jun 30, 2016 · 4 comments

Comments

@gustavocampos
Copy link

I've moved from Phonegap Build 5.2.0 to 6.1.0, then it started to ignore my preferences and generate minSdkVersion 15+, my preferences were:

<preference name="android-minSdkVersion" value="21" />
<preference name="android-targetSdkVersion" value="23" />

I tried to use this plugin to overwrite sdk version on manifest but it's not working, I've tried both:

<preference name="android-manifest/uses-sdk/@android:minSdkVersion" value="21" />
<preference name="android-manifest/uses-sdk/@android:targetSdkVersion" value="23" />

and

<config-file target="AndroidManifest.xml" parent="/*">
    <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="23" />
</config-file>

without success.

Any thoughts on this?

@dpa99c
Copy link
Owner

dpa99c commented Jul 3, 2016

This plugin will not work with Phonegap Build as it now does not support the use of hooks scripts which this plugin relies on - I will update the plugin documentation to clarify this.

The reason that android-minSdkVersion and android-targetSdkVersion worked before on Phonegap Build is that these preferences are (or at least were) supported natively by Cordova/Phonegap. If they have stopped working in the Phonegap Build environment, it is either because Phonegap or Phonegap Build has dropped direct support for them, but regardless, this plugin cannot help you in the Phonegap Build environment.

@dpa99c
Copy link
Owner

dpa99c commented Jul 3, 2016

@gustavocampos
Copy link
Author

Thanks for answering me, also, I would like to note that phonegap-barcodescanner-plugin is forcing min sdk version to 15+ so it's a plugin problem, not a cordova/phonegap problem.

@dpa99c
Copy link
Owner

dpa99c commented Jul 4, 2016

ok, thanks for clarifying

@dpa99c dpa99c closed this as completed Jul 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants