Compare commits

..

4 Commits

Author SHA1 Message Date
arnie b97e6f930b Update labels 2026-06-13 09:19:45 +02:00
arnie a196336f26 Add tests to flake 2026-06-12 21:02:34 +02:00
arnie 21819c4a9b Fix weburl for house conditions 2026-06-12 20:56:23 +02:00
arnie 99323694a3 Remove CI 2026-06-12 20:54:45 +02:00
4 changed files with 8 additions and 32 deletions
-27
View File
@@ -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
+2 -2
View File
@@ -17,7 +17,7 @@ android {
applicationId = "cz.c3c.webviewkiosk" applicationId = "cz.c3c.webviewkiosk"
minSdk = 26 // Sony KD-65XE9305 final firmware = Android 8.0 minSdk = 26 // Sony KD-65XE9305 final firmware = Android 8.0
targetSdk = 35 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" versionName = "0.1.0"
} }
@@ -50,7 +50,7 @@ android {
dimension = "webview" dimension = "webview"
applicationIdSuffix = ".$name" applicationIdSuffix = ".$name"
buildConfigField("String", "WEBVIEW_URL", "\"${config["url"]}\"") buildConfigField("String", "WEBVIEW_URL", "\"${config["url"]}\"")
resValue("string", "app_name", "C3C ${config["label"] ?: name}") resValue("string", "app_name", "${config["ui_label"] ?: config["label"] ?: name}")
} }
} }
} }
+2
View File
@@ -80,6 +80,7 @@
runtimeInputs = [ androidSdk pkgs.jdk21 pkgs.gradle_9 ]; runtimeInputs = [ androidSdk pkgs.jdk21 pkgs.gradle_9 ];
text = '' text = ''
${exportGradleEnv} ${exportGradleEnv}
gradle --no-daemon :app:test
gradle --no-daemon :app:assembleRelease gradle --no-daemon :app:assembleRelease
''; '';
}; };
@@ -89,6 +90,7 @@
runtimeInputs = [ androidSdk pkgs.jdk21 pkgs.gradle_9 pkgs.android-tools ]; runtimeInputs = [ androidSdk pkgs.jdk21 pkgs.gradle_9 pkgs.android-tools ];
text = '' text = ''
${exportGradleEnv} ${exportGradleEnv}
gradle --no-daemon :app:test
gradle --no-daemon :app:assembleRelease gradle --no-daemon :app:assembleRelease
${deployScript} ${deployScript}
''; '';
+4 -3
View File
@@ -1,7 +1,8 @@
weather: weather:
url: https://grafana.c3c.cz/public-dashboards/381fe3e71e164eb99dd0b10e246a36e2 url: https://grafana.c3c.cz/public-dashboards/381fe3e71e164eb99dd0b10e246a36e2
label: Weather ui_label: Počasí
house_condition: house_condition:
url: http://grafana.c3c.cz/public-dashboards/7d94ddc4493741debf49d0a301e1a757 url: https://grafana.c3c.cz/public-dashboards/7d94ddc4493741debf49d0a301e1a757
label: House Condition ui_label: Stav domu