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 }) }