mirror of
https://github.com/jlengrand/compose-multiplatform.git
synced 2026-05-17 00:01:21 +00:00
JS target supports a lower version (1.7.10), because we have a bug in Koltin 1.7.20 Compose 1.2.0 will support: 1.7.20 and 1.7.10 for Android and Desktop 1.7.10 for JS We will release the new patchset (1.2.1) with 1.7.2X support for JS later
29 lines
710 B
Bash
Executable File
29 lines
710 B
Bash
Executable File
#!/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
|
|
popd
|
|
}
|
|
|
|
runGradle codeviewer package
|
|
runGradle imageviewer package
|
|
runGradle issues package
|
|
runGradle notepad package
|
|
runGradle todoapp-lite package
|
|
runGradle visual-effects package
|
|
runGradle widgets-gallery package
|