File tree Expand file tree Collapse file tree 7 files changed +12
-30
lines changed
kotlin/dev/fluttercommunity/workmanager Expand file tree Collapse file tree 7 files changed +12
-30
lines changed Original file line number Diff line number Diff line change
1
+ # next
2
+
3
+ * Android: Removed jetifier
4
+ * Android: Removed V1 plugin APIs - this is now a Android V2 plugin only
5
+
1
6
# 0.5.2
2
7
3
8
* Android: Bump to workmanager 2.8.1
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ android {
36
36
defaultConfig {
37
37
compileSdk 33
38
38
minSdkVersion 19
39
- testInstrumentationRunner " android.support .test.runner.AndroidJUnitRunner"
39
+ testInstrumentationRunner " androidx .test.runner.AndroidJUnitRunner"
40
40
}
41
41
lintOptions {
42
42
disable ' InvalidPackage'
Original file line number Diff line number Diff line change 1
1
org.gradle.jvmargs =-Xmx1536M
2
2
3
3
android.useAndroidX =true
4
- android.enableJetifier =true
4
+ android.enableJetifier =false
Original file line number Diff line number Diff line change 1
- <manifest xmlns : android =" http://schemas.android.com/apk/res/android" package =" dev.fluttercommunity.workmanager" >
1
+ <manifest xmlns : android =" http://schemas.android.com/apk/res/android" >
2
+ <uses-permission android : name =" android.permission.POST_NOTIFICATIONS" />
2
3
</manifest >
Original file line number Diff line number Diff line change @@ -94,9 +94,6 @@ class BackgroundWorker(
94
94
)
95
95
}
96
96
97
- // Backwards compatibility with v1. We register all the user's plugins.
98
- WorkmanagerPlugin .pluginRegistryCallback?.registerWith(ShimPluginRegistry (engine!! ))
99
-
100
97
engine?.let { engine ->
101
98
backgroundChannel = MethodChannel (engine.dartExecutor, BACKGROUND_CHANNEL_NAME )
102
99
backgroundChannel.setMethodCallHandler(this @BackgroundWorker)
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import android.content.Context
4
4
import io.flutter.embedding.engine.plugins.FlutterPlugin
5
5
import io.flutter.plugin.common.BinaryMessenger
6
6
import io.flutter.plugin.common.MethodChannel
7
- import io.flutter.plugin.common.PluginRegistry
8
7
9
8
class WorkmanagerPlugin : FlutterPlugin {
10
9
@@ -30,24 +29,4 @@ class WorkmanagerPlugin : FlutterPlugin {
30
29
methodChannel = null
31
30
workmanagerCallHandler = null
32
31
}
33
-
34
- companion object {
35
- var pluginRegistryCallback: PluginRegistry .PluginRegistrantCallback ? = null
36
-
37
- @JvmStatic
38
- fun registerWith (registrar : PluginRegistry .Registrar ) {
39
- val plugin = WorkmanagerPlugin ()
40
- plugin.onAttachedToEngine(registrar.context(), registrar.messenger())
41
- registrar.addViewDestroyListener {
42
- plugin.onDetachedFromEngine()
43
- false
44
- }
45
- }
46
-
47
- @Deprecated(message = " Use the Android v2 embedding method." )
48
- @JvmStatic
49
- fun setPluginRegistrantCallback (pluginRegistryCallback : PluginRegistry .PluginRegistrantCallback ) {
50
- Companion .pluginRegistryCallback = pluginRegistryCallback
51
- }
52
- }
53
32
}
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ android {
42
42
targetSdkVersion 33
43
43
versionCode flutterVersionCode. toInteger()
44
44
versionName flutterVersionName
45
- testInstrumentationRunner " android.support .test.runner.AndroidJUnitRunner"
45
+ testInstrumentationRunner " androidx .test.runner.AndroidJUnitRunner"
46
46
}
47
47
48
48
buildTypes {
@@ -76,6 +76,6 @@ flutter {
76
76
dependencies {
77
77
implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
78
78
testImplementation ' junit:junit:4.13.2'
79
- androidTestImplementation ' androidx.test:runner:1.5.2 '
80
- androidTestImplementation ' androidx.test.espresso:espresso-core:3.5.1 '
79
+ androidTestImplementation ' androidx.test:runner:1.2.0 '
80
+ androidTestImplementation ' androidx.test.espresso:espresso-core:3.2.0 '
81
81
}
You can’t perform that action at this time.
0 commit comments