-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmodule.gradle
83 lines (80 loc) · 2.52 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
75
76
77
78
79
80
81
apply plugin: 'com.android.library'
/*apply plugin: 'com.novoda.bintray-release'*/
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
android {
compileSdkVersion versions.compileSdk
//resourcePrefix getMoudleResourcePrefix()
defaultConfig {
minSdkVersion versions.minSdk
targetSdkVersion versions.targetSdk
vectorDrawables.useSupportLibrary = true
javaCompileOptions {
annotationProcessorOptions {
arguments = [AROUTER_MODULE_NAME: project.getName()]
//AROUTER_GENERATE_DOC: "enable",
}
}
ndk {
//设置支持的SO库架构
abiFilters 'armeabi-v7a' //, 'x86','armeabi', 'armeabi-v7a', 'x86_64', 'arm64-v8a'
}
}
compileOptions {
sourceCompatibility versions.java
targetCompatibility versions.java
}
sourceSets {
main {
if (ModuleDebug) {
manifest.srcFile 'src/main/AndroidManifest.xml'
java.srcDirs = ['src/app/java', 'src/main/java']
res.srcDirs = ['src/app/res', 'src/main/res']
} else {
manifest.srcFile 'src/main/AndroidManifest.xml'
java.srcDirs = ['src/main/java']
res.srcDirs = ['src/main/res']
}
}
}
lintOptions {
abortOnError false
}
buildFeatures{
dataBinding true
}
}
sourceCompatibility = "7"
targetCompatibility = "7"
/*publish {
repoName = 'maven'
userOrg = 'ooftf' // bintray注册的用户名
groupId = 'com.ooftf'
artifactId = "master-${project.getName()}"// bintray创建的package
publishVersion = versions.master
desc = 'nothing'
bintrayUser = 'ooftf'
bintrayKey = LocalBintrayKey()
dryRun = false
}*/
tasks.withType(Javadoc) {
enabled = false
options.addStringOption('Xdoclint:none', '-quiet')
options.addStringOption('encoding', 'UTF-8')
options.addStringOption('charSet', 'UTF-8')
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
androidTestImplementation test.runner
androidTestImplementation test.espresso
testImplementation test.junit
implementation androidx.constraintLayout
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$versions.kotlin"
kapt deps.ARouterCompiler
if (maven) {
implementation "com.ooftf:master-service:$versions.master"
} else {
implementation project(':service')
}
}