mirror of
https://github.com/zoriya/react-native-omni.git
synced 2026-08-15 10:23:28 +00:00
feat(chromecast): send custom message for overlay subtitles
This commit is contained in:
+8
-2
@@ -20,7 +20,10 @@ const updateViewManagerFiles = async (file) => {
|
||||
const viewManagerStr = await readFile(viewManagerFile, { encoding: "utf8" });
|
||||
await writeFile(
|
||||
viewManagerFile,
|
||||
viewManagerStr.replace(/com\.margelo\.nitro\.omni\.\*/g, "dev.zoriya.omni.*"),
|
||||
viewManagerStr.replace(
|
||||
/com\.margelo\.nitro\.omni\.\*/g,
|
||||
"dev.zoriya.omni.*",
|
||||
),
|
||||
);
|
||||
};
|
||||
|
||||
@@ -49,6 +52,9 @@ const androidWorkaround = async () => {
|
||||
}
|
||||
|
||||
const str = await readFile(androidOnLoadFile, { encoding: "utf8" });
|
||||
await writeFile(androidOnLoadFile, str.replace(/com\/margelo\/nitro\//g, "dev/zoriya/"));
|
||||
await writeFile(
|
||||
androidOnLoadFile,
|
||||
str.replace(/com\/margelo\/nitro\//g, "dev/zoriya/"),
|
||||
);
|
||||
};
|
||||
androidWorkaround();
|
||||
|
||||
Reference in New Issue
Block a user