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