-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
46 lines (36 loc) · 914 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.12.1'
}
}
apply plugin: 'android'
android {
buildToolsVersion "20"
compileSdkVersion 20
defaultConfig {
versionCode 1
versionName "1.0"
minSdkVersion 14
targetSdkVersion 20
applicationId "com.aaa.bbb"
}
sourceSets {
main {
// Prevent gradle from building native code.
// Gradle support for native code is not complete yet, use manual build.
jni.srcDirs = []
jniLibs.srcDir 'build/native/libs'
}
}
}
task buildNativeCode (type: Exec) {
workingDir './src/main/jni'
commandLine './build.sh'
}
preBuild.dependsOn buildNativeCode
task appStart(type: Exec, dependsOn: ':installDebug') {
commandLine 'adb', 'shell', 'am', 'start', '-n', 'com.aaa.bbb/.MainActivity'
}