2013-10-25 11:19:00 -04:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
dependencies {
|
2014-02-04 13:36:55 -05:00
|
|
|
classpath 'com.android.tools.build:gradle:0.8.+'
|
2013-10-25 11:19:00 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
apply plugin: 'android'
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
task nativeLibsToJar(
|
|
|
|
type: Zip,
|
|
|
|
description: 'create a jar archive of the native libs') {
|
|
|
|
destinationDir file("$buildDir/native-libs")
|
|
|
|
baseName 'native-libs'
|
|
|
|
extension 'jar'
|
|
|
|
from fileTree(dir: 'libs', include: '**/*.so')
|
|
|
|
into 'lib/'
|
|
|
|
}
|
|
|
|
|
2013-12-20 14:25:49 -05:00
|
|
|
tasks.withType(JavaCompile) {
|
2013-10-25 11:19:00 -04:00
|
|
|
options.encoding = "UTF-8"
|
|
|
|
}
|
|
|
|
|
2013-12-20 14:25:49 -05:00
|
|
|
tasks.withType(JavaCompile) {
|
2013-10-25 11:19:00 -04:00
|
|
|
compileTask -> compileTask.dependsOn(nativeLibsToJar)
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2014-02-04 13:36:55 -05:00
|
|
|
compile 'com.google.android.gms:play-services:4.1.+'
|
2013-11-04 07:31:01 -05:00
|
|
|
compile 'net.hockeyapp.android:HockeySDK:3.0.1'
|
|
|
|
compile 'com.android.support:support-v4:19.0.+'
|
2013-12-20 14:25:49 -05:00
|
|
|
compile 'com.android.support:appcompat-v7:19.0.+'
|
|
|
|
compile fileTree(dir: "$buildDir/native-libs", include: 'native-libs.jar')
|
2013-10-25 11:19:00 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2013-11-04 07:31:01 -05:00
|
|
|
compileSdkVersion 19
|
2014-02-04 13:36:55 -05:00
|
|
|
buildToolsVersion '19.0.1'
|
2013-12-20 14:25:49 -05:00
|
|
|
|
|
|
|
signingConfigs {
|
|
|
|
debug {
|
|
|
|
storeFile file("debug.keystore")
|
|
|
|
}
|
|
|
|
|
|
|
|
release {
|
|
|
|
storeFile file("release.keystore")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
debug {
|
|
|
|
debuggable true
|
|
|
|
jniDebugBuild true
|
|
|
|
signingConfig signingConfigs.debug
|
|
|
|
}
|
|
|
|
|
|
|
|
release {
|
|
|
|
debuggable false
|
|
|
|
jniDebugBuild false
|
|
|
|
signingConfig signingConfigs.release
|
|
|
|
}
|
|
|
|
}
|
2013-10-25 11:19:00 -04:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
minSdkVersion 8
|
2013-11-04 07:31:01 -05:00
|
|
|
targetSdkVersion 19
|
2013-10-25 11:19:00 -04:00
|
|
|
}
|
|
|
|
}
|