Timeout hiess: kein host_result kam zurueck. Ursachen adressiert: 1) handle() umschliesst JEDE Aktion mit try/catch(Throwable) -> auch OOM/Exception liefert jetzt ein host_result mit Fehlertext statt Stille (kein Timeout mehr). 2) ScreenCapturer nimmt direkt in gekappter Aufloesung auf (max 1280 lange Seite, MediaProjection skaliert) statt Vollbild-Bitmap + Nachskalieren -> viel weniger Speicher/Zeit (kein 10-MB-ARGB-Bitmap -> kein OOM), Frame-Warten bis ~3s. lastError fliesst in die Screenshot-Fehlermeldung. Version 0.0.0.4/code 4. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
58 lines
1.7 KiB
Groovy
58 lines
1.7 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'org.jetbrains.kotlin.android'
|
|
}
|
|
|
|
android {
|
|
namespace 'de.hackersoft.ariaagent'
|
|
compileSdk 34
|
|
|
|
defaultConfig {
|
|
applicationId 'de.hackersoft.ariaagent'
|
|
minSdk 26
|
|
targetSdk 33 // 33 vermeidet die Foreground-Service-Typ-Pflicht von 34
|
|
versionCode 4
|
|
versionName '0.0.0.4'
|
|
}
|
|
|
|
// Fester Signaturschlüssel: jeder Build signiert mit DEMSELBEN Key, damit
|
|
// Android neue APKs als Update derselben App akzeptiert (sonst "Konflikt mit
|
|
// bestehendem Paket"). Die Keystore-Datei liegt NUR lokal (gitignored, nicht
|
|
// im oeffentlichen Repo) — UNBEDINGT sichern, sonst brechen kuenftige Updates.
|
|
def ariaKeystore = rootProject.file('aria-agent.keystore')
|
|
signingConfigs {
|
|
aria {
|
|
if (ariaKeystore.exists()) {
|
|
storeFile ariaKeystore
|
|
storePassword 'ariaagent'
|
|
keyAlias 'aria'
|
|
keyPassword 'ariaagent'
|
|
}
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
debug {
|
|
if (ariaKeystore.exists()) signingConfig signingConfigs.aria
|
|
}
|
|
release {
|
|
minifyEnabled false
|
|
if (ariaKeystore.exists()) signingConfig signingConfigs.aria
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
targetCompatibility JavaVersion.VERSION_17
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = '17'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'androidx.core:core-ktx:1.12.0'
|
|
implementation 'androidx.appcompat:appcompat:1.6.1'
|
|
implementation 'com.squareup.okhttp3:okhttp:4.12.0' // RVS-WebSocket
|
|
implementation 'com.journeyapps:zxing-android-embedded:4.3.0' // QR-Scan (FOSS, kein Google-Dienst)
|
|
}
|