itsbalamurali/gpui-mobile
소개
GPUI의 모바일 플랫폼 지원 — iOS(wgpu/Metal) 및 Android(wgpu/Vulkan)
웹 및 앱측정된 스타 증가
- in 24h
- +6
- in 7 days
- +20
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalGPUI Mobile
Mobile platform layer for GPUI — run Rust UI apps natively on iOS and Android.
Overview
Implements the gpui::Platform trait for mobile targets, following the same architecture as Zed's desktop platform crates.
| Platform | Renderer | Text |
|---|---|---|
| iOS | Metal via wgpu | CoreText |
| Android | Vulkan/GL via wgpu | cosmic-text + swash |
Highlights: GPU-accelerated rendering, touch input with momentum scrolling, keyboard support, safe area insets, dark mode, and emoji rendering.
Custom Android hosts
Custom Android hosts should extend dev.gpui.mobile.GpuiInputActivity instead of
android.app.NativeActivity to receive multistage IME composition through a
native InputConnection. Include GpuiInputActivity.java and retain the usual
android.app.lib_name metadata. For GPUI file prompts, also package
GpuiPathPicker.java and register its non-exported Activity as shown in the
example manifest. The picker imports documents into app cache before returning
filesystem paths; it does not require broad storage permissions.
Quick Start
Prerequisites
- Rust 1.75+
- iOS: macOS + Xcode 15+, XcodeGen (
brew install xcodegen) - Android: Android SDK + NDK r25+, cargo-ndk (
cargo install cargo-ndk)
Build & Run
cd example
# iOS
./build.sh ios --device # or --simulator
./build.sh ios --device --release
# Android
./build.sh android --device # or --emulator
./build.sh android --device --release
Manual Build
# iOS
rustup target add aarch64-apple-ios
cd example && cargo build --target aarch64-apple-ios
cd ios && xcodegen generate --spec project.yml
xcodebuild -project GpuiExample.xcodeproj -scheme GpuiExample build
# Android
rustup target add aarch64-linux-android
cd example
cargo ndk -t arm64-v8a -P 31 -o android/gradle/app/src/main/jniLibs build
cd android/gradle && ./gradlew assembleDebug
Platform Support
| Platform | Status | Min Version | GPU Backend |
|---|---|---|---|
| iOS (device + sim) | ✅ | iOS 13.0+ | Metal |
| Android (arm64) | ✅ | API 26+ | Vulkan (preferred), GL ES 3.0 |
| Android (armv7/x86_64) | ⚠️ Untested | API 26+ | Vulkan / GL ES |
Screenshots
Running on a Motorola Edge 50 Pro (Android, Vulkan):
| Home | Counter | Settings | About |
|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
A demo video is available at screenshots/demo.mp4.
Example App
The example app includes screens for Home, Counter, About, Settings, Components (Apple Glass + Material Design), Animations, and Shaders.
Contributing
- Fork & create a feature branch
- Ensure all targets compile:
cargo check cargo check --target aarch64-apple-ios cargo check --target aarch64-linux-android cargo test cargo fmt --all - Open a Pull Request
License
Licensed under any one of:
Acknowledgements
Zed Industries (GPUI framework) · wgpu · cosmic-text · swash · Google Noto Fonts
관련 프로젝트 살펴보기
불러오는 중…



