forked from firebase/flutterfire
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
101 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 18 additions & 20 deletions
38
...ase_messaging/android/src/main/java/io/flutter/plugins/firebasemessaging/LatchResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,33 @@ | ||
package io.flutter.plugins.firebasemessaging; | ||
|
||
import java.util.concurrent.CountDownLatch; | ||
|
||
import io.flutter.plugin.common.MethodChannel; | ||
import java.util.concurrent.CountDownLatch; | ||
|
||
public class LatchResult { | ||
|
||
private MethodChannel.Result result; | ||
|
||
public LatchResult(final CountDownLatch latch) { | ||
result = new MethodChannel.Result() { | ||
@Override | ||
public void success(Object result) { | ||
latch.countDown(); | ||
} | ||
|
||
@Override | ||
public void error(String errorCode, String errorMessage, Object errorDetails) { | ||
latch.countDown(); | ||
} | ||
|
||
@Override | ||
public void notImplemented() { | ||
latch.countDown(); | ||
} | ||
}; | ||
result = | ||
new MethodChannel.Result() { | ||
@Override | ||
public void success(Object result) { | ||
latch.countDown(); | ||
} | ||
|
||
@Override | ||
public void error(String errorCode, String errorMessage, Object errorDetails) { | ||
latch.countDown(); | ||
} | ||
|
||
@Override | ||
public void notImplemented() { | ||
latch.countDown(); | ||
} | ||
}; | ||
} | ||
|
||
public MethodChannel.Result getResult() { | ||
return result; | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ description: Flutter plugin for Firebase Cloud Messaging, a cross-platform | |
messaging solution that lets you reliably deliver messages on Android and iOS. | ||
author: Flutter Team <[email protected]> | ||
homepage: https://github.com/FirebaseExtended/flutterfire/tree/master/packages/firebase_messaging | ||
version: 5.1.4 | ||
version: 5.1.5 | ||
|
||
flutter: | ||
plugin: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters