Commit graph

481 commits

Author SHA1 Message Date
Miguel Alatzar
524609eb36
Update react-native-elements (#4779) 2020-09-08 15:26:35 -07:00
Elisabeth Kulzer
4bcb595e5b
Add check for empty translation strings. (#4718)
* Add check for empty translation strings.

* Test

* Update mmjstools

* Resolve conflicts

* Revert translation test.

* Also use fake dir

* Also use fake dir

* Add translation checks to precommit hook. Remove from Makefile. Add to circleci.

* Fix script to keep it consistent.

* Keep consistent
2020-08-29 19:14:17 +02:00
Saturnino Abril
f05faaa949
E2E: Initial Detox setup for Mobile UI automation (#4535)
* initial Detox setup for mobile UI automation

* fix iOS allow permission on opening the app, add npm script to root folder, fix test when using longer site URL and add detox dependency to root for android build dependency

* remove detox proguardFile

* update packages and emulator

* change folder build on local and CI

* add test to post a message, ability to have test in isolation, server API commands, server config, dependency updates and update folder structure

* update snapshot

* update detox and do clean up

* update dependencies
2020-08-29 07:18:41 +08:00
Elias Nahum
e624fa7ecf
Update Dependencies (#4735)
* Update rudderstack dependency

* Upgrade sentry dependency

* Upgrade react-native-elements dependency

* Upgrade react-native-elements dependency

* Upgrade react-native-navigation dependency

* Upgrade react-native-permissions dependency

* Upgrade dev dependencies
2020-08-27 14:48:49 -04:00
Elias Nahum
183eec0fad
Upgrade depdendencies (#4725)
* @react-navigation/*
* react-native-navigation
* react-native-calendars
* react-native-gesture-handler
* react-native-reanimated
* react-native-safe-area-context
* react-native-screens
* react-native-video
2020-08-25 15:34:18 -04:00
Elias Nahum
9628dc9547
Update dev dependencies & some others (#4720)
* Dev dependencies

* Upgrade async-storage / netinfo / device-info / elements / mmkv dependencies
2020-08-24 21:22:00 -04:00
Elias Nahum
3fce45f308
Upgrade react-native-fast-image, react-native-localize, react-native-vector-icons, react-native-video & dev dependencies (#4698) 2020-08-20 08:13:35 -07:00
Elias Nahum
3e8e78c5fc
Bump Version to 1.35.0 and Build to 319 (#4699)
* Bump app build number to 319

* Bump app version number to 1.35.0
2020-08-18 20:09:15 -04:00
Elias Nahum
b84901e0bf
Upgrade react-native-permissions dependency (#4693) 2020-08-18 12:41:54 -04:00
Elias Nahum
a909583025
Upgrade react-native-mmkv-storage dependency (#4671) 2020-08-17 20:33:48 -04:00
Elias Nahum
40a264a4de
Upgrade react-native-image-picker dependency (#4670) 2020-08-13 20:32:02 -04:00
Elias Nahum
53fa5a1db7
Upgrade react-native-document-picker dependency (#4669) 2020-08-13 17:03:19 -04:00
Elias Nahum
c48ffd0f65
Upgrade react-native-device-info dependency (#4664) 2020-08-13 14:17:27 -04:00
Elias Nahum
27849beed4
Update react-native-elements (#4658) 2020-08-12 11:10:14 -04:00
Elias Nahum
24f6d2df92
Update moment-timezone & react-native-calendars dependency (#4646) 2020-08-06 17:24:47 -04:00
Elias Nahum
9773e321c1
Upgrade fuse.js dependency (#4640) 2020-08-05 12:08:05 -04:00
Elias Nahum
1abdd1be54
Upgrade sentry dependency (#4636) 2020-08-03 21:41:23 -04:00
Elias Nahum
6b7ca4674c
Update netinfo dependency and rn to 0.63.2 (#4614) 2020-08-03 10:18:37 -04:00
Elias Nahum
60418d57c7
Update async-storage dependency (#4599) 2020-07-24 10:06:39 -04:00
Miguel Alatzar
7a98260305
Bump app version number to 1.34.0 (#4600) 2020-07-21 11:08:03 -07:00
Elias Nahum
e7e0ca0d5c
Update camera-roll dependency (#4595) 2020-07-21 10:08:07 -04:00
Elias Nahum
a99e938e9c
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-07-20 18:08:11 -04:00
Elias Nahum
9c9aee69f4
Bump Version to 1.33.1 and build to 311 (#4576)
* Bump app build number to 311

* Bump app version number to 1.33.1
2020-07-15 15:56:17 -04:00
Elias Nahum
aa9d468c5e
Bump Version to 1.33.0 and build number to 308 (#4509)
* Bump app build number to 308

* Bump app version number to 1.33.0
2020-06-29 17:55:00 -07:00
Elias Nahum
30cd64b38b
Revert updated dependecies for SSO (#4499)
* Revert updated dependecies for SSO

* Fix test setup
2020-06-26 21:50:53 -04:00
Elias Nahum
48617a7ab2
Bump Version to 1.32.2 and Build number to 306 (#4494)
* Bump app version number to 1.32.2

* Bump app build number to 306
2020-06-26 16:42:56 -04:00
Miguel Alatzar
f6611f7093
[MM-26318] Improve cold start and channel switching times (#4452)
* Remove withEncryption

* Remove warm up

* Downgrade react-native-keychain
2020-06-19 16:12:15 -07:00
Elias Nahum
023109e250
Fix SSO and clear cookies (#4422)
* Fix SSO and clear cookies

* Fix unit tests

* Removed unnecessary argument

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

Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-06-15 14:00:13 -04:00
Elias Nahum
195011d678
Ensure previous state is cleared when logout (#4390) 2020-06-08 13:43:53 -04:00
Miguel Alatzar
a6cfe9ab5f
Bump app version number to 1.32.0 (#4318) 2020-05-21 09:04:25 -07:00
Elias Nahum
64173355f2
Fixes Android Share Extension (#4305)
* Fixes Android Share Extension

* Revert changes to share extension navigation
2020-05-19 17:22:40 -04:00
Elias Nahum
d3a6e166ad
MM-15758 Update dependencies including Fastlane (#4272)
* Update dependencies including Fastlane and disable Flipper on iOS

* Remove EventEmitter for previous doc-viewer

* Fix android crash when setting more channels buttons

* Downgrade fuse.js

* Upgrade deps to latest

* Update Podfile.lock

* Downgrade RNN to 6.4.0

* QA Review #2

* Upgrade fuse.js to 6.0.0
2020-05-18 11:24:47 -07:00
Elias Nahum
1ae5584cb1
MM-24115 Use Native + BuiltIn emojis instead of systemEmojis (#4274)
* MM-24115 Use BuiltInEmojis instead of systemEmojis

* Address QA found issues
2020-05-13 18:23:47 -04:00
Elias Nahum
36e55c95a2
MM-23570 Migrate from Segment to Rudder (#4293)
* Replace Segment with Rudder (ios not working)

* Update @assets reference and fix tests
2020-05-13 16:54:07 -04:00
Amit Uttam
520ddb37ce
Bump app version number to 1.31.0 (#4234) 2020-04-27 11:31:53 -03:00
Elias Nahum
a4e87a0e26
Bump app build number to 286 and version to 1.30.1 (#4221)
* Bump app build number to 286

* Bump app version number to 1.30.1
2020-04-23 13:36:57 -04:00
Elias Nahum
fda4948c8c
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-16 09:02:47 -04:00
Elias Nahum
aaa571db32
Upgrade to RN 0.62.2 (#4093)
* Upgrade to RN 0.62.0

* Update packager module paths

* Fix Android PasteableInput

* Fix regression on Android share extension credentials needed

* Update android/app/src/main/java/com/mattermost/rnbeta/RNPasteableEditTextOnPasteListener.java

* Reject commit if TSC check fails and Fix small eslint issues automatically

* Use super.getExportedCustomBubblingEventTypeConstants in RNPasteableTextInputManager

* Update to rn 0.62.2

Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-04-14 16:39:51 -04:00
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
Miguel Alatzar
ee4b85edcf
[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-03-31 11:09:26 -07:00
Elias Nahum
cb059a8c0e
Add husky pre-commit hook (#4083) 2020-03-29 15:31:43 -03:00
Elias Nahum
10d433cfab
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-03-26 21:23:50 -03:00
Elias Nahum
7d8a286192
Bump app build number to 278 (#4081)
* Update mattermost-redux

* Update Fastlane

* Bump app build number to 278
2020-03-26 20:27:45 -03:00
Andre Vasconcelos
a114b19ecc
MM-18455 Replace search bar component (#3998)
* Initiated basic migration to react-native-elements

- Search bar receives all right props without custom animations being necessary
- Need to test on different layouts and cases
- May be possible to unify android and iOS components. Attempt later

* Removing separated android/ios files

- Adding implementation of android searchbar 
- updating test snapshots

* WIP: Integrating leftComponent and adding focus animations

* Adding animations to left component on focus and blur events

* Removing repeated styles and useless props

* Updating snapshots

* Ensuring clearIcon renders when tapping search suggestions

- Also makes sure it prioritizes custom color attributes over default values for the search input

* Refactoring styles, removing clear icon animations

- Also removed useless ternary operations since the library itself already checks whether the search input is empty

* Replacing icon components with props whenever possible

- Removing useless styles

* memoizing styles, adding default props/values

* Memoize searchBarStyle with params

* Fixing backgroundColor

* Removing minWidth for cancel button

* Fixing styling issues on both iOS and android

* Updating snapshots post merge

* Making sure showCancel can be controlled by props

* Updating snapshots

* Fix clipped edges on iOS & cancel icon on Android

* Fixed radius, memoized styles

* Fixing styling issues found on Android

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-03-26 16:53:25 -03:00
Elias Nahum
0631623b13
Bump version to 1.30 and Build number to 277 (#4051)
* Bump app version number to 1.30.0

* Bump app build number to 277
2020-03-19 14:23:18 -03:00
Elias Nahum
8fbc988c90
Upgrade Dependencies (#4034)
* Upgrade Navigation library

* Fix background color on Select Server

* Upgrade Navigation library

* Apply patch to nav lib

* Upgrade RNN to 6.1.1

* Update Dependencies

* Feedback review

* Call clearNavigationComponents when reset to channel
2020-03-18 19:05:49 -03:00
Hossein Ahmadian-Yazdi
e8150fa7cc
[MM-21408] Make the name displayed consistent with teammate name display (#4021)
* update redux hash and function

* fix lint issue
2020-03-17 20:47:14 -04:00
Miguel Alatzar
b81a08bf50
Update mattermost-redux (#4031) 2020-03-13 18:27:51 -07:00
Elias Nahum
b8562e956b
MM-22975 Fix archive handle when server does not allow view archive channel (#4019)
* MM-22975 Fix archive handle when server does not allow vieweing an archive channel

* Update mm-redux ref
2020-03-09 17:06:02 -03:00
Elias Nahum
5f74491ea8
Upgrade Navigation library (#3997)
* Upgrade Navigation library

* Feedback review on Navigation Library

* Fix select server background color

* Fix iPhone 11 and 11 Pro Max navbar height

* Fix background color on Select Server

* Upgrade nav lib to 6.1.0

* Apply patch to nav lib

* Upgrade RNN to 6.1.1
2020-03-09 12:50:42 -07:00