Browse Source

Updated permissions

Arnaud Vergnet 1 year ago
parent
commit
987bbf9113

+ 3
- 18
android/app/src/main/AndroidManifest.xml View File

@@ -1,24 +1,9 @@
1 1
 <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="fr.amicaleinsat.application">
2 2
   <uses-permission android:name="android.permission.INTERNET"/>
3
-  <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
4
-  <uses-permission android:name="android.permission.MANAGE_DOCUMENTS"/>
5
-  <uses-permission android:name="android.permission.READ_INTERNAL_STORAGE"/>
6
-  <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
7
-  <uses-permission android:name="android.permission.USE_FINGERPRINT"/>
8
-  <uses-permission android:name="android.permission.VIBRATE"/>
9
-  <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
10
-  <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
11
-  <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
12 3
   <uses-permission android:name="android.permission.CAMERA" />
13
-  <uses-permission android:name="android.permission.READ_CONTACTS"/>
14
-  <uses-permission android:name="android.permission.READ_CALENDAR"/>
15
-  <uses-permission android:name="android.permission.WRITE_CALENDAR"/>
16
-  <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
17
-  <uses-permission android:name="android.permission.RECORD_AUDIO"/>
18
-  <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
19
-  <uses-permission android:name="android.permission.WRITE_SETTINGS"/>
20
-  <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
21
-  <uses-permission android:name="android.permission.WAKE_LOCK"/>
4
+  <uses-permission android:name="android.permission.VIBRATE"/>
5
+  <uses-permission android:name="android.permission.READ_INTERNAL_STORAGE"/>
6
+
22 7
   <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/>
23 8
   <application android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="false" android:theme="@style/AppTheme">
24 9
     <meta-data android:name="com.facebook.sdk.AutoInitEnabled" android:value="false"/>

+ 0
- 1
android/app/src/main/java/fr/amicaleinsat/application/generated/BasePackageList.java View File

@@ -18,7 +18,6 @@ public class BasePackageList {
18 18
         new expo.modules.lineargradient.LinearGradientPackage(),
19 19
         new expo.modules.location.LocationPackage(),
20 20
         new expo.modules.permissions.PermissionsPackage(),
21
-        new expo.modules.securestore.SecureStorePackage(),
22 21
         new expo.modules.sqlite.SQLitePackage(),
23 22
         new expo.modules.webbrowser.WebBrowserPackage()
24 23
     );

+ 0
- 20
ios/Campus/Info.plist View File

@@ -52,28 +52,8 @@
52 52
 			</dict>
53 53
 		</dict>
54 54
 	</dict>
55
-	<key>NSCalendarsUsageDescription</key>
56
-	<string>Allow Campus to access your calendar</string>
57 55
 	<key>NSCameraUsageDescription</key>
58 56
 	<string>Allow Campus to use the camera</string>
59
-	<key>NSContactsUsageDescription</key>
60
-	<string>Allow Campus experiences to access your contacts</string>
61
-	<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
62
-	<string>Allow Campus to use your location</string>
63
-	<key>NSLocationAlwaysUsageDescription</key>
64
-	<string>Allow Campus to use your location</string>
65
-	<key>NSLocationWhenInUseUsageDescription</key>
66
-	<string>Allow Campus to use your location</string>
67
-	<key>NSMicrophoneUsageDescription</key>
68
-	<string>Allow Campus to access your microphone</string>
69
-	<key>NSMotionUsageDescription</key>
70
-	<string>Allow Campus to access your device's accelerometer</string>
71
-	<key>NSPhotoLibraryAddUsageDescription</key>
72
-	<string>Give Campus periences permission to save photos</string>
73
-	<key>NSPhotoLibraryUsageDescription</key>
74
-	<string>Give Campus periences permission to access your photos</string>
75
-	<key>NSRemindersUsageDescription</key>
76
-	<string>Allow Campus to access your reminders</string>
77 57
 	<key>UILaunchStoryboardName</key>
78 58
 	<string>LaunchScreen</string>
79 59
 	<key>UIRequiredDeviceCapabilities</key>

+ 6
- 0
ios/Podfile View File

@@ -44,4 +44,10 @@ target 'Campus' do
44 44
   # react-native-cli autolinking
45 45
   use_native_modules!
46 46
 
47
+  # Permissions
48
+  permissions_path = '../node_modules/react-native-permissions/ios'
49
+
50
+  pod 'Permission-Notifications', :path => "#{permissions_path}/Notifications.podspec"
51
+  pod 'Permission-Camera', :path => "#{permissions_path}/Camera.podspec"
52
+
47 53
 end

Loading…
Cancel
Save