Skip to content

Commit

Permalink
feat: Upgrade RN to 0.62.2 and remove android build files
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanjeev Yadav committed Apr 25, 2020
1 parent e9dcd6f commit 9d7612e
Show file tree
Hide file tree
Showing 3,862 changed files with 747 additions and 131,236 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
3 changes: 3 additions & 0 deletions .babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
};
12 changes: 0 additions & 12 deletions .babelrc

This file was deleted.

4 changes: 4 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
root: true,
extends: '@react-native-community',
};
80 changes: 42 additions & 38 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,69 +2,73 @@
; We fork some components by platform
.*/*[.]android.js

; Ignore templates for 'react-native init'
.*/local-cli/templates/.*

; Ignore the website subdir
<PROJECT_ROOT>/node_modules/react-native/website/.*

; Ignore the Dangerfile
<PROJECT_ROOT>/node_modules/react-native/danger/dangerfile.js

; Ignore "BUCK" generated dirs
<PROJECT_ROOT>/node_modules/react-native/\.buckd/

; Ignore unexpected extra "@providesModule"
.*/node_modules/.*/node_modules/fbjs/.*
.*/node_modules/fbemitter/.*

; Ignore duplicate module providers
; For RN Apps installed via npm, "Libraries" folder is inside
; "node_modules/react-native" but in the source repo it is in the root
.*/Libraries/react-native/React.js
<PROJECT_ROOT>/\.buckd/

; Ignore polyfills
.*/Libraries/polyfills/.*
node_modules/react-native/Libraries/polyfills/.*

; Ignore misbehaving dev-dependencies
.*/node_modules/reqwest/.*
.*/node_modules/xdl/.*
; These should not be required directly
; require from fbjs/lib instead: require('fbjs/lib/warning')
node_modules/warning/.*

; Ignore expo dependencies
; Flow doesn't support platforms
.*/Libraries/Utilities/LoadingView.js

; Ignore Expo SDK + some of it's dependencies temporarily:
; https://github.com/expo/expo/issues/162
.*/node_modules/expo/src/.*
.*/node_modules/react-native-gesture-handler/.*
[untyped]
.*/node_modules/@react-native-community/cli/.*/.*

[include]

[libs]
node_modules/react-native/Libraries/react-native/react-native-interface.js
node_modules/react-native/interface.js
node_modules/react-native/flow/
node_modules/expo/flow/

[options]
emoji=true

module.system=haste
esproposal.optional_chaining=enable
esproposal.nullish_coalescing=enable

module.file_ext=.js
module.file_ext=.json
module.file_ext=.ios.js

munge_underscores=true

module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/node_modules/react-native/\1'
module.name_mapper='^@?[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/Image/RelativeImageStub'

suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FlowFixMeProps
suppress_type=$FlowFixMeState
suppress_type=$FixMe

suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(5[0-3]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(5[0-3]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError

unsafe.enable_getters_and_setters=true
[lints]
sketchy-null-number=warn
sketchy-null-mixed=warn
sketchy-number=warn
untyped-type-import=warn
nonstrict-import=warn
deprecated-type=warn
unsafe-getters-setters=warn
inexact-spread=warn
unnecessary-invariant=warn
signature-verification-failure=warn
deprecated-utility=error

[strict]
deprecated-type
nonstrict-import
sketchy-null
unclear-type
unsafe-getters-setters
untyped-import
untyped-type-import

[version]
^0.53.0
^0.113.0
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# specific for windows script files
*.bat text eol=crlf
59 changes: 57 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,59 @@
# OSX
#
.DS_Store

# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
ios/build/
android/build/
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate

# Android/IntelliJ
#
build/
.idea
.gradle
local.properties
*.iml

# node.js
#
node_modules/
npm-debug.log
yarn-error.log

# BUCK
buck-out/
\.buckd/
*.keystore
!debug.keystore

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/

*/fastlane/report.xml
*/fastlane/Preview.html
*/fastlane/screenshots

# Bundle artifact
*.jsbundle

# CocoaPods
/ios/Pods/
6 changes: 6 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
bracketSpacing: false,
jsxBracketSameLine: true,
singleQuote: true,
trailingComma: 'all',
};
1 change: 0 additions & 1 deletion android/.idea/.name

This file was deleted.

22 changes: 0 additions & 22 deletions android/.idea/compiler.xml

This file was deleted.

3 changes: 0 additions & 3 deletions android/.idea/copyright/profiles_settings.xml

This file was deleted.

19 changes: 0 additions & 19 deletions android/.idea/gradle.xml

This file was deleted.

10 changes: 0 additions & 10 deletions android/.idea/libraries/android_jsc_r174650.xml

This file was deleted.

12 changes: 0 additions & 12 deletions android/.idea/libraries/appcompat_v7_23_0_1.xml

This file was deleted.

11 changes: 0 additions & 11 deletions android/.idea/libraries/bolts_android_1_1_4.xml

This file was deleted.

11 changes: 0 additions & 11 deletions android/.idea/libraries/bolts_tasks_1_4_0.xml

This file was deleted.

12 changes: 0 additions & 12 deletions android/.idea/libraries/drawee_0_6_1.xml

This file was deleted.

12 changes: 0 additions & 12 deletions android/.idea/libraries/drawee_1_3_0.xml

This file was deleted.

12 changes: 0 additions & 12 deletions android/.idea/libraries/fbcore_0_6_1.xml

This file was deleted.

12 changes: 0 additions & 12 deletions android/.idea/libraries/fbcore_1_3_0.xml

This file was deleted.

12 changes: 0 additions & 12 deletions android/.idea/libraries/fresco_0_6_1.xml

This file was deleted.

12 changes: 0 additions & 12 deletions android/.idea/libraries/fresco_1_3_0.xml

This file was deleted.

Loading

0 comments on commit 9d7612e

Please sign in to comment.