Browse Source

Merge pull request #16 from convoyinc/chalupa/0.2.0

Podspec + Bugfix
Yonah Forst 8 years ago
parent
commit
845c46437a
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      ReactNativePermissions.js
  2. 1
    1
      ReactNativePermissions.podspec

+ 1
- 1
ReactNativePermissions.js View File

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

+ 1
- 1
ReactNativePermissions.podspec View File

18
   s.dependency 'React'
18
   s.dependency 'React'
19
 
19
 
20
   s.preserve_paths      = 'docs', 'CHANGELOG.md', 'LICENSE', 'package.json', 'ReactNativePermissions.ios.js'
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
 end
22
 end