Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions fdroid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,21 @@ F-Droid builds Papercase from source and signs it with its own key. The store li
(title, descriptions, icon, screenshots, changelogs) is read from
[`fastlane/metadata/android`](../fastlane/metadata/android) in this repo.

[`com.mattintech.papercase.yml`](com.mattintech.papercase.yml) is the build recipe, kept
exactly as submitted to fdroiddata. It has no comments because F-Droid's formatter
(`fdroid rewritemeta`) removes them and its pipeline fails if the file isn't formatted.
Its `prebuild` step deletes the `playImplementation` line: the play flavor's Google library
is never built, but F-Droid's scanner checks build files too.

## First submission

1. Tag the release on `main`, for example `v1.1.1` (the release workflow does the rest on GitHub).
1. Tag the release on `main`, for example `v1.2.1` (the release workflow does the rest on GitHub).
2. Fork https://gitlab.com/fdroid/fdroiddata and add
[`com.mattintech.papercase.yml`](com.mattintech.papercase.yml) as
`metadata/com.mattintech.papercase.yml`.
3. Check it locally if you have `fdroidserver` installed:
```bash
fdroid readmeta && fdroid lint com.mattintech.papercase && fdroid build -v -l com.mattintech.papercase
fdroid readmeta && fdroid lint com.mattintech.papercase && fdroid rewritemeta com.mattintech.papercase && fdroid build -v -l com.mattintech.papercase
```
4. Open a merge request to fdroiddata using the "App inclusion" template.

Expand Down
24 changes: 1 addition & 23 deletions fdroid/com.mattintech.papercase.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Build recipe for F-Droid. Submit this file to https://gitlab.com/fdroid/fdroiddata
# as metadata/com.mattintech.papercase.yml (see fdroid/README.md).
Categories:
- File Encryption & Vault
- Security
License: GPL-3.0-only
AuthorName: Matt Hills
Expand All @@ -14,35 +13,14 @@ RepoType: git
Repo: https://github.com/mattintech/papercase.git

Builds:
- versionName: 1.1.1
versionCode: 3
commit: v1.1.1
subdir: app
gradle:
- fdroid
# The play flavor's Google libraries aren't built, but F-Droid's scanner checks build files too
prebuild: sed -i -e '/playImplementation/d' build.gradle.kts

- versionName: 1.2.0
versionCode: 4
commit: v1.2.0
subdir: app
gradle:
- fdroid
# The play flavor's Google libraries aren't built, but F-Droid's scanner checks build files too
prebuild: sed -i -e '/playImplementation/d' build.gradle.kts

- versionName: 1.2.1
versionCode: 5
commit: v1.2.1
subdir: app
gradle:
- fdroid
# The play flavor's Google libraries aren't built, but F-Droid's scanner checks build files too
prebuild: sed -i -e '/playImplementation/d' build.gradle.kts

# F-Droid reads versionName and versionCode from app/build.gradle.kts at each tag.
# Only plain vMAJOR.MINOR.PATCH tags are picked up; pre-release tags are skipped.
AutoUpdateMode: Version
UpdateCheckMode: Tags ^v\d+\.\d+\.\d+$
CurrentVersion: 1.2.1
Expand Down
Loading