jstuyts / kotlin-multiplatform-recipes Goto Github PK
View Code? Open in Web Editor NEWRecipes for building multi-platform Kotlin modules.
License: MIT License
Recipes for building multi-platform Kotlin modules.
License: MIT License
The syntax for multi-platform code has been changed in 1.2. Instead of header
and impl
, expect
is used: http://kotlinlang.org/docs/reference/multiplatform.html
Create a branch for 1.2, and migrate the code.
Also add a clear warning to the documentation that the code that compiles on the current stable will no longer work from 1.2.
The Kotlin API documentation has very nice drop-down menus to select the platform and the API version. This project should show how you can generate the same for your own project. Add API docs to the types, properties and functions, and generate HTML for the API docs in the build.
For example I have a project with modules:
expectedBy project(':common')
expectedBy project(':common')
compile project(':util')
Then I want to add tests to util module, but the tests don't appear when i run :js:test
. So i want to delegate tests. Thanks.
The questions asked in #9 is valid, and the project should show how to do this properly. Create a common library, and show how this must be used in another common module, the JavaScript module and the JVM module. Also provide tests for the library module.
Kotlin: Modifier 'impl' is only applicable to members that are initially declared in platform-independent code
Took me few times to read README.md
to find the way to make build pass.
From v0.6 Kotlin/Native supports multi platform projects which can be used for iOS application development. Is Kotlin/Native multi platform project support included in the scope of this project?
In your list of Current Issues the path to Delegate IDE build/run actions to gradle is wrong.
It might have changed recently but in 2018.2.4 its in Build, Execution, Deployment >> Build Tools >> Gradle >> Runner
Source map rewriting is planned for the DCE tool. Adjust the build if needed when it has been implemented. See:ย https://youtrack.jetbrains.com/oauth?state=%2Fissue%2FKT-19821
https://discuss.kotlinlang.org/t/unit-testing-in-kotlin-js/3943
Stick with QUnit, or create examples for all 7 (QUnit, Jasmine, Mocha, Jest, Karma, frontend-plugin, and Tape) test frameworks?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.