diff --git a/android/gradle.properties b/android/gradle.properties index 05a05832..c2ce4d5c 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -1,4 +1,4 @@ Menu_kotlinVersion=1.3.50 -Menu_compileSdkVersion=28 -Menu_buildToolsVersion=28.0.3 -Menu_targetSdkVersion=28 +Menu_compileSdkVersion=29 +Menu_buildToolsVersion=30.0.3 +Menu_targetSdkVersion=29 diff --git a/example/metro.config.js b/example/metro.config.js index 71ebb415..fe76e636 100644 --- a/example/metro.config.js +++ b/example/metro.config.js @@ -5,14 +5,14 @@ * @format */ -const path = require("path"); +const path = require('path'); const exclusionList = (() => { try { - return require("metro-config/src/defaults/exclusionList"); + return require('metro-config/src/defaults/exclusionList'); } catch (_) { // `blacklist` was renamed to `exclusionList` in 0.60 - return require("metro-config/src/defaults/blacklist"); + return require('metro-config/src/defaults/blacklist'); } })(); @@ -21,7 +21,7 @@ const blockList = exclusionList([ // This stops "react-native run-windows" from causing the metro server to // crash if its already running - new RegExp(`${path.join(__dirname, "windows").replace(/[/\\]+/g, "/")}.*`), + new RegExp(`${path.join(__dirname, 'windows').replace(/[/\\]+/g, '/')}.*`), // Workaround for `EBUSY: resource busy or locked, open '~\msbuild.ProjectImports.zip'` // when building with `yarn windows --release` diff --git a/example/react-native.config.js b/example/react-native.config.js index 51f56bab..88e096ca 100644 --- a/example/react-native.config.js +++ b/example/react-native.config.js @@ -1,27 +1,27 @@ -const fs = require("fs"); -const path = require("path"); +const fs = require('fs'); +const path = require('path'); const windowsProjectFile = path.join( - "node_modules", - ".generated", - "windows", - "ReactTestApp", - "ReactTestApp.vcxproj" + 'node_modules', + '.generated', + 'windows', + 'ReactTestApp', + 'ReactTestApp.vcxproj' ); module.exports = { project: { android: { - sourceDir: "android", + sourceDir: 'android', manifestPath: path.relative( - path.join(__dirname, "android"), + path.join(__dirname, 'android'), path.join( - path.dirname(require.resolve("react-native-test-app/package.json")), - "android", - "app", - "src", - "main", - "AndroidManifest.xml" + path.dirname(require.resolve('react-native-test-app/package.json')), + 'android', + 'app', + 'src', + 'main', + 'AndroidManifest.xml' ) ), }, @@ -29,30 +29,30 @@ module.exports = { project: (() => { const { packageSatisfiesVersionRange, - } = require("react-native-test-app/scripts/configure"); + } = require('react-native-test-app/scripts/configure'); if ( packageSatisfiesVersionRange( - "@react-native-community/cli-platform-ios", - "<5.0.2" + '@react-native-community/cli-platform-ios', + '<5.0.2' ) ) { // Prior to @react-native-community/cli-platform-ios v5.0.0, // `project` was only used to infer `sourceDir` and `podfile`. - return "ios/ReactTestApp-Dummy.xcodeproj"; + return 'ios/ReactTestApp-Dummy.xcodeproj'; } // `sourceDir` and `podfile` detection was fixed in // @react-native-community/cli-platform-ios v5.0.2 (see // https://github.com/react-native-community/cli/pull/1444). - return "node_modules/.generated/ios/ReactTestApp.xcodeproj"; + return 'node_modules/.generated/ios/ReactTestApp.xcodeproj'; })(), }, windows: fs.existsSync(windowsProjectFile) && { - sourceDir: "windows", - solutionFile: "MenuExample.sln", + sourceDir: 'windows', + solutionFile: 'MenuExample.sln', project: { projectFile: path.relative( - path.join(__dirname, "windows"), + path.join(__dirname, 'windows'), windowsProjectFile ), },