Skip to content

Commit

Permalink
Update permission matching logic
Browse files Browse the repository at this point in the history
1. Include sdk23 permissions
2. Remove maxSdk filter from permissions which is not parsed correctly on clients.
  • Loading branch information
ankur2136 committed May 23, 2024
1 parent c98e4d4 commit f23bf3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/config/PublishDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f23bf3e

Please sign in to comment.