Skip to content

Commit

Permalink
release flutter v6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
suencooper committed Aug 26, 2023
1 parent 2ee66d1 commit 471d38b
Show file tree
Hide file tree
Showing 12 changed files with 70 additions and 54 deletions.
1 change: 1 addition & 0 deletions flutter/flutter/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
.packages
.pub/
build/
pubspec.lock
5 changes: 5 additions & 0 deletions flutter/flutter/.pubignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.DS_Store
.idea
.pub
.dart_tool
pubspec.lock
10 changes: 10 additions & 0 deletions flutter/flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## 6.0.0
- Feature release based on native v6.0
- Renames StreamInformation.getFullCodec() method to getCodecLong()
- Improves Statistics.getTime() method to return milliseconds as double

## 6.0.0-LTS
- Feature release based on native v6.0.LTS
- Renames StreamInformation.getFullCodec() method to getCodecLong()
- Improves Statistics.getTime() method to return milliseconds as double

## 5.1.0
- Feature release based on native v5.1
- Implements AbstractSession.cancel() method
Expand Down
8 changes: 4 additions & 4 deletions flutter/flutter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
- Includes both `FFmpeg` and `FFprobe`
- Supports
- `Android`, `iOS` and `macOS`
- FFmpeg `v5.1.2`
- FFmpeg `v6.0`
- `arm-v7a`, `arm-v7a-neon`, `arm64-v8a`, `x86` and `x86_64` architectures on Android
- `Android API Level 24` or later
- `API Level 16` on LTS releases
Expand Down Expand Up @@ -35,7 +35,7 @@ Add `ffmpeg_kit_flutter` as a dependency in your `pubspec.yaml file`.

```yaml
dependencies:
ffmpeg_kit_flutter: 5.1.0
ffmpeg_kit_flutter: 6.0.0
```
#### 2.1 Packages
Expand All @@ -58,7 +58,7 @@ using the following dependency format.

```yaml
dependencies:
ffmpeg_kit_flutter_<package name>: 5.1.0
ffmpeg_kit_flutter_<package name>: 6.0.0
```

Note that hyphens in the package name must be replaced with underscores. Additionally, do not forget to use the package
Expand All @@ -70,7 +70,7 @@ In order to install the `LTS` variant, append `-LTS` to the version you have for

```yaml
dependencies:
ffmpeg_kit_flutter: 5.1.0-LTS
ffmpeg_kit_flutter: 6.0.0-LTS
```

#### 2.4 LTS Releases
Expand Down
14 changes: 7 additions & 7 deletions flutter/flutter/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
classpath 'com.android.tools.build:gradle:8.1.0'
}
}

Expand All @@ -24,13 +24,13 @@ android {
namespace 'com.arthenica.ffmpegkit.flutter'
}

compileSdkVersion 31
compileSdkVersion 33

defaultConfig {
minSdkVersion 24
targetSdkVersion 31
versionCode 510
versionName "5.1.0"
targetSdkVersion 33
versionCode 600
versionName "6.0.0"
}

buildTypes {
Expand All @@ -48,6 +48,6 @@ android {
}

dependencies {
implementation 'androidx.annotation:annotation:1.2.0'
implementation 'com.arthenica:ffmpeg-kit-https:5.1'
implementation 'androidx.annotation:annotation:1.5.0'
implementation 'com.arthenica:ffmpeg-kit-https:6.0'
}
2 changes: 1 addition & 1 deletion flutter/flutter/ios/Classes/FFmpegKitFlutterPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -1128,7 +1128,7 @@ + (NSDictionary*)toStatisticsDictionary:(Statistics*)statistics {
dictionary[KEY_STATISTICS_VIDEO_FPS] = [NSNumber numberWithFloat: [statistics getVideoFps]];
dictionary[KEY_STATISTICS_VIDEO_QUALITY] = [NSNumber numberWithFloat: [statistics getVideoQuality]];
dictionary[KEY_STATISTICS_SIZE] = [NSNumber numberWithLong: [statistics getSize]];
dictionary[KEY_STATISTICS_TIME] = [NSNumber numberWithInt: [statistics getTime]];
dictionary[KEY_STATISTICS_TIME] = [NSNumber numberWithDouble: [statistics getTime]];
dictionary[KEY_STATISTICS_BITRATE] = [NSNumber numberWithDouble: [statistics getBitrate]];
dictionary[KEY_STATISTICS_SPEED] = [NSNumber numberWithDouble: [statistics getSpeed]];

Expand Down
34 changes: 17 additions & 17 deletions flutter/flutter/ios/ffmpeg_kit_flutter.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'ffmpeg_kit_flutter'
s.version = '5.1.0'
s.version = '6.0.0'
s.summary = 'FFmpeg Kit for Flutter'
s.description = 'A Flutter plugin for running FFmpeg and FFprobe commands.'
s.homepage = 'https://github.com/arthenica/ffmpeg-kit'
Expand All @@ -23,112 +23,112 @@ Pod::Spec.new do |s|
s.subspec 'min' do |ss|
ss.source_files = 'Classes/**/*'
ss.public_header_files = 'Classes/**/*.h'
ss.dependency 'ffmpeg-kit-ios-min', "5.1"
ss.dependency 'ffmpeg-kit-ios-min', "6.0"
ss.ios.deployment_target = '12.1'
end

s.subspec 'min-lts' do |ss|
ss.source_files = 'Classes/**/*'
ss.public_header_files = 'Classes/**/*.h'
ss.dependency 'ffmpeg-kit-ios-min', "5.1.LTS"
ss.dependency 'ffmpeg-kit-ios-min', "6.0.LTS"
ss.ios.deployment_target = '10'
end

s.subspec 'min-gpl' do |ss|
ss.source_files = 'Classes/**/*'
ss.public_header_files = 'Classes/**/*.h'
ss.dependency 'ffmpeg-kit-ios-min-gpl', "5.1"
ss.dependency 'ffmpeg-kit-ios-min-gpl', "6.0"
ss.ios.deployment_target = '12.1'
end

s.subspec 'min-gpl-lts' do |ss|
ss.source_files = 'Classes/**/*'
ss.public_header_files = 'Classes/**/*.h'
ss.dependency 'ffmpeg-kit-ios-min-gpl', "5.1.LTS"
ss.dependency 'ffmpeg-kit-ios-min-gpl', "6.0.LTS"
ss.ios.deployment_target = '10'
end

s.subspec 'https' do |ss|
ss.source_files = 'Classes/**/*'
ss.public_header_files = 'Classes/**/*.h'
ss.dependency 'ffmpeg-kit-ios-https', "5.1"
ss.dependency 'ffmpeg-kit-ios-https', "6.0"
ss.ios.deployment_target = '12.1'
end

s.subspec 'https-lts' do |ss|
ss.source_files = 'Classes/**/*'
ss.public_header_files = 'Classes/**/*.h'
ss.dependency 'ffmpeg-kit-ios-https', "5.1.LTS"
ss.dependency 'ffmpeg-kit-ios-https', "6.0.LTS"
ss.ios.deployment_target = '10'
end

s.subspec 'https-gpl' do |ss|
ss.source_files = 'Classes/**/*'
ss.public_header_files = 'Classes/**/*.h'
ss.dependency 'ffmpeg-kit-ios-https-gpl', "5.1"
ss.dependency 'ffmpeg-kit-ios-https-gpl', "6.0"
ss.ios.deployment_target = '12.1'
end

s.subspec 'https-gpl-lts' do |ss|
ss.source_files = 'Classes/**/*'
ss.public_header_files = 'Classes/**/*.h'
ss.dependency 'ffmpeg-kit-ios-https-gpl', "5.1.LTS"
ss.dependency 'ffmpeg-kit-ios-https-gpl', "6.0.LTS"
ss.ios.deployment_target = '10'
end

s.subspec 'audio' do |ss|
ss.source_files = 'Classes/**/*'
ss.public_header_files = 'Classes/**/*.h'
ss.dependency 'ffmpeg-kit-ios-audio', "5.1"
ss.dependency 'ffmpeg-kit-ios-audio', "6.0"
ss.ios.deployment_target = '12.1'
end

s.subspec 'audio-lts' do |ss|
ss.source_files = 'Classes/**/*'
ss.public_header_files = 'Classes/**/*.h'
ss.dependency 'ffmpeg-kit-ios-audio', "5.1.LTS"
ss.dependency 'ffmpeg-kit-ios-audio', "6.0.LTS"
ss.ios.deployment_target = '10'
end

s.subspec 'video' do |ss|
ss.source_files = 'Classes/**/*'
ss.public_header_files = 'Classes/**/*.h'
ss.dependency 'ffmpeg-kit-ios-video', "5.1"
ss.dependency 'ffmpeg-kit-ios-video', "6.0"
ss.ios.deployment_target = '12.1'
end

s.subspec 'video-lts' do |ss|
ss.source_files = 'Classes/**/*'
ss.public_header_files = 'Classes/**/*.h'
ss.dependency 'ffmpeg-kit-ios-video', "5.1.LTS"
ss.dependency 'ffmpeg-kit-ios-video', "6.0.LTS"
ss.ios.deployment_target = '10'
end

s.subspec 'full' do |ss|
ss.source_files = 'Classes/**/*'
ss.public_header_files = 'Classes/**/*.h'
ss.dependency 'ffmpeg-kit-ios-full', "5.1"
ss.dependency 'ffmpeg-kit-ios-full', "6.0"
ss.ios.deployment_target = '12.1'
end

s.subspec 'full-lts' do |ss|
ss.source_files = 'Classes/**/*'
ss.public_header_files = 'Classes/**/*.h'
ss.dependency 'ffmpeg-kit-ios-full', "5.1.LTS"
ss.dependency 'ffmpeg-kit-ios-full', "6.0.LTS"
ss.ios.deployment_target = '10'
end

s.subspec 'full-gpl' do |ss|
ss.source_files = 'Classes/**/*'
ss.public_header_files = 'Classes/**/*.h'
ss.dependency 'ffmpeg-kit-ios-full-gpl', "5.1"
ss.dependency 'ffmpeg-kit-ios-full-gpl', "6.0"
ss.ios.deployment_target = '12.1'
end

s.subspec 'full-gpl-lts' do |ss|
ss.source_files = 'Classes/**/*'
ss.public_header_files = 'Classes/**/*.h'
ss.dependency 'ffmpeg-kit-ios-full-gpl', "5.1.LTS"
ss.dependency 'ffmpeg-kit-ios-full-gpl', "6.0.LTS"
ss.ios.deployment_target = '10'
end

Expand Down
2 changes: 1 addition & 1 deletion flutter/flutter/lib/src/ffmpeg_kit_factory.dart
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class FFmpegKitFactory {
}
}

static String getVersion() => "5.1.0";
static String getVersion() => "6.0.0";

static LogRedirectionStrategy? getLogRedirectionStrategy(int? sessionId) =>
logRedirectionStrategyMap[sessionId];
Expand Down
6 changes: 3 additions & 3 deletions flutter/flutter/lib/statistics.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Statistics {
double _videoFps;
double _videoQuality;
int _size;
int _time;
double _time;
double _bitrate;
double _speed;

Expand Down Expand Up @@ -61,9 +61,9 @@ class Statistics {
this._size = size;
}

int getTime() => this._time;
double getTime() => this._time;

void setTime(int time) {
void setTime(double time) {
this._time = time;
}

Expand Down
2 changes: 1 addition & 1 deletion flutter/flutter/macos/Classes/FFmpegKitFlutterPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -1128,7 +1128,7 @@ + (NSDictionary*)toStatisticsDictionary:(Statistics*)statistics {
dictionary[KEY_STATISTICS_VIDEO_FPS] = [NSNumber numberWithFloat: [statistics getVideoFps]];
dictionary[KEY_STATISTICS_VIDEO_QUALITY] = [NSNumber numberWithFloat: [statistics getVideoQuality]];
dictionary[KEY_STATISTICS_SIZE] = [NSNumber numberWithLong: [statistics getSize]];
dictionary[KEY_STATISTICS_TIME] = [NSNumber numberWithInt: [statistics getTime]];
dictionary[KEY_STATISTICS_TIME] = [NSNumber numberWithDouble: [statistics getTime]];
dictionary[KEY_STATISTICS_BITRATE] = [NSNumber numberWithDouble: [statistics getBitrate]];
dictionary[KEY_STATISTICS_SPEED] = [NSNumber numberWithDouble: [statistics getSpeed]];

Expand Down
Loading

0 comments on commit 471d38b

Please sign in to comment.