-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
68 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
set -e | ||
|
||
log() { | ||
echo "\033[0;32m> $1\033[0m" | ||
} | ||
|
||
# run gradle tasks in faster order to receive faster feedback | ||
./gradlew detekt | ||
log "runtime detekt success" | ||
|
||
./gradlew assembleDebug | ||
log "runtime android success" | ||
|
||
./gradlew compileKotlinIosX64 | ||
log "runtime ios success" | ||
|
||
./gradlew build publishToMavenLocal | ||
log "runtime build and publish success" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# | ||
# Copyright 2023 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license. | ||
# | ||
|
||
set -e | ||
|
||
log() { | ||
echo "\033[0;32m> $1\033[0m" | ||
} | ||
|
||
./gradlew clean assembleDebug | ||
log "sample android success" | ||
|
||
if ! command -v xcodebuild &> /dev/null | ||
then | ||
log "xcodebuild could not be found, skip ios checks" | ||
|
||
./gradlew build | ||
log "sample full build success" | ||
else | ||
./gradlew clean compileKotlinIosX64 | ||
log "sample ios success" | ||
|
||
./gradlew clean build syncMultiPlatformLibraryDebugFrameworkIosX64 | ||
log "sample clean 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 "sample ios xcode success" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters