LeoColman / Petals

🌻 The Open Source app Petals aims to help its users to either quit weed, reduce usage or simply know how much they're using.
GNU Affero General Public License v3.0
73 stars 27 forks source link
agplv3 android cannabis damage-reduction drugs hacktoberfest kotlin privacy weed

Petals

License Unit Tests Lint Dependency Analysis

Translation status

GitHub Repo stars Gitmoji Git Secrets

Petals - An open source app to help users quit or control weed usage | Product Hunt ko-fi


The Open Source app Petals aims to help its users to either quit weed, reduce usage or simply know how much they're using.

<img src="https://user-images.githubusercontent.com/1577251/236347752-5c312036-27d1-4515-ab86-dc2aa9a09e66.png" alt="Get it on GitHub" height="80"> <img src="https://fdroid.gitlab.io/artwork/badge/get-it-on.png" alt="Get it on F-Droid" height="80"> <img src="https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png" alt="Get it on Play Store" height="80">

⚠️ The Google Play Store version contains advertisements

For an ad free experience download the app either from F-Droid or from the Releases Page.

Translations

Translations are hosted at Weblate. You can contribute to your language here

Translation status


Translation status

Screenshots

Open to see screenshots ![](fastlane/metadata/android/en-US/images/phoneScreenshots/1.png) ![](fastlane/metadata/android/en-US/images/phoneScreenshots/2.png) ![](fastlane/metadata/android/en-US/images/phoneScreenshots/3.png) [More Screenshots](fastlane/metadata/android/en-US/images/phoneScreenshots)

Building

Signed

The signed version (the one published to GitHub and PlayStore) can be built with:

./gradlew packageGithubReleaseUniversalApk

You must first decrypt secrets using git secret reveal

Unsigned

If you're building an unsigned version, build the same one that goes to FDroid (as FDroid signs the app themselves).

./gradlew packageFdroidReleaseUniversalApk

This approach doesn't require secrets.

Git Secrets

The Keystore, Keystore Properties and Google Play deploy json files are included in the repository using git secret. The current secret owners are:

Releasing

Release to all our channels are made automatically after a tag is released. The workflow responsible for doing that is release.main.kts.

Google Play Store

  1. Decrypt all git secrets
  2. Run ./gradlew packageGithubReleaseUniversalApk
  3. Publish to playstore running bundle config path vendor/bundle && bundle install --jobs 4 --retry 3 && bundle exec fastlane playstore

F-Droid

F-Droid builds automatically from the repository whenever a new tag is published. The definitions for how to build the app are in FDroid's data repository. If modifications are required, the place to change is there.

Releases Page

  1. Decrypt all git secrets
  2. Run ./gradlew packageGithubReleaseUniversalApk