Files
mattermost-mobile/packager
Elias Nahum 10572d17ad MM-26817 Upgrade to RN 0.63 (#4566)
* Upgrade to RN 0.63

* Bump to RN 0.63.1

* Fix RN patch

* Use JSC Intl version

* Update android/app/build.gradle

Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>

* Fix Android external storage permission

* Fix emoji imageUrl when no server url is present

* Patch react-native-image-picker

* Allow to post attachment only messages

Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-08-14 14:05:23 -04:00
..
2020-08-14 14:05:23 -04:00

Steps to update the moduleNames.js and modulePaths.js

  1. Uncomment the code snippet in index.js
  2. Run the app on an Android device/simulator in development mode
  3. Open the App, enable the JavaScript debugger from the debug menu, and open the debugger
  4. Copy the console output starting with module.exports = into packager/moduleNames.js
  5. Run node packager/generateModulePaths.js
  6. Run ./node_modules/.bin/eslint --fix packager/module*
  7. Open modulePaths.js
  8. Remove entries for files that don't need to exist on app load:
    • announcement_banner
    • options_context
    • remove_markdown
    • retry_bar_indicator
    • search_bar
    • sidebars
    • swiper
    • team_icon
    • react-deep-force-update
    • react-devtools-core
    • react-native-video
    • react-native/Libraries/Core/Devtools
    • react-native/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev
    • react-native/Libraries/LogBox
    • redux-devtools-instrument
    • remove-redux-devtools
    • remotedev-utils
    • socketcluster-client
    • stacktrace-parser
    • react-navigation
  9. Change development versions of certain files to production ones:
    • configureStore.dev.js -> configureStore.prod.js
    • react/cjs/react.development.js -> react/cjs/react.production.min.js
    • schedule/cjs/scheduler-tracing.development.js -> schedule/cjs/scheduler-tracing.production.min.js