react-native-wgpu 0.1.6 → 0.1.7

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.
Binary file
Binary file
@@ -6,34 +6,34 @@
6
6
  <array>
7
7
  <dict>
8
8
  <key>BinaryPath</key>
9
- <string>libwebgpu_dawn_visionos.a</string>
9
+ <string>libwebgpu_dawn.a</string>
10
10
  <key>LibraryIdentifier</key>
11
- <string>xros-arm64_x86_64-simulator</string>
11
+ <string>xros-arm64</string>
12
12
  <key>LibraryPath</key>
13
- <string>libwebgpu_dawn_visionos.a</string>
13
+ <string>libwebgpu_dawn.a</string>
14
14
  <key>SupportedArchitectures</key>
15
15
  <array>
16
16
  <string>arm64</string>
17
- <string>x86_64</string>
18
17
  </array>
19
18
  <key>SupportedPlatform</key>
20
19
  <string>xros</string>
21
- <key>SupportedPlatformVariant</key>
22
- <string>simulator</string>
23
20
  </dict>
24
21
  <dict>
25
22
  <key>BinaryPath</key>
26
- <string>libwebgpu_dawn.a</string>
23
+ <string>libwebgpu_dawn_visionos.a</string>
27
24
  <key>LibraryIdentifier</key>
28
- <string>xros-arm64</string>
25
+ <string>xros-arm64_x86_64-simulator</string>
29
26
  <key>LibraryPath</key>
30
- <string>libwebgpu_dawn.a</string>
27
+ <string>libwebgpu_dawn_visionos.a</string>
31
28
  <key>SupportedArchitectures</key>
32
29
  <array>
33
30
  <string>arm64</string>
31
+ <string>x86_64</string>
34
32
  </array>
35
33
  <key>SupportedPlatform</key>
36
34
  <string>xros</string>
35
+ <key>SupportedPlatformVariant</key>
36
+ <string>simulator</string>
37
37
  </dict>
38
38
  </array>
39
39
  <key>CFBundlePackageType</key>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-wgpu",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "React Native WebGPU",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -16,7 +16,8 @@
16
16
  "android/src/**",
17
17
  "cpp/**/*.{h,cpp}",
18
18
  "ios/**",
19
- "libs/**"
19
+ "libs/**",
20
+ "*.podspec"
20
21
  ],
21
22
  "scripts": {
22
23
  "test": "jest -i",
@@ -0,0 +1,57 @@
1
+ require "json"
2
+
3
+ package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4
+ folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
5
+
6
+ Pod::Spec.new do |s|
7
+ s.name = "react-native-wgpu"
8
+ s.version = package["version"]
9
+ s.summary = package["description"]
10
+ s.homepage = package["homepage"]
11
+ s.license = package["license"]
12
+ s.authors = package["author"]
13
+
14
+ s.platforms = { :ios => min_ios_version_supported, :visionos => "1.0" }
15
+ s.source = { :git => "https://github.com/wcandillon/react-native-webgpu.git", :tag => "#{s.version}" }
16
+
17
+ s.source_files = [
18
+ "ios/**/*.{h,c,cc,cpp,m,mm,swift}",
19
+ "cpp/**/*.{h,cpp}"
20
+ ]
21
+
22
+ s.ios.vendored_frameworks = [
23
+ 'libs/apple/libwebgpu_dawn.xcframework',
24
+ ]
25
+
26
+ s.visionos.vendored_frameworks = [
27
+ 'libs/apple/libwebgpu_dawn_visionos.xcframework',
28
+ ]
29
+
30
+ s.pod_target_xcconfig = {
31
+ 'HEADER_SEARCH_PATHS' => '$(PODS_TARGET_SRCROOT)/cpp',
32
+ }
33
+
34
+ # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
35
+ # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
36
+ if respond_to?(:install_modules_dependencies, true)
37
+ install_modules_dependencies(s)
38
+ else
39
+ s.dependency "React-Core"
40
+
41
+ # Don't install the dependencies when we run `pod install` in the old architecture.
42
+ if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
43
+ s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
44
+ s.pod_target_xcconfig = {
45
+ "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
46
+ "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
47
+ "CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
48
+ }
49
+ s.dependency "React-RCTFabric"
50
+ s.dependency "React-Codegen"
51
+ s.dependency "RCT-Folly"
52
+ s.dependency "RCTRequired"
53
+ s.dependency "RCTTypeSafety"
54
+ s.dependency "ReactCommon/turbomodule/core"
55
+ end
56
+ end
57
+ end