Skip to content

Commit

Permalink
Update to use compose compiler gradle plugin (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbro112 authored Nov 6, 2024
1 parent e7898ba commit d19daa3
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 37 deletions.
5 changes: 1 addition & 4 deletions distribution/sample/app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.compose.compiler)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.kotlin.serialization)
alias(libs.plugins.buildconfig)
Expand Down Expand Up @@ -61,10 +62,6 @@ android {
buildFeatures {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.compose.compiler.extension.get()
}
}

buildConfig {
Expand Down
10 changes: 5 additions & 5 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
androidx-navigation = "2.8.0-beta02"
androidx-test = "1.5.0"
androidx-test-ext = "1.1.5"
agp = "8.1.1"
agp = "8.5.2"
androidxactivity = "1.7.1"
compose-bom = "2024.09.03"
compose-compiler-extension = "1.5.10"
compose-bom = "2024.10.01"
detekt = "1.22.0"
kotlin = "1.9.22"
kotlin = "2.0.21"
kotlin-coroutines = "1.8.0"
kotlinpoet = "1.14.2"
kotlin-compile-testing = "1.5.0"
Expand All @@ -27,7 +26,7 @@ foundation-layout-android = "1.7.3"
emerge-gradle-plugin = "4.0.2"
emerge-performance = "2.1.2"
emerge-reaper = "1.0.0-rc03"
emerge-snapshots = "1.3.0-rc02"
emerge-snapshots = "1.3.0-rc03"
emerge-distribution = "0.0.1"

[plugins]
Expand All @@ -37,6 +36,7 @@ android-lint = { id = "com.android.lint", version.ref = "agp" }
android-test = { id = "com.android.test", version.ref = "agp" }
benchmark = { id = "androidx.benchmark", version.ref = "benchmark" }
buildconfig = "com.github.gmazzo.buildconfig:5.3.5"
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
detekt = { id = "io.gitlab.arturbosch.detekt", version.ref = "detekt" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
Expand Down
5 changes: 1 addition & 4 deletions performance/sample/app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.compose.compiler)
alias(libs.plugins.kotlin.android)
id("com.emergetools.android")
}
Expand Down Expand Up @@ -79,10 +80,6 @@ android {
buildFeatures {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.compose.compiler.extension.get()
}
}

dependencies {
Expand Down
5 changes: 1 addition & 4 deletions reaper/sample/app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.compose.compiler)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.kotlin.serialization)
alias(libs.plugins.buildconfig)
Expand Down Expand Up @@ -62,10 +63,6 @@ android {
buildFeatures {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.compose.compiler.extension.get()
}
}

buildConfig {
Expand Down
5 changes: 1 addition & 4 deletions reaper/sample/manuallyInitializedApp/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.compose.compiler)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.kotlin.serialization)
alias(libs.plugins.buildconfig)
Expand Down Expand Up @@ -60,10 +61,6 @@ android {
buildFeatures {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.compose.compiler.extension.get()
}
}

buildConfig {
Expand Down
5 changes: 1 addition & 4 deletions reaper/sample/stress/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.compose.compiler)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.kotlin.serialization)
alias(libs.plugins.buildconfig)
Expand Down Expand Up @@ -73,10 +74,6 @@ android {
buildFeatures {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.compose.compiler.extension.get()
}
}

buildConfig {
Expand Down
5 changes: 1 addition & 4 deletions snapshots/sample/app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.compose.compiler)
alias(libs.plugins.kotlin.android)
id("com.emergetools.android")
}
Expand Down Expand Up @@ -58,10 +59,6 @@ android {
buildFeatures {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.compose.compiler.extension.get()
}
}

dependencies {
Expand Down
5 changes: 1 addition & 4 deletions snapshots/sample/ui-module/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
alias(libs.plugins.android.library)
alias(libs.plugins.compose.compiler)
alias(libs.plugins.kotlin.android)
}

Expand All @@ -24,10 +25,6 @@ android {
buildFeatures {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.compose.compiler.extension.get()
}
}

dependencies {
Expand Down
5 changes: 1 addition & 4 deletions snapshots/snapshots/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import java.util.Date

plugins {
alias(libs.plugins.android.library)
alias(libs.plugins.compose.compiler)
alias(libs.plugins.grgit)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.kotlin.serialization)
Expand Down Expand Up @@ -38,10 +39,6 @@ android {
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.compose.compiler.extension.get()
}

// Ensures our version.txt is packaged in with release.
// Will be pulled in automatically to test APK upon build
sourceSets.getByName("main").resources.srcDir(metaInfResDir)
Expand Down

0 comments on commit d19daa3

Please sign in to comment.