mattermost-mobile/packager
Miguel Alatzar 7afa9aed01
[MM-23698] [MM-19559] Remove redux-offline and updated redux-persist (#4120)
* Remove redux-offline and configure redux-persist

* Fix typo

* Fix configure store

* Upgrade to redux-persist 6.0.0

* Add migration from redux-persist v4 to v6

* Replace AsyncStorage with MMKVStorage to boost storage speed

* Mock RNFastStorage

* Fix reactions test

* Fix clearing the store on logout

* Remove the need for LOGOUT_SUCCESS

* No need to pass persistConfig to middlewares()

* Remove unused imports

* Export connection

Accidentally removed this export.

* Add batch action name

Co-Authored-By: Elias Nahum <nahumhbl@gmail.com>

* Add batch action name

Co-Authored-By: Elias Nahum <nahumhbl@gmail.com>

* Add batch action name

Co-Authored-By: Elias Nahum <nahumhbl@gmail.com>

* Add batch action name

Co-Authored-By: Elias Nahum <nahumhbl@gmail.com>

* Fix delete post

* Fix leave channel

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-04-08 13:44:54 -07:00
..
generateModulePaths.js [MM-23520] Port mattermost-redux (#4088) 2020-03-31 11:09:26 -07:00
moduleNames.js [MM-23698] [MM-19559] Remove redux-offline and updated redux-persist (#4120) 2020-04-08 13:44:54 -07:00
modulePaths.js [MM-23698] [MM-19559] Remove redux-offline and updated redux-persist (#4120) 2020-04-08 13:44:54 -07:00
README.md Temporary replace Hermes with V8 (#3847) 2020-01-23 08:57:21 -07: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/YellowBox
    • 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