Commit graph

53 commits

Author SHA1 Message Date
Elias Nahum
44eb76bed7
feat(iOS): Add Microsoft Intune MAM integration with multi-server support (#9312)
* refactor: implement custom ExpoImage wrapper for cache control

Add ExpoImage component with automatic cacheKey/cachePath management and replace all expo-image imports across the app

* refactor(ios): convert Gekidou to CocoaPods

Migrate from Swift Package Manager to CocoaPods, add Keychain write operations, refactor notification handler to remove react-native-notifications headers, and upgrade Swift to 5.0

* npm audit

* update fastlane

* feat(ci): integrate Intune MAM for enterprise builds with strict OSS protection

Add Intune submodule, CI actions, Fastlane configuration, developer scripts, pre-commit hooks, and validation workflows to enable internal MAM builds while protecting OSS repository

* fix tests by mocking @mattermost/intune

* feat: implement Intune MAM integration with comprehensive security enforcement

Add IntuneManager, refactor SecurityManager/SessionManager for MAM policies, implement native OIDC auth flow, add biometric enforcement, conditional launch blocking, and file protection controls

* fix alerts when no server database is present

* Unify cache strategy

* fix emit config changed after it was stored in the db

* Handle Mid-Session Enrollment Detection

* fix ADALLogOverrideDisabled missing in Fastfile

* fix flow for initial enrollment

* fix and add unit tests

* enable Intune configuration for PR and beta builds, CLIENT_ID should be changed before actual release

* Update intune submodule with addressed feedback

* fix validate-intune-clean workflow

* feat(intune): add comprehensive error handling and SAML+Entra support

Add production-ready error handling for native Entra authentication with
user-friendly i18n messages, comprehensive test coverage, and support for
Entra login when server requires SAML.

* update i18n

* update intune submodule

* update build-pr token

* fix race condition between server auth and intune enrollment

* fix CI workflow to build with intune

* use deploy key for intune submodule

* set the config directly in the submodule .git

* debug injection

* try setting GIT_SSH_COMMAND

* remove action debug

* fix server url input

* match pod cache with intune hash

* Fastfile and envs

* have workflows check for intune/.git

* have ci cache intune frameworks as well

* update Fastlane to set no-cache to artifacts uploaded

* fix s3 upload

* fix pblist template

* Attempt to remove the cache control for PR uploads to s3

* use hash from commit for S3 path

* Implement crash-resilient selective wipe with automatic retry and add removeInternetPassword to Gekidou Keychain

* Fix surface errors from intune login

* fix postinstall scripts

* use cacheKey for draft md images

* remove unnecessary double await during test

* Have isMinimumLicenseTier accept valid license sku tier as target

* Add missing Auth error messages

* remove the last period for intune errors in i18n

* do not call unenroll with wipe on manual logout

* Fix tests and Intune error messages

* do not filter any SSO type regardless of which is used for Intune

* fix 412 to not retry

* fix tests, app logs sharing and share_extension avatar cache

* apply setScreenCapturePolicy on license change

Co-authored-by: Eva Sarafianou <eva.sarafianou@mattermost.com>

* re-apply screen capture on enrollment

Co-authored-by: Eva Sarafianou <eva.sarafianou@mattermost.com>

* use userData from intunr login and prevent getMe

Co-authored-by: Eva Sarafianou <eva.sarafianou@mattermost.com>

* Check for Biometrics and Jailbreak as we used to

---------

Co-authored-by: Eva Sarafianou <eva.sarafianou@mattermost.com>
2025-12-10 13:07:28 +02:00
dependabot[bot]
a434059169
Bump nokogiri from 1.18.7 to 1.18.9 in /fastlane (#9017)
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.18.7 to 1.18.9.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.18.7...v1.18.9)

---
updated-dependencies:
- dependency-name: nokogiri
  dependency-version: 1.18.9
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-22 15:23:20 +08:00
Elias Nahum
9a83813c23
Fix build on Xcode 16.3 (#8760) 2025-04-10 09:09:03 +08:00
Elias Nahum
374f812b98
Update dependencies (#8721)
* update fastlane

* update dev dependencies

* update to eslint 9+

* update testing-library

* update react-intl

* update bottom-sheet

* update expo

* update reanimated

* upgrade msgpack

* upgrade datepicker

* upgrade react-navigation

* update sentry

* update FlasList

* update fuse.js moment-timezone node-html-parser and semver

* update gesture-handler

* update image-picker

* update react-native-keychain

* update react-native-localize

* update react-native-navigation

* update watermelonDB

* update react-native-permissions

* update react-native-safe-area-context and react-native-screens

* update react-native-share and react-native-svg

* update react-native-video and react-native-webrtc

* update @mattermost/rnutils

* update @mattermost/rnshare

* update @mattermost/hardware-keyboard

* fix isMainActivity

* update android dependencies

* fix upload file progress indicator

* fix entry update config & license

* revert to stable version of @sentry/react-native

* update react-intl again

* update moment-timezone

* upgrade @react-native-camera-roll/camera-roll

* update @react-native-clipboard/clipboard

* update @react-navigation again

* update @shopify/flash-list

* update eslint

* update expo again

* update html-entities

* update mime-db

* update react-native-permissions

* Revert "update react-intl again"

This reverts commit e8e6d5a60dfa56b82b810cbbd7cdffec7697ffc7.

* Revert "update react-intl"

This reverts commit c77f329bb38910aeeba03869b72d77a8b0e00ba1.

* update react-native-keychain

* update and patch react-intl

* mend

* feedback during review 1
2025-04-07 09:30:06 +08:00
dependabot[bot]
4fe0325e55
Bump nokogiri from 1.18.3 to 1.18.4 in /fastlane (#8708) 2025-03-22 08:27:49 +08:00
dependabot[bot]
5626b371e6
Bump nokogiri from 1.16.7 to 1.18.3 in /fastlane (#8614)
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.16.7 to 1.18.3.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/v1.18.3/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.16.7...v1.18.3)

---
updated-dependencies:
- dependency-name: nokogiri
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-20 08:11:03 +02:00
enzowritescode
a6a101cd76
Pin and bump nokogiri (#8608) 2025-02-19 12:50:22 -07:00
Elias Nahum
e99735e310
update fastlane (#8335) 2024-11-13 18:55:53 +08:00
unified-ci-app[bot]
d27d56f102
Bump app build number to 572 (#8321)
Co-authored-by: runner <runner@Mac-1731051082886.local>
2024-11-08 07:51:29 -05:00
dependabot[bot]
4ee91dc81b
Bump rexml from 3.3.7 to 3.3.9 in /fastlane (#8297)
Bumps [rexml](https://github.com/ruby/rexml) from 3.3.7 to 3.3.9.
- [Release notes](https://github.com/ruby/rexml/releases)
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md)
- [Commits](https://github.com/ruby/rexml/compare/v3.3.7...v3.3.9)

---
updated-dependencies:
- dependency-name: rexml
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-30 09:57:51 +08:00
Elias Nahum
394da4487c
Various Fixes (#8212) 2024-09-13 04:46:15 +08:00
Elias Nahum
d7e8015f71
update ruby gems dependencies to build the ios app (#8158) 2024-08-21 09:07:06 -04:00
dependabot[bot]
446e720124
Bump rexml from 3.2.9 to 3.3.3 in /fastlane (#8138)
Bumps [rexml](https://github.com/ruby/rexml) from 3.2.9 to 3.3.3.
- [Release notes](https://github.com/ruby/rexml/releases)
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md)
- [Commits](https://github.com/ruby/rexml/compare/v3.2.9...v3.3.3)

---
updated-dependencies:
- dependency-name: rexml
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-12 09:45:42 +03:00
Elias Nahum
0b83938d3c
update dependencies (#8131)
* update project depdendencies

* update detox dependencies

* update fastlane

* remove silencing console
2024-08-12 09:15:49 +03:00
Elias Nahum
e799135826
update fastlane (#8116) 2024-08-06 13:16:45 +03:00
Elias Nahum
23e85aac16
update fastlane (#8101) 2024-07-22 22:15:58 +08:00
Elias Nahum
b8c088cc70
Upgrade RN as well as update or replace other dependencies (#8011)
* start upgrade to RN 74

* migrate react-native-fs to expo-file-system

* exclude expo-asset module

* fix database manager remove directory

* fix: android network helper

* include expo on android

* temporarily disable android dep lock

* replace react-native-create-thumbnail with expo-video-thumnails

* update patches file version

* fix android build on 74

* create local library to replace MattermostManaged, Notifications and SplitView modules with new arch support

* migrate app to use new mattermost-rnutils library

* remove unused flipper class for android unsigned

* fix mattermost-rnutils android foldedObserver lifecycle

* use mattermost-rnutils on Android

* use mattermost-rnutils on iOS

* path react-native-navigation to not crash when activity is not NavigationActivity

* create local library for android share extension with new arch support

* Replace ShareModule with @mattermost/rnshare library

* remove ShareModule from android native code

* update react-intl

* update nodejs to 20.x.x npm to 10.x.x and dev deps

* update @gorhom/bottom-sheet

* use MattermostShare conditionally based on the platform

* update @react-native-camera-roll/camera-roll

* remove unused react-native-calendars

* fix metro config

* fix terminate session race condition

* remove unused analytics

* replace react-native-device-info with expo-application and expo-device

* update @react-native-clipboard/clipboard

* update @react-native-community/datetimepicker

* update @react-native-community/netinfo

* update @sentry/react-native

* update react-native-document-picker

* update react-native-gesture-handler

* update react-native-share

* update react-native-svg and react-native-svg-transformer

* update react-native-vector-icons

* update babel

* update react-native-shadow-2

* update semver

* remove react-native-svg-transformer and convert svg files to svg components

* fix @mattermost/rnshare new-arch build on android

* remove react-native-create-thumbnail resolution in build.gradle

* create @mattermost/hardware-keyboard library to replace hw-keyboard-events

* fix hardware-keyboard library

* fix rnutils library

* create @mattermost/keyboard-tracker library

* replace react-native-keyboard-tracking-view with @mattermost/keyboard-tracker

* fix: rnutils to not crash on lateinit context

* fix: rnutils delete database

* revert changes to session_manager

* Removed react-native-webview and added expo-web-browser instead

With expo-web-browser we no longer need the webview for SSO login
the SSO login is now done by using "custom Chrome tabs" on Android
and ASWebAuthenticationSession on iOS

* remove patch for react-native-keyboard-tracking-view

* replace react-native-linear-gradient with expo-linear-gradient

* replace react-native-in-app-review with expo-store-review

* fix: shared group database directory on ios

* replace react-native-fast-image with expo-image

* remove unusued type def for react-native-keyboard-tracking-view

* replace react-native-elements and react-native-button with @rneui

* node version

* update sizzling methods

* fix tests using jest-expo

* replace jail-monkey with expo-device

* update babel deps

* update typescript eslint

* update rn and expo

* react-native-document-picker @react-native-camera-roll/camera-roll @react-native-community/datetimepicker react-native-reanimated react-native-safe-area-context

* update patches

* update @sentry/react-native

* upgrade react-native-navigation

* update expo & expo-image

* upgrade to working version of @sentry/react-native

* update node, cocoapods, bundler, fastlane versions

* @testing-library/react-native and eslint-plugin-jest

* fix: FloatingTextInput causing a crash with reanimated

* update sentry, localize, @types/lodash and uuid

* fix floating text input label

* update react-native-video

* fix: cannot calculate shadow efficiently on some components

* fix: reduce motion warning for bottomSheet

* fix: shadow on YouTube component

* update react-native-webrtc expo and @typescript-eslint

* audit fix

* fix swizzling bad merge

* temp use of github dependency for @mattermost libraries

* feedback review

* feedback review

* npm audit fix

* update bundle deps

* update @mattermost/react-native-turbo-log

* update deps
2024-06-19 09:33:45 +08:00
unified-ci-app[bot]
73c9bf0589
Bump app build number to 502 (#7752)
Co-authored-by: runner <runner@Mac-1705050085350.local>
2024-01-22 11:44:02 +01:00
unified-ci-app[bot]
b405b3a872
Bump app build number to 500 (#7717)
Co-authored-by: runner <runner@Mac-1702629622103.local>
2023-12-15 13:16:45 +01:00
Elias Nahum
edef4ec4a3
Update libraries and dependencies (#7678)
* update js dependencies

* update react-native libraries

* update watermelonDB

* update RN to 0.72.7

* update fastlane

* fix remove_markdown/at_mention import

* update mattermost libraries

* update fastlane deps

* remove haptic-feedback patch

* update okhttp to 4.12.0 and patch netinfo to accurately identify VPN connections

* create ImaegStyles intersection type
2023-11-25 07:46:13 +08:00
Elias Nahum
f2b4312a57
Bump build to 489 (#7592)
* Bump app version number to 2.9.0

* Bump app build number to 489

* update fastlane
2023-10-12 10:55:27 +04:00
Elias Nahum
6fd8465e66
Bump version to 2.9.0 and build 486 (#7560)
* Bump app version number to 2.9.0

* Bump app build number to 486

* update fastlane
2023-09-28 08:43:25 +03:00
Elias Nahum
eb9262e389
Bump Version to 2.7.0 build 480 (#7475)
* Bump app version number to 2.7.0

* Bump app build number to 480

* update fastlane
2023-07-27 08:51:39 -04:00
Elias Nahum
817cfc8acd
Bump build to 474 (#7396)
* update fastlane

* Bump app build number to 474
2023-06-09 09:33:15 -04:00
Antonis Stamatiou
8d475d8a36
feat: Migrate to Github Actions (#7394) 2023-06-08 16:02:59 +03:00
Elias Nahum
519c146aac
Bump app build number to 467 (#7305) 2023-04-21 17:25:10 -04:00
Elias Nahum
c12f70a3eb
Bump app build number to 466 (#7285)
* Bump app build number to 466

* update fastlane
2023-04-14 18:34:15 -04:00
Elias Nahum
dee100f1d9
Fix mattermost incoming webhook action for fastlane (#7262)
* Fix mattermost incoming webhook action for fastlane

* feedback review

* fix fastlane bundler version
2023-04-04 10:26:21 -04:00
Elias Nahum
5bb7238fd1
Bump app build number to 463 (#7232) 2023-03-26 11:20:41 -03:00
Daniel Espino García
01b5fc0f9e
Bump app build number to 461 (#7192) 2023-03-07 20:28:41 +01:00
Elias Nahum
7aa5bd0611
Update Dependencies and bug fixes (#7000)
* update dependencies

* update dependencies

* feedback review

* update @mattermost/react-native-turbo-mailer
2023-01-24 09:14:23 +02:00
Elias Nahum
413d3c59dd
update dependencies (#6886)
* update dependencies

* update react-native-image-picker

* use Xcode 14.2 on CI

* downgrade readable-stream

* update fastlane

* Revert "use Xcode 14.2 on CI"

This reverts commit cb0ed81a85d79ca37d1dd7f23fd44450a3d5ddde.
2022-12-23 14:46:58 +02:00
Elias Nahum
83b251d1ff
update dependencies (#6840)
* update dependencies

* fix iOS SQLite.swift

* update fastlane dependencies
2022-12-08 09:46:44 +02:00
Elias Nahum
e4bff927c3
Bump app build number to 438 (#6767) 2022-11-14 19:48:14 +02:00
Avinash Lingaloo
3e7ebfe95c
[Gekidou] Bump app build number to 427 (#6671)
* Bump app build number to  427

* Update Gemfile.lock
2022-10-07 21:08:02 +04:00
Elias Nahum
335ec0c588
Bump app build number to 422 (#6617) 2022-09-03 04:57:35 -04:00
Elias Nahum
fa24f4a5e4
Bump app build number to 421 (#6604) 2022-08-30 00:13:00 -04:00
Elias Nahum
2703407e3a
Bump app build number to 420 (#6587) 2022-08-20 09:57:51 -04:00
Elias Nahum
63e6290c76
Gekidou bump build to 419 (#6576)
* Fix profile picture update locking the screen

* Bump app build number to  419

* update fastlane
2022-08-13 09:00:25 -04:00
Elias Nahum
dcc05956b6
Gekidou upgrade RN to 0.69.3 and dependencies (#6537)
* module dependencies

* update fastlane

* upgrade types dependencies

* update dev deps

* update react-native-notifications

* update react-native-keychain

* update sentry

* update detox

* Upgrade to RN 69.3

* increase MaxMetaspaceSize gradle opts

* feedback review
2022-08-08 09:06:20 -04:00
Avinash Lingaloo
9bbd59e4dd
[Gekidou] Bump app build number to 414 (#6501)
* Update Gemfile.lock

* Bump app build number to  414
2022-07-22 20:56:46 +04:00
Elias Nahum
eefeb3b0a7
Bump app build number to 411 (#6452) 2022-07-01 18:53:37 -04:00
Elias Nahum
f2777d46bb
Bump app build number to 403 (#6320) 2022-05-27 14:43:32 -04:00
Elias Nahum
19ecc150b6
[Gekidou] Update dependencies (#6305)
* Update dependencies

* Fix iOS build

* update fastlane
2022-05-24 08:47:12 -04:00
Elias Nahum
b6e3c2c66d
Bump app build number to 402 (#6301) 2022-05-20 14:17:29 -04:00
Elias Nahum
abe23b926c
Bump app version to 2.0.0 build to 393 2022-04-29 12:57:19 -04:00
Elias Nahum
b530dbeb09
[Gekidou] upgrade to RN 68 (old arch) (#6138)
* upgrade to RN 68 (old arch)

* remove test setup unused & commented mock

* Android target set to 30

* Fix theme when opening app from push notification

* upgrade common mark
2022-04-08 12:40:44 -04:00
Elias Nahum
73d23ea515
[Gekidou] ci updates (#6123)
* use Flipper 0.125.0

* update fastlane

* update ci images & use node 16.14.2

* remove npm-install argument

* Remove DFB_SONARKIT_ENABLED flag in iOS Release mode
2022-04-04 18:37:56 -04:00
Elias Nahum
527bd04170
Update dependencies 2022-03-26 20:33:13 -03:00
Elias Nahum
86dfcf0515
Fix android build 2021-12-12 13:22:16 +02:00