Skip to content

Commit 6fd6f5a

Browse files
Merge pull request #71 from mindbox-cloud/release/2.8.3
Release/2.8.3
2 parents 38b5d8a + dd46dfd commit 6fd6f5a

File tree

22 files changed

+163
-28
lines changed

22 files changed

+163
-28
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,6 @@ jobs:
140140
release_name: mindbox v${{ env.VERSION }}
141141
draft: false
142142
prerelease: false
143+
144+
- name: Version Upgrade
145+
run: ./version-update.sh "${{ env.VERSION }}"

README.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
[![PubDev](https://img.shields.io/pub/v/mindbox)](https://pub.dev/packages/mindbox)
2+
3+
# Mindbox SDK for Flutter
4+
5+
The Mindbox SDK allows you to integrate mobile push-notifications, in-app messages and client events into your Flutter projects.
6+
7+
## Getting Started
8+
9+
These instructions will help you integrate the Mindbox SDK into your Flutter app.
10+
11+
### Installation
12+
13+
To integrate Mindbox SDK into your Flutter app, follow the installation process detailed [here](https://developers.mindbox.ru/docs/add-sdk-flutter). Here is an overview:
14+
15+
Add Mindbox's dependency to your pubspec.yaml file:
16+
```markdown
17+
dependencies:
18+
flutter:
19+
sdk: flutter
20+
mindbox: ^2.8.2
21+
```
22+
23+
### Initialization
24+
25+
Initialize the Mindbox SDK in your Activity or Application class. Check documentation [here](https://developers.mindbox.ru/docs/sdk-initialization-flutter) for more details.
26+
27+
### Operations
28+
29+
Learn how to send events to Mindbox. Create a new Operation class object and set the respective parameters. Check the [documentation](https://developers.mindbox.ru/docs/integration-actions-flutter) for more details.
30+
31+
### Push Notifications
32+
33+
Mindbox SDK helps handle push notifications. Configuration and usage instructions can be found in the SDK documentation [here](https://developers.mindbox.ru/docs/firebase-send-push-notifications-flutter), [here](https://developers.mindbox.ru/docs/huawei-send-push-notifications-flutter) and [here](https://developers.mindbox.ru/docs/ios-send-push-notifications-flutter).
34+
35+
## Troubleshooting
36+
37+
Refer to the [Example of integration(IOS)](https://github.com/mindbox-cloud/flutter-sdk/tree/develop/mindbox_ios/example) or [Example of integration(Android)](https://github.com/mindbox-cloud/flutter-sdk/tree/develop/mindbox_android/example) in case of any issues.
38+
39+
## Further Help
40+
41+
Reach out to us for further help and we'll be glad to assist.
42+
43+
## License
44+
45+
The library is available as open source under the terms of the [License](https://github.com/mindbox-cloud/android-sdk/blob/develop/LICENSE.md).
46+
47+
For a better understanding of this content, please familiarize yourself with the Mindbox [Flutter SDK](https://developers.mindbox.ru/docs/flutter-sdk-integration) documentation.

mindbox/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## 2.8.3
2+
3+
* Upgrade iOS SDK dependency to v2.8.3.
4+
* Upgrade Android SDK dependency to v2.8.4.
5+
* Added opportunity for turn off automatically request notification permission on start app in iOS
6+
* Added method *updateNotificationPermissionStatus*
7+
8+
19
## 2.8.2
210

311
* Upgrade iOS SDK dependency to v2.8.2.

mindbox/lib/mindbox.dart

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,20 @@ class Mindbox {
137137
void registerInAppCallback({required List<InAppCallback> callbacks}) {
138138
MindboxPlatform.instance.registerInAppCallbacks(inAppCallbacks: callbacks);
139139
}
140+
141+
/// Updates the notification permission status.
142+
///
143+
/// The [granted] parameter specifies whether the permission for notifications
144+
/// has been granted:
145+
///
146+
/// - `true` indicates that the user has granted permission.
147+
/// - `false` indicates that the user has denied permission.
148+
///
149+
/// Example usage:
150+
/// ```dart
151+
/// Mindbox.instance.updateNotificationPermissionStatus(granted: true);
152+
void updateNotificationPermissionStatus({required bool granted}) {
153+
MindboxPlatform.instance
154+
.updateNotificationPermissionStatus(granted: granted);
155+
}
140156
}

mindbox/pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: mindbox
22
description: Flutter Mindbox SDK. Plugin wrapper over of Mindbox iOS/Android SDK.
3-
version: 2.8.2
3+
version: 2.8.3
44
homepage: https://mindbox.cloud/
55
repository: https://github.com/mindbox-cloud/flutter-sdk/tree/master/mindbox
66
documentation: https://developers.mindbox.ru/docs/flutter-sdk-integration
@@ -20,9 +20,9 @@ flutter:
2020
dependencies:
2121
flutter:
2222
sdk: flutter
23-
mindbox_android: ^2.8.2
24-
mindbox_ios: ^2.8.2
25-
mindbox_platform_interface: ^2.8.2
23+
mindbox_android: ^2.8.3
24+
mindbox_ios: ^2.8.3
25+
mindbox_platform_interface: ^2.8.3
2626

2727
dev_dependencies:
2828
flutter_test:

mindbox_android/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.8.3
2+
3+
* Upgrade native SDK dependency to v2.8.4
4+
15
## 2.8.2
26

37
* Technical update

mindbox_android/android/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,7 @@ android {
4848

4949
dependencies {
5050
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
51-
implementation 'cloud.mindbox:mobile-sdk:2.8.2'
51+
api 'cloud.mindbox:mobile-sdk:2.8.4'
52+
api 'cloud.mindbox:mindbox-firebase:2.8.4'
53+
api 'cloud.mindbox:mindbox-huawei:2.8.4'
5254
}

mindbox_android/android/src/main/kotlin/cloud/mindbox/mindbox_android/MindboxAndroidPlugin.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ class MindboxAndroidPlugin : FlutterPlugin, MethodCallHandler, ActivityAware, Ne
152152
}
153153
}
154154
}
155+
"updateNotificationPermissionStatus" -> {
156+
Mindbox.updateNotificationPermissionStatus(context = context)
157+
}
155158
else -> {
156159
result.notImplemented()
157160
}

mindbox_android/lib/src/mindbox_android_platform.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,10 @@ class MindboxAndroidPlatform extends MindboxPlatform {
9595
void registerInAppCallbacks({required List<InAppCallback> inAppCallbacks}) {
9696
_methodHandler.registerInAppCallbacks(callbacks: inAppCallbacks);
9797
}
98+
99+
// Method for to send notification permission status
100+
@override
101+
void updateNotificationPermissionStatus({required bool granted}) {
102+
_methodHandler.updateNotificationPermissionStatus(granted: granted);
103+
}
98104
}

mindbox_android/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: mindbox_android
22
description: The implementation of 'mindbox' plugin for the Android platform.
3-
version: 2.8.2
3+
version: 2.8.3
44
homepage: https://mindbox.cloud/
55
repository: https://github.com/mindbox-cloud/flutter-sdk/tree/master/mindbox_android
66

@@ -19,7 +19,7 @@ flutter:
1919
dependencies:
2020
flutter:
2121
sdk: flutter
22-
mindbox_platform_interface: ^2.8.2
22+
mindbox_platform_interface: ^2.8.3
2323

2424
dev_dependencies:
2525
flutter_test:

0 commit comments

Comments
 (0)