File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1407,7 +1407,7 @@ PODS:
14071407 - ReactCommon/turbomodule/bridging
14081408 - ReactCommon/turbomodule/core
14091409 - Yoga
1410- - react-native-skia (2.0.0 ):
1410+ - react-native-skia (2.2.14 ):
14111411 - DoubleConversion
14121412 - glog
14131413 - hermes-engine
@@ -1433,7 +1433,7 @@ PODS:
14331433 - ReactCommon/turbomodule/bridging
14341434 - ReactCommon/turbomodule/core
14351435 - Yoga
1436- - react-native-wgpu (0.2.5 ):
1436+ - react-native-wgpu (0.2.6 ):
14371437 - DoubleConversion
14381438 - glog
14391439 - hermes-engine
@@ -2245,8 +2245,8 @@ SPEC CHECKSUMS:
22452245 React-Mapbuffer: c3f4b608e4a59dd2f6a416ef4d47a14400194468
22462246 React-microtasksnativemodule: 054f34e9b82f02bd40f09cebd4083828b5b2beb6
22472247 react-native-safe-area-context: 562163222d999b79a51577eda2ea8ad2c32b4d06
2248- react-native-skia: 99362ce77dff006719636c97f16c9713e3ec221e
2249- react-native-wgpu: 091c71fc96e5470bdc69b5b9f1bc632540cd8a06
2248+ react-native-skia: a00cb2132c9f8a90d3dade66c56c2325c28a9fb6
2249+ react-native-wgpu: 770f8c16bebe46a176a14f16d1058ed6f6cf14b8
22502250 React-NativeModulesApple: 2c4377e139522c3d73f5df582e4f051a838ff25e
22512251 React-oscompat: ef5df1c734f19b8003e149317d041b8ce1f7d29c
22522252 React-perflogger: 9a151e0b4c933c9205fd648c246506a83f31395d
Original file line number Diff line number Diff line change 11{
22 "name" : " react-native-wgpu" ,
3- "version" : " 0.2.5 " ,
3+ "version" : " 0.2.6 " ,
44 "description" : " React Native WebGPU" ,
55 "main" : " lib/commonjs/index" ,
66 "module" : " lib/module/index" ,
Original file line number Diff line number Diff line change 11/* eslint-disable max-len */
22import { $ , checkFileExists , runAsync } from "./util" ;
3+ import { checkDuplicateHeaders } from "../codegen/util" ;
34
45export const libs = [ "libwebgpu_dawn" ] as const ;
56
@@ -32,8 +33,12 @@ export const copyHeaders = () => {
3233 `rm -rf ${ projectRoot } /cpp/dawn/webgpu.h` ,
3334 `rm -rf ${ projectRoot } /cpp/dawn/webgpu_cpp.h` ,
3435 `rm -rf ${ projectRoot } /cpp/dawn/wire` ,
36+ `rm -rf ${ projectRoot } /cpp/webgpu/webgpu_cpp_print.h` ,
3537 `cp externals/dawn/src/dawn/dawn.json ${ projectRoot } /libs` ,
3638 ] . map ( ( cmd ) => $ ( cmd ) ) ;
39+
40+ // Check for duplicate header names and issue warnings
41+ checkDuplicateHeaders ( `${ projectRoot } /cpp` ) ;
3742} ;
3843
3944const serializeCMakeArgs = ( args : Record < string , string > ) => {
Original file line number Diff line number Diff line change @@ -35,3 +35,38 @@ export const writeFile = (
3535 `${ labels [ label ] } ${ file . substring ( file . indexOf ( "/package/" ) + "/package/" . length ) } ` ,
3636 ) ;
3737} ;
38+
39+ export const checkDuplicateHeaders = ( cppPath : string ) => {
40+ // Check for duplicate header names and issue warnings
41+ const duplicateHeaders = $ (
42+ `find ${ cppPath } -name '*.h' -type f | sed 's/.*\\///' | sort | uniq -d` ,
43+ ) . toString ( ) ;
44+ if ( duplicateHeaders . trim ( ) ) {
45+ console . warn ( "⚠️ WARNING: Found duplicate header names:" ) ;
46+ let hasConflicts = false ;
47+
48+ duplicateHeaders
49+ . split ( "\n" )
50+ . filter ( Boolean )
51+ . forEach ( ( filename : string ) => {
52+ const fullPaths = $ (
53+ `find ${ cppPath } -name "${ filename } " -type f` ,
54+ ) . toString ( ) ;
55+ const paths = fullPaths . split ( "\n" ) . filter ( Boolean ) ;
56+
57+ console . warn ( ` ${ filename } :` ) ;
58+ paths . forEach ( ( filePath : string ) => {
59+ console . warn ( ` ${ filePath } ` ) ;
60+ } ) ;
61+
62+ hasConflicts = true ;
63+ } ) ;
64+
65+ if ( hasConflicts ) {
66+ console . error (
67+ "❌ ERROR: Duplicate headers found that will cause iOS build conflicts!" ,
68+ ) ;
69+ exit ( 1 ) ;
70+ }
71+ }
72+ } ;
You can’t perform that action at this time.
0 commit comments