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
This commit is contained in:
Yariv Kenan 2016-11-08 16:17:48 -08:00 committed by Facebook Github Bot
parent ab55a8a146
commit f0a58af37b
1 changed files with 1 additions and 1 deletions

View File

@ -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`,