Files
mattermost-mobile/packager/README.md
Miguel Alatzar cbe0c719ac [MM-15874] Add native code to support RNN v2 on Android (#2855)
* Remove fix for MM-9233

* MM-15774 Add native code to support RNN v2 on iOS

* Android changes for RNN v2 upgrade

The activity visibility handling of NotificationsLifecycleFacade
is no longer needed in RNN v2. I've moved the lifecycle callbacks
we use for handling managed config into
ManagedActivityLifecycleCallbacks.java and registered them in
MainApplication's onCreate. Also, I've moved and updated the
loading and getting of the managed config into MainApplication

* Update moduleNames and modulePaths

* Use TAG in restrictionsReceiver

* Set launch screen onCreate

* Comment out registerActivityLifecycleCallbacks for now

* Remove setSoftInputMode call as it's handled in the manifest

* Remove clearHostOnActivityDestroy as that fix is no longer needed

* Rename to canLaunchEntry

* Remove replacement of super.onBackPressed()

* Remove react-navigation from packager files
2019-06-12 15:26:03 -04:00

35 lines
1.3 KiB
Markdown

### 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`
4. Run `node packager/generateModulePaths.js`
5. Run `eslint --fix packager/module*`
6. Open modulePaths.js
7. 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
8. 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