Update versions: compose - 1.3.0 and kotlin - 1.8.0 (#2651)

* Update versions in examples

* Add more scripts to validate example on android and k/js

* Add validateExamplesIos.sh

* Update CHANGELOG.md for 1.3.0

* check examples with 1.3.0-rc06

* Update the versions: compose-multiplatform - 1.3.0, kotlin - 1.8.0

* Update ComposeCompilerCompatibility (1.4.0)

* Update web/yarn.lock
This commit is contained in:
Oleksandr Karpovich
2023-01-30 21:02:23 +01:00
committed by GitHub
parent 8f3beed1fa
commit bc6d42ef44
54 changed files with 307 additions and 109 deletions

View File

@@ -12,6 +12,6 @@ kotlin.native.enableDependencyPropagation=false
kotlin.mpp.enableGranularSourceSetsMetadata=true
# Enable kotlin/native experimental memory model
kotlin.native.binary.memoryModel=experimental
kotlin.version=1.7.20
kotlin.version=1.8.0
agp.version=7.1.3
compose.version=1.2.1
compose.version=1.3.0

View File

@@ -12,6 +12,6 @@ kotlin.native.enableDependencyPropagation=false
kotlin.mpp.enableGranularSourceSetsMetadata=true
# Enable kotlin/native experimental memory model
kotlin.native.binary.memoryModel=experimental
kotlin.version=1.7.20
kotlin.version=1.8.0
agp.version=7.1.3
compose.version=1.3.0-beta04-dev885
compose.version=1.3.0

View File

@@ -12,6 +12,6 @@ kotlin.native.enableDependencyPropagation=false
kotlin.mpp.enableGranularSourceSetsMetadata=true
# Enable kotlin/native experimental memory model
kotlin.native.binary.memoryModel=experimental
kotlin.version=1.7.20
kotlin.version=1.8.0
agp.version=7.1.3
compose.version=1.2.1
compose.version=1.3.0

View File

@@ -12,7 +12,7 @@ kotlin.native.enableDependencyPropagation=false
kotlin.mpp.enableGranularSourceSetsMetadata=true
# Enable kotlin/native experimental memory model
kotlin.native.binary.memoryModel=experimental
kotlin.version=1.7.20
kotlin.version=1.8.0
agp.version=7.1.3
compose.version=1.2.2
compose.version=1.3.0
ktor.version=2.2.1

View File

@@ -1,5 +1,5 @@
kotlin.stdlib.default.dependency=false
kotlin.code.style=official
kotlin.version=1.7.10
compose.version=1.2.0
kotlin.version=1.8.0
compose.version=1.3.0

View File

@@ -12,6 +12,6 @@ kotlin.native.enableDependencyPropagation=false
kotlin.mpp.enableGranularSourceSetsMetadata=true
# Enable kotlin/native experimental memory model
kotlin.native.binary.memoryModel=experimental
kotlin.version=1.7.20
kotlin.version=1.8.0
agp.version=7.1.3
compose.version=1.3.0-beta04-dev885
compose.version=1.3.0

View File

@@ -12,6 +12,6 @@ kotlin.native.enableDependencyPropagation=false
kotlin.mpp.enableGranularSourceSetsMetadata=true
# Enable kotlin/native experimental memory model
kotlin.native.binary.memoryModel=experimental
kotlin.version=1.7.20
kotlin.version=1.8.0
agp.version=7.1.3
compose.version=1.2.1
compose.version=1.3.0

View File

@@ -0,0 +1,29 @@
#!/bin/bash
# Script to build most of the examples, to verify if they can compile.
# Don't add examples, which don't depend on maven.pkg.jetbrains.space, because they won't be able to compile.
set -euo pipefail
if [ "$#" -ne 2 ]; then
echo "Specify Compose and Kotlin version. For example: ./validateExamples.sh 1.1.1 1.6.10"
exit 1
fi
COMPOSE_VERSION=$1
KOTLIN_VERSION=$2
runGradle() {
pushd $1
./gradlew $2 -Pcompose.version=$COMPOSE_VERSION -Pkotlin.version=$KOTLIN_VERSION --rerun-tasks
popd
}
runGradle chat-mpp packageDistributionForCurrentOS
runGradle codeviewer packageDistributionForCurrentOS
runGradle falling-balls-mpp packageDistributionForCurrentOS
runGradle imageviewer packageDistributionForCurrentOS
runGradle minesweeper packageDistributionForCurrentOS
runGradle todoapp-lite packageDistributionForCurrentOS
runGradle visual-effects packageDistributionForCurrentOS
runGradle widgets-gallery packageDistributionForCurrentOS

View File

@@ -0,0 +1,29 @@
#!/bin/bash
# Script to build most of the examples, to verify if they can compile.
# Don't add examples, which don't depend on maven.pkg.jetbrains.space, because they won't be able to compile.
set -euo pipefail
if [ "$#" -ne 2 ]; then
echo "Specify Compose and Kotlin version. For example: ./validateExamplesAndroid.sh 1.1.1 1.6.10"
exit 1
fi
COMPOSE_VERSION=$1
KOTLIN_VERSION=$2
runGradle() {
pushd $1
./gradlew $2 -Pcompose.version=$COMPOSE_VERSION -Pkotlin.version=$KOTLIN_VERSION --rerun-tasks
popd
}
runGradle chat-mpp installDebug
runGradle codeviewer installDebug
runGradle falling-balls-mpp installDebug
runGradle imageviewer installDebug
runGradle minesweeper installDebug
runGradle todoapp-lite installDebug
runGradle visual-effects installDebug
runGradle widgets-gallery installDebug

View File

@@ -0,0 +1,41 @@
#!/bin/bash
# Script to build most of the examples, to verify if they can compile.
# Don't add examples, which don't depend on maven.pkg.jetbrains.space, because they won't be able to compile.
set -euo pipefail
if [ "$#" -ne 2 ]; then
echo "Specify Compose and Kotlin version. For example: ./validateExamplesIos.sh 1.1.1 1.6.10"
exit 1
fi
COMPOSE_VERSION=$1
KOTLIN_VERSION=$2
ARCH="$(uname -m)"
isX86="$ARCH"=="x86_64"
linkCmd=""
if [ isX86 ]; then
linkCmd="linkIosX64"
else
linkCmd="linkIosArm64"
fi
runGradle() {
pushd $1
echo "Validating $1"
./gradlew clean $linkCmd -Pcompose.version=$COMPOSE_VERSION -Pkotlin.version=$KOTLIN_VERSION --rerun-tasks || (echo "Failed $1" && exit 1)
popd
}
runGradle chat-mpp
runGradle codeviewer
runGradle falling-balls-mpp
runGradle imageviewer
runGradle todoapp-lite
runGradle visual-effects
runGradle widgets-gallery
runGradle minesweeper

View File

@@ -0,0 +1,29 @@
#!/bin/bash
# Script to build most of the examples, to verify if they can compile.
# Don't add examples, which don't depend on maven.pkg.jetbrains.space, because they won't be able to compile.
set -euo pipefail
if [ "$#" -ne 2 ]; then
echo "Specify Compose and Kotlin version. For example: ./validateExamplesWithJs.sh 1.1.1 1.6.10"
exit 1
fi
COMPOSE_VERSION=$1
KOTLIN_VERSION=$2
runGradle() {
pushd $1
./gradlew $2 -Pcompose.version=$COMPOSE_VERSION -Pkotlin.version=$KOTLIN_VERSION --rerun-tasks
popd
}
runGradle chat-mpp jsBrowserProductionWebpack
#runGradle codeviewer jsBrowserProductionWebpack
runGradle falling-balls-mpp jsBrowserProductionWebpack
#runGradle imageviewer jsBrowserProductionWebpack
runGradle minesweeper jsBrowserProductionWebpack
#runGradle todoapp-lite jsBrowserProductionWebpack
#runGradle visual-effects jsBrowserProductionWebpack
#runGradle widgets-gallery jsBrowserProductionWebpack

View File

@@ -12,6 +12,6 @@ kotlin.native.enableDependencyPropagation=false
kotlin.mpp.enableGranularSourceSetsMetadata=true
# Enable kotlin/native experimental memory model
kotlin.native.binary.memoryModel=experimental
kotlin.version=1.7.20
kotlin.version=1.8.0
agp.version=7.1.3
compose.version=1.2.1
compose.version=1.3.0

View File

@@ -12,6 +12,6 @@ kotlin.native.enableDependencyPropagation=false
kotlin.mpp.enableGranularSourceSetsMetadata=true
# Enable kotlin/native experimental memory model
kotlin.native.binary.memoryModel=experimental
kotlin.version=1.7.20
kotlin.version=1.8.0
agp.version=7.1.3
compose.version=1.2.1
compose.version=1.3.0