Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
64 lines (55 sloc) 1.64 KB
buildscript {
ext.kotlin_version = '1.3.21'
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
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.kotlin:kotlin-stdlib-jdk7:${kotlin_version}"
implementation "org.jetbrains.anko:anko-commons:0.10.4"
}
You can’t perform that action at this time.