{"id":13614292,"url":"https://github.com/LeoColman/Petals","last_synced_at":"2025-04-13T18:32:49.288Z","repository":{"id":39719080,"uuid":"426180570","full_name":"LeoColman/Petals","owner":"LeoColman","description":"🌻 The Open Source app Petals aims to help its users to either quit weed, reduce usage or simply know how much they're using.","archived":false,"fork":false,"pushed_at":"2025-04-09T16:39:42.000Z","size":64481,"stargazers_count":99,"open_issues_count":19,"forks_count":33,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-09T17:43:00.331Z","etag":null,"topics":["agplv3","android","cannabis","damage-reduction","drugs","hacktoberfest","kotlin","privacy","weed"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LeoColman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"ko_fi":"leocolman","github":"leocolman"}},"created_at":"2021-11-09T10:13:59.000Z","updated_at":"2025-04-09T16:34:37.000Z","dependencies_parsed_at":"2024-01-10T15:41:18.378Z","dependency_job_id":"884d63be-5087-4884-a381-cbede7456cf4","html_url":"https://github.com/LeoColman/Petals","commit_stats":null,"previous_names":[],"tags_count":125,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeoColman%2FPetals","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeoColman%2FPetals/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeoColman%2FPetals/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeoColman%2FPetals/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LeoColman","download_url":"https://codeload.github.com/LeoColman/Petals/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248760608,"owners_count":21157390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agplv3","android","cannabis","damage-reduction","drugs","hacktoberfest","kotlin","privacy","weed"],"created_at":"2024-08-01T20:00:59.466Z","updated_at":"2025-04-13T18:32:44.273Z","avatar_url":"https://github.com/LeoColman.png","language":"Kotlin","funding_links":["https://ko-fi.com/leocolman","https://github.com/sponsors/leocolman","https://ko-fi.com/K3K62Y2GB"],"categories":[":shamrock:  **Categories**"],"sub_categories":[":weight_lifting: Health \u0026 Fitness"],"readme":"# Petals\n\n[![License](https://img.shields.io/github/license/LeoColman/Petals)](https://github.com/LeoColman/Petals/blob/main/LICENSE)\n[![Unit Tests](https://github.com/LeoColman/Petals/actions/workflows/unit-tests.yaml/badge.svg)](https://github.com/LeoColman/Petals/actions/workflows/unit-tests.yaml)\n[![Lint](https://github.com/LeoColman/Petals/actions/workflows/lint.yaml/badge.svg)](https://github.com/LeoColman/Petals/actions/workflows/lint.yaml)\n[![Dependency Analysis](https://github.com/LeoColman/Petals/actions/workflows/dependency-license-analysis.yaml/badge.svg)](https://github.com/LeoColman/Petals/actions/workflows/dependency-analysis.yaml)\n\u003ca href=\"https://hosted.weblate.org/engage/petals-app/\"\u003e\n\u003cimg src=\"https://hosted.weblate.org/widgets/petals-app/-/svg-badge.svg\" alt=\"Translation status\" /\u003e\n\u003c/a\u003e\n[![GitHub Repo stars](https://img.shields.io/github/stars/LeoColman/Petals?style=plastic)](https://star-history.com/#LeoColman/Petals\u0026Date)\n[![Gitmoji](https://img.shields.io/badge/gitmoji-%20😜%20😍-FFDD67.svg?style=plastic)](https://gitmoji.dev/)\n[![Git Secrets](https://img.shields.io/badge/git%20secrets-enabled-green)](https://github.com/sobolevn/git-secret)\n[![Fdroid](https://img.shields.io/f-droid/v/br.com.colman.petals)](https://f-droid.org/packages/br.com.colman.petals/)\n[![GitHub Release](https://img.shields.io/github/v/release/LeoColman/Petals?label=github)](https://github.com/LeoColman/Petals/releases)\n\n\n\n\n\u003ca href=\"https://www.producthunt.com/posts/petals?utm_source=badge-featured\u0026utm_medium=badge\u0026utm_souce=badge-petals\" target=\"_blank\"\u003e\u003cimg src=\"https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=356573\u0026theme=light\" alt=\"Petals - An\u0026#0032;open\u0026#0032;source\u0026#0032;app\u0026#0032;to\u0026#0032;help\u0026#0032;users\u0026#0032;quit\u0026#0032;or\u0026#0032;control\u0026#0032;weed\u0026#0032;usage | Product Hunt\" style=\"width: 250px; height: 54px;\" width=\"250\" height=\"54\" /\u003e\u003c/a\u003e\n[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/K3K62Y2GB)\n\n\n------\n\nThe Open Source app Petals aims to help its users to either quit weed, reduce usage or simply know how much they're\nusing.\n\n\n[\u003cimg src=\"https://user-images.githubusercontent.com/1577251/236347752-5c312036-27d1-4515-ab86-dc2aa9a09e66.png\"\nalt=\"Get it on GitHub\"\nheight=\"80\"\u003e](https://github.com/LeoColman/Petals/releases)\n[\u003cimg src=\"https://fdroid.gitlab.io/artwork/badge/get-it-on.png\"\nalt=\"Get it on F-Droid\"\nheight=\"80\"\u003e](https://f-droid.org/packages/br.com.colman.petals/)\n[\u003cimg src=\"https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png\"\nalt=\"Get it on Play Store\"\nheight=\"80\"\u003e](https://play.google.com/store/apps/details?id=br.com.colman.petals)\n\n### ⚠️ The Google Play Store version contains advertisements\n\nFor an ad free experience download the app either from F-Droid or from the Releases Page.\n\n## Translations\nTranslations are hosted at Weblate. You can contribute to your language [here](https://hosted.weblate.org/engage/petals-app)\n\n\u003ca href=\"https://hosted.weblate.org/engage/petals-app/\"\u003e\n\u003cimg src=\"https://hosted.weblate.org/widgets/petals-app/-/287x66-grey.png\" alt=\"Translation status\" /\u003e\n\u003c/a\u003e\n\n\u003cbr\u003e\n\n\u003ca href=\"https://hosted.weblate.org/engage/petals-app/\"\u003e\n\u003cimg src=\"https://hosted.weblate.org/widgets/petals-app/-/multi-red.svg\" alt=\"Translation status\" /\u003e\n\u003c/a\u003e\n\n## Screenshots\n\n\u003cdetails\u003e\n\u003csummary\u003eOpen to see screenshots\u003c/summary\u003e\n\n![](fastlane/metadata/android/en-US/images/phoneScreenshots/1.png)\n![](fastlane/metadata/android/en-US/images/phoneScreenshots/2.png)\n![](fastlane/metadata/android/en-US/images/phoneScreenshots/3.png)\n\n[More Screenshots](fastlane/metadata/android/en-US/images/phoneScreenshots)\n\n\u003c/details\u003e\n\n## Building\n\n### Signed\n\nThe signed version (the one published to GitHub and PlayStore) can be built with:\n\n```\n./gradlew packageGithubReleaseUniversalApk\n```\n\nYou must first decrypt secrets using `git secret reveal`\n\n### Unsigned\n\nIf you're building an unsigned version, build the same one that goes to FDroid (as FDroid signs the app themselves).\n\n```\n./gradlew packageFdroidReleaseUniversalApk\n```\n\nThis approach doesn't require secrets.\n\n## Git Secrets\n\nThe **Keystore**, **Keystore Properties** and **Google Play deploy json** files are included in the repository using\n[git secret](https://sobolevn.me/git-secret/). The current secret owners are:\n\n- Leonardo Colman Lopes\n    - Fingerprint `B3A5 9909 9ECC 4DB4 FD40 896F 7706 1922 C587 2792`\n    - Original Author\n\n- GitHub Actions\n    - Fingerprint `882E 409C 71F4 565B 1698 B947 A992 5FF4 75B3 5E07`\n    - Auto-publishing signed app to GitHub\n    - Expires on 2027-04-05\n    - Available on environment secret `GPG_KEY`\n\n## Releasing\n\nRelease to all our channels are made automatically after a tag is released. The workflow responsible for doing that\nis [release.main.kts](.github/workflows/release.main.kts).\n\n### Google Play Store\n\n1. Decrypt all git secrets\n2. Run `./gradlew packageGithubReleaseUniversalApk`\n3. Publish to playstore\n   running `bundle config path vendor/bundle \u0026\u0026 bundle install --jobs 4 --retry 3 \u0026\u0026 bundle exec fastlane playstore`\n\n### F-Droid\n\nF-Droid builds automatically from the repository whenever a new tag is published. The definitions for how to build the\napp are\nin [FDroid's data repository](https://gitlab.com/fdroid/fdroiddata/-/blob/master/metadata/br.com.colman.petals.yml). If\nmodifications are required, the place to change is there.\n\n### Releases Page\n1. Decrypt all git secrets\n2. Run `./gradlew packageGithubReleaseUniversalApk`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLeoColman%2FPetals","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLeoColman%2FPetals","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLeoColman%2FPetals/lists"}