From 352ea382ff78cf5c2ea756235d987bde1a364a29 Mon Sep 17 00:00:00 2001 From: Hien Nguyen Date: Wed, 6 Mar 2024 14:13:34 +0700 Subject: [PATCH] feat: 2.0.3 Fixed issue build --- CHANGELOG.md | 3 +++ README.md | 8 +++++++- lib/flutter_callkit_incoming.dart | 5 ----- pubspec.yaml | 2 +- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d9ae0e37..8d8828df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 2.0.3 +* Fixed linked func `hideCallkitIncoming` + ## 2.0.2+2 * Fixed linked func `hideCallkitIncoming` diff --git a/README.md b/README.md index 1a9e2cbd..caa54daf 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,9 @@ A Flutter plugin to show incoming call in your Flutter app(Custom for Android/Ca [![pub package](https://img.shields.io/pub/v/flutter_callkit_incoming.svg)](https://pub.dev/packages/flutter_callkit_incoming) [![pub points](https://img.shields.io/pub/points/flutter_callkit_incoming?label=pub%20points)](https://pub.dev/packages/flutter_callkit_incoming/score) +[![GitHub stars](https://img.shields.io/github/stars/hiennguyen92/flutter_callkit_incoming.svg?style=social)](https://github.com/hiennguyen92/flutter_callkit_incoming/stargazers) +[![GitHub forks](https://img.shields.io/github/forks/hiennguyen92/flutter_callkit_incoming.svg?style=social)](https://github.com/hiennguyen92/flutter_callkit_incoming/network) +[![GitHub license](https://img.shields.io/github/license/hiennguyen92/flutter_callkit_incoming.svg)](https://github.com/hiennguyen92/flutter_callkit_incoming/blob/master/LICENSE) [![Build Status](https://github.com/hiennguyen92/flutter_callkit_incoming/actions/workflows/main.yml/badge.svg)](https://github.com/hiennguyen92/flutter_callkit_incoming/actions/workflows/main.yml) ## Sponsors @@ -160,7 +163,10 @@ Our top sponsors are shown below! ``` * Hide notification call for Android ``` - await FlutterCallkitIncoming.hideCallkitIncoming(this._currentUuid); + CallKitParams params = CallKitParams( + id: _currentUuid, + ); + await FlutterCallkitIncoming.hideCallkitIncoming(params); ``` * Started an outgoing call diff --git a/lib/flutter_callkit_incoming.dart b/lib/flutter_callkit_incoming.dart index 635debb4..1fa9cd7e 100644 --- a/lib/flutter_callkit_incoming.dart +++ b/lib/flutter_callkit_incoming.dart @@ -133,11 +133,6 @@ class FlutterCallkitIncoming { return await _channel.invokeMethod("requestNotificationPermission", data); } - /// Hide notification call for Android - static Future hideCallkitIncoming(String id) async { - await _channel.invokeMethod("hideCallkitIncoming", {'id': id}); - } - static CallEvent? _receiveCallEvent(dynamic data) { Event? event; Map body = {}; diff --git a/pubspec.yaml b/pubspec.yaml index 1756314a..27edd32f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_callkit_incoming description: Flutter Callkit Incoming to show callkit screen in your Flutter app. -version: 2.0.2+2 +version: 2.0.3 homepage: https://github.com/hiennguyen92/flutter_callkit_incoming repository: https://github.com/hiennguyen92/flutter_callkit_incoming issue_tracker: https://github.com/hiennguyen92/flutter_callkit_incoming/issues