-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy pathbuild.gradle
More file actions
51 lines (44 loc) · 1.35 KB
/
build.gradle
File metadata and controls
51 lines (44 loc) · 1.35 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
41
42
43
44
45
46
47
48
49
50
51
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'realm-android'
android {
//noinspection GroovyAssignabilityCheck
compileSdkVersion rootProject.sdkVersion
//noinspection GroovyAssignabilityCheck
buildToolsVersion rootProject.buildTools
defaultConfig {
applicationId 'io.realm.examples.kotlin'
//noinspection GroovyAssignabilityCheck
targetSdkVersion rootProject.sdkVersion
minSdkVersion rootProject.minSdkVersion
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled true
signingConfig signingConfigs.debug
}
debug {
minifyEnabled true
}
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
}
// This is added automatically if Kotlin is registered in the project, but Kotlin extension functions
// for Realm can be excluded if needed.
realm {
kotlinExtensionsEnabled = true
}
// enable @ParametersAreNonnullByDefault annotation. See https://blog.jetbrains.com/kotlin/2017/09/kotlin-1-1-50-is-out/
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
freeCompilerArgs = ["-Xjsr305=strict"]
}
}
dependencies {
implementation "org.jetbrains.anko:anko-commons:0.10.4"
}