Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
b7e70ff
Initial plan
Copilot Feb 7, 2026
c526ea0
Add multi-repository support for WLED updates
Copilot Feb 7, 2026
c5a901d
Fix code issues found in review
Copilot Feb 7, 2026
1129f0c
Fix incorrect version reference for repo field
Copilot Feb 7, 2026
aef5a63
Restore UpdateSourceRegistry as fallback for missing repo field
Copilot Feb 7, 2026
b89efb4
Fix checkForUpdates to refresh all discovered device repositories
Copilot Feb 7, 2026
cd0ce47
Fix checkForUpdates to only refresh selected device's repository
Copilot Feb 7, 2026
a2d0b82
Update app/src/main/java/ca/cgagnier/wlednativeandroid/service/update…
netmindz Feb 7, 2026
24258a2
Update app/src/main/java/ca/cgagnier/wlednativeandroid/ui/homeScreen/…
netmindz Feb 7, 2026
f04e26b
Centralize DEFAULT_REPO constant to avoid duplication
Copilot Feb 7, 2026
48a299b
Fix data loss in database migration 9→10
Copilot Feb 7, 2026
a026381
Fix manual ReleaseService instantiation in DeviceEditViewModel
Copilot Feb 7, 2026
f5b6653
Add MoonMudules to UpdateSourceRegistry
netmindz Feb 21, 2026
fb1472a
Update app/src/main/java/ca/cgagnier/wlednativeandroid/service/update…
netmindz Feb 21, 2026
3381ba2
More robust UpdateSourceDefinition matching
netmindz Feb 21, 2026
08c88a1
Revert accidental change to agp version
netmindz Feb 21, 2026
b354211
Fix issues with database migration
netmindz Feb 21, 2026
35444a7
Merge branch 'refs/heads/MoonModules' into copilot/update-repo-tracki…
netmindz Feb 21, 2026
fc30b52
Attempt at fix for "ReleaseService is being instantiated directly her…
netmindz Feb 21, 2026
0d03fad
Handle forks using different names than WLED for their binaries
netmindz Feb 21, 2026
d15c838
Prefer UpdateSourceRegistry over repo field pending checking of accur…
netmindz Feb 21, 2026
8784db1
Prioritize original repo field over registry lookup in getRepositoryF…
netmindz Feb 28, 2026
c8ba0c6
Never replace a build with a release name, with platform-only based b…
netmindz Feb 28, 2026
654a7b1
Merge branch 'dev' into copilot/update-repo-tracking-system
netmindz Mar 10, 2026
3b4b6a6
Fix null release name
netmindz Mar 10, 2026
77e39ec
Fix merge typos
netmindz Mar 10, 2026
fa0839b
Refactor DevicesDatabase instance variable and update DeviceWebsocket…
netmindz Mar 10, 2026
70f44a8
Fix Asset entity schema mismatch - add defaultValue annotation
Copilot Mar 11, 2026
473e21d
Fix SQL syntax to match Room's expected schema format
Copilot Mar 11, 2026
3553ecb
Bump version
netmindz Mar 11, 2026
c409a49
Merge remote-tracking branch 'origin/copilot/update-repo-tracking-sys…
netmindz Mar 11, 2026
238bd18
Update database schema and migration for Asset table
netmindz Mar 11, 2026
a40cad4
Enhance repository tracking: add queries to fetch assets and versions…
netmindz Mar 11, 2026
d901cd6
Fix lint errors: proper formatting and typo corrections
Copilot Mar 12, 2026
c7adcde
Fix remaining lint issues: remove trailing whitespace and split long …
Copilot Mar 12, 2026
cb183a1
spotlessApply
netmindz Mar 12, 2026
0d660a5
Address :app:detekt issues
netmindz Mar 12, 2026
e24751d
Address final :app:detekt issues
netmindz Mar 12, 2026
cbeef95
Update app/src/main/java/ca/cgagnier/wlednativeandroid/service/update…
netmindz Mar 12, 2026
942177f
Update Gradle to 9.3.1, AGP to 9.1.0, and configure Android build pro…
Moustachauve Mar 11, 2026
b3b9674
Add Gradle toolchain configuration using foojay-resolver-convention p…
Moustachauve Mar 11, 2026
df0c5b2
Update dependencies in libs.versions.toml
Moustachauve Mar 11, 2026
d4d412f
Update .gitignore to exclude MkDocs folders, backup files, and App In…
Moustachauve Mar 14, 2026
0b66a8d
Add new line at the end of the file.
Moustachauve Mar 14, 2026
b929925
feat: add manual trigger to check workflow
Moustachauve Mar 14, 2026
29fdc08
style: fix remaining formatting issues from updated ktlint rules
Moustachauve Mar 14, 2026
09a827d
chore: add awesome-android-agent-skills
Moustachauve Mar 14, 2026
a998647
Chore(deps): Bump actions/upload-artifact from 6 to 7
dependabot[bot] Mar 14, 2026
0d1f4a4
Merge branch 'dev' into pr/125
Moustachauve Mar 14, 2026
f455dbb
chore: Restore missing database schema version 10
Moustachauve Mar 14, 2026
39bfdda
Fix race condition and remove redundant migration
Copilot Mar 14, 2026
0ed8a84
Enhance device tracking: update database schema to include repository…
netmindz Mar 14, 2026
1daeeea
apply code style formatting
netmindz Mar 14, 2026
4c646bc
fix detekt warning for complexity
netmindz Mar 14, 2026
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
201 changes: 201 additions & 0 deletions .github/skills/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1. Definitions.

"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.

"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.

"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.

"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.

"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).

"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.

2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.

3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.

4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:

(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and

(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and

(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and

(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.

You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.

5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.

6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.

7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.

8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.

9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
5 changes: 5 additions & 0 deletions .github/skills/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Android Agent Skills

This directory contains AI agent skills imported from the [awesome-android-agent-skills](https://github.com/new-silvermoon/awesome-android-agent-skills) repository.

These skills are licensed under the Apache License 2.0. See the `LICENSE` file in this directory for details.
36 changes: 36 additions & 0 deletions .github/skills/android-accessibility/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: android-accessibility
description: Expert checklist and prompts for auditing and fixing Android accessibility issues, especially in Jetpack Compose.
---

# Android Accessibility Checklist

## Instructions

Analyze the provided component or screen for the following accessibility aspects.

### 1. Content Descriptions
* **Check**: Do `Image` and `Icon` composables have a meaningful `contentDescription`?
* **Decorative**: If an image is purely decorative, use `contentDescription = null`.
* **Actionable**: If an element is clickable, the description should describe the *action* (e.g., "Play music"), not the icon (e.g., "Triangle").

### 2. Touch Target Size
* **Standard**: Minimum **48x48dp** for all interactive elements.
* **Fix**: Use `MinTouchTargetSize` or wrap in `Box` with appropriate padding if the visual icon is smaller.

### 3. Color Contrast
* **Standard**: WCAG AA requires **4.5:1** for normal text and **3.0:1** for large text/icons.
* **Tool**: Verify colors against backgrounds using contrast logic.

### 4. Focus & Semantics
* **Focus Order**: Ensure keyboard/screen-reader focus moves logically (e.g., Top-Start to Bottom-End).
* **Grouping**: Use `Modifier.semantics(mergeDescendants = true)` for complex items (like a row with text and icon) so they are announced as a single item.
* **State descriptions**: Use `stateDescription` to describe custom states (e.g., "Selected", "Checked") if standard semantics aren't enough.

### 5. Headings
* **Traversal**: Mark title texts with `Modifier.semantics { heading() }` to allow screen reader users to jump between sections.

## Example Prompts for Agent Usage
* "Analyze the content description of this Image. Is it appropriate?"
* "Check if the touch target size of this button is at least 48dp."
* "Does this custom toggle button report its 'Checked' state to TalkBack?"
52 changes: 52 additions & 0 deletions .github/skills/android-architecture/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
name: android-architecture
description: Expert guidance on setting up and maintaining a modern Android application architecture using Clean Architecture and Hilt. Use this when asked about project structure, module setup, or dependency injection.
---

# Android Modern Architecture & Modularization

## Instructions

When designing or refactoring an Android application, adhere to the **Guide to App Architecture** and **Clean Architecture** principles.

### 1. High-Level Layers
Structure the application into three primary layers. Dependencies must strictly flow **inwards** (or downwards) to the core logic.

* **UI Layer (Presentation)**:
* **Responsibility**: Displaying data and handling user interactions.
* **Components**: Activities, Fragments, Composables, ViewModels.
* **Dependencies**: Depends on the Domain Layer (or Data Layer if simple). **Never** depends on the Data Layer implementation details directly.
* **Domain Layer (Business Logic) [Optional but Recommended]**:
* **Responsibility**: Encapsulating complex business rules and reuse.
* **Components**: Use Cases (e.g., `GetLatestNewsUseCase`), Domain Models (pure Kotlin data classes).
* **Pure Kotlin**: Must NOT contain any Android framework dependencies (no `android.*` imports).
* **Dependencies**: Depends on Repository Interfaces.
* **Data Layer**:
* **Responsibility**: Managing application data (fetching, caching, saving).
* **Components**: Repositories (implementations), Data Sources (Retrofit APIs, Room DAOs).
* **Dependencies**: Depends only on external sources and libraries.

### 2. Dependency Injection with Hilt
Use **Hilt** for all dependency injection.

* **@HiltAndroidApp**: Annotate the `Application` class.
* **@AndroidEntryPoint**: Annotate Activities and Fragments.
* **@HiltViewModel**: Annotate ViewModels; use standard `constructor` injection.
* **Modules**:
* Use `@Module` and `@InstallIn(SingletonComponent::class)` for app-wide singletons (e.g., Network, Database).
* Use `@Binds` in an abstract class to bind interface implementations (cleaner than `@Provides`).

### 3. Modularization Strategy
For production apps, use a multi-module strategy to improve build times and separation of concerns.

* **:app**: The main entry point, connects features.
* **:core:model**: Shared domain models (Pure Kotlin).
* **:core:data**: Repositories, Data Sources, Database, Network.
* **:core:domain**: Use Cases and Repository Interfaces.
* **:core:ui**: Shared Composables, Theme, Resources.
* **:feature:[name]**: Standalone feature modules containing their own UI and ViewModels. Depends on `:core:domain` and `:core:ui`.

### 4. Checklist for implementation
- [ ] Ensure `Domain` layer has no Android dependencies.
- [ ] Repositories should default to main-safe suspend functions (use `Dispatchers.IO` internally if needed).
- [ ] ViewModels should interact with the UI layer via `StateFlow` (see `android-viewmodel` skill).
Loading
Loading