react-native-pointr 9.7.0 → 9.9.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.
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [9.9.0] - 2026-04-22
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
- Mobile SDK 9.9.0 integration.
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## [9.8.0] - 2026-04-16
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
- Mobile SDK 9.8.0 integration.
|
|
17
|
+
|
|
18
|
+
|
|
7
19
|
## [9.7.0] - 2026-04-02
|
|
8
20
|
|
|
9
21
|
### Changed
|
package/android/build.gradle
CHANGED
|
@@ -93,7 +93,7 @@ dependencies {
|
|
|
93
93
|
//noinspection GradleDynamicVersion
|
|
94
94
|
implementation "com.facebook.react:react-android:0.82.1"
|
|
95
95
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
96
|
-
implementation("com.pointrlabs:pointr:9.
|
|
96
|
+
implementation("com.pointrlabs:pointr:9.9.0")
|
|
97
97
|
implementation ("org.jetbrains.kotlin:kotlin-reflect:$kotlin_version")
|
|
98
98
|
implementation 'com.google.android.material:material:1.12.0'
|
|
99
99
|
implementation 'androidx.constraintlayout:constraintlayout:2.2.1'
|
|
@@ -204,9 +204,14 @@ class PTRMapWidgetManager(private val reactContext: ReactApplicationContext) :
|
|
|
204
204
|
// ------------------------------------------------------------------------
|
|
205
205
|
|
|
206
206
|
private fun getMapWidgetFragment(action: PTRMapWidgetAction): PTRMapWidgetFragment {
|
|
207
|
-
Log.i(name, "Creating map widget fragment with action: $action")
|
|
208
207
|
waitForPointrToRun()
|
|
209
|
-
ptrMapWidgetFragment
|
|
208
|
+
val existingFragment = ptrMapWidgetFragment
|
|
209
|
+
if (existingFragment != null) {
|
|
210
|
+
Log.i(name, "Reusing existing map widget fragment, performing new action: $action")
|
|
211
|
+
existingFragment.performAction(action)
|
|
212
|
+
return existingFragment
|
|
213
|
+
}
|
|
214
|
+
Log.i(name, "Creating new map widget fragment with action: $action")
|
|
210
215
|
ptrMapWidgetFragment = PTRMapWidgetFragment.newInstance(
|
|
211
216
|
(reactContext.currentActivity as FragmentActivity).supportFragmentManager,
|
|
212
217
|
frameLayout.id,
|
|
@@ -223,6 +228,8 @@ class PTRMapWidgetManager(private val reactContext: ReactApplicationContext) :
|
|
|
223
228
|
* Return a FrameLayout which will later hold the Fragment
|
|
224
229
|
*/
|
|
225
230
|
override fun createViewInstance(reactContext: ThemedReactContext): FrameLayout {
|
|
231
|
+
ptrMapWidgetFragment?.removeListener(this)
|
|
232
|
+
ptrMapWidgetFragment = null
|
|
226
233
|
frameLayout = FrameLayout(reactContext)
|
|
227
234
|
commandDidExecute = false
|
|
228
235
|
commandTriggered = false // reset so re-navigation triggers the command again
|
|
@@ -92,9 +92,13 @@ import PointrKit
|
|
|
92
92
|
print("PTRMapWidget - Pointr is not running")
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
+
if let existingWidget = self.mapWidget {
|
|
96
|
+
print("PTRMapWidget - reusing existing map widget, performing new action")
|
|
97
|
+
existingWidget.performAction(action)
|
|
98
|
+
return existingWidget
|
|
99
|
+
}
|
|
95
100
|
print("PTRMapWidget - initializing map widget")
|
|
96
101
|
let mapWidget = PTRMapWidgetViewController(action: action, configuration: PTRNativeLibrary.mapWidgetConfiguration)
|
|
97
|
-
self.mapWidget?.removeListener(self)
|
|
98
102
|
self.mapWidget = mapWidget
|
|
99
103
|
let adapter = WayfindingEventsAdapter(container: self, mapWidget: mapWidget)
|
|
100
104
|
self.wayfindingEventsAdapter = adapter
|
|
@@ -104,6 +108,7 @@ import PointrKit
|
|
|
104
108
|
}
|
|
105
109
|
|
|
106
110
|
@objc func present(_ mapWidget: PTRMapWidgetViewController) {
|
|
111
|
+
guard mapWidget.view.superview == nil else { return }
|
|
107
112
|
addSubview(mapWidget.view)
|
|
108
113
|
mapWidget.view.translatesAutoresizingMaskIntoConstraints = false
|
|
109
114
|
NSLayoutConstraint.activate([
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
|
|
|
16
16
|
|
|
17
17
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
18
18
|
|
|
19
|
-
s.dependency 'PointrKit', '9.
|
|
19
|
+
s.dependency 'PointrKit', '9.9.0'
|
|
20
20
|
|
|
21
21
|
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
|
|
22
22
|
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
|