Skip to content

Commit 951162a

Browse files
committed
Adds back the stopListening method
1 parent 1a90e4a commit 951162a

File tree

7 files changed

+40
-12
lines changed

7 files changed

+40
-12
lines changed

geolocator_apple/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.3.8+1
2+
3+
* HOT FIX: Adds back implementation of the `stopListening` method in the `GeolocationHandler.m` file.
4+
15
## 2.3.8
26

37
* Uses different `CLLocationManager` instances, for one time request location and persistent request location.

geolocator_apple/example/ios/Flutter/AppFrameworkInfo.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
<key>CFBundleVersion</key>
2222
<string>1.0</string>
2323
<key>MinimumOSVersion</key>
24-
<string>11.0</string>
24+
<string>12.0</string>
2525
</dict>
2626
</plist>

geolocator_apple/example/ios/Podfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uncomment this line to define a global platform for your project
2-
# platform :ios, '11.0'
2+
# platform :ios, '12.0'
33

44
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
55
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
@@ -31,7 +31,7 @@ target 'Runner' do
3131
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
3232

3333
target 'RunnerTests' do
34-
platform :ios, '11.0'
34+
platform :ios, '12.0'
3535
inherit! :search_paths
3636
# Pods for testing
3737
pod 'OCMock', '~> 3.8.1'

geolocator_apple/example/ios/Runner.xcodeproj/project.pbxproj

+25-7
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@
192192
97C146EC1CF9000F007C117D /* Resources */,
193193
9705A1C41CF9048500538489 /* Embed Frameworks */,
194194
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
195+
591FD69E94FC610DB997784E /* [CP] Copy Pods Resources */,
195196
);
196197
buildRules = (
197198
);
@@ -227,7 +228,7 @@
227228
97C146E61CF9000F007C117D /* Project object */ = {
228229
isa = PBXProject;
229230
attributes = {
230-
LastUpgradeCheck = 1430;
231+
LastUpgradeCheck = 1510;
231232
ORGANIZATIONNAME = "";
232233
TargetAttributes = {
233234
97C146ED1CF9000F007C117D = {
@@ -296,6 +297,23 @@
296297
shellPath = /bin/sh;
297298
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
298299
};
300+
591FD69E94FC610DB997784E /* [CP] Copy Pods Resources */ = {
301+
isa = PBXShellScriptBuildPhase;
302+
buildActionMask = 2147483647;
303+
files = (
304+
);
305+
inputFileListPaths = (
306+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
307+
);
308+
name = "[CP] Copy Pods Resources";
309+
outputFileListPaths = (
310+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
311+
);
312+
runOnlyForDeploymentPostprocessing = 0;
313+
shellPath = /bin/sh;
314+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
315+
showEnvVarsInLog = 0;
316+
};
299317
6E879EFB06735EEE96AC22A9 /* [CP] Check Pods Manifest.lock */ = {
300318
isa = PBXShellScriptBuildPhase;
301319
buildActionMask = 2147483647;
@@ -448,7 +466,7 @@
448466
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
449467
GCC_WARN_UNUSED_FUNCTION = YES;
450468
GCC_WARN_UNUSED_VARIABLE = YES;
451-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
469+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
452470
MTL_ENABLE_DEBUG_INFO = NO;
453471
SDKROOT = iphoneos;
454472
SUPPORTED_PLATFORMS = iphoneos;
@@ -530,7 +548,7 @@
530548
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
531549
GCC_WARN_UNUSED_FUNCTION = YES;
532550
GCC_WARN_UNUSED_VARIABLE = YES;
533-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
551+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
534552
MTL_ENABLE_DEBUG_INFO = YES;
535553
ONLY_ACTIVE_ARCH = YES;
536554
SDKROOT = iphoneos;
@@ -579,7 +597,7 @@
579597
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
580598
GCC_WARN_UNUSED_FUNCTION = YES;
581599
GCC_WARN_UNUSED_VARIABLE = YES;
582-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
600+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
583601
MTL_ENABLE_DEBUG_INFO = NO;
584602
SDKROOT = iphoneos;
585603
SUPPORTED_PLATFORMS = iphoneos;
@@ -656,7 +674,7 @@
656674
CURRENT_PROJECT_VERSION = 1;
657675
GCC_C_LANGUAGE_STANDARD = gnu11;
658676
GENERATE_INFOPLIST_FILE = YES;
659-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
677+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
660678
MARKETING_VERSION = 1.0;
661679
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
662680
MTL_FAST_MATH = YES;
@@ -683,7 +701,7 @@
683701
CURRENT_PROJECT_VERSION = 1;
684702
GCC_C_LANGUAGE_STANDARD = gnu11;
685703
GENERATE_INFOPLIST_FILE = YES;
686-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
704+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
687705
MARKETING_VERSION = 1.0;
688706
MTL_FAST_MATH = YES;
689707
PRODUCT_BUNDLE_IDENTIFIER = com.baseflow.geolocatorExample.RunnerTests;
@@ -709,7 +727,7 @@
709727
CURRENT_PROJECT_VERSION = 1;
710728
GCC_C_LANGUAGE_STANDARD = gnu11;
711729
GENERATE_INFOPLIST_FILE = YES;
712-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
730+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
713731
MARKETING_VERSION = 1.0;
714732
MTL_FAST_MATH = YES;
715733
PRODUCT_BUNDLE_IDENTIFIER = com.baseflow.geolocatorExample.RunnerTests;

geolocator_apple/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1430"
3+
LastUpgradeVersion = "1510"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

geolocator_apple/ios/Classes/Handlers/GeolocationHandler.m

+6
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,12 @@ - (void)stopOneTimeLocationListening {
147147
self.currentLocationResultHandler = nil;
148148
}
149149

150+
- (void)stopListening {
151+
[[self getLocationManager] stopUpdatingLocation];
152+
self.errorHandler = nil;
153+
self.listenerResultHandler = nil;
154+
}
155+
150156
- (void)locationManager:(CLLocationManager *)manager
151157
didUpdateLocations:(NSArray<CLLocation *> *)locations {
152158
if (!self.listenerResultHandler && !self.currentLocationResultHandler) return;

geolocator_apple/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: geolocator_apple
22
description: Geolocation Apple plugin for Flutter. This plugin provides the Apple implementation for the geolocator.
33
repository: https://github.com/baseflow/flutter-geolocator/tree/main/geolocator_apple
44
issue_tracker: https://github.com/baseflow/flutter-geolocator/issues?q=is%3Aissue+is%3Aopen
5-
version: 2.3.8
5+
version: 2.3.8+1
66

77
environment:
88
sdk: ">=2.15.0 <4.0.0"

0 commit comments

Comments
 (0)