| 7 |
| } |
| 8 | } |
| 9 | apply plugin: 'com.android.application' |
| 10 |
| 11 | repositories { |
| 12 | mavenCentral() |
| 13 | } |
| 14 |
| 15 | tasks.withType(JavaCompile) { |
| 16 | options.encoding = "UTF-8" |
| 17 | } |
| 18 |
| 19 | dependencies { |
| 20 | compile 'com.android.support:support-v4:20.0.+' |
| 21 | compile 'com.google.android.gms:play-services:3.2.+' |
| 22 | compile 'net.hockeyapp.android:HockeySDK:3.0.2' |
| 23 | compile 'com.googlecode.mp4parser:isoparser:1.0.+' |
| 24 | } |
| 25 |
| 26 | android { |
| 27 | compileSdkVersion 21 |
| 28 | buildToolsVersion '21.1.1' |
| 29 |
| 30 | signingConfigs { |
| 31 | debug { |
| 32 | storeFile file("config/debug.keystore") |
| 33 | } |
| 34 |
| 35 | release { |
| 36 | storeFile file("config/release.keystore") |
| 37 | storePassword RELEASE_STORE_PASSWORD |
| 38 | keyAlias RELEASE_KEY_ALIAS |
| 39 | keyPassword RELEASE_KEY_PASSWORD |
| 40 | } |
| 41 | } |
| 42 |
| 43 | buildTypes { |
| 44 | debug { |
| 45 | debuggable true |
| 46 | jniDebuggable true |
| 47 | signingConfig signingConfigs.debug |
| 48 | } |
| 49 |
| 50 | release { |
| 51 | debuggable false |
| 52 | jniDebuggable false |
| 53 | signingConfig signingConfigs.release |
| 54 | } |
| 55 |
| 56 | foss { |
| 57 | debuggable false |
| 58 | jniDebuggable false |
| 59 | signingConfig signingConfigs.release |
| 60 | } |
| 61 | } |
| 62 |
| 63 | sourceSets.main { |
| 64 | jniLibs.srcDir 'libs' |
| 65 | jni.srcDirs = [] //disable automatic ndk-build call |
| 66 | } |
| 67 |
| 68 | sourceSets { |
| 69 | debug { |
| 70 | manifest.srcFile 'config/debug/AndroidManifest.xml' |
| 71 | } |
| 72 | release { |
| 73 | manifest.srcFile 'config/release/AndroidManifest.xml' |
| 74 | } |
| 75 | foss { |
| 76 | manifest.srcFile 'config/foss/AndroidManifest.xml' |
| 77 | } |
| 78 | } |
| 79 |
| 80 | defaultConfig { |
| 81 | minSdkVersion 8 |
| 82 | targetSdkVersion 21 |
| 83 | versionCode 380 |
| 84 | versionName "2.0.0" |
| 85 | } |
| 86 | } |
| 87 |