Skip to content

Commit

Permalink
#535 fix check scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ExNDY committed Apr 16, 2024
1 parent 52ebf79 commit dca5e78
Show file tree
Hide file tree
Showing 8 changed files with 125 additions and 123 deletions.
28 changes: 14 additions & 14 deletions samples/cm-resources-sample/local-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ log "cm-resources-sample jvm success"

if ! command -v xcodebuild &> /dev/null
then
echo "xcodebuild could not be found, skip ios checks"
log "cm-resources-sample checked"

exit 0
log "xcodebuild could not be found, skip ios checks"

./gradlew build
log "cm-resources-sample full build success"
else
./gradlew clean compileKotlinIosX64
log "cm-resources-sample ios success"

(
cd iosApp &&
set -o pipefail &&
xcodebuild -scheme iosApp -configuration Debug -sdk iphonesimulator -arch x86_64 build CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | xcpretty
)
log "cm-resources-sample ios xcode success"
fi

./gradlew clean compileKotlinIosX64
log "cm-resources-sample ios success"

(
cd iosApp &&
set -o pipefail &&
xcodebuild -scheme iosApp -configuration Debug -sdk iphonesimulator -arch x86_64 build CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | xcpretty
)
log "cm-resources-sample ios xcode success"
32 changes: 17 additions & 15 deletions samples/compose-resources-gallery/local-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,24 @@ log "compose-resources-gallery jvm success"
if ! command -v xcodebuild &> /dev/null
then
echo "xcodebuild could not be found, skip ios checks"
log "compose-resources-gallery checked"

exit 0
fi
./gradlew build
log "compose-resources-gallery full build success"
else

./gradlew clean compileKotlinIosX64
log "compose-resources-gallery ios success"

./gradlew clean compileKotlinIosX64
log "compose-resources-gallery ios success"
# rerun tasks because kotlinjs compilation broken with build cache :(
./gradlew clean podspec build generateDummyFramework --rerun-tasks
log "compose-resources-gallery full build success"

# rerun tasks because kotlinjs compilation broken with build cache :(
./gradlew clean podspec build generateDummyFramework --rerun-tasks
log "compose-resources-gallery full build success"
(
cd iosApp &&
pod install &&
set -o pipefail &&
xcodebuild -scheme iosApp -workspace iosApp.xcworkspace -configuration Debug -sdk iphonesimulator -arch x86_64 build CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | xcpretty
)
log "compose-resources-gallery ios xcode success"
fi

(
cd iosApp &&
pod install &&
set -o pipefail &&
xcodebuild -scheme iosApp -workspace iosApp.xcworkspace -configuration Debug -sdk iphonesimulator -arch x86_64 build CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | xcpretty
)
log "compose-resources-gallery ios xcode success"
32 changes: 16 additions & 16 deletions samples/default-hierarchy-gallery-mobile/local-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ log "default-hierarchy-gallery-mobile android success"
if ! command -v xcodebuild &> /dev/null
then
echo "xcodebuild could not be found, skip ios checks"
log "default-hierarchy-gallery-mobile checked"

exit 0
./gradlew build
log "default-hierarchy-gallery-mobile full build success"
else
./gradlew clean compileKotlinIosX64
log "default-hierarchy-gallery-mobile ios success"

./gradlew clean podspec build generateDummyFramework --rerun-tasks
log "default-hierarchy-gallery-mobile full build success"

(
cd ios-app &&
pod install &&
set -o pipefail &&
xcodebuild -scheme TestProj -workspace TestProj.xcworkspace -configuration Debug -sdk iphonesimulator -arch x86_64 build CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | xcpretty
)
log "default-hierarchy-gallery-mobile ios xcode success"
fi

./gradlew clean compileKotlinIosX64
log "default-hierarchy-gallery-mobile ios success"

./gradlew clean podspec build generateDummyFramework --rerun-tasks
log "default-hierarchy-gallery-mobile full build success"

(
cd ios-app &&
pod install &&
set -o pipefail &&
xcodebuild -scheme TestProj -workspace TestProj.xcworkspace -configuration Debug -sdk iphonesimulator -arch x86_64 build CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | xcpretty
)
log "default-hierarchy-gallery-mobile ios xcode success"
30 changes: 15 additions & 15 deletions samples/ios-cocoapods-static-framework/local-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@ log() {
if ! command -v xcodebuild &> /dev/null
then
echo "xcodebuild could not be found, skip ios checks"
log "ios-cocoapods-static-framework not checked"

exit 0
fi

./gradlew clean compileKotlinIosX64
log "ios-cocoapods-static-framework ios success"
./gradlew build
log "ios-cocoapods-static-framework full build success"
else
./gradlew clean compileKotlinIosX64
log "ios-cocoapods-static-framework ios success"

./gradlew clean podspec build generateDummyFramework
log "ios-cocoapods-static-framework full build success"
./gradlew clean podspec build generateDummyFramework
log "ios-cocoapods-static-framework full build success"

(
cd iosApp &&
pod install &&
set -o pipefail &&
xcodebuild -scheme iosApp -workspace iosApp.xcworkspace -configuration Debug -sdk iphonesimulator -arch x86_64 build CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
)
(
cd iosApp &&
pod install &&
set -o pipefail &&
xcodebuild -scheme iosApp -workspace iosApp.xcworkspace -configuration Debug -sdk iphonesimulator -arch x86_64 build CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
)

log "ios-cocoapods-static-framework ios xcode success"
log "ios-cocoapods-static-framework ios xcode success"
fi
26 changes: 13 additions & 13 deletions samples/ios-static-xcframework/local-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ log() {

if ! command -v xcodebuild &> /dev/null
then
echo "xcodebuild could not be found, skip ios checks"
log "ios-static-xcframework checked"
log "xcodebuild could not be found, skip ios checks"

exit 0
fi

./gradlew clean build assembleMultiPlatformLibraryXCFramework
log "ios-static-xcframework gradle build success"
./gradlew build
log "ios-static-xcframework full build success"
else
./gradlew clean build assembleMultiPlatformLibraryXCFramework
log "ios-static-xcframework gradle build success"

(
cd ios-app &&
set -o pipefail &&
xcodebuild -scheme TestStaticXCFramework -project TestProj.xcodeproj -configuration Debug -sdk iphonesimulator -arch x86_64 build CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | xcpretty
)
log "ios-static-xcframework ios xcode success"
(
cd ios-app &&
set -o pipefail &&
xcodebuild -scheme TestStaticXCFramework -project TestProj.xcodeproj -configuration Debug -sdk iphonesimulator -arch x86_64 build CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | xcpretty
)
log "ios-static-xcframework ios xcode success"
fi
26 changes: 13 additions & 13 deletions samples/kotlin-2-sample/local-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ log "kotlin-2-sample mobile android success"

if ! command -v xcodebuild &> /dev/null
then
echo "xcodebuild could not be found, skip ios checks"
log "kotlin-2-sample checked"
log "xcodebuild could not be found, skip ios checks"

exit 0
fi

./gradlew clean compileKotlinIosX64
log "kotlin-2-sample mobile ios success"
./gradlew build
log "kotlin-2-sample full build success"
else
./gradlew clean compileKotlinIosX64
log "kotlin-2-sample mobile ios success"

(
cd iosApp &&
set -o pipefail &&
xcodebuild -scheme iosApp -configuration Debug -sdk iphonesimulator -arch x86_64 build CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | xcpretty
)
log "kotlin-2-sample mobile ios xcode success"
(
cd iosApp &&
set -o pipefail &&
xcodebuild -scheme iosApp -configuration Debug -sdk iphonesimulator -arch x86_64 build CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | xcpretty
)
log "kotlin-2-sample mobile ios xcode success"
fi
20 changes: 10 additions & 10 deletions samples/kotlin-ios-app/local-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ log "kotlin-ios-app gradle build success"

if ! command -v xcodebuild &> /dev/null
then
echo "xcodebuild could not be found, skip ios checks"
log "kotlin-ios-app checked"
log "xcodebuild could not be found, skip ios checks"

exit 0
./gradlew build
log "kotlin-ios-app full build success"
else
(
cd xcode-project &&
set -o pipefail &&
xcodebuild -scheme TestKotlinApp -project TestProj.xcodeproj -configuration Debug -sdk iphonesimulator -arch x86_64 build CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | xcpretty
)
log "kotlin-ios-app ios xcode success"
fi

(
cd xcode-project &&
set -o pipefail &&
xcodebuild -scheme TestKotlinApp -project TestProj.xcodeproj -configuration Debug -sdk iphonesimulator -arch x86_64 build CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | xcpretty
)
log "kotlin-ios-app ios xcode success"
54 changes: 27 additions & 27 deletions samples/resources-gallery/local-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,31 @@ log "resources-gallery jvm success"

if ! command -v xcodebuild &> /dev/null
then
echo "xcodebuild could not be found, skip ios checks"
log "resources-gallery checked"

exit 0
log "xcodebuild could not be found, skip ios checks"

./gradlew build
log "resources-gallery full build success"
else
./gradlew clean compileKotlinIosX64
log "resources-gallery ios success"

# rerun tasks because kotlinjs compilation broken with build cache :(
./gradlew clean build --rerun-tasks
log "resources-gallery full build success"

(
cd ios-app &&
pod install &&
set -o pipefail &&
xcodebuild -scheme TestProj -workspace TestProj.xcworkspace -configuration Debug -sdk iphonesimulator -arch x86_64 build CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | xcpretty
)
log "resources-gallery ios xcode success"

(
cd macos-app &&
pod install &&
set -o pipefail &&
xcodebuild -scheme TestProj -workspace macos-app.xcworkspace -configuration Debug -sdk macosx -arch x86_64 build CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | xcpretty
)
log "resources-gallery macos xcode success"
fi

./gradlew clean compileKotlinIosX64
log "resources-gallery ios success"

# rerun tasks because kotlinjs compilation broken with build cache :(
./gradlew clean build --rerun-tasks
log "resources-gallery full build success"

(
cd ios-app &&
pod install &&
set -o pipefail &&
xcodebuild -scheme TestProj -workspace TestProj.xcworkspace -configuration Debug -sdk iphonesimulator -arch x86_64 build CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | xcpretty
)
log "resources-gallery ios xcode success"

(
cd macos-app &&
pod install &&
set -o pipefail &&
xcodebuild -scheme TestProj -workspace macos-app.xcworkspace -configuration Debug -sdk macosx -arch x86_64 build CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | xcpretty
)
log "resources-gallery macos xcode success"

0 comments on commit dca5e78

Please sign in to comment.