没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
适用于本机Android和iOS应用程序的Rust核心 [ iOS徽章] 此示例显示了如何在本机Android和iOS应用程序中使用共享的Rust核心。 为什么? 这种方法为我们提供了最好的解决方案:我们通过使用共享库来防止代码重复。 Rust是一种高性能且安全的语言,非常适合移动设备使用。 我们保留了完全本机的UI体验,并且可以轻松访问平台的最新API。 它也非常灵活,可以轻松地在不同平台之间迁移,包括Flutter或React Native等常规跨平台框架。 例如,您可以使用Rust + React Native或Rust + Flutter开发MVP,然后再迁移到本机iOS / Android,而无需重写所有内容。 您甚至可以使用WebAssembly或桌面应用程序(在这里,您可以使用本机或跨平台框架,例如Electron)将您的核心重用于Web应用程序。 项目结构 Rus
资源推荐
资源详情
资源评论
收起资源包目录
rust_android_ios-master.zip (73个子文件)
rust_android_ios-master
.gitignore 241B
app
.gitignore 7B
build.gradle 2KB
src
androidTest
java
com
schuetz
rustandroidios
JniTests.kt 1KB
main
AndroidManifest.xml 901B
res
mipmap-xhdpi
ic_launcher_round.png 7KB
ic_launcher_foreground.png 5KB
ic_launcher.png 4KB
mipmap-mdpi
ic_launcher_round.png 3KB
ic_launcher_foreground.png 2KB
ic_launcher.png 2KB
layout
activity_main.xml 293B
mipmap-xxhdpi
ic_launcher_round.png 10KB
ic_launcher_foreground.png 8KB
ic_launcher.png 6KB
mipmap-anydpi-v26
ic_launcher_round.xml 265B
ic_launcher.xml 265B
mipmap-hdpi
ic_launcher_round.png 5KB
ic_launcher_foreground.png 3KB
ic_launcher.png 3KB
mipmap-xxxhdpi
ic_launcher_round.png 15KB
ic_launcher_foreground.png 11KB
ic_launcher.png 8KB
values
strings.xml 213B
colors.xml 208B
dimens.xml 67B
ic_launcher_background.xml 120B
styles.xml 708B
java
com
schuetz
rustandroidios
JniApi.kt 743B
MainActivity.kt 1KB
ic_launcher-playstore.png 30KB
test
java
com
schuetz
rustandroidios
ExampleUnitTest.java 404B
proguard-rules.pro 927B
settings.gradle 15B
build.gradle 994B
src
ffi_ios.rs 3KB
ffi_android.rs 6KB
lib.rs 442B
Cargo.lock 15KB
gradlew 5KB
Cargo.toml 481B
ios_app
.gitignore 2KB
ios_appTests
Info.plist 701B
ios_appTests.swift 1KB
core
mobileapp-ios.h 503B
Rust-Bridging-Header.h 272B
build-rust-xcode.sh 476B
ios_app
ViewController.swift 886B
Info.plist 1KB
Base.lproj
LaunchScreen.storyboard 2KB
Main.storyboard 3KB
AppDelegate.swift 2KB
Assets.xcassets
AppIcon.appiconset
152.png 14KB
180.png 17KB
Contents.json 2KB
120.png 11KB
76.png 6KB
Contents.json 62B
ios_app.xcodeproj
xcshareddata
xcschemes
ios_appTests.xcscheme 2KB
ios_app.xcscheme 4KB
project.xcworkspace
xcshareddata
IDEWorkspaceChecks.plist 238B
contents.xcworkspacedata 152B
project.pbxproj 21KB
.github
workflows
android.yml 1KB
rust.yml 317B
README.md 7KB
gradlew.bat 2KB
gradle.properties 1KB
gradle
wrapper
gradle-wrapper.properties 230B
gradle-wrapper.jar 52KB
img
android1.png 2KB
ios1.png 1KB
logos_.png 33KB
共 73 条
- 1
资源评论
深夜里呕吐的鱼公子
- 粉丝: 20
- 资源: 4721
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功