Skip to content

Commit

Permalink
fix: Remove default ChannelID.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathrunet committed Jan 14, 2023
1 parent a27e433 commit c99b248
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
6 changes: 3 additions & 3 deletions packages/katana_functions/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.1.0"
version: "1.1.2"
lints:
dependency: transitive
description:
Expand Down Expand Up @@ -353,7 +353,7 @@ packages:
name: mime
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.3"
version: "1.0.4"
package_config:
dependency: transitive
description:
Expand Down Expand Up @@ -533,7 +533,7 @@ packages:
name: web_socket_channel
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.0"
version: "2.3.0"
yaml:
dependency: transitive
description:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,7 @@ class FirebaseFunctionsAdapter extends FunctionsAdapter {
/// Firebase Functionsを利用してサーバー側の処理を返すためのアダプター。
///
/// npmの`@mathrunet/masamune`を利用することでサーバー側の実装を簡略化することができます。
const FirebaseFunctionsAdapter({
required this.defaultAndroidNotificationChannelId,
});

/// Default AndroidNotificationChannelId.
///
/// デフォルトのAndroidNotificationChannelId。
final String defaultAndroidNotificationChannelId;
const FirebaseFunctionsAdapter();

/// Instances of Firebase Functions.
///
Expand All @@ -47,7 +40,7 @@ class FirebaseFunctionsAdapter extends FunctionsAdapter {
{
"title": title,
"text": text,
"channel_id": channel ?? defaultAndroidNotificationChannelId,
if (channel != null) "channel_id": channel,
if (data != null) "data": data,
if (isToken) "token": target else "topic": target,
},
Expand Down
2 changes: 1 addition & 1 deletion packages/katana_functions_firebase/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ packages:
name: katana_functions
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
version: "1.1.2"
matcher:
dependency: transitive
description:
Expand Down

0 comments on commit c99b248

Please sign in to comment.