summaryrefslogtreecommitdiff
path: root/main/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'main/build.gradle')
-rw-r--r--main/build.gradle123
1 files changed, 123 insertions, 0 deletions
diff --git a/main/build.gradle b/main/build.gradle
new file mode 100644
index 00000000..bb40442a
--- /dev/null
+++ b/main/build.gradle
@@ -0,0 +1,123 @@
+buildscript {
+ repositories {
+ mavenCentral()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:0.9.+'
+ }
+}
+
+apply plugin: 'android'
+
+repositories {
+ mavenCentral()
+}
+
+dependencies {
+ compile 'com.intellij:annotations:12.0'
+}
+
+android {
+ compileSdkVersion 19
+ buildToolsVersion "19.0.3"
+
+ defaultConfig {
+ minSdkVersion 14
+ targetSdkVersion 19
+ versionCode = 91
+ versionName = "0.6.10"
+ }
+
+ sourceSets {
+ main {
+ assets.srcDirs = ['src/main/assets', 'ovpnlibs/assets']
+ jniLibs.srcDirs = ['ovpnlibs/jniLibs']
+ jni.srcDirs = [] //disable automatic ndk-build
+ }
+
+ ovpn3 {
+
+ }
+ }
+
+ /*
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_7
+ targetCompatibility JavaVersion.VERSION_1_7
+ }*/
+
+ signingConfigs {
+ release
+ }
+
+ lintOptions {
+ enable 'BackButton', 'EasterEgg', 'StopShip', 'IconExpectedSize'
+ disable 'MissingTranslation'
+ }
+
+ buildTypes {
+ release {
+ signingConfig signingConfigs.release
+ }
+ }
+
+
+ productFlavors {
+ ovpn3
+
+ normal
+
+ /*
+ x86 {
+ versionCode Integer.parseInt("6" + defaultConfig.versionCode)
+ ndk {
+ abiFilter "x86"
+ }
+ }
+
+ mips {
+ versionCode Integer.parseInt("4" + defaultConfig.versionCode)
+ ndk {
+ abiFilter "mips"
+ }
+ }
+
+ armv7 {
+ versionCode Integer.parseInt("2" + defaultConfig.versionCode)
+ ndk {
+ abiFilter "armeabi-v7a"
+ }
+ }
+
+ arm {
+ versionCode Integer.parseInt("1" + defaultConfig.versionCode)
+ ndk {
+ abiFilter "armeabi"
+ }
+ }
+
+ fat
+ */
+ }
+
+
+}
+
+// ~/.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 {
+ android.buildTypes.release.signingConfig = null
+}
+
+/*tasks.withType(com.android.build.gradle.tasks.PackageApplication) { pkgTask ->
+ pkgTask.jniFolders = new HashSet<File>()
+ pkgTask.jniFolders.add(new File(buildDir, 'native-libs'))
+}
+*/
+