Selaa lähdekoodia

Merge branch 'master' into set-deployment-target-to-8

Darin Wilson 8 vuotta sitten
vanhempi
commit
a89b20fbf7
3 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 1
    1
      ReactNativePermissions.js
  2. 1
    1
      ReactNativePermissions.podspec
  3. 1
    1
      package.json

+ 1
- 1
ReactNativePermissions.js Näytä tiedosto

@@ -58,7 +58,7 @@ class ReactNativePermissions {
58 58
 
59 59
 
60 60
 	getPermissionStatus(permission) {
61
-  	if (RNPTypes.indexOf(permission) >= 0) {
61
+  	if (this.getPermissionTypes().indexOf(permission) >= 0) {
62 62
 			return RNPermissions.getPermissionStatus(permission)
63 63
 		} else {
64 64
 			return Promise.reject(`ReactNativePermissions: ${permission} is not a valid permission type on ${Platform.OS}`)

+ 1
- 1
ReactNativePermissions.podspec Näytä tiedosto

@@ -18,5 +18,5 @@ Pod::Spec.new do |s|
18 18
   s.dependency 'React'
19 19
 
20 20
   s.preserve_paths      = 'docs', 'CHANGELOG.md', 'LICENSE', 'package.json', 'ReactNativePermissions.ios.js'
21
-  s.source_files        = '*.{h,m}'
21
+  s.source_files        = '**/*.{h,m}'
22 22
 end

+ 1
- 1
package.json Näytä tiedosto

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "name": "react-native-permissions",
3
-  "version": "0.2.0",
3
+  "version": "0.2.2",
4 4
   "repository": {
5 5
     "type": "git",
6 6
     "url": "https://github.com/joshblour/react-native-permissions.git"