Skip to content

Commit 062018f

Browse files
refactor(build): modernize build script configuration
- Update build-config.json to use new script structure - Disable legacy setupExceptionHandler.js in favor of config plugin - Improve buildScripts.js with better TypeScript support and error handling - Add support for conditional script execution
1 parent 5eae598 commit 062018f

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

scripts/build-config.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"scripts": [
3-
"setupBatteryOptimizations.js",
4-
"notificationSounds.ts",
5-
"setupExceptionHandler.js"
3+
"prepareGoogleServices.js",
4+
{ "path": "setupExceptionHandler.js", "enabled": false, "reason": "Replaced by config plugin nativeExceptionHandler.cjs" }
65
]
76
}

scripts/buildScripts.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@ const CONFIG_FILE = path.join(__dirname, 'build-config.json');
77

88
// Default configuration
99
const DEFAULT_CONFIG = {
10-
scripts: ['setupBatteryOptimizations.js', 'notificationSounds.ts', 'setupExceptionHandler.js'],
11-
// Add enabled: false to disable a script without removing it from the list
12-
// Example: { path: "scriptName.js", enabled: false }
10+
scripts: [
11+
'prepareGoogleServices.js',
12+
'setupBatteryOptimization.js',
13+
'notificationSounds.js',
14+
'setupExceptionHandler.js',
15+
'setupScreenRecording.js'
16+
]
17+
// You can disable any by: { path: 'setupScreenRecording.js', enabled: false }
1318
};
1419

1520
// Create default config if it doesn't exist

0 commit comments

Comments
 (0)