Browse Source

pulled in upstream

Jason Gaare 7 years ago
parent
commit
a314122abc

+ 1
- 1
ReactNativePermissions.js View File

24
 		'microphone',
24
 		'microphone',
25
 		'contacts',
25
 		'contacts',
26
 		'event',
26
 		'event',
27
-		'notification',
28
 		'photo',
27
 		'photo',
29
 		'storage'
28
 		'storage'
29
+		'notification',
30
 	]
30
 	]
31
 }
31
 }
32
 
32
 

+ 1
- 2
android/build.gradle View File

1
 buildscript {
1
 buildscript {
2
     repositories {
2
     repositories {
3
-        mavenCentral()
3
+        jcenter()
4
     }
4
     }
5
 
5
 
6
     dependencies {
6
     dependencies {
31
 
31
 
32
 dependencies {
32
 dependencies {
33
     compile 'com.facebook.react:react-native:+'
33
     compile 'com.facebook.react:react-native:+'
34
-    compile 'com.android.support:support-v4:24.1.1'
35
 }
34
 }

+ 3
- 1
android/src/main/java/com/joshblour/reactnativepermissions/ReactNativePermissionsModule.java View File

144
       case STORAGE:
144
       case STORAGE:
145
       case PHOTO:
145
       case PHOTO:
146
         return Manifest.permission.READ_EXTERNAL_STORAGE;
146
         return Manifest.permission.READ_EXTERNAL_STORAGE;
147
-      default:
147
+      case NOTIFICATION:
148
         return permission;
148
         return permission;
149
+      default:
150
+        return null;
149
     }
151
     }
150
   }
152
   }
151
 
153