Compare commits
4 Commits
a3bbac72d6
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
b97e6f930b
|
|||
|
a196336f26
|
|||
|
21819c4a9b
|
|||
|
99323694a3
|
@@ -1,27 +0,0 @@
|
||||
name: build
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
tags: ['*']
|
||||
concurrency:
|
||||
group: ${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: docksee/nixos-gitea:${{ vars.NIX_IMAGE_VERSION }}
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Check runner arch
|
||||
run: uname -m
|
||||
- name: Unit tests
|
||||
run: nix develop --command gradle --no-daemon :app:test
|
||||
- name: Build release APKs
|
||||
run: nix develop --command gradle --no-daemon :app:assembleRelease
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: android-webview-kiosk-apk
|
||||
path: app/build/outputs/apk/*/release/*.apk
|
||||
@@ -17,7 +17,7 @@ android {
|
||||
applicationId = "cz.c3c.webviewkiosk"
|
||||
minSdk = 26 // Sony KD-65XE9305 final firmware = Android 8.0
|
||||
targetSdk = 35
|
||||
versionCode = 1 // bump on every release; adb install -r refuses downgrades
|
||||
versionCode = 3 // bump on every release; adb install -r refuses downgrades
|
||||
versionName = "0.1.0"
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ android {
|
||||
dimension = "webview"
|
||||
applicationIdSuffix = ".$name"
|
||||
buildConfigField("String", "WEBVIEW_URL", "\"${config["url"]}\"")
|
||||
resValue("string", "app_name", "C3C ${config["label"] ?: name}")
|
||||
resValue("string", "app_name", "${config["ui_label"] ?: config["label"] ?: name}")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -80,6 +80,7 @@
|
||||
runtimeInputs = [ androidSdk pkgs.jdk21 pkgs.gradle_9 ];
|
||||
text = ''
|
||||
${exportGradleEnv}
|
||||
gradle --no-daemon :app:test
|
||||
gradle --no-daemon :app:assembleRelease
|
||||
'';
|
||||
};
|
||||
@@ -89,6 +90,7 @@
|
||||
runtimeInputs = [ androidSdk pkgs.jdk21 pkgs.gradle_9 pkgs.android-tools ];
|
||||
text = ''
|
||||
${exportGradleEnv}
|
||||
gradle --no-daemon :app:test
|
||||
gradle --no-daemon :app:assembleRelease
|
||||
${deployScript}
|
||||
'';
|
||||
|
||||
+4
-3
@@ -1,7 +1,8 @@
|
||||
weather:
|
||||
url: https://grafana.c3c.cz/public-dashboards/381fe3e71e164eb99dd0b10e246a36e2
|
||||
label: Weather
|
||||
ui_label: Počasí
|
||||
|
||||
house_condition:
|
||||
url: http://grafana.c3c.cz/public-dashboards/7d94ddc4493741debf49d0a301e1a757
|
||||
label: House Condition
|
||||
url: https://grafana.c3c.cz/public-dashboards/7d94ddc4493741debf49d0a301e1a757
|
||||
ui_label: Stav domu
|
||||
|
||||
|
||||
Reference in New Issue
Block a user