@shopify/react-native-skia 1.4.1 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. package/android/cpp/jni/JniSkiaManager.cpp +1 -1
  2. package/android/cpp/rnskia-android/GrAHardwareBufferUtils.cpp +3 -3
  3. package/android/cpp/rnskia-android/GrAHardwareBufferUtils.h +2 -2
  4. package/android/cpp/rnskia-android/SkiaOpenGLHelper.h +2 -2
  5. package/android/cpp/rnskia-android/SkiaOpenGLSurfaceFactory.h +3 -3
  6. package/cpp/api/JsiSkSurface.h +1 -1
  7. package/ios/RNSkia-iOS/RNSkMetalCanvasProvider.h +1 -1
  8. package/ios/RNSkia-iOS/RNSkMetalCanvasProvider.mm +2 -2
  9. package/ios/RNSkia-iOS/SkiaCVPixelBufferUtils.h +2 -2
  10. package/ios/RNSkia-iOS/SkiaCVPixelBufferUtils.mm +1 -1
  11. package/ios/RNSkia-iOS/SkiaMetalSurfaceFactory.h +1 -1
  12. package/ios/RNSkia-iOS/SkiaMetalSurfaceFactory.mm +2 -2
  13. package/libs/ios/libskunicode_core.xcframework/Info.plist +46 -0
  14. package/libs/ios/libskunicode_core.xcframework/ios-arm64_arm64e/libskunicode_core.a +0 -0
  15. package/libs/ios/libskunicode_core.xcframework/ios-arm64_arm64e_x86_64-simulator/libskunicode_core.a +0 -0
  16. package/libs/ios/libskunicode_libgrapheme.xcframework/Info.plist +46 -0
  17. package/libs/ios/libskunicode_libgrapheme.xcframework/ios-arm64_arm64e/libskunicode_libgrapheme.a +0 -0
  18. package/libs/ios/libskunicode_libgrapheme.xcframework/ios-arm64_arm64e_x86_64-simulator/libskunicode_libgrapheme.a +0 -0
  19. package/package.json +2 -8
  20. package/react-native-skia.podspec +5 -4
  21. package/cpp/skia/include/gpu/GrBackendSemaphore.h +0 -8
  22. package/cpp/skia/include/gpu/GrBackendSurface.h +0 -8
  23. package/cpp/skia/include/gpu/GrContextOptions.h +0 -8
  24. package/cpp/skia/include/gpu/GrContextThreadSafeProxy.h +0 -8
  25. package/cpp/skia/include/gpu/GrDirectContext.h +0 -8
  26. package/cpp/skia/include/gpu/GrDriverBugWorkarounds.h +0 -8
  27. package/cpp/skia/include/gpu/GrDriverBugWorkaroundsAutogen.h +0 -6
  28. package/cpp/skia/include/gpu/GrRecordingContext.h +0 -8
  29. package/cpp/skia/include/gpu/GrTypes.h +0 -8
  30. package/cpp/skia/include/gpu/GrYUVABackendTextures.h +0 -8
  31. package/cpp/skia/include/gpu/d3d/GrD3DBackendContext.h +0 -8
  32. package/cpp/skia/include/gpu/d3d/GrD3DTypes.h +0 -8
  33. package/cpp/skia/include/gpu/gl/GrGLAssembleHelpers.h +0 -8
  34. package/cpp/skia/include/gpu/gl/GrGLAssembleInterface.h +0 -8
  35. package/cpp/skia/include/gpu/gl/GrGLConfig.h +0 -8
  36. package/cpp/skia/include/gpu/gl/GrGLExtensions.h +0 -8
  37. package/cpp/skia/include/gpu/gl/GrGLFunctions.h +0 -8
  38. package/cpp/skia/include/gpu/gl/GrGLInterface.h +0 -8
  39. package/cpp/skia/include/gpu/gl/GrGLTypes.h +0 -8
  40. package/cpp/skia/include/gpu/mock/GrMockTypes.h +0 -8
  41. package/cpp/skia/include/gpu/vk/GrVkTypes.h +0 -8
@@ -9,7 +9,7 @@
9
9
 
10
10
  namespace {
11
11
 
12
- #ifdef REACT_NATIVE_VERSION >= 75
12
+ #if REACT_NATIVE_VERSION >= 75
13
13
  using CallFuncType = facebook::react::CallFunc;
14
14
  #else
15
15
  using CallFuncType = std::function<void()>;
@@ -11,10 +11,10 @@
11
11
  #define GL_GLEXT_PROTOTYPES
12
12
  #define EGL_EGLEXT_PROTOTYPES
13
13
 
14
- #include "include/gpu/GrBackendSurface.h"
15
- #include "include/gpu/GrDirectContext.h"
14
+ #include "include/gpu/ganesh/GrBackendSurface.h"
15
+ #include "include/gpu/ganesh/GrDirectContext.h"
16
16
  #include "include/gpu/ganesh/gl/GrGLBackendSurface.h"
17
- #include "include/gpu/gl/GrGLTypes.h"
17
+ #include "include/gpu/ganesh/gl/GrGLTypes.h"
18
18
  #include "src/gpu/ganesh/gl/GrGLDefines.h"
19
19
  // #include "src/gpu/ganesh/GrDirectContextPriv.h"
20
20
  // #include "src/gpu/ganesh/gl/GrGLUtil.h"
@@ -6,8 +6,8 @@
6
6
 
7
7
  #if __ANDROID_API__ >= 26
8
8
 
9
- #include "include/gpu/GrBackendSurface.h"
10
- #include "include/gpu/GrTypes.h"
9
+ #include "include/gpu/ganesh/GrBackendSurface.h"
10
+ #include "include/gpu/ganesh/GrTypes.h"
11
11
 
12
12
  class GrDirectContext;
13
13
 
@@ -15,9 +15,9 @@
15
15
  #include "include/core/SkCanvas.h"
16
16
  #include "include/core/SkColorSpace.h"
17
17
  #include "include/core/SkSurface.h"
18
- #include "include/gpu/GrDirectContext.h"
18
+ #include "include/gpu/ganesh/GrDirectContext.h"
19
19
  #include "include/gpu/ganesh/gl/GrGLDirectContext.h"
20
- #include "include/gpu/gl/GrGLInterface.h"
20
+ #include "include/gpu/ganesh/gl/GrGLInterface.h"
21
21
 
22
22
  #pragma clang diagnostic pop
23
23
 
@@ -22,10 +22,10 @@
22
22
  #include "include/core/SkCanvas.h"
23
23
  #include "include/core/SkColorSpace.h"
24
24
  #include "include/core/SkSurface.h"
25
- #include "include/gpu/GrBackendSurface.h"
26
- #include "include/gpu/GrDirectContext.h"
25
+ #include "include/gpu/ganesh/GrBackendSurface.h"
26
+ #include "include/gpu/ganesh/GrDirectContext.h"
27
27
  #include "include/gpu/ganesh/SkSurfaceGanesh.h"
28
- #include "include/gpu/gl/GrGLInterface.h"
28
+ #include "include/gpu/ganesh/gl/GrGLInterface.h"
29
29
 
30
30
  #pragma clang diagnostic pop
31
31
 
@@ -14,7 +14,7 @@
14
14
  #pragma clang diagnostic ignored "-Wdocumentation"
15
15
 
16
16
  #include "include/core/SkSurface.h"
17
- #include "include/gpu/GrDirectContext.h"
17
+ #include "include/gpu/ganesh/GrDirectContext.h"
18
18
 
19
19
  #pragma clang diagnostic pop
20
20
 
@@ -9,7 +9,7 @@
9
9
  #pragma clang diagnostic push
10
10
  #pragma clang diagnostic ignored "-Wdocumentation"
11
11
 
12
- #import <include/gpu/GrDirectContext.h>
12
+ #import <include/gpu/ganesh/GrDirectContext.h>
13
13
 
14
14
  #pragma clang diagnostic pop
15
15
 
@@ -9,8 +9,8 @@
9
9
  #import "include/core/SkColorSpace.h"
10
10
  #import "include/core/SkSurface.h"
11
11
 
12
- #import <include/gpu/GrBackendSurface.h>
13
- #import <include/gpu/GrDirectContext.h>
12
+ #import <include/gpu/ganesh/GrBackendSurface.h>
13
+ #import <include/gpu/ganesh/GrDirectContext.h>
14
14
  #import <include/gpu/ganesh/SkSurfaceGanesh.h>
15
15
 
16
16
  #pragma clang diagnostic pop
@@ -17,8 +17,8 @@
17
17
  #pragma clang diagnostic ignored "-Wdocumentation"
18
18
  #import "include/core/SkColorSpace.h"
19
19
  #import "include/core/SkImage.h"
20
- #import "include/gpu/GrBackendSurface.h"
21
- #import "include/gpu/GrYUVABackendTextures.h"
20
+ #import "include/gpu/ganesh/GrBackendSurface.h"
21
+ #import "include/gpu/ganesh/GrYUVABackendTextures.h"
22
22
  #pragma clang diagnostic pop
23
23
 
24
24
  /**
@@ -11,7 +11,7 @@
11
11
  #pragma clang diagnostic push
12
12
  #pragma clang diagnostic ignored "-Wdocumentation"
13
13
  #import "include/core/SkColorSpace.h"
14
- #import <include/gpu/GrBackendSurface.h>
14
+ #import <include/gpu/ganesh/GrBackendSurface.h>
15
15
  #import <include/gpu/ganesh/SkImageGanesh.h>
16
16
  #import <include/gpu/ganesh/mtl/GrMtlBackendContext.h>
17
17
  #import <include/gpu/ganesh/mtl/GrMtlBackendSurface.h>
@@ -11,7 +11,7 @@
11
11
  #import "include/core/SkCanvas.h"
12
12
  #import <CoreMedia/CMSampleBuffer.h>
13
13
  #import <CoreVideo/CVMetalTextureCache.h>
14
- #import <include/gpu/GrDirectContext.h>
14
+ #import <include/gpu/ganesh/GrDirectContext.h>
15
15
 
16
16
  #pragma clang diagnostic pop
17
17
 
@@ -10,8 +10,8 @@
10
10
  #import "include/core/SkColorSpace.h"
11
11
  #import "include/core/SkSurface.h"
12
12
 
13
- #import <include/gpu/GrBackendSurface.h>
14
- #import <include/gpu/GrDirectContext.h>
13
+ #import <include/gpu/ganesh/GrBackendSurface.h>
14
+ #import <include/gpu/ganesh/GrDirectContext.h>
15
15
  #import <include/gpu/ganesh/SkImageGanesh.h>
16
16
  #import <include/gpu/ganesh/SkSurfaceGanesh.h>
17
17
  #import <include/gpu/ganesh/mtl/GrMtlBackendContext.h>
@@ -0,0 +1,46 @@
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>BinaryPath</key>
9
+ <string>libskunicode_core.a</string>
10
+ <key>LibraryIdentifier</key>
11
+ <string>ios-arm64_arm64e</string>
12
+ <key>LibraryPath</key>
13
+ <string>libskunicode_core.a</string>
14
+ <key>SupportedArchitectures</key>
15
+ <array>
16
+ <string>arm64</string>
17
+ <string>arm64e</string>
18
+ </array>
19
+ <key>SupportedPlatform</key>
20
+ <string>ios</string>
21
+ </dict>
22
+ <dict>
23
+ <key>BinaryPath</key>
24
+ <string>libskunicode_core.a</string>
25
+ <key>LibraryIdentifier</key>
26
+ <string>ios-arm64_arm64e_x86_64-simulator</string>
27
+ <key>LibraryPath</key>
28
+ <string>libskunicode_core.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>ios</string>
37
+ <key>SupportedPlatformVariant</key>
38
+ <string>simulator</string>
39
+ </dict>
40
+ </array>
41
+ <key>CFBundlePackageType</key>
42
+ <string>XFWK</string>
43
+ <key>XCFrameworkFormatVersion</key>
44
+ <string>1.0</string>
45
+ </dict>
46
+ </plist>
@@ -0,0 +1,46 @@
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>BinaryPath</key>
9
+ <string>libskunicode_libgrapheme.a</string>
10
+ <key>LibraryIdentifier</key>
11
+ <string>ios-arm64_arm64e</string>
12
+ <key>LibraryPath</key>
13
+ <string>libskunicode_libgrapheme.a</string>
14
+ <key>SupportedArchitectures</key>
15
+ <array>
16
+ <string>arm64</string>
17
+ <string>arm64e</string>
18
+ </array>
19
+ <key>SupportedPlatform</key>
20
+ <string>ios</string>
21
+ </dict>
22
+ <dict>
23
+ <key>BinaryPath</key>
24
+ <string>libskunicode_libgrapheme.a</string>
25
+ <key>LibraryIdentifier</key>
26
+ <string>ios-arm64_arm64e_x86_64-simulator</string>
27
+ <key>LibraryPath</key>
28
+ <string>libskunicode_libgrapheme.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>ios</string>
37
+ <key>SupportedPlatformVariant</key>
38
+ <string>simulator</string>
39
+ </dict>
40
+ </array>
41
+ <key>CFBundlePackageType</key>
42
+ <string>XFWK</string>
43
+ <key>XCFrameworkFormatVersion</key>
44
+ <string>1.0</string>
45
+ </dict>
46
+ </plist>
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.4.1",
10
+ "version": "1.4.2",
11
11
  "description": "High-performance React Native Graphics using Skia",
12
12
  "main": "lib/module/index.js",
13
13
  "react-native": "src/index.ts",
@@ -29,13 +29,7 @@
29
29
  "jestEnv.mjs",
30
30
  "cpp/**/*.{h,cpp}",
31
31
  "ios/**",
32
- "libs/ios/libskia.xcframework/**",
33
- "libs/ios/libskshaper.xcframework/**",
34
- "libs/ios/libsvg.xcframework/**",
35
- "libs/ios/libskottie.xcframework/**",
36
- "libs/ios/libsksg.xcframework/**",
37
- "libs/ios/libskparagraph.xcframework/**",
38
- "libs/ios/libskunicode.xcframework/**",
32
+ "libs/ios/*.xcframework/**",
39
33
  "react-native-skia.podspec",
40
34
  "scripts/setup-canvaskit.js",
41
35
  "dist/**"
@@ -12,11 +12,12 @@ Pod::Spec.new do |s|
12
12
  @shopify/react-native-skia
13
13
  DESC
14
14
  s.homepage = "https://github.com/shopify/react-native-skia"
15
- # brief license entry:
16
15
  s.license = "MIT"
17
- # optional - use expanded license entry instead:
18
- # s.license = { :type => "MIT", :file => "LICENSE" }
19
- s.authors = { "Your Name" => "yourname@email.com" }
16
+ s.license = { :type => "MIT", :file => "LICENSE.md" }
17
+ s.authors = {
18
+ "Christian Falch" => "christian.falch@gmail.com",
19
+ "William Candillon" => "wcandillon@gmail.com"
20
+ }
20
21
  s.platforms = { :ios => "13.0" }
21
22
  s.source = { :git => "https://github.com/shopify/react-native-skia/react-native-skia.git", :tag => "#{s.version}" }
22
23
 
@@ -1,8 +0,0 @@
1
- /*
2
- * Copyright 2017 Google Inc.
3
- *
4
- * Use of this source code is governed by a BSD-style license that can be
5
- * found in the LICENSE file.
6
- */
7
- // TODO(kjlubick, egdaniel) Delete this after migrating clients.
8
- #include "include/gpu/ganesh/GrBackendSemaphore.h"
@@ -1,8 +0,0 @@
1
- /*
2
- * Copyright 2017 Google Inc.
3
- *
4
- * Use of this source code is governed by a BSD-style license that can be
5
- * found in the LICENSE file.
6
- */
7
- // TODO(kjlubick, egdaniel) Delete this after migrating clients.
8
- #include "include/gpu/ganesh/GrBackendSurface.h"
@@ -1,8 +0,0 @@
1
- /*
2
- * Copyright 2015 Google Inc.
3
- *
4
- * Use of this source code is governed by a BSD-style license that can be
5
- * found in the LICENSE file.
6
- */
7
- // TODO(kjlubick, egdaniel) Delete this after migrating clients.
8
- #include "include/gpu/ganesh/GrContextOptions.h"
@@ -1,8 +0,0 @@
1
- /*
2
- * Copyright 2019 Google Inc.
3
- *
4
- * Use of this source code is governed by a BSD-style license that can be
5
- * found in the LICENSE file.
6
- */
7
- // TODO(kjlubick, egdaniel) Delete this after migrating clients.
8
- #include "include/gpu/ganesh/GrContextThreadSafeProxy.h"
@@ -1,8 +0,0 @@
1
- /*
2
- * Copyright 2020 Google Inc.
3
- *
4
- * Use of this source code is governed by a BSD-style license that can be
5
- * found in the LICENSE file.
6
- */
7
- // TODO(kjlubick, egdaniel) Delete this after migrating clients.
8
- #include "include/gpu/ganesh/GrDirectContext.h"
@@ -1,8 +0,0 @@
1
- /*
2
- * Copyright 2018 Google Inc.
3
- *
4
- * Use of this source code is governed by a BSD-style license that can be
5
- * found in the LICENSE file.
6
- */
7
- // TODO(kjlubick, egdaniel) Delete this after migrating clients.
8
- #include "include/gpu/ganesh/GrDriverBugWorkarounds.h"
@@ -1,6 +0,0 @@
1
- // Copyright 2018 The Chromium Authors. All rights reserved.
2
- // Use of this source code is governed by a BSD-style license that can be
3
- // found in the LICENSE file.
4
-
5
- // TODO(kjlubick, egdaniel) Delete this after migrating clients.
6
- #include "include/gpu/ganesh/GrDriverBugWorkaroundsAutogen.h"
@@ -1,8 +0,0 @@
1
- /*
2
- * Copyright 2019 Google Inc.
3
- *
4
- * Use of this source code is governed by a BSD-style license that can be
5
- * found in the LICENSE file.
6
- */
7
- // TODO(kjlubick, egdaniel) Delete this after migrating clients.
8
- #include "include/gpu/ganesh/GrRecordingContext.h"
@@ -1,8 +0,0 @@
1
- /*
2
- * Copyright 2010 Google Inc.
3
- *
4
- * Use of this source code is governed by a BSD-style license that can be
5
- * found in the LICENSE file.
6
- */
7
- // TODO(kjlubick, egdaniel) Delete this after migrating clients.
8
- #include "include/gpu/ganesh/GrTypes.h"
@@ -1,8 +0,0 @@
1
- /*
2
- * Copyright 2020 Google LLC
3
- *
4
- * Use of this source code is governed by a BSD-style license that can be
5
- * found in the LICENSE file.
6
- */
7
- // TODO(kjlubick, egdaniel) Delete this after migrating clients.
8
- #include "include/gpu/ganesh/GrYUVABackendTextures.h"
@@ -1,8 +0,0 @@
1
- /*
2
- * Copyright 2020 Google LLC
3
- *
4
- * Use of this source code is governed by a BSD-style license that can be
5
- * found in the LICENSE file.
6
- */
7
- // TODO(kjlubick, egdaniel) Delete this after migrating clients.
8
- #include "include/gpu/ganesh/d3d/GrD3DBackendContext.h"
@@ -1,8 +0,0 @@
1
- /*
2
- * Copyright 2020 Google LLC
3
- *
4
- * Use of this source code is governed by a BSD-style license that can be
5
- * found in the LICENSE file.
6
- */
7
- // TODO(kjlubick, egdaniel) Delete this after migrating clients.
8
- #include "include/gpu/ganesh/d3d/GrD3DTypes.h"
@@ -1,8 +0,0 @@
1
- /*
2
- * Copyright 2019 Google LLC
3
- *
4
- * Use of this source code is governed by a BSD-style license that can be
5
- * found in the LICENSE file.
6
- */
7
- // TODO(kjlubick, egdaniel) Delete this after migrating clients.
8
- #include "include/gpu/ganesh/gl/GrGLAssembleHelpers.h"
@@ -1,8 +0,0 @@
1
- /*
2
- * Copyright 2014 Google Inc.
3
- *
4
- * Use of this source code is governed by a BSD-style license that can be
5
- * found in the LICENSE file.
6
- */
7
- // TODO(kjlubick, egdaniel) Delete this after migrating clients.
8
- #include "include/gpu/ganesh/gl/GrGLAssembleInterface.h"
@@ -1,8 +0,0 @@
1
- /*
2
- * Copyright 2011 Google Inc.
3
- *
4
- * Use of this source code is governed by a BSD-style license that can be
5
- * found in the LICENSE file.
6
- */
7
- // TODO(kjlubick, egdaniel) Delete this after migrating clients.
8
- #include "include/gpu/ganesh/gl/GrGLConfig.h"
@@ -1,8 +0,0 @@
1
- /*
2
- * Copyright 2013 Google Inc.
3
- *
4
- * Use of this source code is governed by a BSD-style license that can be
5
- * found in the LICENSE file.
6
- */
7
- // TODO(kjlubick, egdaniel) Delete this after migrating clients.
8
- #include "include/gpu/ganesh/gl/GrGLExtensions.h"
@@ -1,8 +0,0 @@
1
- /*
2
- * Copyright 2012 Google Inc.
3
- *
4
- * Use of this source code is governed by a BSD-style license that can be
5
- * found in the LICENSE file.
6
- */
7
- // TODO(kjlubick, egdaniel) Delete this after migrating clients.
8
- #include "include/gpu/ganesh/gl/GrGLFunctions.h"
@@ -1,8 +0,0 @@
1
- /*
2
- * Copyright 2011 Google Inc.
3
- *
4
- * Use of this source code is governed by a BSD-style license that can be
5
- * found in the LICENSE file.
6
- */
7
- // TODO(kjlubick, egdaniel) Delete this after migrating clients.
8
- #include "include/gpu/ganesh/gl/GrGLInterface.h"
@@ -1,8 +0,0 @@
1
- /*
2
- * Copyright 2015 Google Inc.
3
- *
4
- * Use of this source code is governed by a BSD-style license that can be
5
- * found in the LICENSE file.
6
- */
7
- // TODO(kjlubick, egdaniel) Delete this after migrating clients.
8
- #include "include/gpu/ganesh/gl/GrGLTypes.h"
@@ -1,8 +0,0 @@
1
- /*
2
- * Copyright 2017 Google Inc.
3
- *
4
- * Use of this source code is governed by a BSD-style license that can be
5
- * found in the LICENSE file.
6
- */
7
- // TODO(kjlubick, egdaniel) Delete this after migrating clients.
8
- #include "include/gpu/ganesh/mock/GrMockTypes.h"
@@ -1,8 +0,0 @@
1
- /*
2
- * Copyright 2016 Google Inc.
3
- *
4
- * Use of this source code is governed by a BSD-style license that can be
5
- * found in the LICENSE file.
6
- */
7
- // TODO(kjlubick, egdaniel) Delete this after migrating clients.
8
- #include "include/gpu/ganesh/vk/GrVkTypes.h"