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.
6
.github/actions/inflate-secrets/action.yml
vendored
|
@ -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
|
||||
|
|
10
.github/workflows/beta.yml
vendored
|
@ -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 }}
|
||||
|
|
19
.github/workflows/pr.yml
vendored
|
@ -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
|
@ -1,8 +1,9 @@
|
|||
.DS_Store
|
||||
|
||||
local.properties
|
||||
google-services.json
|
||||
|
||||
*.iml
|
||||
.idea/
|
||||
.gradle/
|
||||
build/
|
||||
build/
|
||||
|
|
1
app/.gitignore
vendored
|
@ -1 +0,0 @@
|
|||
google-services.json
|
1
buildSrc/.gitignore
vendored
|
@ -1 +0,0 @@
|
|||
.gradle
|
|
@ -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"
|
||||
|
||||
|
|
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 55 KiB |
Before Width: | Height: | Size: 2 KiB After Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 8.4 KiB |
Before Width: | Height: | Size: 6 KiB After Width: | Height: | Size: 6 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |