-
Notifications
You must be signed in to change notification settings - Fork 98
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
41 lines (34 loc) · 1013 Bytes
/
build.gradle.kts
File metadata and controls
41 lines (34 loc) · 1013 Bytes
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
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.daocompat"
compileSdk = _compileSdkVersion
buildFeatures {
buildConfig = true
}
defaultConfig {
applicationId = "io.objectbox.example.daocompat"
minSdk = 21
targetSdk = _targetSdkVersion
versionCode = 1
versionName = "1.0"
javaCompileOptions {
annotationProcessorOptions {
arguments += mapOf("objectbox.daoCompat" to "true")
}
}
}
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
}
}
dependencies {
implementation(libs.objectbox.daocompat)
}