Define versionCode and versionName in build.gradle instead of AndroidManifest.xml

This commit is contained in:
veyndan 2017-03-24 03:01:00 +00:00
parent ef9799ec07
commit 0d582100b3
2 changed files with 3 additions and 3 deletions

View file

@ -30,6 +30,8 @@ android {
defaultConfig { defaultConfig {
applicationId 'fr.free.nrw.commons' applicationId 'fr.free.nrw.commons'
versionCode 66
versionName '2.1'
minSdkVersion project.minSdkVersion minSdkVersion project.minSdkVersion
targetSdkVersion project.targetSdkVersion targetSdkVersion project.targetSdkVersion
} }

View file

@ -1,8 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
package="fr.free.nrw.commons" package="fr.free.nrw.commons">
android:versionCode="66"
android:versionName="2.1" >
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>