@shopify/react-native-skia 1.8.2 → 1.9.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (198) hide show
  1. package/android/cpp/rnskia-android/MainThreadDispatcher.h +1 -1
  2. package/android/cpp/rnskia-android/OpenGLContext.h +4 -4
  3. package/android/cpp/rnskia-android/RNSkOpenGLCanvasProvider.cpp +3 -3
  4. package/cpp/api/JsiSkCanvas.h +27 -25
  5. package/cpp/api/JsiSkImage.h +24 -0
  6. package/cpp/api/JsiSkPaint.h +1 -1
  7. package/cpp/rnskia/dom/nodes/JsiAtlasNode.h +5 -1
  8. package/cpp/rnskia/dom/nodes/JsiImageNode.h +8 -4
  9. package/cpp/rnskia/dom/nodes/JsiShaderNodes.h +9 -38
  10. package/cpp/rnskia/dom/props/SamplingProp.h +54 -0
  11. package/ios/RNSkia-iOS/SkiaManager.mm +2 -4
  12. package/lib/commonjs/dom/types/Drawings.d.ts +3 -1
  13. package/lib/commonjs/dom/types/Drawings.js.map +1 -1
  14. package/lib/commonjs/dom/types/Shaders.d.ts +2 -3
  15. package/lib/commonjs/dom/types/Shaders.js.map +1 -1
  16. package/lib/commonjs/renderer/components/image/ImageShader.d.ts +1 -1
  17. package/lib/commonjs/renderer/components/image/ImageShader.js +0 -4
  18. package/lib/commonjs/renderer/components/image/ImageShader.js.map +1 -1
  19. package/lib/commonjs/skia/types/Canvas.d.ts +2 -2
  20. package/lib/commonjs/skia/types/Canvas.js.map +1 -1
  21. package/lib/commonjs/skia/types/Image/Image.d.ts +18 -0
  22. package/lib/commonjs/skia/types/Image/Image.js +24 -1
  23. package/lib/commonjs/skia/types/Image/Image.js.map +1 -1
  24. package/lib/commonjs/skia/types/Picture/PictureRecorder.d.ts +2 -1
  25. package/lib/commonjs/skia/types/Picture/PictureRecorder.js.map +1 -1
  26. package/lib/commonjs/skia/web/JsiSkCanvas.d.ts +2 -2
  27. package/lib/commonjs/skia/web/JsiSkCanvas.js +15 -2
  28. package/lib/commonjs/skia/web/JsiSkCanvas.js.map +1 -1
  29. package/lib/commonjs/sksg/Container.d.ts +17 -14
  30. package/lib/commonjs/sksg/Container.js +59 -62
  31. package/lib/commonjs/sksg/Container.js.map +1 -1
  32. package/lib/commonjs/sksg/HostConfig.js +4 -9
  33. package/lib/commonjs/sksg/HostConfig.js.map +1 -1
  34. package/lib/commonjs/sksg/Reconciler.js +1 -2
  35. package/lib/commonjs/sksg/Reconciler.js.map +1 -1
  36. package/lib/commonjs/sksg/Recorder/Core.d.ts +42 -37
  37. package/lib/commonjs/sksg/Recorder/Core.js +45 -38
  38. package/lib/commonjs/sksg/Recorder/Core.js.map +1 -1
  39. package/lib/commonjs/sksg/Recorder/Player.js +4 -0
  40. package/lib/commonjs/sksg/Recorder/Player.js.map +1 -1
  41. package/lib/commonjs/sksg/Recorder/Recorder.d.ts +15 -0
  42. package/lib/commonjs/sksg/Recorder/Recorder.js +23 -1
  43. package/lib/commonjs/sksg/Recorder/Recorder.js.map +1 -1
  44. package/lib/commonjs/sksg/Recorder/Visitor.js +6 -0
  45. package/lib/commonjs/sksg/Recorder/Visitor.js.map +1 -1
  46. package/lib/commonjs/sksg/Recorder/commands/Drawing.js +11 -4
  47. package/lib/commonjs/sksg/Recorder/commands/Drawing.js.map +1 -1
  48. package/lib/commonjs/sksg/Recorder/commands/Shaders.js +8 -3
  49. package/lib/commonjs/sksg/Recorder/commands/Shaders.js.map +1 -1
  50. package/lib/module/dom/types/Drawings.d.ts +3 -1
  51. package/lib/module/dom/types/Drawings.js.map +1 -1
  52. package/lib/module/dom/types/Shaders.d.ts +2 -3
  53. package/lib/module/dom/types/Shaders.js.map +1 -1
  54. package/lib/module/renderer/components/image/ImageShader.d.ts +1 -1
  55. package/lib/module/renderer/components/image/ImageShader.js +0 -4
  56. package/lib/module/renderer/components/image/ImageShader.js.map +1 -1
  57. package/lib/module/skia/types/Canvas.d.ts +2 -2
  58. package/lib/module/skia/types/Canvas.js.map +1 -1
  59. package/lib/module/skia/types/Image/Image.d.ts +18 -0
  60. package/lib/module/skia/types/Image/Image.js +21 -0
  61. package/lib/module/skia/types/Image/Image.js.map +1 -1
  62. package/lib/module/skia/types/Picture/PictureRecorder.d.ts +2 -1
  63. package/lib/module/skia/types/Picture/PictureRecorder.js.map +1 -1
  64. package/lib/module/skia/web/JsiSkCanvas.d.ts +2 -2
  65. package/lib/module/skia/web/JsiSkCanvas.js +15 -2
  66. package/lib/module/skia/web/JsiSkCanvas.js.map +1 -1
  67. package/lib/module/sksg/Container.d.ts +17 -14
  68. package/lib/module/sksg/Container.js +56 -60
  69. package/lib/module/sksg/Container.js.map +1 -1
  70. package/lib/module/sksg/HostConfig.js +4 -9
  71. package/lib/module/sksg/HostConfig.js.map +1 -1
  72. package/lib/module/sksg/Reconciler.js +2 -3
  73. package/lib/module/sksg/Reconciler.js.map +1 -1
  74. package/lib/module/sksg/Recorder/Core.d.ts +42 -37
  75. package/lib/module/sksg/Recorder/Core.js +43 -37
  76. package/lib/module/sksg/Recorder/Core.js.map +1 -1
  77. package/lib/module/sksg/Recorder/Player.js +5 -1
  78. package/lib/module/sksg/Recorder/Player.js.map +1 -1
  79. package/lib/module/sksg/Recorder/Recorder.d.ts +15 -0
  80. package/lib/module/sksg/Recorder/Recorder.js +23 -1
  81. package/lib/module/sksg/Recorder/Recorder.js.map +1 -1
  82. package/lib/module/sksg/Recorder/Visitor.js +6 -0
  83. package/lib/module/sksg/Recorder/Visitor.js.map +1 -1
  84. package/lib/module/sksg/Recorder/commands/Drawing.js +12 -5
  85. package/lib/module/sksg/Recorder/commands/Drawing.js.map +1 -1
  86. package/lib/module/sksg/Recorder/commands/Shaders.js +9 -4
  87. package/lib/module/sksg/Recorder/commands/Shaders.js.map +1 -1
  88. package/lib/typescript/lib/commonjs/renderer/components/image/ImageShader.d.ts +1 -3
  89. package/lib/typescript/lib/commonjs/skia/types/Image/Image.d.ts +21 -0
  90. package/lib/typescript/lib/commonjs/skia/web/JsiSkCanvas.d.ts +1 -1
  91. package/lib/typescript/lib/commonjs/sksg/Container.d.ts +15 -10
  92. package/lib/typescript/lib/commonjs/sksg/HostConfig.d.ts +4 -4
  93. package/lib/typescript/lib/commonjs/sksg/Reconciler.d.ts +21 -2
  94. package/lib/typescript/lib/commonjs/sksg/Recorder/Core.d.ts +1 -0
  95. package/lib/typescript/lib/commonjs/sksg/Recorder/Recorder.d.ts +7 -0
  96. package/lib/typescript/lib/module/mock/index.d.ts +18 -3
  97. package/lib/typescript/lib/module/renderer/components/image/ImageShader.d.ts +1 -3
  98. package/lib/typescript/lib/module/skia/types/Image/Image.d.ts +21 -0
  99. package/lib/typescript/lib/module/skia/web/JsiSkCanvas.d.ts +1 -1
  100. package/lib/typescript/lib/module/sksg/Container.d.ts +15 -10
  101. package/lib/typescript/lib/module/sksg/HostConfig.d.ts +4 -4
  102. package/lib/typescript/lib/module/sksg/Reconciler.d.ts +21 -2
  103. package/lib/typescript/lib/module/sksg/Recorder/Core.d.ts +1 -0
  104. package/lib/typescript/lib/module/sksg/Recorder/Recorder.d.ts +7 -0
  105. package/lib/typescript/src/dom/types/Drawings.d.ts +3 -1
  106. package/lib/typescript/src/dom/types/Shaders.d.ts +2 -3
  107. package/lib/typescript/src/renderer/components/image/ImageShader.d.ts +1 -1
  108. package/lib/typescript/src/skia/types/Canvas.d.ts +2 -2
  109. package/lib/typescript/src/skia/types/Image/Image.d.ts +18 -0
  110. package/lib/typescript/src/skia/types/Picture/PictureRecorder.d.ts +2 -1
  111. package/lib/typescript/src/skia/web/JsiSkCanvas.d.ts +2 -2
  112. package/lib/typescript/src/sksg/Container.d.ts +17 -14
  113. package/lib/typescript/src/sksg/Recorder/Core.d.ts +42 -37
  114. package/lib/typescript/src/sksg/Recorder/Recorder.d.ts +15 -0
  115. package/libs/apple/libskia.xcframework/Info.plist +35 -2
  116. package/libs/apple/libskia.xcframework/ios-arm64_arm64e/libskia.a +0 -0
  117. package/libs/apple/libskia.xcframework/ios-arm64_arm64e_x86_64-simulator/libskia.a +0 -0
  118. package/libs/apple/libskia.xcframework/macos-arm64_x86_64/libskia.a +0 -0
  119. package/libs/apple/libskia.xcframework/tvos-arm64_arm64e/libskia.a +0 -0
  120. package/libs/apple/libskia.xcframework/tvos-arm64_arm64e_x86_64-simulator/libskia.a +0 -0
  121. package/libs/apple/libskottie.xcframework/Info.plist +36 -3
  122. package/libs/apple/libskottie.xcframework/ios-arm64_arm64e/libskottie.a +0 -0
  123. package/libs/apple/libskottie.xcframework/ios-arm64_arm64e_x86_64-simulator/libskottie.a +0 -0
  124. package/libs/apple/libskottie.xcframework/macos-arm64_x86_64/libskottie.a +0 -0
  125. package/libs/apple/libskottie.xcframework/tvos-arm64_arm64e/libskottie.a +0 -0
  126. package/libs/apple/libskottie.xcframework/tvos-arm64_arm64e_x86_64-simulator/libskottie.a +0 -0
  127. package/libs/apple/libskparagraph.xcframework/Info.plist +40 -7
  128. package/libs/apple/libskparagraph.xcframework/ios-arm64_arm64e/libskparagraph.a +0 -0
  129. package/libs/apple/libskparagraph.xcframework/ios-arm64_arm64e_x86_64-simulator/libskparagraph.a +0 -0
  130. package/libs/apple/libskparagraph.xcframework/macos-arm64_x86_64/libskparagraph.a +0 -0
  131. package/libs/apple/libskparagraph.xcframework/tvos-arm64_arm64e/libskparagraph.a +0 -0
  132. package/libs/apple/libskparagraph.xcframework/tvos-arm64_arm64e_x86_64-simulator/libskparagraph.a +0 -0
  133. package/libs/apple/libsksg.xcframework/Info.plist +35 -2
  134. package/libs/apple/libsksg.xcframework/ios-arm64_arm64e/libsksg.a +0 -0
  135. package/libs/apple/libsksg.xcframework/ios-arm64_arm64e_x86_64-simulator/libsksg.a +0 -0
  136. package/libs/apple/libsksg.xcframework/macos-arm64_x86_64/libsksg.a +0 -0
  137. package/libs/apple/libsksg.xcframework/tvos-arm64_arm64e/libsksg.a +0 -0
  138. package/libs/apple/libsksg.xcframework/tvos-arm64_arm64e_x86_64-simulator/libsksg.a +0 -0
  139. package/libs/apple/libskshaper.xcframework/Info.plist +33 -0
  140. package/libs/apple/libskshaper.xcframework/ios-arm64_arm64e/libskshaper.a +0 -0
  141. package/libs/apple/libskshaper.xcframework/ios-arm64_arm64e_x86_64-simulator/libskshaper.a +0 -0
  142. package/libs/apple/libskshaper.xcframework/macos-arm64_x86_64/libskshaper.a +0 -0
  143. package/libs/apple/libskshaper.xcframework/tvos-arm64_arm64e/libskshaper.a +0 -0
  144. package/libs/apple/libskshaper.xcframework/tvos-arm64_arm64e_x86_64-simulator/libskshaper.a +0 -0
  145. package/libs/apple/libskunicode_core.xcframework/Info.plist +36 -3
  146. package/libs/apple/libskunicode_core.xcframework/ios-arm64_arm64e/libskunicode_core.a +0 -0
  147. package/libs/apple/libskunicode_core.xcframework/ios-arm64_arm64e_x86_64-simulator/libskunicode_core.a +0 -0
  148. package/libs/apple/libskunicode_core.xcframework/macos-arm64_x86_64/libskunicode_core.a +0 -0
  149. package/libs/apple/libskunicode_core.xcframework/tvos-arm64_arm64e/libskunicode_core.a +0 -0
  150. package/libs/apple/libskunicode_core.xcframework/tvos-arm64_arm64e_x86_64-simulator/libskunicode_core.a +0 -0
  151. package/libs/apple/libskunicode_libgrapheme.xcframework/Info.plist +35 -2
  152. package/libs/apple/libskunicode_libgrapheme.xcframework/ios-arm64_arm64e/libskunicode_libgrapheme.a +0 -0
  153. package/libs/apple/libskunicode_libgrapheme.xcframework/ios-arm64_arm64e_x86_64-simulator/libskunicode_libgrapheme.a +0 -0
  154. package/libs/apple/libskunicode_libgrapheme.xcframework/macos-arm64_x86_64/libskunicode_libgrapheme.a +0 -0
  155. package/libs/apple/libskunicode_libgrapheme.xcframework/tvos-arm64_arm64e/libskunicode_libgrapheme.a +0 -0
  156. package/libs/apple/libskunicode_libgrapheme.xcframework/tvos-arm64_arm64e_x86_64-simulator/libskunicode_libgrapheme.a +0 -0
  157. package/libs/apple/libsvg.xcframework/Info.plist +36 -3
  158. package/libs/apple/libsvg.xcframework/ios-arm64_arm64e/libsvg.a +0 -0
  159. package/libs/apple/libsvg.xcframework/ios-arm64_arm64e_x86_64-simulator/libsvg.a +0 -0
  160. package/libs/apple/libsvg.xcframework/macos-arm64_x86_64/libsvg.a +0 -0
  161. package/libs/apple/libsvg.xcframework/tvos-arm64_arm64e/libsvg.a +0 -0
  162. package/libs/apple/libsvg.xcframework/tvos-arm64_arm64e_x86_64-simulator/libsvg.a +0 -0
  163. package/package.json +3 -2
  164. package/react-native-skia.podspec +2 -2
  165. package/src/__tests__/snapshots/animated-images/bird.png +0 -0
  166. package/src/__tests__/snapshots/demos/product.png +0 -0
  167. package/src/__tests__/snapshots/demos/product2.png +0 -0
  168. package/src/__tests__/snapshots/images/bundle-android.png +0 -0
  169. package/src/__tests__/snapshots/images/bundle-ios.png +0 -0
  170. package/src/__tests__/snapshots/images/bundle-node.png +0 -0
  171. package/src/__tests__/snapshots/images/filter.png +0 -0
  172. package/src/dom/types/Drawings.ts +3 -0
  173. package/src/dom/types/Shaders.ts +2 -4
  174. package/src/renderer/__tests__/e2e/Text.spec.tsx +1 -1
  175. package/src/renderer/components/image/ImageShader.tsx +2 -15
  176. package/src/skia/types/Canvas.ts +2 -3
  177. package/src/skia/types/Image/Image.ts +14 -0
  178. package/src/skia/types/Picture/PictureRecorder.ts +2 -1
  179. package/src/skia/web/JsiSkCanvas.ts +50 -29
  180. package/src/sksg/Container.ts +64 -68
  181. package/src/sksg/HostConfig.ts +4 -9
  182. package/src/sksg/Reconciler.ts +3 -3
  183. package/src/sksg/Recorder/Core.ts +10 -0
  184. package/src/sksg/Recorder/Player.ts +5 -1
  185. package/src/sksg/Recorder/Recorder.ts +36 -1
  186. package/src/sksg/Recorder/Visitor.ts +6 -0
  187. package/src/sksg/Recorder/commands/Drawing.ts +33 -4
  188. package/src/sksg/Recorder/commands/Shaders.ts +21 -8
  189. package/lib/commonjs/sksg/Recorder/Recording.d.ts +0 -7
  190. package/lib/commonjs/sksg/Recorder/Recording.js +0 -12
  191. package/lib/commonjs/sksg/Recorder/Recording.js.map +0 -1
  192. package/lib/module/sksg/Recorder/Recording.d.ts +0 -7
  193. package/lib/module/sksg/Recorder/Recording.js +0 -5
  194. package/lib/module/sksg/Recorder/Recording.js.map +0 -1
  195. package/lib/typescript/lib/commonjs/sksg/Recorder/Recording.d.ts +0 -5
  196. package/lib/typescript/lib/module/sksg/Recorder/Recording.d.ts +0 -4
  197. package/lib/typescript/src/sksg/Recorder/Recording.d.ts +0 -7
  198. package/src/sksg/Recorder/Recording.ts +0 -13
@@ -8,17 +8,32 @@
8
8
  <key>BinaryPath</key>
9
9
  <string>libskottie.a</string>
10
10
  <key>LibraryIdentifier</key>
11
- <string>ios-arm64_arm64e_x86_64-simulator</string>
11
+ <string>ios-arm64_arm64e</string>
12
12
  <key>LibraryPath</key>
13
13
  <string>libskottie.a</string>
14
14
  <key>SupportedArchitectures</key>
15
15
  <array>
16
16
  <string>arm64</string>
17
17
  <string>arm64e</string>
18
- <string>x86_64</string>
19
18
  </array>
20
19
  <key>SupportedPlatform</key>
21
20
  <string>ios</string>
21
+ </dict>
22
+ <dict>
23
+ <key>BinaryPath</key>
24
+ <string>libskottie.a</string>
25
+ <key>LibraryIdentifier</key>
26
+ <string>tvos-arm64_arm64e_x86_64-simulator</string>
27
+ <key>LibraryPath</key>
28
+ <string>libskottie.a</string>
29
+ <key>SupportedArchitectures</key>
30
+ <array>
31
+ <string>arm64</string>
32
+ <string>arm64e</string>
33
+ <string>x86_64</string>
34
+ </array>
35
+ <key>SupportedPlatform</key>
36
+ <string>tvos</string>
22
37
  <key>SupportedPlatformVariant</key>
23
38
  <string>simulator</string>
24
39
  </dict>
@@ -26,16 +41,19 @@
26
41
  <key>BinaryPath</key>
27
42
  <string>libskottie.a</string>
28
43
  <key>LibraryIdentifier</key>
29
- <string>ios-arm64_arm64e</string>
44
+ <string>ios-arm64_arm64e_x86_64-simulator</string>
30
45
  <key>LibraryPath</key>
31
46
  <string>libskottie.a</string>
32
47
  <key>SupportedArchitectures</key>
33
48
  <array>
34
49
  <string>arm64</string>
35
50
  <string>arm64e</string>
51
+ <string>x86_64</string>
36
52
  </array>
37
53
  <key>SupportedPlatform</key>
38
54
  <string>ios</string>
55
+ <key>SupportedPlatformVariant</key>
56
+ <string>simulator</string>
39
57
  </dict>
40
58
  <dict>
41
59
  <key>BinaryPath</key>
@@ -52,6 +70,21 @@
52
70
  <key>SupportedPlatform</key>
53
71
  <string>macos</string>
54
72
  </dict>
73
+ <dict>
74
+ <key>BinaryPath</key>
75
+ <string>libskottie.a</string>
76
+ <key>LibraryIdentifier</key>
77
+ <string>tvos-arm64_arm64e</string>
78
+ <key>LibraryPath</key>
79
+ <string>libskottie.a</string>
80
+ <key>SupportedArchitectures</key>
81
+ <array>
82
+ <string>arm64</string>
83
+ <string>arm64e</string>
84
+ </array>
85
+ <key>SupportedPlatform</key>
86
+ <string>tvos</string>
87
+ </dict>
55
88
  </array>
56
89
  <key>CFBundlePackageType</key>
57
90
  <string>XFWK</string>
@@ -8,19 +8,16 @@
8
8
  <key>BinaryPath</key>
9
9
  <string>libskparagraph.a</string>
10
10
  <key>LibraryIdentifier</key>
11
- <string>ios-arm64_arm64e_x86_64-simulator</string>
11
+ <string>macos-arm64_x86_64</string>
12
12
  <key>LibraryPath</key>
13
13
  <string>libskparagraph.a</string>
14
14
  <key>SupportedArchitectures</key>
15
15
  <array>
16
16
  <string>arm64</string>
17
- <string>arm64e</string>
18
17
  <string>x86_64</string>
19
18
  </array>
20
19
  <key>SupportedPlatform</key>
21
- <string>ios</string>
22
- <key>SupportedPlatformVariant</key>
23
- <string>simulator</string>
20
+ <string>macos</string>
24
21
  </dict>
25
22
  <dict>
26
23
  <key>BinaryPath</key>
@@ -41,16 +38,52 @@
41
38
  <key>BinaryPath</key>
42
39
  <string>libskparagraph.a</string>
43
40
  <key>LibraryIdentifier</key>
44
- <string>macos-arm64_x86_64</string>
41
+ <string>tvos-arm64_arm64e</string>
42
+ <key>LibraryPath</key>
43
+ <string>libskparagraph.a</string>
44
+ <key>SupportedArchitectures</key>
45
+ <array>
46
+ <string>arm64</string>
47
+ <string>arm64e</string>
48
+ </array>
49
+ <key>SupportedPlatform</key>
50
+ <string>tvos</string>
51
+ </dict>
52
+ <dict>
53
+ <key>BinaryPath</key>
54
+ <string>libskparagraph.a</string>
55
+ <key>LibraryIdentifier</key>
56
+ <string>ios-arm64_arm64e_x86_64-simulator</string>
45
57
  <key>LibraryPath</key>
46
58
  <string>libskparagraph.a</string>
47
59
  <key>SupportedArchitectures</key>
48
60
  <array>
49
61
  <string>arm64</string>
62
+ <string>arm64e</string>
50
63
  <string>x86_64</string>
51
64
  </array>
52
65
  <key>SupportedPlatform</key>
53
- <string>macos</string>
66
+ <string>ios</string>
67
+ <key>SupportedPlatformVariant</key>
68
+ <string>simulator</string>
69
+ </dict>
70
+ <dict>
71
+ <key>BinaryPath</key>
72
+ <string>libskparagraph.a</string>
73
+ <key>LibraryIdentifier</key>
74
+ <string>tvos-arm64_arm64e_x86_64-simulator</string>
75
+ <key>LibraryPath</key>
76
+ <string>libskparagraph.a</string>
77
+ <key>SupportedArchitectures</key>
78
+ <array>
79
+ <string>arm64</string>
80
+ <string>arm64e</string>
81
+ <string>x86_64</string>
82
+ </array>
83
+ <key>SupportedPlatform</key>
84
+ <string>tvos</string>
85
+ <key>SupportedPlatformVariant</key>
86
+ <string>simulator</string>
54
87
  </dict>
55
88
  </array>
56
89
  <key>CFBundlePackageType</key>
@@ -8,16 +8,19 @@
8
8
  <key>BinaryPath</key>
9
9
  <string>libsksg.a</string>
10
10
  <key>LibraryIdentifier</key>
11
- <string>macos-arm64_x86_64</string>
11
+ <string>tvos-arm64_arm64e_x86_64-simulator</string>
12
12
  <key>LibraryPath</key>
13
13
  <string>libsksg.a</string>
14
14
  <key>SupportedArchitectures</key>
15
15
  <array>
16
16
  <string>arm64</string>
17
+ <string>arm64e</string>
17
18
  <string>x86_64</string>
18
19
  </array>
19
20
  <key>SupportedPlatform</key>
20
- <string>macos</string>
21
+ <string>tvos</string>
22
+ <key>SupportedPlatformVariant</key>
23
+ <string>simulator</string>
21
24
  </dict>
22
25
  <dict>
23
26
  <key>BinaryPath</key>
@@ -34,6 +37,21 @@
34
37
  <key>SupportedPlatform</key>
35
38
  <string>ios</string>
36
39
  </dict>
40
+ <dict>
41
+ <key>BinaryPath</key>
42
+ <string>libsksg.a</string>
43
+ <key>LibraryIdentifier</key>
44
+ <string>tvos-arm64_arm64e</string>
45
+ <key>LibraryPath</key>
46
+ <string>libsksg.a</string>
47
+ <key>SupportedArchitectures</key>
48
+ <array>
49
+ <string>arm64</string>
50
+ <string>arm64e</string>
51
+ </array>
52
+ <key>SupportedPlatform</key>
53
+ <string>tvos</string>
54
+ </dict>
37
55
  <dict>
38
56
  <key>BinaryPath</key>
39
57
  <string>libsksg.a</string>
@@ -52,6 +70,21 @@
52
70
  <key>SupportedPlatformVariant</key>
53
71
  <string>simulator</string>
54
72
  </dict>
73
+ <dict>
74
+ <key>BinaryPath</key>
75
+ <string>libsksg.a</string>
76
+ <key>LibraryIdentifier</key>
77
+ <string>macos-arm64_x86_64</string>
78
+ <key>LibraryPath</key>
79
+ <string>libsksg.a</string>
80
+ <key>SupportedArchitectures</key>
81
+ <array>
82
+ <string>arm64</string>
83
+ <string>x86_64</string>
84
+ </array>
85
+ <key>SupportedPlatform</key>
86
+ <string>macos</string>
87
+ </dict>
55
88
  </array>
56
89
  <key>CFBundlePackageType</key>
57
90
  <string>XFWK</string>
@@ -4,6 +4,39 @@
4
4
  <dict>
5
5
  <key>AvailableLibraries</key>
6
6
  <array>
7
+ <dict>
8
+ <key>BinaryPath</key>
9
+ <string>libskshaper.a</string>
10
+ <key>LibraryIdentifier</key>
11
+ <string>tvos-arm64_arm64e</string>
12
+ <key>LibraryPath</key>
13
+ <string>libskshaper.a</string>
14
+ <key>SupportedArchitectures</key>
15
+ <array>
16
+ <string>arm64</string>
17
+ <string>arm64e</string>
18
+ </array>
19
+ <key>SupportedPlatform</key>
20
+ <string>tvos</string>
21
+ </dict>
22
+ <dict>
23
+ <key>BinaryPath</key>
24
+ <string>libskshaper.a</string>
25
+ <key>LibraryIdentifier</key>
26
+ <string>tvos-arm64_arm64e_x86_64-simulator</string>
27
+ <key>LibraryPath</key>
28
+ <string>libskshaper.a</string>
29
+ <key>SupportedArchitectures</key>
30
+ <array>
31
+ <string>arm64</string>
32
+ <string>arm64e</string>
33
+ <string>x86_64</string>
34
+ </array>
35
+ <key>SupportedPlatform</key>
36
+ <string>tvos</string>
37
+ <key>SupportedPlatformVariant</key>
38
+ <string>simulator</string>
39
+ </dict>
7
40
  <dict>
8
41
  <key>BinaryPath</key>
9
42
  <string>libskshaper.a</string>
@@ -8,22 +8,25 @@
8
8
  <key>BinaryPath</key>
9
9
  <string>libskunicode_core.a</string>
10
10
  <key>LibraryIdentifier</key>
11
- <string>ios-arm64_arm64e</string>
11
+ <string>ios-arm64_arm64e_x86_64-simulator</string>
12
12
  <key>LibraryPath</key>
13
13
  <string>libskunicode_core.a</string>
14
14
  <key>SupportedArchitectures</key>
15
15
  <array>
16
16
  <string>arm64</string>
17
17
  <string>arm64e</string>
18
+ <string>x86_64</string>
18
19
  </array>
19
20
  <key>SupportedPlatform</key>
20
21
  <string>ios</string>
22
+ <key>SupportedPlatformVariant</key>
23
+ <string>simulator</string>
21
24
  </dict>
22
25
  <dict>
23
26
  <key>BinaryPath</key>
24
27
  <string>libskunicode_core.a</string>
25
28
  <key>LibraryIdentifier</key>
26
- <string>ios-arm64_arm64e_x86_64-simulator</string>
29
+ <string>tvos-arm64_arm64e_x86_64-simulator</string>
27
30
  <key>LibraryPath</key>
28
31
  <string>libskunicode_core.a</string>
29
32
  <key>SupportedArchitectures</key>
@@ -33,10 +36,25 @@
33
36
  <string>x86_64</string>
34
37
  </array>
35
38
  <key>SupportedPlatform</key>
36
- <string>ios</string>
39
+ <string>tvos</string>
37
40
  <key>SupportedPlatformVariant</key>
38
41
  <string>simulator</string>
39
42
  </dict>
43
+ <dict>
44
+ <key>BinaryPath</key>
45
+ <string>libskunicode_core.a</string>
46
+ <key>LibraryIdentifier</key>
47
+ <string>tvos-arm64_arm64e</string>
48
+ <key>LibraryPath</key>
49
+ <string>libskunicode_core.a</string>
50
+ <key>SupportedArchitectures</key>
51
+ <array>
52
+ <string>arm64</string>
53
+ <string>arm64e</string>
54
+ </array>
55
+ <key>SupportedPlatform</key>
56
+ <string>tvos</string>
57
+ </dict>
40
58
  <dict>
41
59
  <key>BinaryPath</key>
42
60
  <string>libskunicode_core.a</string>
@@ -52,6 +70,21 @@
52
70
  <key>SupportedPlatform</key>
53
71
  <string>macos</string>
54
72
  </dict>
73
+ <dict>
74
+ <key>BinaryPath</key>
75
+ <string>libskunicode_core.a</string>
76
+ <key>LibraryIdentifier</key>
77
+ <string>ios-arm64_arm64e</string>
78
+ <key>LibraryPath</key>
79
+ <string>libskunicode_core.a</string>
80
+ <key>SupportedArchitectures</key>
81
+ <array>
82
+ <string>arm64</string>
83
+ <string>arm64e</string>
84
+ </array>
85
+ <key>SupportedPlatform</key>
86
+ <string>ios</string>
87
+ </dict>
55
88
  </array>
56
89
  <key>CFBundlePackageType</key>
57
90
  <string>XFWK</string>
@@ -8,7 +8,7 @@
8
8
  <key>BinaryPath</key>
9
9
  <string>libskunicode_libgrapheme.a</string>
10
10
  <key>LibraryIdentifier</key>
11
- <string>ios-arm64_arm64e_x86_64-simulator</string>
11
+ <string>tvos-arm64_arm64e_x86_64-simulator</string>
12
12
  <key>LibraryPath</key>
13
13
  <string>libskunicode_libgrapheme.a</string>
14
14
  <key>SupportedArchitectures</key>
@@ -18,10 +18,25 @@
18
18
  <string>x86_64</string>
19
19
  </array>
20
20
  <key>SupportedPlatform</key>
21
- <string>ios</string>
21
+ <string>tvos</string>
22
22
  <key>SupportedPlatformVariant</key>
23
23
  <string>simulator</string>
24
24
  </dict>
25
+ <dict>
26
+ <key>BinaryPath</key>
27
+ <string>libskunicode_libgrapheme.a</string>
28
+ <key>LibraryIdentifier</key>
29
+ <string>tvos-arm64_arm64e</string>
30
+ <key>LibraryPath</key>
31
+ <string>libskunicode_libgrapheme.a</string>
32
+ <key>SupportedArchitectures</key>
33
+ <array>
34
+ <string>arm64</string>
35
+ <string>arm64e</string>
36
+ </array>
37
+ <key>SupportedPlatform</key>
38
+ <string>tvos</string>
39
+ </dict>
25
40
  <dict>
26
41
  <key>BinaryPath</key>
27
42
  <string>libskunicode_libgrapheme.a</string>
@@ -37,6 +52,24 @@
37
52
  <key>SupportedPlatform</key>
38
53
  <string>macos</string>
39
54
  </dict>
55
+ <dict>
56
+ <key>BinaryPath</key>
57
+ <string>libskunicode_libgrapheme.a</string>
58
+ <key>LibraryIdentifier</key>
59
+ <string>ios-arm64_arm64e_x86_64-simulator</string>
60
+ <key>LibraryPath</key>
61
+ <string>libskunicode_libgrapheme.a</string>
62
+ <key>SupportedArchitectures</key>
63
+ <array>
64
+ <string>arm64</string>
65
+ <string>arm64e</string>
66
+ <string>x86_64</string>
67
+ </array>
68
+ <key>SupportedPlatform</key>
69
+ <string>ios</string>
70
+ <key>SupportedPlatformVariant</key>
71
+ <string>simulator</string>
72
+ </dict>
40
73
  <dict>
41
74
  <key>BinaryPath</key>
42
75
  <string>libskunicode_libgrapheme.a</string>
@@ -8,17 +8,32 @@
8
8
  <key>BinaryPath</key>
9
9
  <string>libsvg.a</string>
10
10
  <key>LibraryIdentifier</key>
11
- <string>ios-arm64_arm64e_x86_64-simulator</string>
11
+ <string>ios-arm64_arm64e</string>
12
12
  <key>LibraryPath</key>
13
13
  <string>libsvg.a</string>
14
14
  <key>SupportedArchitectures</key>
15
15
  <array>
16
16
  <string>arm64</string>
17
17
  <string>arm64e</string>
18
- <string>x86_64</string>
19
18
  </array>
20
19
  <key>SupportedPlatform</key>
21
20
  <string>ios</string>
21
+ </dict>
22
+ <dict>
23
+ <key>BinaryPath</key>
24
+ <string>libsvg.a</string>
25
+ <key>LibraryIdentifier</key>
26
+ <string>tvos-arm64_arm64e_x86_64-simulator</string>
27
+ <key>LibraryPath</key>
28
+ <string>libsvg.a</string>
29
+ <key>SupportedArchitectures</key>
30
+ <array>
31
+ <string>arm64</string>
32
+ <string>arm64e</string>
33
+ <string>x86_64</string>
34
+ </array>
35
+ <key>SupportedPlatform</key>
36
+ <string>tvos</string>
22
37
  <key>SupportedPlatformVariant</key>
23
38
  <string>simulator</string>
24
39
  </dict>
@@ -41,7 +56,7 @@
41
56
  <key>BinaryPath</key>
42
57
  <string>libsvg.a</string>
43
58
  <key>LibraryIdentifier</key>
44
- <string>ios-arm64_arm64e</string>
59
+ <string>tvos-arm64_arm64e</string>
45
60
  <key>LibraryPath</key>
46
61
  <string>libsvg.a</string>
47
62
  <key>SupportedArchitectures</key>
@@ -50,7 +65,25 @@
50
65
  <string>arm64e</string>
51
66
  </array>
52
67
  <key>SupportedPlatform</key>
68
+ <string>tvos</string>
69
+ </dict>
70
+ <dict>
71
+ <key>BinaryPath</key>
72
+ <string>libsvg.a</string>
73
+ <key>LibraryIdentifier</key>
74
+ <string>ios-arm64_arm64e_x86_64-simulator</string>
75
+ <key>LibraryPath</key>
76
+ <string>libsvg.a</string>
77
+ <key>SupportedArchitectures</key>
78
+ <array>
79
+ <string>arm64</string>
80
+ <string>arm64e</string>
81
+ <string>x86_64</string>
82
+ </array>
83
+ <key>SupportedPlatform</key>
53
84
  <string>ios</string>
85
+ <key>SupportedPlatformVariant</key>
86
+ <string>simulator</string>
54
87
  </dict>
55
88
  </array>
56
89
  <key>CFBundlePackageType</key>
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "setup-skia-web": "./scripts/setup-canvaskit.js"
8
8
  },
9
9
  "title": "React Native Skia",
10
- "version": "1.8.2",
10
+ "version": "1.9.1",
11
11
  "description": "High-performance React Native Graphics using Skia",
12
12
  "main": "lib/module/index.js",
13
13
  "react-native": "src/index.ts",
@@ -49,7 +49,8 @@
49
49
  "clang-format-android": "find android/cpp/ -iname '*.h' -o -iname '*.m' -o -iname '*.cpp' | xargs clang-format -i",
50
50
  "clang-format-common": "find cpp/ \\( -path 'cpp//skia' -prune \\) -o \\( -iname '*.h' -o -iname '*.m' -o -iname '*.cpp' \\) -print | xargs clang-format -i",
51
51
  "workflow-copy-libs": "yarn ts-node ./scripts/workflow-copy-libs.ts",
52
- "cpplint": "cpplint --linelength=230 --filter=-legal/copyright,-whitespace/indent,-whitespace/comments,-whitespace/ending_newline,-build/include_order,-runtime/references,-readability/todo,-whitespace/blank_line,-whitespace/todo,-runtime/int,-build/c++11,-whitespace/parens --exclude=package/cpp/skia --exclude=package/ios --exclude=package/android/build --exclude=package/node_modules --recursive package"
52
+ "cpplint": "cpplint --linelength=230 --filter=-legal/copyright,-whitespace/indent,-whitespace/comments,-whitespace/ending_newline,-build/include_order,-runtime/references,-readability/todo,-whitespace/blank_line,-whitespace/todo,-runtime/int,-build/c++11,-whitespace/parens --exclude=package/cpp/skia --exclude=package/ios --exclude=package/android/build --exclude=package/node_modules --recursive package",
53
+ "download-artifacts": "ts-node ./scripts/download-artifacts.ts"
53
54
  },
54
55
  "repository": {
55
56
  "type": "git",
@@ -41,7 +41,7 @@ Pod::Spec.new do |s|
41
41
  "Christian Falch" => "christian.falch@gmail.com",
42
42
  "William Candillon" => "wcandillon@gmail.com"
43
43
  }
44
- s.platforms = { :ios => "13.0" }
44
+ s.platforms = { :ios => "13.0", :tvos => "13.0" }
45
45
  s.source = { :git => "https://github.com/shopify/react-native-skia/react-native-skia.git", :tag => "#{s.version}" }
46
46
 
47
47
  s.requires_arc = true
@@ -54,7 +54,7 @@ Pod::Spec.new do |s|
54
54
 
55
55
  s.frameworks = 'MetalKit'
56
56
 
57
- s.ios.vendored_frameworks = use_graphite ?
57
+ s.vendored_frameworks = use_graphite ?
58
58
  base_frameworks + graphite_frameworks :
59
59
  base_frameworks
60
60
 
@@ -17,6 +17,7 @@ import type {
17
17
  SkRect,
18
18
  SkRSXform,
19
19
  SkColor,
20
+ SamplingOptions,
20
21
  } from "../../skia/types";
21
22
 
22
23
  import type {
@@ -37,6 +38,7 @@ export type ImageProps = DrawingNodeProps &
37
38
  RectDef & {
38
39
  fit?: Fit;
39
40
  image: SkImage | null;
41
+ sampling?: SamplingOptions;
40
42
  };
41
43
 
42
44
  export type CircleProps = CircleDef & DrawingNodeProps;
@@ -65,6 +67,7 @@ export interface AtlasProps extends DrawingNodeProps {
65
67
  sprites: SkRect[];
66
68
  transforms: SkRSXform[];
67
69
  colors?: SkColor[];
70
+ sampling?: SamplingOptions;
68
71
  }
69
72
 
70
73
  export interface CubicBezierHandle {