Skip to content

Commit 643ef1b

Browse files
authored
Merge pull request #1500 from wgqqqqq/feat/native-mobile-apps
feat: add native Android, iOS, and HarmonyOS app scaffolds
2 parents b9c2a51 + ef8166b commit 643ef1b

123 files changed

Lines changed: 17103 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/apps/mobile/AGENTS.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# AGENTS.md
2+
3+
Native mobile applications are product entrypoints under `src/apps/mobile`.
4+
5+
## Boundaries
6+
7+
- Keep Android, iOS, and HarmonyOS lifecycle and platform API usage inside the
8+
corresponding platform directory.
9+
- Keep reusable product logic platform-agnostic and expose it through stable
10+
contracts or adapters.
11+
- Do not import implementation details from `src/apps/desktop` or
12+
`src/web-ui`.
13+
- Treat remote workspace support as part of feature design. Gate unsupported
14+
behavior with a clear user-facing state.
15+
- Keep credentials, signing files, provisioning profiles, device identifiers,
16+
and local SDK paths out of the repository.
17+
- Add platform-specific build and verification commands here when a native
18+
toolchain is selected.
19+
20+
## Directory Ownership
21+
22+
| Directory | Ownership |
23+
|---|---|
24+
| `android/` | Android app, resources, lifecycle, and adapters |
25+
| `ios/` | iOS app, resources, lifecycle, and adapters |
26+
| `harmonyos/` | HarmonyOS app, resources, lifecycle, and adapters |

src/apps/mobile/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# BitFun Native Mobile Apps
2+
3+
This directory contains the native mobile product surfaces for BitFun:
4+
5+
- `android/`: Android application code and resources.
6+
- `ios/`: iOS application code and resources.
7+
- `harmonyos/`: HarmonyOS application code and resources.
8+
9+
Each platform directory owns its native UI, lifecycle, permissions, packaging,
10+
and platform adapters. Product logic and stable contracts should remain in the
11+
platform-agnostic Rust layers and be exposed to these apps through explicit
12+
interfaces.
13+
14+
The directories are intentionally build-tool agnostic until the native stacks
15+
and minimum supported platform versions are selected.

src/apps/mobile/android/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# BitFun Android
2+
3+
Android application entrypoint.
4+
5+
Provisional source layout:
6+
7+
- `app/src/main/kotlin/`: Kotlin application code.
8+
- `app/src/main/res/`: Android resources.
9+
10+
Add the Gradle project files after the Android UI stack, package identifier,
11+
minimum SDK, and shared-core integration strategy are selected.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/node_modules
2+
/oh_modules
3+
/local.properties
4+
/.idea
5+
.DS_Store
6+
**/build
7+
/.hvigor
8+
**/.hvigor
9+
.cxx
10+
/.clangd
11+
/.clang-format
12+
/.clang-tidy
13+
**/.test
14+
/.appanalyzer
15+
16+
# Local emulator verification artifacts
17+
/bitfun_*.jpeg
18+
/bitfun_*_layout.json
19+
/bitfun_layout*.json
20+
.bitfun/
21+
/.bitfun/search/flashgrep-index/
22+
23+
# Signing credentials and installable artifacts
24+
*.cer
25+
*.key
26+
*.p12
27+
*.p7b
28+
*.pem
29+
*.hap
30+
*.app
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"app": {
3+
"bundleName": "com.example.bitfun_mobile",
4+
"vendor": "example",
5+
"versionCode": 1000000,
6+
"versionName": "1.0.0",
7+
"buildVersion": "1",
8+
"icon": "$media:bitfun_icon",
9+
"label": "$string:app_name"
10+
}
11+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"string": [
3+
{
4+
"name": "app_name",
5+
"value": "BitFun"
6+
}
7+
]
8+
}
89.8 KB
Loading
1.14 MB
Loading

0 commit comments

Comments
 (0)