From 2c5d390fb1275dc3da5a3b912e221b7d594a1561 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Wed, 16 Oct 2024 00:27:52 +0200 Subject: [PATCH] perf(YouTube - GmsCore support): Improve performance by using hashsets --- .../patches/shared/misc/gms/BaseGmsCoreSupportPatch.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/shared/misc/gms/BaseGmsCoreSupportPatch.kt b/src/main/kotlin/app/revanced/patches/shared/misc/gms/BaseGmsCoreSupportPatch.kt index 5969d2c29..2d15a85be 100644 --- a/src/main/kotlin/app/revanced/patches/shared/misc/gms/BaseGmsCoreSupportPatch.kt +++ b/src/main/kotlin/app/revanced/patches/shared/misc/gms/BaseGmsCoreSupportPatch.kt @@ -249,7 +249,7 @@ abstract class BaseGmsCoreSupportPatch( /** * A list of all permissions. */ - val PERMISSIONS = listOf( + val PERMISSIONS = setOf( // C2DM / GCM "com.google.android.c2dm.permission.RECEIVE", "com.google.android.c2dm.permission.SEND", @@ -266,7 +266,7 @@ abstract class BaseGmsCoreSupportPatch( /** * All intent actions. */ - val ACTIONS = listOf( + val ACTIONS = setOf( // location "com.google.android.gms.location.places.ui.PICK_PLACE", "com.google.android.gms.location.places.GeoDataApi", @@ -345,7 +345,7 @@ abstract class BaseGmsCoreSupportPatch( /** * All content provider authorities. */ - val AUTHORITIES = listOf( + val AUTHORITIES = setOf( // gsf "com.google.android.gsf.gservices", "com.google.settings",