Skip to content

Commit e76ad12

Browse files
aaronstealthclaude
andcommitted
Resolve merge conflicts with upstream main
Adapt UnifiedPush code to upstream refactoring: AppVersion, MessagingToken types, updated lint baselines and lockfiles. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2 parents 6023c19 + e2961a1 commit e76ad12

1,532 files changed

Lines changed: 87965 additions & 22994 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ root = true
44
charset = utf-8
55
indent_size = 4
66
indent_style = space
7+
insert_final_newline = true
8+
end_of_line = lf
9+
trim_trailing_whitespace = true
10+
11+
[*.{yml,yaml}]
12+
indent_size = 2
13+
ij_yaml_spaces_within_braces = false
14+
ij_yaml_spaces_within_brackets = false
715

816
[*.{kt,kts}]
917
ktlint_code_style = android_studio
@@ -12,9 +20,11 @@ ij_kotlin_name_count_to_use_star_import = 9999
1220
ij_kotlin_name_count_to_use_star_import_for_members = 9999
1321
# ktlint overrides
1422
ktlint_function_naming_ignore_when_annotated_with=Composable
15-
# Allow trailing commas but do not enforce it
16-
ktlint_standard_trailing-comma-on-call-site = disabled
1723
ij_kotlin_allow_trailing_comma_on_call_site = true
18-
ktlint_standard_trailing-comma-on-declaration-site = disabled
1924
ij_kotlin_allow_trailing_comma = true
25+
# Disable converting functions to expression bodies
26+
ktlint_standard_function-expression-body = disabled
27+
max_line_length = 120
28+
29+
[**/test/**.kt]
2030
max_line_length = off

.git-blame-ignore-revs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Enforce trailing comma
2+
93871a5e078ffaf6d7809e298592703f89e78530
3+
4+
# Update dependency org.jlleitschuh.gradle.ktlint to v13 (max line length 120)
5+
a2eb66ee40bf1d8e4b0624502d1e2668bd7cc447
6+
7+
# Replace android.util.Log with timber.log.Timber
8+
5c6c6e149fea2c2e406d4d7a53434ff932c40c56

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
blank_issues_enabled: false
22
contact_links:
3-
- name: Incorrect or missing information in the app documentation
3+
- name: Issue or suggestion for the app documentation
44
url: https://github.com/home-assistant/companion.home-assistant/issues
5-
about: Our documentation has its own issue tracker. Please report issues with the companion docs there.
6-
- name: I'm unsure where to go
5+
about: Please report any errors, missing information, or suggestions for the companion app documentation here.
6+
- name: Issue or suggestion for the developer documentation
7+
url: https://github.com/home-assistant/developers.home-assistant/issues
8+
about: Please report any errors, missing information, or suggestions for the developer documentation here.
9+
- name: Request a feature for the Android application
10+
url: https://github.com/orgs/home-assistant/discussions/new?category=android
11+
about: Request a new feature for the Android application.
12+
- name: Problem with your dashboard
13+
url: https://github.com/home-assistant/frontend/issues
14+
about: Most of the app's interface is provided by the Home Assistant frontend (WebView). Please report dashboard issues here.
15+
- name: I have a question or need support
16+
url: https://www.home-assistant.io/help
17+
about: GitHub is for tracking bugs and feature requests. For help and support, please visit our help page.
18+
- name: I'm not sure where to go
719
url: https://www.home-assistant.io/join-chat
8-
about: If you are unsure where to go, then joining our chat is recommended; Just ask!
20+
about: If you're unsure where to report your issue or ask your question, join our chat and we'll help

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/task.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Task
2+
description: For staff only - Create a task
3+
type: Task
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
## ⚠️ RESTRICTED ACCESS
9+
10+
**This form is restricted to Open Home Foundation staff and authorized contributors only.**
11+
12+
If you are a community member wanting to contribute, please:
13+
- For bug reports: Use the [bug report form](https://github.com/home-assistant/android/issues/new?template=Bug_report.md)
14+
- For feature requests: Submit to [Feature Requests](https://github.com/orgs/home-assistant/discussions)
15+
16+
---
17+
18+
### For authorized contributors
19+
20+
Use this form to create tasks for development work, improvements, or other actionable items that need to be tracked.
21+
- type: textarea
22+
id: description
23+
attributes:
24+
label: Description
25+
description: |
26+
Provide a clear and detailed description of the task that needs to be accomplished.
27+
28+
Be specific about what needs to be done, why it's important, and any constraints or requirements.
29+
placeholder: |
30+
Describe the task, including:
31+
- What needs to be done
32+
- Why this task is needed
33+
- Expected outcome
34+
- Any constraints or requirements
35+
validations:
36+
required: true
37+
- type: textarea
38+
id: additional_context
39+
attributes:
40+
label: Additional context
41+
description: |
42+
Any additional information, links, research, or context that would be helpful.
43+
44+
Include links to related issues, research, prototypes, roadmap opportunities etc.
45+
placeholder: |
46+
- Roadmap opportunity: [link]
47+
- Epic: [link]
48+
- Feature request: [link]
49+
- Technical design documents: [link]
50+
- Prototype/mockup: [link]
51+
- Dependencies: [links]
52+
validations:
53+
required: false

.github/actions/create-release-notes/action.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ runs:
1111
using: "composite"
1212
steps:
1313
- name: Get Previous Release Tag
14-
uses: actions/github-script@v7
14+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
1515
id: latest-release-tag
1616
with:
1717
github-token: ${{ inputs.gh-token }}
@@ -23,33 +23,38 @@ runs:
2323
})
2424
return data.tag_name
2525
- name: Get Generated Release Notes
26-
uses: actions/github-script@v7
26+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
2727
id: generate-notes
28+
env:
29+
TAG_NAME: ${{ inputs.tag-name }}
30+
PREVIOUS_TAG: ${{ steps.latest-release-tag.outputs.result }}
2831
with:
2932
github-token: ${{ inputs.gh-token }}
3033
result-encoding: string
3134
script: |
3235
const { data } = await github.rest.repos.generateReleaseNotes({
3336
owner: context.repo.owner,
3437
repo: context.repo.repo,
35-
tag_name: '${{ inputs.tag-name }}',
38+
tag_name: process.env.TAG_NAME,
3639
target_commitish: 'main',
37-
previous_tag_name: '${{ steps.latest-release-tag.outputs.result }}',
40+
previous_tag_name: process.env.PREVIOUS_TAG,
3841
})
3942
return data.body.replaceAll('`', '\'').replaceAll('"', '\'')
4043
- name: Generate Release Notes
4144
id: version-generator
4245
shell: bash
46+
env:
47+
PREVIOUS_TAG: ${{ steps.latest-release-tag.outputs.result }}
48+
CHANGELOG: ${{ steps.generate-notes.outputs.result }}
4349
run: |
4450
mkdir -p ./app/build/outputs/
4551
4652
echo "Previous Release Tag:"
47-
echo "${{ steps.latest-release-tag.outputs.result }}"
53+
echo "$PREVIOUS_TAG"
4854
4955
echo "Full Changelog:"
50-
CHANGELOG="${{ steps.generate-notes.outputs.result }}"
5156
echo -e "$CHANGELOG"
52-
printf "$CHANGELOG" > ./app/build/outputs/changelogGithub
57+
printf "%s" "$CHANGELOG" > ./app/build/outputs/changelogGithub
5358
5459
echo "Beta Changelog:"
5560
git log --format="* %s" HEAD^..HEAD

.github/actions/download-translations/action.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,13 @@ runs:
1313
- name: Get Translations
1414
id: translations
1515
shell: bash
16+
env:
17+
LOKALISE_PROJECT: ${{ inputs.lokalise-project }}
18+
LOKALISE_TOKEN: ${{ inputs.lokalise-token }}
1619
run: |
1720
ZIP=`\
18-
curl --location --request POST "https://api.lokalise.com/api2/projects/${{inputs.lokalise-project}}/files/download" \
19-
--header "X-Api-Token: ${{inputs.lokalise-token}}" \
21+
curl --location --request POST "https://api.lokalise.com/api2/projects/${LOKALISE_PROJECT}/files/download" \
22+
--header "X-Api-Token: ${LOKALISE_TOKEN}" \
2023
--header 'Content-Type: application/json' \
2124
--data-raw '{
2225
"format": "xml",
@@ -31,7 +34,7 @@ runs:
3134
3235
echo "Download Ready: $ZIP"
3336
34-
curl $ZIP --output strings.zip
37+
curl "$ZIP" --output strings.zip
3538
3639
echo "Download Complete, unzipping"
3740
unzip -n strings.zip

.github/actions/setup-build-env/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ runs:
2424
cp .github/mock-google-services.json automotive/google-services.json
2525
2626
- name: Set up JDK 21
27-
uses: actions/setup-java@v4.7.1
27+
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
2828
with:
2929
distribution: "temurin"
3030
java-version: "21"
3131

3232
- name: Setup Gradle
33-
uses: gradle/actions/setup-gradle@v4
33+
uses: gradle/actions/setup-gradle@0723195856401067f7a2779048b490ace7a47d7c # v5.0.2
3434
with:
3535
cache-disabled: ${{ inputs.cache-disabled == 'true'}}
3636
cache-encryption-key: ${{ inputs.cache-encryption-key}}

.github/actions/upload-sarif-results/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ runs:
1414

1515
- name: Upload SARIF results
1616
if: ${{ !cancelled() && hashFiles('merged_results.sarif') != '' }}
17-
uses: actions/upload-artifact@v4
17+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
1818
with:
1919
name: ${{ inputs.category }}_sarif_results
2020
path: merged_results.sarif
2121

2222
- name: Upload ${{ inputs.category }} reports (SARIF)
2323
if: ${{ !cancelled() && hashFiles('merged_results.sarif') != '' }}
24-
uses: github/codeql-action/upload-sarif@v3
24+
uses: github/codeql-action/upload-sarif@b1bff81932f5cdfc8695c7752dcee935dcd061c8 # v4.33.0
2525
with:
2626
sarif_file: "./merged_results.sarif"
2727
category: ${{ inputs.category }}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "Upload test results"
2+
description: "Upload test result (always) and test reports (on failure) as artifacts."
3+
inputs:
4+
test-name:
5+
description: "Name of the test used as prefix for the artifact names."
6+
required: true
7+
runs:
8+
using: "composite"
9+
steps:
10+
- name: Upload test results
11+
if: always()
12+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
13+
with:
14+
name: ${{ inputs.test-name }} results
15+
path: |
16+
**/build/test-results/**/TEST-*.xml
17+
**/build/outputs/*/connected/*
18+
19+
- name: Upload test reports
20+
if: failure()
21+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
22+
with:
23+
name: ${{ inputs.test-name }} reports
24+
path: |
25+
**/build/reports/**

0 commit comments

Comments
 (0)