xref: /MusicFree/android/settings.gradle (revision 6613e77203923e5b1742a49281bfa5de03fc1440)
1*6613e772SmaotoumaopluginManagement { includeBuild("../node_modules/@react-native/gradle-plugin") }
2*6613e772Smaotoumaoplugins { id("com.facebook.react.settings") }
3*6613e772Smaotoumaoextensions.configure(com.facebook.react.ReactSettingsExtension){ ex ->
4*6613e772Smaotoumao  def command = [
5*6613e772Smaotoumao    'node',
6*6613e772Smaotoumao    '--no-warnings',
7*6613e772Smaotoumao    '--eval',
8*6613e772Smaotoumao    'require(require.resolve(\'expo-modules-autolinking\', { paths: [require.resolve(\'expo/package.json\')] }))(process.argv.slice(1))',
9*6613e772Smaotoumao    'react-native-config',
10*6613e772Smaotoumao    '--json',
11*6613e772Smaotoumao    '--platform',
12*6613e772Smaotoumao    'android'
13*6613e772Smaotoumao  ].toList()
14*6613e772Smaotoumao  ex.autolinkLibrariesFromCommand(command)
15*6613e772Smaotoumao}
16bf6e62f2S猫头猫rootProject.name = 'MusicFree'
17bf6e62f2S猫头猫include ':app'
185589cdf3S猫头猫includeBuild('../node_modules/@react-native/gradle-plugin')
19bf6e62f2S猫头猫
205589cdf3S猫头猫apply from: new File(["node", "--print", "require.resolve('expo/package.json')"].execute(null, rootDir).text.trim(), "../scripts/autolinking.gradle")
215589cdf3S猫头猫useExpoModules()
22