diff --git a/README.md b/README.md index d4231bb6..66c38f81 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,33 @@ Soon iOS users can test Streamyfin in beta via TestFlight. To join the beta prog We welcome any help to make Streamyfin better. If you'd like to contribute, please fork the repository and submit a pull request. For major changes, it's best to open an issue first to discuss your ideas. +### Development info + +Add this to AppDelegate.mm: + +``` +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ +// @generated begin react-native-google-cast-didFinishLaunchingWithOptions - expo prebuild (DO NOT MODIFY) sync-8901be60b982d2ae9c658b1e8c50634d61bb5091 +#if __has_include() +... + +[GCKCastContext sharedInstance].useDefaultExpandedMediaControls = true;` +#endif +``` + +Add this to Info.plist: + +``` +NSBonjourServices + + _googlecast._tcp + _CC1AD845._googlecast._tcp + +NSLocalNetworkUsageDescription +${PRODUCT_NAME} uses the local network to discover Cast-enabled devices on your WiFi network. +``` + ## 📄 License Streamyfin is licensed under the Mozilla Public License 2.0 (MPL-2.0). diff --git a/app.json b/app.json index 5931cc55..2da8a516 100644 --- a/app.json +++ b/app.json @@ -12,6 +12,7 @@ "resizeMode": "contain", "backgroundColor": "#ffffff" }, + "jsEngine": "hermes", "assetBundlePatterns": ["**/*"], "ios": { "userInterfaceStyle": "dark", @@ -23,6 +24,7 @@ "bundleIdentifier": "com.fredrikburmester.streamyfin" }, "android": { + "jsEngine": "jsc", "userInterfaceStyle": "light", "adaptiveIcon": { "foregroundImage": "./assets/images/icon.png", @@ -39,7 +41,13 @@ "expo-router", "expo-font", "react-native-compressor", - ["react-native-google-cast", {}], + "@config-plugins/ffmpeg-kit-react-native", + [ + "react-native-google-cast", + { + "useDefaultExpandedMediaControls": true + } + ], [ "react-native-video", { @@ -67,7 +75,14 @@ "expo-build-properties", { "ios": { "deploymentTarget": "14.0" }, - "android": { "minSdkVersion": 24 } + "android": { + "minSdkVersion": 24, + "packagingOptions": { + "jniLibs": { + "useLegacyPackaging": true + } + } + } } ] ], diff --git a/bun.lockb b/bun.lockb index 726d5716..685af799 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 3b5778bc..e8a3ceaf 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "preset": "jest-expo" }, "dependencies": { + "@config-plugins/ffmpeg-kit-react-native": "^8.0.0", "@expo/vector-icons": "^14.0.2", "@jellyfin/sdk": "^0.10.0", "@kesha-antonov/react-native-background-downloader": "^3.2.0",