-
Notifications
You must be signed in to change notification settings - Fork 2
/
common.gradle
97 lines (78 loc) · 2.34 KB
/
common.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-parcelize'
android {
compileSdk rootProject.ext.compileSdkVersion
defaultConfig {
minSdk rootProject.ext.minSdkVersion
targetSdk rootProject.ext.targetSdkVersion
multiDexEnabled true
vectorDrawables.useSupportLibrary true
vectorDrawables.generatedDensities = []
testApplicationId "allen.town.podcast.core.tests"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
kapt {
arguments {
arg("GOROUTER_MODULE_NAME", project.getName())
}
}
//阿里路由需要
javaCompileOptions {
annotationProcessorOptions {
arguments = [GOROUTER_MODULE_NAME: project.getName()]
}
}
flavorDimensions "market"
productFlavors {
fdroid {
dimension "market"
}
play {
dimension "market"
}
free {
dimension "market"
targetSdk rootProject.ext.targetFreeSdkVersion
}
}
}
packagingOptions {
exclude "META-INF/LICENSE.txt"
exclude "META-INF/NOTICE.txt"
// Extraneous jsoup files
exclude "META-INF/CHANGES"
exclude "META-INF/README.md"
resources.merges.add("simplelogger.properties")
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
testOptions {
animationsDisabled = true
unitTests {
includeAndroidResources = true
}
}
lintOptions {
disable "GradleDependency"
checkDependencies false
warningsAsErrors false
// true--只报告error
ignoreWarnings true
abortOnError true
checkGeneratedSources = false
disable 'Deprecation'
}
buildFeatures {
viewBinding true
buildConfig true
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
api "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
api "androidx.core:core-ktx:1.7.0"
api 'com.github.wyjsonGo.GoRouter:GoRouter-Api:2.5.1'
kapt 'com.github.wyjsonGo.GoRouter:GoRouter-Compiler:2.5.1'
}