This repository is a template for libraries that are meant to be integrated into exsiting codebase.
This template is prepared with thought of seamless integration of KMM library to existing, native codebases.
After creating repository based on this template, several steps are required in order to publish artifacts for further usage in native codebases:
shared/build.gradle.kts
and update:iosFrameworkName
- it's name of the artifact that will be hosted via CocoapodsfatFrameworkCocoaConfig
:
gitUrl
to match Cocoapods repository created in point (2)./gradlew generateCocoaPodRepoForIosFatFramework
- this will create CocoaPod repository for hosting iOS framework.Use Jitpack.io - it's that simple.
This template uses kmp-fatframework-cocoa
Gradle Plugin to publish and manage releases to git repository.
To read more about why is it needed and how it's done, please refer to great article of the same author - Marco Gomiero (@prof18)
./gradlew publishIosDebugFatFramework
to publish (build & push to repository) the debug version to develop
branch (of the seperate, Cocoapods-only repository created in point 2 of How to use
section)./gradlew publishIosReleaseFatFramework
to do the same but for main/master
branch with tag on a commit based on what's in fatFrameworkCocoaConfig
shared
moduledevelop
and release debug version of iOS framework.