Skip to content

Commit

Permalink
Merge pull request #712 from atsign-foundation/feature/improve_at_not…
Browse files Browse the repository at this point in the history
…ify_flutter

feat: improve pub score
  • Loading branch information
sachins-geekyants authored Jul 7, 2023
2 parents 912a0f4 + 26720db commit 9b3e893
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 30 deletions.
3 changes: 3 additions & 0 deletions packages/at_notify_flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.0.7
- **CHORE**: Improved pub score

## 1.0.6
- **CHORE**: Updated dependency

Expand Down
2 changes: 1 addition & 1 deletion packages/at_notify_flutter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ We call giving people control of access to their data “flipping the internet
There are three options to get started using this package.

### 1. Quick start - generate a skeleton app with at_app
This package includes a working sample application in the [Example](https://github.com/atsign-foundation/at_widgets/tree/trunk/at_notify_flutter/example) directory that you can use to create a personalized copy using ```at_app create``` in four commands.
This package includes a working sample application in the [Example](https://github.com/atsign-foundation/at_widgets/tree/trunk/packages/at_notify_flutter/example) directory that you can use to create a personalized copy using ```at_app create``` in four commands.

```sh
$ flutter pub global activate at_app
Expand Down
2 changes: 1 addition & 1 deletion packages/at_notify_flutter/example/EXAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
The at_notify_flutter package is designed to make it easy to add notifications in atProtocol apps.

### Give it a try
This package includes a working sample application in the [example](https://github.com/atsign-foundation/at_widgets/tree/trunk/at_notify_flutter/example) directory that demonstrates the key features of the package. To create a personalized copy, use ```at_app create``` as shown below or check it out on GitHub.
This package includes a working sample application in the [example](https://github.com/atsign-foundation/at_widgets/tree/trunk/packages/at_notify_flutter/example) directory that demonstrates the key features of the package. To create a personalized copy, use ```at_app create``` as shown below or check it out on GitHub.

```sh
$ flutter pub global activate at_app
Expand Down
2 changes: 1 addition & 1 deletion packages/at_notify_flutter/example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
The at_notify_flutter package is designed to make it easy to add notifications in atProtocol apps.

### Give it a try
This package includes a working sample application in the [example](https://github.com/atsign-foundation/at_widgets/tree/trunk/at_notify_flutter/example) directory that demonstrates the key features of the package. To create a personalized copy, use ```at_app create``` as shown below or check it out on GitHub.
This package includes a working sample application in the [example](https://github.com/atsign-foundation/at_widgets/tree/trunk/packages/at_notify_flutter/example) directory that demonstrates the key features of the package. To create a personalized copy, use ```at_app create``` as shown below or check it out on GitHub.

```sh
$ flutter pub global activate at_app
Expand Down
26 changes: 17 additions & 9 deletions packages/at_notify_flutter/example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ PODS:
- MTBBarcodeScanner (5.0.11)
- package_info_plus (0.4.5):
- Flutter
- path_provider_ios (0.0.1):
- path_provider_foundation (0.0.1):
- Flutter
- FlutterMacOS
- permission_handler_apple (9.0.4):
- Flutter
- qr_code_scanner (0.2.0):
Expand All @@ -63,6 +64,9 @@ PODS:
- SDWebImage/Core (5.15.5)
- share_plus (0.0.1):
- Flutter
- shared_preferences_foundation (0.0.1):
- Flutter
- FlutterMacOS
- SwiftyGif (5.4.4)
- url_launcher_ios (0.0.1):
- Flutter
Expand All @@ -80,10 +84,11 @@ DEPENDENCIES:
- flutter_keychain (from `.symlinks/plugins/flutter_keychain/ios`)
- flutter_local_notifications (from `.symlinks/plugins/flutter_local_notifications/ios`)
- package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
- path_provider_ios (from `.symlinks/plugins/path_provider_ios/ios`)
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
- permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`)
- qr_code_scanner (from `.symlinks/plugins/qr_code_scanner/ios`)
- share_plus (from `.symlinks/plugins/share_plus/ios`)
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
- webview_flutter_wkwebview (from `.symlinks/plugins/webview_flutter_wkwebview/ios`)

Expand Down Expand Up @@ -116,14 +121,16 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/flutter_local_notifications/ios"
package_info_plus:
:path: ".symlinks/plugins/package_info_plus/ios"
path_provider_ios:
:path: ".symlinks/plugins/path_provider_ios/ios"
path_provider_foundation:
:path: ".symlinks/plugins/path_provider_foundation/darwin"
permission_handler_apple:
:path: ".symlinks/plugins/permission_handler_apple/ios"
qr_code_scanner:
:path: ".symlinks/plugins/qr_code_scanner/ios"
share_plus:
:path: ".symlinks/plugins/share_plus/ios"
shared_preferences_foundation:
:path: ".symlinks/plugins/shared_preferences_foundation/darwin"
url_launcher_ios:
:path: ".symlinks/plugins/url_launcher_ios/ios"
webview_flutter_wkwebview:
Expand All @@ -137,21 +144,22 @@ SPEC CHECKSUMS:
biometric_storage: 1400f1382af3a4cc2bf05340e13c3d8de873ceb9
DKImagePickerController: b512c28220a2b8ac7419f21c491fc8534b7601ac
DKPhotoGallery: fdfad5125a9fdda9cc57df834d49df790dbb4179
file_picker: 817ab1d8cd2da9d2da412a417162deee3500fc95
file_picker: ce3938a0df3cc1ef404671531facef740d03f920
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
flutter_keychain: 01aabf894ffe8b01adfda1d9df21c210c1b4b452
flutter_local_notifications: 0c0b1ae97e741e1521e4c1629a459d04b9aec743
MTBBarcodeScanner: f453b33c4b7dfe545d8c6484ed744d55671788cb
package_info_plus: 6c92f08e1f853dc01228d6f553146438dafcd14e
path_provider_ios: 14f3d2fd28c4fdb42f44e0f751d12861c43cee02
path_provider_foundation: eaf5b3e458fc0e5fbb9940fb09980e853fe058b8
permission_handler_apple: 44366e37eaf29454a1e7b1b7d736c2cceaeb17ce
qr_code_scanner: bb67d64904c3b9658ada8c402e8b4d406d5d796e
SDWebImage: fd7e1a22f00303e058058278639bf6196ee431fe
share_plus: 056a1e8ac890df3e33cb503afffaf1e9b4fbae68
shared_preferences_foundation: 5b919d13b803cadd15ed2dc053125c68730e5126
SwiftyGif: 93a1cc87bf3a51916001cf8f3d63835fb64c819f
url_launcher_ios: 839c58cdb4279282219f5e248c3321761ff3c4de
webview_flutter_wkwebview: b7e70ef1ddded7e69c796c7390ee74180182971f
url_launcher_ios: 08a3dfac5fb39e8759aeb0abbd5d9480f30fc8b4
webview_flutter_wkwebview: 2e2d318f21a5e036e2c3f26171342e95908bd60a

PODFILE CHECKSUM: ef19549a9bc3046e7bb7d2fab4d021637c0c58a3

COCOAPODS: 1.11.3
COCOAPODS: 1.12.1
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,24 @@ import Foundation

import at_file_saver
import biometric_storage
import device_info_plus
import file_selector_macos
import flutter_local_notifications
import package_info_plus_macos
import path_provider_macos
import package_info_plus
import path_provider_foundation
import share_plus_macos
import shared_preferences_foundation
import url_launcher_macos

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
FileSaverPlugin.register(with: registry.registrar(forPlugin: "FileSaverPlugin"))
BiometricStorageMacOSPlugin.register(with: registry.registrar(forPlugin: "BiometricStorageMacOSPlugin"))
DeviceInfoPlusMacosPlugin.register(with: registry.registrar(forPlugin: "DeviceInfoPlusMacosPlugin"))
FileSelectorPlugin.register(with: registry.registrar(forPlugin: "FileSelectorPlugin"))
FlutterLocalNotificationsPlugin.register(with: registry.registrar(forPlugin: "FlutterLocalNotificationsPlugin"))
FLTPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FLTPackageInfoPlusPlugin"))
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
SharePlusMacosPlugin.register(with: registry.registrar(forPlugin: "SharePlusMacosPlugin"))
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
}
4 changes: 1 addition & 3 deletions packages/at_notify_flutter/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,9 @@ dependencies:
at_app_flutter: ^5.0.0+1
at_notify_flutter:
path: ../
at_onboarding_flutter: ^4.0.3
at_onboarding_flutter: ^6.0.0


dependency_overrides:
at_onboarding_flutter: ^5.0.0

dev_dependencies:
flutter_test:
Expand Down
5 changes: 2 additions & 3 deletions packages/at_notify_flutter/lib/services/notify_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class NotifyService {
initializePlatformSpecifics() async {
var initializationSettingsAndroid =
const AndroidInitializationSettings('ic_launcher');
var initializationSettingsIOS = IOSInitializationSettings(
var initializationSettingsIOS = DarwinInitializationSettings(
requestAlertPermission: true,
requestBadgePermission: true,
requestSoundPermission: false,
Expand All @@ -96,7 +96,6 @@ class NotifyService {

await _notificationsPlugin.initialize(
initializationSettings,
onSelectNotification: (payload) async {},
);
}

Expand Down Expand Up @@ -226,7 +225,7 @@ class NotifyService {
timeoutAfter: 50000,
styleInformation: DefaultStyleInformation(true, true),
);
var iosChannelSpecifics = const IOSNotificationDetails();
var iosChannelSpecifics = const DarwinNotificationDetails();

var platformChannelSpecifics = NotificationDetails(
android: androidChannelSpecifics, iOS: iosChannelSpecifics);
Expand Down
17 changes: 7 additions & 10 deletions packages/at_notify_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: at_notify_flutter
description: A Flutter plugin project to send notification to any atSign in atPlatform
apps with ease.
version: 1.0.6
version: 1.0.7
homepage: https://atsign.dev
repository: https://github.com/atsign-foundation/at_widgets/tree/trunk/at_notify_flutter
repository: https://github.com/atsign-foundation/at_widgets/tree/trunk/packages/at_notify_flutter
issue_tracker: https://github.com/atsign-foundation/at_widgets/issues
documentation: https://atsign.dev/docs/functional_architecture/libraries/
documentation: https://docs.atsign.com/

environment:
sdk: '>=2.12.0 <4.0.0'
Expand All @@ -15,14 +15,11 @@ dependencies:
flutter:
sdk: flutter

at_client_mobile: ^3.2.9
at_client: ^3.0.59
at_commons: ^3.0.46
at_client_mobile: ^3.2.10
at_client: ^3.0.61
at_commons: ^3.0.48
at_common_flutter: ^2.0.11
flutter_local_notifications: ^9.4.0

dependency_overrides:
package_info_plus: ^2.0.0
flutter_local_notifications: ^14.1.1

dev_dependencies:
flutter_lints: ^2.0.1
Expand Down

0 comments on commit 9b3e893

Please sign in to comment.