build 6, watchdog

This commit is contained in:
sagiferi
2026-10-27 21:21:33 +01:00
parent b84eef0b53
commit 29528f561b
11 changed files with 492 additions and 30 deletions
+19 -3
View File
@@ -1,3 +1,5 @@
import java.util.Properties
plugins {
id("com.android.application")
id("kotlin-android")
@@ -5,6 +7,11 @@ plugins {
id("dev.flutter.flutter-gradle-plugin")
}
// Play upload key lives outside the repo (see README). Without it, release
// builds fall back to the debug key so `flutter run --release` still works.
val uploadKeyFile = File(System.getProperty("user.home"), ".googleplay/key.properties")
val uploadKey = Properties().apply { if (uploadKeyFile.exists()) uploadKeyFile.inputStream().use { load(it) } }
android {
namespace = "com.example.sfzenith"
compileSdk = flutter.compileSdkVersion
@@ -29,11 +36,20 @@ android {
versionName = flutter.versionName
}
signingConfigs {
if (uploadKeyFile.exists()) {
create("release") {
storeFile = file(uploadKey.getProperty("storeFile"))
storePassword = uploadKey.getProperty("storePassword")
keyAlias = uploadKey.getProperty("keyAlias")
keyPassword = uploadKey.getProperty("keyPassword")
}
}
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig = signingConfigs.getByName("debug")
signingConfig = signingConfigs.findByName("release") ?: signingConfigs.getByName("debug")
}
}
}
+25
View File
@@ -13,8 +13,33 @@
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="28"/>
<!-- Play Store device filter. A survey needs the rear camera, a compass
(magnetometer) and an accelerometer; without them the app cannot work.
Autofocus, gyroscope and GPS only help: declared optional, because the
CAMERA and location permissions would otherwise imply them as required. -->
<uses-feature
android:name="android.hardware.camera"
android:required="true"/>
<uses-feature
android:name="android.hardware.camera.autofocus"
android:required="false"/>
<uses-feature
android:name="android.hardware.sensor.compass"
android:required="true"/>
<uses-feature
android:name="android.hardware.sensor.accelerometer"
android:required="true"/>
<uses-feature
android:name="android.hardware.sensor.gyroscope"
android:required="false"/>
<uses-feature
android:name="android.hardware.location"
android:required="false"/>
<uses-feature
android:name="android.hardware.location.gps"
android:required="false"/>
<uses-feature
android:name="android.hardware.location.network"
android:required="false"/>
<application
android:label="SkyContour"