Minimal Android app that tests the HyperDHT Kotlin/JNI wrapper.
-
Download
hyperdht-android-arm64.tar.gzfrom the GitHub Actions artifacts -
Extract and copy the JNI shared library:
tar xf hyperdht-android-arm64.tar.gz cp lib/libhyperdht_jni.so app/src/main/jniLibs/arm64-v8a/
-
Copy the Kotlin wrapper sources:
cp -r kotlin/com app/src/main/java/
# From this directory
nix develop .#android # or have Android SDK + Gradle installed
./gradlew assembleDebugThe APK will be at app/build/outputs/apk/debug/app-debug.apk.
adb install app/build/outputs/apk/debug/app-debug.apkOr transfer the APK to your phone and install manually.
- Loads
libhyperdht_jni.so(the native P2P library) - Connects to the echo server at
b7c5c4e9... - Sends a message over the encrypted P2P tunnel
- Displays the echoed response