From 9972afcbcc4f75db3ad206ac6ce5d628ae4c89ec Mon Sep 17 00:00:00 2001 From: Marc Bender <79178770+mbender74@users.noreply.github.com> Date: Thu, 20 Apr 2023 22:48:40 +0200 Subject: [PATCH] fix(ios): build module platform/xcframwork symbolic links (#13811) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add option to exclude dir(s) from compiling to assests catalog when app-thinning is used * Update gather.js fixed lint error * feat: fixed lint error * fixed RegEx Lint warning * fix(ios): build module platform/xcframwork symbolic links build module platform/*.xcframwork symbolic links * fix(ios): build module platform/xcframwork symbolic links * feat(ios): added scrollEnabled and removeInputAccessoryView to webView * Revert "feat(ios): added scrollEnabled and removeInputAccessoryView to webView" This reverts commit 5e6ffc3fb17ef2b011a24d0aaa84fd11264ad4b8. * Update iphone/cli/commands/_buildModule.js the entryData parameter works! :-) Co-authored-by: Chris Barber * chore: fix linting issue * chore: fix linting Co-authored-by: Chris Barber --------- Co-authored-by: Chris Barber Co-authored-by: Hans Knöchel --- iphone/cli/commands/_buildModule.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/iphone/cli/commands/_buildModule.js b/iphone/cli/commands/_buildModule.js index 6423890b763..c3de6ab5309 100644 --- a/iphone/cli/commands/_buildModule.js +++ b/iphone/cli/commands/_buildModule.js @@ -915,12 +915,11 @@ iOSModuleBuilder.prototype.packageModule = function packageModule(next) { // 3. platform folder if (fs.existsSync(this.platformDir)) { - this.dirWalker(this.platformDir, function (file, name) { - var stat = fs.statSync(file); - if (name !== 'README.md') { - dest.append(fs.createReadStream(file), { name: path.join(moduleFolders, 'platform', path.relative(this.platformDir, file)), mode: stat.mode }); - } - }.bind(this)); + dest.directory( + this.platformDir, + path.join(moduleFolders, 'platform'), + (entryData) => (entryData.name === 'README.md' ? false : entryData) + ); } // 4. hooks folder