@onekeyfe/react-native-chart-webview 3.0.86 → 3.0.87

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.
@@ -10,7 +10,6 @@ package com.margelo.nitro.chartwebview
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.jni.HybridData
12
12
  import com.facebook.proguard.annotations.DoNotStrip
13
- import dalvik.annotation.optimization.FastNative
14
13
 
15
14
 
16
15
  /**
@@ -59,7 +58,6 @@ class Func_void_cxx: Func_void {
59
58
  override fun invoke(): Unit
60
59
  = invoke_cxx()
61
60
 
62
- @FastNative
63
61
  private external fun invoke_cxx(): Unit
64
62
  }
65
63
 
@@ -10,7 +10,6 @@ package com.margelo.nitro.chartwebview
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.jni.HybridData
12
12
  import com.facebook.proguard.annotations.DoNotStrip
13
- import dalvik.annotation.optimization.FastNative
14
13
 
15
14
 
16
15
  /**
@@ -59,7 +58,6 @@ class Func_void_std__string_cxx: Func_void_std__string {
59
58
  override fun invoke(message: String): Unit
60
59
  = invoke_cxx(message)
61
60
 
62
- @FastNative
63
61
  private external fun invoke_cxx(message: String): Unit
64
62
  }
65
63
 
@@ -10,6 +10,7 @@ package com.margelo.nitro.chartwebview
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.jni.HybridData
12
12
  import com.facebook.proguard.annotations.DoNotStrip
13
+ import dalvik.annotation.optimization.FastNative
13
14
  import com.margelo.nitro.core.HybridObject
14
15
  import com.margelo.nitro.views.HybridView
15
16
 
@@ -151,6 +152,7 @@ abstract class HybridChartWebviewSpec: HybridView() {
151
152
  @Keep
152
153
  protected open class CxxPart(javaPart: HybridChartWebviewSpec): HybridObject.CxxPart(javaPart) {
153
154
  // C++ JHybridChartWebviewSpec::CxxPart::initHybrid(...)
155
+ @FastNative
154
156
  external override fun initHybrid(): HybridData
155
157
  }
156
158
  override fun createCxxPart(): CxxPart {
@@ -56,5 +56,7 @@ def add_nitrogen_files(spec)
56
56
  "SWIFT_OBJC_INTEROP_MODE" => "objcxx",
57
57
  # Enables stricter modular headers
58
58
  "DEFINES_MODULE" => "YES",
59
+ # Disable auto-generated ObjC header for Swift (Static linkage on Xcode 26.4 breaks here)
60
+ "SWIFT_INSTALL_OBJC_HEADER" => "NO",
59
61
  })
60
62
  end
@@ -189,7 +189,7 @@ namespace margelo::nitro::chartwebview::views {
189
189
 
190
190
  HybridChartWebviewComponentDescriptor::HybridChartWebviewComponentDescriptor(const react::ComponentDescriptorParameters& parameters)
191
191
  : ConcreteComponentDescriptor(parameters,
192
- react::RawPropsParser(/* enableJsiParser */ true)) {}
192
+ react::RawPropsParser()) {}
193
193
 
194
194
  std::shared_ptr<const react::Props> HybridChartWebviewComponentDescriptor::cloneProps(const react::PropsParserContext& context,
195
195
  const std::shared_ptr<const react::Props>& props,
@@ -10,7 +10,6 @@ package com.margelo.nitro.chartwebview
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.jni.HybridData
12
12
  import com.facebook.proguard.annotations.DoNotStrip
13
- import dalvik.annotation.optimization.FastNative
14
13
 
15
14
 
16
15
  /**
@@ -59,7 +58,6 @@ class Func_void_cxx: Func_void {
59
58
  override fun invoke(): Unit
60
59
  = invoke_cxx()
61
60
 
62
- @FastNative
63
61
  private external fun invoke_cxx(): Unit
64
62
  }
65
63
 
@@ -10,7 +10,6 @@ package com.margelo.nitro.chartwebview
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.jni.HybridData
12
12
  import com.facebook.proguard.annotations.DoNotStrip
13
- import dalvik.annotation.optimization.FastNative
14
13
 
15
14
 
16
15
  /**
@@ -59,7 +58,6 @@ class Func_void_std__string_cxx: Func_void_std__string {
59
58
  override fun invoke(message: String): Unit
60
59
  = invoke_cxx(message)
61
60
 
62
- @FastNative
63
61
  private external fun invoke_cxx(message: String): Unit
64
62
  }
65
63
 
@@ -10,6 +10,7 @@ package com.margelo.nitro.chartwebview
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.jni.HybridData
12
12
  import com.facebook.proguard.annotations.DoNotStrip
13
+ import dalvik.annotation.optimization.FastNative
13
14
  import com.margelo.nitro.core.HybridObject
14
15
  import com.margelo.nitro.views.HybridView
15
16
 
@@ -151,6 +152,7 @@ abstract class HybridChartWebviewSpec: HybridView() {
151
152
  @Keep
152
153
  protected open class CxxPart(javaPart: HybridChartWebviewSpec): HybridObject.CxxPart(javaPart) {
153
154
  // C++ JHybridChartWebviewSpec::CxxPart::initHybrid(...)
155
+ @FastNative
154
156
  external override fun initHybrid(): HybridData
155
157
  }
156
158
  override fun createCxxPart(): CxxPart {
@@ -56,5 +56,7 @@ def add_nitrogen_files(spec)
56
56
  "SWIFT_OBJC_INTEROP_MODE" => "objcxx",
57
57
  # Enables stricter modular headers
58
58
  "DEFINES_MODULE" => "YES",
59
+ # Disable auto-generated ObjC header for Swift (Static linkage on Xcode 26.4 breaks here)
60
+ "SWIFT_INSTALL_OBJC_HEADER" => "NO",
59
61
  })
60
62
  end
@@ -189,7 +189,7 @@ namespace margelo::nitro::chartwebview::views {
189
189
 
190
190
  HybridChartWebviewComponentDescriptor::HybridChartWebviewComponentDescriptor(const react::ComponentDescriptorParameters& parameters)
191
191
  : ConcreteComponentDescriptor(parameters,
192
- react::RawPropsParser(/* enableJsiParser */ true)) {}
192
+ react::RawPropsParser()) {}
193
193
 
194
194
  std::shared_ptr<const react::Props> HybridChartWebviewComponentDescriptor::cloneProps(const react::PropsParserContext& context,
195
195
  const std::shared_ptr<const react::Props>& props,
@@ -10,7 +10,6 @@ package com.margelo.nitro.chartwebview
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.jni.HybridData
12
12
  import com.facebook.proguard.annotations.DoNotStrip
13
- import dalvik.annotation.optimization.FastNative
14
13
 
15
14
 
16
15
  /**
@@ -59,7 +58,6 @@ class Func_void_cxx: Func_void {
59
58
  override fun invoke(): Unit
60
59
  = invoke_cxx()
61
60
 
62
- @FastNative
63
61
  private external fun invoke_cxx(): Unit
64
62
  }
65
63
 
@@ -10,7 +10,6 @@ package com.margelo.nitro.chartwebview
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.jni.HybridData
12
12
  import com.facebook.proguard.annotations.DoNotStrip
13
- import dalvik.annotation.optimization.FastNative
14
13
 
15
14
 
16
15
  /**
@@ -59,7 +58,6 @@ class Func_void_std__string_cxx: Func_void_std__string {
59
58
  override fun invoke(message: String): Unit
60
59
  = invoke_cxx(message)
61
60
 
62
- @FastNative
63
61
  private external fun invoke_cxx(message: String): Unit
64
62
  }
65
63
 
@@ -10,6 +10,7 @@ package com.margelo.nitro.chartwebview
10
10
  import androidx.annotation.Keep
11
11
  import com.facebook.jni.HybridData
12
12
  import com.facebook.proguard.annotations.DoNotStrip
13
+ import dalvik.annotation.optimization.FastNative
13
14
  import com.margelo.nitro.core.HybridObject
14
15
  import com.margelo.nitro.views.HybridView
15
16
 
@@ -151,6 +152,7 @@ abstract class HybridChartWebviewSpec: HybridView() {
151
152
  @Keep
152
153
  protected open class CxxPart(javaPart: HybridChartWebviewSpec): HybridObject.CxxPart(javaPart) {
153
154
  // C++ JHybridChartWebviewSpec::CxxPart::initHybrid(...)
155
+ @FastNative
154
156
  external override fun initHybrid(): HybridData
155
157
  }
156
158
  override fun createCxxPart(): CxxPart {
@@ -56,5 +56,7 @@ def add_nitrogen_files(spec)
56
56
  "SWIFT_OBJC_INTEROP_MODE" => "objcxx",
57
57
  # Enables stricter modular headers
58
58
  "DEFINES_MODULE" => "YES",
59
+ # Disable auto-generated ObjC header for Swift (Static linkage on Xcode 26.4 breaks here)
60
+ "SWIFT_INSTALL_OBJC_HEADER" => "NO",
59
61
  })
60
62
  end
@@ -189,7 +189,7 @@ namespace margelo::nitro::chartwebview::views {
189
189
 
190
190
  HybridChartWebviewComponentDescriptor::HybridChartWebviewComponentDescriptor(const react::ComponentDescriptorParameters& parameters)
191
191
  : ConcreteComponentDescriptor(parameters,
192
- react::RawPropsParser(/* enableJsiParser */ true)) {}
192
+ react::RawPropsParser()) {}
193
193
 
194
194
  std::shared_ptr<const react::Props> HybridChartWebviewComponentDescriptor::cloneProps(const react::PropsParserContext& context,
195
195
  const std::shared_ptr<const react::Props>& props,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/react-native-chart-webview",
3
- "version": "3.0.86",
3
+ "version": "3.0.87",
4
4
  "description": "react-native-chart-webview",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
@@ -77,12 +77,12 @@
77
77
  "eslint-plugin-prettier": "^5.5.4",
78
78
  "jest": "^29.7.0",
79
79
  "lefthook": "^2.0.3",
80
- "nitrogen": "0.35.2",
80
+ "nitrogen": "0.36.5",
81
81
  "prettier": "^2.8.8",
82
82
  "react": "19.2.0",
83
83
  "react-native": "patch:react-native@npm%3A0.83.0#~/.yarn/patches/react-native-npm-0.83.0-577d0f2d83.patch",
84
84
  "react-native-builder-bob": "^0.40.13",
85
- "react-native-nitro-modules": "0.35.2",
85
+ "react-native-nitro-modules": "0.36.5",
86
86
  "release-it": "^19.0.4",
87
87
  "turbo": "^2.5.6",
88
88
  "typescript": "^5.9.2"
@@ -90,7 +90,7 @@
90
90
  "peerDependencies": {
91
91
  "react": "*",
92
92
  "react-native": "*",
93
- "react-native-nitro-modules": "0.35.2"
93
+ "react-native-nitro-modules": "0.36.5"
94
94
  },
95
95
  "packageManager": "yarn@4.11.0",
96
96
  "react-native-builder-bob": {