Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import java.time.Duration
import com.android.build.gradle.BaseExtension
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext {
kotlin_version = '2.2.0'
}
repositories {
mavenCentral()
google()
Expand All @@ -14,6 +18,7 @@ buildscript {
// For displaying method/field counts when building with Gradle:
// https://github.com/KeepSafe/dexcount-gradle-plugin
classpath("com.getkeepsafe.dexcount:dexcount-gradle-plugin:4.0.0")
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down Expand Up @@ -71,6 +76,11 @@ subprojects { subproject ->
plugins.withId("com.android.library") {
configureAndroidModule(subproject)
}
tasks.withType(KotlinCompile).configureEach {
compilerOptions {
jvmTarget = JvmTarget.JVM_1_8
}
}
tasks.withType(JavaCompile).configureEach {
// enable deprecation checks
options.compilerArgs += "-Xlint:deprecation"
Expand Down
1 change: 1 addition & 0 deletions contract-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id("com.android.application")
// make sure this line comes *after* you apply the Android plugin
id("com.getkeepsafe.dexcount")
id 'org.jetbrains.kotlin.android'
}

android {
Expand Down
1 change: 1 addition & 0 deletions example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id("com.android.application")
// make sure this line comes *after* you apply the Android plugin
id("com.getkeepsafe.dexcount")
id 'org.jetbrains.kotlin.android'
}

android {
Expand Down
1 change: 1 addition & 0 deletions launchdarkly-android-client-sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ plugins {
id("signing")
id("maven-publish")
id("com.getkeepsafe.dexcount")
id 'org.jetbrains.kotlin.android'
}

group = "com.launchdarkly"
Expand Down
2 changes: 1 addition & 1 deletion shared-test-code/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

plugins {
id("com.android.library")
id("com.getkeepsafe.dexcount")
id 'org.jetbrains.kotlin.android'
}

group = "com.launchdarkly"
Expand Down