GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - atman-project/beam-android: Beam for Android

BranchesTags
Open more actions menu

Latest commit

 

History

18 Commits
18 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
app
app
 
 
fastlane/metadata/android/en-US/images
fastlane/metadata/android/en-US/images
 
 
gradle
gradle
 
 
submodules
submodules
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
LICENSE
LICENSE
 
 
PRIVACY_POLICY.md
PRIVACY_POLICY.md
 
 
README.md
README.md
 
 
build.gradle.kts
build.gradle.kts
 
 
build_atman.sh
build_atman.sh
 
 
check_16kb.py
check_16kb.py
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle.kts
settings.gradle.kts
 
 

Repository files navigation

Beam for Android

Native Android client for Beam, the peer-to-peer file sharing app built on atman.

Counterpart to beam-ios. The desktop versions (macOS / Windows / Linux) live in the beam repo and are built with Tauri.

Develop

You'll need Android Studio (which bundles JDK 17) with the NDK installed side-by-side through its SDK Manager, plus a Rust toolchain to cross-compile atman.

Set ANDROID_NDK_HOME so cargo-ndk can find it, add the three Android Rust targets, and install cargo-ndk:

export ANDROID_NDK_HOME="$HOME/Library/Android/sdk/ndk/<version>"
rustup target add aarch64-linux-android armv7-linux-androideabi x86_64-linux-android
cargo install cargo-ndk

build_atman.sh cross-compiles atman per ABI, dropping libatman.so into app/src/main/jniLibs/<abi>/ and the UniFFI-generated Kotlin into app/src/main/java/uniffi/atman/atman.kt:

git submodule update --init --recursive
./build_atman.sh             # debug, all three ABIs
./build_atman.sh --release   # release, all three ABIs

AtmanClientFactory.kt, hand-written next to the generated atman.kt, works around UniFFI 0.28's Kotlin codegen skipping async constructors. Delete it once atman moves to UniFFI ≥ 0.29.

Open the project in Android Studio and run on a connected device, or install from the CLI:

./gradlew installDebug

Release build

NOTE: All of the following steps are automated in .github/workflows/release.yml.

Create ~/.gradle/gradle.properties with your keystore credentials:

BEAM_KEYSTORE_PATH=<base_dir>/beam-release.jks
BEAM_KEYSTORE_PASSWORD=<the keystore password you set>
BEAM_KEY_ALIAS=beam
BEAM_KEY_PASSWORD=<same as keystore password (you said "same" earlier)>

Build atman in release mode:

./build_atman.sh --release   # release, all three ABIs

Then, build the AAB:

./gradlew bundleRelease      # → app/build/outputs/bundle/release/app-release.aab

You'll see the signed bundle at app/build/outputs/bundle/release/app-release.aab. That's what you upload to Play Console.

Verify it's signed:

jarsigner -verify -verbose -certs app/build/outputs/bundle/release/app-release.aab

Should say jar verified and show your CN cert.

About

Beam for Android

atman.sh/beam

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.