Skip to content

Commit

Permalink
chore(deps): update kotlin monorepo to v2 (major) (#152)
Browse files Browse the repository at this point in the history
* chore(deps): update kotlin monorepo to v2

* fix kotlin 2.0, fix warnings

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jordon de Hoog <jordon.dehoog@gmail.com>
  • Loading branch information
renovate[bot] and jordond committed May 23, 2024
1 parent c5ec7f3 commit cc7285f
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 36 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ demo/iosApp/iosApp.xcodeproj/*
!demo/iosApp/iosApp.xcodeproj/project.pbxproj
shared/shared.podspec
publish.sh
.kotlin
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ plugins {
alias(libs.plugins.multiplatform) apply false
alias(libs.plugins.cocoapods) apply false
alias(libs.plugins.compose) apply false
alias(libs.plugins.compose.compiler) apply false
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlin.android) apply false
Expand Down
7 changes: 2 additions & 5 deletions demo/composeApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl
plugins {
alias(libs.plugins.multiplatform)
alias(libs.plugins.compose)
alias(libs.plugins.compose.compiler)
alias(libs.plugins.cocoapods)
alias(libs.plugins.android.application)
}
Expand Down Expand Up @@ -130,8 +131,4 @@ compose.desktop {
packageVersion = "1.0.0"
}
}
}

compose.experimental {
web.application {}
}
}
8 changes: 6 additions & 2 deletions demo/composeApp/composeApp.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Pod::Spec.new do |spec|
spec.summary = 'Compose application framework'
spec.vendored_frameworks = 'build/cocoapods/framework/ComposeApp.framework'
spec.libraries = 'c++'
spec.ios.deployment_target = '11.0'
spec.ios.deployment_target = '11.0'


if !Dir.exist?('build/cocoapods/framework/ComposeApp.framework') || Dir.empty?('build/cocoapods/framework/ComposeApp.framework')
Expand All @@ -22,6 +22,10 @@ Pod::Spec.new do |spec|
Alternatively, proper pod installation is performed during Gradle sync in the IDE (if Podfile location is set)"
end

spec.xcconfig = {
'ENABLE_USER_SCRIPT_SANDBOXING' => 'NO',
}

spec.pod_target_xcconfig = {
'KOTLIN_PROJECT_PATH' => ':demo:composeApp',
'PRODUCT_MODULE_NAME' => 'ComposeApp',
Expand All @@ -46,5 +50,5 @@ Pod::Spec.new do |spec|
SCRIPT
}
]
spec.resources = ['build/compose/ios/ComposeApp/compose-resources']
spec.resources = ['build/compose/cocoapods/compose-resources']
end
18 changes: 0 additions & 18 deletions demo/iosApp/iosApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@
A93A953329CC810C00F8E227 /* Sources */,
A93A953429CC810C00F8E227 /* Frameworks */,
A93A953529CC810C00F8E227 /* Resources */,
05B5633B6342D18051296078 /* [CP] Copy Pods Resources */,
);
buildRules = (
);
Expand Down Expand Up @@ -156,23 +155,6 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
05B5633B6342D18051296078 /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-iosApp/Pods-iosApp-resources-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Copy Pods Resources";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-iosApp/Pods-iosApp-resources-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-iosApp/Pods-iosApp-resources.sh\"\n";
showEnvVarsInLog = 0;
};
D3665D361753A60B1A6EEEB7 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ android.nonTransitiveRClass=true
kotlin.mpp.stability.nowarn=true
kotlin.mpp.enableCInteropCommonization=true
kotlin.mpp.androidSourceSetLayoutVersion=2
kotlin.mpp.androidGradlePluginCompatibility.nowarn=true

# Compose
org.jetbrains.compose.experimental.uikit.enabled=true
Expand Down
5 changes: 3 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sdk-target = "33"
sdk-compile = "33"
sdk-min = "21"
agp = "8.4.1"
kotlin = "1.9.24"
kotlin = "2.0.0"
versions = "0.51.0"
compose-multiplatform = "1.6.10"
androidx-core-ktx = "1.13.1"
Expand All @@ -18,7 +18,7 @@ binaryCompatibility = "0.14.0"
dokka = "1.9.20"
publish = "0.28.0"
colormath = "3.5.0"
poko = "0.15.3"
poko = "0.16.0-beta01"

[libraries]
androidx-core = { group = "androidx.core", name = "core-ktx", version.ref = "androidx-core-ktx" }
Expand All @@ -35,6 +35,7 @@ espresso-core = { group = "androidx.test.espresso", name = "espresso-core", vers
[plugins]
multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
compose = { id = "org.jetbrains.compose", version.ref = "compose-multiplatform" }
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
cocoapods = { id = "org.jetbrains.kotlin.native.cocoapods", version.ref = "kotlin" }
android-application = { id = "com.android.application", version.ref = "agp" }
android-library = { id = "com.android.library", version.ref = "agp" }
Expand Down
3 changes: 1 addition & 2 deletions material-kolor/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
@file:Suppress("OPT_IN_USAGE")

plugins {
alias(libs.plugins.multiplatform)
alias(libs.plugins.compose)
alias(libs.plugins.compose.compiler)
alias(libs.plugins.android.library)
alias(libs.plugins.dokka)
alias(libs.plugins.publish)
Expand Down
12 changes: 5 additions & 7 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@ dependencyResolutionManagement {
}

plugins {
id("com.gradle.enterprise") version "3.17.4"
id("com.gradle.develocity") version "3.17.4"
}

gradleEnterprise {
if (System.getenv("CI") != null) {
buildScan {
publishAlways()
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
develocity {
buildScan {
publishing.onlyIf { context ->
context.buildResult.failures.isNotEmpty() && !System.getenv("CI").isNullOrEmpty()
}
}
}
Expand Down

0 comments on commit cc7285f

Please sign in to comment.