From cae2f6cab6dcc54f8490f5c9d0427d6e12700982 Mon Sep 17 00:00:00 2001 From: inotia00 <108592928+inotia00@users.noreply.github.com> Date: Sun, 20 Oct 2024 20:51:19 +0900 Subject: [PATCH] perf(YouTube/GmsCore support): improve performance by using hashsets --- .../revanced/patches/shared/gms/BaseGmsCoreSupportPatch.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/shared/gms/BaseGmsCoreSupportPatch.kt b/src/main/kotlin/app/revanced/patches/shared/gms/BaseGmsCoreSupportPatch.kt index 314a845987..c3adcd3b29 100644 --- a/src/main/kotlin/app/revanced/patches/shared/gms/BaseGmsCoreSupportPatch.kt +++ b/src/main/kotlin/app/revanced/patches/shared/gms/BaseGmsCoreSupportPatch.kt @@ -344,7 +344,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", @@ -366,7 +366,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", @@ -463,7 +463,7 @@ abstract class BaseGmsCoreSupportPatch( /** * All content provider authorities. */ - val AUTHORITIES = listOf( + val AUTHORITIES = setOf( // gsf "com.google.android.gsf.gservices", "com.google.settings",