Fix deprecation warnings

This commit is contained in:
emanuele-f 2026-05-16 18:38:27 +02:00
parent bda95a9f94
commit 489b134f70
3 changed files with 13 additions and 19 deletions

View File

@ -1,7 +1,7 @@
apply plugin: 'com.android.application'
android {
ndkVersion "28.2.13676358"
ndkVersion = "28.2.13676358"
defaultConfig {
applicationId "com.emanuelef.remote_capture"
@ -39,7 +39,7 @@ android {
// Use a different app ID for debug to allow its coexistence with release builds
applicationIdSuffix '.debug'
versionNameSuffix '-beta'
pseudoLocalesEnabled true
pseudoLocalesEnabled = true
if(project.hasProperty("doNotStrip")) {
// NOTE: packagingOptions will also affect the "release" build, so the "doNotStrip"
@ -68,15 +68,15 @@ android {
externalNativeBuild {
cmake {
path file('src/main/jni/CMakeLists.txt')
version "3.22.1"
version = "3.22.1"
}
}
compileOptions {
encoding "UTF-8"
coreLibraryDesugaringEnabled true // support devices running older Java versions
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
encoding = "UTF-8"
coreLibraryDesugaringEnabled = true // support devices running older Java versions
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
sourceSets {
@ -93,7 +93,7 @@ android {
systemProperty "java.library.path", "${buildDir}/hostJni"
}
}
namespace 'com.emanuelef.remote_capture'
namespace = 'com.emanuelef.remote_capture'
}
// Build zstd JNI for the host platform (needed by unit tests)

View File

@ -17,7 +17,7 @@ allprojects {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url = 'https://jitpack.io' }
}
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"

View File

@ -15,19 +15,13 @@ org.gradle.jvmargs=-Xmx1536m
# Android operating system, and which are packaged with your app's APK
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true
android.javaCompile.suppressSourceTargetDeprecationWarning=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false
android.defaults.buildfeatures.resvalues=true
android.sdk.defaultTargetSdkToCompileSdkIfUnset=false
android.enableAppCompileTimeRClass=false
android.usesSdkInManifest.disallowed=false
android.uniquePackageNames=false
android.dependency.useConstraints=true
android.r8.strictFullModeForKeepRules=false
android.r8.optimizedResourceShrinking=false
android.builtInKotlin=false
android.newDsl=false
# Single-app-module project: the constraint-exclusion optimization is a no-op,
# so just silence the sync-time hint instead of opting in.
android.generateSyncIssueWhenLibraryConstraintsAreEnabled=false