Skip to content

Prepare Google Play and F-Droid builds - #27

Merged
dineshsoudagar merged 3 commits into
mainfrom
store-prep
Oct 6, 2026
Merged

dineshsoudagar merged 3 commits into
mainfrom
store-prep

Conversation

@dineshsoudagar

@dineshsoudagar dineshsoudagar commented Oct 6, 2026 •

Copy link
Copy Markdown
Owner

Before: the app could only be built as one universal APK. Its ID was com.example.local_llm, which Google Play rejects, it targeted Android 15, and it had no terms, privacy policy or way to report AI answers.

After: one codebase builds three versions (github, fdroid, play), and the debug builds of all three install side by side for testing. The app ID is now io.github.dineshsoudagar.pocketllm and it targets Android 16. On first launch, users accept the Terms of Use and Privacy Policy, which can also be opened from About. Every AI answer has a report button.

How:

  • Gradle product flavors set BuildConfig.DISTRIBUTION_CHANNEL. Debug variants get their own app ID and label (Variant API).
  • The legal texts are bundled in assets/legal/. They read the developer's name, address, email and date from res/values/legal_contact.xml. Release builds fail while those values are still TODO.
  • The report button opens a pre-filled email to the contact address, or a pre-filled GitHub issue if no email is set. Nothing is sent automatically.
  • CI now runs on every PR, builds all three debug APKs as artifacts, and checks that the 64-bit native libraries support 16 KB memory pages (warning only for now).
  • docs/store/PLAY_CONSOLE.md has the Play Console checklist (Data safety answers, foreground service justifications, content rating). docs/legal/ has the legal README and an Impressum template.

Note: the fdroid flavor still includes ML Kit until the follow-up fdroid-build branch replaces it.

- New application ID io.github.dineshsoudagar.pocketllm, compile/target SDK 36
- github, fdroid and play build flavors; debug builds install side by side
- First-run Terms of Use and Privacy Policy acceptance, also reachable from About
- Report button on every AI response (email or GitHub issue)
- Release builds fail until legal contact details are filled in
- CI builds all three debug APKs and checks 16 KB page support
- Play Console checklist, legal README and Impressum template
@dineshsoudagar
dineshsoudagar marked this pull request as ready for review October 6, 2026 12:20
@dineshsoudagar
dineshsoudagar merged commit 1ec67d1 into main Oct 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant