chore: fix front

This commit is contained in:
2026-03-13 21:57:36 +01:00
parent a5f995cca9
commit f7be7ea5aa
5 changed files with 26 additions and 64 deletions
-29
View File
@@ -1,29 +0,0 @@
const { getDefaultConfig } = require('expo/metro-config');
const IS_PROD = process.env.NODE_ENV === 'production';
const config = getDefaultConfig(__dirname);
if (IS_PROD) {
config.transformer = {
...config.transformer,
babelTransformerPath: require.resolve('react-native-obfuscating-transformer'),
obfuscatorOptions: {
compact: true,
identifierNamesGenerator: 'hexadecimal',
renameGlobals: false,
rotateStringArray: true,
stringArray: true,
stringArrayEncoding: ['base64'],
stringArrayThreshold: 0.75,
// Disabled: incompatible with Hermes
selfDefending: false,
controlFlowFlattening: false,
deadCodeInjection: false,
transformObjectKeys: false,
debugProtection: false,
},
};
}
module.exports = config;
-2
View File
@@ -42,8 +42,6 @@
"devDependencies": {
"@expo/ngrok": "^4.1.3",
"@types/react": "~19.1.0",
"javascript-obfuscator": "^4.1.1",
"react-native-obfuscating-transformer": "^1.0.0",
"typescript": "~5.9.2"
},
"private": true,