Skip to content

A sandbox project to evaluate the Kotlin multiplatform capabilities

Notifications You must be signed in to change notification settings

vskintiian/KMPSandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

KMPSandbox

A sandbox project to evaluate the Kotlin multiplatform capabilities

Do not change android project name during creation of multiplatform project. then it wont ne bossible to import it to the Android Studio

To create gradlew file run in the root directory of the project

$ gradle wrapper --gradle-version 6.5.1

Configuring the project with cocoapods

  1. Install CocoaPods. It's recommended to use CocoaPods 1.6.1 or higher.

  2. Navigate to the SandboxSDK directory and run

    $ ./gradlew podspec

    A podspec file for the Kotlin/Native library will be generated.

  3. Navigate to the iosApp directory and install the dependencies. The generated podspec is already added to the Podfile, so just run

    $ pod install

  4. Open ios-app.xcworkspace in Xcode and run the build.

  5. The plugin generates a static framework as default. To use dynamic one just delete the line in podspec file:

    spec.static_framework = true

    or replace it with:

    spec.static_framework = false

    Errors:

    • Invoke-customs are only supported starting with Android O (--min-api 26) -- set 'minSdkVersion = 26' in 'android.defaultConfig.minSdkVersion' (google/ExoPlayer#6913)

About

A sandbox project to evaluate the Kotlin multiplatform capabilities

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published