| 7 |
| } |
| 8 | } |
| 9 | apply plugin: 'android' |
| 10 |
| 11 | repositories { |
| 12 | mavenCentral() |
| 13 | } |
| 14 |
| 15 | task nativeLibsToJar( |
| 16 | type: Zip, |
| 17 | description: 'create a jar archive of the native libs') { |
| 18 | destinationDir file("$buildDir/native-libs") |
| 19 | baseName 'native-libs' |
| 20 | extension 'jar' |
| 21 | from fileTree(dir: 'libs', include: '**/*.so') |
| 22 | into 'lib/' |
| 23 | } |
| 24 |
| 25 | tasks.withType(JavaCompile) { |
| 26 | options.encoding = "UTF-8" |
| 27 | } |
| 28 |
| 29 | tasks.withType(JavaCompile) { |
| 30 | compileTask -> compileTask.dependsOn(nativeLibsToJar) |
| 31 | } |
| 32 |
| 33 | dependencies { |
| 34 | compile 'com.google.android.gms:play-services:4.0.+' |
| 35 | compile 'net.hockeyapp.android:HockeySDK:3.0.1' |
| 36 | compile 'com.android.support:support-v4:19.0.+' |
| 37 | compile 'com.android.support:appcompat-v7:19.0.+' |
| 38 | compile fileTree(dir: "$buildDir/native-libs", include: 'native-libs.jar') |
| 39 | } |
| 40 |
| 41 | android { |
| 42 | compileSdkVersion 19 |
| 43 | buildToolsVersion '19.0.0' |
| 44 |
| 45 | signingConfigs { |
| 46 | debug { |
| 47 | storeFile file("debug.keystore") |
| 48 | } |
| 49 |
| 50 | release { |
| 51 | storeFile file("release.keystore") |
| 52 | } |
| 53 | } |
| 54 |
| 55 | buildTypes { |
| 56 | debug { |
| 57 | debuggable true |
| 58 | jniDebugBuild true |
| 59 | signingConfig signingConfigs.debug |
| 60 | } |
| 61 |
| 62 | release { |
| 63 | debuggable false |
| 64 | jniDebugBuild false |
| 65 | signingConfig signingConfigs.release |
| 66 | } |
| 67 | } |
| 68 |
| 69 | defaultConfig { |
| 70 | minSdkVersion 8 |
| 71 | targetSdkVersion 19 |
| 72 | } |
| 73 | } |
| 74 |