在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):wiyarmir/kotlin-multiplatform-template开源软件地址(OpenSource Url):https://github.com/wiyarmir/kotlin-multiplatform-template开源编程语言(OpenSource Language):Kotlin 61.8%开源软件介绍(OpenSource Introduction):Kotlin Multiplatform TemplateTemplate that will give you a ready-to-go project including:
Looking for a project with just Android and iOS? It's here: https://github.com/wiyarmir/kotlin-multiplatform-mobile-template Looking for a project with just Backend and Web? It's here: https://github.com/wiyarmir/kotlin-multiplatform-frontend-template Building and running the projectBackendThere is a Gradle task that will produce a JAR ready to go. $ ./gradlew stage The output is in The following environment variables are recognised:
You can run the backend development server executing: $ ./gradlew backend:run This will start serving the app in port 9090 by default. WebIf you want to run the frontend development server, you can execute: $ ./gradlew web:run This will start the webpack development server in port 8080, and proxy all calls to files it doesn't know to port 9090. If you want the frontend development server to connect to the development backend, you'll need to pass the flag $ ./gradlew web:run -Pdebug Warning: The webpack development server will keep running until you execute Hot reloadingIn backend, Ktor supports hot reloading, but since the task serving the app is kept alive, you need to execute in a separate console: $ ./gradlew backend:classes -t This will recompilate classes on file changes, and Ktor will detect it and reload them on the next request it serves. For the frontend, it's enough to execute the original run task with $ ./gradlew web:run -t AndroidOpen the root project in Android Studio or IntelliJ, and it will recognise the Android App configuration after a successful Gradle sync. You can use that configuration to run, debug and profile the app. iOSOpen the workspace located at ios/KotlinMultiplatformTemplate.xcworkspace in XCode. The Podfile includes an entry to the common code with an extra user script for it to be recompiled as a build step. DeploymentBackendThere is a FrontendBy default, the web bundle and a default ContributingIf you would like to contribute code to this repository you can do so through GitHub by creating a new branch in the repository and sending a pull request or opening an issue. Please, remember that there are some requirements you have to pass before accepting your contribution:
License
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论