fix(mobile): bound framework conventions to path segments (#1506)

Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
This commit is contained in:
Thang Luu
2026-10-10 21:42:03 +08:00
committed by GitHub
co-authored by morluto
parent 8c47a9ce4b
commit a929c9f714
7 changed files with 163 additions and 7 deletions
+1 -1
View File
@@ -222,7 +222,7 @@ const bridgeBasis = (
if (convention === "react-native") return "react-native-convention";
if (convention === "flutter") return "flutter-convention";
if (convention === "unity") return "unity-convention";
if (/lib\/[^/]+\/lib[^/]+\.so$/u.test(path.toLowerCase()))
if (/(?:^|\/)lib\/[^/]+\/lib[^/]+\.so$/iu.test(path))
return "jni-library-convention";
return "managed-and-native-content";
};