From 987bbf91134925778e87777daac279bb266bdee3 Mon Sep 17 00:00:00 2001 From: Arnaud Vergnet Date: Tue, 28 Apr 2020 08:22:31 +0200 Subject: [PATCH] Updated permissions --- android/app/src/main/AndroidManifest.xml | 21 +++---------------- .../generated/BasePackageList.java | 1 - ios/Campus/Info.plist | 20 ------------------ ios/Podfile | 6 ++++++ 4 files changed, 9 insertions(+), 39 deletions(-) diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 883db5e..f7ddaeb 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -1,24 +1,9 @@ - - - - - - - - - - - - - - - - - - + + + diff --git a/android/app/src/main/java/fr/amicaleinsat/application/generated/BasePackageList.java b/android/app/src/main/java/fr/amicaleinsat/application/generated/BasePackageList.java index e9b026a..214de2f 100644 --- a/android/app/src/main/java/fr/amicaleinsat/application/generated/BasePackageList.java +++ b/android/app/src/main/java/fr/amicaleinsat/application/generated/BasePackageList.java @@ -18,7 +18,6 @@ public class BasePackageList { new expo.modules.lineargradient.LinearGradientPackage(), new expo.modules.location.LocationPackage(), new expo.modules.permissions.PermissionsPackage(), - new expo.modules.securestore.SecureStorePackage(), new expo.modules.sqlite.SQLitePackage(), new expo.modules.webbrowser.WebBrowserPackage() ); diff --git a/ios/Campus/Info.plist b/ios/Campus/Info.plist index aead101..153e4fe 100644 --- a/ios/Campus/Info.plist +++ b/ios/Campus/Info.plist @@ -52,28 +52,8 @@ - NSCalendarsUsageDescription - Allow Campus to access your calendar NSCameraUsageDescription Allow Campus to use the camera - NSContactsUsageDescription - Allow Campus experiences to access your contacts - NSLocationAlwaysAndWhenInUseUsageDescription - Allow Campus to use your location - NSLocationAlwaysUsageDescription - Allow Campus to use your location - NSLocationWhenInUseUsageDescription - Allow Campus to use your location - NSMicrophoneUsageDescription - Allow Campus to access your microphone - NSMotionUsageDescription - Allow Campus to access your device's accelerometer - NSPhotoLibraryAddUsageDescription - Give Campus periences permission to save photos - NSPhotoLibraryUsageDescription - Give Campus periences permission to access your photos - NSRemindersUsageDescription - Allow Campus to access your reminders UILaunchStoryboardName LaunchScreen UIRequiredDeviceCapabilities diff --git a/ios/Podfile b/ios/Podfile index 2600a9c..1f333ce 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -44,4 +44,10 @@ target 'Campus' do # react-native-cli autolinking use_native_modules! + # Permissions + permissions_path = '../node_modules/react-native-permissions/ios' + + pod 'Permission-Notifications', :path => "#{permissions_path}/Notifications.podspec" + pod 'Permission-Camera', :path => "#{permissions_path}/Camera.podspec" + end