[PR #3713] [MERGED] feat: support building on Android #5842

Closed
opened 2026-03-23 22:20:33 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/3713
Author: @LucasXu0
Created: 10/16/2023
Status: Merged
Merged: 10/19/2023
Merged by: @LucasXu0

Base: mainHead: android


📝 Commits (2)

  • 09d5dd4 feat: support building on Android
  • 4336b17 chore: add CI for mobile platform

📊 Changes

22 files changed (+353 additions, -120 deletions)

View changed files

.github/workflows/mobile_ci.yaml (+113 -0)
📝 frontend/.vscode/launch.json (+20 -8)
📝 frontend/.vscode/tasks.json (+28 -0)
📝 frontend/Makefile.toml (+8 -15)
📝 frontend/appflowy_flutter/.metadata (+7 -7)
📝 frontend/appflowy_flutter/android/.gitignore (+2 -0)
📝 frontend/appflowy_flutter/android/app/build.gradle (+15 -2)
📝 frontend/appflowy_flutter/android/app/src/debug/AndroidManifest.xml (+1 -2)
📝 frontend/appflowy_flutter/android/app/src/main/AndroidManifest.xml (+38 -42)
frontend/appflowy_flutter/android/app/src/main/CMakeLists.txt (+15 -0)
frontend/appflowy_flutter/android/app/src/main/Classes/binding.h (+18 -0)
📝 frontend/appflowy_flutter/android/app/src/profile/AndroidManifest.xml (+1 -2)
📝 frontend/appflowy_flutter/android/build.gradle (+3 -3)
📝 frontend/appflowy_flutter/android/gradle.properties (+1 -0)
📝 frontend/appflowy_flutter/android/gradle/wrapper/gradle-wrapper.properties (+3 -1)
📝 frontend/appflowy_flutter/ios/Podfile.lock (+2 -2)
📝 frontend/appflowy_flutter/packages/appflowy_backend/android/build.gradle (+4 -4)
📝 frontend/appflowy_flutter/packages/flowy_infra_ui/android/build.gradle (+3 -3)
📝 frontend/rust-lib/.gitignore (+2 -1)
📝 frontend/scripts/makefile/desktop.toml (+0 -27)

...and 2 more files

📄 Description

Requirement

  • Install Android Studio

  • Install SDK Tools

    • NDK 24.0.8215888
    • Android SDK Command
    • CMake 3.22.1
      Screenshot 2023-10-17 at 17 32 00
      Screenshot 2023-10-17 at 17 31 50
  • Install cargo-ndk

Linux

Q: /usr/include/stdint.h:26:10: fatal error: 'bits/libc-header-start.h' file not found

error: failed to run custom build command for `librocksdb-sys v0.11.0+8.1.1`

Caused by:
  process didn't exit successfully: `/home/runner/work/AppFlowy/AppFlowy/frontend/rust-lib/target/debug/build/librocksdb-sys-9c6d5c10f08cbb0c/build-script-build` (exit status: 101)
  --- stderr
  /usr/include/stdint.h:26:10: fatal error: 'bits/libc-header-start.h' file not found
  thread 'main' panicked at 'unable to generate rocksdb bindings: ClangDiagnostic("/usr/include/stdint.h:26:10: fatal error: 'bits/libc-header-start.h' file not found\n")', /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/librocksdb-sys-0.11.0+8.1.1/build.rs:40:10
  stack backtrace:

A: sudo apt-get install gcc-multilib

Preview

Screenshot 2023-10-16 at 22 50 55

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/AppFlowy-IO/AppFlowy/pull/3713 **Author:** [@LucasXu0](https://github.com/LucasXu0) **Created:** 10/16/2023 **Status:** ✅ Merged **Merged:** 10/19/2023 **Merged by:** [@LucasXu0](https://github.com/LucasXu0) **Base:** `main` ← **Head:** `android` --- ### 📝 Commits (2) - [`09d5dd4`](https://github.com/AppFlowy-IO/AppFlowy/commit/09d5dd4925f97f4ad30d86530f51db0f1f14aa68) feat: support building on Android - [`4336b17`](https://github.com/AppFlowy-IO/AppFlowy/commit/4336b176bf6c9eb92b6519f835a3ed3f4a9e9fc5) chore: add CI for mobile platform ### 📊 Changes **22 files changed** (+353 additions, -120 deletions) <details> <summary>View changed files</summary> ➕ `.github/workflows/mobile_ci.yaml` (+113 -0) 📝 `frontend/.vscode/launch.json` (+20 -8) 📝 `frontend/.vscode/tasks.json` (+28 -0) 📝 `frontend/Makefile.toml` (+8 -15) 📝 `frontend/appflowy_flutter/.metadata` (+7 -7) 📝 `frontend/appflowy_flutter/android/.gitignore` (+2 -0) 📝 `frontend/appflowy_flutter/android/app/build.gradle` (+15 -2) 📝 `frontend/appflowy_flutter/android/app/src/debug/AndroidManifest.xml` (+1 -2) 📝 `frontend/appflowy_flutter/android/app/src/main/AndroidManifest.xml` (+38 -42) ➕ `frontend/appflowy_flutter/android/app/src/main/CMakeLists.txt` (+15 -0) ➕ `frontend/appflowy_flutter/android/app/src/main/Classes/binding.h` (+18 -0) 📝 `frontend/appflowy_flutter/android/app/src/profile/AndroidManifest.xml` (+1 -2) 📝 `frontend/appflowy_flutter/android/build.gradle` (+3 -3) 📝 `frontend/appflowy_flutter/android/gradle.properties` (+1 -0) 📝 `frontend/appflowy_flutter/android/gradle/wrapper/gradle-wrapper.properties` (+3 -1) 📝 `frontend/appflowy_flutter/ios/Podfile.lock` (+2 -2) 📝 `frontend/appflowy_flutter/packages/appflowy_backend/android/build.gradle` (+4 -4) 📝 `frontend/appflowy_flutter/packages/flowy_infra_ui/android/build.gradle` (+3 -3) 📝 `frontend/rust-lib/.gitignore` (+2 -1) 📝 `frontend/scripts/makefile/desktop.toml` (+0 -27) _...and 2 more files_ </details> ### 📄 Description ### Requirement - Install Android Studio - Install SDK Tools - NDK 24.0.8215888 - Android SDK Command - CMake 3.22.1 <img width="735" alt="Screenshot 2023-10-17 at 17 32 00" src="https://github.com/AppFlowy-IO/AppFlowy/assets/11863087/14531ad1-ea00-497a-8584-7277abc7095d"> <img width="737" alt="Screenshot 2023-10-17 at 17 31 50" src="https://github.com/AppFlowy-IO/AppFlowy/assets/11863087/6e6276f3-f21e-4b26-8243-e4eae57fe283"> - Install cargo-ndk #### Linux Q: **/usr/include/stdint.h:26:10: fatal error: 'bits/libc-header-start.h' file not found** ``` error: failed to run custom build command for `librocksdb-sys v0.11.0+8.1.1` Caused by: process didn't exit successfully: `/home/runner/work/AppFlowy/AppFlowy/frontend/rust-lib/target/debug/build/librocksdb-sys-9c6d5c10f08cbb0c/build-script-build` (exit status: 101) --- stderr /usr/include/stdint.h:26:10: fatal error: 'bits/libc-header-start.h' file not found thread 'main' panicked at 'unable to generate rocksdb bindings: ClangDiagnostic("/usr/include/stdint.h:26:10: fatal error: 'bits/libc-header-start.h' file not found\n")', /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/librocksdb-sys-0.11.0+8.1.1/build.rs:40:10 stack backtrace: ``` A: **`sudo apt-get install gcc-multilib`** ### Preview <img width="1161" alt="Screenshot 2023-10-16 at 22 50 55" src="https://github.com/AppFlowy-IO/AppFlowy/assets/11863087/118e0d88-06b7-42fe-87f6-a4fd18aefbc9"> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 22:20:33 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#5842
No description provided.