From f0a58af37bdf3fd85f577fdac084b7c3af4a5d7f Mon Sep 17 00:00:00 2001 From: Yariv Kenan Date: Tue, 8 Nov 2016 16:17:48 -0800 Subject: [PATCH] Change matching pattern on settings.gradle Summary: Link doesn't work on f8app, as it is, android projects don't have to contain the matching string and then the linking would not work, I've switched it to the much simpler new-line. If you can find a better common minimum string for settings.gradle please do. Commit Msg: Current string, `include ':app'\n`, is not a minimum common string. Instead a simple `\n` will do. Closes https://github.com/facebook/react-native/pull/10172 Differential Revision: D4150313 fbshipit-source-id: 34470e1fb67194e41354b6085fb3eb90ddaa7ff8 --- local-cli/link/android/patches/makeSettingsPatch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local-cli/link/android/patches/makeSettingsPatch.js b/local-cli/link/android/patches/makeSettingsPatch.js index af93d058703..d4c2e57f04a 100644 --- a/local-cli/link/android/patches/makeSettingsPatch.js +++ b/local-cli/link/android/patches/makeSettingsPatch.js @@ -18,7 +18,7 @@ module.exports = function makeSettingsPatch(name, androidConfig, projectConfig) } return { - pattern: 'include \':app\'\n', + pattern: '\n', patch: `include ':${name}'\n` + `project(':${name}').projectDir = ` + `new File(rootProject.projectDir, '${projectDir}')\n`,