This is a template for Kotlin native mobile shared library. You can make Android AAR and iOS Framework with this project.
- Android AAR
./gradlew -PbuildType=${buildType} publishAndroid${buildType}PublicationToMavenLocal
ex) if buildType is debug,
./gradlew -PbuildType=debug publishAndroidDebugPublicationToMavenLocal
- iOS Fat Framework (X64 + arm32 + arm64)
./gradlew -PbuildType=${buildType} linkFatFrameworkIos
ex) if buildType is release,
./gradlew -PbuildType=release linkFatFrameworkIos
The result is in ${ROOT_PROJECT_DIR}/build/bin/iosFat/${buildType}
And you can set groupId, artifactId and version manually in ${ROOT_PROJECT_DIR}/gradle.properties.
- Expose only network request methods instead of presenter or view model of MV* patterns (ktor supports only coroutine call)
- Upload artifact to repository
- And more...