From 1aa0f003456192d0738c370d872b6aca869eb095 Mon Sep 17 00:00:00 2001 From: Chris Tomlinson Date: Fri, 4 Feb 2022 06:49:36 +0000 Subject: [PATCH] Allow receipt of intents with no action (#9) --- lib/receive_intent.dart | 4 ++-- pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/receive_intent.dart b/lib/receive_intent.dart index 7a74aa6..c9b2bac 100644 --- a/lib/receive_intent.dart +++ b/lib/receive_intent.dart @@ -10,7 +10,7 @@ class Intent { final bool isNull; final String? fromPackageName; final List? fromSignatures; - final String action; + final String? action; final String? data; final List? categories; final Map? extra; @@ -21,7 +21,7 @@ class Intent { this.isNull = true, this.fromPackageName, this.fromSignatures, - required this.action, + this.action, this.data, this.categories, this.extra, diff --git a/pubspec.yaml b/pubspec.yaml index fa3e04a..845827a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: receive_intent description: Flutter plugin for passing Android Intents to the Flutter environment. -version: 0.1.6 +version: 0.2.0 homepage: https://github.com/daadu/receive_intent environment: