Skip to content

Commit a3be84e

Browse files
NathanWalkerclaude
andcommitted
feat(contacts)!: require @nativescript-community/perms v3
The plugin declares perms as a dependency for consumers to request contact permissions with, but never imports it, so no code changes are needed — only the declared range. Also corrects the README example, which imported `request` but called a `requestPermissions` that does not exist. The object form of `request()` still resolves to a `MultiResult` under v3. BREAKING CHANGE: requires @nativescript-community/perms v3. Apps pinning perms v2 must upgrade alongside this release. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 22fbbcb commit a3be84e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/contacts/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ import { request } from '@nativescript-community/perms';
9090
const contact = new Contact();
9191
// build a new contact...
9292

93-
requestPermissions({
93+
request({
9494
"contacts": {},
9595
"android.permission.GET_ACCOUNTS": {},
9696
"android.permission.READ_CONTACTS": {},

packages/contacts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@
4242
"readmeFilename": "README.md",
4343
"bootstrapper": "@nativescript/plugin-seed",
4444
"dependencies": {
45-
"@nativescript-community/perms": "^2.3.1"
45+
"@nativescript-community/perms": "^3.0.4"
4646
}
4747
}

0 commit comments

Comments
 (0)