From a0fa9a2a50078896f294984bbaa35b13b308cda6 Mon Sep 17 00:00:00 2001 From: dsoffiantini Date: Wed, 18 Jan 2023 15:18:22 -0700 Subject: [PATCH] feat: :sparkles: adds ios method for set accuracy auth to places --- apps/AEPSampleApp/extensions/PlacesView.tsx | 10 + apps/AEPSampleApp/ios/Podfile | 2 +- apps/AEPSampleApp/ios/Podfile.lock | 625 +++++++++--------- packages/places/README.md | 34 +- packages/places/__tests__/PlacesTests.ts | 6 + packages/places/ios/src/RCTAEPPlaces.m | 17 +- .../places/ios/src/RCTAEPPlacesDataBridge.h | 2 + .../places/ios/src/RCTAEPPlacesDataBridge.m | 14 + packages/places/package.json | 2 +- packages/places/ts/Places.ts | 30 +- packages/places/ts/index.ts | 2 + packages/places/ts/models/PlacesAccuracy.ts | 4 + tests/jest/setup.ts | 344 ++++++---- 13 files changed, 653 insertions(+), 439 deletions(-) create mode 100644 packages/places/ts/models/PlacesAccuracy.ts diff --git a/apps/AEPSampleApp/extensions/PlacesView.tsx b/apps/AEPSampleApp/extensions/PlacesView.tsx index ce8a22b4..a715a58d 100644 --- a/apps/AEPSampleApp/extensions/PlacesView.tsx +++ b/apps/AEPSampleApp/extensions/PlacesView.tsx @@ -78,6 +78,12 @@ const setAuthorizationStatus = () => { console.log('Authorization status set'); }; +const setAccuracyAuthorization = () => { + Places.setAccuracyAuthorization('fullAccuracy'); + console.log('Accuracy authorization set'); +}; + + const PlacesView = ({navigation: {goBack}}: NavigationProps) => { return ( @@ -99,6 +105,10 @@ const PlacesView = ({navigation: {goBack}}: NavigationProps) => { title="setAuthorizationStatus()" onPress={setAuthorizationStatus} /> +