summaryrefslogtreecommitdiff
path: root/app/build.gradle
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2014-04-09 16:03:55 +0200
committerParménides GV <parmegv@sdf.org>2014-04-09 16:07:34 +0200
commit1684c8f398922065a97e7da4dac4ac6a33cc5218 (patch)
tree76a4b11ae0d7b217c088f3c2b8fc7e69a7b8ae0d /app/build.gradle
parentb9a2b085a8f508cd09e2639c70be845c992c4a3e (diff)
Back to the standard "app" module.
This return to "app" instead of "bitmask_android" is due to this reading: https://developer.android.com/sdk/installing/studio-build.html#projectStructure I'll have to tweak the final apk name in build.gradle.
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