Skip to content

adzialocha/doggodroid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

p2panda node in Android app

⚠️ This is an experimental setup to see if we can bring the p2panda aquadoggo node into an native Android app! And yes, it works! Give me some time to clean this up and write more documentation.

Please note: This was tested with a smartphone with ARM64 architecture.

Requirements

  • Rust
  • Android NDK
  • Android SDK

Usage

# Setup
cargo install cargo-apk

# Build native `.so` library
cargo apk build --release

# Copy library to Android project
cp ./target/release/apk/lib/arm64-v8a/libaquadoggo_android.so ../android/Doggodroid/app/src/main/jniLibs/arm64-v8a

# Open the Android project `Doggodroid` in Android Studio and run it from there ..!

Notes

  • This uses ndk-glue to activate the Android Logcat logger, through this we get nice logging, though it could also be realized without ndk-glue and just done directly with android_logger crate
  • android:usesCleartextTraffic="true" in AndroidManifest.xml is important to make requests using http:// work

Links

About

Experiments with embedding aquadoggo inside a native Android app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published