-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathbuild.gradle
executable file
·88 lines (69 loc) · 2.39 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
83
84
85
86
87
88
import com.flywith24.version_config.BuildConfig
import com.flywith24.version_config.dependencies.AndroidX
import com.flywith24.version_config.dependencies.Google
import com.flywith24.version_config.dependencies.Testing
import com.flywith24.version_config.dependencies.ThirdParty
plugins {
id "com.flywith24.version"
}
apply plugin: 'com.android.application'
android {
compileSdkVersion BuildConfig.compileSdkVersion
buildToolsVersion BuildConfig.buildToolsVersion
defaultConfig {
applicationId "com.kunminx.jetpack_j2k"
minSdkVersion BuildConfig.minSdkVersion
targetSdkVersion BuildConfig.targetSdkVersion
versionCode BuildConfig.versionCode
versionName BuildConfig.versionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
repositories {
flatDir {
dirs 'libs'
}
}
dataBinding {
enabled = true
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
testImplementation(Testing.jUnit)
androidTestImplementation(Testing.androidJunit)
androidTestImplementation(Testing.androidRunner)
androidTestImplementation(Testing.espresso)
implementation project(':architecture')
implementation project(':jetpack_java')
implementation project(':jetpack_kotlin')
implementation project(':common_res')
compileOnly(AndroidX.appcompat)
compileOnly(AndroidX.constraintlayout)
compileOnly(AndroidX.recyclerView)
compileOnly(Google.material)
compileOnly(AndroidX.Lifecycle.lifecycleRuntime)
compileOnly(AndroidX.Lifecycle.commonJava8)
compileOnly(AndroidX.Lifecycle.extensions)
compileOnly(AndroidX.Lifecycle.viewModel)
compileOnly(AndroidX.Lifecycle.liveData)
compileOnly(AndroidX.Navigation.runtime)
implementation(Google.gson)
implementation(ThirdParty.permission)
implementation(ThirdParty.Glide.glide)
annotationProcessor(ThirdParty.Glide.compiler)
}