-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
40 lines (33 loc) · 1.04 KB
/
build.gradle.kts
File metadata and controls
40 lines (33 loc) · 1.04 KB
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
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.objectbox)
}
val _compileSdkVersion: Int by rootProject.extra
val _targetSdkVersion: Int by rootProject.extra
android {
namespace = "io.objectbox.example"
compileSdk = _compileSdkVersion
compileOptions {
// While ObjectBox only requires Java 8, this is deprecated and
// new Android projects should use 11.
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
buildFeatures {
buildConfig = true
}
defaultConfig {
applicationId = "io.objectbox.example"
minSdk = 21
targetSdk = _targetSdkVersion
versionCode = 1
versionName = "1.0"
}
}
dependencies {
// For ObjectBox: optionally add Android database library with Admin (for debug builds only)
// https://docs.objectbox.io/data-browser
debugImplementation(libs.objectbox.android.admin)
releaseImplementation(libs.objectbox.android)
testImplementation(libs.junit)
}