mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-07 19:30:14 +00:00
* Expo-Router partial migration * Full migration to ExpoRouter * i18n * add tests * Merge branch 'main' into expo-router * align package-lock.json * i18n * feedback review * feedback review * android 16kb patch * Refactored emoji picker keyboard using a state machine * set android launch_screen in drawables instead of layout * no conditional hooks * remove duplicate call in test * address feedback * fix tests and address more feedback * small corrections * small corrections * small corrections * fix draft test * fix draft test 2 * remove navigateToScreen in draff test * fix nit in draft test * remove doc file * Feedback review * fix snapshots * improve test coverage * fix i18n * Upgrade t o RN 0.83, other dependencies and new architecture (#9737) * library hardware-keyboard android new arch support fix * library rnshare android new arch support fix * library rnutils android new arch support fix * library secure-pdf-viewer add new arch support * Enable new arch on iOS and Android * update emm and network client with new-arch * update intune to use new-arch * performance improvements * fix tests * fixes post input on new-arch * fix android emoji picker * remove doc * run tests in parallel * upgrade to React Native 0.83.9, Expo 55, React 19, and New Architecture Bumps core dependencies to their latest versions: - React Native 0.77.3 → 0.83.9 (New Architecture enabled) - React 18.3.1 → 19.2.5 - Expo SDK 52 → 55 - TypeScript 5.8.3 → 6.0.3 - Node.js 22.16.0 → 24.15.0 - react-native-reanimated 3.17.3 → 4.3.0 - Various other dependency upgrades Migrates iOS AppDelegate from Objective-C to Swift, updates Android build tooling and Gradle wrapper, refreshes all patches and font assets, and adapts app code, tests, and CI workflows throughout for API changes introduced by these upgrades. * remove unecessary dismissKeyboard in notifications * feedback review * update intune to use new-arch * update @mattermost deps * missing i18n string * additional fixes * update fastlane
72 lines
2.8 KiB
JavaScript
72 lines
2.8 KiB
JavaScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
module.exports = {
|
|
presets: [
|
|
['@babel/preset-env', {targets: {node: 'current'}}],
|
|
'babel-preset-expo',
|
|
'@babel/preset-typescript',
|
|
],
|
|
plugins: [
|
|
'@babel/plugin-transform-runtime',
|
|
['@babel/plugin-proposal-decorators', {legacy: true}],
|
|
['@babel/plugin-transform-flow-strip-types'],
|
|
['@babel/plugin-transform-class-properties', {loose: true}],
|
|
'@babel/plugin-transform-class-static-block',
|
|
['module-resolver', {
|
|
root: ['.'],
|
|
alias: {
|
|
'@actions': './app/actions',
|
|
'@agents': './app/products/agents',
|
|
'@assets': './dist/assets/',
|
|
'@calls': './app/products/calls',
|
|
'@client': './app/client',
|
|
'@components': './app/components',
|
|
'@constants': './app/constants',
|
|
'@context': './app/context',
|
|
'@database': './app/database',
|
|
'@helpers': './app/helpers',
|
|
'@hooks': './app/hooks',
|
|
'@i18n': './app/i18n',
|
|
'@init': './app/init',
|
|
'@keyboard': './app/keyboard',
|
|
'@managers': './app/managers',
|
|
'@playbooks': './app/products/playbooks',
|
|
'@queries': './app/queries',
|
|
'@routes': './app/routes',
|
|
'@screens': './app/screens',
|
|
'@share': './share_extension',
|
|
'@store': './app/store',
|
|
'@telemetry': './app/telemetry',
|
|
'@test': './test',
|
|
'@typings': './types',
|
|
'@utils': './app/utils',
|
|
'@websocket': './app/client/websocket',
|
|
},
|
|
}],
|
|
['module:react-native-dotenv', {
|
|
moduleName: '@env',
|
|
path: '.env',
|
|
blacklist: null,
|
|
whitelist: null,
|
|
safe: false,
|
|
allowUndefined: true,
|
|
}],
|
|
'react-native-worklets/plugin',
|
|
],
|
|
exclude: ['**/*.png', '**/*.jpg', '**/*.gif'],
|
|
overrides: [
|
|
{
|
|
include: ['./app/**', './test/**', './share_extension/**'],
|
|
|
|
// formatjs plugin is for build-time i18n message extraction only.
|
|
// It rejects dynamic message IDs (e.g. error.intl.id) which appear
|
|
// in production code that is not itself a message definition.
|
|
// Jest sets NODE_ENV=test, so the plugin is skipped during test runs.
|
|
env: {
|
|
production: {plugins: [['formatjs', {idInterpolationPattern: '[sha512:contenthash:base64:6]', ast: true}]]},
|
|
development: {plugins: [['formatjs', {idInterpolationPattern: '[sha512:contenthash:base64:6]', ast: true}]]},
|
|
},
|
|
},
|
|
],
|
|
};
|