mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-04-17 14:31:58 +01:00
chore: Apply linting rules and add git hok (#611)
Co-authored-by: Fredrik Burmester <fredrik.burmester@gmail.com>
This commit is contained in:
@@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user