Skip to content

Commit

Permalink
Update permission matching logic (#278)
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 authored May 23, 2024
1 parent c98e4d4 commit 9a80752
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 9a80752

Please sign in to comment.