-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AppFlowy build tasks for Android platform #3184
AppFlowy build tasks for Android platform #3184
Conversation
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3184 +/- ##
===========================================
+ Coverage 11.98% 66.57% +54.58%
===========================================
Files 540 540
Lines 25239 25274 +35
===========================================
+ Hits 3026 16826 +13800
+ Misses 22213 8448 -13765
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…flowy into appflowy_android_build
@@ -43,6 +43,16 @@ | |||
}, | |||
"cwd": "${workspaceRoot}/appflowy_flutter" | |||
}, | |||
{ | |||
"name": "AF-iOS: Build Dart Only", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added this task just for people who want to run AppFlowy, without rebuilding the backend
@rileyhawk1417 Can you provide more details on the instructions? I encountered this error.
|
@LucasXu0 I had put instructions in a README inside the android folder. Haven't tested it on MacOS yet, but am sure the setup is similar to that of Linux.
The error is related to the Android NDK not being found, its what is used to compile the rust backend for android. |
@LucasXu0 I believe you should look into the readme that was modified in the commits, there seems TL be a list of requirements where Android NDK is mentioned along other stuff, something called cargo-ndk as well.
If I understand correctly, the app is written with a blend of Flutter (Dart) and Rust as well, I don't understand just which kind of part is written in Rust (what is that part achieving ?). I've stumbled on this project and I'm interesting in having it working on Android, just keeping an eye on this PR since this brings good progress towards building a mobile application. @rileyhawk1417 Is it recommended in order to test this PR, to use VSCode ? I saw some files related to it. |
@AkechiShiro there's an article explaining about how flutter & rust work together in the app. As for the testing part of VSCode well its not necessary but it just makes things easier for development, you can run the VSCode tasks individually on a separate terminal. |
frontend/.vscode/tasks.json
Outdated
@@ -84,6 +84,34 @@ | |||
"cwd": "${workspaceFolder}" | |||
} | |||
}, | |||
{ | |||
"label": "AF: Clean + Rebuild All (Android)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's easier to see if you're running the right task, if the label include critical information at the beginning.
"label": "AF: Clean + Rebuild All (Android)", | |
"label": "AF-Android: Clean + Rebuild All", |
frontend/.vscode/tasks.json
Outdated
} | ||
}, | ||
{ | ||
"label": "AF: Build Appflowy Core For Android", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"label": "AF: Build Appflowy Core For Android", | |
"label": "AF-Android: Build Appflowy Core", |
Do you have a take on this PR @LucasXu0 ? |
Updated the debug labels & added a .gitignore for the android build files. |
It did fail to build the flowy test crate with this error:
I did pull from the latest code so maybe something is missing? |
Closing this PR as its been solved by this PR |
Feature Preview
PR Checklist