@npaw/forge-react-native 9.7.0 → 9.7.1

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.
@@ -21,7 +21,7 @@ Pod::Spec.new do |s|
21
21
  s.homepage = "https://npaw.com"
22
22
  s.license = { :type => "Commercial", :text => "Copyright (C) NPAW - All Rights Reserved" }
23
23
  s.authors = { "Victor Soto" => "victor.soto@nicepeopleatwork.com" }
24
- s.platforms = { :ios => "13.0" }
24
+ s.platforms = { :ios => "13.0", :tvos => "13.0" }
25
25
  s.source = { :path => "." }
26
26
 
27
27
  s.source_files = "ios/**/*.{h,m,mm,swift}"
@@ -28,7 +28,7 @@ def safeExtGet(prop, fallback) {
28
28
  // FORGE_CORE_VERSION (see scripts/react-native/hydrate-natives.sh).
29
29
  def forgeCoreVersion = project.hasProperty('NpawForge_forgeCoreVersion')
30
30
  ? project.property('NpawForge_forgeCoreVersion')
31
- : (System.getenv('FORGE_CORE_VERSION') ?: '9.7.0')
31
+ : (System.getenv('FORGE_CORE_VERSION') ?: '9.7.1')
32
32
 
33
33
  android {
34
34
  namespace 'com.npaw.forge.reactnative'
@@ -10,18 +10,15 @@
10
10
  <key>HeadersPath</key>
11
11
  <string>Headers</string>
12
12
  <key>LibraryIdentifier</key>
13
- <string>ios-arm64_x86_64-simulator</string>
13
+ <string>ios-arm64</string>
14
14
  <key>LibraryPath</key>
15
15
  <string>libForgeKernelFFI.a</string>
16
16
  <key>SupportedArchitectures</key>
17
17
  <array>
18
18
  <string>arm64</string>
19
- <string>x86_64</string>
20
19
  </array>
21
20
  <key>SupportedPlatform</key>
22
21
  <string>ios</string>
23
- <key>SupportedPlatformVariant</key>
24
- <string>simulator</string>
25
22
  </dict>
26
23
  <dict>
27
24
  <key>BinaryPath</key>
@@ -29,15 +26,18 @@
29
26
  <key>HeadersPath</key>
30
27
  <string>Headers</string>
31
28
  <key>LibraryIdentifier</key>
32
- <string>tvos-arm64</string>
29
+ <string>ios-arm64_x86_64-simulator</string>
33
30
  <key>LibraryPath</key>
34
31
  <string>libForgeKernelFFI.a</string>
35
32
  <key>SupportedArchitectures</key>
36
33
  <array>
37
34
  <string>arm64</string>
35
+ <string>x86_64</string>
38
36
  </array>
39
37
  <key>SupportedPlatform</key>
40
- <string>tvos</string>
38
+ <string>ios</string>
39
+ <key>SupportedPlatformVariant</key>
40
+ <string>simulator</string>
41
41
  </dict>
42
42
  <dict>
43
43
  <key>BinaryPath</key>
@@ -45,7 +45,7 @@
45
45
  <key>HeadersPath</key>
46
46
  <string>Headers</string>
47
47
  <key>LibraryIdentifier</key>
48
- <string>tvos-arm64-simulator</string>
48
+ <string>tvos-arm64</string>
49
49
  <key>LibraryPath</key>
50
50
  <string>libForgeKernelFFI.a</string>
51
51
  <key>SupportedArchitectures</key>
@@ -54,8 +54,6 @@
54
54
  </array>
55
55
  <key>SupportedPlatform</key>
56
56
  <string>tvos</string>
57
- <key>SupportedPlatformVariant</key>
58
- <string>simulator</string>
59
57
  </dict>
60
58
  <dict>
61
59
  <key>BinaryPath</key>
@@ -63,7 +61,7 @@
63
61
  <key>HeadersPath</key>
64
62
  <string>Headers</string>
65
63
  <key>LibraryIdentifier</key>
66
- <string>ios-arm64</string>
64
+ <string>tvos-arm64-simulator</string>
67
65
  <key>LibraryPath</key>
68
66
  <string>libForgeKernelFFI.a</string>
69
67
  <key>SupportedArchitectures</key>
@@ -71,7 +69,9 @@
71
69
  <string>arm64</string>
72
70
  </array>
73
71
  <key>SupportedPlatform</key>
74
- <string>ios</string>
72
+ <string>tvos</string>
73
+ <key>SupportedPlatformVariant</key>
74
+ <string>simulator</string>
75
75
  </dict>
76
76
  </array>
77
77
  <key>CFBundlePackageType</key>
@@ -40,7 +40,7 @@ public final class NPAWForge: NSObject {
40
40
  /// `scripts/apple/publish-local-shipped.sh` rewrites this literal to the
41
41
  /// release version when staging the shipped package, and fails loudly if
42
42
  /// it cannot find it. Keep it a plain stored literal for that reason.
43
- public static let defaultPluginVersion = "9.7.0"
43
+ public static let defaultPluginVersion = "9.7.1"
44
44
  public static let defaultAppName = "apple"
45
45
  public static let defaultBuildVariant = "release"
46
46
  public static let defaultLmaEndpoint = "https://lma.npaw.com"
@@ -70,7 +70,7 @@ public final class VideoAdapter: RuntimeContentMetadataProvider {
70
70
  private var effectiveOptions: VideoOptions
71
71
  private let runtimeView: RuntimeVideoView
72
72
  private var destroyed = false
73
- private var willSendRequestListener: ((String, VideoAdapter, inout [String: String]) -> Void)?
73
+ private var willSendRequestListener: ((String, String, VideoAdapter, inout [String: String]) -> Void)?
74
74
 
75
75
  public private(set) var playerAdapter: PlayerAdapter?
76
76
  public private(set) var adAdapter: AdAdapter?
@@ -104,13 +104,22 @@ public final class VideoAdapter: RuntimeContentMetadataProvider {
104
104
  replaceAdAdapter(adAdapter, checkDuplicates: true)
105
105
  }
106
106
 
107
- public func setWillSendRequestListener(_ listener: ((String, VideoAdapter, inout [String: String]) -> Void)?) -> ForgeOutcome {
107
+ /// Observes every request this video view is about to send, including its
108
+ /// ads, and lets the integrator mutate the outgoing params in place.
109
+ ///
110
+ /// The callback receives both labels because one semantic event can produce
111
+ /// more than one request: `eventName` is the cause, `serviceName` is the
112
+ /// URL-derived destination. A single fatal error emits two requests,
113
+ /// addressed to `error` and `stop`, both carrying the same `eventName` — so
114
+ /// without the service name that correct pair is indistinguishable from a
115
+ /// duplicate.
116
+ public func setWillSendRequestListener(_ listener: ((String, String, VideoAdapter, inout [String: String]) -> Void)?) -> ForgeOutcome {
108
117
  guard !destroyed else { return .ignoredInvalidState }
109
118
  willSendRequestListener = listener
110
119
  let hook = listener.map { callback in
111
- VideoPreSendHook { [weak self] eventName, _, _, params in
120
+ VideoPreSendHook { [weak self] eventName, _, serviceName, params in
112
121
  guard let self else { return }
113
- callback(eventName, self, &params)
122
+ callback(eventName, serviceName, self, &params)
114
123
  }
115
124
  }
116
125
  return forge?.kernel.registerVideoPreSendHook(view: runtimeView, hook: hook) ?? .ignoredInvalidState
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npaw/forge-react-native",
3
- "version": "9.7.0",
3
+ "version": "9.7.1",
4
4
  "description": "NPAW Forge analytics for React Native: New Architecture TurboModule facade over the native Forge Android/Apple SDKs.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "Victor Soto <victor.soto@nicepeopleatwork.com>",