Skip to content

Commit

Permalink
Merge branch 'refs/heads/compose-1.7'
Browse files Browse the repository at this point in the history
# Conflicts:
#	compose-destinations-bottom-sheet/build.gradle.kts
#	compose-destinations-wear/build.gradle.kts
#	compose-destinations/build.gradle.kts
#	compose-destinations/src/main/java/com/ramcosta/composedestinations/DefaultNavHostEngine.kt
#	compose-destinations/src/main/java/com/ramcosta/composedestinations/spec/DestinationSpec.kt
#	compose-destinations/src/main/java/com/ramcosta/composedestinations/spec/NavGraphSpec.kt
#	compose-destinations/src/main/java/com/ramcosta/composedestinations/spec/Route.kt
#	gradle/libs.versions.toml
#	playground/app/build.gradle.kts
#	sample/build.gradle.kts
  • Loading branch information
raamcosta committed Jul 20, 2024
2 parents 8d577d5 + 21bcefc commit 0c873f4
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 37 deletions.
13 changes: 7 additions & 6 deletions compose-destinations-bottom-sheet/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ android {

defaultConfig {
minSdk = libs.versions.minSdk.get().toIntOrNull()
targetSdk = libs.versions.targetSdk.get().toIntOrNull()

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles.add(File("consumer-rules.pro"))
Expand All @@ -40,11 +39,13 @@ android {
}
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions.freeCompilerArgs += listOf(
"-opt-in=kotlin.RequiresOptIn",
"-opt-in=com.ramcosta.composedestinations.annotation.internal.InternalDestinationsApi"
)
kotlin {
compilerOptions {
freeCompilerArgs.addAll(
"-opt-in=kotlin.RequiresOptIn",
"-opt-in=com.ramcosta.composedestinations.annotation.internal.InternalDestinationsApi"
)
}
}

dependencies {
Expand Down
10 changes: 5 additions & 5 deletions compose-destinations-ksp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ java {
targetCompatibility = JavaVersion.VERSION_1_8
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions.freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"

kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
kotlin {
compilerOptions {
freeCompilerArgs.addAll("-opt-in=kotlin.RequiresOptIn")
}

jvmToolchain(8)
}

dependencies {
Expand Down
15 changes: 7 additions & 8 deletions compose-destinations-wear/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ android {

defaultConfig {
minSdk = 25
targetSdk = libs.versions.targetSdk.get().toIntOrNull()

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles.add(File("consumer-rules.pro"))
Expand All @@ -38,17 +37,17 @@ android {
buildFeatures {
compose = true
}

}

kotlin {
jvmToolchain(11)
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions.freeCompilerArgs += listOf(
"-opt-in=kotlin.RequiresOptIn",
"-opt-in=com.ramcosta.composedestinations.annotation.internal.InternalDestinationsApi"
)
compilerOptions {
freeCompilerArgs.addAll(
"-opt-in=kotlin.RequiresOptIn",
"-opt-in=com.ramcosta.composedestinations.annotation.internal.InternalDestinationsApi"
)
}
}

dependencies {
Expand Down
12 changes: 7 additions & 5 deletions compose-destinations/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@ android {
}
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions.freeCompilerArgs += listOf(
"-opt-in=kotlin.RequiresOptIn",
"-opt-in=com.ramcosta.composedestinations.annotation.internal.InternalDestinationsApi"
)
kotlin {
compilerOptions {
freeCompilerArgs.addAll(
"-opt-in=kotlin.RequiresOptIn",
"-opt-in=com.ramcosta.composedestinations.annotation.internal.InternalDestinationsApi"
)
}
}

dependencies {
Expand Down
7 changes: 3 additions & 4 deletions playground/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ plugins {
alias(libs.plugins.compose.compiler)
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions.freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
}

android {
namespace = "com.ramcosta.samples.playground"
compileSdk = libs.versions.compileSdk.get().toIntOrNull()
Expand Down Expand Up @@ -71,6 +67,9 @@ android {

kotlin {
jvmToolchain(11)
compilerOptions {
freeCompilerArgs.addAll("-opt-in=kotlin.RequiresOptIn")
}
}

dependencies {
Expand Down
9 changes: 4 additions & 5 deletions sample-wear/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
plugins {
id("com.android.application")
kotlin("android")
alias(libs.plugins.compose.compiler)
id("com.google.devtools.ksp") version libs.versions.ksp.get()
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions.freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
alias(libs.plugins.compose.compiler)
}

android {
Expand Down Expand Up @@ -53,6 +49,9 @@ android {

kotlin {
jvmToolchain(11)
compilerOptions {
freeCompilerArgs.addAll("-opt-in=kotlin.RequiresOptIn")
}
}

dependencies {
Expand Down
7 changes: 3 additions & 4 deletions sample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ plugins {
alias(libs.plugins.compose.compiler)
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions.freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
}

android {
namespace = "com.ramcosta.destinations.sample"
compileSdk = libs.versions.compileSdk.get().toIntOrNull()
Expand Down Expand Up @@ -53,6 +49,9 @@ android {

kotlin {
jvmToolchain(11)
compilerOptions {
freeCompilerArgs.addAll("-opt-in=kotlin.RequiresOptIn")
}
}

dependencies {
Expand Down

0 comments on commit 0c873f4

Please sign in to comment.