Skip to content

Commit

Permalink
build: version 2.2.1
Browse files Browse the repository at this point in the history
updated dependencies and minor code quality fixes
  • Loading branch information
Joran-Dob committed Apr 2, 2024
1 parent ddf69b3 commit 7017245
Show file tree
Hide file tree
Showing 16 changed files with 243 additions and 225 deletions.
2 changes: 1 addition & 1 deletion .flutter-plugins-dependencies
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"video_player_avfoundation","path":"/Users/jorandob/.pub-cache/hosted/pub.dev/video_player_avfoundation-2.3.4/","native_build":true,"dependencies":[]}],"android":[{"name":"video_player_android","path":"/Users/jorandob/.pub-cache/hosted/pub.dev/video_player_android-2.3.4/","native_build":true,"dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[{"name":"video_player_web","path":"/Users/jorandob/.pub-cache/hosted/pub.dev/video_player_web-2.0.10/","dependencies":[]}]},"dependencyGraph":[{"name":"video_player","dependencies":["video_player_android","video_player_avfoundation","video_player_web"]},{"name":"video_player_android","dependencies":[]},{"name":"video_player_avfoundation","dependencies":[]},{"name":"video_player_web","dependencies":[]}],"date_created":"2023-09-30 16:01:43.021107","version":"3.13.0"}
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"video_player_avfoundation","path":"/Users/jorandob/.pub-cache/hosted/pub.dev/video_player_avfoundation-2.5.6/","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"android":[{"name":"video_player_android","path":"/Users/jorandob/.pub-cache/hosted/pub.dev/video_player_android-2.4.12/","native_build":true,"dependencies":[]}],"macos":[{"name":"video_player_avfoundation","path":"/Users/jorandob/.pub-cache/hosted/pub.dev/video_player_avfoundation-2.5.6/","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"linux":[],"windows":[],"web":[{"name":"video_player_web","path":"/Users/jorandob/.pub-cache/hosted/pub.dev/video_player_web-2.3.0/","dependencies":[]}]},"dependencyGraph":[{"name":"video_player","dependencies":["video_player_android","video_player_avfoundation","video_player_web"]},{"name":"video_player_android","dependencies":[]},{"name":"video_player_avfoundation","dependencies":[]},{"name":"video_player_web","dependencies":[]}],"date_created":"2024-04-02 19:17:56.081921","version":"3.19.3"}
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.2.1] - 02/04/2024.

### Fixed
- Updated dependencies.
- Resolved minor lint issues.

## [2.2.0] - 30/09/2023.

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion example/.flutter-plugins-dependencies
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"video_player_avfoundation","path":"/Users/jorandob/.pub-cache/hosted/pub.dev/video_player_avfoundation-2.3.4/","native_build":true,"dependencies":[]},{"name":"wakelock","path":"/Users/jorandob/.pub-cache/hosted/pub.dev/wakelock-0.6.1+2/","native_build":true,"dependencies":[]}],"android":[{"name":"video_player_android","path":"/Users/jorandob/.pub-cache/hosted/pub.dev/video_player_android-2.3.4/","native_build":true,"dependencies":[]},{"name":"wakelock","path":"/Users/jorandob/.pub-cache/hosted/pub.dev/wakelock-0.6.1+2/","native_build":true,"dependencies":[]}],"macos":[{"name":"wakelock_macos","path":"/Users/jorandob/.pub-cache/hosted/pub.dev/wakelock_macos-0.4.0/","native_build":true,"dependencies":[]}],"linux":[],"windows":[],"web":[{"name":"video_player_web","path":"/Users/jorandob/.pub-cache/hosted/pub.dev/video_player_web-2.0.10/","dependencies":[]},{"name":"wakelock_web","path":"/Users/jorandob/.pub-cache/hosted/pub.dev/wakelock_web-0.4.0/","dependencies":[]}]},"dependencyGraph":[{"name":"video_player","dependencies":["video_player_android","video_player_avfoundation","video_player_web"]},{"name":"video_player_android","dependencies":[]},{"name":"video_player_avfoundation","dependencies":[]},{"name":"video_player_web","dependencies":[]},{"name":"wakelock","dependencies":["wakelock_macos","wakelock_web"]},{"name":"wakelock_macos","dependencies":[]},{"name":"wakelock_web","dependencies":[]}],"date_created":"2023-09-30 16:01:29.270889","version":"3.13.0"}
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"video_player_avfoundation","path":"/Users/jorandob/.pub-cache/hosted/pub.dev/video_player_avfoundation-2.5.6/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"wakelock","path":"/Users/jorandob/.pub-cache/hosted/pub.dev/wakelock-0.6.1+2/","native_build":true,"dependencies":[]}],"android":[{"name":"video_player_android","path":"/Users/jorandob/.pub-cache/hosted/pub.dev/video_player_android-2.4.12/","native_build":true,"dependencies":[]},{"name":"wakelock","path":"/Users/jorandob/.pub-cache/hosted/pub.dev/wakelock-0.6.1+2/","native_build":true,"dependencies":[]}],"macos":[{"name":"video_player_avfoundation","path":"/Users/jorandob/.pub-cache/hosted/pub.dev/video_player_avfoundation-2.5.6/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"wakelock_macos","path":"/Users/jorandob/.pub-cache/hosted/pub.dev/wakelock_macos-0.4.0/","native_build":true,"dependencies":[]}],"linux":[],"windows":[],"web":[{"name":"video_player_web","path":"/Users/jorandob/.pub-cache/hosted/pub.dev/video_player_web-2.3.0/","dependencies":[]},{"name":"wakelock_web","path":"/Users/jorandob/.pub-cache/hosted/pub.dev/wakelock_web-0.4.0/","dependencies":[]}]},"dependencyGraph":[{"name":"video_player","dependencies":["video_player_android","video_player_avfoundation","video_player_web"]},{"name":"video_player_android","dependencies":[]},{"name":"video_player_avfoundation","dependencies":[]},{"name":"video_player_web","dependencies":[]},{"name":"wakelock","dependencies":["wakelock_macos","wakelock_web"]},{"name":"wakelock_macos","dependencies":[]},{"name":"wakelock_web","dependencies":[]}],"date_created":"2024-04-02 19:19:59.773904","version":"3.19.3"}
2 changes: 1 addition & 1 deletion example/ios/Flutter/AppFrameworkInfo.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>11.0</string>
<string>12.0</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion example/ios/Flutter/Flutter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Pod::Spec.new do |s|
s.license = { :type => 'BSD' }
s.author = { 'Flutter Dev Team' => '[email protected]' }
s.source = { :git => 'https://github.com/flutter/engine', :tag => s.version.to_s }
s.ios.deployment_target = '11.0'
s.ios.deployment_target = '12.0'
# Framework linking is handled by Flutter tooling, not CocoaPods.
# Add a placeholder to satisfy `s.dependency 'Flutter'` plugin podspecs.
s.vendored_frameworks = 'path/to/nothing'
Expand Down
2 changes: 1 addition & 1 deletion example/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Uncomment this line to define a global platform for your project
platform :ios, '11.0'
platform :ios, '12.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
Expand Down
13 changes: 7 additions & 6 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,28 @@ PODS:
- Flutter (1.0.0)
- video_player_avfoundation (0.0.1):
- Flutter
- FlutterMacOS
- wakelock (0.0.1):
- Flutter

DEPENDENCIES:
- Flutter (from `Flutter`)
- video_player_avfoundation (from `.symlinks/plugins/video_player_avfoundation/ios`)
- video_player_avfoundation (from `.symlinks/plugins/video_player_avfoundation/darwin`)
- wakelock (from `.symlinks/plugins/wakelock/ios`)

EXTERNAL SOURCES:
Flutter:
:path: Flutter
video_player_avfoundation:
:path: ".symlinks/plugins/video_player_avfoundation/ios"
:path: ".symlinks/plugins/video_player_avfoundation/darwin"
wakelock:
:path: ".symlinks/plugins/wakelock/ios"

SPEC CHECKSUMS:
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
video_player_avfoundation: e489aac24ef5cf7af82702979ed16f2a5ef84cff
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
video_player_avfoundation: 02011213dab73ae3687df27ce441fbbcc82b5579
wakelock: d0fc7c864128eac40eba1617cb5264d9c940b46f

PODFILE CHECKSUM: 7368163408c647b7eb699d0d788ba6718e18fb8d
PODFILE CHECKSUM: 4e8f8b2be68aeea4c0d5beb6ff1e79fface1d048

COCOAPODS: 1.13.0
COCOAPODS: 1.15.2
8 changes: 4 additions & 4 deletions example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
97C146E61CF9000F007C117D /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1430;
LastUpgradeCheck = 1510;
ORGANIZATIONNAME = "The Chromium Authors";
TargetAttributes = {
97C146ED1CF9000F007C117D = {
Expand Down Expand Up @@ -353,7 +353,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
Expand Down Expand Up @@ -439,7 +439,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -488,7 +488,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1430"
LastUpgradeVersion = "1510"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
38 changes: 17 additions & 21 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class MyHomePageState extends State<MyHomePage> {
}

VideoPlayerController get videoPlayerController {
return VideoPlayerController.network(link);
return VideoPlayerController.networkUrl(Uri.parse(link));
}

ChewieController get chewieController {
Expand Down Expand Up @@ -150,15 +150,12 @@ class MyHomePageState extends State<MyHomePage> {
const Divider(
color: Colors.grey,
),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
Wrap(
children: [
ElevatedButton(
style: ButtonStyle(
elevation:
MaterialStateProperty.all<double>(8.0),
shape: MaterialStateProperty.all<
RoundedRectangleBorder>(
elevation: MaterialStateProperty.all<double>(8.0),
shape: MaterialStateProperty.all<RoundedRectangleBorder>(
RoundedRectangleBorder(
borderRadius: BorderRadius.circular(
8.0,
Expand All @@ -167,17 +164,17 @@ class MyHomePageState extends State<MyHomePage> {
),
),
onPressed: () => updateSubtitleUrl(
subtitleLanguage:
ExampleSubtitleLanguage.english,
subtitleLanguage: ExampleSubtitleLanguage.english,
),
child: const Text('Switch to 🇬🇧'),
),
const SizedBox(
width: 8.0,
),
ElevatedButton(
style: ButtonStyle(
elevation:
MaterialStateProperty.all<double>(8.0),
shape: MaterialStateProperty.all<
RoundedRectangleBorder>(
elevation: MaterialStateProperty.all<double>(8.0),
shape: MaterialStateProperty.all<RoundedRectangleBorder>(
RoundedRectangleBorder(
borderRadius: BorderRadius.circular(
8.0,
Expand All @@ -186,17 +183,17 @@ class MyHomePageState extends State<MyHomePage> {
),
),
onPressed: () => updateSubtitleUrl(
subtitleLanguage:
ExampleSubtitleLanguage.spanish,
subtitleLanguage: ExampleSubtitleLanguage.spanish,
),
child: const Text('Switch to 🇪🇸'),
),
const SizedBox(
width: 8.0,
),
ElevatedButton(
style: ButtonStyle(
elevation:
MaterialStateProperty.all<double>(8.0),
shape: MaterialStateProperty.all<
RoundedRectangleBorder>(
elevation: MaterialStateProperty.all<double>(8.0),
shape: MaterialStateProperty.all<RoundedRectangleBorder>(
RoundedRectangleBorder(
borderRadius: BorderRadius.circular(
8.0,
Expand All @@ -205,8 +202,7 @@ class MyHomePageState extends State<MyHomePage> {
),
),
onPressed: () => updateSubtitleUrl(
subtitleLanguage:
ExampleSubtitleLanguage.dutch,
subtitleLanguage: ExampleSubtitleLanguage.dutch,
),
child: const Text('Switch to 🇳🇱'),
),
Expand Down
2 changes: 2 additions & 0 deletions example/macos/Flutter/GeneratedPluginRegistrant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
import FlutterMacOS
import Foundation

import video_player_avfoundation
import wakelock_macos

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
FVPVideoPlayerPlugin.register(with: registry.registrar(forPlugin: "FVPVideoPlayerPlugin"))
WakelockMacosPlugin.register(with: registry.registrar(forPlugin: "WakelockMacosPlugin"))
}
Loading

0 comments on commit 7017245

Please sign in to comment.