From 42f1b21bb568b1072d72b758329a6052ca1d5f2b Mon Sep 17 00:00:00 2001 From: Aravind Chowdary Date: Mon, 12 Jun 2023 08:49:12 +0530 Subject: [PATCH 01/13] updated transcoder for android --- .../com/{example => aravi}/video_compress/ThumbnailUtility.kt | 0 .../main/kotlin/com/{example => aravi}/video_compress/Utility.kt | 0 .../com/{example => aravi}/video_compress/VideoCompressPlugin.kt | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename android/src/main/kotlin/com/{example => aravi}/video_compress/ThumbnailUtility.kt (100%) rename android/src/main/kotlin/com/{example => aravi}/video_compress/Utility.kt (100%) rename android/src/main/kotlin/com/{example => aravi}/video_compress/VideoCompressPlugin.kt (100%) diff --git a/android/src/main/kotlin/com/example/video_compress/ThumbnailUtility.kt b/android/src/main/kotlin/com/aravi/video_compress/ThumbnailUtility.kt similarity index 100% rename from android/src/main/kotlin/com/example/video_compress/ThumbnailUtility.kt rename to android/src/main/kotlin/com/aravi/video_compress/ThumbnailUtility.kt diff --git a/android/src/main/kotlin/com/example/video_compress/Utility.kt b/android/src/main/kotlin/com/aravi/video_compress/Utility.kt similarity index 100% rename from android/src/main/kotlin/com/example/video_compress/Utility.kt rename to android/src/main/kotlin/com/aravi/video_compress/Utility.kt diff --git a/android/src/main/kotlin/com/example/video_compress/VideoCompressPlugin.kt b/android/src/main/kotlin/com/aravi/video_compress/VideoCompressPlugin.kt similarity index 100% rename from android/src/main/kotlin/com/example/video_compress/VideoCompressPlugin.kt rename to android/src/main/kotlin/com/aravi/video_compress/VideoCompressPlugin.kt From 252bc9a7e6b632a8160e42bd4b0e22ab3145849f Mon Sep 17 00:00:00 2001 From: Aravind Chowdary Date: Mon, 12 Jun 2023 08:49:26 +0530 Subject: [PATCH 02/13] removed jcenter dependence --- android/build.gradle | 13 +++++++------ android/src/main/AndroidManifest.xml | 2 +- .../com/aravi/video_compress/ThumbnailUtility.kt | 4 ++-- .../main/kotlin/com/aravi/video_compress/Utility.kt | 4 ++-- .../com/aravi/video_compress/VideoCompressPlugin.kt | 4 ++-- 5 files changed, 14 insertions(+), 13 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index ae95c4ff..046a6ad2 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,8 +1,8 @@ -group 'com.example.video_compress' -version '1.0-SNAPSHOT' +group 'com.aravi.video_compress' +version '1.0' buildscript { - ext.kotlin_version = '1.6.10' + ext.kotlin_version = '1.8.10' repositories { google() mavenCentral() @@ -18,6 +18,7 @@ rootProject.allprojects { repositories { google() mavenCentral() +// jcenter() } } @@ -25,13 +26,13 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { - compileSdkVersion 31 + compileSdkVersion 33 sourceSets { main.java.srcDirs += 'src/main/kotlin' } defaultConfig { - minSdkVersion 18 + minSdkVersion 21 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } lintOptions { @@ -41,5 +42,5 @@ android { dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" - implementation 'com.otaliastudios:transcoder:0.9.1' + implementation 'com.otaliastudios:transcoder:0.10.5' } diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml index 55d34d07..df4fbb7c 100644 --- a/android/src/main/AndroidManifest.xml +++ b/android/src/main/AndroidManifest.xml @@ -1,4 +1,4 @@ + package="com.aravi.video_compress"> diff --git a/android/src/main/kotlin/com/aravi/video_compress/ThumbnailUtility.kt b/android/src/main/kotlin/com/aravi/video_compress/ThumbnailUtility.kt index e63aec80..c8db34b0 100644 --- a/android/src/main/kotlin/com/aravi/video_compress/ThumbnailUtility.kt +++ b/android/src/main/kotlin/com/aravi/video_compress/ThumbnailUtility.kt @@ -1,4 +1,4 @@ -package com.example.video_compress +package com.aravi.video_compress import android.content.Context import android.graphics.Bitmap @@ -47,4 +47,4 @@ class ThumbnailUtility(channelName: String) { result.success(file.absolutePath) } -} \ No newline at end of file +} diff --git a/android/src/main/kotlin/com/aravi/video_compress/Utility.kt b/android/src/main/kotlin/com/aravi/video_compress/Utility.kt index f5647097..83001ceb 100644 --- a/android/src/main/kotlin/com/aravi/video_compress/Utility.kt +++ b/android/src/main/kotlin/com/aravi/video_compress/Utility.kt @@ -1,4 +1,4 @@ -package com.example.video_compress +package com.aravi.video_compress import android.content.Context import android.graphics.Bitmap @@ -131,4 +131,4 @@ class Utility(private val channelName: String) { val dir = context.getExternalFilesDir("video_compress") result.success(dir?.deleteRecursively()) } -} \ No newline at end of file +} diff --git a/android/src/main/kotlin/com/aravi/video_compress/VideoCompressPlugin.kt b/android/src/main/kotlin/com/aravi/video_compress/VideoCompressPlugin.kt index 2861da1d..a9c724ef 100644 --- a/android/src/main/kotlin/com/aravi/video_compress/VideoCompressPlugin.kt +++ b/android/src/main/kotlin/com/aravi/video_compress/VideoCompressPlugin.kt @@ -1,4 +1,4 @@ -package com.example.video_compress +package com.aravi.video_compress import android.content.Context import android.net.Uri @@ -13,7 +13,7 @@ import com.otaliastudios.transcoder.strategy.RemoveTrackStrategy import com.otaliastudios.transcoder.strategy.TrackStrategy import io.flutter.embedding.engine.plugins.FlutterPlugin import io.flutter.plugin.common.BinaryMessenger -import com.otaliastudios.transcoder.internal.Logger +import com.otaliastudios.transcoder.internal.utils.Logger import io.flutter.plugin.common.MethodCall import io.flutter.plugin.common.MethodChannel import io.flutter.plugin.common.MethodChannel.MethodCallHandler From 4a5f9c1e95a0216281033e5aa585ec16aae006d2 Mon Sep 17 00:00:00 2001 From: Aravind Chowdary Date: Mon, 12 Jun 2023 08:58:25 +0530 Subject: [PATCH 03/13] export ready --- README.md | 2 +- example/android/app/build.gradle | 4 +- example/android/build.gradle | 2 +- example/lib/main.dart | 4 +- example/lib/video_thumbnail.dart | 2 +- .../Flutter/GeneratedPluginRegistrant.swift | 2 +- example/pubspec.yaml | 2 +- lib/src/video_compress/video_compressor.dart | 5 +- ...compress.dart => video_compress_plus.dart} | 0 pubspec.yaml | 48 +++---------------- 10 files changed, 17 insertions(+), 54 deletions(-) rename lib/{video_compress.dart => video_compress_plus.dart} (100%) diff --git a/README.md b/README.md index 1c4681da..555ca31b 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Add this to your package's `pubspec.yaml` file: ```yaml dependencies: - video_compress: ^3.1.0 + video_compress_plus: ^1.0.0 ``` ### 2. Install it diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 3629ef02..42329ab9 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -39,8 +39,8 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.example.video_compress_example" - minSdkVersion 18 - targetSdkVersion 31 + minSdkVersion 21 + targetSdkVersion 33 versionCode flutterVersionCode.toInteger() versionName flutterVersionName testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" diff --git a/example/android/build.gradle b/example/android/build.gradle index c10ca09f..1c4cdaa2 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -26,6 +26,6 @@ subprojects { project.evaluationDependsOn(':app') } -task clean(type: Delete) { +tasks.register("clean", Delete) { delete rootProject.buildDir } diff --git a/example/lib/main.dart b/example/lib/main.dart index d2beae6b..5fa67407 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:image_picker/image_picker.dart'; -import 'package:video_compress/video_compress.dart'; +import 'package:video_compress_plus/video_compress_plus.dart'; import 'package:file_selector/file_selector.dart'; import 'dart:io'; import 'package:video_compress_example/video_thumbnail.dart'; @@ -75,7 +75,7 @@ class _MyHomePageState extends State { ), Text( '$_counter', - style: Theme.of(context).textTheme.headline4, + style: Theme.of(context).textTheme.titleMedium, ), InkWell( child: Icon( diff --git a/example/lib/video_thumbnail.dart b/example/lib/video_thumbnail.dart index 3a15b377..90ce48f5 100644 --- a/example/lib/video_thumbnail.dart +++ b/example/lib/video_thumbnail.dart @@ -2,7 +2,7 @@ import 'dart:io'; import 'package:file_selector/file_selector.dart'; import 'package:flutter/material.dart'; import 'package:image_picker/image_picker.dart'; -import 'package:video_compress/video_compress.dart'; +import 'package:video_compress_plus/video_compress_plus.dart'; class VideoThumbnail extends StatefulWidget { @override diff --git a/example/macos/Flutter/GeneratedPluginRegistrant.swift b/example/macos/Flutter/GeneratedPluginRegistrant.swift index 875bdd33..c61fc19c 100644 --- a/example/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/example/macos/Flutter/GeneratedPluginRegistrant.swift @@ -6,7 +6,7 @@ import FlutterMacOS import Foundation import file_selector_macos -import video_compress +import video_compress_plus func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { FileSelectorPlugin.register(with: registry.registrar(forPlugin: "FileSelectorPlugin")) diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 453ecec7..c68e6e3f 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -20,7 +20,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - video_compress: + video_compress_plus: path: ../ # For information on the generic Dart part of this file, see the diff --git a/lib/src/video_compress/video_compressor.dart b/lib/src/video_compress/video_compressor.dart index 3b7b38e3..0382cd47 100644 --- a/lib/src/video_compress/video_compressor.dart +++ b/lib/src/video_compress/video_compressor.dart @@ -1,12 +1,11 @@ import 'dart:async'; import 'dart:convert'; import 'dart:io'; -import 'dart:typed_data'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; -import 'package:video_compress/src/progress_callback/compress_mixin.dart'; -import 'package:video_compress/video_compress.dart'; +import 'package:video_compress_plus/src/progress_callback/compress_mixin.dart'; +import 'package:video_compress_plus/video_compress_plus.dart'; abstract class IVideoCompress extends CompressMixin {} diff --git a/lib/video_compress.dart b/lib/video_compress_plus.dart similarity index 100% rename from lib/video_compress.dart rename to lib/video_compress_plus.dart diff --git a/pubspec.yaml b/pubspec.yaml index c7a901bb..dd331fc7 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,61 +1,25 @@ -name: video_compress +name: video_compress_plus description: Light library of video manipulation of Flutter. Compress video, remove audio, get video thumbnail from dart code. -version: 3.1.2 -homepage: https://github.com/jonataslaw/VideoCompress +version: 1.0.0 +homepage: https://github.com/kamaravichow/VideoCompressPlus environment: - sdk: '>=2.16.2 <3.0.0' + sdk: '>=2.16.2 <4.0.0' flutter: ">=2.0.0" dependencies: flutter: sdk: flutter -# dev_dependencies: -# flutter_test: -# sdk: flutter - -# For information on the generic Dart part of this file, see the -# following page: https://www.dartlang.org/tools/pub/pubspec - flutter: plugin: platforms: android: - package: com.example.video_compress + package: com.aravi.video_compress pluginClass: VideoCompressPlugin ios: pluginClass: VideoCompressPlugin macos: pluginClass: VideoCompressPlugin - # To add assets to your plugin package, add an assets section, like this: - # assets: - # - images/a_dot_burr.jpeg - # - images/a_dot_ham.jpeg - # - # For details regarding assets in packages, see - # https://flutter.dev/assets-and-images/#from-packages - # - # An image asset can refer to one or more resolution-specific "variants", see - # https://flutter.dev/assets-and-images/#resolution-aware. - - # To add custom fonts to your plugin package, add a fonts section here, - # in this "flutter" section. Each entry in this list should have a - # "family" key with the font family name, and a "fonts" key with a - # list giving the asset and other descriptors for the font. For - # example: - # fonts: - # - family: Schyler - # fonts: - # - asset: fonts/Schyler-Regular.ttf - # - asset: fonts/Schyler-Italic.ttf - # style: italic - # - family: Trajan Pro - # fonts: - # - asset: fonts/TrajanPro.ttf - # - asset: fonts/TrajanPro_Bold.ttf - # weight: 700 - # - # For details regarding fonts in packages, see - # https://flutter.dev/custom-fonts/#from-packages + \ No newline at end of file From fc8d0f35e37c44a17cdb7d1b2378dbb1c78974b7 Mon Sep 17 00:00:00 2001 From: Aravind Chowdary Date: Mon, 12 Jun 2023 08:59:18 +0530 Subject: [PATCH 04/13] doc update --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 555ca31b..07da35ff 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ $ pub get Now in your `Dart` code, you can use: ````dart -import 'package:video_compress/video_compress.dart'; +import 'package:video_compress_plus/video_compress_plus.dart'; ```` # How to use @@ -55,7 +55,7 @@ import 'package:video_compress/video_compress.dart'; ### Imports ````dart -import 'package:video_compress/video_compress.dart'; +import 'package:video_compress_plus/video_compress_plus.dart'; ```` From d9cb9b6f9000dde33b6bcf75c6ff2518c2929bcf Mon Sep 17 00:00:00 2001 From: MattyBoy Date: Thu, 22 Jun 2023 12:33:50 -0500 Subject: [PATCH 05/13] Fixed: iOS podspec incorrect --- ios/{video_compress.podspec => video_compress_plus.podspec} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename ios/{video_compress.podspec => video_compress_plus.podspec} (83%) diff --git a/ios/video_compress.podspec b/ios/video_compress_plus.podspec similarity index 83% rename from ios/video_compress.podspec rename to ios/video_compress_plus.podspec index dc34372b..e651abd2 100644 --- a/ios/video_compress.podspec +++ b/ios/video_compress_plus.podspec @@ -2,14 +2,14 @@ # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html # Pod::Spec.new do |s| - s.name = 'video_compress' + s.name = 'video_compress_plus' s.version = '0.3.0' s.swift_version = '5.0' s.summary = 'A new flutter plugin project.' s.description = <<-DESC A new flutter plugin project. DESC - s.homepage = 'https://github.com/jonataslaw/video_compress' + s.homepage = 'https://github.com/kamaravichow/VideoCompressPlus' s.license = { :file => '../LICENSE' } s.author = { 'Jonny Borges' => 'jonataborges01@gmail.com' } s.source = { :path => '.' } From 9bab0ca6ae95e4b80e8b0dd2d78398ef918bf768 Mon Sep 17 00:00:00 2001 From: MattyBoy Date: Thu, 22 Jun 2023 12:43:16 -0500 Subject: [PATCH 06/13] Fixed: iOS podspec incorrect --- ios/{video_compress.podspec => video_compress_plus.podspec} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename ios/{video_compress.podspec => video_compress_plus.podspec} (83%) diff --git a/ios/video_compress.podspec b/ios/video_compress_plus.podspec similarity index 83% rename from ios/video_compress.podspec rename to ios/video_compress_plus.podspec index dc34372b..e651abd2 100644 --- a/ios/video_compress.podspec +++ b/ios/video_compress_plus.podspec @@ -2,14 +2,14 @@ # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html # Pod::Spec.new do |s| - s.name = 'video_compress' + s.name = 'video_compress_plus' s.version = '0.3.0' s.swift_version = '5.0' s.summary = 'A new flutter plugin project.' s.description = <<-DESC A new flutter plugin project. DESC - s.homepage = 'https://github.com/jonataslaw/video_compress' + s.homepage = 'https://github.com/kamaravichow/VideoCompressPlus' s.license = { :file => '../LICENSE' } s.author = { 'Jonny Borges' => 'jonataborges01@gmail.com' } s.source = { :path => '.' } From 31049004d08a3706b55b96fb62a4990eb5e4fbf5 Mon Sep 17 00:00:00 2001 From: Gabriel Araujo Date: Thu, 22 Jun 2023 16:49:18 -0300 Subject: [PATCH 07/13] Update VideoCompressPlugin.m --- ios/Classes/VideoCompressPlugin.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Classes/VideoCompressPlugin.m b/ios/Classes/VideoCompressPlugin.m index 10ef50d0..8bddffbb 100644 --- a/ios/Classes/VideoCompressPlugin.m +++ b/ios/Classes/VideoCompressPlugin.m @@ -1,5 +1,5 @@ #import "VideoCompressPlugin.h" -#import +#import @implementation VideoCompressPlugin + (void)registerWithRegistrar:(NSObject*)registrar { From 4d7fd1149d0afca5e31b0f088e414851f6667800 Mon Sep 17 00:00:00 2001 From: Gabriel Araujo Date: Thu, 22 Jun 2023 16:57:17 -0300 Subject: [PATCH 08/13] removed all plus references --- README.md | 6 +++--- example/lib/main.dart | 2 +- example/lib/video_thumbnail.dart | 2 +- example/macos/Flutter/GeneratedPluginRegistrant.swift | 2 +- example/pubspec.yaml | 2 +- ios/Classes/VideoCompressPlugin.m | 2 +- ios/video_compress_plus.podspec | 2 +- lib/src/video_compress/video_compressor.dart | 4 ++-- lib/{video_compress_plus.dart => video_compress.dart} | 0 pubspec.yaml | 2 +- 10 files changed, 12 insertions(+), 12 deletions(-) rename lib/{video_compress_plus.dart => video_compress.dart} (100%) diff --git a/README.md b/README.md index 07da35ff..f558f151 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Add this to your package's `pubspec.yaml` file: ```yaml dependencies: - video_compress_plus: ^1.0.0 + video_compress: ^1.0.0 ``` ### 2. Install it @@ -47,7 +47,7 @@ $ pub get Now in your `Dart` code, you can use: ````dart -import 'package:video_compress_plus/video_compress_plus.dart'; +import 'package:video_compress/video_compress.dart'; ```` # How to use @@ -55,7 +55,7 @@ import 'package:video_compress_plus/video_compress_plus.dart'; ### Imports ````dart -import 'package:video_compress_plus/video_compress_plus.dart'; +import 'package:video_compress/video_compress.dart'; ```` diff --git a/example/lib/main.dart b/example/lib/main.dart index 5fa67407..d4e449f0 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:image_picker/image_picker.dart'; -import 'package:video_compress_plus/video_compress_plus.dart'; +import 'package:video_compress/video_compress.dart'; import 'package:file_selector/file_selector.dart'; import 'dart:io'; import 'package:video_compress_example/video_thumbnail.dart'; diff --git a/example/lib/video_thumbnail.dart b/example/lib/video_thumbnail.dart index 90ce48f5..3a15b377 100644 --- a/example/lib/video_thumbnail.dart +++ b/example/lib/video_thumbnail.dart @@ -2,7 +2,7 @@ import 'dart:io'; import 'package:file_selector/file_selector.dart'; import 'package:flutter/material.dart'; import 'package:image_picker/image_picker.dart'; -import 'package:video_compress_plus/video_compress_plus.dart'; +import 'package:video_compress/video_compress.dart'; class VideoThumbnail extends StatefulWidget { @override diff --git a/example/macos/Flutter/GeneratedPluginRegistrant.swift b/example/macos/Flutter/GeneratedPluginRegistrant.swift index c61fc19c..875bdd33 100644 --- a/example/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/example/macos/Flutter/GeneratedPluginRegistrant.swift @@ -6,7 +6,7 @@ import FlutterMacOS import Foundation import file_selector_macos -import video_compress_plus +import video_compress func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { FileSelectorPlugin.register(with: registry.registrar(forPlugin: "FileSelectorPlugin")) diff --git a/example/pubspec.yaml b/example/pubspec.yaml index c68e6e3f..453ecec7 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -20,7 +20,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - video_compress_plus: + video_compress: path: ../ # For information on the generic Dart part of this file, see the diff --git a/ios/Classes/VideoCompressPlugin.m b/ios/Classes/VideoCompressPlugin.m index 8bddffbb..10ef50d0 100644 --- a/ios/Classes/VideoCompressPlugin.m +++ b/ios/Classes/VideoCompressPlugin.m @@ -1,5 +1,5 @@ #import "VideoCompressPlugin.h" -#import +#import @implementation VideoCompressPlugin + (void)registerWithRegistrar:(NSObject*)registrar { diff --git a/ios/video_compress_plus.podspec b/ios/video_compress_plus.podspec index e651abd2..677f51b7 100644 --- a/ios/video_compress_plus.podspec +++ b/ios/video_compress_plus.podspec @@ -2,7 +2,7 @@ # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html # Pod::Spec.new do |s| - s.name = 'video_compress_plus' + s.name = 'video_compress' s.version = '0.3.0' s.swift_version = '5.0' s.summary = 'A new flutter plugin project.' diff --git a/lib/src/video_compress/video_compressor.dart b/lib/src/video_compress/video_compressor.dart index 0382cd47..de2ef4c1 100644 --- a/lib/src/video_compress/video_compressor.dart +++ b/lib/src/video_compress/video_compressor.dart @@ -4,8 +4,8 @@ import 'dart:io'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; -import 'package:video_compress_plus/src/progress_callback/compress_mixin.dart'; -import 'package:video_compress_plus/video_compress_plus.dart'; +import 'package:video_compress/src/progress_callback/compress_mixin.dart'; +import 'package:video_compress/video_compress.dart'; abstract class IVideoCompress extends CompressMixin {} diff --git a/lib/video_compress_plus.dart b/lib/video_compress.dart similarity index 100% rename from lib/video_compress_plus.dart rename to lib/video_compress.dart diff --git a/pubspec.yaml b/pubspec.yaml index dd331fc7..d46c46de 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,4 +1,4 @@ -name: video_compress_plus +name: video_compress description: Light library of video manipulation of Flutter. Compress video, remove audio, get video thumbnail from dart code. version: 1.0.0 homepage: https://github.com/kamaravichow/VideoCompressPlus From b6d5f2e0d501585b6daf54f7f38259e91cac1e90 Mon Sep 17 00:00:00 2001 From: Gabriel Araujo Date: Thu, 22 Jun 2023 17:01:03 -0300 Subject: [PATCH 09/13] removed last plus reference --- ios/{video_compress_plus.podspec => video_compress.podspec} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename ios/{video_compress_plus.podspec => video_compress.podspec} (100%) diff --git a/ios/video_compress_plus.podspec b/ios/video_compress.podspec similarity index 100% rename from ios/video_compress_plus.podspec rename to ios/video_compress.podspec From 170baa60868e9966dc5ce28fb30b893af638315d Mon Sep 17 00:00:00 2001 From: Gabriel Araujo Date: Thu, 22 Jun 2023 17:05:42 -0300 Subject: [PATCH 10/13] last changes --- ios/video_compress.podspec | 2 +- pubspec.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/video_compress.podspec b/ios/video_compress.podspec index 677f51b7..c78d418a 100644 --- a/ios/video_compress.podspec +++ b/ios/video_compress.podspec @@ -9,7 +9,7 @@ Pod::Spec.new do |s| s.description = <<-DESC A new flutter plugin project. DESC - s.homepage = 'https://github.com/kamaravichow/VideoCompressPlus' + s.homepage = 'https://github.com/SpectoraSoftware/VideoCompress' s.license = { :file => '../LICENSE' } s.author = { 'Jonny Borges' => 'jonataborges01@gmail.com' } s.source = { :path => '.' } diff --git a/pubspec.yaml b/pubspec.yaml index d46c46de..17e0faf0 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: video_compress description: Light library of video manipulation of Flutter. Compress video, remove audio, get video thumbnail from dart code. version: 1.0.0 -homepage: https://github.com/kamaravichow/VideoCompressPlus +homepage: https://github.com/SpectoraSoftware/VideoCompress environment: sdk: '>=2.16.2 <4.0.0' From 2aa6308122b57784cdde6be71ed8013468162acb Mon Sep 17 00:00:00 2001 From: Gabriel Araujo Date: Thu, 22 Jun 2023 17:50:00 -0300 Subject: [PATCH 11/13] Minor package changes --- android/build.gradle | 2 +- android/src/main/AndroidManifest.xml | 2 +- .../main/kotlin/com/aravi/video_compress/ThumbnailUtility.kt | 2 +- android/src/main/kotlin/com/aravi/video_compress/Utility.kt | 2 +- .../kotlin/com/aravi/video_compress/VideoCompressPlugin.kt | 2 +- macos/video_compress.podspec | 4 ++-- pubspec.yaml | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 046a6ad2..2fde10d3 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,4 +1,4 @@ -group 'com.aravi.video_compress' +group 'com.spectora.video_compress' version '1.0' buildscript { diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml index df4fbb7c..4f14169c 100644 --- a/android/src/main/AndroidManifest.xml +++ b/android/src/main/AndroidManifest.xml @@ -1,4 +1,4 @@ + package="com.spectora.video_compress"> diff --git a/android/src/main/kotlin/com/aravi/video_compress/ThumbnailUtility.kt b/android/src/main/kotlin/com/aravi/video_compress/ThumbnailUtility.kt index c8db34b0..fd086ebd 100644 --- a/android/src/main/kotlin/com/aravi/video_compress/ThumbnailUtility.kt +++ b/android/src/main/kotlin/com/aravi/video_compress/ThumbnailUtility.kt @@ -1,4 +1,4 @@ -package com.aravi.video_compress +package com.spectora.video_compress import android.content.Context import android.graphics.Bitmap diff --git a/android/src/main/kotlin/com/aravi/video_compress/Utility.kt b/android/src/main/kotlin/com/aravi/video_compress/Utility.kt index 83001ceb..04f59a0e 100644 --- a/android/src/main/kotlin/com/aravi/video_compress/Utility.kt +++ b/android/src/main/kotlin/com/aravi/video_compress/Utility.kt @@ -1,4 +1,4 @@ -package com.aravi.video_compress +package com.spectora.video_compress import android.content.Context import android.graphics.Bitmap diff --git a/android/src/main/kotlin/com/aravi/video_compress/VideoCompressPlugin.kt b/android/src/main/kotlin/com/aravi/video_compress/VideoCompressPlugin.kt index a9c724ef..dc3ddd67 100644 --- a/android/src/main/kotlin/com/aravi/video_compress/VideoCompressPlugin.kt +++ b/android/src/main/kotlin/com/aravi/video_compress/VideoCompressPlugin.kt @@ -1,4 +1,4 @@ -package com.aravi.video_compress +package com.spectora.video_compress import android.content.Context import android.net.Uri diff --git a/macos/video_compress.podspec b/macos/video_compress.podspec index 788046c2..a68cb04c 100644 --- a/macos/video_compress.podspec +++ b/macos/video_compress.podspec @@ -9,9 +9,9 @@ Pod::Spec.new do |s| s.description = <<-DESC A new flutter plugin project. DESC - s.homepage = 'https://github.com/jonataslaw/video_compress' + s.homepage = 'https://github.com/SpectoraSoftware/VideoCompress' s.license = { :file => '../LICENSE' } - s.author = { 'Jonny Borges' => 'jonataborges01@gmail.com' } + s.author = { 'Gabriel Araujo' => 'gabriel@spectora.com' } s.source = { :path => '.' } s.source_files = 'Classes/**/*' s.dependency 'FlutterMacOS' diff --git a/pubspec.yaml b/pubspec.yaml index 17e0faf0..8703c6f2 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,7 +15,7 @@ flutter: plugin: platforms: android: - package: com.aravi.video_compress + package: com.spectora.video_compress pluginClass: VideoCompressPlugin ios: pluginClass: VideoCompressPlugin From caf41183e84adebd6ef5c8fba547937daf556a65 Mon Sep 17 00:00:00 2001 From: Gabriel Araujo Date: Thu, 22 Jun 2023 18:01:03 -0300 Subject: [PATCH 12/13] Adjusted path --- .../com/{aravi => spectora}/video_compress/ThumbnailUtility.kt | 0 .../main/kotlin/com/{aravi => spectora}/video_compress/Utility.kt | 0 .../com/{aravi => spectora}/video_compress/VideoCompressPlugin.kt | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename android/src/main/kotlin/com/{aravi => spectora}/video_compress/ThumbnailUtility.kt (100%) rename android/src/main/kotlin/com/{aravi => spectora}/video_compress/Utility.kt (100%) rename android/src/main/kotlin/com/{aravi => spectora}/video_compress/VideoCompressPlugin.kt (100%) diff --git a/android/src/main/kotlin/com/aravi/video_compress/ThumbnailUtility.kt b/android/src/main/kotlin/com/spectora/video_compress/ThumbnailUtility.kt similarity index 100% rename from android/src/main/kotlin/com/aravi/video_compress/ThumbnailUtility.kt rename to android/src/main/kotlin/com/spectora/video_compress/ThumbnailUtility.kt diff --git a/android/src/main/kotlin/com/aravi/video_compress/Utility.kt b/android/src/main/kotlin/com/spectora/video_compress/Utility.kt similarity index 100% rename from android/src/main/kotlin/com/aravi/video_compress/Utility.kt rename to android/src/main/kotlin/com/spectora/video_compress/Utility.kt diff --git a/android/src/main/kotlin/com/aravi/video_compress/VideoCompressPlugin.kt b/android/src/main/kotlin/com/spectora/video_compress/VideoCompressPlugin.kt similarity index 100% rename from android/src/main/kotlin/com/aravi/video_compress/VideoCompressPlugin.kt rename to android/src/main/kotlin/com/spectora/video_compress/VideoCompressPlugin.kt From 2b50492b1df9ff91203ce089925e39669586538f Mon Sep 17 00:00:00 2001 From: Ibrahim Date: Tue, 5 Nov 2024 22:42:31 +0200 Subject: [PATCH 13/13] Upgrade to use AGP 8 --- android/build.gradle | 7 ++++--- android/gradle/wrapper/gradle-wrapper.properties | 2 +- example/macos/Flutter/GeneratedPluginRegistrant.swift | 2 ++ 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 2fde10d3..4a2beff2 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -2,14 +2,14 @@ group 'com.spectora.video_compress' version '1.0' buildscript { - ext.kotlin_version = '1.8.10' + ext.kotlin_version = '2.0.20' repositories { google() mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.0.0' + classpath 'com.android.tools.build:gradle:8.7.2' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } @@ -26,7 +26,8 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { - compileSdkVersion 33 + namespace 'com.spectora.video_compress' + compileSdk 34 sourceSets { main.java.srcDirs += 'src/main/kotlin' diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties index aed1030c..529a2ece 100644 --- a/android/gradle/wrapper/gradle-wrapper.properties +++ b/android/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-all.zip diff --git a/example/macos/Flutter/GeneratedPluginRegistrant.swift b/example/macos/Flutter/GeneratedPluginRegistrant.swift index 875bdd33..d9c5844e 100644 --- a/example/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/example/macos/Flutter/GeneratedPluginRegistrant.swift @@ -7,8 +7,10 @@ import Foundation import file_selector_macos import video_compress +import video_player_avfoundation func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { FileSelectorPlugin.register(with: registry.registrar(forPlugin: "FileSelectorPlugin")) VideoCompressPlugin.register(with: registry.registrar(forPlugin: "VideoCompressPlugin")) + FVPVideoPlayerPlugin.register(with: registry.registrar(forPlugin: "FVPVideoPlayerPlugin")) }