File tree Expand file tree Collapse file tree 5 files changed +28
-8
lines changed Expand file tree Collapse file tree 5 files changed +28
-8
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,16 @@ runtime.
7474The uploader comes with a notification to show the progress. So if your application targets Android
757533+, you might request `android.permission.POST_NOTIFICATIONS` permission at runtime.
7676
77+ When targeting Android API Level 34+, you must declare the service type in your application's manifest file.
78+ In your `AndroidManifest.xml` file, add the following lines in the `<application>` tag :
79+
80+ ` ` ` xml
81+ <service
82+ android:name="androidx.work.impl.foreground.SystemForegroundService"
83+ android:foregroundServiceType="location|dataSync"
84+ tools:node="merge" />
85+ ` ` `
86+
7787# ### Notifications
7888
7989To customize the notification to your own brand, you can change the icon, color or channel name by
Original file line number Diff line number Diff line change @@ -25,19 +25,18 @@ apply plugin: 'com.android.library'
2525apply plugin : ' kotlin-android'
2626
2727android {
28- compileSdkVersion 33
29-
3028 sourceSets {
3129 main. java. srcDirs + = ' src/main/kotlin'
3230 }
3331 defaultConfig {
3432 minSdkVersion 21
33+ compileSdk 34
3534 }
3635}
3736
3837dependencies {
3938 implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
40- implementation ' video.api:android-video-uploader:1.3.2 '
39+ implementation ' video.api:android-video-uploader:1.3.3 '
4140 implementation ' androidx.work:work-runtime-ktx:2.8.1'
4241 implementation ' androidx.appcompat:appcompat:1.6.1'
4342}
Original file line number Diff line number Diff line change 77 android : maxSdkVersion =" 32" />
88 <uses-permission android : name =" android.permission.READ_MEDIA_VIDEO" />
99 <uses-permission android : name =" android.permission.POST_NOTIFICATIONS" />
10+
11+ <uses-permission android : name =" android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
1012</manifest >
Original file line number Diff line number Diff line change @@ -26,16 +26,17 @@ apply plugin: 'kotlin-android'
2626apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
2727
2828android {
29- compileSdkVersion 33
30-
3129 sourceSets {
3230 main. java. srcDirs + = ' src/main/kotlin'
3331 }
3432
3533 defaultConfig {
3634 applicationId " video.api.flutter.uploader.example"
37- minSdkVersion 21
38- targetSdkVersion 30
35+
36+ minSdk 21
37+ compileSdk 34
38+ targetSdk 34
39+
3940 versionCode flutterVersionCode. toInteger()
4041 versionName flutterVersionName
4142 }
Original file line number Diff line number Diff line change 11<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
2+ xmlns : tools =" http://schemas.android.com/tools"
23 package =" video.api.flutter.uploader.example" >
3-
4+
45 <application
56 android : icon =" @drawable/ic_api_video"
67 android : label =" FltUploader" >
78 <activity
89 android : name =" .MainActivity"
910 android : configChanges =" orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
11+ android : exported =" true"
1012 android : hardwareAccelerated =" true"
1113 android : launchMode =" singleTop"
1214 android : theme =" @style/LaunchTheme"
4042 <meta-data
4143 android : name =" flutterEmbedding"
4244 android : value =" 2" />
45+
46+ <service
47+ android : name =" androidx.work.impl.foreground.SystemForegroundService"
48+ android : foregroundServiceType =" location|dataSync"
49+ tools : node =" merge" />
4350 </application >
51+
4452</manifest >
You can’t perform that action at this time.
0 commit comments