{"id":50315799,"url":"https://github.com/codebydusk/no-thanks","last_synced_at":"2026-05-29T00:01:21.329Z","repository":{"id":359976545,"uuid":"1248229302","full_name":"codebydusk/no-thanks","owner":"codebydusk","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-24T12:59:08.000Z","size":111,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-24T13:15:52.760Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codebydusk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-24T11:12:24.000Z","updated_at":"2026-05-24T12:59:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/codebydusk/no-thanks","commit_stats":null,"previous_names":["codebydusk/no-thanks"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/codebydusk/no-thanks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebydusk%2Fno-thanks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebydusk%2Fno-thanks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebydusk%2Fno-thanks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebydusk%2Fno-thanks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codebydusk","download_url":"https://codeload.github.com/codebydusk/no-thanks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebydusk%2Fno-thanks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33630999,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2026-05-29T00:01:00.631Z","updated_at":"2026-05-29T00:01:21.318Z","avatar_url":"https://github.com/codebydusk.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n![No, thanks! banner](assets/banner.png)\n\n# No, thanks!\n\n*The excuse widget you never knew you needed.*\n\n\u003c/div\u003e\n\nA minimal Android home screen widget that serves you random excuses to gracefully say \"no\" — powered by the [No as a Service](https://github.com/hotheadhacker/no-as-a-service) API.\n\n\n## Download\n\n\u003cdiv align=\"center\"\u003e\n\n[![Latest Release](https://img.shields.io/github/v/release/codebydusk/no-thanks?style=for-the-badge\u0026logo=android\u0026label=Latest+APK\u0026color=0052CC)](https://github.com/codebydusk/no-thanks/releases/latest)\n\u0026nbsp;\n[![Total Downloads](https://img.shields.io/github/downloads/codebydusk/no-thanks/total?style=for-the-badge\u0026color=002966\u0026label=Total+Downloads)](https://github.com/codebydusk/no-thanks/releases)\n\n**[⬇ Download latest APK](https://github.com/codebydusk/no-thanks/releases/latest)** \u0026nbsp;·\u0026nbsp; [View all releases →](https://github.com/codebydusk/no-thanks/releases)\n\n\u003c/div\u003e\n\n\u003e **Note:** The APK is unsigned (debug-signed by the CI runner). Android may show an \"unknown source\" prompt on first install — this is expected. Enable *Install from unknown sources* for your browser or file manager.\n\n### Release History\n\n| Version | Date | Notes |\n| --- | --- | --- |\n| [v1.0.0](https://github.com/codebydusk/no-thanks/releases/tag/v1.0) | — | Initial release |\n\n\u003e Older releases are always available on the [GitHub Releases page](https://github.com/codebydusk/no-thanks/releases).\n\n\n## Features\n\n### Widget\n\n- **Switchable 4×2 / 4×1 layout** — resizes automatically based on the space you give it\n- **\"No, thanks!\" prefix** automatically prepended to every excuse\n- **Scrollable text** in 4×2 mode for longer excuses; up to 3 lines in 4×1 mode\n- **Refresh button** (↻) to fetch a new excuse from the API\n- **Previous button** (←) to browse through your last 10 excuses (toggle-able in settings)\n- **Tap to copy** or **dedicated copy button** — configurable in settings\n- **Hilarious copy confirmation** shown for 2 seconds after copying (randomly chosen from 10 messages)\n- **Theme-matched loading messages** — funny quips while the API is being called, no boring spinner\n- **Sarcastic fallback messages** when the API is unreachable\n\n### Settings App\n\n- **Appearance** — System default / Light / Dark\n- **Widget Theme** — 5 themes: Blueprint, Material, Nothing OS, Samsung One UI, OnePlus\n- **Corner Style** — Pill / Rounded / Sharp\n- **Copy Mechanism** — Tap text to copy, or show a dedicated copy button\n- **Navigation** — Toggle the previous (←) button on/off\n\n## Widget Themes\n\n| Theme | Style | Light Mode | Dark Mode |\n| --- | --- | --- | --- |\n| **Blueprint** *(default)* | Digital Blue palette | Light blue (`#E5F0FF`) bg · navy (`#002966`) text · blue (`#0052CC`) accent | Near-black (`#000E24`) bg · sky-blue (`#CCE0FF`) text · vivid blue (`#3385FF`) accent |\n| **Material** | MD3 standard | Light surface (`#FFFBFE`) · dark text | Dark surface (`#1C1B1F`) · light text |\n| **Nothing OS** | Dot-matrix monospace | White bg · black text · **red** (`#D71921`) refresh icon | Black bg · white text · **red** refresh icon |\n| **Samsung One UI** | Rounded sans-serif | Warm light (`#F7F7F7`) bg · dark text · Samsung blue accent | Warm dark (`#1A1A1A`) bg · light text · blue accent |\n| **OnePlus (OxygenOS)** | Clean minimal | Near-white (`#FAFAFA`) bg · dark text · **red** (`#F6000D`) refresh icon | Near-black (`#0F0F0F`) bg · light text · **red** refresh icon |\n\n\u003e Each theme automatically adapts to your device's system dark/light preference unless you override it in settings.\n\n## Corner Styles\n\n| Style | Corner Radius | Description |\n| --- | --- | --- |\n| **Pill** | 50 dp | Fully rounded, pill/capsule shape |\n| **Rounded** | 8 dp | Gentle, Samsung-style corner rounding |\n| **Sharp** | 0 dp | True square with zero rounding |\n\n## Appearance Modes\n\n| Mode | Behaviour |\n| --- | --- |\n| **System** | Follows the device's light/dark setting automatically |\n| **Light** | Always uses the light variant of the selected theme |\n| **Dark** | Always uses the dark variant of the selected theme |\n\n## Copy Mechanism\n\n| Option | Behaviour |\n| --- | --- |\n| **Tap text** | Tap anywhere on the excuse text to copy it to the clipboard |\n| **Copy button** | Shows a dedicated copy icon (📋) next to the refresh button |\n\n\u003e The \"No, thanks!\" prefix is **not** copied — only the raw excuse text goes to the clipboard.\n\n## Copy Confirmations\n\nAfter copying, one of these messages is shown at random for 2 seconds:\n\n| | |\n| --- | --- |\n| That's a copy, Houston. 📋 | Snagged! Use it wisely. |\n| Ctrl+C executed. Godspeed. | In your clipboard. No refunds. |\n| Excuse extracted with prejudice. | Pasted into your soul. 🌀 |\n| That excuse is now legally yours. | Copy secured. Mission complete. |\n| Yours now. Don't abuse it. | Clipboard hijacked. You're welcome. |\n\n## Screenshots\n\n*Coming soon*\n\n## Tech Stack\n\n| Component | Technology |\n| --- | --- |\n| Language | Kotlin 2.2 |\n| UI Framework | Jetpack Compose + Material 3 |\n| Widget Framework | Jetpack Glance 1.1.1 |\n| Networking | Retrofit 2.11 + Gson |\n| Persistence | DataStore Preferences |\n| Build System | Gradle (AGP 9.2.1) |\n| Min SDK | 26 (Android 8.0) |\n| Target SDK | 36 |\n\n## Project Structure\n\n```text\napp/src/main/java/com/github/codebydusk/nothanks/\n├── MainActivity.kt                  # Settings screen (Jetpack Compose)\n├── data/\n│   ├── ExcuseApi.kt                 # Retrofit API interface\n│   └── ExcuseRepository.kt          # Data layer — API calls, history, settings, message banks\n├── widget/\n│   ├── NoThanksWidget.kt            # Glance widget UI \u0026 theming\n│   ├── NoThanksWidgetReceiver.kt    # GlanceAppWidgetReceiver\n│   └── WidgetActions.kt             # ActionCallbacks — refresh, history, copy\n└── ui/theme/\n    ├── Color.kt\n    ├── Theme.kt\n    └── Type.kt\n```\n\n## API\n\nUses [No as a Service](https://naas.isalman.dev/) — a free API that returns random excuses.\n\n```text\nGET https://naas.isalman.dev/no\n```\n\nResponse:\n\n```json\n{\n  \"reason\": \"I signed up for a 'Just Say No' workshop and I'm committed to practicing.\"\n}\n```\n\n## Building \u0026 Running\n\n### Prerequisites\n\n- Android Studio (latest stable)\n- JDK 11+\n- An Android device or emulator (API 26+)\n\n### Build debug APK\n\n```bash\n./gradlew assembleDebug\n```\n\nOutput: `app/build/outputs/apk/debug/app-debug.apk`\n\n### Install directly on a connected device\n\n```bash\n./gradlew installDebug\n```\n\n### Adding the Widget\n\n1. Open the **No, thanks!** app once to initialize settings\n2. Long-press on your home screen → **Widgets**\n3. Find **No, thanks!** and drag it to your home screen\n4. Resize to **4×1** (compact, up to 3 lines) or **4×2** (expanded, scrollable)\n5. Open the app to change theme, corner style, appearance, and copy behaviour\n\n## Credits\n\n- **[No as a Service](https://github.com/hotheadhacker/no-as-a-service)** by [@hotheadhacker](https://github.com/hotheadhacker) — for the brilliant idea and the API that powers this widget\n- Built with [Jetpack Glance](https://developer.android.com/jetpack/compose/glance) and [Jetpack Compose](https://developer.android.com/jetpack/compose)\n\n## License\n\nThis project is open source and available under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebydusk%2Fno-thanks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodebydusk%2Fno-thanks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebydusk%2Fno-thanks/lists"}