Commit graph

96 commits

Author SHA1 Message Date
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
Elias Nahum
223bd64a43
[MM-18349] Post menu delay animation speed and haptic feedback (#3214)
* Animate backdrop opacity in slide up panel

* Set delayLongPress to 75ms for post

* Add haptic feedback on slide up of post options

* Ease in slide up animation

* Add haptic feedback to android

* reduce long press delay for post options menu

* helper function for haptic feedback

* Add haptic feedback when opening post options menu

* Patch haptic feedback RN module on Android

* Fix tests

* Move hapticFeedback call to SlideUpPanel

* Decrease long press time for reaction
2019-09-07 07:45:07 +09:00
Elias Nahum
b8af8a3860
Lazy android native modules (#2973)
* Lazy loading Android modules

* Remove react-native-bottom-sheet

* Remove comments

* npm audit fix

* Update rnn-v2 modals

* audit fix

* Fix tests
2019-07-17 11:06:21 -04:00
Miguel Alatzar
f5a9c7df81 Fix Makefile indentation 2019-07-09 14:21:52 -07:00
Miguel Alatzar
74c7805e65
[MM-15994] Revert change to use RNN v2's npm script (#2922)
* Revert change to use RNN v2's npm script

* Remove RNN v2 npm script
2019-06-25 09:06:00 -07:00
Miguel Alatzar
cbe0c719ac [MM-15874] Add native code to support RNN v2 on Android (#2855)
* 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
2019-06-12 15:26:03 -04:00
Harrison Healey
5ff98e8a86 Merge branch 'master' into rnn-v2 2019-06-05 11:25:14 -04:00
Harrison Healey
8e1a9e8322
MM-15774 Add native code to support RNN v2 on iOS (#2848)
* Remove fix for MM-9233

* MM-15774 Add native code to support RNN v2 on iOS
2019-06-03 16:44:28 -04:00
Elias Nahum
1e8a1307af
Update netInfo to check for internet connectivity (#2850)
* Update netInfo to check for internet connectivity instead of using apple.com as a reference

* Fix network indicator position on tablets
2019-05-31 13:33:56 -04:00
Saturnino Abril
7fe198aade
fix fastlane for PR build (#2804) 2019-05-22 00:43:48 +08:00
Saturnino Abril
1b876fe85d [MM-15695] Move i18n check from shared pipelines to makefile as i18n-extract-ci (#2808)
* move i18n check from shared pipelines to makefile as i18n-extract-ci

* updated per feedback
2019-05-21 09:34:04 -07:00
Saturnino Abril
ff4374f59f [MM-15407] Add ability to upload compiled app to S3 via fastlane with S3 path as "<s3_bucket>/<version_number>/<build_number>/<file>.(apk | ipa | app.zip)" (#2796)
* add ability to upload compiled app to S3

* make upload_file_to_s3 as generic and rename function to qa_build_message

* change single to double quote for interpolation
2019-05-17 08:26:45 -04:00
Elias Nahum
f36ee37402
Upgrade to RN 0.59.6 and dependencies (#2777)
* Upgrade to RN 0.59.6 and dependencies

* Remove channel loader unused style

* Update to the latest netInfo that fixes a crash

* Do not set default timezone with moment

* Use RN 0.59.8
2019-05-13 13:33:18 -04:00
Elias Nahum
f43c357972 MM-15216 Fix crash when cookie does not set expiration date on iOS 2019-04-18 18:24:36 -04:00
Carlos Tadeu Panato Junior
9ae71cf393
add mmjstool as dev dep (#2707)
* add mmjstool as dev dep

* run the mmjstool to fix issues

* add extra line

* update makefile

* update per feedback

* revert strings per request
2019-04-09 15:35:22 +02:00
Elias Nahum
fc5f33c03c IWA support for Android and iOS (#2654) 2019-03-22 10:22:29 -07:00
Saturnino Abril
770bcd2a86
[MM-14238] Add make command to generate unsigned x86_64 build for VM/simulator (#2597)
* add make command to generate unsigned x86_64 build for VM/simulator

* updated per comment, added common function at makefile

* added start|stop_packger to start and stop phony
2019-03-02 02:22:41 +08: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
Jesús Espino
99a0d07adf Adding i18n-extract task to the Makefile (#2416) 2018-12-05 09:05:31 -03:00
Jani Uusitalo
f65cf86038 Fix 'pre-buid' typo in build-android target (#2281) 2018-10-19 09:00:15 -03:00
Elias Nahum
5e13bc2f7c Fix typo in build script (#2272) 2018-10-17 15:35:25 -04:00
Elias Nahum
0bc824150e
Update build script to run npm ci instead of npm install (#2264) 2018-10-14 20:42:09 -03:00
Elias Nahum
1b61a1cef1 Remove prepare-pr so it does not checkout the branch (#2245) 2018-10-10 14:37:12 +02:00
Elias Nahum
4e94f81c00
Update Fastlane scripts (#2231)
* Upload builds to store after a successful build

* Update script to build PRs
2018-10-09 12:05:24 -03:00
Elias Nahum
43cdaa81a5
Fix Option to capture and share video (#2225) 2018-10-05 17:46:47 -03:00
Elias Nahum
75a23dbf18
Fastlane update to include new build process (#2208) 2018-10-03 15:09:42 -03:00
Elias Nahum
637ca9244a
Update RN to version 0.57.0 (#2131) 2018-09-20 19:05:41 -03:00
Harrison Healey
c7dbf2f818
Remove .npminstall and don't explicitly build mattermost-redux (#2135)
* Remove .npminstall and don't explicitly build mattermost-redux

* Update mattermost-redux to merged version of changes
2018-09-18 15:09:41 -04:00
Elias Nahum
8e46b0d810 Fix moving Mattermost-unsigned.apk from the right directory (#2020) 2018-08-21 10:22:12 -04:00
Jani Uusitalo
f4cecd0ba8 Add -f to all ps calls in Makefile (#1919)
Output from procps' ps with -e only produces the process name, so
grepping for "cli.js start" fails every time. This change adds
(POSIX-compliant) -f to all ps calls to get the full command. AWK
print parameter is adjusted accordingly where needed.
2018-07-16 12:20:45 -04:00
Elias Nahum
be22eb9a42
Fix setting iOS app group id on build time 2018-06-25 13:51:24 -04:00
Elias Nahum
c171ae4809
Enable Android Unbundle strategy (perf part 2) (#1700)
* Enable Android Unbundle strategy

* feedback review

* Update modulePaths

* Add npm start and use it in the Makefile

* feedback review #2
2018-05-23 13:23:38 -04:00
Elias Nahum
e07a738dcd Remove orientation dependency (#1698)
* Remove orientation dependency

* Update NOTICES
2018-05-23 10:39:23 -04:00
Chris Duarte
e8712f9199 Cold startup js refactor (#1598)
* Switch to SingleDex and remove all locales

* WIP Mattermost Start Component for lazy loading modules

* Add files changed for native modules

* Add Entry component and app global object

* dispatch setStatusBarHeight for iOS

* Update screen imports

* Include Entry screen

* Refactor app to mattermost.android.js

* Override unnecessary java files

* Fix minor issues in changes

* Display empty state based on user credentials

Also, add proper background theme for empty loading screen

* Add native module constant cache support

* Fix startup theme regression

* Add Keychain support for credentials

* Fix Orientation regression

*  Fix SharedExtension regression

* Emit NATIVE_APP_LAUNCHED across bridge only once during cold start

* Add iOS Support

* Revert to previous implementation of i18n

* Fix styling issues

* Include listener for SERVER_VERSION_CHANGED

* Add SafeAreaView in Entry screen

* Register deviceToken early, in order to get iOS PN Support

* Include StartTimeModule

* Add ReplyFromPush support and remove NATIVE_APP_LAUNCHED listener

* Package native constants in StartTimeModule and avoid bridge calls

* Fix check-style errors

* Code cleanup

* Rename StartTimeModule to InitializationModule

* Remove NavigationApplication

* Documentation and minor changes

* Account for app opening after SharedExtension

* Refactor getIntl to getTranslations

* Move native module constants into it's own forked repos

* Include FetchBlob and DeviceInfo forked repos
2018-05-18 17:13:00 -04:00
Elias Nahum
23ca490525
Ability to upload other file types (#1662) 2018-05-11 18:05:49 -03:00
Elias Nahum
e748d8de33 Upgrade to RN 0.55.3 (#1600) 2018-04-19 17:00:12 -04:00
Harrison Healey
1e79923e95 MM-9982 Switched to npm (#1592) 2018-04-17 10:56:30 -03:00
Elias Nahum
e20b84c6d8 Upload progress indicator (#1562)
* Long post support

* Split file upload component

* Use fetch blob fork

* add progress to file upload

* Remove SERVER.PID from Makefile

* Preview only images

* remove unused prop
2018-04-04 09:14:26 -04:00
Jesse Hallam
58b72302d6 update eslint's comma-dangle rule to always-multiline (#1457)
* update eslint's `comma-dangle` rule to `always-multiline`

* add check and fix scripts to package.json

* Invoke `yarn fix` to adopt the updated eslint rules. No other changes are included.
2018-02-23 09:06:02 -05:00
enahum
94af2d5725
Fix Makefile (#1424) 2018-02-08 10:49:34 -03:00
enahum
d0f96c0887
[ICU-650] Upgrade React Native to 0.52.2 (#1421)
* Upgrade to React Native 0.52.2

* Bump app version to 1.7.0

* Update fastlane

* Upgrade mattermost redux

* feedback review
2018-02-07 18:24:01 -03:00
enahum
cd6fd9017f Fix Android app stuck in splash screen when killed by the OS (#1403) 2018-02-01 09:56:09 -05:00
Jesús Espino
10e21c1cc2 Makefile compatible with linux (#1384) 2018-01-26 14:38:37 -05:00
Chang Phui-Hock
dd180fdef7 In Linux, ps -e used in make stop task produces only the process name without the argument. Should use ps -ef. (#1370) 2018-01-24 16:35:40 -05:00
enahum
926ffe96c5
Android share extension (#1352)
* Android share extension

* Feedback review

* Feedback review
2018-01-17 18:17:02 -03:00
Martin Kraft
38d0c57466 RN-545: Builds, uploads to S3, notififes channel. (#1330)
* RN-545: Builds, uploads to S3, notififes channel.

* RN-545: Awesomeified the bot post.

* RN-545: Adds logos to qa builds. Uses env variable for mattermost() invocation to get exceptions via webhook.

* RN-545: Fix typo.
2018-01-10 16:26:05 -05:00
enahum
4ae1caa1a8
Make fastlane generic (#1328)
* Make fastlane generic

* Move release assets to dist folder for easier white labeling

* Remove at in help command
2018-01-04 12:49:19 -03:00
Chris Duarte
2e951cbfca Upgrade to RN 0.50.4 (#1303)
* Update to RN 0.50.4

* Fix intl context in post textbox
2017-12-22 19:39:51 -03:00
Martin Kraft
81a89f0b83 Inline help documentation for make commands. (#1274) 2017-12-12 15:57:49 -03:00
enahum
f16f8df0d3
Run podinstall if the OS is mac (#1250) 2017-12-08 18:19:30 -03:00