Colin
Colin

Reputation: 22595

How to decide what Android settings to use for Ionic deployment in Visual Studio

I have developed an Ionic app using Visual Studio. It runs in the Ripple emulator and it runs when I debug it on an Android device running version 4.4.2.

Now I want to publish the app and I am trying to follow the Visual Studio instructions for packaging your Cordova app.

My problem is that I don't know what to put into the Android settings within my config.xml for Version Code, Minimum API level, Maximum API level, and Target API level

If I look at Tools > Extensions and Updates-> Visual Studio Tools for Cordova, I can see my version is 14.0.60527.5

How do I work out what to put in the Android settings?

Upvotes: 0

Views: 285

Answers (1)

Elvis Xia - MSFT
Elvis Xia - MSFT

Reputation: 10831

You can refer to Version Your App for versionCode:

versionCode — An integer used as an internal version number.

Typically, you would release the first version of your app with versionCode set to 1, then monotonically increase the value with each release. And Google Play has a upper limit for versionCode: 2100000000.

And refer to uses-sdk for min/max/target API Level:

API Level is an integer value that uniquely identifies the framework API revision offered by a version of the Android platform.

android:minSdkVersion: An integer designating the minimum API Level required for the application to run.

android:targetSdkVersion: An integer designating the API Level that the application targets.

android:maxSdkVersion: An integer designating the maximum API Level on which the application is designed to run.

So in your case the target API Level should be 19(stands for 4.4.2). Minimum API level could be any integer below 19. Maximum API level could be any integer greater than 19.

Upvotes: 1

Related Questions