Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup Xcode Cloud Distribution #735

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app-ios-shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ plugins {
id("droidkaigi.primitive.kmp.roborazzi")
}

version = "0.0.1"

kotlin {
val frameworkName = "shared"
val xcf = XCFramework(frameworkName)
Expand Down
4 changes: 2 additions & 2 deletions app-ios/App/ci_scripts/ci_post_clone.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/zsh

cd "$CI_WORKSPACE"
cd "$CI_PRIMARY_REPOSITORY_PATH"

brew install openjdk@17

export PATH="/usr/local/opt/openjdk@17/bin:$PATH"

./gradlew :app-ios-shared:assembleSharedReleaseXCFramework
./gradlew app-ios-shared:assembleSharedXCFramework -Papp.ios.shared.arch=arm64Debug --no-configuration-cache
16 changes: 9 additions & 7 deletions app-ios/App/ci_scripts/ci_pre_xcodebuild.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
#!/bin/sh

cd "$CI_WORKSPACE"
cd "$CI_PRIMARY_REPOSITORY_PATH"

# Enalbe skip plugin validation
defaults write com.apple.dt.Xcode IDESkipPackagePluginFingerprintValidatation -bool YES
defaults write com.apple.dt.Xcode IDESkipMacroFingerprintValidation -bool YES

SOURCE_PACKAGES_PATH="$CI_PRIMARY_REPOSITORY_PATH/app-ios/SourcePackages"
xcodebuild -resolvePackageDependencies -project $CI_PROJECT_FILE_PATH -scheme DroidKaigi2024App -derivedDataPath $CI_DERIVED_DATA_PATH -clonedSourcePackagesDirPath $SOURCE_PACKAGES_PATH

# workaround for xcode cloud
brew install mint

mint install cybozu/LicenseList
mint install SwiftGen/SwiftGen

SOURCE_PACKAGES_PATH="$CI_WORKSPACE/app-ios/SourcePackages"
xcodebuild -resolvePackageDependencies -project $CI_PROJECT_FILE_PATH -scheme DroidKaigi2024App -derivedDataPath $CI_DERIVED_DATA_PATH -clonedSourcePackagesDirPath $SOURCE_PACKAGES_PATH

mint run LicenseList "$CI_WORKSPACE/app-ios/Sources/About/Resources" $SOURCE_PACKAGES_PATH
mint run LicenseList "$CI_PRIMARY_REPOSITORY_PATH/app-ios/Sources/App/Resources" $SOURCE_PACKAGES_PATH

export DERIVED_SOURCES_DIR="$CI_WORKSPACE/app-ios/Sources/Theme/"
mint run SwiftGen --config "$CI_WORKSPACE/app-ios/Sources/Theme/swiftgen.yml"
# generate code
export DERIVED_SOURCES_DIR="$CI_PRIMARY_REPOSITORY_PATH/app-ios/Sources/Theme/"
mint run SwiftGen --config "$CI_PRIMARY_REPOSITORY_PATH/app-ios/Sources/Theme/swiftgen.yml"
5 changes: 5 additions & 0 deletions app-ios/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ build-kmp-module-debug:
cd .. && \
./gradlew app-ios-shared:assembleSharedXCFramework -Papp.ios.shared.arch=arm64SimulatorDebug --no-configuration-cache

.PHONY: build-kmp-module-arm64
build-kmp-module-arm64:
cd .. && \
./gradlew app-ios-shared:assembleSharedXCFramework -Papp.ios.shared.arch=arm64Debug --no-configuration-cache

.PHONY: build-app-debug
build-app-debug: build-kmp-module-debug
set -o pipefail && \
Expand Down
4 changes: 2 additions & 2 deletions app-ios/Sources/AboutFeature/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,13 @@
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "DroidKaigi is a conference tailored for Android developers."
"value" : "DroidKaigi is a conference tailored for developers."
}
},
"ja" : {
"stringUnit" : {
"state" : "needs_review",
"value" : "DroidKaigiはAndroid技術情報の共有とコミュニケーションを目的に開催されるエンジニアが主役のAndroidカンファレンスです。"
"value" : "DroidKaigiは技術情報の共有とコミュニケーションを目的に開催されるエンジニアが主役のAndroidカンファレンスです。"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"sourceLanguage" : "en",
"strings" : {
"%lld" : {

},
"Contributor" : {
"localizations" : {
"en" : {
Expand Down Expand Up @@ -51,4 +54,4 @@
}
},
"version" : "1.0"
}
}
Loading