diff --git a/ios/Podfile b/ios/Podfile index 2cb3ab1c..cfd01b62 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -37,6 +37,7 @@ end post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) + # Just Audio Config target.build_configurations.each do |config| config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [ '$(inherited)', diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist index 2cd122c4..0cc6281f 100644 --- a/ios/Runner/Info.plist +++ b/ios/Runner/Info.plist @@ -50,7 +50,7 @@ NSAllowsArbitraryLoadsForMedia - CADisableMinimumFrameDurationOnPhone - - - + CADisableMinimumFrameDurationOnPhone + + + \ No newline at end of file diff --git a/macos/Flutter/GeneratedPluginRegistrant.swift b/macos/Flutter/GeneratedPluginRegistrant.swift index 8acd7496..03d2712f 100644 --- a/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/macos/Flutter/GeneratedPluginRegistrant.swift @@ -11,6 +11,7 @@ import audioplayers_darwin import catcher import device_info_plus import flutter_secure_storage_macos +import just_audio import local_notifier import package_info_plus import path_provider_foundation @@ -30,6 +31,7 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { CatcherPlugin.register(with: registry.registrar(forPlugin: "CatcherPlugin")) DeviceInfoPlusMacosPlugin.register(with: registry.registrar(forPlugin: "DeviceInfoPlusMacosPlugin")) FlutterSecureStoragePlugin.register(with: registry.registrar(forPlugin: "FlutterSecureStoragePlugin")) + JustAudioPlugin.register(with: registry.registrar(forPlugin: "JustAudioPlugin")) LocalNotifierPlugin.register(with: registry.registrar(forPlugin: "LocalNotifierPlugin")) FLTPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FLTPackageInfoPlusPlugin")) PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) diff --git a/macos/Runner/DebugProfile.entitlements b/macos/Runner/DebugProfile.entitlements index 2788f09e..42d86e9b 100644 --- a/macos/Runner/DebugProfile.entitlements +++ b/macos/Runner/DebugProfile.entitlements @@ -6,10 +6,16 @@ com.apple.security.cs.allow-jit - com.apple.security.network.client - com.apple.security.network.server + com.apple.security.network.client + + + NSAppTransportSecurity + + NSAllowsArbitraryLoads + + diff --git a/macos/Runner/Release.entitlements b/macos/Runner/Release.entitlements index db95233f..b26cf8bd 100644 --- a/macos/Runner/Release.entitlements +++ b/macos/Runner/Release.entitlements @@ -4,10 +4,16 @@ com.apple.security.app-sandbox - com.apple.security.network.client - com.apple.security.network.server + + com.apple.security.network.client + + NSAppTransportSecurity + + NSAllowsArbitraryLoads + + diff --git a/pubspec.lock b/pubspec.lock index 48df1c5a..289375b0 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -998,6 +998,30 @@ packages: url: "https://pub.dev" source: hosted version: "6.6.1" + just_audio: + dependency: "direct main" + description: + name: just_audio + sha256: "7e6d31508dacd01a066e3889caf6282e5f1eb60707c230203b21a83af5c55586" + url: "https://pub.dev" + source: hosted + version: "0.9.32" + just_audio_platform_interface: + dependency: transitive + description: + name: just_audio_platform_interface + sha256: eff112d5138bea3ba544b6338b1e0537a32b5e1425e4d0dc38f732771cda7c84 + url: "https://pub.dev" + source: hosted + version: "4.2.0" + just_audio_web: + dependency: transitive + description: + name: just_audio_web + sha256: "89d8db6f19f3821bb6bf908c4bfb846079afb2ab575b783d781a6bf119e3abaf" + url: "https://pub.dev" + source: hosted + version: "0.4.7" lints: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 79af4100..ab96d9b7 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -55,6 +55,7 @@ dependencies: introduction_screen: ^3.0.2 json_annotation: ^4.8.0 json_serializable: ^6.6.0 + just_audio: ^0.9.32 logger: ^1.1.0 metadata_god: ^0.4.1 mime: ^1.0.2