A small, opinionated replacement for the Bubblewrap-generated TWA project.
Instead of regenerating a full Android project on every build, bansifywrap
ships one Android library that every Bansify app depends on. A wrapper app then
only carries its identity: package name, launch URL, icons and a few strings.
- One launch screen, defined in Android. The branded splash (mark, app name, tagline, credit line) is a real View, so it appears instantly and never flashes the web page first.
- One place to fix things. Edge-to-edge insets, the version gate and the fallback strategy are handled once for every app.
- Fast builds. No project generation step: the app repo runs Gradle and nothing else.
android/lib/ com.bansify.wrap — the library apps depend on
tools/ assetlinks.mjs (generate), doctor.mjs (verify a live origin)
docs/ usage notes
.github/ CI for the library, and the reusable TWA release workflow
dependencies {
implementation("com.github.Bansify:bansifywrap:1.1.0")
implementation("androidx.appcompat:appcompat:1.7.0")
}The app declares one activity (see docs/QUICKSTART.md) and
calls the shared release workflow from a ten-line .github/workflows/build-twa.yml.
| Key | Purpose |
|---|---|
android.support.customtabs.trusted.DEFAULT_URL |
The page to open (required) |
com.bansify.wrap.SPLASH_DURATION_MS |
Launch screen duration, default 700 |
com.bansify.wrap.VERSION_URL |
https JSON {"minVersionCode": N}; older installs get an update screen (docs) |
com.bansify.wrap.STORE_URL |
Play Store link used by that screen |
com.bansify.wrap.FALLBACK |
customtab (default) or webview when no TWA browser exists |
# generate the file an origin must publish
node tools/assetlinks.mjs --package com.bansify.drive \
--fingerprint 0D:B3:70:E9:...:3B:AF --out public/.well-known/assetlinks.json
# check a live origin before shipping
node tools/doctor.mjs --host drive.bansify.com \
--package com.bansify.drive --fingerprint 0D:B3:70:E9:...:3B:AFApps on 1.1.0: accounts, mail, pay, ai, gitplus.
Not migrated yet: meet (no icon asset in the repo), drive (repository is
archived), store, files, docs (no wrapper app planned yet).
Not built yet: a CLI (bansifywrap init), a license, and public documentation.