mattermost-mobile/patches
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
..
@gorhom+bottom-sheet+5.1.2.patch Update dependencies (#8721) 2025-04-07 09:30:06 +08:00
@mattermost+react-native-emm+1.6.2.patch feat(iOS): Add Microsoft Intune MAM integration with multi-server support (#9312) 2025-12-10 13:07:28 +02:00
@nozbe+watermelondb+0.28.0.patch Fix build on Xcode 16.3 (#8760) 2025-04-10 09:09:03 +08:00
@react-native-community+cli-platform-apple+15.1.3.patch Update dependencies and upgrade to RN 0.76.5 (#8421) 2025-01-16 07:11:32 -07:00
@react-native-community+netinfo+11.4.1.patch Update dependencies and upgrade to RN 0.76.5 (#8421) 2025-01-16 07:11:32 -07:00
@rneui+base+4.0.0-rc.8.patch Upgrade RN as well as update or replace other dependencies (#8011) 2024-06-19 09:33:45 +08:00
@shopify+flash-list+1.8.0.patch Fix build on Xcode 16.3 (#8760) 2025-04-10 09:09:03 +08:00
@types+commonmark-react-renderer+4.3.4.patch Update libraries and dependencies (#7678) 2023-11-25 07:46:13 +08:00
@types+react-syntax-highlighter+15.5.13.patch Upgrade RN as well as update or replace other dependencies (#8011) 2024-06-19 09:33:45 +08:00
@voximplant+react-native-foreground-service+3.0.2.patch [MM-62491] Removing exported receivers. (#8466) 2025-05-07 08:06:55 -06:00
expo-file-system+18.0.12.patch Secure Files and preview PDF inline (#8844) 2025-06-19 15:30:56 +08:00
expo-image+2.0.7.patch feat(iOS): Add Microsoft Intune MAM integration with multi-server support (#9312) 2025-12-10 13:07:28 +02:00
expo-modules-core+2.2.3.patch Update dependencies (#8721) 2025-04-07 09:30:06 +08:00
expo-video-thumbnails+9.0.3.patch feat(iOS): Add Microsoft Intune MAM integration with multi-server support (#9312) 2025-12-10 13:07:28 +02:00
jest-expo+52.0.6.patch Update dependencies (#8721) 2025-04-07 09:30:06 +08:00
react-native-exception-handler+2.10.10.patch T271: Prevent access to Android components if they do not need external communication (#7990) 2024-06-12 00:45:35 +08:00
react-native-incall-manager+4.2.0.patch [MM-57486] [MM-58008] Calls: Mobile ringing for incoming calls (#7984) 2024-07-03 10:22:46 -04:00
react-native-keyboard-aware-scroll-view+0.9.5.patch MM-62896 Keyboard blocks input (#8646) 2025-03-11 08:56:17 -04:00
react-native-keychain+10.0.0.patch Update dependencies (#8721) 2025-04-07 09:30:06 +08:00
react-native-math-view+3.9.5.patch Patch react-native-math-view for consistent inline LaTeX height on Android and iOS (#7742) 2024-01-18 12:30:31 +01:00
react-native-navigation+7.45.0.patch feat(iOS): Add Microsoft Intune MAM integration with multi-server support (#9312) 2025-12-10 13:07:28 +02:00
react-native-notifications+5.1.0.patch T271: Prevent access to Android components if they do not need external communication (#7990) 2024-06-12 00:45:35 +08:00
react-native-safe-area-context+5.3.0.patch Update dependencies (#8721) 2025-04-07 09:30:06 +08:00
react-native-section-list-get-item-layout+2.2.3.patch New UI for Emoji picker (#6933) 2023-01-12 13:38:44 +02:00
react-native-share+12.0.9.patch Update dependencies (#8721) 2025-04-07 09:30:06 +08:00
react-native-svg+15.11.2.patch Update dependencies (#8721) 2025-04-07 09:30:06 +08:00
react-native-video+6.12.0.patch Refactor gallery gestures (#8752) 2025-07-22 14:00:57 +08:00
react-native-walkthrough-tooltip+1.6.0.patch Push react native to 0.73.6 (#7863) 2024-04-22 12:44:39 +02:00
react-native-webrtc+124.0.5.patch Update dependencies (#8721) 2025-04-07 09:30:06 +08:00
react-syntax-highlighter+15.6.1.patch Update dependencies and upgrade to RN 0.76.5 (#8421) 2025-01-16 07:11:32 -07:00