@shopify/react-native-skia 2.0.6 → 2.1.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/android/CMakeLists.txt +20 -1
- package/cpp/api/JsiSkApi.h +3 -0
- package/cpp/api/JsiSkImageFilterFactory.h +478 -39
- package/cpp/api/JsiSkPath.h +2 -1
- package/cpp/api/JsiSkPathFactory.h +1 -1
- package/cpp/api/JsiSkSkottie.h +590 -0
- package/cpp/api/JsiSkottieFactory.h +65 -0
- package/cpp/api/recorder/Command.h +1 -0
- package/cpp/api/recorder/Convertor.h +16 -0
- package/cpp/api/recorder/Drawings.h +23 -0
- package/cpp/api/recorder/JsiRecorder.h +6 -0
- package/cpp/api/recorder/RNRecorder.h +9 -0
- package/cpp/api/third_party/SkottieUtils.cpp +333 -0
- package/cpp/api/third_party/SkottieUtils.h +172 -0
- package/cpp/skia/modules/jsonreader/SkJSONReader.cpp +980 -0
- package/cpp/skia/modules/jsonreader/SkJSONReader.h +389 -0
- package/cpp/skia/modules/skottie/include/ExternalLayer.h +56 -0
- package/cpp/skia/modules/skottie/include/Skottie.h +313 -0
- package/cpp/skia/modules/skottie/include/SkottieProperty.h +190 -0
- package/cpp/skia/modules/skottie/include/SlotManager.h +113 -0
- package/cpp/skia/modules/skottie/include/TextShaper.h +200 -0
- package/cpp/skia/modules/skottie/src/SkottieValue.h +56 -0
- package/cpp/skia/modules/skottie/src/animator/Animator.h +89 -0
- package/cpp/skia/modules/skottie/src/text/Font.h +82 -0
- package/cpp/skia/modules/skottie/src/text/TextAdapter.h +155 -0
- package/cpp/skia/modules/skottie/src/text/TextAnimator.h +121 -0
- package/cpp/skia/modules/skottie/src/text/TextValue.h +28 -0
- package/cpp/skia/modules/sksg/include/SkSGClipEffect.h +61 -0
- package/cpp/skia/modules/sksg/include/SkSGColorFilter.h +135 -0
- package/cpp/skia/modules/sksg/include/SkSGDraw.h +57 -0
- package/cpp/skia/modules/sksg/include/SkSGEffectNode.h +50 -0
- package/cpp/skia/modules/sksg/include/SkSGGeometryEffect.h +181 -0
- package/cpp/skia/modules/sksg/include/SkSGGeometryNode.h +54 -0
- package/cpp/skia/modules/sksg/include/SkSGGradient.h +108 -0
- package/cpp/skia/modules/sksg/include/SkSGGroup.h +65 -0
- package/cpp/skia/modules/sksg/include/SkSGImage.h +59 -0
- package/cpp/skia/modules/sksg/include/SkSGInvalidationController.h +46 -0
- package/cpp/skia/modules/sksg/include/SkSGMaskEffect.h +65 -0
- package/cpp/skia/modules/sksg/include/SkSGMerge.h +74 -0
- package/cpp/skia/modules/sksg/include/SkSGNode.h +128 -0
- package/cpp/skia/modules/sksg/include/SkSGOpacityEffect.h +54 -0
- package/cpp/skia/modules/sksg/include/SkSGPaint.h +112 -0
- package/cpp/skia/modules/sksg/include/SkSGPath.h +68 -0
- package/cpp/skia/modules/sksg/include/SkSGPlane.h +47 -0
- package/cpp/skia/modules/sksg/include/SkSGRect.h +122 -0
- package/cpp/skia/modules/sksg/include/SkSGRenderEffect.h +283 -0
- package/cpp/skia/modules/sksg/include/SkSGRenderNode.h +157 -0
- package/cpp/skia/modules/sksg/include/SkSGScene.h +47 -0
- package/cpp/skia/modules/sksg/include/SkSGText.h +82 -0
- package/cpp/skia/modules/sksg/include/SkSGTransform.h +127 -0
- package/cpp/skia/src/base/SkArenaAlloc.h +371 -0
- package/lib/commonjs/dom/nodes/datatypes/Gradient.d.ts +15 -15
- package/lib/commonjs/dom/types/Drawings.d.ts +5 -1
- package/lib/commonjs/dom/types/Drawings.js.map +1 -1
- package/lib/commonjs/dom/types/NodeType.d.ts +2 -1
- package/lib/commonjs/dom/types/NodeType.js +2 -0
- package/lib/commonjs/dom/types/NodeType.js.map +1 -1
- package/lib/commonjs/renderer/__tests__/e2e/AdvancedImageFilters.spec.d.ts +1 -0
- package/lib/commonjs/renderer/__tests__/e2e/Camera.spec.d.ts +21 -0
- package/lib/commonjs/renderer/__tests__/e2e/LightingImageFilters.spec.d.ts +1 -0
- package/lib/commonjs/renderer/__tests__/e2e/Skottie.spec.d.ts +1 -0
- package/lib/commonjs/renderer/__tests__/setup.d.ts +5 -0
- package/lib/commonjs/renderer/components/Skottie.d.ts +4 -0
- package/lib/commonjs/renderer/components/Skottie.js +13 -0
- package/lib/commonjs/renderer/components/Skottie.js.map +1 -0
- package/lib/commonjs/renderer/components/index.d.ts +1 -0
- package/lib/commonjs/renderer/components/index.js +11 -0
- package/lib/commonjs/renderer/components/index.js.map +1 -1
- package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.d.ts +252 -15
- package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -1
- package/lib/commonjs/skia/types/Matrix4.d.ts +11 -2
- package/lib/commonjs/skia/types/Matrix4.js +42 -1
- package/lib/commonjs/skia/types/Matrix4.js.map +1 -1
- package/lib/commonjs/skia/types/Recorder.d.ts +2 -1
- package/lib/commonjs/skia/types/Recorder.js.map +1 -1
- package/lib/commonjs/skia/types/Skia.d.ts +2 -0
- package/lib/commonjs/skia/types/Skia.js.map +1 -1
- package/lib/commonjs/skia/types/Skottie.d.ts +223 -0
- package/lib/commonjs/skia/types/Skottie.js +73 -0
- package/lib/commonjs/skia/types/Skottie.js.map +1 -0
- package/lib/commonjs/skia/types/index.d.ts +1 -0
- package/lib/commonjs/skia/types/index.js +11 -0
- package/lib/commonjs/skia/types/index.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkImageFilterFactory.d.ts +29 -12
- package/lib/commonjs/skia/web/JsiSkImageFilterFactory.js +88 -19
- package/lib/commonjs/skia/web/JsiSkImageFilterFactory.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkia.js +2 -0
- package/lib/commonjs/skia/web/JsiSkia.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkottieAnimation.d.ts +59 -0
- package/lib/commonjs/skia/web/JsiSkottieAnimation.js +243 -0
- package/lib/commonjs/skia/web/JsiSkottieAnimation.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkottieFactory.d.ts +9 -0
- package/lib/commonjs/skia/web/JsiSkottieFactory.js +26 -0
- package/lib/commonjs/skia/web/JsiSkottieFactory.js.map +1 -0
- package/lib/commonjs/sksg/Elements.d.ts +2 -1
- package/lib/commonjs/sksg/Elements.js.map +1 -1
- package/lib/commonjs/sksg/Recorder/Core.d.ts +4 -2
- package/lib/commonjs/sksg/Recorder/Core.js +1 -0
- package/lib/commonjs/sksg/Recorder/Core.js.map +1 -1
- package/lib/commonjs/sksg/Recorder/Player.js +2 -0
- package/lib/commonjs/sksg/Recorder/Player.js.map +1 -1
- package/lib/commonjs/sksg/Recorder/ReanimatedRecorder.d.ts +2 -1
- package/lib/commonjs/sksg/Recorder/ReanimatedRecorder.js +4 -0
- package/lib/commonjs/sksg/Recorder/ReanimatedRecorder.js.map +1 -1
- package/lib/commonjs/sksg/Recorder/Recorder.d.ts +2 -1
- package/lib/commonjs/sksg/Recorder/Recorder.js +6 -0
- package/lib/commonjs/sksg/Recorder/Recorder.js.map +1 -1
- package/lib/commonjs/sksg/Recorder/Visitor.js +3 -0
- package/lib/commonjs/sksg/Recorder/Visitor.js.map +1 -1
- package/lib/commonjs/sksg/Recorder/commands/Drawing.d.ts +2 -2
- package/lib/commonjs/sksg/Recorder/commands/Drawing.js +11 -4
- package/lib/commonjs/sksg/Recorder/commands/Drawing.js.map +1 -1
- package/lib/commonjs/sksg/Recorder/commands/ImageFilters.js +1 -1
- package/lib/commonjs/sksg/Recorder/commands/ImageFilters.js.map +1 -1
- package/lib/module/dom/nodes/datatypes/Gradient.d.ts +15 -15
- package/lib/module/dom/types/Drawings.d.ts +5 -1
- package/lib/module/dom/types/Drawings.js.map +1 -1
- package/lib/module/dom/types/NodeType.d.ts +2 -1
- package/lib/module/dom/types/NodeType.js +2 -0
- package/lib/module/dom/types/NodeType.js.map +1 -1
- package/lib/module/renderer/__tests__/e2e/AdvancedImageFilters.spec.d.ts +1 -0
- package/lib/module/renderer/__tests__/e2e/Camera.spec.d.ts +21 -0
- package/lib/module/renderer/__tests__/e2e/LightingImageFilters.spec.d.ts +1 -0
- package/lib/module/renderer/__tests__/e2e/Skottie.spec.d.ts +1 -0
- package/lib/module/renderer/__tests__/setup.d.ts +5 -0
- package/lib/module/renderer/components/Skottie.d.ts +4 -0
- package/lib/module/renderer/components/Skottie.js +5 -0
- package/lib/module/renderer/components/Skottie.js.map +1 -0
- package/lib/module/renderer/components/index.d.ts +1 -0
- package/lib/module/renderer/components/index.js +1 -0
- package/lib/module/renderer/components/index.js.map +1 -1
- package/lib/module/skia/types/ImageFilter/ImageFilterFactory.d.ts +252 -15
- package/lib/module/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -1
- package/lib/module/skia/types/Matrix4.d.ts +11 -2
- package/lib/module/skia/types/Matrix4.js +40 -0
- package/lib/module/skia/types/Matrix4.js.map +1 -1
- package/lib/module/skia/types/Recorder.d.ts +2 -1
- package/lib/module/skia/types/Recorder.js.map +1 -1
- package/lib/module/skia/types/Skia.d.ts +2 -0
- package/lib/module/skia/types/Skia.js.map +1 -1
- package/lib/module/skia/types/Skottie.d.ts +223 -0
- package/lib/module/skia/types/Skottie.js +74 -0
- package/lib/module/skia/types/Skottie.js.map +1 -0
- package/lib/module/skia/types/index.d.ts +1 -0
- package/lib/module/skia/types/index.js +1 -0
- package/lib/module/skia/types/index.js.map +1 -1
- package/lib/module/skia/web/JsiSkImageFilterFactory.d.ts +29 -12
- package/lib/module/skia/web/JsiSkImageFilterFactory.js +88 -19
- package/lib/module/skia/web/JsiSkImageFilterFactory.js.map +1 -1
- package/lib/module/skia/web/JsiSkia.js +2 -0
- package/lib/module/skia/web/JsiSkia.js.map +1 -1
- package/lib/module/skia/web/JsiSkottieAnimation.d.ts +59 -0
- package/lib/module/skia/web/JsiSkottieAnimation.js +236 -0
- package/lib/module/skia/web/JsiSkottieAnimation.js.map +1 -0
- package/lib/module/skia/web/JsiSkottieFactory.d.ts +9 -0
- package/lib/module/skia/web/JsiSkottieFactory.js +19 -0
- package/lib/module/skia/web/JsiSkottieFactory.js.map +1 -0
- package/lib/module/sksg/Elements.d.ts +2 -1
- package/lib/module/sksg/Elements.js.map +1 -1
- package/lib/module/sksg/Recorder/Core.d.ts +4 -2
- package/lib/module/sksg/Recorder/Core.js +1 -0
- package/lib/module/sksg/Recorder/Core.js.map +1 -1
- package/lib/module/sksg/Recorder/Player.js +3 -1
- package/lib/module/sksg/Recorder/Player.js.map +1 -1
- package/lib/module/sksg/Recorder/ReanimatedRecorder.d.ts +2 -1
- package/lib/module/sksg/Recorder/ReanimatedRecorder.js +4 -0
- package/lib/module/sksg/Recorder/ReanimatedRecorder.js.map +1 -1
- package/lib/module/sksg/Recorder/Recorder.d.ts +2 -1
- package/lib/module/sksg/Recorder/Recorder.js +6 -0
- package/lib/module/sksg/Recorder/Recorder.js.map +1 -1
- package/lib/module/sksg/Recorder/Visitor.js +3 -0
- package/lib/module/sksg/Recorder/Visitor.js.map +1 -1
- package/lib/module/sksg/Recorder/commands/Drawing.d.ts +2 -2
- package/lib/module/sksg/Recorder/commands/Drawing.js +9 -2
- package/lib/module/sksg/Recorder/commands/Drawing.js.map +1 -1
- package/lib/module/sksg/Recorder/commands/ImageFilters.js +1 -1
- package/lib/module/sksg/Recorder/commands/ImageFilters.js.map +1 -1
- package/lib/typescript/lib/commonjs/renderer/components/Skottie.d.ts +2 -0
- package/lib/typescript/lib/commonjs/skia/types/Matrix4.d.ts +1 -0
- package/lib/typescript/lib/commonjs/skia/types/Skottie.d.ts +6 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkImageFilterFactory.d.ts +22 -5
- package/lib/typescript/lib/commonjs/skia/web/JsiSkia.d.ts +2 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkottieAnimation.d.ts +48 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkottieFactory.d.ts +6 -0
- package/lib/typescript/lib/commonjs/sksg/Recorder/ReanimatedRecorder.d.ts +1 -0
- package/lib/typescript/lib/commonjs/sksg/Recorder/Recorder.d.ts +1 -0
- package/lib/typescript/lib/commonjs/sksg/Recorder/commands/Drawing.d.ts +1 -1
- package/lib/typescript/lib/module/mock/index.d.ts +7 -0
- package/lib/typescript/lib/module/renderer/components/Skottie.d.ts +2 -0
- package/lib/typescript/lib/module/renderer/components/index.d.ts +1 -0
- package/lib/typescript/lib/module/skia/Skia.web.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/Matrix4.d.ts +1 -0
- package/lib/typescript/lib/module/skia/types/Skottie.d.ts +5 -0
- package/lib/typescript/lib/module/skia/types/index.d.ts +1 -0
- package/lib/typescript/lib/module/skia/web/JsiSkImageFilterFactory.d.ts +22 -5
- package/lib/typescript/lib/module/skia/web/JsiSkia.d.ts +2 -0
- package/lib/typescript/lib/module/skia/web/JsiSkottieAnimation.d.ts +47 -0
- package/lib/typescript/lib/module/skia/web/JsiSkottieFactory.d.ts +5 -0
- package/lib/typescript/lib/module/sksg/Recorder/ReanimatedRecorder.d.ts +1 -0
- package/lib/typescript/lib/module/sksg/Recorder/Recorder.d.ts +1 -0
- package/lib/typescript/lib/module/sksg/Recorder/commands/Drawing.d.ts +1 -1
- package/lib/typescript/src/dom/nodes/datatypes/Gradient.d.ts +15 -15
- package/lib/typescript/src/dom/types/Drawings.d.ts +5 -1
- package/lib/typescript/src/dom/types/NodeType.d.ts +2 -1
- package/lib/typescript/src/renderer/__tests__/e2e/AdvancedImageFilters.spec.d.ts +1 -0
- package/lib/typescript/src/renderer/__tests__/e2e/Camera.spec.d.ts +21 -0
- package/lib/typescript/src/renderer/__tests__/e2e/LightingImageFilters.spec.d.ts +1 -0
- package/lib/typescript/src/renderer/__tests__/e2e/Skottie.spec.d.ts +1 -0
- package/lib/typescript/src/renderer/__tests__/setup.d.ts +5 -0
- package/lib/typescript/src/renderer/components/Skottie.d.ts +4 -0
- package/lib/typescript/src/renderer/components/index.d.ts +1 -0
- package/lib/typescript/src/skia/types/ImageFilter/ImageFilterFactory.d.ts +252 -15
- package/lib/typescript/src/skia/types/Matrix4.d.ts +11 -2
- package/lib/typescript/src/skia/types/Recorder.d.ts +2 -1
- package/lib/typescript/src/skia/types/Skia.d.ts +2 -0
- package/lib/typescript/src/skia/types/Skottie.d.ts +223 -0
- package/lib/typescript/src/skia/types/index.d.ts +1 -0
- package/lib/typescript/src/skia/web/JsiSkImageFilterFactory.d.ts +29 -12
- package/lib/typescript/src/skia/web/JsiSkottieAnimation.d.ts +59 -0
- package/lib/typescript/src/skia/web/JsiSkottieFactory.d.ts +9 -0
- package/lib/typescript/src/sksg/Elements.d.ts +2 -1
- package/lib/typescript/src/sksg/Recorder/Core.d.ts +4 -2
- package/lib/typescript/src/sksg/Recorder/ReanimatedRecorder.d.ts +2 -1
- package/lib/typescript/src/sksg/Recorder/Recorder.d.ts +2 -1
- package/lib/typescript/src/sksg/Recorder/commands/Drawing.d.ts +2 -2
- package/libs/android/arm64-v8a/libjsonreader.a +0 -0
- package/libs/android/armeabi-v7a/libjsonreader.a +0 -0
- package/libs/android/x86/libjsonreader.a +0 -0
- package/libs/android/x86_64/libjsonreader.a +0 -0
- package/libs/apple/libpathops.xcframework/Info.plist +9 -9
- package/libs/apple/libskia.xcframework/Info.plist +14 -14
- package/libs/apple/libskottie.xcframework/Info.plist +13 -13
- package/libs/apple/libskparagraph.xcframework/Info.plist +15 -15
- package/libs/apple/libsksg.xcframework/Info.plist +13 -13
- package/libs/apple/libskshaper.xcframework/Info.plist +15 -15
- package/libs/apple/libskunicode_core.xcframework/Info.plist +9 -9
- package/libs/apple/libskunicode_libgrapheme.xcframework/Info.plist +13 -13
- package/libs/apple/libsvg.xcframework/Info.plist +15 -15
- package/package.json +1 -1
- package/react-native-skia.podspec +4 -2
- package/src/__tests__/snapshots/matrix4/camera-corner.png +0 -0
- package/src/__tests__/snapshots/matrix4/camera-offset.png +0 -0
- package/src/__tests__/snapshots/matrix4/camera-top-left-center.png +0 -0
- package/src/__tests__/snapshots/matrix4/camera-zoom-out.png +0 -0
- package/src/__tests__/snapshots/matrix4/full-rect.png +0 -0
- package/src/__tests__/snapshots/matrix4/rect.png +0 -0
- package/src/__tests__/snapshots/matrix4/scaled-rect.png +0 -0
- package/src/__tests__/snapshots/matrix4/test-perspective.png +0 -0
- package/src/__tests__/snapshots/matrix4/test-perspective2.png +0 -0
- package/src/dom/types/Drawings.ts +6 -0
- package/src/dom/types/NodeType.ts +2 -0
- package/src/renderer/__tests__/e2e/AdvancedImageFilters.spec.tsx +492 -0
- package/src/renderer/__tests__/e2e/Camera.spec.tsx +475 -0
- package/src/renderer/__tests__/e2e/LightingImageFilters.spec.tsx +1478 -0
- package/src/renderer/__tests__/e2e/Skottie.spec.tsx +440 -0
- package/src/renderer/__tests__/e2e/setup/skottie/basic_slots.json +1118 -0
- package/src/renderer/__tests__/e2e/setup/skottie/color-props.json +1 -0
- package/src/renderer/__tests__/e2e/setup/skottie/confetti.json +5899 -0
- package/src/renderer/__tests__/e2e/setup/skottie/drinks.json +43857 -0
- package/src/renderer/__tests__/e2e/setup/skottie/fingerprint.json +1 -0
- package/src/renderer/__tests__/e2e/setup/skottie/lego_loader.json +29540 -0
- package/src/renderer/__tests__/e2e/setup/skottie/new-drop.json +1 -0
- package/src/renderer/__tests__/e2e/setup/skottie/onboarding.json +1 -0
- package/src/renderer/__tests__/e2e/setup/skottie/text-layer.json +1 -0
- package/src/renderer/__tests__/setup.tsx +23 -0
- package/src/renderer/components/Skottie.tsx +8 -0
- package/src/renderer/components/index.ts +1 -0
- package/src/skia/__tests__/assets/Avenir-Heavy.ttf +0 -0
- package/src/skia/types/ImageFilter/ImageFilterFactory.ts +391 -21
- package/src/skia/types/Matrix4.ts +108 -2
- package/src/skia/types/Recorder.ts +2 -0
- package/src/skia/types/Skia.ts +2 -0
- package/src/skia/types/Skottie.ts +266 -0
- package/src/skia/types/index.ts +1 -0
- package/src/skia/web/JsiSkImageFilterFactory.ts +266 -31
- package/src/skia/web/JsiSkia.ts +2 -0
- package/src/skia/web/JsiSkottieAnimation.ts +259 -0
- package/src/skia/web/JsiSkottieFactory.ts +25 -0
- package/src/sksg/Elements.tsx +2 -0
- package/src/sksg/Recorder/Core.ts +3 -0
- package/src/sksg/Recorder/Player.ts +3 -0
- package/src/sksg/Recorder/ReanimatedRecorder.ts +6 -0
- package/src/sksg/Recorder/Recorder.ts +5 -0
- package/src/sksg/Recorder/Visitor.ts +3 -0
- package/src/sksg/Recorder/commands/Drawing.ts +7 -3
- package/src/sksg/Recorder/commands/ImageFilters.ts +1 -1
- package/cpp/skia/include/pathops/SkPathOps.h +0 -17
@@ -8,31 +8,31 @@
|
|
8
8
|
<key>BinaryPath</key>
|
9
9
|
<string>libsksg.a</string>
|
10
10
|
<key>LibraryIdentifier</key>
|
11
|
-
<string>
|
11
|
+
<string>tvos-arm64_arm64e</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>
|
17
|
+
<string>arm64e</string>
|
18
18
|
</array>
|
19
19
|
<key>SupportedPlatform</key>
|
20
|
-
<string>
|
20
|
+
<string>tvos</string>
|
21
21
|
</dict>
|
22
22
|
<dict>
|
23
23
|
<key>BinaryPath</key>
|
24
24
|
<string>libsksg.a</string>
|
25
25
|
<key>LibraryIdentifier</key>
|
26
|
-
<string>
|
26
|
+
<string>macos-arm64_x86_64</string>
|
27
27
|
<key>LibraryPath</key>
|
28
28
|
<string>libsksg.a</string>
|
29
29
|
<key>SupportedArchitectures</key>
|
30
30
|
<array>
|
31
31
|
<string>arm64</string>
|
32
|
-
<string>
|
32
|
+
<string>x86_64</string>
|
33
33
|
</array>
|
34
34
|
<key>SupportedPlatform</key>
|
35
|
-
<string>
|
35
|
+
<string>macos</string>
|
36
36
|
</dict>
|
37
37
|
<dict>
|
38
38
|
<key>BinaryPath</key>
|
@@ -56,34 +56,34 @@
|
|
56
56
|
<key>BinaryPath</key>
|
57
57
|
<string>libsksg.a</string>
|
58
58
|
<key>LibraryIdentifier</key>
|
59
|
-
<string>
|
59
|
+
<string>ios-arm64_arm64e</string>
|
60
60
|
<key>LibraryPath</key>
|
61
61
|
<string>libsksg.a</string>
|
62
62
|
<key>SupportedArchitectures</key>
|
63
63
|
<array>
|
64
64
|
<string>arm64</string>
|
65
65
|
<string>arm64e</string>
|
66
|
-
<string>x86_64</string>
|
67
66
|
</array>
|
68
67
|
<key>SupportedPlatform</key>
|
69
|
-
<string>
|
70
|
-
<key>SupportedPlatformVariant</key>
|
71
|
-
<string>simulator</string>
|
68
|
+
<string>ios</string>
|
72
69
|
</dict>
|
73
70
|
<dict>
|
74
71
|
<key>BinaryPath</key>
|
75
72
|
<string>libsksg.a</string>
|
76
73
|
<key>LibraryIdentifier</key>
|
77
|
-
<string>
|
74
|
+
<string>tvos-arm64_arm64e_x86_64-simulator</string>
|
78
75
|
<key>LibraryPath</key>
|
79
76
|
<string>libsksg.a</string>
|
80
77
|
<key>SupportedArchitectures</key>
|
81
78
|
<array>
|
82
79
|
<string>arm64</string>
|
83
80
|
<string>arm64e</string>
|
81
|
+
<string>x86_64</string>
|
84
82
|
</array>
|
85
83
|
<key>SupportedPlatform</key>
|
86
|
-
<string>
|
84
|
+
<string>tvos</string>
|
85
|
+
<key>SupportedPlatformVariant</key>
|
86
|
+
<string>simulator</string>
|
87
87
|
</dict>
|
88
88
|
</array>
|
89
89
|
<key>CFBundlePackageType</key>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<key>BinaryPath</key>
|
9
9
|
<string>libskshaper.a</string>
|
10
10
|
<key>LibraryIdentifier</key>
|
11
|
-
<string>
|
11
|
+
<string>tvos-arm64_arm64e_x86_64-simulator</string>
|
12
12
|
<key>LibraryPath</key>
|
13
13
|
<string>libskshaper.a</string>
|
14
14
|
<key>SupportedArchitectures</key>
|
@@ -18,7 +18,7 @@
|
|
18
18
|
<string>x86_64</string>
|
19
19
|
</array>
|
20
20
|
<key>SupportedPlatform</key>
|
21
|
-
<string>
|
21
|
+
<string>tvos</string>
|
22
22
|
<key>SupportedPlatformVariant</key>
|
23
23
|
<string>simulator</string>
|
24
24
|
</dict>
|
@@ -26,64 +26,64 @@
|
|
26
26
|
<key>BinaryPath</key>
|
27
27
|
<string>libskshaper.a</string>
|
28
28
|
<key>LibraryIdentifier</key>
|
29
|
-
<string>
|
29
|
+
<string>ios-arm64_arm64e_x86_64-simulator</string>
|
30
30
|
<key>LibraryPath</key>
|
31
31
|
<string>libskshaper.a</string>
|
32
32
|
<key>SupportedArchitectures</key>
|
33
33
|
<array>
|
34
34
|
<string>arm64</string>
|
35
35
|
<string>arm64e</string>
|
36
|
+
<string>x86_64</string>
|
36
37
|
</array>
|
37
38
|
<key>SupportedPlatform</key>
|
38
|
-
<string>
|
39
|
+
<string>ios</string>
|
40
|
+
<key>SupportedPlatformVariant</key>
|
41
|
+
<string>simulator</string>
|
39
42
|
</dict>
|
40
43
|
<dict>
|
41
44
|
<key>BinaryPath</key>
|
42
45
|
<string>libskshaper.a</string>
|
43
46
|
<key>LibraryIdentifier</key>
|
44
|
-
<string>
|
47
|
+
<string>tvos-arm64_arm64e</string>
|
45
48
|
<key>LibraryPath</key>
|
46
49
|
<string>libskshaper.a</string>
|
47
50
|
<key>SupportedArchitectures</key>
|
48
51
|
<array>
|
49
52
|
<string>arm64</string>
|
50
|
-
<string>
|
53
|
+
<string>arm64e</string>
|
51
54
|
</array>
|
52
55
|
<key>SupportedPlatform</key>
|
53
|
-
<string>
|
56
|
+
<string>tvos</string>
|
54
57
|
</dict>
|
55
58
|
<dict>
|
56
59
|
<key>BinaryPath</key>
|
57
60
|
<string>libskshaper.a</string>
|
58
61
|
<key>LibraryIdentifier</key>
|
59
|
-
<string>
|
62
|
+
<string>macos-arm64_x86_64</string>
|
60
63
|
<key>LibraryPath</key>
|
61
64
|
<string>libskshaper.a</string>
|
62
65
|
<key>SupportedArchitectures</key>
|
63
66
|
<array>
|
64
67
|
<string>arm64</string>
|
65
|
-
<string>
|
68
|
+
<string>x86_64</string>
|
66
69
|
</array>
|
67
70
|
<key>SupportedPlatform</key>
|
68
|
-
<string>
|
71
|
+
<string>macos</string>
|
69
72
|
</dict>
|
70
73
|
<dict>
|
71
74
|
<key>BinaryPath</key>
|
72
75
|
<string>libskshaper.a</string>
|
73
76
|
<key>LibraryIdentifier</key>
|
74
|
-
<string>
|
77
|
+
<string>ios-arm64_arm64e</string>
|
75
78
|
<key>LibraryPath</key>
|
76
79
|
<string>libskshaper.a</string>
|
77
80
|
<key>SupportedArchitectures</key>
|
78
81
|
<array>
|
79
82
|
<string>arm64</string>
|
80
83
|
<string>arm64e</string>
|
81
|
-
<string>x86_64</string>
|
82
84
|
</array>
|
83
85
|
<key>SupportedPlatform</key>
|
84
|
-
<string>
|
85
|
-
<key>SupportedPlatformVariant</key>
|
86
|
-
<string>simulator</string>
|
86
|
+
<string>ios</string>
|
87
87
|
</dict>
|
88
88
|
</array>
|
89
89
|
<key>CFBundlePackageType</key>
|
@@ -38,40 +38,40 @@
|
|
38
38
|
<key>BinaryPath</key>
|
39
39
|
<string>libskunicode_core.a</string>
|
40
40
|
<key>LibraryIdentifier</key>
|
41
|
-
<string>
|
41
|
+
<string>tvos-arm64_arm64e_x86_64-simulator</string>
|
42
42
|
<key>LibraryPath</key>
|
43
43
|
<string>libskunicode_core.a</string>
|
44
44
|
<key>SupportedArchitectures</key>
|
45
45
|
<array>
|
46
46
|
<string>arm64</string>
|
47
|
+
<string>arm64e</string>
|
47
48
|
<string>x86_64</string>
|
48
49
|
</array>
|
49
50
|
<key>SupportedPlatform</key>
|
50
|
-
<string>
|
51
|
+
<string>tvos</string>
|
52
|
+
<key>SupportedPlatformVariant</key>
|
53
|
+
<string>simulator</string>
|
51
54
|
</dict>
|
52
55
|
<dict>
|
53
56
|
<key>BinaryPath</key>
|
54
57
|
<string>libskunicode_core.a</string>
|
55
58
|
<key>LibraryIdentifier</key>
|
56
|
-
<string>
|
59
|
+
<string>macos-arm64_x86_64</string>
|
57
60
|
<key>LibraryPath</key>
|
58
61
|
<string>libskunicode_core.a</string>
|
59
62
|
<key>SupportedArchitectures</key>
|
60
63
|
<array>
|
61
64
|
<string>arm64</string>
|
62
|
-
<string>arm64e</string>
|
63
65
|
<string>x86_64</string>
|
64
66
|
</array>
|
65
67
|
<key>SupportedPlatform</key>
|
66
|
-
<string>
|
67
|
-
<key>SupportedPlatformVariant</key>
|
68
|
-
<string>simulator</string>
|
68
|
+
<string>macos</string>
|
69
69
|
</dict>
|
70
70
|
<dict>
|
71
71
|
<key>BinaryPath</key>
|
72
72
|
<string>libskunicode_core.a</string>
|
73
73
|
<key>LibraryIdentifier</key>
|
74
|
-
<string>
|
74
|
+
<string>ios-arm64_arm64e_x86_64-simulator</string>
|
75
75
|
<key>LibraryPath</key>
|
76
76
|
<string>libskunicode_core.a</string>
|
77
77
|
<key>SupportedArchitectures</key>
|
@@ -81,7 +81,7 @@
|
|
81
81
|
<string>x86_64</string>
|
82
82
|
</array>
|
83
83
|
<key>SupportedPlatform</key>
|
84
|
-
<string>
|
84
|
+
<string>ios</string>
|
85
85
|
<key>SupportedPlatformVariant</key>
|
86
86
|
<string>simulator</string>
|
87
87
|
</dict>
|
@@ -8,67 +8,67 @@
|
|
8
8
|
<key>BinaryPath</key>
|
9
9
|
<string>libskunicode_libgrapheme.a</string>
|
10
10
|
<key>LibraryIdentifier</key>
|
11
|
-
<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>
|
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
|
-
<string>
|
21
|
+
<string>tvos</string>
|
22
|
+
<key>SupportedPlatformVariant</key>
|
23
|
+
<string>simulator</string>
|
21
24
|
</dict>
|
22
25
|
<dict>
|
23
26
|
<key>BinaryPath</key>
|
24
27
|
<string>libskunicode_libgrapheme.a</string>
|
25
28
|
<key>LibraryIdentifier</key>
|
26
|
-
<string>
|
29
|
+
<string>ios-arm64_arm64e_x86_64-simulator</string>
|
27
30
|
<key>LibraryPath</key>
|
28
31
|
<string>libskunicode_libgrapheme.a</string>
|
29
32
|
<key>SupportedArchitectures</key>
|
30
33
|
<array>
|
31
34
|
<string>arm64</string>
|
35
|
+
<string>arm64e</string>
|
32
36
|
<string>x86_64</string>
|
33
37
|
</array>
|
34
38
|
<key>SupportedPlatform</key>
|
35
|
-
<string>
|
39
|
+
<string>ios</string>
|
40
|
+
<key>SupportedPlatformVariant</key>
|
41
|
+
<string>simulator</string>
|
36
42
|
</dict>
|
37
43
|
<dict>
|
38
44
|
<key>BinaryPath</key>
|
39
45
|
<string>libskunicode_libgrapheme.a</string>
|
40
46
|
<key>LibraryIdentifier</key>
|
41
|
-
<string>ios-
|
47
|
+
<string>ios-arm64_arm64e</string>
|
42
48
|
<key>LibraryPath</key>
|
43
49
|
<string>libskunicode_libgrapheme.a</string>
|
44
50
|
<key>SupportedArchitectures</key>
|
45
51
|
<array>
|
46
52
|
<string>arm64</string>
|
47
53
|
<string>arm64e</string>
|
48
|
-
<string>x86_64</string>
|
49
54
|
</array>
|
50
55
|
<key>SupportedPlatform</key>
|
51
56
|
<string>ios</string>
|
52
|
-
<key>SupportedPlatformVariant</key>
|
53
|
-
<string>simulator</string>
|
54
57
|
</dict>
|
55
58
|
<dict>
|
56
59
|
<key>BinaryPath</key>
|
57
60
|
<string>libskunicode_libgrapheme.a</string>
|
58
61
|
<key>LibraryIdentifier</key>
|
59
|
-
<string>
|
62
|
+
<string>macos-arm64_x86_64</string>
|
60
63
|
<key>LibraryPath</key>
|
61
64
|
<string>libskunicode_libgrapheme.a</string>
|
62
65
|
<key>SupportedArchitectures</key>
|
63
66
|
<array>
|
64
67
|
<string>arm64</string>
|
65
|
-
<string>arm64e</string>
|
66
68
|
<string>x86_64</string>
|
67
69
|
</array>
|
68
70
|
<key>SupportedPlatform</key>
|
69
|
-
<string>
|
70
|
-
<key>SupportedPlatformVariant</key>
|
71
|
-
<string>simulator</string>
|
71
|
+
<string>macos</string>
|
72
72
|
</dict>
|
73
73
|
<dict>
|
74
74
|
<key>BinaryPath</key>
|
@@ -8,37 +8,40 @@
|
|
8
8
|
<key>BinaryPath</key>
|
9
9
|
<string>libsvg.a</string>
|
10
10
|
<key>LibraryIdentifier</key>
|
11
|
-
<string>
|
11
|
+
<string>tvos-arm64_arm64e_x86_64-simulator</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>
|
18
19
|
</array>
|
19
20
|
<key>SupportedPlatform</key>
|
20
|
-
<string>
|
21
|
+
<string>tvos</string>
|
22
|
+
<key>SupportedPlatformVariant</key>
|
23
|
+
<string>simulator</string>
|
21
24
|
</dict>
|
22
25
|
<dict>
|
23
26
|
<key>BinaryPath</key>
|
24
27
|
<string>libsvg.a</string>
|
25
28
|
<key>LibraryIdentifier</key>
|
26
|
-
<string>
|
29
|
+
<string>ios-arm64_arm64e</string>
|
27
30
|
<key>LibraryPath</key>
|
28
31
|
<string>libsvg.a</string>
|
29
32
|
<key>SupportedArchitectures</key>
|
30
33
|
<array>
|
31
34
|
<string>arm64</string>
|
32
|
-
<string>
|
35
|
+
<string>arm64e</string>
|
33
36
|
</array>
|
34
37
|
<key>SupportedPlatform</key>
|
35
|
-
<string>
|
38
|
+
<string>ios</string>
|
36
39
|
</dict>
|
37
40
|
<dict>
|
38
41
|
<key>BinaryPath</key>
|
39
42
|
<string>libsvg.a</string>
|
40
43
|
<key>LibraryIdentifier</key>
|
41
|
-
<string>
|
44
|
+
<string>ios-arm64_arm64e_x86_64-simulator</string>
|
42
45
|
<key>LibraryPath</key>
|
43
46
|
<string>libsvg.a</string>
|
44
47
|
<key>SupportedArchitectures</key>
|
@@ -48,7 +51,7 @@
|
|
48
51
|
<string>x86_64</string>
|
49
52
|
</array>
|
50
53
|
<key>SupportedPlatform</key>
|
51
|
-
<string>
|
54
|
+
<string>ios</string>
|
52
55
|
<key>SupportedPlatformVariant</key>
|
53
56
|
<string>simulator</string>
|
54
57
|
</dict>
|
@@ -56,34 +59,31 @@
|
|
56
59
|
<key>BinaryPath</key>
|
57
60
|
<string>libsvg.a</string>
|
58
61
|
<key>LibraryIdentifier</key>
|
59
|
-
<string>
|
62
|
+
<string>tvos-arm64_arm64e</string>
|
60
63
|
<key>LibraryPath</key>
|
61
64
|
<string>libsvg.a</string>
|
62
65
|
<key>SupportedArchitectures</key>
|
63
66
|
<array>
|
64
67
|
<string>arm64</string>
|
65
68
|
<string>arm64e</string>
|
66
|
-
<string>x86_64</string>
|
67
69
|
</array>
|
68
70
|
<key>SupportedPlatform</key>
|
69
|
-
<string>
|
70
|
-
<key>SupportedPlatformVariant</key>
|
71
|
-
<string>simulator</string>
|
71
|
+
<string>tvos</string>
|
72
72
|
</dict>
|
73
73
|
<dict>
|
74
74
|
<key>BinaryPath</key>
|
75
75
|
<string>libsvg.a</string>
|
76
76
|
<key>LibraryIdentifier</key>
|
77
|
-
<string>
|
77
|
+
<string>macos-arm64_x86_64</string>
|
78
78
|
<key>LibraryPath</key>
|
79
79
|
<string>libsvg.a</string>
|
80
80
|
<key>SupportedArchitectures</key>
|
81
81
|
<array>
|
82
82
|
<string>arm64</string>
|
83
|
-
<string>
|
83
|
+
<string>x86_64</string>
|
84
84
|
</array>
|
85
85
|
<key>SupportedPlatform</key>
|
86
|
-
<string>
|
86
|
+
<string>macos</string>
|
87
87
|
</dict>
|
88
88
|
</array>
|
89
89
|
<key>CFBundlePackageType</key>
|
package/package.json
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
"setup-skia-web": "scripts/setup-canvaskit.js"
|
9
9
|
},
|
10
10
|
"title": "React Native Skia",
|
11
|
-
"version": "2.0
|
11
|
+
"version": "2.1.0",
|
12
12
|
"description": "High-performance React Native Graphics using Skia",
|
13
13
|
"main": "lib/module/index.js",
|
14
14
|
"react-native": "src/index.ts",
|
@@ -49,8 +49,8 @@ end
|
|
49
49
|
|
50
50
|
# Set preprocessor definitions based on GRAPHITE flag
|
51
51
|
preprocessor_defs = use_graphite ?
|
52
|
-
'$(inherited) SK_GRAPHITE=1 SK_IMAGE_READ_PIXELS_DISABLE_LEGACY_API=1' :
|
53
|
-
'$(inherited) SK_METAL=1 SK_GANESH=1 SK_IMAGE_READ_PIXELS_DISABLE_LEGACY_API=1'
|
52
|
+
'$(inherited) SK_GRAPHITE=1 SK_IMAGE_READ_PIXELS_DISABLE_LEGACY_API=1 SK_DISABLE_LEGACY_SHAPER_FACTORY=1' :
|
53
|
+
'$(inherited) SK_METAL=1 SK_GANESH=1 SK_IMAGE_READ_PIXELS_DISABLE_LEGACY_API=1 SK_DISABLE_LEGACY_SHAPER_FACTORY=1'
|
54
54
|
|
55
55
|
# Define base frameworks
|
56
56
|
base_frameworks = ['libs/apple/libskia.xcframework',
|
@@ -59,6 +59,8 @@ base_frameworks = ['libs/apple/libskia.xcframework',
|
|
59
59
|
'libs/apple/libskparagraph.xcframework',
|
60
60
|
'libs/apple/libskunicode_core.xcframework',
|
61
61
|
'libs/apple/libskunicode_libgrapheme.xcframework',
|
62
|
+
'libs/apple/libskottie.xcframework',
|
63
|
+
'libs/apple/libsksg.xcframework',
|
62
64
|
'libs/apple/libpathops.xcframework',]
|
63
65
|
|
64
66
|
Pod::Spec.new do |s|
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -18,6 +18,7 @@ import type {
|
|
18
18
|
SkRSXform,
|
19
19
|
SkColor,
|
20
20
|
SamplingOptions,
|
21
|
+
SkSkottieAnimation,
|
21
22
|
} from "../../skia/types";
|
22
23
|
|
23
24
|
import type {
|
@@ -106,6 +107,11 @@ export interface ImageSVGProps extends DrawingNodeProps {
|
|
106
107
|
rect?: SkRect;
|
107
108
|
}
|
108
109
|
|
110
|
+
export interface SkottieProps extends DrawingNodeProps {
|
111
|
+
animation: SkSkottieAnimation;
|
112
|
+
frame: number;
|
113
|
+
}
|
114
|
+
|
109
115
|
export interface PictureProps extends DrawingNodeProps {
|
110
116
|
picture: SkPicture;
|
111
117
|
}
|