mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-01-21 18:48:19 +00:00
Improves build performance by adding platform-specific cache paths including Gradle and iOS Pods directories. Updates cache keys to use app.config.js instead of package.json for more accurate invalidation. Enhances Metro minification with Hermes-optimized settings, adds ASCII-only output, and enables advanced compression optimizations like dead code elimination and variable reduction. Configures production environment variables for bundle size optimization across preview and production builds.
141 lines
3.4 KiB
JSON
141 lines
3.4 KiB
JSON
{
|
|
"cli": {
|
|
"version": ">= 9.1.0"
|
|
},
|
|
"build": {
|
|
"development": {
|
|
"resourceClass": "medium",
|
|
"cache": {
|
|
"key": "dev-{{ checksum \"bun.lock\" \"app.config.js\" }}",
|
|
"paths": [
|
|
"~/.bun/install/cache",
|
|
"node_modules",
|
|
".expo",
|
|
"android/.gradle",
|
|
"ios/Pods"
|
|
]
|
|
},
|
|
"environment": "development",
|
|
"developmentClient": true,
|
|
"distribution": "internal",
|
|
"android": {
|
|
"buildType": "apk"
|
|
},
|
|
"env": {
|
|
"EXPO_PUBLIC_WRITE_DEBUG": "1"
|
|
}
|
|
},
|
|
"development_tv": {
|
|
"resourceClass": "medium",
|
|
"cache": {
|
|
"key": "development-tv-{{ checksum \"bun.lock\" \"package.json\" }}",
|
|
"paths": ["~/.bun/install/cache", "node_modules", ".expo"]
|
|
},
|
|
"environment": "development",
|
|
"developmentClient": true,
|
|
"distribution": "internal",
|
|
"android": {
|
|
"buildType": "apk"
|
|
},
|
|
"env": {
|
|
"EXPO_TV": "1",
|
|
"EXPO_PUBLIC_WRITE_DEBUG": "1"
|
|
}
|
|
},
|
|
"development-simulator": {
|
|
"resourceClass": "medium",
|
|
"cache": {
|
|
"key": "development-simulator-{{ checksum \"bun.lock\" \"package.json\" }}",
|
|
"paths": ["~/.bun/install/cache", "node_modules", ".expo"]
|
|
},
|
|
"environment": "development",
|
|
"developmentClient": true,
|
|
"distribution": "internal",
|
|
"ios": {
|
|
"simulator": true
|
|
},
|
|
"env": {
|
|
"EXPO_PUBLIC_WRITE_DEBUG": "1"
|
|
}
|
|
},
|
|
"preview": {
|
|
"resourceClass": "large",
|
|
"cache": {
|
|
"key": "preview-{{ checksum \"bun.lock\" \"app.config.js\" }}",
|
|
"paths": [
|
|
"~/.bun/install/cache",
|
|
"node_modules",
|
|
".expo",
|
|
"android/.gradle",
|
|
"ios/Pods",
|
|
".next"
|
|
]
|
|
},
|
|
"distribution": "internal",
|
|
"env": {
|
|
"EXPO_OPTIMIZE_BUNDLE_SIZE": "1",
|
|
"NODE_ENV": "production",
|
|
"EXPO_PUBLIC_WRITE_DEBUG": "1"
|
|
}
|
|
},
|
|
"production": {
|
|
"resourceClass": "large",
|
|
"cache": {
|
|
"key": "production-{{ checksum \"bun.lock\" \"app.config.js\" }}",
|
|
"paths": [
|
|
"~/.bun/install/cache",
|
|
"node_modules",
|
|
".expo",
|
|
"android/.gradle",
|
|
"ios/Pods"
|
|
]
|
|
},
|
|
"environment": "production",
|
|
"channel": "0.36.0",
|
|
"android": {
|
|
"buildType": "app-bundle",
|
|
"image": "latest"
|
|
},
|
|
"ios": {
|
|
"image": "latest"
|
|
},
|
|
"env": {
|
|
"EXPO_OPTIMIZE_BUNDLE_SIZE": "1",
|
|
"NODE_ENV": "production"
|
|
}
|
|
},
|
|
"production-apk": {
|
|
"resourceClass": "large",
|
|
"cache": {
|
|
"key": "production-apk-{{ checksum \"bun.lock\" \"package.json\" }}",
|
|
"paths": ["~/.bun/install/cache", "node_modules", ".expo"]
|
|
},
|
|
"environment": "production",
|
|
"channel": "0.36.0",
|
|
"android": {
|
|
"buildType": "apk",
|
|
"image": "latest"
|
|
}
|
|
},
|
|
"production-apk-tv": {
|
|
"resourceClass": "large",
|
|
"cache": {
|
|
"key": "production-apk-tv-{{ checksum \"bun.lock\" \"package.json\" }}",
|
|
"paths": ["~/.bun/install/cache", "node_modules", ".expo"]
|
|
},
|
|
"environment": "production",
|
|
"channel": "0.36.0",
|
|
"android": {
|
|
"buildType": "apk",
|
|
"image": "latest"
|
|
},
|
|
"env": {
|
|
"EXPO_TV": "1"
|
|
}
|
|
}
|
|
},
|
|
"submit": {
|
|
"production": {}
|
|
}
|
|
}
|