~emersion/goguma-dev

ios: Disable background location v1 APPLIED

Jean THOMAS: 1
 ios: Disable background location

 1 files changed, 6 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~emersion/goguma-dev/patches/49952/mbox | git am -3
Learn more about email & git

[PATCH] ios: Disable background location Export this patch

Disable background location as recommended in flutter-geolocator.
---
 ios/Podfile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/ios/Podfile b/ios/Podfile
index d97a417..d776f68 100644
--- a/ios/Podfile
+++ b/ios/Podfile
@@ -42,5 +42,11 @@ post_install do |installer|
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
      end
    end

    if target.name == "geolocator_apple"
      target.build_configurations.each do |config|
        config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', 'BYPASS_PERMISSION_LOCATION_ALWAYS=1']
      end
    end
  end
end
-- 
2.39.3 (Apple Git-145)
Pushed, thanks!