Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions dist/plugins/withViroAndroid.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ const withBranchAndroid = (config) => {
// console.log("[VIRO]: \n" + target);
data = (0, insertLinesHelper_1.insertLinesHelper)(target, "// add(MyReactNativePackage())", data);
}
else if (data.includes("// packages.add(MyReactNativePackage())")) {
data = (0, insertLinesHelper_1.insertLinesHelper)(target, "// packages.add(MyReactNativePackage())", data);
}
else {
throw new Error("Unable to insert Android packages into package list. Please create a new issue on GitHub and reference this message!");
}
Expand Down