Enable core library desugaring to fix jmDNS on older Android versions

This commit is contained in:
Cameron Gutman committed 2026-09-02 21:40:37 -05:00
1 parent 5c0c2390b2
commit 4eb24a8d7b
1 file changed
+3
+3
View File
@@ -59,6 +59,7 @@ android {
encoding "UTF-8" encoding "UTF-8"
sourceCompatibility JavaVersion.VERSION_17 sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17
coreLibraryDesugaringEnabled true
} }
lint { lint {
@@ -147,4 +148,6 @@ dependencies {
implementation 'com.squareup.okhttp3:okhttp:4.12.0' implementation 'com.squareup.okhttp3:okhttp:4.12.0'
implementation 'org.jmdns:jmdns:3.6.3' implementation 'org.jmdns:jmdns:3.6.3'
implementation 'com.github.cgutman:ShieldControllerExtensions:1.0.1' implementation 'com.github.cgutman:ShieldControllerExtensions:1.0.1'
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.5'
} }