itsm_ysm/mobile/plugins/withGradleProps.js
itms-merge-dev efc3e66635 feat(itms): 모바일 앱 신규 (Expo, 12화면, OAuth password grant)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-19 17:10:46 +09:00

21 lines
795 B
JavaScript

const { withGradleProperties } = require('@expo/config-plugins')
/**
* PNG crunching 비활성화 + arm64-v8a 단일 아키텍처로 빌드 속도 향상.
* (CAMP/UIWS mobile 정본 복제 — PIL PNG ↔ AAPT2 cruncher 충돌 방지, Gradle OOM 방지.)
*/
module.exports = function withGradleProps(config) {
return withGradleProperties(config, (cfg) => {
const props = cfg.modResults
const set = (key, value) => {
const idx = props.findIndex((p) => p.key === key)
if (idx !== -1) props[idx].value = value
else props.push({ type: 'property', key, value })
}
set('android.enablePngCrunchInReleaseBuilds', 'false')
set('reactNativeArchitectures', 'arm64-v8a')
set('org.gradle.jvmargs', '-Xmx4096m -XX:MaxMetaspaceSize=1024m')
return cfg
})
}