-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
82 lines (69 loc) · 1.87 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: "com.vanniktech.android.javadoc"
apply plugin: 'org.ysb33r.doxygen'
group = 'com.github.duangsuse'
android {
compileSdkVersion 28
defaultConfig {
minSdkVersion 14
targetSdkVersion 28
versionCode 4
versionName "1.4"
ndk {
abiFilters 'armeabi-v7a', 'x86', 'arm64-v8a', 'x86_64'
}
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt')
consumerProguardFiles 'proguard-rules.pro'
}
}
externalNativeBuild {
ndkBuild {
path "src/main/jni/Android.mk"
}
}
compileOptions {
targetCompatibility 1.8
sourceCompatibility 1.8
}
}
clean {
delete rootProject.buildDir
}
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath 'com.vanniktech:gradle-android-javadoc-plugin:0.3.0'
classpath 'org.ysb33r.gradle:doxygen:0.3.2'
}
}
doxygen {
generate_html true
source new File(projectDir, 'src/main/jni')
}
allprojects {
repositories {
google()
jcenter()
}
}
ext {
supportLibraryVersion = '28.+'
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
// 目前只用到了注解,为了不于其他库冲突(版本问题),这里只 compile
compileOnly "com.android.support:support-v4:$supportLibraryVersion"
androidTestImplementation('com.android.support.test:runner:0.5')
testImplementation 'junit:junit:4.12'
}