diff --git a/README.md b/README.md
index 1c4681da..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: ^3.1.0
+ video_compress: ^1.0.0
```
### 2. Install it
diff --git a/android/build.gradle b/android/build.gradle
index ae95c4ff..4a2beff2 100644
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -1,15 +1,15 @@
-group 'com.example.video_compress'
-version '1.0-SNAPSHOT'
+group 'com.spectora.video_compress'
+version '1.0'
buildscript {
- ext.kotlin_version = '1.6.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"
}
}
@@ -18,6 +18,7 @@ rootProject.allprojects {
repositories {
google()
mavenCentral()
+// jcenter()
}
}
@@ -25,13 +26,14 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
android {
- compileSdkVersion 31
+ namespace 'com.spectora.video_compress'
+ compileSdk 34
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
defaultConfig {
- minSdkVersion 18
+ minSdkVersion 21
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
lintOptions {
@@ -41,5 +43,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/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/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml
index 55d34d07..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/example/video_compress/ThumbnailUtility.kt b/android/src/main/kotlin/com/spectora/video_compress/ThumbnailUtility.kt
similarity index 97%
rename from android/src/main/kotlin/com/example/video_compress/ThumbnailUtility.kt
rename to android/src/main/kotlin/com/spectora/video_compress/ThumbnailUtility.kt
index e63aec80..fd086ebd 100644
--- a/android/src/main/kotlin/com/example/video_compress/ThumbnailUtility.kt
+++ b/android/src/main/kotlin/com/spectora/video_compress/ThumbnailUtility.kt
@@ -1,4 +1,4 @@
-package com.example.video_compress
+package com.spectora.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/example/video_compress/Utility.kt b/android/src/main/kotlin/com/spectora/video_compress/Utility.kt
similarity index 99%
rename from android/src/main/kotlin/com/example/video_compress/Utility.kt
rename to android/src/main/kotlin/com/spectora/video_compress/Utility.kt
index f5647097..04f59a0e 100644
--- a/android/src/main/kotlin/com/example/video_compress/Utility.kt
+++ b/android/src/main/kotlin/com/spectora/video_compress/Utility.kt
@@ -1,4 +1,4 @@
-package com.example.video_compress
+package com.spectora.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/example/video_compress/VideoCompressPlugin.kt b/android/src/main/kotlin/com/spectora/video_compress/VideoCompressPlugin.kt
similarity index 98%
rename from android/src/main/kotlin/com/example/video_compress/VideoCompressPlugin.kt
rename to android/src/main/kotlin/com/spectora/video_compress/VideoCompressPlugin.kt
index 2861da1d..dc3ddd67 100644
--- a/android/src/main/kotlin/com/example/video_compress/VideoCompressPlugin.kt
+++ b/android/src/main/kotlin/com/spectora/video_compress/VideoCompressPlugin.kt
@@ -1,4 +1,4 @@
-package com.example.video_compress
+package com.spectora.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
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..d4e449f0 100644
--- a/example/lib/main.dart
+++ b/example/lib/main.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/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"))
}
diff --git a/ios/video_compress.podspec b/ios/video_compress.podspec
index dc34372b..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/jonataslaw/video_compress'
+ s.homepage = 'https://github.com/SpectoraSoftware/VideoCompress'
s.license = { :file => '../LICENSE' }
s.author = { 'Jonny Borges' => 'jonataborges01@gmail.com' }
s.source = { :path => '.' }
diff --git a/lib/src/video_compress/video_compressor.dart b/lib/src/video_compress/video_compressor.dart
index 3b7b38e3..de2ef4c1 100644
--- a/lib/src/video_compress/video_compressor.dart
+++ b/lib/src/video_compress/video_compressor.dart
@@ -1,7 +1,6 @@
import 'dart:async';
import 'dart:convert';
import 'dart:io';
-import 'dart:typed_data';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
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 c7a901bb..8703c6f2 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,61 +1,25 @@
name: video_compress
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/SpectoraSoftware/VideoCompress
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.spectora.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