pyobjc-framework-CoreLocation 10.2__tar.gz → 11.0__tar.gz
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.
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/Examples/WhereIsMyMac/setup.py +1 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/Lib/CoreLocation/__init__.py +16 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/Lib/CoreLocation/_metadata.py +193 -2
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/Lib/pyobjc_framework_CoreLocation.egg-info/PKG-INFO +5 -5
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/Lib/pyobjc_framework_CoreLocation.egg-info/SOURCES.txt +6 -6
- pyobjc_framework_corelocation-11.0/Lib/pyobjc_framework_CoreLocation.egg-info/pyobjc-build-info.txt +3 -0
- pyobjc_framework_corelocation-11.0/Lib/pyobjc_framework_CoreLocation.egg-info/requires.txt +2 -0
- pyobjc_framework_corelocation-11.0/Modules/_CoreLocation.m +66 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/Modules/pyobjc-api.h +1 -1
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/Modules/pyobjc-compat.h +80 -5
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/PKG-INFO +5 -5
- pyobjc_framework_corelocation-11.0/PyObjCTest/test_clbackgroundactivitysession.py +31 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/PyObjCTest/test_cllocationupdater.py +12 -0
- pyobjc_framework_corelocation-11.0/PyObjCTest/test_clmonitoringevent.py +28 -0
- pyobjc-framework-CoreLocation-10.2/metadata/raw/arm64-14.2.fwinfo → pyobjc_framework_corelocation-11.0/metadata/raw/arm64-14.5.fwinfo +74 -10
- pyobjc-framework-CoreLocation-10.2/metadata/raw/arm64-14.0.fwinfo → pyobjc_framework_corelocation-11.0/metadata/raw/arm64-15.0.fwinfo +981 -82
- pyobjc-framework-CoreLocation-10.2/metadata/raw/x86_64-14.2.fwinfo → pyobjc_framework_corelocation-11.0/metadata/raw/x86_64-14.5.fwinfo +74 -10
- pyobjc-framework-CoreLocation-10.2/metadata/raw/x86_64-14.0.fwinfo → pyobjc_framework_corelocation-11.0/metadata/raw/x86_64-15.0.fwinfo +981 -82
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/pyobjc_setup.py +121 -27
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/setup.py +2 -3
- pyobjc-framework-CoreLocation-10.2/Lib/pyobjc_framework_CoreLocation.egg-info/requires.txt +0 -2
- pyobjc-framework-CoreLocation-10.2/Modules/_CoreLocation.m +0 -35
- pyobjc-framework-CoreLocation-10.2/PyObjCTest/test_clmonitoringevent.py +0 -11
- pyobjc-framework-CoreLocation-10.2/metadata/raw/arm64-12.1.fwinfo +0 -4035
- pyobjc-framework-CoreLocation-10.2/metadata/raw/x86_64-12.1.fwinfo +0 -4035
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/Examples/WhereIsMyMac/English.lproj/MainMenu.xib +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/Examples/WhereIsMyMac/HTMLFormatString.html +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/Examples/WhereIsMyMac/ReadMe.txt +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/Examples/WhereIsMyMac/WhereIsMyMacAppDelegate.py +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/Examples/WhereIsMyMac/main.py +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/LICENSE.txt +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/Lib/pyobjc_framework_CoreLocation.egg-info/dependency_links.txt +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/Lib/pyobjc_framework_CoreLocation.egg-info/not-zip-safe +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/Lib/pyobjc_framework_CoreLocation.egg-info/top_level.txt +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/MANIFEST.in +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/Modules/_CoreLocation_protocols.m +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/PyObjCTest/__init__.py +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/PyObjCTest/test_clbeaconregion.py +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/PyObjCTest/test_clcircularregion.py +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/PyObjCTest/test_clerror.py +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/PyObjCTest/test_clerrordomain.py +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/PyObjCTest/test_clgeocoder.py +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/PyObjCTest/test_clheading.py +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/PyObjCTest/test_cllocation.py +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/PyObjCTest/test_cllocationmanager.py +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/PyObjCTest/test_cllocationmanagerdelegate.py +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/PyObjCTest/test_clmonitor.py +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/PyObjCTest/test_clmonitorconfiguration.py +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/PyObjCTest/test_clregion.py +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/PyObjCTest/test_corelocation.py +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/README.txt +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/metadata/CoreLocation.fwinfo +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/metadata/metadata.ini +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/metadata/raw/arm64-12.3.fwinfo +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/metadata/raw/arm64-13.0.fwinfo +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/metadata/raw/arm64-13.3.fwinfo +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/metadata/raw/x86_64-10.10.fwinfo +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/metadata/raw/x86_64-10.15.fwinfo +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/metadata/raw/x86_64-10.16.fwinfo +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/metadata/raw/x86_64-12.3.fwinfo +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/metadata/raw/x86_64-13.0.fwinfo +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/metadata/raw/x86_64-13.3.fwinfo +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/pyproject.toml +0 -0
- {pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/setup.cfg +0 -0
|
@@ -31,6 +31,22 @@ def _setup():
|
|
|
31
31
|
globals()["__dir__"] = dir_func
|
|
32
32
|
globals()["__getattr__"] = getattr_func
|
|
33
33
|
|
|
34
|
+
for cls, sel in (
|
|
35
|
+
("CLMonitor", b"init"),
|
|
36
|
+
("CLMonitor", b"new"),
|
|
37
|
+
("CLMonitoringRecord", b"init"),
|
|
38
|
+
("CLMonitoringRecord", b"new"),
|
|
39
|
+
("CLMonitoringEvent", b"init"),
|
|
40
|
+
("CLMonitoringEvent", b"new"),
|
|
41
|
+
("CLBackgroundActivitySession", b"init"),
|
|
42
|
+
("CLBackgroundActivitySession", b"new"),
|
|
43
|
+
("CLCondition", b"init"),
|
|
44
|
+
("CLCondition", b"new"),
|
|
45
|
+
("CLLocationUpdater", b"init"),
|
|
46
|
+
("CLLocationUpdater", b"new"),
|
|
47
|
+
):
|
|
48
|
+
objc.registerUnavailableMethod(cls, sel)
|
|
49
|
+
|
|
34
50
|
del sys.modules["CoreLocation._metadata"]
|
|
35
51
|
|
|
36
52
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This file is generated by objective.metadata
|
|
2
2
|
#
|
|
3
|
-
# Last update:
|
|
3
|
+
# Last update: Tue Jun 11 10:08:24 2024
|
|
4
4
|
#
|
|
5
5
|
# flake8: noqa
|
|
6
6
|
|
|
@@ -40,7 +40,7 @@ misc.update(
|
|
|
40
40
|
}
|
|
41
41
|
)
|
|
42
42
|
constants = """$CLLocationDistanceMax@d$CLLocationPushServiceErrorDomain$CLTimeIntervalMax@d$kCLDistanceFilterNone@d$kCLErrorDomain$kCLErrorUserInfoAlternateRegionKey$kCLHeadingFilterNone@d$kCLLocationAccuracyBest@d$kCLLocationAccuracyBestForNavigation@d$kCLLocationAccuracyHundredMeters@d$kCLLocationAccuracyKilometer@d$kCLLocationAccuracyNearestTenMeters@d$kCLLocationAccuracyReduced@d$kCLLocationAccuracyThreeKilometers@d$kCLLocationCoordinate2DInvalid@{CLLocationCoordinate2D=dd}$"""
|
|
43
|
-
enums = """$CLAccuracyAuthorizationFullAccuracy@0$CLAccuracyAuthorizationReducedAccuracy@1$CLActivityTypeAirborne@5$CLActivityTypeAutomotiveNavigation@2$CLActivityTypeFitness@3$CLActivityTypeOther@1$CLActivityTypeOtherNavigation@4$CLDeviceOrientationFaceDown@6$CLDeviceOrientationFaceUp@5$CLDeviceOrientationLandscapeLeft@3$CLDeviceOrientationLandscapeRight@4$CLDeviceOrientationPortrait@1$CLDeviceOrientationPortraitUpsideDown@2$CLDeviceOrientationUnknown@0$CLLiveUpdateConfigurationAirborne@4$CLLiveUpdateConfigurationAutomotiveNavigation@1$CLLiveUpdateConfigurationDefault@0$CLLiveUpdateConfigurationFitness@3$CLLiveUpdateConfigurationOtherNavigation@2$CLLocationPushServiceErrorMissingEntitlement@3$CLLocationPushServiceErrorMissingPushExtension@1$CLLocationPushServiceErrorMissingPushServerEnvironment@2$CLLocationPushServiceErrorUnknown@0$CLLocationPushServiceErrorUnsupportedPlatform@4$CLMonitoringStateSatisfied@1$CLMonitoringStateUnknown@0$CLMonitoringStateUnmonitored@3$CLMonitoringStateUnsatisfied@2$CLProximityFar@3$CLProximityImmediate@1$CLProximityNear@2$CLProximityUnknown@0$CLRegionStateInside@1$CLRegionStateOutside@2$CLRegionStateUnknown@0$CL_TARGET_SUPPORTS_CONDITIONS@0$kCLAuthorizationStatusAuthorized@3$kCLAuthorizationStatusAuthorizedAlways@3$kCLAuthorizationStatusAuthorizedWhenInUse@4$kCLAuthorizationStatusDenied@2$kCLAuthorizationStatusNotDetermined@0$kCLAuthorizationStatusRestricted@1$kCLErrorDeferredAccuracyTooLow@13$kCLErrorDeferredCanceled@15$kCLErrorDeferredDistanceFiltered@14$kCLErrorDeferredFailed@11$kCLErrorDeferredNotUpdatingLocation@12$kCLErrorDenied@1$kCLErrorGeocodeCanceled@10$kCLErrorGeocodeFoundNoResult@8$kCLErrorGeocodeFoundPartialResult@9$kCLErrorHeadingFailure@3$kCLErrorHistoricalLocationError@19$kCLErrorLocationUnknown@0$kCLErrorNetwork@2$kCLErrorPromptDeclined@18$kCLErrorRangingFailure@17$kCLErrorRangingUnavailable@16$kCLErrorRegionMonitoringDenied@4$kCLErrorRegionMonitoringFailure@5$kCLErrorRegionMonitoringResponseDelayed@7$kCLErrorRegionMonitoringSetupDelayed@6$"""
|
|
43
|
+
enums = """$CLAccuracyAuthorizationFullAccuracy@0$CLAccuracyAuthorizationReducedAccuracy@1$CLActivityTypeAirborne@5$CLActivityTypeAutomotiveNavigation@2$CLActivityTypeFitness@3$CLActivityTypeOther@1$CLActivityTypeOtherNavigation@4$CLDeviceOrientationFaceDown@6$CLDeviceOrientationFaceUp@5$CLDeviceOrientationLandscapeLeft@3$CLDeviceOrientationLandscapeRight@4$CLDeviceOrientationPortrait@1$CLDeviceOrientationPortraitUpsideDown@2$CLDeviceOrientationUnknown@0$CLLiveUpdateConfigurationAirborne@4$CLLiveUpdateConfigurationAutomotiveNavigation@1$CLLiveUpdateConfigurationDefault@0$CLLiveUpdateConfigurationFitness@3$CLLiveUpdateConfigurationOtherNavigation@2$CLLocationPushServiceErrorMissingEntitlement@3$CLLocationPushServiceErrorMissingPushExtension@1$CLLocationPushServiceErrorMissingPushServerEnvironment@2$CLLocationPushServiceErrorUnknown@0$CLLocationPushServiceErrorUnsupportedPlatform@4$CLMonitoringStateSatisfied@1$CLMonitoringStateUnknown@0$CLMonitoringStateUnmonitored@3$CLMonitoringStateUnsatisfied@2$CLProximityFar@3$CLProximityImmediate@1$CLProximityNear@2$CLProximityUnknown@0$CLRegionStateInside@1$CLRegionStateOutside@2$CLRegionStateUnknown@0$CLServiceSessionAuthorizationRequirementNone@0$CLServiceSessionAuthorizationRequirementWhenInUse@1$CL_TARGET_SUPPORTS_CONDITIONS@0$kCLAuthorizationStatusAuthorized@3$kCLAuthorizationStatusAuthorizedAlways@3$kCLAuthorizationStatusAuthorizedWhenInUse@4$kCLAuthorizationStatusDenied@2$kCLAuthorizationStatusNotDetermined@0$kCLAuthorizationStatusRestricted@1$kCLErrorDeferredAccuracyTooLow@13$kCLErrorDeferredCanceled@15$kCLErrorDeferredDistanceFiltered@14$kCLErrorDeferredFailed@11$kCLErrorDeferredNotUpdatingLocation@12$kCLErrorDenied@1$kCLErrorGeocodeCanceled@10$kCLErrorGeocodeFoundNoResult@8$kCLErrorGeocodeFoundPartialResult@9$kCLErrorHeadingFailure@3$kCLErrorHistoricalLocationError@19$kCLErrorLocationUnknown@0$kCLErrorNetwork@2$kCLErrorPromptDeclined@18$kCLErrorRangingFailure@17$kCLErrorRangingUnavailable@16$kCLErrorRegionMonitoringDenied@4$kCLErrorRegionMonitoringFailure@5$kCLErrorRegionMonitoringResponseDelayed@7$kCLErrorRegionMonitoringSetupDelayed@6$"""
|
|
44
44
|
misc.update(
|
|
45
45
|
{
|
|
46
46
|
"CLAccuracyAuthorization": NewType("CLAccuracyAuthorization", int),
|
|
@@ -52,6 +52,9 @@ misc.update(
|
|
|
52
52
|
"CLRegionState": NewType("CLRegionState", int),
|
|
53
53
|
"CLDeviceOrientation": NewType("CLDeviceOrientation", int),
|
|
54
54
|
"CLAuthorizationStatus": NewType("CLAuthorizationStatus", int),
|
|
55
|
+
"CLServiceSessionAuthorizationRequirement": NewType(
|
|
56
|
+
"CLServiceSessionAuthorizationRequirement", int
|
|
57
|
+
),
|
|
55
58
|
"CLLocationPushServiceError": NewType("CLLocationPushServiceError", int),
|
|
56
59
|
}
|
|
57
60
|
)
|
|
@@ -65,6 +68,50 @@ aliases = {"kCLAuthorizationStatusAuthorized": "kCLAuthorizationStatusAuthorized
|
|
|
65
68
|
r = objc.registerMetaDataForSelector
|
|
66
69
|
objc._updatingMetadata(True)
|
|
67
70
|
try:
|
|
71
|
+
r(
|
|
72
|
+
b"CLBackgroundActivitySession",
|
|
73
|
+
b"backgroundActivitySessionWithQueue:handler:",
|
|
74
|
+
{
|
|
75
|
+
"arguments": {
|
|
76
|
+
3: {
|
|
77
|
+
"callable": {
|
|
78
|
+
"retval": {"type": b"v"},
|
|
79
|
+
"arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
)
|
|
85
|
+
r(
|
|
86
|
+
b"CLBackgroundActivitySessionDiagnostic",
|
|
87
|
+
b"authorizationDenied",
|
|
88
|
+
{"retval": {"type": b"Z"}},
|
|
89
|
+
)
|
|
90
|
+
r(
|
|
91
|
+
b"CLBackgroundActivitySessionDiagnostic",
|
|
92
|
+
b"authorizationDeniedGlobally",
|
|
93
|
+
{"retval": {"type": b"Z"}},
|
|
94
|
+
)
|
|
95
|
+
r(
|
|
96
|
+
b"CLBackgroundActivitySessionDiagnostic",
|
|
97
|
+
b"authorizationRequestInProgress",
|
|
98
|
+
{"retval": {"type": b"Z"}},
|
|
99
|
+
)
|
|
100
|
+
r(
|
|
101
|
+
b"CLBackgroundActivitySessionDiagnostic",
|
|
102
|
+
b"authorizationRestricted",
|
|
103
|
+
{"retval": {"type": b"Z"}},
|
|
104
|
+
)
|
|
105
|
+
r(
|
|
106
|
+
b"CLBackgroundActivitySessionDiagnostic",
|
|
107
|
+
b"insufficientlyInUse",
|
|
108
|
+
{"retval": {"type": b"Z"}},
|
|
109
|
+
)
|
|
110
|
+
r(
|
|
111
|
+
b"CLBackgroundActivitySessionDiagnostic",
|
|
112
|
+
b"serviceSessionRequired",
|
|
113
|
+
{"retval": {"type": b"Z"}},
|
|
114
|
+
)
|
|
68
115
|
r(b"CLBeaconRegion", b"notifyEntryStateOnDisplay", {"retval": {"type": b"Z"}})
|
|
69
116
|
r(
|
|
70
117
|
b"CLBeaconRegion",
|
|
@@ -456,6 +503,20 @@ try:
|
|
|
456
503
|
}
|
|
457
504
|
},
|
|
458
505
|
)
|
|
506
|
+
r(b"CLMonitoringEvent", b"accuracyLimited", {"retval": {"type": b"Z"}})
|
|
507
|
+
r(b"CLMonitoringEvent", b"authorizationDenied", {"retval": {"type": b"Z"}})
|
|
508
|
+
r(b"CLMonitoringEvent", b"authorizationDeniedGlobally", {"retval": {"type": b"Z"}})
|
|
509
|
+
r(
|
|
510
|
+
b"CLMonitoringEvent",
|
|
511
|
+
b"authorizationRequestInProgress",
|
|
512
|
+
{"retval": {"type": b"Z"}},
|
|
513
|
+
)
|
|
514
|
+
r(b"CLMonitoringEvent", b"authorizationRestricted", {"retval": {"type": b"Z"}})
|
|
515
|
+
r(b"CLMonitoringEvent", b"conditionLimitExceeded", {"retval": {"type": b"Z"}})
|
|
516
|
+
r(b"CLMonitoringEvent", b"conditionUnsupported", {"retval": {"type": b"Z"}})
|
|
517
|
+
r(b"CLMonitoringEvent", b"insufficientlyInUse", {"retval": {"type": b"Z"}})
|
|
518
|
+
r(b"CLMonitoringEvent", b"persistenceUnavailable", {"retval": {"type": b"Z"}})
|
|
519
|
+
r(b"CLMonitoringEvent", b"serviceSessionRequired", {"retval": {"type": b"Z"}})
|
|
459
520
|
r(b"CLRegion", b"center", {"retval": {"type": b"{CLLocationCoordinate2D=dd}"}})
|
|
460
521
|
r(
|
|
461
522
|
b"CLRegion",
|
|
@@ -474,7 +535,72 @@ try:
|
|
|
474
535
|
r(b"CLRegion", b"notifyOnExit", {"retval": {"type": b"Z"}})
|
|
475
536
|
r(b"CLRegion", b"setNotifyOnEntry:", {"arguments": {2: {"type": b"Z"}}})
|
|
476
537
|
r(b"CLRegion", b"setNotifyOnExit:", {"arguments": {2: {"type": b"Z"}}})
|
|
538
|
+
r(
|
|
539
|
+
b"CLServiceSession",
|
|
540
|
+
b"sessionRequiringAuthorization:fullAccuracyPurposeKey:queue:handler:",
|
|
541
|
+
{
|
|
542
|
+
"arguments": {
|
|
543
|
+
5: {
|
|
544
|
+
"callable": {
|
|
545
|
+
"retval": {"type": b"v"},
|
|
546
|
+
"arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
)
|
|
552
|
+
r(
|
|
553
|
+
b"CLServiceSession",
|
|
554
|
+
b"sessionRequiringAuthorization:queue:handler:",
|
|
555
|
+
{
|
|
556
|
+
"arguments": {
|
|
557
|
+
4: {
|
|
558
|
+
"callable": {
|
|
559
|
+
"retval": {"type": b"v"},
|
|
560
|
+
"arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
},
|
|
565
|
+
)
|
|
566
|
+
r(
|
|
567
|
+
b"CLServiceSessionDiagnostic",
|
|
568
|
+
b"alwaysAuthorizationDenied",
|
|
569
|
+
{"retval": {"type": b"Z"}},
|
|
570
|
+
)
|
|
571
|
+
r(b"CLServiceSessionDiagnostic", b"authorizationDenied", {"retval": {"type": b"Z"}})
|
|
572
|
+
r(
|
|
573
|
+
b"CLServiceSessionDiagnostic",
|
|
574
|
+
b"authorizationDeniedGlobally",
|
|
575
|
+
{"retval": {"type": b"Z"}},
|
|
576
|
+
)
|
|
577
|
+
r(
|
|
578
|
+
b"CLServiceSessionDiagnostic",
|
|
579
|
+
b"authorizationRequestInProgress",
|
|
580
|
+
{"retval": {"type": b"Z"}},
|
|
581
|
+
)
|
|
582
|
+
r(
|
|
583
|
+
b"CLServiceSessionDiagnostic",
|
|
584
|
+
b"authorizationRestricted",
|
|
585
|
+
{"retval": {"type": b"Z"}},
|
|
586
|
+
)
|
|
587
|
+
r(b"CLServiceSessionDiagnostic", b"fullAccuracyDenied", {"retval": {"type": b"Z"}})
|
|
588
|
+
r(b"CLServiceSessionDiagnostic", b"insufficientlyInUse", {"retval": {"type": b"Z"}})
|
|
589
|
+
r(
|
|
590
|
+
b"CLServiceSessionDiagnostic",
|
|
591
|
+
b"serviceSessionRequired",
|
|
592
|
+
{"retval": {"type": b"Z"}},
|
|
593
|
+
)
|
|
594
|
+
r(b"CLUpdate", b"accuracyLimited", {"retval": {"type": b"Z"}})
|
|
595
|
+
r(b"CLUpdate", b"authorizationDenied", {"retval": {"type": b"Z"}})
|
|
596
|
+
r(b"CLUpdate", b"authorizationDeniedGlobally", {"retval": {"type": b"Z"}})
|
|
597
|
+
r(b"CLUpdate", b"authorizationRequestInProgress", {"retval": {"type": b"Z"}})
|
|
598
|
+
r(b"CLUpdate", b"authorizationRestricted", {"retval": {"type": b"Z"}})
|
|
599
|
+
r(b"CLUpdate", b"insufficientlyInUse", {"retval": {"type": b"Z"}})
|
|
477
600
|
r(b"CLUpdate", b"isStationary", {"retval": {"type": b"Z"}})
|
|
601
|
+
r(b"CLUpdate", b"locationUnavailable", {"retval": {"type": b"Z"}})
|
|
602
|
+
r(b"CLUpdate", b"serviceSessionRequired", {"retval": {"type": b"Z"}})
|
|
603
|
+
r(b"CLUpdate", b"stationary", {"retval": {"type": b"Z"}})
|
|
478
604
|
r(
|
|
479
605
|
b"NSObject",
|
|
480
606
|
b"didReceiveLocationPushPayload:completion:",
|
|
@@ -664,6 +790,71 @@ try:
|
|
|
664
790
|
)
|
|
665
791
|
finally:
|
|
666
792
|
objc._updatingMetadata(False)
|
|
793
|
+
|
|
794
|
+
objc.registerNewKeywordsFromSelector("CLBeaconIdentityCondition", b"initWithUUID:")
|
|
795
|
+
objc.registerNewKeywordsFromSelector(
|
|
796
|
+
"CLBeaconIdentityCondition", b"initWithUUID:major:"
|
|
797
|
+
)
|
|
798
|
+
objc.registerNewKeywordsFromSelector(
|
|
799
|
+
"CLBeaconIdentityCondition", b"initWithUUID:major:minor:"
|
|
800
|
+
)
|
|
801
|
+
objc.registerNewKeywordsFromSelector("CLBeaconIdentityConstraint", b"initWithUUID:")
|
|
802
|
+
objc.registerNewKeywordsFromSelector(
|
|
803
|
+
"CLBeaconIdentityConstraint", b"initWithUUID:major:"
|
|
804
|
+
)
|
|
805
|
+
objc.registerNewKeywordsFromSelector(
|
|
806
|
+
"CLBeaconIdentityConstraint", b"initWithUUID:major:minor:"
|
|
807
|
+
)
|
|
808
|
+
objc.registerNewKeywordsFromSelector(
|
|
809
|
+
"CLBeaconRegion", b"initWithBeaconIdentityConstraint:identifier:"
|
|
810
|
+
)
|
|
811
|
+
objc.registerNewKeywordsFromSelector(
|
|
812
|
+
"CLBeaconRegion", b"initWithProximityUUID:identifier:"
|
|
813
|
+
)
|
|
814
|
+
objc.registerNewKeywordsFromSelector(
|
|
815
|
+
"CLBeaconRegion", b"initWithProximityUUID:major:identifier:"
|
|
816
|
+
)
|
|
817
|
+
objc.registerNewKeywordsFromSelector(
|
|
818
|
+
"CLBeaconRegion", b"initWithProximityUUID:major:minor:identifier:"
|
|
819
|
+
)
|
|
820
|
+
objc.registerNewKeywordsFromSelector("CLBeaconRegion", b"initWithUUID:identifier:")
|
|
821
|
+
objc.registerNewKeywordsFromSelector(
|
|
822
|
+
"CLBeaconRegion", b"initWithUUID:major:identifier:"
|
|
823
|
+
)
|
|
824
|
+
objc.registerNewKeywordsFromSelector(
|
|
825
|
+
"CLBeaconRegion", b"initWithUUID:major:minor:identifier:"
|
|
826
|
+
)
|
|
827
|
+
objc.registerNewKeywordsFromSelector(
|
|
828
|
+
"CLCircularGeographicCondition", b"initWithCenter:radius:"
|
|
829
|
+
)
|
|
830
|
+
objc.registerNewKeywordsFromSelector(
|
|
831
|
+
"CLCircularRegion", b"initWithCenter:radius:identifier:"
|
|
832
|
+
)
|
|
833
|
+
objc.registerNewKeywordsFromSelector(
|
|
834
|
+
"CLLocation",
|
|
835
|
+
b"initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:course:courseAccuracy:speed:speedAccuracy:timestamp:",
|
|
836
|
+
)
|
|
837
|
+
objc.registerNewKeywordsFromSelector(
|
|
838
|
+
"CLLocation",
|
|
839
|
+
b"initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:course:courseAccuracy:speed:speedAccuracy:timestamp:sourceInfo:",
|
|
840
|
+
)
|
|
841
|
+
objc.registerNewKeywordsFromSelector(
|
|
842
|
+
"CLLocation",
|
|
843
|
+
b"initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:course:speed:timestamp:",
|
|
844
|
+
)
|
|
845
|
+
objc.registerNewKeywordsFromSelector(
|
|
846
|
+
"CLLocation",
|
|
847
|
+
b"initWithCoordinate:altitude:horizontalAccuracy:verticalAccuracy:timestamp:",
|
|
848
|
+
)
|
|
849
|
+
objc.registerNewKeywordsFromSelector("CLLocation", b"initWithLatitude:longitude:")
|
|
850
|
+
objc.registerNewKeywordsFromSelector(
|
|
851
|
+
"CLLocationSourceInformation",
|
|
852
|
+
b"initWithSoftwareSimulationState:andExternalAccessoryState:",
|
|
853
|
+
)
|
|
854
|
+
objc.registerNewKeywordsFromSelector("CLPlacemark", b"initWithPlacemark:")
|
|
855
|
+
objc.registerNewKeywordsFromSelector(
|
|
856
|
+
"CLRegion", b"initCircularRegionWithCenter:radius:identifier:"
|
|
857
|
+
)
|
|
667
858
|
expressions = {}
|
|
668
859
|
|
|
669
860
|
# END OF FILE
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyobjc-framework-CoreLocation
|
|
3
|
-
Version:
|
|
3
|
+
Version: 11.0
|
|
4
4
|
Summary: Wrappers for the framework CoreLocation on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
@@ -18,21 +18,21 @@ Classifier: Operating System :: MacOS :: MacOS X
|
|
|
18
18
|
Classifier: Programming Language :: Python
|
|
19
19
|
Classifier: Programming Language :: Python :: 3
|
|
20
20
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.9
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.10
|
|
24
23
|
Classifier: Programming Language :: Python :: 3.11
|
|
25
24
|
Classifier: Programming Language :: Python :: 3.12
|
|
26
25
|
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
27
27
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
28
28
|
Classifier: Programming Language :: Objective C
|
|
29
29
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
30
30
|
Classifier: Topic :: Software Development :: User Interfaces
|
|
31
|
-
Requires-Python: >=3.
|
|
31
|
+
Requires-Python: >=3.9
|
|
32
32
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
33
33
|
License-File: LICENSE.txt
|
|
34
|
-
Requires-Dist: pyobjc-core>=
|
|
35
|
-
Requires-Dist: pyobjc-framework-Cocoa>=
|
|
34
|
+
Requires-Dist: pyobjc-core>=11.0
|
|
35
|
+
Requires-Dist: pyobjc-framework-Cocoa>=11.0
|
|
36
36
|
Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
|
|
37
37
|
Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
|
|
38
38
|
Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
|
|
@@ -16,6 +16,7 @@ Lib/pyobjc_framework_CoreLocation.egg-info/PKG-INFO
|
|
|
16
16
|
Lib/pyobjc_framework_CoreLocation.egg-info/SOURCES.txt
|
|
17
17
|
Lib/pyobjc_framework_CoreLocation.egg-info/dependency_links.txt
|
|
18
18
|
Lib/pyobjc_framework_CoreLocation.egg-info/not-zip-safe
|
|
19
|
+
Lib/pyobjc_framework_CoreLocation.egg-info/pyobjc-build-info.txt
|
|
19
20
|
Lib/pyobjc_framework_CoreLocation.egg-info/requires.txt
|
|
20
21
|
Lib/pyobjc_framework_CoreLocation.egg-info/top_level.txt
|
|
21
22
|
Modules/_CoreLocation.m
|
|
@@ -23,6 +24,7 @@ Modules/_CoreLocation_protocols.m
|
|
|
23
24
|
Modules/pyobjc-api.h
|
|
24
25
|
Modules/pyobjc-compat.h
|
|
25
26
|
PyObjCTest/__init__.py
|
|
27
|
+
PyObjCTest/test_clbackgroundactivitysession.py
|
|
26
28
|
PyObjCTest/test_clbeaconregion.py
|
|
27
29
|
PyObjCTest/test_clcircularregion.py
|
|
28
30
|
PyObjCTest/test_clerror.py
|
|
@@ -40,18 +42,16 @@ PyObjCTest/test_clregion.py
|
|
|
40
42
|
PyObjCTest/test_corelocation.py
|
|
41
43
|
metadata/CoreLocation.fwinfo
|
|
42
44
|
metadata/metadata.ini
|
|
43
|
-
metadata/raw/arm64-12.1.fwinfo
|
|
44
45
|
metadata/raw/arm64-12.3.fwinfo
|
|
45
46
|
metadata/raw/arm64-13.0.fwinfo
|
|
46
47
|
metadata/raw/arm64-13.3.fwinfo
|
|
47
|
-
metadata/raw/arm64-14.
|
|
48
|
-
metadata/raw/arm64-
|
|
48
|
+
metadata/raw/arm64-14.5.fwinfo
|
|
49
|
+
metadata/raw/arm64-15.0.fwinfo
|
|
49
50
|
metadata/raw/x86_64-10.10.fwinfo
|
|
50
51
|
metadata/raw/x86_64-10.15.fwinfo
|
|
51
52
|
metadata/raw/x86_64-10.16.fwinfo
|
|
52
|
-
metadata/raw/x86_64-12.1.fwinfo
|
|
53
53
|
metadata/raw/x86_64-12.3.fwinfo
|
|
54
54
|
metadata/raw/x86_64-13.0.fwinfo
|
|
55
55
|
metadata/raw/x86_64-13.3.fwinfo
|
|
56
|
-
metadata/raw/x86_64-14.
|
|
57
|
-
metadata/raw/x86_64-
|
|
56
|
+
metadata/raw/x86_64-14.5.fwinfo
|
|
57
|
+
metadata/raw/x86_64-15.0.fwinfo
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
#define PY_SSIZE_T_CLEAN
|
|
2
|
+
#include "Python.h"
|
|
3
|
+
#include "pyobjc-api.h"
|
|
4
|
+
|
|
5
|
+
#import <CoreLocation/CoreLocation.h>
|
|
6
|
+
|
|
7
|
+
/* We include the source code here instead of
|
|
8
|
+
* using the linker due to limitations in pyobjc-api.h
|
|
9
|
+
*/
|
|
10
|
+
#include "_CoreLocation_protocols.m"
|
|
11
|
+
|
|
12
|
+
static PyMethodDef mod_methods[] = {
|
|
13
|
+
{0, 0, 0, 0} /* sentinel */
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
static int mod_exec_module(PyObject* m)
|
|
17
|
+
{
|
|
18
|
+
return 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
static struct PyModuleDef_Slot mod_slots[] = {
|
|
22
|
+
{
|
|
23
|
+
.slot = Py_mod_exec,
|
|
24
|
+
.value = (void*)mod_exec_module
|
|
25
|
+
},
|
|
26
|
+
#if PY_VERSION_HEX >= 0x030c0000
|
|
27
|
+
{
|
|
28
|
+
/* This extension does not use the CPython API other than initializing
|
|
29
|
+
* the module, hence is safe with subinterpreters and per-interpreter
|
|
30
|
+
* GILs
|
|
31
|
+
*/
|
|
32
|
+
.slot = Py_mod_multiple_interpreters,
|
|
33
|
+
.value = Py_MOD_PER_INTERPRETER_GIL_SUPPORTED,
|
|
34
|
+
},
|
|
35
|
+
#endif
|
|
36
|
+
#if PY_VERSION_HEX >= 0x030d0000
|
|
37
|
+
{
|
|
38
|
+
/* The code in this extension should be safe to use without the GIL */
|
|
39
|
+
.slot = Py_mod_gil,
|
|
40
|
+
.value = Py_MOD_GIL_NOT_USED,
|
|
41
|
+
},
|
|
42
|
+
#endif
|
|
43
|
+
{ /* Sentinel */
|
|
44
|
+
.slot = 0,
|
|
45
|
+
.value = 0
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
static struct PyModuleDef mod_module = {
|
|
50
|
+
.m_base = PyModuleDef_HEAD_INIT,
|
|
51
|
+
.m_name = "_CoreLocation",
|
|
52
|
+
.m_doc = NULL,
|
|
53
|
+
.m_size = 0,
|
|
54
|
+
.m_methods = mod_methods,
|
|
55
|
+
.m_slots = mod_slots,
|
|
56
|
+
.m_traverse = NULL,
|
|
57
|
+
.m_clear = NULL,
|
|
58
|
+
.m_free = NULL,
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
PyObject* PyInit__CoreLocation(void);
|
|
62
|
+
|
|
63
|
+
PyObject* __attribute__((__visibility__("default"))) PyInit__CoreLocation(void)
|
|
64
|
+
{
|
|
65
|
+
return PyModuleDef_Init(&mod_module);
|
|
66
|
+
}
|
{pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/Modules/pyobjc-api.h
RENAMED
|
@@ -83,7 +83,7 @@ struct pyobjc_api {
|
|
|
83
83
|
PyObject* _Nullable (*_Nonnull unsupported_method_caller)(
|
|
84
84
|
PyObject* _Nonnull, PyObject* _Nonnull, PyObject* _Nonnull const* _Nonnull,
|
|
85
85
|
size_t);
|
|
86
|
-
void (*_Nonnull err_python_to_objc_gil)(PyGILState_STATE* _Nonnull state);
|
|
86
|
+
void (*_Nonnull err_python_to_objc_gil)(PyGILState_STATE* _Nonnull state) __attribute__((__noreturn__));
|
|
87
87
|
int (*_Nonnull simplify_sig)(const char* signature, char* buf, size_t buflen);
|
|
88
88
|
void (*_Nonnull free_c_array)(int, Py_buffer*);
|
|
89
89
|
int (*_Nonnull py_to_c_array)(BOOL, BOOL, const char* _Nonnull, PyObject* _Nonnull,
|
{pyobjc-framework-CoreLocation-10.2 → pyobjc_framework_corelocation-11.0}/Modules/pyobjc-compat.h
RENAMED
|
@@ -11,6 +11,12 @@
|
|
|
11
11
|
|
|
12
12
|
NS_ASSUME_NONNULL_BEGIN
|
|
13
13
|
|
|
14
|
+
#ifdef USE_STATIC_ANALYZER
|
|
15
|
+
#define CLANG_SUPPRESS [[clang::suppress]]
|
|
16
|
+
#else
|
|
17
|
+
#define CLANG_SUPPRESS
|
|
18
|
+
#endif
|
|
19
|
+
|
|
14
20
|
/*
|
|
15
21
|
*
|
|
16
22
|
* Start of compiler definitions
|
|
@@ -153,10 +159,6 @@ extern PyObject* _Nullable PyObject_VectorcallMethod(
|
|
|
153
159
|
|
|
154
160
|
extern int PyObjC_Cmp(PyObject* o1, PyObject* o2, int* result);
|
|
155
161
|
|
|
156
|
-
extern PyObject* _Nullable PyObjCBytes_InternFromString(const char* v);
|
|
157
|
-
extern PyObject* _Nullable PyObjCBytes_InternFromStringAndSize(const char* v,
|
|
158
|
-
Py_ssize_t l);
|
|
159
|
-
|
|
160
162
|
/*
|
|
161
163
|
* A micro optimization: when using Python 3.3 or later it
|
|
162
164
|
* is possible to access a 'char*' with an ASCII representation
|
|
@@ -238,7 +240,80 @@ _PyObjCTuple_GetItem(PyObject* tuple, Py_ssize_t idx)
|
|
|
238
240
|
PyGILState_Release(_GILState); \
|
|
239
241
|
} while (0)
|
|
240
242
|
|
|
241
|
-
|
|
243
|
+
#if PY_VERSION_HEX < 0x030a0000
|
|
244
|
+
|
|
245
|
+
static inline PyObject* Py_NewRef(PyObject* o)
|
|
246
|
+
{
|
|
247
|
+
Py_INCREF(o);
|
|
248
|
+
return o;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
static inline PyObject* Py_XNewRef(PyObject* o)
|
|
252
|
+
{
|
|
253
|
+
Py_XINCREF(o);
|
|
254
|
+
return o;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
#endif /* PY_VERSION_HEX < 0x030a0000 */
|
|
258
|
+
|
|
259
|
+
#if PY_VERSION_HEX < 0x030d0000
|
|
260
|
+
#define Py_BEGIN_CRITICAL_SECTION(value) { (void)(value);
|
|
261
|
+
#define Py_END_CRITICAL_SECTION() }
|
|
262
|
+
#define Py_EXIT_CRITICAL_SECTION() ((void)0)
|
|
263
|
+
|
|
264
|
+
#define Py_BEGIN_CRITICAL_SECTION2(value1, value2) { (void)(value1); (void)(value2);
|
|
265
|
+
#define Py_END_CRITICAL_SECTION2() }
|
|
266
|
+
#define Py_EXIT_CRITICAL_SECTION2() ((void)0)
|
|
267
|
+
|
|
268
|
+
#define PyObjC_ATOMIC
|
|
269
|
+
|
|
270
|
+
#else
|
|
271
|
+
|
|
272
|
+
#ifdef Py_GIL_DISABLED
|
|
273
|
+
#define Py_EXIT_CRITICAL_SECTION() PyCriticalSection_End(&_py_cs)
|
|
274
|
+
#define Py_EXIT_CRITICAL_SECTION2() PyCriticalSection2_End(&_py_cs2)
|
|
275
|
+
#define PyObjC_ATOMIC _Atomic
|
|
276
|
+
#else
|
|
277
|
+
#define Py_EXIT_CRITICAL_SECTION() ((void)0)
|
|
278
|
+
#define Py_EXIT_CRITICAL_SECTION2() ((void)0)
|
|
279
|
+
#define PyObjC_ATOMIC
|
|
280
|
+
#endif
|
|
281
|
+
|
|
282
|
+
#endif
|
|
283
|
+
|
|
284
|
+
#if PY_VERSION_HEX < 0x030d0000
|
|
285
|
+
static inline int PyDict_GetItemRef(PyObject *p, PyObject *key, PyObject * _Nonnull* _Nullable result)
|
|
286
|
+
{
|
|
287
|
+
*result = PyDict_GetItemWithError(p, key);
|
|
288
|
+
if (*result == NULL) {
|
|
289
|
+
if (PyErr_Occurred()) {
|
|
290
|
+
return -1;
|
|
291
|
+
} else {
|
|
292
|
+
return 0;
|
|
293
|
+
}
|
|
294
|
+
} else {
|
|
295
|
+
Py_INCREF(*result);
|
|
296
|
+
return 1;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
static inline PyObject* _Nullable PyList_GetItemRef(PyObject* l, Py_ssize_t i)
|
|
301
|
+
{
|
|
302
|
+
PyObject* result = PyList_GetItem(l, i);
|
|
303
|
+
Py_XINCREF(result);
|
|
304
|
+
return result;
|
|
305
|
+
}
|
|
306
|
+
#endif
|
|
307
|
+
|
|
308
|
+
#if PY_VERSION_HEX < 0x030c0000
|
|
309
|
+
static inline PyObject* PyType_GetDict(PyTypeObject* type)
|
|
310
|
+
{
|
|
311
|
+
PyObject* result = type->tp_dict;
|
|
312
|
+
Py_INCREF(result);
|
|
313
|
+
return result;
|
|
314
|
+
}
|
|
315
|
+
#endif
|
|
316
|
+
|
|
242
317
|
|
|
243
318
|
NS_ASSUME_NONNULL_END
|
|
244
319
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyobjc-framework-CoreLocation
|
|
3
|
-
Version:
|
|
3
|
+
Version: 11.0
|
|
4
4
|
Summary: Wrappers for the framework CoreLocation on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
@@ -18,21 +18,21 @@ Classifier: Operating System :: MacOS :: MacOS X
|
|
|
18
18
|
Classifier: Programming Language :: Python
|
|
19
19
|
Classifier: Programming Language :: Python :: 3
|
|
20
20
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.9
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.10
|
|
24
23
|
Classifier: Programming Language :: Python :: 3.11
|
|
25
24
|
Classifier: Programming Language :: Python :: 3.12
|
|
26
25
|
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
27
27
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
28
28
|
Classifier: Programming Language :: Objective C
|
|
29
29
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
30
30
|
Classifier: Topic :: Software Development :: User Interfaces
|
|
31
|
-
Requires-Python: >=3.
|
|
31
|
+
Requires-Python: >=3.9
|
|
32
32
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
33
33
|
License-File: LICENSE.txt
|
|
34
|
-
Requires-Dist: pyobjc-core>=
|
|
35
|
-
Requires-Dist: pyobjc-framework-Cocoa>=
|
|
34
|
+
Requires-Dist: pyobjc-core>=11.0
|
|
35
|
+
Requires-Dist: pyobjc-framework-Cocoa>=11.0
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
Wrappers for framework 'CoreLocation' on macOS 10.6. This framework provides
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import CoreLocation
|
|
2
|
+
from PyObjCTools.TestSupport import TestCase, min_os_level
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class TestCLBackgroundActivitySession(TestCase):
|
|
6
|
+
@min_os_level("15.0")
|
|
7
|
+
def testMethods15_0(self):
|
|
8
|
+
self.assertResultIsBOOL(
|
|
9
|
+
CoreLocation.CLBackgroundActivitySessionDiagnostic.authorizationDenied
|
|
10
|
+
)
|
|
11
|
+
self.assertResultIsBOOL(
|
|
12
|
+
CoreLocation.CLBackgroundActivitySessionDiagnostic.authorizationDeniedGlobally
|
|
13
|
+
)
|
|
14
|
+
self.assertResultIsBOOL(
|
|
15
|
+
CoreLocation.CLBackgroundActivitySessionDiagnostic.authorizationRestricted
|
|
16
|
+
)
|
|
17
|
+
self.assertResultIsBOOL(
|
|
18
|
+
CoreLocation.CLBackgroundActivitySessionDiagnostic.insufficientlyInUse
|
|
19
|
+
)
|
|
20
|
+
self.assertResultIsBOOL(
|
|
21
|
+
CoreLocation.CLBackgroundActivitySessionDiagnostic.serviceSessionRequired
|
|
22
|
+
)
|
|
23
|
+
self.assertResultIsBOOL(
|
|
24
|
+
CoreLocation.CLBackgroundActivitySessionDiagnostic.authorizationRequestInProgress
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
self.assertArgIsBlock(
|
|
28
|
+
CoreLocation.CLBackgroundActivitySession.backgroundActivitySessionWithQueue_handler_,
|
|
29
|
+
1,
|
|
30
|
+
b"v@",
|
|
31
|
+
)
|
|
@@ -22,3 +22,15 @@ class TestCLLocationUpdater(TestCase):
|
|
|
22
22
|
2,
|
|
23
23
|
b"v@",
|
|
24
24
|
)
|
|
25
|
+
|
|
26
|
+
@min_os_level("15.0")
|
|
27
|
+
def testMethods15_0(self):
|
|
28
|
+
self.assertResultIsBOOL(CoreLocation.CLUpdate.authorizationDenied)
|
|
29
|
+
self.assertResultIsBOOL(CoreLocation.CLUpdate.authorizationDeniedGlobally)
|
|
30
|
+
self.assertResultIsBOOL(CoreLocation.CLUpdate.authorizationRestricted)
|
|
31
|
+
self.assertResultIsBOOL(CoreLocation.CLUpdate.stationary)
|
|
32
|
+
self.assertResultIsBOOL(CoreLocation.CLUpdate.insufficientlyInUse)
|
|
33
|
+
self.assertResultIsBOOL(CoreLocation.CLUpdate.locationUnavailable)
|
|
34
|
+
self.assertResultIsBOOL(CoreLocation.CLUpdate.accuracyLimited)
|
|
35
|
+
self.assertResultIsBOOL(CoreLocation.CLUpdate.serviceSessionRequired)
|
|
36
|
+
self.assertResultIsBOOL(CoreLocation.CLUpdate.authorizationRequestInProgress)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import CoreLocation
|
|
2
|
+
from PyObjCTools.TestSupport import TestCase, min_os_level
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class TestCLMonitoringEvent(TestCase):
|
|
6
|
+
def test_constants(self):
|
|
7
|
+
self.assertIsEnumType(CoreLocation.CLMonitoringState)
|
|
8
|
+
self.assertEqual(CoreLocation.CLMonitoringStateUnknown, 0)
|
|
9
|
+
self.assertEqual(CoreLocation.CLMonitoringStateSatisfied, 1)
|
|
10
|
+
self.assertEqual(CoreLocation.CLMonitoringStateUnsatisfied, 2)
|
|
11
|
+
self.assertEqual(CoreLocation.CLMonitoringStateUnmonitored, 3)
|
|
12
|
+
|
|
13
|
+
@min_os_level("15.0")
|
|
14
|
+
def test_methods15_0(self):
|
|
15
|
+
self.assertResultIsBOOL(CoreLocation.CLMonitoringEvent.authorizationDenied)
|
|
16
|
+
self.assertResultIsBOOL(
|
|
17
|
+
CoreLocation.CLMonitoringEvent.authorizationDeniedGlobally
|
|
18
|
+
)
|
|
19
|
+
self.assertResultIsBOOL(CoreLocation.CLMonitoringEvent.authorizationRestricted)
|
|
20
|
+
self.assertResultIsBOOL(CoreLocation.CLMonitoringEvent.insufficientlyInUse)
|
|
21
|
+
self.assertResultIsBOOL(CoreLocation.CLMonitoringEvent.accuracyLimited)
|
|
22
|
+
self.assertResultIsBOOL(CoreLocation.CLMonitoringEvent.conditionUnsupported)
|
|
23
|
+
self.assertResultIsBOOL(CoreLocation.CLMonitoringEvent.conditionLimitExceeded)
|
|
24
|
+
self.assertResultIsBOOL(CoreLocation.CLMonitoringEvent.persistenceUnavailable)
|
|
25
|
+
self.assertResultIsBOOL(CoreLocation.CLMonitoringEvent.serviceSessionRequired)
|
|
26
|
+
self.assertResultIsBOOL(
|
|
27
|
+
CoreLocation.CLMonitoringEvent.authorizationRequestInProgress
|
|
28
|
+
)
|