All Projects → Karumi → KotlinMultiplatformApp

Karumi / KotlinMultiplatformApp

Licence: Apache-2.0 License
Application example using Kotlin multiplatform

Programming Languages

objective c
16641 projects - #2 most used programming language
kotlin
9241 projects
swift
15916 projects
ruby
36898 projects - #4 most used programming language


Application example with Kotlin multiplatform that renders images from Unplash.

You can read about the implementation in the following Multiplatform blog post series:

Running tests locally

  • Shared code: ./gradlew test connectedAndroidTest
  • iOS application: xcodebuild -workspace 'PhotoGallery.xcworkspace' -scheme 'PhotoGallery' -destination 'platform=iOS Simulator,name=iPhone 6s Plus' build test CODE_SIGN_IDENTITY=-

Running the app

To run the application use the same tools you use in Android and iOS. Just open the project with Intellj/Android Studio for the Android project and XCode for the iOS one.

FAQ

I'm receiving an error message reading SDK location not found while building the iOS project.

This usually means you need to define the SDK location path in a local.properties file for the Android SDK and NDK.

local.properties

ndk.dir=/Users/<username>/Library/Android/sdk/ndk-bundle
sdk.dir=/Users/<username>/Library/Android/sdk

License

Copyright 2019 Karumi

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].