没有合适的资源?快使用搜索试试~ 我知道了~
multiplatform-hello:Kotlin多平台的全栈Hello World
共72个文件
kt:17个
xml:12个
png:10个
需积分: 9 0 下载量 164 浏览量
2021-04-25
14:10:15
上传
评论
收藏 175KB ZIP 举报
温馨提示
多平台您好 Kotlin Multiplatform的完整堆栈Hello World 项目结构 该项目由几个gradle模块以及一个xcode项目组成。 它是使用Intellij IDEA开发的,但可能也可以在Android Studio中使用。 共享 这是服务器和客户端中都包含的中央模块。 它包含一个Message类,该类可通过kotlinx-serialization 。 服务器 这是一个运行在Netty引擎上的简单Ktor服务器,具有单个端点/message ,该端点输出序列化为JSON的Message对象。 运行./gradlew server:run会将服务器部署到端口8080上的localhost。 共享客户端 这将消耗shared模块并包含共享客户端代码。 它包括一个ApiClient类,该类具有使用Ktor http客户端查询/message端点的方法,以及一个顶级函数h
资源推荐
资源详情
资源评论
收起资源包目录
multiplatform-hello-master.zip (72个子文件)
multiplatform-hello-master
ios
Multiplatform HelloUITests
Multiplatform_HelloUITests.swift 1KB
Info.plist 701B
Multiplatform Hello
ViewController.swift 431B
Assets.xcassets
AppIcon.appiconset
Contents.json 2KB
Contents.json 62B
Base.lproj
LaunchScreen.storyboard 2KB
Main.storyboard 3KB
AppDelegate.swift 2KB
Info.plist 1KB
Multiplatform Hello.xcodeproj
project.xcworkspace
contents.xcworkspacedata 215B
xcshareddata
IDEWorkspaceChecks.plist 238B
project.pbxproj 25KB
Multiplatform HelloTests
Multiplatform_HelloTests.swift 953B
Info.plist 701B
Info.plist 773B
gradlew.bat 3KB
server
src
test
kotlin
ApplicationTest.kt 608B
main
kotlin
Application.kt 951B
resources
logback.xml 427B
Application.conf 176B
build.gradle.kts 611B
gradlew 6KB
android
src
main
res
mipmap-xxxhdpi
ic_launcher.png 9KB
ic_launcher_round.png 15KB
drawable
ic_launcher_background.xml 5KB
mipmap-hdpi
ic_launcher.png 3KB
ic_launcher_round.png 5KB
drawable-v24
ic_launcher_foreground.xml 2KB
values
colors.xml 208B
strings.xml 82B
styles.xml 383B
mipmap-xxhdpi
ic_launcher.png 6KB
ic_launcher_round.png 10KB
mipmap-mdpi
ic_launcher.png 2KB
ic_launcher_round.png 3KB
mipmap-xhdpi
ic_launcher.png 4KB
ic_launcher_round.png 7KB
mipmap-anydpi-v26
ic_launcher_round.xml 273B
ic_launcher.xml 273B
layout
activity_main.xml 885B
xml
network_security_config.xml 225B
java
MainActivity.kt 501B
AndroidManifest.xml 988B
build.gradle.kts 735B
gradle.properties 190B
shared-client
src
androidMain
kotlin
Dependencies.kt 349B
commonTest
kotlin
runBlocking.kt 300B
ApiClientTest.kt 2KB
iosMain
kotlin
Dependencies.kt 233B
iosTest
kotlin
runBlocking.kt 282B
jsTest
kotlin
runBlocking.kt 354B
commonMain
kotlin
hello.kt 401B
ApiClient.kt 1KB
Dependencies.kt 166B
androidTest
kotlin
runBlocking.kt 282B
jsMain
kotlin
Dependencies.kt 229B
main
AndroidManifest.xml 63B
build.gradle.kts 4KB
shared
src
commonTest
kotlin
MessageTest.kt 602B
commonMain
kotlin
Message.kt 137B
build.gradle.kts 2KB
.github
workflows
build.yml 322B
gradle
wrapper
gradle-wrapper.jar 54KB
gradle-wrapper.properties 200B
browser
src
main
kotlin
Browser.kt 198B
resources
index.html 203B
build.gradle.kts 1006B
.gitignore 7KB
settings.gradle.kts 707B
build.gradle.kts 564B
README.md 3KB
LICENSE.txt 11KB
共 72 条
- 1
资源评论
清净平常心
- 粉丝: 37
- 资源: 4671
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功