react-native-unistyles 3.0.18 → 3.0.19

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/README.md CHANGED
@@ -21,14 +21,14 @@ yarn add react-native-unistyles
21
21
  Install dependencies:
22
22
 
23
23
  ```shell
24
- yarn add react-native-edge-to-edge react-native-nitro-modules@0.31.8
24
+ yarn add react-native-edge-to-edge react-native-nitro-modules@0.31.10
25
25
  ```
26
26
 
27
27
  > To avoid unexpected behavior, always use a fixed version of `react-native-nitro-modules`
28
28
 
29
29
  | react-native-unistyles | react-native-nitro-modules |
30
30
  |------------------------|----------------------------|
31
- | 3.0.0 | 0.31.8 |
31
+ | 3.0.0 | 0.31.10 |
32
32
 
33
33
  Then follow [installation guides](https://unistyl.es/v3/start/getting-started) for your platform.
34
34
 
@@ -80,6 +80,9 @@ Then follow [installation guides](https://unistyl.es/v3/start/getting-started) f
80
80
  <a href="https://github.com/oliverloops">
81
81
  <img src="https://avatars.githubusercontent.com/u/33361399?v=4" height="70px" width="70px" alt="oliverloops" />
82
82
  </a>
83
+ <a href="https://github.com/cargurus-oss-fund">
84
+ <img src="https://avatars.githubusercontent.com/u/108300759?v=4" height="70px" width="70px" alt="cargurus-oss-fund" />
85
+ </a>
83
86
 
84
87
  ## Past sponsors
85
88
 
@@ -12,6 +12,7 @@
12
12
 
13
13
  #include "UnistylesNativeMiniRuntime.hpp"
14
14
  #include <functional>
15
+ #include <NitroModules/JNICallable.hpp>
15
16
  #include "JUnistylesNativeMiniRuntime.hpp"
16
17
  #include "ColorScheme.hpp"
17
18
  #include "JColorScheme.hpp"
@@ -46,7 +47,7 @@ namespace margelo::nitro::unistyles {
46
47
  /**
47
48
  * An implementation of Func_void_UnistylesNativeMiniRuntime that is backed by a C++ implementation (using `std::function<...>`)
48
49
  */
49
- struct JFunc_void_UnistylesNativeMiniRuntime_cxx final: public jni::HybridClass<JFunc_void_UnistylesNativeMiniRuntime_cxx, JFunc_void_UnistylesNativeMiniRuntime> {
50
+ class JFunc_void_UnistylesNativeMiniRuntime_cxx final: public jni::HybridClass<JFunc_void_UnistylesNativeMiniRuntime_cxx, JFunc_void_UnistylesNativeMiniRuntime> {
50
51
  public:
51
52
  static jni::local_ref<JFunc_void_UnistylesNativeMiniRuntime::javaobject> fromCpp(const std::function<void(const UnistylesNativeMiniRuntime& /* miniRuntime */)>& func) {
52
53
  return JFunc_void_UnistylesNativeMiniRuntime_cxx::newObjectCxxArgs(func);
@@ -14,6 +14,7 @@
14
14
  #include <vector>
15
15
  #include "UnistylesNativeMiniRuntime.hpp"
16
16
  #include <functional>
17
+ #include <NitroModules/JNICallable.hpp>
17
18
  #include "JUnistyleDependency.hpp"
18
19
  #include "JUnistylesNativeMiniRuntime.hpp"
19
20
  #include "ColorScheme.hpp"
@@ -58,7 +59,7 @@ namespace margelo::nitro::unistyles {
58
59
  /**
59
60
  * An implementation of Func_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime that is backed by a C++ implementation (using `std::function<...>`)
60
61
  */
61
- struct JFunc_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime_cxx final: public jni::HybridClass<JFunc_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime_cxx, JFunc_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime> {
62
+ class JFunc_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime_cxx final: public jni::HybridClass<JFunc_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime_cxx, JFunc_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime> {
62
63
  public:
63
64
  static jni::local_ref<JFunc_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime::javaobject> fromCpp(const std::function<void(const std::vector<UnistyleDependency>& /* dependencies */, const UnistylesNativeMiniRuntime& /* miniRuntime */)>& func) {
64
65
  return JFunc_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime_cxx::newObjectCxxArgs(func);
@@ -35,6 +35,7 @@ namespace margelo::nitro::unistyles { enum class UnistyleDependency; }
35
35
  #include <vector>
36
36
  #include <functional>
37
37
  #include "JFunc_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime.hpp"
38
+ #include <NitroModules/JNICallable.hpp>
38
39
  #include "JUnistyleDependency.hpp"
39
40
  #include "JFunc_void_UnistylesNativeMiniRuntime.hpp"
40
41
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-unistyles",
3
- "version": "3.0.18",
3
+ "version": "3.0.19",
4
4
  "description": "Level up your React Native StyleSheet",
5
5
  "scripts": {
6
6
  "test": "NODE_ENV=babel-test jest ./plugin",
@@ -146,11 +146,11 @@
146
146
  "husky": "9.1.7",
147
147
  "jest": "29.7.0",
148
148
  "metro-react-native-babel-preset": "0.77.0",
149
- "nitrogen": "0.31.8",
149
+ "nitrogen": "0.31.10",
150
150
  "react": "19.1.0",
151
151
  "react-native": "0.79.2",
152
152
  "react-native-builder-bob": "0.40.10",
153
- "react-native-nitro-modules": "0.31.8",
153
+ "react-native-nitro-modules": "0.31.10",
154
154
  "react-native-reanimated": "3.17.5",
155
155
  "react-native-web": "0.20.0",
156
156
  "react-test-renderer": "19.1.0",
package/plugin/index.js CHANGED
@@ -251,7 +251,8 @@ function toUnistylesDependency(dependency) {
251
251
  case "themeName": {
252
252
  return UnistyleDependency.ThemeName;
253
253
  }
254
- case "adaptiveThemes": {
254
+ case "adaptiveThemes":
255
+ case "hasAdaptiveThemes": {
255
256
  return UnistyleDependency.AdaptiveThemes;
256
257
  }
257
258
  case "breakpoint": {
@@ -679,7 +680,7 @@ function addDependencies(state, styleName, unistyle, detectedDependencies) {
679
680
  target.properties.push(
680
681
  t4.objectProperty(
681
682
  t4.identifier("uni__dependencies"),
682
- t4.arrayExpression(uniqueDependencies.filter((dep) => dep !== void 0).map((dep) => t4.numericLiteral(dep)))
683
+ t4.arrayExpression(uniqueDependencies.filter((dep) => dep !== void 0 && dep !== null).map((dep) => t4.numericLiteral(dep)))
683
684
  )
684
685
  );
685
686
  });