Skip to content

Commit e62060b

Browse files
committed
android-connector:1.1.0
1 parent eb6265e commit e62060b

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

android/build.gradle

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

4343
dependencies {
4444
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
45-
implementation 'com.github.UnifiedPush:android-connector:1.0.0-beta3'
45+
implementation 'com.github.UnifiedPush:android-connector:1.1.0'
4646
}

android/src/main/kotlin/org/unifiedpush/flutter/connector/Receiver.kt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import org.unifiedpush.android.connector.MessagingReceiverHandler
1515

1616
val handler = object : MessagingReceiverHandler {
1717

18-
override fun onMessage(context: Context?, message: String) {
18+
override fun onMessage(context: Context?, message: String, instance: String) {
1919
Log.d("Receiver","OnMessage")
2020
FlutterMain.startInitialization(context!!)
2121
FlutterMain.ensureInitializationComplete(context, null)
@@ -31,7 +31,7 @@ val handler = object : MessagingReceiverHandler {
3131
}
3232
}
3333

34-
override fun onNewEndpoint(context: Context?, endpoint: String) {
34+
override fun onNewEndpoint(context: Context?, endpoint: String, instance: String) {
3535
Log.d("Receiver","OnNewEndpoint")
3636
FlutterMain.startInitialization(context!!)
3737
FlutterMain.ensureInitializationComplete(context, null)
@@ -45,17 +45,17 @@ val handler = object : MessagingReceiverHandler {
4545
}
4646
}
4747

48-
override fun onRegistrationFailed(context: Context?) {
48+
override fun onRegistrationFailed(context: Context?, instance: String) {
4949
Log.d("Receiver","OnRegistrationFailed")
5050
Plugin.withCallbackChannel?.invokeMethod("onRegistrationFailed", null)
5151
}
5252

53-
override fun onRegistrationRefused(context: Context?) {
53+
override fun onRegistrationRefused(context: Context?, instance: String) {
5454
Log.d("Receiver","OnRegistrationRefused")
5555
Plugin.withCallbackChannel?.invokeMethod("onRegistrationRefused", null)
5656
}
5757

58-
override fun onUnregistered(context: Context?) {
58+
override fun onUnregistered(context: Context?, instance: String) {
5959
Log.d("Receiver","OnUnregistered")
6060
FlutterMain.startInitialization(context!!)
6161
FlutterMain.ensureInitializationComplete(context, null)
@@ -96,34 +96,34 @@ abstract class UnifiedPushHandler : MessagingReceiverHandler {
9696
return plugin;
9797
}
9898

99-
override fun onMessage(context: Context?, message: String) {
99+
override fun onMessage(context: Context?, message: String, instance: String) {
100100
Log.d("Receiver","OnMessage")
101101
handler.post {
102102
getPlugin(context!!).withReceiverChannel?.invokeMethod("onMessage", message)
103103
}
104104
}
105105

106-
override fun onNewEndpoint(context: Context?, endpoint: String) {
106+
override fun onNewEndpoint(context: Context?, endpoint: String, instance: String) {
107107
Log.d("Receiver","OnNewEndpoint")
108108
handler.post {
109109
getPlugin(context!!).withReceiverChannel?.invokeMethod("onNewEndpoint", endpoint)
110110
}
111111
}
112112

113-
override fun onRegistrationFailed(context: Context?) {
113+
override fun onRegistrationFailed(context: Context?, instance: String) {
114114
handler.post {
115115
getPlugin(context!!).withReceiverChannel?.invokeMethod("onRegistrationFailed", null)
116116
}
117117
}
118118

119-
override fun onRegistrationRefused(context: Context?) {
119+
override fun onRegistrationRefused(context: Context?, instance: String) {
120120
Log.d("Receiver","OnRegistrationRefused")
121121
handler.post {
122122
getPlugin(context!!).withReceiverChannel?.invokeMethod("onRegistrationRefused", null)
123123
}
124124
}
125125

126-
override fun onUnregistered(context: Context?) {
126+
override fun onUnregistered(context: Context?, instance: String) {
127127
Log.d("Receiver","OnUnregistered")
128128
handler.post {
129129
getPlugin(context!!).withReceiverChannel?.invokeMethod("onUnregistered", null)

0 commit comments

Comments
 (0)