Skip to content

Instantly share code, notes, and snippets.

View theprashant-one's full-sized avatar
🎯
Focusing

Prashant theprashant-one

🎯
Focusing
View GitHub Profile
@theprashant-one
theprashant-one / withDisableBundleCompression.js
Last active March 22, 2025 03:39
A Config Plugin for Expo that disables bundle compression in build.gradle by ensuring "bundle" is included in noCompress. Reference (https://x.com/margelo_io/status/1890789725872525381?t=sZABYYbVSb4Re3A8aww7Ew&s=19)
const { withAppBuildGradle } = require("@expo/config-plugins")
/**
* A Config Plugin to disable bundle compression in Android build.gradle.
* @param {import('@expo/config-plugins').ConfigPlugin} config
* @returns {import('@expo/config-plugins').ConfigPlugin}
*/
const withDisableBundleCompression = (config) => {
return withAppBuildGradle(config, (config) => {
let buildGradle = config.modResults.contents