Skip to content
Application example using Kotlin multiplatform
Objective-C Kotlin Swift Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Add multiplatform empty project (#2) Mar 5, 2019
androidApp Integrate library with UI with UI tests (#17) Jul 17, 2019
art Reorganize readme sections and add a header image (#18) Aug 20, 2019
gradle/wrapper Update dependencies (#20) Sep 17, 2019
iosApp Update dependencies (#20) Sep 17, 2019
shared Update dependencies (#20) Sep 17, 2019
.editorconfig Flicker photo list UI (#14) Jun 3, 2019
.gitignore Merge branch 'master' of github.com:Karumi/KotlinMultiplatformApp Mar 5, 2019
.gradletasknamecache
LICENSE.txt Add LICENSE.txt Mar 5, 2019
README.md Add blog post series in README (#19) Aug 21, 2019
_config.yml Create _config.yml Sep 17, 2019
build.gradle Integrate library with UI with UI tests (#17) Jul 17, 2019
gradle.properties Update dependencies (#20) Sep 17, 2019
gradlew
gradlew.bat
settings.gradle

README.md


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.
You can’t perform that action at this time.