Skip to content

Commit 5e1d747

Browse files
committed
adding README.md
1 parent 38b5d8a commit 5e1d747

File tree

3 files changed

+74
-12
lines changed

3 files changed

+74
-12
lines changed

.github/workflows/publish.yml

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ on:
77
- master
88

99
jobs:
10-
analyze_and_test:
11-
name: Analyze code and run tests before publishing
12-
uses: ./.github/workflows/analyze_and_test.yml
13-
14-
platform_interface_publish:
15-
needs: [analyze_and_test]
10+
analyze_and_test:
11+
name: Analyze code and run tests before publishing
12+
uses: ./.github/workflows/analyze_and_test.yml
13+
14+
platform_interface_publish:
15+
needs: [ analyze_and_test ]
1616
if: github.event.pull_request.merged
1717
timeout-minutes: 4
1818
runs-on: ubuntu-latest
@@ -52,8 +52,8 @@ jobs:
5252
draft: false
5353
prerelease: false
5454

55-
native_components_publish:
56-
needs: [analyze_and_test,platform_interface_publish]
55+
native_components_publish:
56+
needs: [ analyze_and_test,platform_interface_publish ]
5757
if: github.event.pull_request.merged
5858
timeout-minutes: 4
5959
runs-on: ubuntu-latest
@@ -99,9 +99,9 @@ jobs:
9999
release_name: ${{ matrix.package }} v${{ env.VERSION }}
100100
draft: false
101101
prerelease: false
102-
103-
plugin_publish:
104-
needs: [analyze_and_test,platform_interface_publish, native_components_publish]
102+
103+
plugin_publish:
104+
needs: [ analyze_and_test,platform_interface_publish, native_components_publish ]
105105
if: github.event.pull_request.merged
106106
timeout-minutes: 4
107107
runs-on: ubuntu-latest
@@ -128,7 +128,7 @@ jobs:
128128
package_directory: mindbox
129129
credential: ${{ secrets.PUB_CREDENTIALS }}
130130
flutter_package: true
131-
skip_test: true
131+
skip_test: true
132132
- name: Create Release
133133
if: steps.pubspec.outputs.changed == 0
134134
id: create_release
@@ -140,3 +140,15 @@ jobs:
140140
release_name: mindbox v${{ env.VERSION }}
141141
draft: false
142142
prerelease: false
143+
144+
- name: Version Upgrade
145+
run: chmod +x ./version-update.sh "${{ env.VERSION }}"
146+
147+
- name: Commit and push if it changed
148+
run: |
149+
git diff
150+
git config --global user.email "[email protected]"
151+
git config --global user.name "GitHub Actions"
152+
git commit -am "Update README.md" || exit 0
153+
git push origin HEAD:develop
154+

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.

version-update.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
VERSION=$1
3+
sed -i -e "s|mindbox: ^[0-9].[0-9].[0-9]|mindbox: ^${VERSION}|" README.md

0 commit comments

Comments
 (0)