Skip to content

Commit e57c836

Browse files
Merge pull request #5 from apivideo/set-application-name
chore: call setApplicationName() of native upload libs
2 parents 881ec8e + f5812cb commit e57c836

File tree

6 files changed

+8
-3
lines changed

6 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Changelog
22
All changes to this project will be documented in this file.
33

4+
## [0.1.1] - 2022-01-26
5+
- Define the application name when instanciating native uploader libraries
6+
47
## [0.1.0] - 2022-01-11
58
- Rename package to `video_uploader`
69
- Add `upload` by videoId

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ android {
3737

3838
dependencies {
3939
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
40-
implementation 'video.api:android-video-uploader:0.2.2'
40+
implementation 'video.api:android-video-uploader:0.2.3'
4141
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class UploaderPlugin : FlutterPlugin, MethodCallHandler {
2929
override fun onAttachedToEngine(flutterPluginBinding: FlutterPlugin.FlutterPluginBinding) {
3030
channel = MethodChannel(flutterPluginBinding.binaryMessenger, "video.api/uploader")
3131
channel.setMethodCallHandler(this)
32+
videosApi.apiClient.setApplicationName("flutter-uploader")
3233
}
3334

3435
override fun onMethodCall(call: MethodCall, result: Result) {

ios/Classes/SwiftUploaderPlugin.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ public class SwiftUploaderPlugin: NSObject, FlutterPlugin {
1111
channel = FlutterMethodChannel(name: "video.api/uploader", binaryMessenger: registrar.messenger())
1212
let instance = SwiftUploaderPlugin()
1313
registrar.addMethodCallDelegate(instance, channel: channel!)
14+
try? ApiVideoUploader.setApplicationName(applicationName: "flutter-uploader")
1415
}
1516

1617
public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {

ios/video_uploader.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ A new flutter plugin project.
1515
s.source = { :path => '.' }
1616
s.source_files = 'Classes/**/*'
1717
s.dependency 'Flutter'
18-
s.dependency 'ApiVideoUploader', '0.1.2'
18+
s.dependency 'ApiVideoUploader', '0.1.3'
1919
s.platform = :ios, '10.0'
2020

2121
# Flutter.framework does not contain a i386 slice.

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: video_uploader
22
description: This flutter plugin is an easy way to upload video to api.video.
3-
version: 0.1.0
3+
version: 0.1.1
44
repository: https://github.com/apivideo/api.video-flutter-uploader
55
issue_tracker: https://github.com/apivideo/api.video-flutter-uploader/issues
66
homepage: https://api.video

0 commit comments

Comments
 (0)