expo-gaode-map-navigation 2.0.8-next.0 → 2.0.10-next.0
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.
|
@@ -411,11 +411,19 @@ public class ExpoGaodeMapNavigationModule: Module {
|
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
413
|
|
|
414
|
-
let startNaviDirectly = boolValue(options["startNaviDirectly"])
|
|
415
|
-
?? ((options["pageType"] as? String)?.uppercased() == "NAVI")
|
|
416
|
-
if let startNaviDirectly {
|
|
417
|
-
invokeBoolSetter(target: config, selectorName: "setStartNaviDirectly:", value: startNaviDirectly)
|
|
418
|
-
}
|
|
414
|
+
// let startNaviDirectly = boolValue(options["startNaviDirectly"])
|
|
415
|
+
// ?? ((options["pageType"] as? String)?.uppercased() == "NAVI")
|
|
416
|
+
// if let startNaviDirectly {
|
|
417
|
+
// invokeBoolSetter(target: config, selectorName: "setStartNaviDirectly:", value: startNaviDirectly)
|
|
418
|
+
// }
|
|
419
|
+
let startNaviDirectly = boolValue(options["startNaviDirectly"])
|
|
420
|
+
?? ((options["pageType"] as? String)?.uppercased() == "NAVI")
|
|
421
|
+
|
|
422
|
+
invokeBoolSetter(
|
|
423
|
+
target: config,
|
|
424
|
+
selectorName: "setStartNaviDirectly:",
|
|
425
|
+
value: startNaviDirectly
|
|
426
|
+
)
|
|
419
427
|
|
|
420
428
|
if let needCalculateRoute = boolValue(options["needCalculateRouteWhenPresent"]) {
|
|
421
429
|
invokeBoolSetter(target: config, selectorName: "setNeedCalculateRouteWhenPresent:", value: needCalculateRoute)
|
|
@@ -89,20 +89,40 @@ enum GaodeMapPrivacyManager {
|
|
|
89
89
|
applyPrivacyState()
|
|
90
90
|
notifyIfNeeded(previousStatus: previousStatus)
|
|
91
91
|
}
|
|
92
|
-
|
|
92
|
+
|
|
93
93
|
static func applyPrivacyState() {
|
|
94
94
|
let showStatus: AMapPrivacyShowStatus = hasShow ? .didShow : .notShow
|
|
95
95
|
let infoStatus: AMapPrivacyInfoStatus = hasContainsPrivacy ? .didContain : .notContain
|
|
96
96
|
let agreeStatus: AMapPrivacyAgreeStatus = hasAgree ? .didAgree : .notAgree
|
|
97
97
|
|
|
98
|
+
// Map & Location(类方法 ✅)
|
|
98
99
|
MAMapView.updatePrivacyShow(showStatus, privacyInfo: infoStatus)
|
|
99
100
|
MAMapView.updatePrivacyAgree(agreeStatus)
|
|
100
101
|
AMapLocationManager.updatePrivacyShow(showStatus, privacyInfo: infoStatus)
|
|
101
102
|
AMapLocationManager.updatePrivacyAgree(agreeStatus)
|
|
102
|
-
|
|
103
|
-
|
|
103
|
+
|
|
104
|
+
// Navi(实例方法 ⚠️)
|
|
105
|
+
let naviConfig = AMapNaviManagerConfig()
|
|
106
|
+
naviConfig.updatePrivacyShow(showStatus, privacyInfo: infoStatus)
|
|
107
|
+
naviConfig.updatePrivacyAgree(agreeStatus)
|
|
104
108
|
}
|
|
105
109
|
|
|
110
|
+
// static func applyPrivacyState() {
|
|
111
|
+
// let showStatus: AMapPrivacyShowStatus = hasShow ? .didShow : .notShow
|
|
112
|
+
// let infoStatus: AMapPrivacyInfoStatus = hasContainsPrivacy ? .didContain : .notContain
|
|
113
|
+
// let agreeStatus: AMapPrivacyAgreeStatus = hasAgree ? .didAgree : .notAgree
|
|
114
|
+
//
|
|
115
|
+
// MAMapView.updatePrivacyShow(showStatus, privacyInfo: infoStatus)
|
|
116
|
+
// MAMapView.updatePrivacyAgree(agreeStatus)
|
|
117
|
+
// AMapLocationManager.updatePrivacyShow(showStatus, privacyInfo: infoStatus)
|
|
118
|
+
// AMapLocationManager.updatePrivacyAgree(agreeStatus)
|
|
119
|
+
// let config = AMapNaviManagerConfig()
|
|
120
|
+
// config.updatePrivacyShow(showStatus, privacyInfo: infoStatus)
|
|
121
|
+
// config.updatePrivacyAgree(agreeStatus)
|
|
122
|
+
//// AMapNaviManagerConfig.updatePrivacyShow(showStatus, privacyInfo: infoStatus)
|
|
123
|
+
//// AMapNaviManagerConfig.updatePrivacyAgree(agreeStatus)
|
|
124
|
+
// }
|
|
125
|
+
|
|
106
126
|
static func status() -> [String: Any] {
|
|
107
127
|
[
|
|
108
128
|
"hasShow": hasShow,
|
package/package.json
CHANGED