Skip to content

Commit

Permalink
upgrade to react-native v0.57.5
Browse files Browse the repository at this point in the history
remove xcode_10_setup
  • Loading branch information
ruddell committed Nov 14, 2018
1 parent f4711cb commit 94c7493
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 21 deletions.
3 changes: 1 addition & 2 deletions boilerplate/package.json.ejs
Expand Up @@ -21,8 +21,7 @@
"lintdiff": "git diff --name-only --cached --relative | grep '\\.js$' | xargs standard | snazzy",
"fixcode": "standard --fix",
<%_ } _%>
"storybook": "storybook start -p 7007",
"postinstall": "node xcode_10_setup.js"
"storybook": "storybook start -p 7007"
},
"dependencies": {
"apisauce": "0.16.0",
Expand Down
17 changes: 0 additions & 17 deletions boilerplate/xcode_10_setup.js
@@ -1,17 +0,0 @@
// See https://github.com/wix/react-native-navigation/issues/3608
var fs = require('fs')
var os = require('os')
var execSync = require('child_process').execSync

// this script only applies to iOS and xcode 10, so it should only run on Macs
if (os.platform() === 'darwin') {
// this section installs third-party code if missing
if (!fs.existsSync('node_modules/react-native/third-party')) {
console.log('Running third-party install script')
execSync('cd node_modules/react-native ; ./scripts/ios-install-third-party.sh ; cd ../../')
}

// this section runs the glog configure script which is currently required for react-native v0.57.x (see release notes)
console.log('Running glog configure script')
execSync('cd node_modules/react-native/third-party/glog-0.3.5 ; ../../scripts/ios-configure-glog.sh ; cd ../../../../../')
}
1 change: 0 additions & 1 deletion src/boilerplate/files.js
Expand Up @@ -45,7 +45,6 @@ module.exports = async function (context, props, jhipsterConfig) {
// generate some templates
spinner.text = '▸ generating files'
const templates = [
{ template: 'xcode_10_setup.js', target: 'xcode_10_setup.js' },
{ template: 'index.js.ejs', target: 'index.js' },
{ template: 'README.md', target: 'README.md' },
{ template: 'ignite.json.ejs', target: 'ignite/ignite.json' },
Expand Down
2 changes: 1 addition & 1 deletion src/lib/react-native-version.js
@@ -1,7 +1,7 @@
const { pathOr, is } = require('ramda')

// the default React Native version for this boilerplate
const REACT_NATIVE_VERSION = '0.57.4'
const REACT_NATIVE_VERSION = '0.57.5'

// where the version lives under gluegun
const pathToVersion = ['parameters', 'options', 'react-native-version']
Expand Down

0 comments on commit 94c7493

Please sign in to comment.