Commit Graph

96 Commits

Author SHA1 Message Date
Elias Nahum
c9ce61d28b Markdown svg & image to respect size if available (#6030) 2022-03-07 15:20:07 -03:00
Elias Nahum
cef3295420 Fix when SVG uri does not return data in the url (#5973) 2022-02-15 21:32:28 -03:00
Elias Nahum
5ea470a235 V1 dependencies and bump to RN 0.67.2 (#5908)
* update dependencies

* eslint fixes

* Upgrade to RN 67

* update other deps

* Update to RN 0.67.2

* fix Android build (mmkv)

* Fix crash when root message is deleted from the thread screen

* Fix gif emoji playing at high speed on iOS ProMotion capable devices
2022-02-02 15:28:57 -03:00
Elias Nahum
62d1ff5744 update dependencies (#5886) 2022-01-03 10:10:01 +02:00
Joseph Baylon
92de752e2a Detox/E2E: Fix android build command and update deps (#5879)
* Detox/E2E: Fix android build command and update deps

* fix build error with assembleAndroidTest

Co-authored-by: Saturnino Abril <saturnino.abril@gmail.com>
2021-12-17 04:17:20 +08:00
Elias Nahum
687469b0cf Update dependencies (#5870)
* Update dependencies

* Remove storybook env type def

* fix android build
2021-12-15 16:44:35 +02:00
Elias Nahum
3e0ad378f1 Fix android broken build cause by rudderstack (#5856)
* Fix android broken build cause by rudderstack

* update dependencies
2021-11-30 11:39:12 +02:00
Elias Nahum
ec3b44498a Disable reachability test (#5812) 2021-11-04 09:17:13 -03:00
Elias Nahum
8287e620d8 Upgrade to rn 0.66.1 (#5727)
* Upgrade to rn 0.66.0

* Add keys to re-render post list and channel list

* Finish dep updates and rn to 0.66.1

* upgrade more dependencies

* Fix select_server tests
2021-10-31 13:57:07 -03:00
Elias Nahum
f1c3538283 MM-39054 patch Android react-native-file-viewer (#5717) 2021-10-06 10:12:10 -03:00
Elias Nahum
a28a3826fa update dependencies (#5706) 2021-10-01 11:45:53 -03:00
Elias Nahum
523777a207 Use @mattermost/react-native-paste-input to allow pasting of images & files (#5703)
* Use @mattermost/react-native-paste-input to allow pasting of images & files

* upgrade @mattermost/react-native-paste-input
2021-09-30 09:34:57 -03:00
Elias Nahum
ada6be9b7a Update dependencies (#5686)
* Update dependencies

* Fix unsigned builds
2021-09-22 13:54:12 -03:00
Elias Nahum
742d7ae7ba [MM-38035, MM-35883, MM-38067, MM-36939, MM-36039] Multiple Fixes (#5636) 2021-08-26 21:32:29 -04:00
Elias Nahum
3d5f8fbf9b Fix android share extension crash (#5596) 2021-08-05 01:32:01 -04:00
Elias Nahum
29fd07ede6 Upgrade Dependencies (#5578)
* Dependency updates

* Ensure post list starts at the beginning on channel switch

* add missing prop to settings_sidebar test

* Update detox deps
2021-07-29 19:06:37 -04:00
Elias Nahum
b9067a1cf1 Update dependencies (#5524)
* Update dependencies

* Fix tests
2021-07-12 16:14:11 -04:00
Elias Nahum
84d3bd54e7 Use commonmark & patch it instead of a fork (#5498) 2021-07-07 13:10:23 -04:00
Elias Nahum
073b836beb Bring back refresh control for channels and threads (#5511) 2021-07-07 13:03:35 -04:00
Elias Nahum
d60a2ab9c6 Path RNN to dismiss keyboard when screen is popped (#5490) 2021-07-01 14:13:57 -04:00
Elias Nahum
65a14f309b Allow reply from individual notifications on Android (#5494) 2021-06-29 14:32:08 -04:00
Elias Nahum
cb7f97e886 MM-36640 Bring back permalink view on search/recent mentions/pinned and saved posts (#5482)
* Downgrade RNN to avoid bug that cuts off permalink view on iOS

* Bring back permalink view on search/recent mentions/pinned and saved posts

* fix test snapshot
2021-06-24 12:46:02 -04:00
Elias Nahum
0a28c09710 Fix upload progress indicator when uploading multiple files at once (#5478)
* Fix upload progress indicator when uploading multiple files at once

* Don't use background task for uploads
2021-06-23 20:42:04 -04:00
Elias Nahum
f4f8379796 Update dependencies and setup project with node 16 / npm 7 (#5474) 2021-06-21 18:36:38 -04:00
Elias Nahum
298067ab65 Update react-native-cookies & react-native-webview + always use defaultDataStore (#5452)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-06-15 18:40:35 -04:00
Elias Nahum
0a4dafa127 MM-36256 avoid path traversal for Android image picker (#5432) 2021-06-08 09:11:27 -04:00
Elias Nahum
9f238d5ef4 Post List & post components refactored (#5409)
* Update transform to make Android's post list scroll smooth

* set start since metric when appStarted is false

* Refactor Formatted components

* Downgrade RNN to 7.13.0 & patch XCDYouTube to allow video playback

* Refactor Post list and all related components

* review suggestion rename hour12 to isMilitaryTime

* feedback review use aliases

* feedback review deconstruct actions in markdown_link

* feedback review simplify if/else statement in combined_used_activity

* Simplify if statement for consecutive posts

* Specify npm version to build iOS on CI

* Refactor network_indicator

* render Icon in file gallery with transparent background

* Increase timeout to scroll to bottom when posting a new message

* fix: scroll when tapping on the new messages bar

* fix: dismiss all modals

* fix navigation tests

* Handle dismissAllModals for iOS to prevent blank screens

* Prevent modal from dismissing when showing the thread screen in the stack

* Update app/components/image_viewport.tsx

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

* Update app/utils/post.ts

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

* Apply suggestions from code review

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

* fix: rename selector and prop

* Fix XCDYouTube patch

* Fix posting from a thread in the right channel

* do not render reply bar on the thread screen

* close previous permalink before showing a new one

* move XCDYouTube patch to ios/patches folder

* closePermalink directly instead of using an onClose prop

Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
2021-06-03 11:12:15 -07:00
Joseph Baylon
f648d6b883 Patch node modules minSdkVersion affected by RN 0.64.1 upgrade (#5389) 2021-05-15 06:58:21 +08:00
Elias Nahum
288c847518 Add Perf metrics, some cleanup & dep updates (#5378) 2021-05-12 08:48:20 -04:00
Elias Nahum
d42aba8287 MM-31510 fix: last message is rendered behind the input box on iPad (#5365) 2021-05-03 16:35:52 -04:00
Elias Nahum
0a2a490e81 Fixes for release 1.42 (#5339)
* Downgrade MMKV to 0.4.4

* Handle undefined in getMyTeams selector

* Set minimum server version to 5.31.3 and update unsupported URL
2021-04-19 08:41:27 -07:00
Elias Nahum
e0c45b86b4 Use RNN 7.11.3 (#5317) 2021-04-13 21:16:11 -04:00
Elias Nahum
f8a0f29237 Update dependencies (#5266)
* Update dependencies

* Fix lint, use npm@6

* Fix unit tests

* Dowgrade Fastlane

* Fix Fastlane script

* use android:api-29-node ci image

* Infer gradle json file from apk output folder

* Fastlane to Parse new version of gradle output-metadata.json
2021-04-06 11:12:31 -04:00
Elias Nahum
4ce430bdb8 MM-32725 Reduce KeyStore qty access (#5261) 2021-04-06 09:54:00 -04:00
Miguel Alatzar
e4b2183781 [MM-32587] [MM32602] Downgrade react-native-elements (#5156)
* Downgrade react-native-elements

* Trigger Build

* Update package-lock.json
2021-02-05 11:04:16 -07:00
Elias Nahum
9568a4592c MM-32183 Fix in-app notification + Android ack (#5132)
* MM-32183 Fix in-app notification + Android ack

* comment suggested change

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

Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2021-01-26 14:21:02 -07:00
Elias Nahum
a8a4d72075 Upgrade Dependencies (#5103)
* Update fastlane

* Update detox & deps

* Upgrade cocoapods

* Upgrade dependencies
2021-01-13 12:36:31 -07:00
Miguel Alatzar
8fb6510a32 [MM-31376] Do not subtract offset from accessories container (#5042)
* Do not subtract offset from accessories container

* Missing space

* Adjust autcomplete offsetY

* Adjust placement of autocomplete

* Space fix

* Unused onLayout
2020-12-17 19:14:00 -07:00
Miguel Alatzar
b3796e162c [MM-31231] Fix gap between post list and draft input (#5024)
* Update keyboard tracking view patch

* Always subtract bottomSafeArea if shown or will show

* Subtract bottomSafeArea if height is not 0 and is shown or will show
2020-12-10 19:39:15 -03:00
Elias Nahum
b226d451f3 update dependencies (#4958)
* update dependencies

* revert keychain update

* Update dependencies & Fastlane

* set path agnostic for bash in scrips

* Fix open from push notification race

* patch react-native-localize
2020-11-18 19:45:07 -07:00
Elias Nahum
c386e69cd8 Fix the Post List gap visible on iOS 14.2 (#4960) 2020-11-12 19:51:39 -03:00
Elias Nahum
dbd7bc8a51 Gallery Improvements (#4837)
* Open/Close Gallery transitions

* Include postId in file info & disable opening the gallery in some cases

* Add progress bar component

* Transition to gallery based on platform

* Improve getting the filename for non attachments

* Patch RNFetchBlob TS definition

* Add gallery types

* fix unit tests for message and post attachment

* add getLocalPath method

* Add react-native-share dependency

* Re-style gallery footer

* Refactor Gallery screen

* Double tap zoom in/out and translate

* Make android activity "transparent"

* Do not animate to height on dismissing gallery

* Open gallery for file uploads

* Fix borderRadius for gallery action button

* Use progress bar for file uploads

* Replace progress bar for file attachment document

* Upgrade RNN to 7.1.0 to fix share elements transitions

* Fix Gallery unit tests

* translate down when popping screen on iOS

* Swipe, Pan & Tap fixes

* fix gallery footer avatar eslint

* Fix gallery snapshot tests

* Use CompassIcon in Gallery

* Feedback from UX review

* Fix gallery UI for other file types

* Set other file type gallery button to 48pt
2020-11-06 21:17:27 -03:00
Elias Nahum
f0b66cd607 Upgrade Dependencies (#4917)
* Dev dependecies

* upgrade tinycolor2

* upgrade rn-placeholder

* upgrade react-native@0.63.3

* Upgrade react-native-vector-icons

* Upgrade react-native-screens

* Upgrade react-native-safe-area-context

* Upgrade react-native-reanimated

* Upgrade react-native-permissions

* Upgrade react-native-localize

* Upgrade react-native-image-picker

* Upgrade react-native-haptic-feedback

* Upgrade react-native-gesture-handler

* Upgrade react-native-file-viewer

* Upgrade react-native-document-picker

* Upgrade react-native-device-info

* Upgrade react-native-calendars

* Upgrade mime-db

* Upgrade jail-monkey

* Upgrade fuse.js

* Upgrade emoji-regex

* Upgrade deep-equal

* Upgrade @react-navigation

* Upgrade @react-native-community/netinfo

* Upgrade @react-native-community/clipboard

* Upgrade @react-native-community/cameraroll

* Upgrade @react-native-community/async-storage

* Upgrade @sentry/react-native

* Upgrade @types/react-native

* Upgrade jest
2020-10-28 13:24:27 -03:00
Elias Nahum
016a725732 MM-28105 do not crash when in-app notification shows (#4915)
* MM-28105 do not crash when in-app notification shows

* Use index.tsx to register the notification screen

* Fix notification e2e and some import cleanup

* Update iOS notification json

* e2e: Show the add reaction screen before receiving a notification

* Update snapshots

* Patch react-native-notifications to prevent iOS crash when opening

* Apply TM4J id

Co-authored-by: Joseph Baylon <joseph.baylon@mattermost.com>
2020-10-22 14:34:49 -03:00
Elias Nahum
30d4aa2a3e Build Improvements (#4884)
* Use AppGroupId from Info.plists instead of hardcoded constant

* Update script, ci & Makefile

* Update Cocoapods to 1.9.3

* Split android builds using ABI filters

* Update Fastlane deps & build scripts

* Update CI to use latests scripts

* Display app version & build number in select server screen

* Make generate scripts compatible with node < 12

* Build scripts

* add build script to package.json

* Update to use bundler 2.1.4 and CI with Xcode 12

* Fix script name for build:ios-unsigned

* Fix RN iOS scripts

* Update CI pods-dependencies step

* Add pipefail to android executor

* Update Fastlane

* Fix type in postinstall script

* update android executor and set TERM

* Fix S3 bucket name variable

* Apply suggestions from code review

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

* Fix master unit tests

* use requireActual in jest setup

* Jest setup to use react instead of React

Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
2020-10-15 22:09:36 -03: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
a909583025 Upgrade react-native-mmkv-storage dependency (#4671) 2020-08-17 20:33:48 -04:00