Skip to content

Commit 373a791

Browse files
committed
chore(*): rename UploaderPlugin by ApiVideoUploaderPlugin for consistency
1 parent eac388b commit 373a791

File tree

11 files changed

+17
-18
lines changed

11 files changed

+17
-18
lines changed

android/gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle8.2-all.zip

android/src/main/kotlin/video/api/flutter/uploader/UploaderPlugin.kt android/src/main/kotlin/video/api/flutter/uploader/ApiVideoUploaderPlugin.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import io.flutter.embedding.engine.plugins.activity.ActivityAware
66
import io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding
77

88

9-
class UploaderPlugin : FlutterPlugin, ActivityAware {
9+
class ApiVideoUploaderPlugin : FlutterPlugin, ActivityAware {
1010
private val uploaderLiveDataHost = UploaderLiveDataHost()
1111
private var permissionManager: PermissionManager? = null
1212
private var methodCallHandlerImpl: MethodCallHandlerImpl? = null

example/android/gradle.properties

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
org.gradle.jvmargs=-Xmx1536M
22
android.useAndroidX=true
33
android.enableJetifier=true
4-
android.defaults.buildfeatures.buildconfig=true
54
android.nonTransitiveRClass=false
65
android.nonFinalResIds=false

example/ios/Flutter/AppFrameworkInfo.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
<key>CFBundleVersion</key>
2222
<string>1.0</string>
2323
<key>MinimumOSVersion</key>
24-
<string>11.0</string>
24+
<string>12.0</string>
2525
</dict>
2626
</plist>

example/ios/Podfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uncomment this line to define a global platform for your project
2-
platform :ios, '11.0'
2+
platform :ios, '12.0'
33

44
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
55
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

example/ios/Runner.xcodeproj/project.pbxproj

+4-4
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
97C146E61CF9000F007C117D /* Project object */ = {
156156
isa = PBXProject;
157157
attributes = {
158-
LastUpgradeCheck = 1300;
158+
LastUpgradeCheck = 1510;
159159
ORGANIZATIONNAME = "";
160160
TargetAttributes = {
161161
97C146ED1CF9000F007C117D = {
@@ -342,7 +342,7 @@
342342
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
343343
GCC_WARN_UNUSED_FUNCTION = YES;
344344
GCC_WARN_UNUSED_VARIABLE = YES;
345-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
345+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
346346
MTL_ENABLE_DEBUG_INFO = NO;
347347
SDKROOT = iphoneos;
348348
SUPPORTED_PLATFORMS = iphoneos;
@@ -421,7 +421,7 @@
421421
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
422422
GCC_WARN_UNUSED_FUNCTION = YES;
423423
GCC_WARN_UNUSED_VARIABLE = YES;
424-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
424+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
425425
MTL_ENABLE_DEBUG_INFO = YES;
426426
ONLY_ACTIVE_ARCH = YES;
427427
SDKROOT = iphoneos;
@@ -470,7 +470,7 @@
470470
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
471471
GCC_WARN_UNUSED_FUNCTION = YES;
472472
GCC_WARN_UNUSED_VARIABLE = YES;
473-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
473+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
474474
MTL_ENABLE_DEBUG_INFO = NO;
475475
SDKROOT = iphoneos;
476476
SUPPORTED_PLATFORMS = iphoneos;

example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1300"
3+
LastUpgradeVersion = "1510"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

ios/Classes/ApiVideoUploaderPlugin.h

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#import <Flutter/Flutter.h>
2+
3+
@interface ApiVideoUploaderPlugin : NSObject<FlutterPlugin>
4+
@end

ios/Classes/UploaderPlugin.m ios/Classes/ApiVideoUploaderPlugin.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#import "UploaderPlugin.h"
1+
#import "ApiVideoUploaderPlugin.h"
22
#if __has_include(<video_uploader/video_uploader-Swift.h>)
33
#import <video_uploader/video_uploader-Swift.h>
44
#else
@@ -8,7 +8,7 @@
88
#import "video_uploader-Swift.h"
99
#endif
1010

11-
@implementation UploaderPlugin
11+
@implementation ApiVideoUploaderPlugin
1212
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
1313
[SwiftUploaderPlugin registerWithRegistrar:registrar];
1414
}

ios/Classes/UploaderPlugin.h

-4
This file was deleted.

pubspec.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ flutter:
3131
android:
3232
package: video.api.flutter.uploader
3333
dartPluginClass: ApiVideoMobileUploaderPlugin
34-
pluginClass: UploaderPlugin
34+
pluginClass: ApiVideoUploaderPlugin
3535
ios:
3636
dartPluginClass: ApiVideoMobileUploaderPlugin
37-
pluginClass: UploaderPlugin
37+
pluginClass: ApiVideoUploaderPlugin
3838
web:
3939
pluginClass: ApiVideoUploaderPlugin
4040
fileName: src/web/apivideo_uploader_web.dart

0 commit comments

Comments
 (0)