-
Notifications
You must be signed in to change notification settings - Fork 82
/
build.gradle
59 lines (49 loc) · 1.54 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
apply plugin: 'com.android.application'
repositories {
jcenter()
}
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "com.github.ShinChven.migratetogradle"
minSdkVersion 9
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false // proGuard 现在改成了 minifyEnabled
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
proguardFiles 'proguard-project.txt'
}
debug {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
sourceSets { // 工程结构配置,如果你使用的是标准gradle 工程结构就需要把sourceSets 去掉
main {
java.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
jniLibs.srcDirs = ['libs'] // 配置此处才会打包jni 的.so 文件
jni.srcDirs=['jni']
manifest.srcFile 'AndroidManifest.xml'
}
}
}
/**
* https://gradle.org/docs/current/dsl/org.gradle.api.artifacts.dsl.DependencyHandler.html
*/
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.0'
compile 'com.android.support:support-v4:21.0.0'
compile(project(':LibModule')) // 包含module
}