This repository was archived by the owner on Aug 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
75 lines (66 loc) · 2.01 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
plugins {
id("com.android.application")
kotlin("android")
}
android {
namespace = "co.touchlab.kampkit.android"
compileSdk = libs.versions.compileSdk.get().toInt()
defaultConfig {
applicationId = "co.touchlab.kampkit"
minSdk = libs.versions.minSdk.get().toInt()
targetSdk = libs.versions.targetSdk.get().toInt()
versionCode = 1
versionName = "1.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
getByName("release") {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
compileOptions {
isCoreLibraryDesugaringEnabled = true
}
lint {
warningsAsErrors = false
abortOnError = true
}
buildFeatures {
compose = true
}
composeOptions {
kotlinCompilerExtensionVersion = libs.versions.composeCompiler.get()
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
}
val remoteBuild = false
if (remoteBuild) {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/[your org]/[your repo]")
credentials {
username = project.property("GITHUB_PACKAGES_USERNAME") as String
password = project.property("GITHUB_PACKAGES_PASSWORD") as String
}
}
}
}
val GROUP:String by project
val LIBRARY_VERSION:String by project
dependencies {
if (remoteBuild) {
implementation("${GROUP}:analytics-android-debug:${LIBRARY_VERSION}.+")
implementation("${GROUP}:breeds-android-debug:${LIBRARY_VERSION}.+")
} else {
implementation(project(":analytics"))
implementation(project(":breeds"))
}
implementation(libs.bundles.app.ui)
implementation(libs.koin.android)
coreLibraryDesugaring(libs.android.desugaring)
}