android - How to release Product flavours demo vs full in play store -


i want release 2 apks demo_release.apk , full_release.apk play store

but getting error change versioncode of app

how manage version codes 2 different versions

i have app_release.apk available in play store versioncode 52.

what want release both apks demo , full version in play store. confused how works , how users able download demo , full version of app

this build.gradle file

apply plugin: 'com.android.application'  allprojects { repositories {     jcenter()     maven {         url "https://maven.google.com"     }   }  }  android { compilesdkversion 26 buildtoolsversion '25.0.3'  defaultconfig {     applicationid "com.credihealth.android"     minsdkversion 16     targetsdkversion 26     versioncode 52     versionname "4.2.1.1" }  buildtypes {     release {         minifyenabled true         proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'     }     debug {         debuggable true     } }  productflavors {      demo {         applicationidsuffix ".demo"     }      full {         applicationidsuffix ".full"     } } }   repositories { mavencentral() flatdir {     dirs 'libs' }       }  dependencies { compile(name: "youtube_player_api", ext: "jar") // line must included integrate firebase // line must included use fcm  compile 'com.android.support:appcompat-v7:26.0.1' compile 'com.android.support:design:26.0.1' compile 'com.android.support:recyclerview-v7:26.0.1' compile 'com.android.support:palette-v7:26.0.1' compile 'com.android.support:cardview-v7:26.0.1' compile 'com.squareup.retrofit:retrofit:1.9.0' compile 'com.squareup.okhttp:okhttp:2.3.0' compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.4' compile 'com.roomorama:caldroid:2.2.1' compile 'com.facebook.android:facebook-android-sdk:4.7.0' compile 'com.uncopt:android.justified:1.0' compile 'com.yayandroid:locationmanager:2.0.3' compile 'com.google.android.gms:play-services-plus:11.0.1' compile 'com.google.android.gms:play-services-location:11.0.1' compile 'com.google.android.gms:play-services-auth:11.0.1' compile 'com.google.android.gms:play-services-analytics:11.0.1' compile 'com.google.android.gms:play-services-maps:11.0.1' compile 'com.hbb20:ccp:1.7.6' compile 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1' compile 'com.github.aakira:expandable-layout:1.6.0@aar' compile 'com.google.firebase:firebase-core:11.0.1' compile 'com.google.firebase:firebase-messaging:11.0.1' compile 'com.stepstone.stepper:material-stepper:3.3.0' compile 'com.android.support.constraint:constraint-layout:1.0.2' fullcompile 'com.twilio:video-android:1.3.0'  }   apply plugin: 'com.google.gms.google-services' 

how manage version codes 2 different versions

you can customize version code each flavor.
example:

productflavors {     demo {         applicationidsuffix ".demo"         versioncode xx     }     full {         applicationidsuffix ".full"         versioncode xx     } } 

what want release both apks demo , full version in play store. confused how works , how users able download demo , full version of app

it not related build.gradle config , depends choices.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -