mgtypes 1.0.97 → 1.0.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/types/Permissions.ts
CHANGED
|
@@ -40,13 +40,10 @@ export enum mgNotificationsPermissionTitle {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
// STATE //////////////////////////////////////////////
|
|
43
|
+
// THESE ARE ALL THE PERMISSIONS THAT MOBGOB HAS AT WRITING
|
|
43
44
|
export interface mgPermissionsState {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
};
|
|
47
|
-
LOCATION: {
|
|
48
|
-
[permission: string]: mgNonNativePermission;
|
|
49
|
-
};
|
|
45
|
+
SHOW_LOCATION_AND_DISTANCES: mgNonNativePermission;
|
|
46
|
+
LOCATION_FOREGROUND: mgNativePermission;
|
|
50
47
|
}
|
|
51
48
|
|
|
52
49
|
export interface mgNativePermission {
|
|
@@ -412,9 +412,13 @@ export interface mgPermissionsProfile {
|
|
|
412
412
|
};
|
|
413
413
|
// ARE THESE PERMISSIONS NEEDED FOR THE USER'S
|
|
414
414
|
// VERSION OF THE APP? IF SO, THEY APPEAR IN SETTINGS
|
|
415
|
+
// 'isRequired' here refers to whether the configuration of the
|
|
416
|
+
// app has features that require that permission. So the Location_foreground
|
|
417
|
+
// is required if the app is configured to allow SHOW_LOCATION_AND_DISTANCES.
|
|
418
|
+
// The other native permissions are commented out because
|
|
419
|
+
// there are no finished features in the app that require them.
|
|
415
420
|
NATIVE_PERMISSIONS: {
|
|
416
421
|
LOCATION_FOREGROUND: { isRequired: boolean; requestOnInit: boolean };
|
|
417
|
-
// TODO:permissionsConfig
|
|
418
422
|
// LOCATION_BACKGROUND: { isRequired: boolean; requestOnInit: boolean };
|
|
419
423
|
// MEDIA_LIBRARY: { isRequired: boolean; requestOnInit: boolean };
|
|
420
424
|
// REMINDERS: { isRequired: boolean; requestOnInit: boolean };
|
|
@@ -437,8 +441,7 @@ export interface mgPermissionsProfile {
|
|
|
437
441
|
// if a permission is not toggleable and defaults to false, don't
|
|
438
442
|
// even bother showing it
|
|
439
443
|
LOCATION: {
|
|
440
|
-
|
|
441
|
-
SHOW_DISTANCE_TO_PINS: { canToggle: boolean; default: boolean };
|
|
444
|
+
SHOW_LOCATION_AND_DISTANCES: { canToggle: boolean; default: boolean }; // blue dot and user-to-pin distances
|
|
442
445
|
// user coordinate are sent to server
|
|
443
446
|
ENABLE_GEOTARGETED_CONTENT: { canToggle: boolean; default: boolean };
|
|
444
447
|
// shares location with friends when using the app
|