You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Description
Fixes to
software-mansion#2224, that
came out in other repos.
## Changes
- Bump version of GitHub actions
- Fix warning when trying to copy non existing codegen interface
## Test code and steps to reproduce
Duplicate
`android/src/paper/java/com/facebook/react/viewmanagers/RNSSearchBarManagerDelegate.java`
with name change for example with ` copy` at the end. Before it would
fail because file wouldn't be found. Now there will be warning in logs.
`[${ERROR_PREFIX}] ${generatedFile} not found in paper dir, if it's used on Android you need to copy it manually and implement yourself before using auto-copy feature.`,
81
-
);
82
-
}
83
-
});
84
-
85
-
if(oldArchFiles.length===0){
86
-
console.warn(
87
-
`[${ERROR_PREFIX}] Paper destination with codegen interfaces is empty. This might be okay if you don't have any interfaces/delegates used on Android, otherwise please check if OLD_ARCH_DIR and SOURCE_FOLDERS are set properly.`,
88
-
);
89
-
}
91
+
generatedFiles.forEach(generatedFile=>{
92
+
if(!existingFilesSet.has(generatedFile)){
93
+
console.warn(
94
+
`[${ERROR_PREFIX}] ${generatedFile} not found in paper dir, if it's used on Android you need to copy it manually and implement yourself before using auto-copy feature.`,
`[${ERROR_PREFIX}] ${existingFile.name} file does not exist in codegen artifacts source destination. Please check if you still need this interface/delagete.`,
101
+
`[${ERROR_PREFIX}] Paper destination with codegen interfaces is empty. This might be okay if you don't have any interfaces/delegates used on Android, otherwise please check if OLD_ARCH_DIR and SOURCE_FOLDERS are set properly.`,
0 commit comments