Sign APK with Gradle

pull/14/head 4.6.8
Alex Baker 12 years ago
parent 1b575faf45
commit 7b3f8ddfc3

@ -22,13 +22,28 @@ android {
targetSdkVersion 17 targetSdkVersion 17
} }
signingConfigs {
release
}
buildTypes { buildTypes {
release { release {
runProguard true runProguard true
proguardFile 'proguard.cfg' proguardFile 'proguard.cfg'
proguardFile getDefaultProguardFile('proguard-android.txt') proguardFile getDefaultProguardFile('proguard-android.txt')
signingConfig signingConfigs.release
} }
} }
if (project.hasProperty('keyAlias') &&
project.hasProperty('storeFile') &&
project.hasProperty('storePassword') &&
project.hasProperty('keyPassword')) {
android.signingConfigs.release.keyAlias = keyAlias
android.signingConfigs.release.storeFile = file(storeFile)
android.signingConfigs.release.storePassword = storePassword
android.signingConfigs.release.keyPassword = keyPassword
}
} }
dependencies { dependencies {

@ -7,7 +7,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.tasks" package="org.tasks"
android:versionName="4.6.8" android:versionName="4.6.8"
android:versionCode="316"> android:versionCode="317">
<!-- widgets, alarms, and services will break if Astrid is installed on SD card --> <!-- widgets, alarms, and services will break if Astrid is installed on SD card -->
<!-- android:installLocation="internalOnly"> --> <!-- android:installLocation="internalOnly"> -->

Loading…
Cancel
Save