-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
45 lines (33 loc) · 1.68 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
//ext.objectboxVersion = "4.2.0" // For Groovy build scripts
val objectboxVersion by extra("4.2.0") // For KTS build scripts
val kotlin_version by extra("2.1.0") // Update to the latest version
val hilt_version by extra("2.56") // Update to the latest version,based on https://github.com/piashcse/Hilt-MVVM-Compose-Movie/blob/master/gradle/libs.versions.toml
repositories {
mavenCentral()
}
dependencies {
//base?
classpath("com.android.tools.build:gradle:8.9.2")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21")
//object box deps
classpath("io.objectbox:objectbox-gradle-plugin:$objectboxVersion")
//hilt must have
classpath("com.google.dagger:hilt-android-gradle-plugin:$hilt_version")//must at least 2.53 with kotlin 2.1 else error.
}
}
/**
*/
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.kotlin.android) apply false
//realm nosql must
//id("com.android.application") version "7.0.4" apply false
//id("com.android.library") version "7.0.4" apply false
//id("org.jetbrains.kotlin.android") version "2.1.0" apply false
//id("io.realm.kotlin") version "1.16.0" apply false//src,https://www.mongodb.com/docs/atlas/device-sdks/sdk/kotlin/install/#std-label-kotlin-install-android
//dependency,eg from official,https://developer.android.com/training/dependency-injection/hilt-android#kts
id("com.google.dagger.hilt.android") version "2.53" apply false
id("com.android.library") version "7.4.0" apply false
}