Skip to content

Support building and running on Android#36

Merged
kevinaboos merged 10 commits into
project-robius:mainfrom
kevinaboos:android_build_openssl
Feb 5, 2024
Merged

Support building and running on Android#36
kevinaboos merged 10 commits into
project-robius:mainfrom
kevinaboos:android_build_openssl

Conversation

@kevinaboos
Copy link
Copy Markdown
Member

@kevinaboos kevinaboos commented Jan 30, 2024

Currently vendoring rusqlite and openssl-src so we can build them locally with the same NDK toolchain currently specified by cargo-makepad.

Error running 'robrix':
Activity class {dev.makepad.robrix/MakepadApp} does not exist

Error running 'robrix':
Activity class {dev.makepad.robrix/MakepadApp} does not exist
* Add `login.toml`: a temp hack to specify your username and password
  on platforms where command-line arguments aren't supported,
  such as Android and other mobie platforms.
  * This file should not be committed to version control
    with a valid username and password; hence why it's in .gitignore.
* Switch to `log!()` and `error!()` macros instead of
  `println!()` and `eprintln!()`, which work on Android.
* Export environment variables that the `cc` crate relies on
  to build and link Android-specific native target libraries,
  which currently include openssl and sqlite.
  * These variables only affect builds for Android targets.
  * Eventually, we will modify `cargo-makepad` to automatically export
    those environment variables for Android builds, which would
    free the app developer from the burden of having to do so.
* The build only works with our custom version of `cargo-makepad`
  that installs the full NDK at the canonical path.
we can install the proper cargo makepad version that builds Robrix on Android.

Use log macros instead of println.

Add instructions for building and running Robrix on Android.
@kevinaboos kevinaboos changed the title WIP: supporting android APK builds Support building and running on Android Feb 5, 2024
@kevinaboos kevinaboos merged commit 1c3e2bf into project-robius:main Feb 5, 2024
@kevinaboos kevinaboos deleted the android_build_openssl branch February 5, 2024 17:05
tyreseluo pushed a commit to tyreseluo/robrix that referenced this pull request Apr 2, 2026
…-and-empty-filter-fallback

fix(search): support exact MXID people search and fallback to full list on empty local results
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant