generated from frogobox/frogo-android-sdk
-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle.kts
99 lines (73 loc) · 2.54 KB
/
build.gradle.kts
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
98
99
plugins {
id("com.android.library")
id("org.jetbrains.kotlin.android")
id("com.google.devtools.ksp")
`maven-publish`
}
android {
compileSdk = ProjectSetting.PROJECT_COMPILE_SDK
namespace = ProjectSetting.PROJECT_LIB_ID_SDK
defaultConfig {
minSdk = ProjectSetting.PROJECT_MIN_SDK
multiDexEnabled = true
vectorDrawables.useSupportLibrary = true
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFile("consumer-rules.pro")
}
buildTypes {
getByName("release") {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
buildFeatures {
viewBinding = true
buildConfig = true
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of("17"))
}
}
}
dependencies {
api(project(DependencyGradle.FROGO_PATH_CORE_SDK))
api(project(DependencyGradle.FROGO_PATH_SDK_UTIL))
api(Androidx.Room.ktx)
api(Androidx.Room.runtime)
api(Androidx.Room.rxJava3)
api(Reactivex.rxAndroid3)
api(GitHub.chucker)
api(GitHub.glide)
api(GitHub.customActivityOnCrash)
ksp(Androidx.Lifecycle.compiler)
ksp(Androidx.Room.compiler)
ksp(GitHub.glideCompiler)
}
afterEvaluate {
publishing {
publications {
// Creates a Maven publication called "release".
register("release", MavenPublication::class) {
// Applies the component for the release build variant.
// NOTE : Delete this line code if you publish Native Java / Kotlin Library
from(components["release"])
// Library Package Name (Example : "com.frogobox.androidfirstlib")
// NOTE : Different GroupId For Each Library / Module, So That Each Library Is Not Overwritten
groupId = ProjectSetting.PROJECT_LIB_ID_SDK
// Library Name / Module Name (Example : "androidfirstlib")
// NOTE : Different ArtifactId For Each Library / Module, So That Each Library Is Not Overwritten
artifactId = ProjectSetting.MODULE_NAME_SDK
// Version Library Name (Example : "1.0.0")
version = ProjectSetting.PROJECT_VERSION_NAME
}
}
}
}