Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix iOS build issue #24

Merged
merged 6 commits into from
May 23, 2024
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
6 changes: 6 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/ktlint-plugin.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/palantir-java-format.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build-logic/convention/src/main/kotlin/Versions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ object Versions {
const val versionCode = 2401

// https://developer.android.com/jetpack/androidx/releases/compose-compiler?hl=zh-cn
const val composeCompiler = "1.5.12"
const val composeCompiler = "1.5.14"

// jvmToolchain
const val jdkVersion = 17
Expand Down
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ allprojects {
}

gradle.taskGraph.whenReady {
tasks.forEach { task ->
tasks.forEach {
/* Encountering the “Unable to make progress running work” Error in Gradle? */
// gradle.startParameter.excludedTaskNames.addAll(listOf(":build-logic:convention:testClasses"))
if (task?.name?.contains(":testClasses", ignoreCase = false) == true) {
task.enabled = false
if (it.name.contains(":testClasses", ignoreCase = false)) {
it.enabled = false
}
}
}
Expand Down
22 changes: 13 additions & 9 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,9 @@ org.gradle.caching=true
org.gradle.configureondemand=true
org.gradle.configuration-cache=true

# Android
android.useAndroidX=true
android.nonTransitiveRClass=true
android.debug.obsoleteApi=true
# https://developer.android.com/build/releases/gradle-plugin?hl=zh-cn
# Turn on Precise resource shrinking
android.enableNewResourceShrinker.preciseShrinking=true
# Run 'aapt optimize' on resources to minimize their APK size impact.
android.enableResourceOptimizations=true
# This is needed for the JB Compose runtime to link on native targets. They also use this flag
# in their samples. Over time it should be removed once they figure out why it was needed.
kotlin.native.cacheKind=none

# Kotlin
kotlin.code.style=official
Expand All @@ -28,6 +22,16 @@ kotlin.mpp.androidSourceSetLayoutVersion=2
# Compose
#org.jetbrains.compose.experimental.wasm.enabled=true

# Android
android.useAndroidX=true
android.nonTransitiveRClass=true
android.debug.obsoleteApi=true
# https://developer.android.com/build/releases/gradle-plugin?hl=zh-cn
# Turn on Precise resource shrinking
android.enableNewResourceShrinker.preciseShrinking=true
# Run 'aapt optimize' on resources to minimize their APK size impact.
android.enableResourceOptimizations=true

# moko-resources
moko.resources.disableStaticFrameworkWarning=false

Expand Down
38 changes: 19 additions & 19 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[versions]
kotlin = "1.9.23"
kotlin = "1.9.24"
agp = "8.2.2"
redwood = "0.10.0"
redwood = "0.11.0"

androidx-activityCompose = "1.9.0"
androidx-appcompat = "1.6.1"
androidx-constraintlayout = "2.1.4"
androidx-core-ktx = "1.13.0"
androidx-material = "1.11.0"

jetpack-compose = "1.6.6"
jetbrains-compose = "1.6.2"
jetpackCompose = "1.6.6"
jetbrainsCompose = "1.6.2"

compose-material3 = "1.2.1"

Expand All @@ -28,21 +28,21 @@ androidx-material = { group = "com.google.android.material", name = "material",
androidx-constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "androidx-constraintlayout" }
androidx-activity-compose = { module = "androidx.activity:activity-compose", version.ref = "androidx-activityCompose" }

# -------- JetBrains Compose: https://github.com/JetBrains/compose-multiplatform/releases --------
jetbrains-compose-compiler = "org.jetbrains.compose.compiler:compiler:1.5.10.1"
jetbrains-compose-gradlePlugin = { module = "org.jetbrains.compose:compose-gradle-plugin", version.ref = "jetbrains-compose" }
jetbrains-compose-runtime = { module = "org.jetbrains.compose.runtime:runtime", version.ref = "jetbrains-compose" }
jetbrains-compose-runtime-saveable = { module = "org.jetbrains.compose.runtime:runtime-saveable", version.ref = "jetbrains-compose" }
jetbrains-compose-foundation = { module = "org.jetbrains.compose.foundation:foundation", version.ref = "jetbrains-compose" }
jetbrains-compose-ui = { module = "org.jetbrains.compose.ui:ui", version.ref = "jetbrains-compose" }
jetbrains-compose-ui-tooling = { module = "org.jetbrains.compose.ui:ui-tooling", version.ref = "jetbrains-compose" }
jetbrains-compose-ui-tooling-preview = { module = "org.jetbrains.compose.ui:ui-tooling-preview", version.ref = "jetbrains-compose" }
jetbrains-compose-material = { module = "org.jetbrains.compose.material:material", version.ref = "jetbrains-compose" }
jetbrains-compose-material3 = { module = "org.jetbrains.compose.material3:material3", version.ref = "jetbrains-compose" }
jetbrains-compose-animation = { module = "org.jetbrains.compose.animation:animation-core", version.ref = "jetbrains-compose" }
jetbrains-components-resources = { module = "org.jetbrains.compose.components:components-resources", version.ref = "jetbrains-compose" }
# JetBrains Compose: https://github.com/JetBrains/compose-multiplatform
jetbrains-compose-compiler = "org.jetbrains.compose.compiler:compiler:1.5.14"
jetbrains-compose-gradlePlugin = { module = "org.jetbrains.compose:compose-gradle-plugin", version.ref = "jetbrainsCompose" }
jetbrains-compose-runtime = { module = "org.jetbrains.compose.runtime:runtime", version.ref = "jetbrainsCompose" }
jetbrains-compose-runtime-saveable = { module = "org.jetbrains.compose.runtime:runtime-saveable", version.ref = "jetbrainsCompose" }
jetbrains-compose-foundation = { module = "org.jetbrains.compose.foundation:foundation", version.ref = "jetbrainsCompose" }
jetbrains-compose-ui = { module = "org.jetbrains.compose.ui:ui", version.ref = "jetbrainsCompose" }
jetbrains-compose-ui-tooling = { module = "org.jetbrains.compose.ui:ui-tooling", version.ref = "jetbrainsCompose" }
jetbrains-compose-ui-tooling-preview = { module = "org.jetbrains.compose.ui:ui-tooling-preview", version.ref = "jetbrainsCompose" }
jetbrains-compose-material = { module = "org.jetbrains.compose.material:material", version.ref = "jetbrainsCompose" }
jetbrains-compose-material3 = { module = "org.jetbrains.compose.material3:material3", version.ref = "jetbrainsCompose" }
jetbrains-compose-animation = { module = "org.jetbrains.compose.animation:animation-core", version.ref = "jetbrainsCompose" }
jetbrains-components-resources = { module = "org.jetbrains.compose.components:components-resources", version.ref = "jetbrainsCompose" }

# -------- redwood: https://github.com/cashapp/redwood --------
# Redwood: https://github.com/cashapp/redwood
redwood-compose = { module = "app.cash.redwood:redwood-compose", version.ref = "redwood" }
redwood-composeui = { module = "app.cash.redwood:redwood-composeui", version.ref = "redwood" }
redwood-widget-compose = { module = "app.cash.redwood:redwood-widget-compose", version.ref = "redwood" }
Expand All @@ -64,7 +64,7 @@ android-application = { id = "com.android.application", version.ref = "agp" }
android-library = { id = "com.android.library", version.ref = "agp" }
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
kotlin-cocoapods = { id = "org.jetbrains.kotlin.native.cocoapods", version.ref = "kotlin" }
jetbrains-compose = { id = "org.jetbrains.compose", version.ref = "jetbrains-compose" }
jetbrains-compose = { id = "org.jetbrains.compose", version.ref = "jetbrainsCompose" }

cashapp-redwood = { id = "app.cash.redwood", version.ref = "redwood" }

Expand Down
2 changes: 1 addition & 1 deletion gradle/moko.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
# https://repo.maven.apache.org/maven2/dev/icerock/moko/resources/
resources = "0.24.0-beta-4"
resources = "0.24.0-beta-5"

[plugins]

Expand Down
Loading