diff --git a/app/build.gradle b/app/build.gradle index 0f54e63352..7463d00bfc 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -80,6 +80,13 @@ android { } } + dependenciesInfo { + // Disables dependency metadata when building APKs. + includeInApk = false + // Disables dependency metadata when building Android App Bundles. + includeInBundle = false + } + sourceSets { test.java.srcDirs += '../testShared/src/test/java' } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 1db42ba617..4735783704 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -57,7 +57,7 @@ android:requestLegacyExternalStorage="true" android:banner="@drawable/about_header" android:localeConfig="@xml/locales_config" - android:usesCleartextTraffic="true"> + android:networkSecurityConfig="@xml/network_security_config"> = N) { + tagsList.remove("id") + tagsList.remove("he") + } + return LocaleListCompat.forLanguageTags(tagsList.joinToString(",")) } diff --git a/app/src/main/res/xml/network_security_config.xml b/app/src/main/res/xml/network_security_config.xml new file mode 100644 index 0000000000..626e7e34c0 --- /dev/null +++ b/app/src/main/res/xml/network_security_config.xml @@ -0,0 +1,6 @@ + + + + 127.0.0.1 + + diff --git a/app/src/test/java/com/amaze/filemanager/ui/fragments/preferencefragments/UiPrefsFragmentTest.kt b/app/src/test/java/com/amaze/filemanager/ui/fragments/preferencefragments/UiPrefsFragmentTest.kt index d974fb57fa..d4c6a42981 100644 --- a/app/src/test/java/com/amaze/filemanager/ui/fragments/preferencefragments/UiPrefsFragmentTest.kt +++ b/app/src/test/java/com/amaze/filemanager/ui/fragments/preferencefragments/UiPrefsFragmentTest.kt @@ -51,7 +51,12 @@ import kotlin.random.Random * Tests for [UiPrefsFragment]. */ @Config( - sdk = [Build.VERSION_CODES.KITKAT, Build.VERSION_CODES.P, Build.VERSION_CODES.R], + sdk = [ + Build.VERSION_CODES.KITKAT, + Build.VERSION_CODES.N, + Build.VERSION_CODES.P, + Build.VERSION_CODES.R + ], shadows = [ ShadowMultiDex::class, ShadowStorageManager::class,