expo-permissions
Advanced tools
Comparing version 4.0.1-beta.0 to 5.0.0-rc.0
@@ -1,7 +0,7 @@ | ||
import { PermissionMap } from './Permissions.types'; | ||
import { PermissionMap, PermissionType } from './Permissions.types'; | ||
declare const _default: { | ||
readonly name: string; | ||
getAsync(permissionTypes: string[]): Promise<PermissionMap>; | ||
askAsync(permissionTypes: string[]): Promise<PermissionMap>; | ||
getAsync(permissionTypes: PermissionType[]): Promise<PermissionMap>; | ||
askAsync(permissionTypes: PermissionType[]): Promise<PermissionMap>; | ||
}; | ||
export default _default; |
@@ -1,2 +0,3 @@ | ||
import { PermissionResponse, PermissionType } from './Permissions.types'; | ||
import { PermissionResponse, PermissionType, PermissionMap, PermissionStatus, PermissionExpiration, PermissionInfo } from './Permissions.types'; | ||
export { PermissionStatus, PermissionResponse, PermissionExpiration, PermissionMap, PermissionInfo, PermissionType, }; | ||
export declare const CAMERA = "camera"; | ||
@@ -3,0 +4,0 @@ export declare const CAMERA_ROLL = "cameraRoll"; |
import { coalesceExpirations, coalesceStatuses } from './CoalescedPermissions'; | ||
import Permissions from './ExpoPermissions'; | ||
import { PermissionStatus, } from './Permissions.types'; | ||
export { PermissionStatus, }; | ||
export const CAMERA = 'camera'; | ||
@@ -4,0 +6,0 @@ export const CAMERA_ROLL = 'cameraRoll'; |
@@ -1,2 +0,2 @@ | ||
export declare type PermissionType = 'camera' | 'cameraRoll' | 'audioRecording' | 'location' | 'userFacingNotifications' | 'notifications' | 'contacts' | 'calendar' | 'reminders' | 'systemBrightness' | string; | ||
export declare type PermissionType = 'camera' | 'cameraRoll' | 'audioRecording' | 'location' | 'userFacingNotifications' | 'notifications' | 'contacts' | 'calendar' | 'reminders' | 'systemBrightness'; | ||
export declare type PermissionResponse = { | ||
@@ -3,0 +3,0 @@ status: PermissionStatus; |
{ | ||
"name": "expo-permissions", | ||
"version": "4.0.1-beta.0", | ||
"version": "5.0.0-rc.0", | ||
"description": "Allows you prompt for various permissions to access device sensors, personal data, etc.", | ||
@@ -41,3 +41,3 @@ "main": "build/Permissions.js", | ||
}, | ||
"gitHead": "8413e821076a2eca36b302e68dd628ce2e1f591a" | ||
"gitHead": "f04f6c038278daf9d4536da5ef651dbccf95c7b2" | ||
} |
@@ -28,12 +28,3 @@ # expo-permissions | ||
In `MainApplication.java`, import the package and add it to the `ReactModuleRegistryProvider` list: | ||
```java | ||
import expo.modules.permissions.PermissionsPackage; | ||
``` | ||
```java | ||
private final ReactModuleRegistryProvider mModuleRegistryProvider = new ReactModuleRegistryProvider(Arrays.<Package>asList( | ||
// Your other packages will be here | ||
new PermissionsPackage() | ||
), Arrays.<SingletonModule>asList()); | ||
``` | ||
No additional set up necessary. | ||
@@ -40,0 +31,0 @@ # Contributing |
import { coalesceExpirations, coalesceStatuses } from './CoalescedPermissions'; | ||
import Permissions from './ExpoPermissions'; | ||
import { PermissionResponse, PermissionType, PermissionMap } from './Permissions.types'; | ||
import { | ||
PermissionResponse, | ||
PermissionType, | ||
PermissionMap, | ||
PermissionStatus, | ||
PermissionExpiration, | ||
PermissionInfo, | ||
} from './Permissions.types'; | ||
export { | ||
PermissionStatus, | ||
PermissionResponse, | ||
PermissionExpiration, | ||
PermissionMap, | ||
PermissionInfo, | ||
PermissionType, | ||
}; | ||
export const CAMERA = 'camera'; | ||
@@ -6,0 +22,0 @@ export const CAMERA_ROLL = 'cameraRoll'; |
@@ -11,5 +11,3 @@ export type PermissionType = | ||
| 'reminders' | ||
| 'systemBrightness' | ||
// Allow other permissions for this API to be extensible | ||
| string; | ||
| 'systemBrightness'; | ||
@@ -16,0 +14,0 @@ export type PermissionResponse = { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
557
110200
33