F-Droid flavor
WebToApp ships one source tree for GitHub, Play, and F-Droid. The F-Droid build is a Gradle property, not a long-lived git branch.
./gradlew :app:assembleStandardRelease -Pfdroid=trueOutput: app/build/outputs/apk/standard/release/app-standard-release-unsigned.apk. F-Droid signs it. Do not pass -Pfdroid in the same Gradle invocation as a normal release — there is one shell template per invocation.
What the flag does
| Piece | -Pfdroid=true |
|---|---|
| Firebase Cloud Messaging | Omitted. Push still works through the Web Notification polyfill, HTTP polling, and WebSocket. |
| Google Sign-In (Play Services / Credential Manager) | Omitted. NativeBridge.googleSignIn returns UNAVAILABLE. |
| Browser engine | Android System WebView. |
| Cronet | Native libraries ship in the host and are copied into exports that use HTTP/3 or ECH. |
| Release signing | signingConfig is null so the APK stays unsigned. |
| Host editor | FCM / Google Sign-In entries are hidden. Saved config fields stay in the schema so export no-ops instead of forking JSON. |
BuildConfig.FDROID is true in both :app and :shell. Google-typed sources live in app/src/google/java; the F-Droid twins with the same FQCN live in app/src/fdroid/java. Shell sync copies one of those two trees.
CI
The check job compiles this flavor in a second Gradle invocation so the flag cannot contaminate the normal build:
./gradlew -PskipShellTemplateSync=true -Pfdroid=true \
:app:compileStandardReleaseKotlin \
:shell:compileReleaseKotlin \
:app:processStandardReleaseManifest \
:shell:processReleaseManifestStore listing copy
Fastlane files live at fastlane/metadata/android/<locale>/. F-Droid reads those from this repository.
The fdroiddata recipe to copy into a fdroiddata merge request is metadata/com.webtoapp.yml at the repo root of this project (path metadata/com.webtoapp.yml). MR title: New app: WebToApp.
Categories:
- Development
- Internet
License: Unlicense
SourceCode: https://github.com/shiaho777/web-to-app
IssueTracker: https://github.com/shiaho777/web-to-app/issues
Changelog: https://github.com/shiaho777/web-to-app/releases
WebSite: https://shiaho777.github.io/web-to-app/
RepoType: git
Repo: https://github.com/shiaho777/web-to-app.git
Builds:
- versionName: "2.9.8"
versionCode: 92
commit: v2.9.8
subdir: app
gradle:
- standard
gradleprops:
- fdroid=true
ndk: 28.2.13676358
rm:
- app/src/google
AutoUpdateMode: Version
UpdateCheckMode: Tags
UpdateCheckData: app/build.gradle.kts|versionCode = (\d+)|.|versionName = "([^"]+)"Tag the same commit that GitHub Releases use (v2.9.8). Use the complete recipe in metadata/com.webtoapp.yml, which also removes development examples and sample archives and strips inactive Google dependencies before source scanning. Update each APK through its original channel to keep the same signing key.
Do not mix templates
A -Pfdroid=true assemble rebuilds webview_shell.apk without Firebase and copies it into app/src/main/assets/template/. Regenerate the template before a normal GitHub or Play build. Run :shell:assembleRelease :app:syncShellTemplateApk without -Pfdroid.
