1 Reply Latest reply on Jul 1, 2016 8:17 AM by gustavoc1396240

    Phonegap 6.1.0 not respecting android-minSdkVersion

    gustavoc1396240

      I have two apps that I used to build for android on phonegap 5.3.2 with preference:

       

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

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

       

      I've upgrade all my environment to work with phonegap 6.1.0:

       

      <preference name="phonegap-version" value="cli-6.1.0" />

       

      Now phonegap build is generating android-minSdkVersion as 15+ when I try to publish the APK to Play Store.

       

      Any thoughts?

       

      Thanks,

      Gustavo

       

      config-file:

      <?xml version='1.0' encoding='utf-8'?>
      <widget 
          id="com.valetiapp.valet" 
          version="0.5.3" 
          xmlns="http://www.w3.org/ns/widgets" 
          xmlns:gap="http://phonegap.com/ns/1.0" 
          xmlns:android="http://schemas.android.com/apk/res/android">
          
          <name>Valeti Manobrista</name>
          <description>
              Valeti for valets.
          </description>
          <author email="support@valeti.com" href="http://valeti.com">
              Valeti App Sistemas Ltda
          </author>
          
        <preference name="phonegap-version" value="cli-6.1.0" />
          <preference name="orientation" value="portrait" />
          <preference name="StatusBarStyle" value="default" />
        <preference name="ShowSplashScreenSpinner" value="false" />
        <preference name="FadeSplashScreen" value="false" />
          <preference name="AutoHideSplashScreen" value="true" />
        <preference name="SplashScreenDelay" value="2000" />
          <preference name="DisallowOverscroll" value="true" />
        <preference name="android-build-tool" value="gradle" />
          <preference name="android-minSdkVersion" value="21" />
         <preference name="android-targetSdkVersion" value="23" />
          
          <access origin="*" />
          <access origin="mailto:*" launch-external="yes" />
          
          <content src="index.html" />
      
        <!-- Config -->
      
      
        <!-- Plugins -->
      
      
          <gap:plugin name="cordova-plugin-splashscreen" spec="~3.2.2" source="npm" />
          <gap:plugin name="cordova-plugin-whitelist" spec="~1.2.2" source="npm" />
        <gap:plugin name="phonegap-plugin-barcodescanner" spec="~5.0.1" source="npm" />
        <gap:plugin name="cordova-plugin-device" source="npm" spec="~1.1.2" />
        <gap:plugin name="de.appplant.cordova.plugin.local-notification" spec="~0.8.4" source="npm" />
        <gap:plugin name="cordova-plugin-datecs-printer" spec="~0.3.7" source="npm" />
      
      
      
      
          <!-- ANDROID Configuration -->
          <engine name="android" />
          <platform name="android">
              
              <preference name="SplashScreen" value="screen"/>
              
              <icon platform="android" qualifier="ldpi" src="res/icons/android/icon-36-ldpi.png"/>
           <icon platform="android" qualifier="mdpi" src="res/icons/android/icon-48-mdpi.png"/>
           <icon platform="android" qualifier="hdpi" src="res/icons/android/icon-72-hdpi.png"/>
           <icon platform="android" qualifier="xhdpi" src="res/icons/android/icon-96-xhdpi.png"/>
           <icon platform="android" qualifier="xxhdpi" src="res/icons/android/icon-144-xxhdpi.png"/>
           <icon platform="android" qualifier="xxxhdpi" src="res/icons/android/icon-192-xxxhdpi.png"/>
           
           <splash platform="android" qualifier="ldpi" src="res/screen/android/ldpi-portrait.png" />
           <splash platform="android" qualifier="mdpi" src="res/screen/android/mdpi-portrait.png" />
           <splash platform="android" qualifier="hdpi" src="res/screen/android/hdpi-portrait.png" />
           <splash platform="android" qualifier="xhdpi" src="res/screen/android/xhdpi-portrait.png" />
              
          </platform>
          
          <!-- IOS Configuration -->
          <engine name="ios" />
          <platform name="ios">
           <icon platform="ios" src="res/icons/ios/icon-small.png" width="29" height="29" />
           <icon platform="ios" src="res/icons/ios/icon-small-2x.png" width="58" height="58" />
           <icon platform="ios" src="res/icons/ios/icon-40.png" width="40" height="40" />
           <icon platform="ios" src="res/icons/ios/icon-40-2x.png" width="80" height="80" />
           <icon platform="ios" src="res/icons/ios/icon-50.png" width="50" height="50" />
           <icon platform="ios" src="res/icons/ios/icon-50-2x.png" width="100" height="100" />
           <icon platform="ios" src="res/icons/ios/icon.png" width="57" height="57" />
           <icon platform="ios" src="res/icons/ios/icon-2x.png" width="114" eight="114" />
           <icon platform="ios" src="res/icons/ios/icon-60.png" width="60" height="60" />
           <icon platform="ios" src="res/icons/ios/icon-60-2x.png" width="120" height="120" />
           <icon platform="ios" src="res/icons/ios/icon-60-3x.png" width="180" height="180" />
           <icon platform="ios" src="res/icons/ios/icon-72.png" width="72" height="72" />
           <icon platform="ios" src="res/icons/ios/icon-72-2x.png" width="144" height="144" />
           <icon platform="ios" src="res/icons/ios/icon-76.png" width="76" height="76" />
           <icon platform="ios" src="res/icons/ios/icon-76-2x.png" width="152" height="152" />
           
           <splash platform="ios" src="res/screen/ios/Default.png" width="320" height="480" />
           <splash platform="ios" src="res/screen/ios/Default_2x.png" width="680" height="960" />
           <splash platform="ios" src="res/screen/ios/Default-568h_2x.png" width="640" height="1136" />
           <splash platform="ios" src="res/screen/ios/Default-Landscape.png" width="1024" height="768" />
           <splash platform="ios" src="res/screen/ios/Default-Landscape_2x.png" width="2048" height="1536" />
           <splash platform="ios" src="res/screen/ios/Default-Portrait.png" width="768" height="1004" />
           <splash platform="ios" src="res/screen/ios/Default-Portrait_2x.png" width="1536" height="2008" />
          </platform>
          <gap:config-file platform="ios" parent="ITSAppUsesNonExemptEncryption" mode="add">
        <false/>
        </gap:config-file>
          
          <splash src="splash.png" />
      
      
      </widget>