Skip to content

A template is to create libraries, Android AAR and iOS Framework, with Kotlin Native

Notifications You must be signed in to change notification settings

uOOOO/kotlin-native-mobile-shared-library-template

Repository files navigation

kotlin-native-mobile-shared-library-template

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.

TODO

  • 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...

About

A template is to create libraries, Android AAR and iOS Framework, with Kotlin Native

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published