Skip to content

Commit a314122

Browse files
committed
pulled in upstream
2 parents 9e5cd12 + 99ddde4 commit a314122

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

ReactNativePermissions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ const RNPTypes = {
2424
'microphone',
2525
'contacts',
2626
'event',
27-
'notification',
2827
'photo',
2928
'storage'
29+
'notification',
3030
]
3131
}
3232

android/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
buildscript {
22
repositories {
3-
mavenCentral()
3+
jcenter()
44
}
55

66
dependencies {
@@ -31,5 +31,4 @@ repositories {
3131

3232
dependencies {
3333
compile 'com.facebook.react:react-native:+'
34-
compile 'com.android.support:support-v4:24.1.1'
3534
}

android/src/main/java/com/joshblour/reactnativepermissions/ReactNativePermissionsModule.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,10 @@ private String permissionForString(String permission) {
144144
case STORAGE:
145145
case PHOTO:
146146
return Manifest.permission.READ_EXTERNAL_STORAGE;
147-
default:
147+
case NOTIFICATION:
148148
return permission;
149+
default:
150+
return null;
149151
}
150152
}
151153

0 commit comments

Comments
 (0)