@nativescript-community/perms
Advanced tools
Comparing version 2.2.21 to 2.2.22
{ | ||
"name": "@nativescript-community/perms", | ||
"version": "2.2.21", | ||
"version": "2.2.22", | ||
"description": "An unified permissions API for NativeScript on iOS and Android.", | ||
"main": "./permissions", | ||
"main": "./index", | ||
"sideEffects": false, | ||
"typings": "./permissions.d.ts", | ||
"typings": "./index.d.ts", | ||
"nativescript": { | ||
@@ -14,2 +14,9 @@ "platforms": { | ||
}, | ||
"scripts": { | ||
"build": "npm run tsc", | ||
"build.all": "npm run build", | ||
"readme": "readme generate -c ../../tools/readme/blueprint.json", | ||
"tsc": "cpy '**/*.d.ts' '../../packages/perms' --parents --cwd=../../src/perms && tsc -skipLibCheck -d", | ||
"clean": "rimraf ./*.d.ts ./*.js ./*.js.map" | ||
}, | ||
"keywords": [ | ||
@@ -36,3 +43,3 @@ "NativeScript", | ||
"readmeFilename": "README.md", | ||
"gitHead": "73ad641798df11bca034dcba39fe773c332f8d05" | ||
"gitHead": "22fc5909d069d4fb7bc788f7cbf48081ca5c7d20" | ||
} |
@@ -1,18 +0,67 @@ | ||
[](https://www.npmjs.com/package/@nativescript-community/perms) | ||
[](https://www.npmjs.com/package/@nativescript-community/perms) | ||
[](https://github.com/nativescript-community/nativescript-perms/network) | ||
[](https://github.com/nativescript-community/nativescript-perms/stargazers) | ||
<!-- ⚠️ This README has been generated from the file(s) "blueprint.md" ⚠️--> | ||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
DO NOT EDIT THIS READEME DIRECTLY! Edit "bluesprint.md" instead. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> | ||
<h1 align="center">@nativescript-community/perms</h1> | ||
<p align="center"> | ||
<a href="https://npmcharts.com/compare/@nativescript-community/perms?minimal=true"><img alt="Downloads per month" src="https://img.shields.io/npm/dm/@nativescript-community/perms.svg" height="20"/></a> | ||
<a href="https://www.npmjs.com/package/@nativescript-community/perms"><img alt="NPM Version" src="https://img.shields.io/npm/v/@nativescript-community/perms.svg" height="20"/></a> | ||
</p> | ||
[](https://nodei.co/npm/@nativescript-community/perms/) | ||
<p align="center"> | ||
<b>An unified permissions API for NativeScript on iOS and Android.</b></br> | ||
<sub><sub> | ||
</p> | ||
<br /> | ||
| <img src="https://raw.githubusercontent.com/nativescript-community/gps/master/images/demo-ios.gif" height="500" /> | <img src="https://raw.githubusercontent.com/nativescript-community/gps/master/images/demo-android.gif" height="500" /> | | ||
| --- | ----------- | | ||
| iOS Demo | Android Demo | | ||
[](#table-of-contents) | ||
## Table of Contents | ||
* [Installation](#installation) | ||
* [API](#api) | ||
* [Permissions statuses](#permissions-statuses) | ||
* [Supported permissions types](#supported-permissions-types) | ||
* [Methods](#methods) | ||
* [iOS Notes](#ios-notes) | ||
* [App Store submission disclaimer](#app-store-submission-disclaimer) | ||
* [Android Notes](#android-notes) | ||
* [Troubleshooting](#troubleshooting) | ||
* [Q: iOS - App crashes as soon as I request permission](#q-ios---app-crashes-as-soon-as-i-request-permission) | ||
* [Q: iOS - App crashes when I change permission from settings](#q-ios---app-crashes-when-i-change-permission-from-settings) | ||
[](#installation) | ||
## Installation | ||
Run the following command from the root of your project: | ||
* `tns plugin add @nativescript-community/perms` | ||
`ns plugin add @nativescript-community/perms` | ||
Be sure to run a new build after adding plugins to avoid any issues. | ||
--- | ||
[](#api) | ||
This is a port of [react-native-permissions](https://github.com/yonahforst/react-native-permissions) | ||
## API | ||
@@ -178,2 +227,5 @@ | ||
[](#troubleshooting) | ||
## Troubleshooting | ||
@@ -180,0 +232,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
120199
1368
242
1