Open-WebUI-Client-for-Android/build.gradle
Hamin Sung 2a6ce2e123
Update SDK versions, refactor package structure, and modernize deprecated APIs
- Change package ID from com.maticcm.openwebuiclient to net.saltyming.android.openwebui
- Upgrade minSdk from 24 to 26 (Android 8.0)
- Upgrade compileSdk and targetSdk from 34 to 36
- Upgrade Gradle to 8.13.0

Modernize deprecated APIs:
- Remove setRenderPriority() (no effect since API 18)
- Replace shouldOverrideUrlLoading with WebResourceRequest signature
- Replace systemUiVisibility with WindowInsetsController (API 30+)
- Update registerReceiver with RECEIVER_NOT_EXPORTED flag (API 33+)
- Replace getParcelableExtra with type-safe version (API 33+)
- Replace overridePendingTransition with overrideActivityTransition (API 34+)

Improve WebView stability:
- Add pauseTimers/resumeTimers to lifecycle
- Add onStart/onStop lifecycle methods
- Force restore WebView state when returning from background
- Fix white screen issue after backgrounding

Other improvements:
- Add dark mode color resources
- Update README with new features
2025-10-01 15:45:11 +09:00

21 lines
No EOL
638 B
Groovy

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
kotlin_version = '1.9.22'
gradle_version = '8.13.0'
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:$gradle_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id("com.android.application") version '8.13.0' apply false
id("com.android.library") version '8.13.0' apply false
id("org.jetbrains.kotlin.android") version "1.9.22" apply false
}