forked from Ivasoft/mattermost-mobile
* 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
1.3 KiB
1.3 KiB
Steps to update the moduleNames.js and modulePaths.js
- Uncomment the code snippet in index.js
- Run the app on an Android device/simulator in development mode
- Open the App, enable the JavaScript debugger from the debug menu, and open the debugger
- Copy the console output starting with
module.exports =intopackager/moduleNames.js - Run
node packager/generateModulePaths.js - Run
eslint --fix packager/module* - Open modulePaths.js
- 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
- 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