chore: Apply linting rules and add git hok (#611)

Co-authored-by: Fredrik Burmester <fredrik.burmester@gmail.com>
This commit is contained in:
lostb1t
2025-03-16 18:01:12 +01:00
committed by GitHub
parent 2688e1b981
commit 92513e234f
268 changed files with 9197 additions and 8394 deletions

View File

@@ -1,19 +1,20 @@
const { withGradleProperties } = require('expo/config-plugins');
const { withGradleProperties } = require("expo/config-plugins");
function setGradlePropertiesValue(config, key, value) {
return withGradleProperties(config, exportedConfig => {
return withGradleProperties(config, (exportedConfig) => {
const props = exportedConfig.modResults;
const keyIdx = props.findIndex(item => item.type === 'property' && item.key === key);
const keyIdx = props.findIndex(
(item) => item.type === "property" && item.key === key,
);
const property = {
type: 'property',
type: "property",
key,
value
value,
};
if (keyIdx >= 0) {
props.splice(keyIdx, 1, property);
}
else {
} else {
props.push(property);
}
@@ -24,17 +25,13 @@ function setGradlePropertiesValue(config, key, value) {
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, "android.enableJetifier", "true");
// Increase memory
config = setGradlePropertiesValue(
config,
'org.gradle.jvmargs',
'-Xmx4096m -XX:MaxMetaspaceSize=1024m',
config,
"org.gradle.jvmargs",
"-Xmx4096m -XX:MaxMetaspaceSize=1024m",
);
return config;
};
};