@shopify/react-native-skia 0.1.160 → 0.1.162
Sign up to get free protection for your applications and to get access to all the features.
- package/android/CMakeLists.txt +9 -9
- package/cpp/rnskia/RNSkDomView.cpp +1 -2
- package/cpp/rnskia/dom/nodes/JsiColorFilterNodes.h +1 -1
- package/libs/android/arm64-v8a/libskottie.a +0 -0
- package/libs/android/arm64-v8a/libskshaper.a +0 -0
- package/libs/android/armeabi-v7a/libskottie.a +0 -0
- package/libs/android/armeabi-v7a/libskshaper.a +0 -0
- package/libs/android/x86/libskottie.a +0 -0
- package/libs/android/x86/libskshaper.a +0 -0
- package/libs/android/x86_64/libskottie.a +0 -0
- package/libs/android/x86_64/libskshaper.a +0 -0
- package/libs/ios/libskia.xcframework/Info.plist +5 -5
- package/libs/ios/libskia.xcframework/ios-arm64_arm64e/libskia.a +0 -0
- package/libs/ios/libskia.xcframework/ios-arm64_arm64e_x86_64-simulator/libskia.a +0 -0
- package/libs/ios/libskottie.xcframework/ios-arm64_arm64e/libskottie.a +0 -0
- package/libs/ios/libskottie.xcframework/ios-arm64_arm64e_x86_64-simulator/libskottie.a +0 -0
- package/libs/ios/libsksg.xcframework/ios-arm64_arm64e/libsksg.a +0 -0
- package/libs/ios/libsksg.xcframework/ios-arm64_arm64e_x86_64-simulator/libsksg.a +0 -0
- package/libs/ios/libskshaper.xcframework/Info.plist +5 -5
- package/libs/ios/libskshaper.xcframework/ios-arm64_arm64e/libskshaper.a +0 -0
- package/libs/ios/libskshaper.xcframework/ios-arm64_arm64e_x86_64-simulator/libskshaper.a +0 -0
- package/libs/ios/libsvg.xcframework/ios-arm64_arm64e/libsvg.a +0 -0
- package/libs/ios/libsvg.xcframework/ios-arm64_arm64e_x86_64-simulator/libsvg.a +0 -0
- package/package.json +9 -4
- package/react-native-skia.podspec +2 -2
- package/libs/android/arm64-v8a/libskparagraph.a +0 -0
- package/libs/android/arm64-v8a/libskunicode.a +0 -0
- package/libs/android/armeabi-v7a/libskparagraph.a +0 -0
- package/libs/android/armeabi-v7a/libskunicode.a +0 -0
- package/libs/android/x86/libskparagraph.a +0 -0
- package/libs/android/x86/libskunicode.a +0 -0
- package/libs/android/x86_64/libskparagraph.a +0 -0
- package/libs/android/x86_64/libskunicode.a +0 -0
- package/libs/ios/libskparagraph.xcframework/Info.plist +0 -42
- package/libs/ios/libskparagraph.xcframework/ios-arm64_arm64e/libskparagraph.a +0 -0
- package/libs/ios/libskparagraph.xcframework/ios-arm64_arm64e_x86_64-simulator/libskparagraph.a +0 -0
- package/libs/ios/libskunicode.xcframework/Info.plist +0 -42
- package/libs/ios/libskunicode.xcframework/ios-arm64_arm64e/libskunicode.a +0 -0
- package/libs/ios/libskunicode.xcframework/ios-arm64_arm64e_x86_64-simulator/libskunicode.a +0 -0
package/android/CMakeLists.txt
CHANGED
@@ -9,8 +9,8 @@ set (PACKAGE_NAME "reactskia")
|
|
9
9
|
set (SKIA_LIB "skia")
|
10
10
|
set (SKIA_SVG_LIB "svg")
|
11
11
|
set (SKIA_SKSHAPER_LIB "skshaper")
|
12
|
-
set (SKIA_SKPARAGRAPH_LIB "skparagraph")
|
13
|
-
set (SKIA_SKUNICODE_LIB "skunicode")
|
12
|
+
#set (SKIA_SKPARAGRAPH_LIB "skparagraph")
|
13
|
+
#set (SKIA_SKUNICODE_LIB "skunicode")
|
14
14
|
|
15
15
|
set(build_DIR ${CMAKE_SOURCE_DIR}/build)
|
16
16
|
file(GLOB LIBRN_DIR "${PREBUILT_DIR}/${ANDROID_ABI}")
|
@@ -72,7 +72,7 @@ target_include_directories(
|
|
72
72
|
cpp/skia/include/utils/
|
73
73
|
cpp/skia/include/pathops/
|
74
74
|
cpp/skia/modules/
|
75
|
-
cpp/skia/modules/skparagraph/include/
|
75
|
+
#cpp/skia/modules/skparagraph/include/
|
76
76
|
cpp/skia/include/
|
77
77
|
cpp/skia
|
78
78
|
|
@@ -103,11 +103,11 @@ set_property(TARGET svg PROPERTY IMPORTED_LOCATION "${SKIA_LIBS_PATH}/libsvg.a")
|
|
103
103
|
add_library(skshaper STATIC IMPORTED)
|
104
104
|
set_property(TARGET skshaper PROPERTY IMPORTED_LOCATION "${SKIA_LIBS_PATH}/libskshaper.a")
|
105
105
|
|
106
|
-
add_library(skparagraph STATIC IMPORTED)
|
107
|
-
set_property(TARGET skparagraph PROPERTY IMPORTED_LOCATION "${SKIA_LIBS_PATH}/libskparagraph.a")
|
106
|
+
#add_library(skparagraph STATIC IMPORTED)
|
107
|
+
#set_property(TARGET skparagraph PROPERTY IMPORTED_LOCATION "${SKIA_LIBS_PATH}/libskparagraph.a")
|
108
108
|
|
109
|
-
add_library(skunicode STATIC IMPORTED)
|
110
|
-
set_property(TARGET skunicode PROPERTY IMPORTED_LOCATION "${SKIA_LIBS_PATH}/libskunicode.a")
|
109
|
+
#add_library(skunicode STATIC IMPORTED)
|
110
|
+
#set_property(TARGET skunicode PROPERTY IMPORTED_LOCATION "${SKIA_LIBS_PATH}/libskunicode.a")
|
111
111
|
|
112
112
|
|
113
113
|
find_library(
|
@@ -169,8 +169,8 @@ target_link_libraries(
|
|
169
169
|
${TURBOMODULES_LIB}
|
170
170
|
${SKIA_SVG_LIB}
|
171
171
|
${SKIA_SKSHAPER_LIB}
|
172
|
-
|
173
|
-
|
172
|
+
#${SKIA_SKPARAGRAPH_LIB}
|
173
|
+
#${SKIA_SKUNICODE_LIB}
|
174
174
|
${SKIA_LIB}
|
175
175
|
-ljnigraphics
|
176
176
|
-lGLESv2
|
@@ -86,8 +86,7 @@ void RNSkDomRenderer::renderCanvas(SkCanvas *canvas, float scaledWidth,
|
|
86
86
|
if (_drawingContext == nullptr) {
|
87
87
|
auto paint = std::make_shared<SkPaint>();
|
88
88
|
paint->setAntiAlias(true);
|
89
|
-
_drawingContext =
|
90
|
-
std::make_shared<DrawingContext>(paint, 1.0f);
|
89
|
+
_drawingContext = std::make_shared<DrawingContext>(paint, 1.0f);
|
91
90
|
|
92
91
|
_drawingContext->setRequestRedraw([weakSelf = weak_from_this()]() {
|
93
92
|
auto self = weakSelf.lock();
|
@@ -44,7 +44,7 @@ protected:
|
|
44
44
|
if (paint->getColorFilter() != nullptr &&
|
45
45
|
paint->getColorFilter() != getCurrent().get()) {
|
46
46
|
paint->setColorFilter(
|
47
|
-
SkColorFilters::Compose(paint->refColorFilter()
|
47
|
+
SkColorFilters::Compose(ColorFilter, paint->refColorFilter()));
|
48
48
|
} else {
|
49
49
|
paint->setColorFilter(ColorFilter);
|
50
50
|
}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -6,32 +6,32 @@
|
|
6
6
|
<array>
|
7
7
|
<dict>
|
8
8
|
<key>LibraryIdentifier</key>
|
9
|
-
<string>ios-
|
9
|
+
<string>ios-arm64_arm64e_x86_64-simulator</string>
|
10
10
|
<key>LibraryPath</key>
|
11
11
|
<string>libskia.a</string>
|
12
12
|
<key>SupportedArchitectures</key>
|
13
13
|
<array>
|
14
14
|
<string>arm64</string>
|
15
15
|
<string>arm64e</string>
|
16
|
+
<string>x86_64</string>
|
16
17
|
</array>
|
17
18
|
<key>SupportedPlatform</key>
|
18
19
|
<string>ios</string>
|
20
|
+
<key>SupportedPlatformVariant</key>
|
21
|
+
<string>simulator</string>
|
19
22
|
</dict>
|
20
23
|
<dict>
|
21
24
|
<key>LibraryIdentifier</key>
|
22
|
-
<string>ios-
|
25
|
+
<string>ios-arm64_arm64e</string>
|
23
26
|
<key>LibraryPath</key>
|
24
27
|
<string>libskia.a</string>
|
25
28
|
<key>SupportedArchitectures</key>
|
26
29
|
<array>
|
27
30
|
<string>arm64</string>
|
28
31
|
<string>arm64e</string>
|
29
|
-
<string>x86_64</string>
|
30
32
|
</array>
|
31
33
|
<key>SupportedPlatform</key>
|
32
34
|
<string>ios</string>
|
33
|
-
<key>SupportedPlatformVariant</key>
|
34
|
-
<string>simulator</string>
|
35
35
|
</dict>
|
36
36
|
</array>
|
37
37
|
<key>CFBundlePackageType</key>
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -6,32 +6,32 @@
|
|
6
6
|
<array>
|
7
7
|
<dict>
|
8
8
|
<key>LibraryIdentifier</key>
|
9
|
-
<string>ios-
|
9
|
+
<string>ios-arm64_arm64e_x86_64-simulator</string>
|
10
10
|
<key>LibraryPath</key>
|
11
11
|
<string>libskshaper.a</string>
|
12
12
|
<key>SupportedArchitectures</key>
|
13
13
|
<array>
|
14
14
|
<string>arm64</string>
|
15
15
|
<string>arm64e</string>
|
16
|
+
<string>x86_64</string>
|
16
17
|
</array>
|
17
18
|
<key>SupportedPlatform</key>
|
18
19
|
<string>ios</string>
|
20
|
+
<key>SupportedPlatformVariant</key>
|
21
|
+
<string>simulator</string>
|
19
22
|
</dict>
|
20
23
|
<dict>
|
21
24
|
<key>LibraryIdentifier</key>
|
22
|
-
<string>ios-
|
25
|
+
<string>ios-arm64_arm64e</string>
|
23
26
|
<key>LibraryPath</key>
|
24
27
|
<string>libskshaper.a</string>
|
25
28
|
<key>SupportedArchitectures</key>
|
26
29
|
<array>
|
27
30
|
<string>arm64</string>
|
28
31
|
<string>arm64e</string>
|
29
|
-
<string>x86_64</string>
|
30
32
|
</array>
|
31
33
|
<key>SupportedPlatform</key>
|
32
34
|
<string>ios</string>
|
33
|
-
<key>SupportedPlatformVariant</key>
|
34
|
-
<string>simulator</string>
|
35
35
|
</dict>
|
36
36
|
</array>
|
37
37
|
<key>CFBundlePackageType</key>
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
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": "0.1.
|
10
|
+
"version": "0.1.162",
|
11
11
|
"description": "High-performance React Native Graphics using Skia",
|
12
12
|
"main": "lib/module/index.js",
|
13
13
|
"files": [
|
@@ -32,8 +32,6 @@
|
|
32
32
|
"libs/ios/libsvg.xcframework",
|
33
33
|
"libs/ios/libskottie.xcframework",
|
34
34
|
"libs/ios/libsksg.xcframework",
|
35
|
-
"libs/ios/libskparagraph.xcframework",
|
36
|
-
"libs/ios/libskunicode.xcframework",
|
37
35
|
"react-native-skia.podspec",
|
38
36
|
"scripts/install-npm.js",
|
39
37
|
"scripts/setup-canvaskit.js",
|
@@ -43,6 +41,7 @@
|
|
43
41
|
"tsc": "tsc --noEmit",
|
44
42
|
"lint": "eslint . --ext .ts,.tsx --max-warnings 0 --cache",
|
45
43
|
"test": "jest",
|
44
|
+
"e2e": "E2E=true yarn test -i e2e",
|
46
45
|
"postinstall": "node scripts/install-npm.js",
|
47
46
|
"build": "bob build"
|
48
47
|
},
|
@@ -94,8 +93,14 @@
|
|
94
93
|
"typescript": "4.8.3"
|
95
94
|
},
|
96
95
|
"dependencies": {
|
96
|
+
"@types/pixelmatch": "^5.2.4",
|
97
|
+
"@types/pngjs": "^6.0.1",
|
98
|
+
"@types/ws": "^8.5.3",
|
97
99
|
"canvaskit-wasm": "0.36.1",
|
98
|
-
"
|
100
|
+
"pixelmatch": "^5.3.0",
|
101
|
+
"pngjs": "^6.0.0",
|
102
|
+
"react-reconciler": "^0.27.0",
|
103
|
+
"ws": "^8.11.0"
|
99
104
|
},
|
100
105
|
"eslintIgnore": [
|
101
106
|
"node_modules/",
|
@@ -33,8 +33,8 @@ Pod::Spec.new do |s|
|
|
33
33
|
'libs/ios/libskia.xcframework',
|
34
34
|
'libs/ios/libsvg.xcframework',
|
35
35
|
'libs/ios/libskshaper.xcframework',
|
36
|
-
'libs/ios/libskparagraph.xcframework',
|
37
|
-
'libs/ios/libskunicode.xcframework',
|
36
|
+
#'libs/ios/libskparagraph.xcframework',
|
37
|
+
#'libs/ios/libskunicode.xcframework',
|
38
38
|
]
|
39
39
|
|
40
40
|
# All iOS cpp/h files
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,42 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
-
<plist version="1.0">
|
4
|
-
<dict>
|
5
|
-
<key>AvailableLibraries</key>
|
6
|
-
<array>
|
7
|
-
<dict>
|
8
|
-
<key>LibraryIdentifier</key>
|
9
|
-
<string>ios-arm64_arm64e_x86_64-simulator</string>
|
10
|
-
<key>LibraryPath</key>
|
11
|
-
<string>libskparagraph.a</string>
|
12
|
-
<key>SupportedArchitectures</key>
|
13
|
-
<array>
|
14
|
-
<string>arm64</string>
|
15
|
-
<string>arm64e</string>
|
16
|
-
<string>x86_64</string>
|
17
|
-
</array>
|
18
|
-
<key>SupportedPlatform</key>
|
19
|
-
<string>ios</string>
|
20
|
-
<key>SupportedPlatformVariant</key>
|
21
|
-
<string>simulator</string>
|
22
|
-
</dict>
|
23
|
-
<dict>
|
24
|
-
<key>LibraryIdentifier</key>
|
25
|
-
<string>ios-arm64_arm64e</string>
|
26
|
-
<key>LibraryPath</key>
|
27
|
-
<string>libskparagraph.a</string>
|
28
|
-
<key>SupportedArchitectures</key>
|
29
|
-
<array>
|
30
|
-
<string>arm64</string>
|
31
|
-
<string>arm64e</string>
|
32
|
-
</array>
|
33
|
-
<key>SupportedPlatform</key>
|
34
|
-
<string>ios</string>
|
35
|
-
</dict>
|
36
|
-
</array>
|
37
|
-
<key>CFBundlePackageType</key>
|
38
|
-
<string>XFWK</string>
|
39
|
-
<key>XCFrameworkFormatVersion</key>
|
40
|
-
<string>1.0</string>
|
41
|
-
</dict>
|
42
|
-
</plist>
|
Binary file
|
package/libs/ios/libskparagraph.xcframework/ios-arm64_arm64e_x86_64-simulator/libskparagraph.a
DELETED
Binary file
|
@@ -1,42 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
-
<plist version="1.0">
|
4
|
-
<dict>
|
5
|
-
<key>AvailableLibraries</key>
|
6
|
-
<array>
|
7
|
-
<dict>
|
8
|
-
<key>LibraryIdentifier</key>
|
9
|
-
<string>ios-arm64_arm64e</string>
|
10
|
-
<key>LibraryPath</key>
|
11
|
-
<string>libskunicode.a</string>
|
12
|
-
<key>SupportedArchitectures</key>
|
13
|
-
<array>
|
14
|
-
<string>arm64</string>
|
15
|
-
<string>arm64e</string>
|
16
|
-
</array>
|
17
|
-
<key>SupportedPlatform</key>
|
18
|
-
<string>ios</string>
|
19
|
-
</dict>
|
20
|
-
<dict>
|
21
|
-
<key>LibraryIdentifier</key>
|
22
|
-
<string>ios-arm64_arm64e_x86_64-simulator</string>
|
23
|
-
<key>LibraryPath</key>
|
24
|
-
<string>libskunicode.a</string>
|
25
|
-
<key>SupportedArchitectures</key>
|
26
|
-
<array>
|
27
|
-
<string>arm64</string>
|
28
|
-
<string>arm64e</string>
|
29
|
-
<string>x86_64</string>
|
30
|
-
</array>
|
31
|
-
<key>SupportedPlatform</key>
|
32
|
-
<string>ios</string>
|
33
|
-
<key>SupportedPlatformVariant</key>
|
34
|
-
<string>simulator</string>
|
35
|
-
</dict>
|
36
|
-
</array>
|
37
|
-
<key>CFBundlePackageType</key>
|
38
|
-
<string>XFWK</string>
|
39
|
-
<key>XCFrameworkFormatVersion</key>
|
40
|
-
<string>1.0</string>
|
41
|
-
</dict>
|
42
|
-
</plist>
|
Binary file
|