Skip to content

Commit

Permalink
Upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamsinghshubham777 committed Mar 30, 2024
1 parent a68f4dc commit 15c5176
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 45 deletions.
13 changes: 12 additions & 1 deletion adapt/adapt.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ Pod::Spec.new do |spec|
spec.ios.deployment_target = '11.0'


if !Dir.exist?('build/cocoapods/framework/adapt.framework') || Dir.empty?('build/cocoapods/framework/adapt.framework')
raise "
Kotlin framework 'adapt' doesn't exist yet, so a proper Xcode project can't be generated.
'pod install' should be executed after running ':generateDummyFramework' Gradle task:
./gradlew :adapt:generateDummyFramework
Alternatively, proper pod installation is performed during Gradle sync in the IDE (if Podfile location is set)"
end

spec.pod_target_xcconfig = {
'KOTLIN_PROJECT_PATH' => ':adapt',
'PRODUCT_MODULE_NAME' => 'adapt',
Expand All @@ -35,5 +46,5 @@ Pod::Spec.new do |spec|
SCRIPT
}
]
spec.resources = ['build/compose/ios/adapt/compose-resources']
spec.resources = ['build\compose\ios\adapt\compose-resources']
end
8 changes: 1 addition & 7 deletions adapt/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ plugins {

@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
kotlin {
targetHierarchy.default()
applyDefaultHierarchyTemplate()
androidTarget {
compilations.all {
kotlinOptions {
Expand Down Expand Up @@ -89,12 +89,6 @@ kotlin {
}
}

// TODO: Remove this when JetBrains Compose supports Kotlin 1.9.10
compose {
kotlinCompilerPlugin.set(dependencies.compiler.forKotlin("1.9.0"))
kotlinCompilerPluginArgs.add("suppressKotlinVersionCompatibilityCheck=1.9.10")
}

android {
namespace = "design.adapt"
compileSdk = 34
Expand Down
17 changes: 11 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,23 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

#Gradle
# Gradle
org.gradle.jvmargs=-Xmx2048M -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options\="-Xmx2048M"
#Kotlin
# Kotlin
kotlin.code.style=official
kotlin.js.compiler=ir
#MPP
# MPP
kotlin.mpp.enableCInteropCommonization=true
kotlin.mpp.androidSourceSetLayoutVersion=2
#Compose
# Native
# To avoid messages like: "The following Kotlin/Native targets cannot be built on this machine and
# are disabled: iosArm64, iosSimulatorArm64, iosX64"
kotlin.native.ignoreDisabledTargets=true
# Compose
org.jetbrains.compose.experimental.uikit.enabled=true
org.jetbrains.compose.experimental.jscanvas.enabled=true
#Android
# Android
android.useAndroidX=true
android.nonTransitiveRClass=true
# To avoid messages like: "Kotlin Multiplatform <-> Android Gradle Plugin compatibility issue"
kotlin.mpp.androidGradlePluginCompatibility.nowarn=true
10 changes: 5 additions & 5 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[versions]
agp = "8.1.1"
androidx-activityCompose = "1.7.2"
agp = "8.3.1"
androidx-activityCompose = "1.8.2"
androidx-appcompat = "1.6.1"
compose = "1.5.0"
compose-compiler = "1.5.2" # This needs to be at least 1.5.2 (reason: https://github.com/JetBrains/compose-multiplatform/issues/3531#issuecomment-1690831975)
kotlin = "1.9.10"
compose = "1.6.10-dev1551"
compose-compiler = "1.5.11"
kotlin = "1.9.23"
maven-publish = "0.25.3"

[libraries]
Expand Down
20 changes: 2 additions & 18 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
#
# Copyright 2023 Shubham Singh
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#


#Sat Mar 30 18:45:32 IST 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
8 changes: 1 addition & 7 deletions sample/composeApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ plugins {

@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
kotlin {
targetHierarchy.default()
applyDefaultHierarchyTemplate()
androidTarget {
compilations.all {
kotlinOptions {
Expand Down Expand Up @@ -109,12 +109,6 @@ kotlin {
}
}

// TODO: Remove this when JetBrains Compose supports Kotlin 1.9.10
compose {
kotlinCompilerPlugin.set(dependencies.compiler.forKotlin("1.9.0"))
kotlinCompilerPluginArgs.add("suppressKotlinVersionCompatibilityCheck=1.9.10")
}

android {
namespace = "design.adapt"
compileSdk = 34
Expand Down
13 changes: 12 additions & 1 deletion sample/composeApp/composeApp.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ Pod::Spec.new do |spec|
spec.ios.deployment_target = '11.0'


if !Dir.exist?('build/cocoapods/framework/ComposeApp.framework') || Dir.empty?('build/cocoapods/framework/ComposeApp.framework')
raise "
Kotlin framework 'ComposeApp' doesn't exist yet, so a proper Xcode project can't be generated.
'pod install' should be executed after running ':generateDummyFramework' Gradle task:
./gradlew :sample:composeApp:generateDummyFramework
Alternatively, proper pod installation is performed during Gradle sync in the IDE (if Podfile location is set)"
end

spec.pod_target_xcconfig = {
'KOTLIN_PROJECT_PATH' => ':sample:composeApp',
'PRODUCT_MODULE_NAME' => 'ComposeApp',
Expand All @@ -35,5 +46,5 @@ Pod::Spec.new do |spec|
SCRIPT
}
]
spec.resources = ['build/compose/ios/ComposeApp/compose-resources']
spec.resources = ['build\compose\ios\ComposeApp\compose-resources']
end

0 comments on commit 15c5176

Please sign in to comment.