mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-01-16 08:08:18 +00:00
Some checks failed
🤖 Android APK Build (Phone + TV) / 🏗️ Build Android APK (phone) (push) Has been cancelled
🤖 Android APK Build (Phone + TV) / 🏗️ Build Android APK (tv) (push) Has been cancelled
🤖 iOS IPA Build (Phone + TV) / 🏗️ Build iOS IPA (phone) (push) Has been cancelled
🤖 iOS IPA Build (Phone + TV) / 🏗️ Build iOS IPA (tv) (push) Has been cancelled
🔒 Lockfile Consistency Check / 🔍 Check bun.lock and package.json consistency (push) Has been cancelled
🛡️ CodeQL Analysis / 🔎 Analyze with CodeQL (javascript-typescript) (push) Has been cancelled
🏷️🔀Merge Conflict Labeler / 🏷️ Labeling Merge Conflicts (push) Has been cancelled
🚦 Security & Quality Gate / 📝 Validate PR Title (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Vulnerable Dependencies (push) Has been cancelled
🚦 Security & Quality Gate / 🚑 Expo Doctor Check (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Lint & Test (check) (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Lint & Test (format) (push) Has been cancelled
🚦 Security & Quality Gate / 🔍 Lint & Test (lint) (push) Has been cancelled
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
45 lines
1.2 KiB
JavaScript
45 lines
1.2 KiB
JavaScript
const { withGradleProperties } = require("expo/config-plugins");
|
|
|
|
function setGradlePropertiesValue(config, key, value) {
|
|
return withGradleProperties(config, (exportedConfig) => {
|
|
const props = exportedConfig.modResults;
|
|
const keyIdx = props.findIndex(
|
|
(item) => item.type === "property" && item.key === key,
|
|
);
|
|
const property = {
|
|
type: "property",
|
|
key,
|
|
value,
|
|
};
|
|
|
|
if (keyIdx >= 0) {
|
|
props.splice(keyIdx, 1, property);
|
|
} else {
|
|
props.push(property);
|
|
}
|
|
|
|
return exportedConfig;
|
|
});
|
|
}
|
|
|
|
module.exports = function withCustomPlugin(config) {
|
|
// Expo 52 is not setting this
|
|
// https://github.com/expo/expo/issues/32558
|
|
config = setGradlePropertiesValue(config, "android.enableJetifier", "true");
|
|
config = setGradlePropertiesValue(config, "org.gradle.daemon", "true");
|
|
config = setGradlePropertiesValue(config, "org.gradle.parallel", "true");
|
|
config = setGradlePropertiesValue(
|
|
config,
|
|
"org.gradle.configureondemand",
|
|
"true",
|
|
);
|
|
|
|
// Increase memory
|
|
config = setGradlePropertiesValue(
|
|
config,
|
|
"org.gradle.jvmargs",
|
|
"-Xmx4096m -XX:MaxMetaspaceSize=1024m",
|
|
);
|
|
return config;
|
|
};
|