Skip to content

Commit

Permalink
chore: remove versions
Browse files Browse the repository at this point in the history
  • Loading branch information
cawfree committed Dec 29, 2022
1 parent 32000dd commit 2e0ba8f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/gomobileup.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ if (fs.existsSync(xcframework_to))

fs.copySync(xcframework, xcframework_to, { dereference: true });

// Remove version duplicates.
['ios-arm64', 'ios-arm64_x86_64-simulator'].forEach((name) =>
fs.removeSync(
path.resolve(xcframework_to, name, 'Core.framework', 'Versions'),
{ recursive: true }
)
);

const libs = path.resolve('android', 'libs');

if (fs.existsSync(libs)) fs.removeSync(libs, { recursive: true });
Expand Down

0 comments on commit 2e0ba8f

Please sign in to comment.