summaryrefslogtreecommitdiff
path: root/app/build.gradle
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2014-04-09 17:07:48 +0200
committerParménides GV <parmegv@sdf.org>2014-04-09 17:15:17 +0200
commit51ff5a18f1f074e27e97d822745551a7e8fa068d (patch)
tree402e7dd42778a218635bb29a4c2dff93ea7f6525 /app/build.gradle
parent910b0e1746ab3f63e63808b198ad51fec5b635e5 (diff)
parentb5ba0abc1610dd4bf573ebcabc5e8f6ab0c9528f (diff)
Merge branch 'feature/implement-gradle-build-system-#4676' into develop
Diffstat (limited to 'app/build.gradle')
-rw-r--r--app/build.gradle61
1 files changed, 61 insertions, 0 deletions
diff --git a/app/build.gradle b/app/build.gradle
new file mode 100644
index 00000000..d9ff1fdf
--- /dev/null
+++ b/app/build.gradle
@@ -0,0 +1,61 @@
+apply plugin: 'android'
+
+android {
+ compileSdkVersion 19
+ buildToolsVersion "19.0.1"
+
+ defaultConfig {
+ minSdkVersion 14
+ targetSdkVersion 19
+
+ testPackageName "se.leap.bitmaskclient.test"
+ testInstrumentationRunner "android.test.InstrumentationTestRunner"
+ }
+
+ signingConfigs {
+ release
+ }
+
+ buildTypes {
+ release {
+ runProguard true
+ signingConfig signingConfigs.release
+ }
+ }
+
+ if (project.hasProperty('storeFile')) {
+ signingConfigs.release.storeFile = new File(storeFile)
+ }
+
+ if (project.hasProperty('storePassword')) {
+ signingConfigs.release.storePassword = storePassword
+ }
+
+ if (project.hasProperty('keyAlias')) {
+ signingConfigs.release.keyAlias = keyAlias
+ }
+
+ if (project.hasProperty('keyPassword')) {
+ signingConfigs.release.keyPassword = keyPassword
+ }
+
+ lintOptions {
+ abortOnError false
+ }
+
+ sourceSets {
+ main {
+ assets.srcDirs = ['assets', 'ovpnlibs/assets']
+ jniLibs.srcDirs = ['ovpnlibs/jniLibs']
+ jni.srcDirs = [] //disable automatic ndk-build
+ }
+ debug {
+ assets.srcDirs = ['src/debug/assets']
+ }
+ }
+ }
+
+dependencies {
+ androidTestCompile 'com.android.support:support-v4:+'
+ androidTestCompile 'com.jayway.android.robotium:robotium-solo:4.3.1'
+} \ No newline at end of file