This example shows how to create a Android app and iOS app using Kotlin multiplatform and Clean Architecture.
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.
androidApp
core-multiplatform
gradle/wrapper
iosApp
.gitignore
.travis.yml
LICENSE
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
ktlint.gradle
settings.gradle

README.md

Kotlin Clean Architecture Multiplatform Build Status

This example shows how to create a Android app and iOS app using Kotlin multiplatform and Clean Architecture.

This sample based on the multiplatform documentation. If you have questions about the structure or how it works take a look at the documentation there.

iOS

To compile the project from Xcode just open iosApp/iosApp.xcodeproj and run the application.

Xcode has been configured according to Multiplatform Project: iOS and Android documentation

To compile a framework from the command line execute:

  > ./gradlew :core-multiplatform:packForXCode

This example use the code analysis tool swiftlint.

To execute code analysis

swiftlint 

Or build app

To execute code format

swiftlint autocorrect

Android

The application can be built and executed on a device or emulator using Android Studio 3.2 or higher. One can also compile the application and run tests from the command line:

   > ./gradlew :androidApp:build

This example use the code analysis tool ktlint.

Please configure Android Studio according to instructions in ktlint readme.

To execute code analysis

./gradlew ktlint 

Or build app

To execute code format

./gradlew ktlintformat

Developed By

  • Jorge Sánchez Fernández aka xurxodev

License

Copyright 2019 Jorge Sánchez Fernández

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.