Files
compose-multiplatform/experimental/examples/validateExamplesIos.sh
Oleksandr Karpovich bc6d42ef44 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
2023-01-30 21:02:23 +01:00

42 lines
910 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: ./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