Commit Graph

103 Commits

Author SHA1 Message Date
Martin Kraft
168db7ec16 Cocoapods version (#3903)
* Installs and uses required cocoapods version.

* Updates circle ci command.

* Moves 'bundle install' into .podinstall target.

* Moves gem install command.

* Downgrades require bundler version.

* Verify/Install cocoapods required version

* Revert changes to cocoapods in ci config

* Always run bundle install for cocoapods

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-02-10 11:33:11 -07:00
Miguel Alatzar
ba76e5eac7 [MM-16232] ID loaded push notifications (#3562)
* [MM-16232] Android: Fetch notification in notificationReceiptDelivery (#3552)

* Fetch notification in notificationReceiptDelivery

* Fix patch

* Fix patch take 2

* No need to send user_id to ack endpoint

* Just putString in mNotificationProps

* Fix patch take 3

* Revert react-native-notifications patch

* Update patch and fix rejections

* Remove trailing newline in patch

* Move PushNotification changes to end of patch

* npm cache test

* Revert "npm cache test"

This reverts commit d31030aaee.

* Created patch after upgrading node

* Created patch after upgrading node take 2

* Remove androidx changes from patch

* Patch packages then jetify

* Cache node_modules without patches

* Remove adding of default message (#3557)

* [MM-16232] iOS: Fetch id-loaded push notification from server (#3556)

* Fetch notification from server

* Parse fetched notification response

* Fix id-loaded notifications for DM/GM's

* audit fix

* Only add keys if they exist

* Throw exception if response code is not 200
2019-11-18 19:29:49 -03:00
Elias Nahum
e848d8ea6e Update unsigned android and ios builds (#3508)
* Update unsigned android and ios builds

* Fix attach_workspace path

* attach_workspace to ~/

* Remove unnecessary exit 1
2019-11-05 08:44:36 -03: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 52aca776b1.

* 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 5ef383be26.

* 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 b2a79e184b.

* 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
Elias Nahum
b06c2d8541 Removing pods from source control, add cocoapods to circleCI (#3454) 2019-10-22 17:05:54 +03:00
Elias Nahum
010c099654 MM-18490 Migrate app builds to circleCi (#3373)
* Add pods to source control

* Update Fastlane to work with circleCi

* Configure circleCi workflows to build the app

* Set BRANCH_TO_BUILD env var to CIRCLE_BRANCH for PRs

* Use different context for each platform and type

* Fix regex

* Add i18n check
2019-10-21 23:42:49 +03:00
Elias Nahum
68cd878311 unsigned (#3430) 2019-10-17 16:56:01 +03: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
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