mirror of
https://github.com/schwabe/ics-openvpn.git
synced 2024-09-20 12:02:28 +02:00
Add signing configuration for gradle
This commit is contained in:
parent
5895203271
commit
8e1748eb0f
26
build.gradle
26
build.gradle
@ -34,20 +34,34 @@ android {
|
||||
instrumentTest.setRoot('tests')
|
||||
}
|
||||
|
||||
|
||||
signingConfigs {
|
||||
release
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
storeFile file("/Users/arne/software/android.keystore")
|
||||
storePassword "$System.env.ICSOPENVPNSIGNPW"
|
||||
keyAlias "singkey"
|
||||
keyPassword "$System.env.ICSOPENVPNSIGNPW"
|
||||
signingConfig signingConfigs.release
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ~/.gradle/gradle.properties
|
||||
if (project.hasProperty('keystoreFile') &&
|
||||
project.hasProperty('keystorePassword') &&
|
||||
project.hasProperty('keystoreAliasPassword')) {
|
||||
android.signingConfigs.release.storeFile = file(keystoreFile)
|
||||
android.signingConfigs.release.storePassword = keystorePassword
|
||||
android.signingConfigs.release.keyPassword = keystoreAliasPassword
|
||||
android.signingConfigs.release.keyAlias = keystoreAlias
|
||||
} else {
|
||||
buildTypes.release.signingConfig = null
|
||||
}
|
||||
|
||||
//http://stackoverflow.com/questions/16683775/include-so-library-in-apk-in-android-studio
|
||||
|
||||
//http://stackoverflow.com/questions/16683775/include-so-library-in-apk-in-android-studio
|
||||
tasks.withType(com.android.build.gradle.tasks.PackageApplication) { pkgTask ->
|
||||
pkgTask.jniDir new File(buildDir, 'native-libs')
|
||||
}
|
||||
|
||||
clean.dependsOn 'cleanCopyNativeLibs'
|
Loading…
Reference in New Issue
Block a user