Commit Graph

221 Commits

Author SHA1 Message Date
Gleidson Daniel Silva 5f621cb33f
Chore: Add @babel/plugin-transform-named-capturing-groups-regex (#4208) 2022-05-23 14:24:30 -03:00
Alex Junior 1e09589eca
Chore: Update @react-native-slider from 3.0.3 to 4.2.2 (#4176) 2022-05-20 00:14:23 -03:00
Alex Junior e38cfa61fe
Chore: Upgrade react-native-document-picker from 5.2.0 to 8.1.0 (#4172)
* chore: upgrade `react-native-document-picker` from 5.2.0 to 8.1.0

* change `DocumentPicker.pick` to `DocumentPicker.pickSingle`
2022-05-20 00:01:34 -03:00
Danish Ahmed Mirza f5625cd5f3
Chore: Migrate ActionSheets to `react-native-bottom-sheet` and make them dynamic (#4193)
* Install react-native-bottom-sheet

* Migrate ActionSheets to react-native-bottom-sheet

* Remove unnecessary props

* Minor fixes

* Enable OverDrag

* Fix position in landscape mode

* Prefix interface with I

* Remove react-native-scroll-bottom-sheet

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-05-19 13:53:45 -03:00
Gleidson Daniel Silva f99ec9f8e3
[FIX] iOS Share Extension not loading on development (#4187)
* remove deviceToken from constructor

* remove old patch to verify if is running on shareExtension

* add share extension verification

* Remove imports from `/notifications/` just to test the share extension

* Revert "Remove imports from `/notifications/` just to test the share extension"

This reverts commit b3492abad413a5a8a6cf3cd027e33044c437c627.

* changes from constructor to a plain function

* update pods

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-05-13 11:37:02 -03:00
Alex Junior e0bfdee70c
[IMPROVE] Create edited component for edited messages (#4048) 2022-05-10 14:40:08 -03:00
Gleidson Daniel Silva f60de94cba
Chore: Update react-native-progress from 4.1.2 to 5.0.0 (#4174) 2022-05-10 10:29:33 -03:00
Gleidson Daniel Silva f21d723c23
Chore: Update redux from 4.1.0 to 4.2.0 and react-redux from 7.2.4 to 8.0.1 (#4173) 2022-05-10 10:07:10 -03:00
Gleidson Daniel Silva 6eb2179088
Chore: Update ua-parser-js from 0.7.18 to 0.7.24 and set resolution (#4058)
* update ua-parser and set resolution

* update ua-parser and set resolution

* wip
2022-05-03 17:06:49 -03:00
Alex Junior d99b31849a
Chore: Evaluate Icon - Typescript (#3982)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-05-02 16:21:15 -03:00
Gleidson Daniel Silva c910f8abe1
Regression: Fix websocket connection (#4083)
* reinstall react native and pods

* anotation of the react native package to the branch fix-ios-connections

* fix makes the correct point to the address of the lib
2022-04-22 16:52:01 -03:00
Reinaldo Neto b75ac1de8b
[IMPROVE] Support Omnichannel icons (#3959)
* [IMPROVE] Support Channel Icons for Omnichannel

* Prop drilling sourceType

* create a column for source in WatermelonDB

* Add sms icon

* start of fetching

* removed usefetch

* custom icon to RoomHeader, RoomActions, RoomInfo

* minor tweak in interface

* fix margin

* add connected to sourceType

* make ts happy

* minor tweak

* fix storyshot

* refactor omnichannel source interface

* minor tweak roomActionsview

* Added storyshot

* minor tweak

* fix storyshot

* fix display extended without avatar

* fix connected object

* wip android build

Co-authored-by: Diego Mello <diegolmello@gmail.com>
Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
2022-04-14 23:27:36 -03:00
Reinaldo Neto 25c37c1a60
Chore: Migrate i18n to Typescript (#3988)
* Chore: Migrate i18n to Typescript and fix the Left and Right actions in RoomItem

* remove fix to roomItem

* update storyshot

* Chore: Migrate i18n to Typescript and fix the Left and Right actions in RoomItem

* remove fix to roomItem

* update storyshot

* fix removed itens

* fix changes requested

* interface for i18n, added resolveJsonModule to tsconfig.json

* tweak at error alert

* fix storyshot

* refactor comments

* create function isTranslated

* fix accessibilityLabel

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-04-14 17:30:41 -03:00
Alex Junior b0d408ebc8
Chore: add eslint-plugin-react-hooks lib (#4021)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-04-11 15:01:43 -03:00
Reinaldo Neto ec952b058a
Chore: Upgrade @types/react-native to 0.64.2 (#4026)
* Chore: Upgrade @types/react-native to 0.64.2

* minor tweak in comment

* minor tweak

* Chore: Upgrade @types/react-native to 0.64.2

* minor tweak in comment

* minor tweak

* fix accessibility within bordelessbutton
2022-04-08 11:27:10 -03:00
Gleidson Daniel Silva 5494037f78
Chore: Upgrade react-native-notifications to 4.2.4 (#3958)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-04-07 16:14:04 -03:00
Diego Mello f56bf819d2
Regression: Certificates not getting fetched properly (#3992)
* Working now

* Point to repo

* Fix completions for servers without certs
2022-03-30 18:46:09 -03:00
Gerzon Z 93c9d2efdf
Chore: use `@react-native-clipboard/clipboard` (#3950)
* add: @react-native-clipboard/clipboard

* create jest.setup.js file and centralizes all mocks on these folder for jest

Co-authored-by: GleidsonDaniel <gleidson10daniel@hotmail.com>
2022-03-29 12:09:44 -04:00
Alex Junior 891ada8942
Chore: Update codecov version (#3954) 2022-03-24 10:39:38 -03:00
Gleidson Daniel Silva 75f3f90913
[NEW] Collapsible Message (#3879)
* create new collapsible component

* create collapsible tests and update snapshot

* fix quote :)

* update snapshot

* add support to color

* add collapsed prop

* fix some styles

* fix tests

* wip

* clean

* add CollapsibleQuote story

* better style

* update snapshots

* add better tests

* remove testID

* update storyshot
2022-03-18 07:01:30 -03:00
Diego Mello 65c9aec2b4
[FIX] Issues after reconnecting (#3815) 2022-03-11 11:12:25 -03:00
Alex Junior cd00366613
Chore: Update react-native-mmkv-storage to 0.6.12 (#3634)
* chore: updating mmkv library

* feat: updating android ejson to use the getSecureKey new version

* feat: updating IOS files to use the getSecureKey new version

* feat: changing all mmkv methods to use sync calls

* feat: changing mmkv methods from Screen lock

* feat: changing all mmkv methods from login, ssl certificate and change/add server

* feat: changing all mmkv methods from login, ssl certificate and change/add server

* feat: changing all mmkv methods from logout

* feat: changing all mmkv methods from e2e

* fix: small fix at encryption and server drop down

* feat: changing all mmkv methods from set theme

* feat: changing all mmkv methods from openLink

* fix: setting up mmkv to works property on Android

* fix: fix an error to set the theme when open the app

* refactor: change the react-native branch (temporary)

* refactor: removing all `Async` from mmkv functions name

* refactor: removing await from unnecessary functions, removing console.log and update cocoapods

* refactor: removing unnecessary undefined from methods

* feat: creating a custom hook for mmkv

* refactor: changing the fetchPasscode to use the useUserPreferences hook

* refactor: changing setTheme from app/index

* refactor: small fix on setTheme

* chore: update mmkv to 0.6.11

* chore: update mmkv to 0.6.11

* chore: minor tweak

* chore: update mmkv to 0.6.12

* chore: mock NativeModules

* chore: fix test mmkv

* chore: removing custom MMKV JSI module, since is no more necessary after 0.6.11 version

* feat: removing some async calls from mmkv after update from develop

* feat: creating a function to get the initialTheme

* feat: removing unnecessary try/catch

* fix: fixing the blink white when open the app

* feat: changing useMMKVStorage to create from mmkv lib

* test: creating a mock for mmkv create function

* chore: fix errors on tablet

* minor tweak
2022-03-09 16:41:26 -03:00
Reinaldo Neto cbfa7bf43a
Chore: Migrate RoomInfoView to Typescript (#3778)
* Chore: Migrate RoomInfoView to Typescript

* tweak in avatar

* tweak with SubscriptionType

* minor tweak package

* Chore: Migrate RoomInfoView to Typescript

* tweak in avatar

* tweak with SubscriptionType

* minor tweak package

* react.reactelement | null

* minor tweak

* minor tweak livechatvisitor

* remove console.log

* Tweaks
2022-03-03 18:46:53 -03:00
Gerzon Z 352a718631
Chore: Migrate lib/encryption folder to TypeScript (#3639)
* Initial commit

* add types/bytebuffer, add type definitions to params and update interfaces

* add more types and type assertions

* update types

* change bang operator by type assertion and update class variables definitions

* add types for deferred class

* minor tweaks on types definitions

* add ts-ignore

* Update encryption.ts

* update deferred and encryption

* update encryption.ts

* Update room.ts

* update toDecrypt type

* initialize sessionKeyExportedString

* remove return types
2022-02-16 17:14:28 -04:00
Snyk bot 49e555013f
[Snyk] Security upgrade url-parse from 1.5.1 to 1.5.6 (#3746)
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-URLPARSE-2401205
2022-02-15 16:11:32 -03:00
Diego Mello ae47f14070
[FIX] #3606 merged using wrong JS SDK branch (#3709) 2022-02-10 09:37:22 -03:00
Diego Mello ab9d568528
[NEW] Stream to get individual presence updates (#3606)
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
2022-02-09 17:44:53 -03:00
Gerzon Z 2d1b093666
Chore: Migrate lib/utils to TypeScript (#3637)
* Migrate utils to TypeScript

* Add @types/semver

* Refactor compareServerVersion(currentVersion, oldVersion, func) to compareServerVersion(current, func, oldVersion)

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2022-02-07 14:44:04 -04:00
Gleidson Daniel Silva 04da545dec
[FIX] ios-testflight-experimental unable to find cache (#3684) 2022-02-03 13:04:20 -03:00
Gleidson Daniel Silva 2f7ff43ea0
[FIX] StoryShots not working for async rendered components (#3677) 2022-01-31 18:15:44 -03:00
Gleidson Daniel Silva f1456ff786
Chore: Migrate notification/push to Typescript (#3587) 2022-01-12 15:42:37 -03:00
Alex Junior b3028b7c29
chore: Change the lib `@types/url-parse` to devDependencies (#3585) 2022-01-11 11:37:25 -03:00
Gleidson Daniel Silva d7dd557b6b
Chore: Update React Native Device Info to 8.4.8 (#3560) 2022-01-11 11:30:32 -03:00
Gleidson Daniel Silva 01d22ed96b
Chore: Migrate Redux to Typescript PoC (#3565) 2022-01-11 10:48:01 -03:00
Diego Mello 404c7cff07
[IMPROVE] Connection stability (#3531) 2021-12-07 17:05:30 -03:00
Reinaldo Neto cedca3f0bf
Chore: Migrate JitsiMeetView to Typescript (#3498)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-11-17 17:13:06 -03:00
Alex Junior c216544cc4
[NEW] Preview or download attachments (#3470)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-11-16 12:59:58 -03:00
Reinaldo Neto 744893fa31
Chore: Migrate AuthenticationWebView to Typescript (#3441)
* Chore: Migrate AuthenticationWebView to Typescript

* minor tweak

* added @types/url-parser
2021-10-20 15:00:35 -03:00
Gerzon Z 76a99519ec
[NEW] Support new message parser (#3313)
* Add message parser to profile view and db

* Add md to db

* Remove changes to Xcode project

* Remove message-parser lib and add enable message parser field to User model

* Fix message parser

* Remove admin enableMessageParserEarlyAdoption

* Add NewMarkdown component

* Remove NewMarkdown component and add specific components for new message parser

* Add new parser components

* Fix BigEmoji

* Updated components and added more Code components

* update components and add storybooks

* Update Code component and add it to storybooks

* Update Mention component

* Minor tweaks

* Add server message parser validation

* Renamed folder, add @rocket.chat/message-parser, migrate some files to TypeScript

* Migrate components to TypeScript and fix styling

* Change interfaces and add TaskListComponent and styles

* Fix new markdown and styles

* Fix inlinecode

* Stop using server setting

* Use enableMessageParserEarlyAdoption on mapStateToProps

* Remove React.FC

* add link to bold, italic and strike

* Update parser components

* Fix missing components

* Minor tweak

* Fix lint and add getCustomEmojis

* Fix customEmojis

* Update emojis

* Minor tweak

* disconnect markdown from store

* Use @rocket.chat/message-parser@0.30.0

* Fix link style

* Unify lists and styles

* Remove style prop

* Use big emoji as a normal token

* Remove unnecessary memo

* Fix code styles

* Update tests

* Conditionally create renderer

* Use Context instead of prop drill

* Fix Link component

* Fix plain text regression and update tests

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-10-20 13:32:58 -03:00
Alex Junior f5058a51c0
Chore: Update Expo libs (#3433)
* chore: update the libraries `expo-av` and `expo-keep-awake`

* chore: update the library `expo-file-system`

* chore: update the library `expo-haptics`

* chore: update the library `expo-local-authentication`

* chore: update the library `expo-video-thumbnails`

* chore: update the library `expo-web-browser`

* chore: update the library `expo-apple-authentication`

* chore: update the library `react-native-unimodules`
2021-10-14 16:37:29 -03:00
Alex Junior dffa634beb
Chore: Remove eslint-config-airbnb (#3409)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-10-06 18:11:07 -03:00
Alex Junior ada2aed90b
Chore: Update Android SDK TARGET to 30 (#3363) 2021-10-06 17:35:19 -03:00
Diego Mello 8de6adcf79
Chore: Update WatermelonDB to 0.23.0 (#3386) 2021-10-01 17:35:13 -03:00
Gerzon Z f196a7afaf
Chore: Update Reanimated to 2.2.2 (#3341)
* Update reanimated to 2.2.0

* Podfile and Manifest

* Update MainApplication.java

* Merge develop to branch

* Update yarn.lock

* Run yarn

* Other fixes

* Fix for Android build https://github.com/software-mansion/react-native-reanimated/issues/2412#issuecomment-917958173

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-10-01 17:34:25 -03:00
Diego Mello 9ed6a3ee5a
Fix: @rocketchat/sdk not fetching correct commit (#3384)
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
2021-09-15 11:56:56 -03:00
Alex Junior 69a67ea998
Chore: Start Typescript migration (#3279) 2021-09-13 17:41:05 -03:00
Diego Mello 2c31fc2b84
Chore: Update Jitsi to 3.6.0 (#3292)
* Fix RN deps

* Update react-native-jitsi-meet

* Working on iOS from Jitsi source

* Dependencies installed

* Temp android

* Kinda working android

* Working on iOS with our SDK

* Use our maven repo

* Fix temp maven url

* Cleanup

* Fix maven url

* Bring chat back

* Add activity indicator

* Update react-native-jitsi-meet

* Fix loading on iOS

* Clear gradle cache

* Try 3.6.0

* Dummy change to update gradle cache

* Point to merged forks

* update pod commit
2021-08-30 11:27:02 -03:00
Gerzon Z 0a55467858
Regression: Orientation lock on Android not working (#3345)
* Update MainApplication.java

* Update MainApplication.java

* Downgrade react-native-orientation-locker

* Pods

Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-08-27 16:56:48 -03:00
Diego Mello fb0a4ed266
Chore: Update Bugsnag (#3300)
* Remove bugsnag-react-native

* Really remove bugsnag from android

* Install @bugsnag/react-native

* Logging error on Android correctly

* Cleanup

* Fix bugsnag mock

* iOS builds

* Fix CI mistake

* Upload dSYMs to Bugsnag

* Upload source maps automatically on iOS

* Cleanup

* Enable Bugsnag on share extension

* Add test error

* Use large macos

* Bump to 4.19.0 temporarily to test on TestFlight official

* Use temp keys

* Fix upload source maps for Official iOS build

* Remove tests

* Set version back to 4.18.0
2021-07-28 17:36:06 -03:00
Diego Mello 91f770cd37
Chore: Update React Native to 0.64.2 (#3245)
* Update non-dev patches

* Update dev patches

* Update minors

* Update dev minors

* Update few non semver

* Cookies

* datepicker, netinfo, base64 and bootsplash

* Patch cookies

* Update navigation

* Device info

* mocha

* localize

* react-native-picker-select

* vector icons, xregexp, popover

* try save husky

* document picker

* Remove emotion dev

* Downgrade some libs and make sure jest is passing

* Update storybook to stable

* mocha, axios, bootsplash

* Update lint job to node 15

* Update android image to api 29 and xcode to 12.4

* building

* Fix lint

* Get rid of Storybooks errors

* Patch react-native-simple-crypto

* Remove pods from git

* Stash simple crypto

* Stash Flipper

* Remove single crypto patch

* Add manage-pods command

* Update Xcode to 12.5.0

* Fix E2E tests

* Cleanup podfile

* Fix Storybook

* Remove RN patch

* Fix iOS build release

* Fix cocoapods cache on CI

* Try to fix pods using bundle

* Update gems

* Add app_store_connect_api_key env to CI

* APP_STORE_CONNECT_API_KEY -> APP_STORE_CONNECT_API_BASE64

* Rollback to older usage of app_store_connect_api_key

* tmp

* Run manage-pods on TestFlight

* Use Podfile instead of Podfile.lock for cache

* Increase no_output_timeout from 20 minutes to 40

* Restore node modules on upload-to-testflight

* Add pod install to docs
2021-07-21 12:50:39 -03:00