Feature/wear publishing (#1264)

* Cleanup .gitignore

* Move to just wear rather than wearos_app.

* Try to use lots of wildcards for debug pr build archiving.
This commit is contained in:
Justin Bassett 2020-12-27 22:04:37 -05:00 committed by GitHub
parent 1ddd093fe7
commit 3b614548d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
31 changed files with 29 additions and 13 deletions

View File

@ -28,7 +28,7 @@ runs:
KEYSTORE: ${{ inputs.keystore }}
run: |
echo $KEYSTORE | base64 --decode > app/release_keystore.keystore
echo $KEYSTORE | base64 --decode > wearos_app/release_keystore.keystore
echo $KEYSTORE | base64 --decode > wear/release_keystore.keystore
- name: Inflate google-services.json
shell: bash
@ -36,7 +36,7 @@ runs:
GOOGLE_SERVICES: ${{ inputs.google-services }}
run: |
echo $GOOGLE_SERVICES > app/google-services.json
echo $GOOGLE_SERVICES > wearos_app/google-services.json
echo $GOOGLE_SERVICES > wear/google-services.json
- name: Inflate firebaseAppDistributionServiceCredentialsFile.json
shell: bash
@ -51,4 +51,4 @@ runs:
CREDS: ${{ inputs.playstore-creds }}
run: |
echo $CREDS > app/playStorePublishServiceCredentialsFile.json
echo $CREDS > wearos_app/playStorePublishServiceCredentialsFile.json
echo $CREDS > wear/playStorePublishServiceCredentialsFile.json

View File

@ -85,6 +85,16 @@ jobs:
asset_name: home-assistant-minimal-${{steps.rel_number.outputs.version}}.apk
asset_content_type: application/zip
- name: Upload Wear APK
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./wear/build/outputs/apk/release/wear-release.apk
asset_name: home-assistant-wear-${{steps.rel_number.outputs.version}}.apk
asset_content_type: application/zip
- name: Deploy to Firebase
env:
KEYSTORE_PASSWORD: ${{ secrets.ORIGINAL_KEYSTORE_FILE_PASSWORD }}

View File

@ -24,7 +24,9 @@ jobs:
${{ runner.os }}-gradle-
- name: Mock google-services.json
run: mv .github/mock-google-services.json app/google-services.json
run: |
cp .github/mock-google-services.json app/google-services.json
cp .github/mock-google-services.json wear/google-services.json
- name: Validate ktlint
run: ./gradlew ktlintCheck
@ -48,7 +50,9 @@ jobs:
${{ runner.os }}-gradle-
- name: Mock google-services.json
run: mv .github/mock-google-services.json app/google-services.json
run: |
cp .github/mock-google-services.json app/google-services.json
cp .github/mock-google-services.json wear/google-services.json
- name: Validate Lint
run: ./gradlew lint
@ -72,7 +76,9 @@ jobs:
${{ runner.os }}-gradle-
- name: Mock google-services.json
run: mv .github/mock-google-services.json app/google-services.json
run: |
cp .github/mock-google-services.json app/google-services.json
cp .github/mock-google-services.json wear/google-services.json
- name: Validate Tests
run: ./gradlew test
@ -96,7 +102,9 @@ jobs:
${{ runner.os }}-gradle-
- name: Mock google-services.json
run: mv .github/mock-google-services.json app/google-services.json
run: |
cp .github/mock-google-services.json app/google-services.json
cp .github/mock-google-services.json wear/google-services.json
- name: Build Debug APK
run: ./gradlew assembleDebug
@ -104,5 +112,4 @@ jobs:
- name: Archive Debug Build
uses: kittaakos/upload-artifact-as-is@v0
with:
path: ./app/build/outputs/apk/*/debug/*-debug.apk
path: ./**/*.apk

3
.gitignore vendored
View File

@ -1,8 +1,9 @@
.DS_Store
local.properties
google-services.json
*.iml
.idea/
.gradle/
build/
build/

1
app/.gitignore vendored
View File

@ -1 +0,0 @@
google-services.json

1
buildSrc/.gitignore vendored
View File

@ -1 +0,0 @@
.gradle

View File

@ -1,6 +1,6 @@
import org.gradle.kotlin.dsl.support.serviceOf
include(":common", ":app", ":wearos_app")
include(":common", ":app", ":wear")
rootProject.name = "home-assistant-android"

View File

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 55 KiB

View File

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

View File

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

View File

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

Before

Width:  |  Height:  |  Size: 8.4 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB

View File

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB