diff --git a/android/build.gradle b/android/build.gradle index 4f31800..90fe06d 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -4,25 +4,29 @@ version '1.0-SNAPSHOT' buildscript { repositories { google() - jcenter() + mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:4.1.0' + classpath 'com.android.tools.build:gradle:7.1.2' } } rootProject.allprojects { repositories { google() - jcenter() + mavenCentral() } } apply plugin: 'com.android.library' android { - compileSdkVersion 33 + compileSdkVersion 34 // Ensure this matches the latest available version + + if (project.android.hasProperty("namespace")) { + namespace "xyz.justsoft.video_thumbnail" + } defaultConfig { minSdkVersion 16 diff --git a/lib/video_thumbnail.dart b/lib/video_thumbnail.dart index 78eb749..dc47bcd 100644 --- a/lib/video_thumbnail.dart +++ b/lib/video_thumbnail.dart @@ -27,7 +27,7 @@ class VideoThumbnail { static Future thumbnailFile( {required String video, Map? headers, - String? thumbnailPath, + required String thumbnailPath, ImageFormat imageFormat = ImageFormat.PNG, int maxHeight = 0, int maxWidth = 0,