forked from byhook/opengles4android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
module.gradle
74 lines (62 loc) · 2.21 KB
/
module.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
if (library.toBoolean()) {
apply plugin: 'com.android.library'
} else {
apply plugin: 'com.android.application'
}
android {
//构建版本
compileSdkVersion rootProject.ext.android.compileSdkVersion
//默认的配置
defaultConfig {
minSdkVersion rootProject.ext.android.minSdkVersion
targetSdkVersion rootProject.ext.android.targetSdkVersion
versionCode rootProject.ext.android.versionCode
versionName rootProject.ext.android.versionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
ndk {
abiFilters "armeabi-v7a","arm64-v8a"
}
javaCompileOptions {
annotationProcessorOptions {
arguments = [AROUTER_MODULE_NAME: project.getName()]
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dexOptions {
javaMaxHeapSize "4g"
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}
sourceSets {
main {
//清单配置
if (library.toBoolean()) {
manifest.srcFile 'src/main/release/AndroidManifest.xml'
} else {
manifest.srcFile 'src/main/debug/AndroidManifest.xml'
}
//库地址
java.srcDirs = ['src/main/java', 'src/main/aidl']
jniLibs.srcDirs = ['libs']
}
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation "androidx.core:core-ktx:${versions.coreKtxVersion}"
implementation "androidx.appcompat:appcompat:${versions.appcompatVersion}"
implementation "com.google.android.material:material:${versions.materialVersion}"
implementation "androidx.constraintlayout:constraintlayout:${versions.constraintlayoutVersion}"
testImplementation "junit:junit:${versions.junitVersion}"
androidTestImplementation "androidx.test.ext:junit:${versions.junitExtVersion}"
androidTestImplementation "androidx.test.espresso:espresso-core:${versions.espressoVersion}"
implementation project(':common-base')
}