From f23bf3e572e19dab5dea03fe80be8db998dc3370 Mon Sep 17 00:00:00 2001 From: Ankur Jain Date: Thu, 23 May 2024 11:22:23 -0700 Subject: [PATCH] Update permission matching logic 1. Include sdk23 permissions 2. Remove maxSdk filter from permissions which is not parsed correctly on clients. --- packages/cli/src/config/PublishDetails.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/config/PublishDetails.ts b/packages/cli/src/config/PublishDetails.ts index a4b6fac..c300717 100644 --- a/packages/cli/src/config/PublishDetails.ts +++ b/packages/cli/src/config/PublishDetails.ts @@ -272,7 +272,7 @@ const getAndroidDetails = async ( const minSdk = new RegExp( AaptPrefixes.sdkPrefix + AaptPrefixes.quoteRegex ).exec(stdout); - const permissions = [...stdout.matchAll(/uses-permission: name='(.*)'/g)].flatMap(permission => permission[1]); + const permissions = [...stdout.matchAll(/(?:uses-permission|uses-permission-sdk-23): name='([^']*)'/g)].flatMap(permission => permission[1]); const locales = new RegExp( AaptPrefixes.localePrefix + AaptPrefixes.quoteNonLazyRegex ).exec(stdout);