Elias Nahum
8e314022ca
MM-24285 Use FastImage instead of Image ( #4218 )
...
* Enable ESLint no-unused-vars
* Use FastImage instead of Image
* Update fast-image patch to support multiple cookies
* Fix ESLint errors
* Have jest run timers for post_textbox tests
* Feedback review
* Update snapshots
2020-04-28 11:36:32 -04:00
Elias Nahum
0e2bc65d70
MM-23848 consolidate store, upgrade mmkv and fix logout ( #4145 )
...
* MM-23848 consolidate store, upgrade mmkv and fix logout
* Feedback review
* Add store.ts to modulesPath
2020-04-18 10:18:24 -04:00
Miguel Alatzar
2d81b497cf
[MM-23520] Port mattermost-redux ( #4088 )
...
* Remove mattermost-redux
* Move mm-redux files into app/redux
* Add @redux path to tsconfig.json
* Fix imports
* Install missing dependencies
* Fix tsc errors
* Fix i18n_utils test
* Fix more imports
* Remove redux websocket
* Fix tests
* Rename @redux
* Apply changes from mattermost-redux PR 1103
* Remove mattermost-redux mention in template
* Add missing imports
* Rename app/redux/ to app/mm-redux/
* Remove test file
* Fix fetching Sidebar GM profiles
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-04-17 21:12:09 -07:00
Elias Nahum
03d406021f
Port WebSocket from mm-redux and batch actions ( #4060 )
...
* Port WebSocket from mm-redux and batch actions
* Update mm-redux and fix tests
* Change action name
* Naming batch actions
* Fix unit tests
* Dispatch connection change only if its different
* Remove comment
* Add Lint to TypeScript and fix linting errors
* Add WebSocket Unit Tests
* Revert from unwanted RN 0.62
2020-04-17 20:44:25 -07:00
Harrison Healey
f751b552b4
Add custom rule to prevent passing getState into dispatch ( #4010 )
...
* Add custom rule to prevent passing getState into dispatch
* Update package.json
2020-03-06 17:07:20 -05:00
Elias Nahum
696d6eef08
Re-enable ram-bundles ( #3907 )
2020-02-10 11:20:45 -07:00
Elias Nahum
7c09334dc4
Deps update ( #3806 )
...
* Dependecy updates
* Update dependencies
2020-01-20 13:20:03 -03:00
Miguel Alatzar
7733a714de
Show alert when not a member of a team ( #3784 )
2020-01-09 18:31:28 +08:00
Miguel Alatzar
1efb01deda
[MM-16593] Upgrade to RN 0.61.2 ( #3455 )
...
* [MM-16593] [MM-17175] [MM-17164] [MM-17189] [MM-17181] Android - Upgrade to RN 0.60 (#3145 )
* Upgrade to react-native 0.60
* Use @sentry/react-native
* Manually link @sentry/react-native
* Address review comments
* Jetify after install
* Call jetify from node_modules
* [MM-17785] iOS - Upgrade to RN 0.60 (#3153 )
* Upgrade to react-native 0.60
* Use @sentry/react-native
* Manually link @sentry/react-native
* Address review comments
* Jetify after install
* Call jetify from node_modules
* Get app building for iOS
* Revert react-native-image-picker upgrade
* Minor version upgrade of react-native-image-picker
* [MM-17142] Convert all string refs to callbacks (#3217 )
* Replace string refs
* Fix tests
* Don't use inline functions
* Fix mattermost-redux reversion from master merge
* [MM-18336] Upload Sentry debug symbols only when SENTRY_ENABLED is true (#3227 )
* Upgrade @sentry/react-native
* Run Sentry gradle tasks only when enabled
* Upgrade @sentry/react-native and remove extra Sentry build phase
* [MM-17144] Use Hermes (#3226 )
* Replace string refs
* Fix tests
* Don't use inline functions
* Fix mattermost-redux reversion from master merge
* Use Hermes
* bundleCommand ram-bundle no longer needed
* Require harmony-reflect only for Android
* Fix failing test
* Path react-native's splitLayoutProps (#3337 )
* [MM-18867] [MM-17186] [MM-18866] [MM-19447] [MM-18967] Upgrade to RN 0.61.2 (#3423 )
* Upgrade to RN 0.61.2
* Update rn-fetch-blob commit hash
* Update react-native-keyboard-tracking-view commit hash
* Use react-native-youtube with AVPlayer fix
* Fix jest mocks
* Use updated document picker API
* Remove unnecessary linking
* Revert "MM-17759 Add code highlighting (#3072 )"
This reverts commit 26b999e885 .
* Fix share extension
* Revert "Revert "MM-17759 Add code highlighting (#3072 )""
This reverts commit 52aca776b12dee3abe8646d0c90480f8528e86c1.
* Address PR reviews
* Rename patch to match version
* Update react-native-youtube patch
* Update dependencies
* Fix RNDocViewer reference
* Update tests and revert to redux-persist 4.10.2
* Revert "Revert "Revert "MM-17759 Add code highlighting (#3072 )"""
This reverts commit 5ef383be2619b1be6167c23f128ecb4b4ad25df9.
* Android fixes after dep upgrades
* Use fresco 2.0.0
* Use mattermost forks
* Use React-Core in Mattermost.scheme instead of react
* Remove packager (#3452 )
* Remove Pods from source control
* Fix unit tests
* Add new line before entering the keystore in gradle.properties
* set ios as working directory for cocoapods
* Cache cocoapods on circleCI builds
* set ios as working dir
* fix cocoapods cache key
* Unify fastlane and npm dependencies command
* Use package-lock.json checksum for npm cache
* Fix package.json and use the checksum as the cache key
* Fix package.json and use the checksum as the cache key
* changes to circleci.yaml fastlane and removing pods from git
* Fix Mattermost.xcodeproj
* Update coocoapods to 1.7.5 and fix xcode header search paths
* Update package-lock.json
* Remove unused tooltip component
* Fix incorrect ref
* Disable Hermes (#3460 )
* Revert "Remove packager (#3452 )"
This reverts commit b2a79e184b3242124dfdb91ae095f6ce3f4eb986.
* Disable Hermes :'(
* Update preloaded modules
* Fix packages moduleNames and modulePaths, update snapshots and update mm-redux (ts version)
* remove document picker from modulePaths
* Fix package-lock.json
* Add eslint disable rules
2019-10-28 15:04:24 -07:00
Amit Uttam
0f70af7b16
MM-15469 (Android) Alert if shared text is longer than message limit ( #3264 )
...
* MM-15469 Alert if shared text is longer than message limit
One can't manually enter text into the share extension's text box past 4000 characters (the default/defined text size limit). However, this restriction can still be circumvented by sharing a large item of text. In this latter case, the textarea displays just the first 4000 characters, but the value buffer still contains the entire shared text. On hitting "Send", the oversize text can still be shared.
This commit implements [MM-15469](https://mattermost.atlassian.net/browse/MM-15469 ) to better align the Android sharing user experience with the iOS experience.
Since a pre-existing i18n string was used, no additional translations are required.
Fixes https://github.com/mattermost/mattermost-server/issues/11431
* Add available characters remaining counter in Android Share textarea
Shows number of available characters remaining until textarea limit (default
= 4000). Similar to iOS experience.
**iOS (normal)**

**Android (normal)**

**iOS (past limit)**

**Android (past limit)**

* Don't limit size of Android Share extension text input box
Pasted shared text was getting cut off after hitting the `MAX_MESSAGE_LENGTH` for shared posts. Alert validation now checks this limit before allowing content to be posted, which made the `maxLength` limit redundant.
Context: https://github.com/mattermost/mattermost-mobile/pull/3264#issuecomment-540962933
2019-10-16 09:51:06 +03:00
Harrison Healey
3e0189430b
MM-18762 Remove some usage of deprecated lifecycle methods ( #3299 )
...
* MM-18762 Remove some usage of deprecated lifecycle methods
* Only load ProgressiveImage when a URI changes
2019-09-27 09:16:21 -04:00
Miguel Alatzar
459801d10b
[MM-17560] Await dismissAllModals and popToRoot prior to calling showSearchModal ( #3298 )
...
* Patch react-native-navigation
* Make navigation actions regular functions
* Fix unhandled promise rejection warning
* Missing semicolons
* Mock navigation actions
* Add unit tests for navigation actions
* Place all patches in patches directory
* Fix channel_info snapshot test
2019-09-25 15:23:45 -07:00
Amit Uttam
1f88356557
Expand text input area in Android Share extension to use available space ( #3262 )
2019-09-16 12:03:20 -07:00
Elias Nahum
89b96d51db
MM-16430 refactor app entry point ( #2924 )
...
* MM-16430 refactor app entry point
* iOS Extensions to use session token from KeyChain
* Remove token from general credentials entity
* Fix mattermost-managed.ios to return the cachedConfig
* Migrate server based keychain for android push notifications
* remove unneeded async
* Remove unneeded android InitializationModule
2019-06-26 15:21:20 -04:00
Elias Nahum
c3c3d85248
MM-16095 Android share extension to use keychain for authentication ( #2876 )
...
* MM-16095 Android share extension to use keychain for authentication
* Remove unnecessary comment
2019-06-15 14:13:54 -04:00
Harrison Healey
6e099d6a21
MM-15643 Send user to settings when passcode is required ( #2836 )
...
* MM-15643 Send user to settings when passcode is required
* Allow access to the managed config in the iOS extensions
2019-05-27 19:38:32 -04:00
Elias Nahum
bbfd6e820f
Fix select default channel ( #2800 )
...
* Fix select default channel
* use utility with channels in team object
* feedback review
* update mattermost-redux
2019-05-16 20:02:19 -04:00
Joram Wilander
189d2eb607
Update mattermost-redux ( #2775 )
2019-05-07 15:52:11 -07:00
Elias Nahum
5183bc4b50
MM-15215 fix crash caused by malformed post textbox localize string
2019-04-18 18:24:36 -04:00
Jesús Espino
c769b536ae
Creating the concept of RedirectChannel and use it before the DefaultChannel when we are redirecting the user ( #2674 )
...
* Creating the concept of RedirectChannel and use it before the DefaultChannel when we are redirecting the user
* upgrading to the last mattermost-redux version
2019-04-16 23:34:02 +02:00
Elias Nahum
3feaa8e6bb
iOS Native Share Extension (Swift) ( #2575 )
...
* iOS Native Share Extension (Swift)
* Re-arrange files
* Fix .gitignore
2019-02-26 14:31:57 -03:00
Elias Nahum
88f5848850
Dependencies update ( #2576 )
...
* Dependencies update
* Fix WebView
* Update to RN 0.58.5 and include the WebSocket fix
* Update react-native-video
* Fix RNFetchBlob
2019-02-20 17:17:04 -03:00
Sudheer
d627f96589
MM-13866 Never ending loader if app is un authenticated ( #2539 )
...
* if token or url is not present setState of loaded flag to true
2019-01-31 20:12:25 +05:30
Elias Nahum
3b1138f297
MM-13358 iOS Share extension channel list ( #2429 )
2018-12-10 09:15:37 -03:00
Elias Nahum
2f532182e5
Android extension channel list to display all items ( #2426 )
2018-12-07 01:12:18 -03:00
Elias Nahum
d5a9a058bb
Fetch team channels on extension init ( #2383 )
2018-11-27 19:45:44 -03:00
Elias Nahum
10e149a15d
Re-use app redux store to avoid conflicts ( #2362 )
2018-11-21 13:05:28 -03:00
Chris Duarte
5c24375dae
Reorganize sidebar channel items via pref ( #1928 )
...
* Reorganize sidebar channel items via pref
Add onItemPress
Add isModal prop
Add options modal for ungrouped sidebar
Filter zero item unreads from sections
Refactor unread filtering
Add SidebarSectionTypes to constants
Update mm-redux dep
Remove unused variable
* Fix lint errors. Update redux commit
* Add recent activity title
* Review feedback
* Fix issues after rebase
* Review feedback
* Change to use getAllDirectChannels
* Update redux library
* Fix lint error
* Update modal list snapshot
2018-11-09 13:06:21 -03:00
Harrison Healey
cfb372f75a
MM-11157 Switch ESLint to use eslint-config-mattermost ( #2247 )
2018-10-11 13:35:25 -04:00
Elias Nahum
b20e976dff
Properly handle max file size ( #2248 )
...
* Properly handle max file size
* Feedback review
2018-10-11 14:11:05 -03:00
Powhu Yang
e7d49d9267
Fix iOS Share Extension crashes ( #2242 )
2018-10-11 01:27:02 +05:30
Elias Nahum
637ca9244a
Update RN to version 0.57.0 ( #2131 )
2018-09-20 19:05:41 -03:00
Saturnino Abril
0afdbdd0f9
remove backgroundColor from styles.video of Android share extension that's causing app to crash ( #2119 )
2018-09-14 09:10:10 -03:00
Jesús Espino
1456c7cf29
MM-11718: Show only non-archived channels on Share ( #2059 )
2018-08-30 14:37:36 -04:00
Elias Nahum
96e9c6c707
Update rn-fetch-blob and CBA support for iOS ( #2033 )
...
* Update rn-fetch-blob and CBA support for iOS
* remove trusty
* remove react-native-fast-image dependency
2018-08-29 14:01:37 -04:00
Elias Nahum
1ec8dd4577
Fix video playback when filename contains spaces ( #1997 )
...
* Fix video playback when filename contains spaces
* Feedback review
2018-08-13 10:19:29 -03:00
Elias Nahum
cf85c3c1e8
Fix Android share extension and better handle errors ( #1965 )
2018-08-03 13:18:21 -04:00
Chris Duarte
ca2b4b2b3d
Pull share extension title from i18n ( #1931 )
...
* Pull share extension title from i18n
* Reuse current i18n id.
* Remove unused i18n key
2018-07-17 19:50:05 -04:00
Elias Nahum
40c7d9cb07
Add defensive code to prevent extension from not working ( #1872 )
2018-07-04 07:03:58 +08:00
Harrison Healey
dee530cce7
MM-11116 Re-added updated QuickTextInput component to work around RN issue ( #1859 )
2018-07-02 09:09:31 -04:00
Elias Nahum
5d12387d3b
Fix ios extension crash and ability to share from files app ( #1852 )
...
MM-11098 Fix ios extension crash and ability to share from files app
2018-06-29 16:36:42 -04:00
Elias Nahum
aade1f0e35
Merge branch 'release-1.9' into merge-1.9
2018-06-27 18:17:44 -04:00
Elias Nahum
ad12b11f85
Fix android extension search ( #1842 )
2018-06-27 13:15:06 -04:00
Elias Nahum
5680988590
Fix iOS Share extension crash ( #1832 )
2018-06-27 09:23:47 -04:00
Martin Kraft
3bde858a64
MM-10717: Update longpress buttons when add reaction, edit post, or d… ( #1779 )
...
* MM-10717: Update longpress buttons when add reaction, edit post, or delete post permissions change.
* MM-10717: Makes tooltip actions prop required.
* MM-10717: Switches all direct access of 'config' and 'license' to use selectors.
2018-06-21 08:43:17 -04:00
Elias Nahum
7b18047800
CBA support for iOS ( #1767 )
...
* CBA Support
* cba support for iOS Share extension
* Autologin with credentials
* Set initial config for ExperimentalClientSideCertEnable as false
* Fix mattermost-redux to cba branch
* feedback review
* Fix eslint
2018-06-19 19:35:42 -04:00
Jesse Hallam
8372e95d4a
add eslint-plugin-header, and --fix all ( #1726 )
2018-06-19 19:14:50 -04:00
Elias Nahum
e3e2456ecd
Fix android share extension channel switching and searching
2018-06-08 15:25:00 -04:00
Elias Nahum
8e0d167f95
Fix push notification and emm race conditions ( #1691 )
...
* Fix push notification and emm race conditions
* feedback review
* Removed unnecesary code
2018-05-22 11:02:14 -04:00
Elias Nahum
0d92c61a41
Cache team icon and set background to always be white ( #1669 )
2018-05-11 18:05:16 -03:00