mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-04-20 07:44:42 +01:00
feat: MPV player for both Android and iOS with added HW decoding PiP (with subtitles) (#1332)
Co-authored-by: Alex Kim <alexkim@Alexs-MacBook-Pro.local> Co-authored-by: Alex <111128610+Alexk2309@users.noreply.github.com> Co-authored-by: Simon-Eklundh <simon.eklundh@proton.me>
This commit is contained in:
committed by
GitHub
parent
df2f44e086
commit
f1575ca48b
24
plugins/withGitPod.js
Normal file
24
plugins/withGitPod.js
Normal file
@@ -0,0 +1,24 @@
|
||||
const { withPodfile } = require("@expo/config-plugins");
|
||||
|
||||
const withGitPod = (config, { podName, podspecUrl }) => {
|
||||
return withPodfile(config, (config) => {
|
||||
const podfile = config.modResults.contents;
|
||||
|
||||
const podLine = ` pod '${podName}', :podspec => '${podspecUrl}'`;
|
||||
|
||||
// Check if already added
|
||||
if (podfile.includes(podLine)) {
|
||||
return config;
|
||||
}
|
||||
|
||||
// Insert after "use_expo_modules!"
|
||||
config.modResults.contents = podfile.replace(
|
||||
"use_expo_modules!",
|
||||
`use_expo_modules!\n${podLine}`,
|
||||
);
|
||||
|
||||
return config;
|
||||
});
|
||||
};
|
||||
|
||||
module.exports = withGitPod;
|
||||
Reference in New Issue
Block a user