You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/amplify_api/android/src/main/kotlin/com/amazonaws/amplify/amplify_api/GraphQLSubscriptionStreamHandler.kt
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,10 @@ class GraphQLSubscriptionStreamHandler : EventChannel.StreamHandler {
Copy file name to clipboardExpand all lines: packages/amplify_api/android/src/main/kotlin/com/amazonaws/amplify/amplify_api/auth/FlutterAuthProvider.kt
+18-7Lines changed: 18 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -29,10 +29,8 @@ import kotlinx.coroutines.*
29
29
* Manages the shared state of all [FlutterAuthProvider] instances.
30
30
*/
31
31
classFlutterAuthProviders(
32
-
privatevalauthProviders:List<AuthorizationType>,
33
-
privatevalmethodChannel:MethodChannel
32
+
privatevalauthProviders:List<AuthorizationType>
34
33
) {
35
-
36
34
privatecompanionobject {
37
35
/**
38
36
* Timeout on a single [getToken] call.
@@ -50,6 +48,19 @@ class FlutterAuthProviders(
50
48
val coroutineName =CoroutineName(tag)
51
49
}
52
50
51
+
/**
52
+
* The method channel used for Android -> Flutter communication. Should be cleared when the API
53
+
* plugin is detached from Flutter and set when it is reattached.
54
+
*/
55
+
privatevar methodChannel:MethodChannel?=null
56
+
57
+
/**
58
+
* Configures the method channel for API authorization.
0 commit comments