Add Kotlin Multiplatform shared module and iOS shell CI - #15
Open
gaborbiro wants to merge 5 commits into
Open
Conversation
Introduce :shared KMP library with Android (AGP kotlin multiplatform library plugin) and macOS-only CocoaPods/iOS targets via sharedIos.gradle.kts so Linux CI unchanged. Add minimal SwiftUI iosApp wired to Shared framework from Podfile; GitHub Actions workflow on macOS runs podInstall and simulator xcodebuild smoke build. Wire app module to :shared for future shared logic; document in AGENTS.md. Co-authored-by: Gabor Biro <bgaborchen+github@gmail.com>
gaborbiro
marked this pull request as ready for review
April 29, 2026 12:07
Applied Kotlin DSL scripts compile in isolation and lack kotlin {} KMP/cocoapods
extensions (scripts plugin classpath issue). Replace sharedIos.gradle.kts with
sharedIos.gradle that applies cocoapods plugin and configures the project's
kotlin extension.
Document filename in AGENTS.md.
Co-authored-by: Gabor Biro <bgaborchen+github@gmail.com>
Target Debug/Release referenced AppIcon and AccentColor asset sets that were never added under Assets.xcassets; actool failed during CompileAssetCatalogVariant. Remove ASSETCATALOG_COMPILER_* settings until real icons/colors are checked in. Co-authored-by: Gabor Biro <bgaborchen+github@gmail.com>
Linker failed with undefined SharedSharedApi for x86_64 because only iosSimulatorArm64 was declared; GitHub-hosted runners often build simulators for Intel (x86_64). Include Kotlin/Native iosSimulatorX64 alongside arm64. Co-authored-by: Gabor Biro <bgaborchen+github@gmail.com>
Kotlin Gradle DSL exposes iosX64() for x86_64 iOS Simulator; iosSimulatorX64 does not exist and fails configuration on CI. Co-authored-by: Gabor Biro <bgaborchen+github@gmail.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Bootstraps Kotlin Multiplatform + minimal SwiftUI shell + macOS CI smoke build.
Fixes applied during review
shared/sharedIos.gradle: Groovy applied script (Kotlin DSL applied scripts could not configure KMP/CocoaPods).AppIcon/AccentColorcompiler keys pointing at missing asset sets (CompileAssetCatalogVariant).iosSimulatorX64(): GitHub macos-latest often uses Intel + x86_64 iOS Simulator; onlyiosSimulatorArm64produced undefined symbol_OBJC_CLASS_$_SharedSharedApifor x86_64. Adding theiosSimulatorX64Kotlin/Native target fixes linker failures on those runners. (Running./gradlew :shared:buildbeforepodInstalldoes not add CPU architectures.)Verification
./gradlew :shared:compileAndroidMain,assembleDebug, tests/lint as usual.TestFlight
Not included; CI builds Simulator only.