Skip to content

Commit

Permalink
Changes of version 2.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdi-malv committed Jan 24, 2022
0 parents commit 175d4b0
Show file tree
Hide file tree
Showing 93 changed files with 5,629 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/-------------------------.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: "\U0001F680 اضافه‌کردن قابلیت جدید"
about: در صورتی که درخواست دارید که قابلیتی جدید به لایبرری اضافه شود
title: "\U0001F680 [FEATURE]: "
labels: enhancement
assignees: ''

---

<div dir='rtl'>

[//]: # ([FEATURE] و اموجی در تیتر برای وضوح مشکل ترجیحا باقی بماند)
[//]: # (لطفا حتما تمپلیت را رعایت کنید تا مشکل به خوبی توضیح داده شود و متون تمپلیت را پاک نکنید)


**آیا این قابلیت مرتبط با مشکلی است؟ توضیح دهید**
در صورتی که این قابلیت برگرفته از یک مشکل است لطفا مشکل را شرح‌دهید

[//]: # (در صورتی که قصد دارید مشکلی را بیان کنید و درخواست قابلیتی را ندارید بایستی مشکل را بصورت خطا یا باگ مطرح کنید و نه قابلیت)

**شرح قابلیت و کارکرد آن**
این قابلیت چه استفاده‌ای دارد و چه مشکلی را حل می‌کند یا چه امکانی را اضافه می‌کند

**در حال حاضر جایگزینی برای این قابلیت وجود دارد؟**
در صورتی که این قابلیت نباشد آیا راه جایگزینی وجود دارد؟

</div>
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/-------------------.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: "❓: بیان سوال یا خطا"
about: در صورتی که اروری در هر موردی رخ‌داده که در سوالات و خطاهای مستندات ذکر نشده‌است
title: "❓ [ERROR]: "
labels: question
assignees: ''

---

<div dir='rtl'>

[//]: # ([ERROR] و اموجی در تیتر برای وضوح مشکل ترجیحا باقی بماند)
[//]: # (لطفا حتما تمپلیت را رعایت کنید تا مشکل به خوبی توضیح داده شود و متون تمپلیت را پاک نکنید)

**شرح خطا**
خطایی که رخ‌داده است را شرح‌دهید

[//]: # (در صورتی که نصب شما ثبت نمی‌شود لطفا خطاهای مستندات را مطالعه کنید)
[//]: # (برای اضافه‌کردن کد آن را از بلاک div خارج کنید تا سمت راست قرار نگیرد)

**لاگ خطا**
لاگی که در لاگ‌کت هنگام رخ‌دادن خطا چاپ می‌شود. متن کامل استک‌تریس را چاپ کنید.

</div>

```
paste log here
```

<div dir='rtl'>

**اطلاعات محیط تست**
- نسخه‌ی پوشه یا پلاگین
- نسخه‌ی فریم‌ورک
- سیستم‌عامل (Android/iOS)
- TargetSDK/CompileSDK (Android)

</div>
37 changes: 37 additions & 0 deletions .github/ISSUE_TEMPLATE/----------------.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
name: "\U0001F41B باگ در پلاگین"
about: وجود باگ یا مشکل در پلاگین
title: "\U0001F41B [BUG]: "
labels: bug
assignees: ''

---

<div dir='rtl'>

[//]: # ([BUG] و اموجی در تیتر برای وضوح مشکل ترجیحا باقی بماند)
[//]: # (لطفا حتما تمپلیت را رعایت کنید تا مشکل به خوبی توضیح داده شود و متون تمپلیت را پاک نکنید)

**شرح باگ**
باگی که با آن مواجه شدید را شرح دهید

[//]: # (در صورتی که نصب ثبت نمی‌شود لطفا به مستندات مراجعه کنید و خطاها را مطالعه نمایید)
[//]: # (برای اضافه‌کردن کد آن‌را خارج از بلاک div قرار دهید تا سمت راست قرار نگیرد)

**تولید مجدد باگ**
گام‌های لازم را که برای تولید باگ بایستی طی کرد را لیست کنید


**اطلاعات محیط تست**
- سیستم‌عامل (iOS/Android)
- نسخه‌ی پوشه یا پلاگین پوشه
- CompileSDK/TargetSDK (For Android)
- اطلاعات دستگاهی که با آن تست کردید

**لاگ خطا در لاگ‌کت**
لاگی که در لاگ کت وجود دارد (استک‌تریس کامل) را وارد کنید

**اطلاعات اضافی**
اطلاعاتی که می‌تواند به وضوح بیان مشکل کمک کند

</div>
42 changes: 42 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Deploy

on:
push:
branches:
- master

jobs:
deploy-sample:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup git
run: |
echo "Initializing git"
git config --global user.name "Mahdi-Malv"
git config --global user.email "mmalvandi75@gmail.com"
- uses: webfactory/ssh-agent@v0.4.1
with:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
ssh-private-key: ${{ secrets.ACTION_PRIVATE_KEY }}
- name: Chaning local version to global version in sample
run: |
VERSION=$(cat pubspec.yaml | grep -i 'version:' | awk '{ print $2 }')
cd example
sed -i -e "s@path: ../@ @g" pubspec.yaml
var3='pushe_flutter:'; var4="pushe_flutter: $VERSION"
sed -i -e "s@$var3@$var4@g" pubspec.yaml
cd ..
- name: Push sample
run: |
VERSION=$(cat pubspec.yaml | grep -i 'version:' | awk '{ print $2 }')
rm -rf .git
cd example
git init
git remote add example git@github.com:pusheco/pushe-flutter-sample.git
git add -A
git commit -m "Update example with pushe:$VERSION"
git push -f example master
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.DS_Store
.dart_tool/

.packages
.pub/

build/

*.iml

.idea/

example/.metadata

example/\.flutter-plugins-dependencies

example/ios/Flutter/flutter_export_environment\.sh
10 changes: 10 additions & 0 deletions .metadata
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.

version:
revision: f30b7f4db93ee747cd727df747941a28ead25ff5
channel: stable

project_type: plugin
207 changes: 207 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,207 @@
# ChangeLog

## 2.5.2
### Android
- [fix] Bridge methods casting issue

## 2.5.1
### Android
- [Breaking] **Huawei push support** android module is now optional and will not be added to classpath by default
In order to get benefits add it to your `build.gradle` file:

```groovy
//dependencies {
implementation("co.pushe.plus:hms:2.5.1")
// }
```


- [Breaking] `PusheInAppMessaging` android module is now optional and will not be added to classpath by default
In order to get benefits add it to your `build.gradle` file:

```groovy
//dependencies {
implementation("co.pushe.plus:inappmessaging:2.5.1")
// }
```

- **Feat**: Update `targetSDK` to 31. This update also fixes the `android:exported` service attribute issue

### iOS
- [**Breaking**]: iOS support is canceled temporarily until it is decided to bring it back. `Pushe.dart` method will ignore non-android calls and return default results


## 2.5.1-nullsafety.1
- Fix: Remove legacy preview remote for downloading native packages

## 2.5.1-nullsafety.0
- Migration to null-safety

## 2.5.0
### Android
- Update native dependency to `2.5.0`
- **New**: Adds ability to ignore showing notification if app is open (either all notifications or individually using `show_foreground`)
- **New**: Location and Geofencing features are applied to `hms` module. Huawei devices can have location-related features
- Bug fixes and improvements
- **Feat:** New APIs for notification foreground awareness
- `enableNotificationForceForegroundAware`: Force enable foreground awareness for all notifications
- `disableNotificationForceForegroundAware`: Disable what was enabled by above function
- `isForceForegroundAware`: Is enabled or not

## 2.4.2
- Fix null-safe issue in `PusheChandler.kt`

## 2.4.1
### Android
- Update native module to `2.4.1` which includes:
- Bug fix for `hms` module
- Fix issues in registration
- Add `getFcmToken` and `getHmsToken` to return module tokens if needed
- Add `getActiveService` to return the currently chosen service to interact with (fcm,hms)
- Deprecate `getGoogleAdvertisingId`. Use `getAdvertisingId` instead. New method returns Huawei `OAID` when hms is used

### iOS
- Unchanged

## 2.4.0

> **New**
> - PusheFlutter now features iOS support
> - Android supports Huawei push notifications using `hms` module
### Android
- Update native library to `2.4.1-beta05` which includes:
- `hms` module adding support for sending push notifications on Huawei devices (HMSCore)
- Improvements and bug fixes

### iOS
- Stable changes of `2.3.0-alpha01`

## 2.3.0-alpha01

> **New**
> PusheFlutter now features iOS support
- [change] Inner plugin classes are changed to respect iOS native classes
- **Android**: Update native library to `2.2.1`


## 2.2.0

- Introducing **InAppMessaging** module added to plugin
- Added APIs:
* `triggerEvent` for triggering local events.
* `disableInAppMessaging`/`EnableInAppMessaging`/`isInAppMessagingEnabled` to control whether message should be shown or not.
* `setInAppMessagingListener` to get a callback when a specific event occurred on InAppMessaging module
* `dismissShownInApp` to remove shown InApp message using code
* `testInAppMessage` for testing purposes using code
- **Fix**: Bug in `sendNotificationToUser` when type was `DeviceId`
- **Fix**: PlatformChannel crash after successful `sendNotificationToUser`

## 2.1.1
- Update Native Android dependency to `pushe:2.1.1`
- Custom RxJava is used to avoid large size when not needed
- If developer or any library is using RxJava, `duplicate` error might be thrown
In that case you should exclude RxJava and instead implement a normal version
- Added support for GDPR compliance
- Native library has been migrated to AndroidX
- Deprecate `getAndroidId`. Instead, `getDeviceId` should be used

## 2.1.1-alpha01
- Update native dependency to `pushe:2.1.1-beta08`

## 2.1.0

- Added Support for **Flutter Embedding V2**
- Migrate native language to Kotlin
- Added APIs:
* `createNotificationChannel`
* `removeNotificationChannel`
* `enableCustomSound`
* `DisableCustomSound`
- Improvements on analytics methods `sendEvent` and `sendEcommerceData`
- Added support for background execution to get the callbacks event when the app is fully killed
- Fix bug when clearing `customId`, `userEmail` and `userPhoneNumber`. You can now set null to clear them.

## 2.0.3

- Fix bug in notification listeners
- Improve `sendNotificationToUser` to support multiple IDs
- Function callbacks will have no boolean status anymore, since there was no false status
- Code style improvements
- Example project improvements

## 2.0.2

- Fix issue with AndroidX

## 2.0.1

- Fix formatting of plugin
- Minor improvements

## 2.0.0

* Migrate to the new Plus sdk of Pushe
* Get used of new Plus features in the SDK
* No initialization is needed for the library
> Notice the `setNotificationListener` is not fully reliable yet, since it does not handle background
## 1.1.0-alpha1

* Fixed Battery usage issue
* Added method `isNotificationOn`

## 1.0.1

* Fix problem with **AndroidX** projects.

* Changed example package name.

## 1.0.0

* Release ready version.

* New listener API for notification callbacks.

* Removed extra files and APIs.

* Remove extra Fcm service. Firebase and other services can now be added and supported natively.

* Minor improvements and bug fixes.

## 0.9.1

* Recreating notification callbacks. Callbacks will return actual notification objects now.

* From now on, Plugin can be used along with Firebase messaging plugin.

* Minor improvements and bug fixes.

## 0.2.1

* Added better styled callbacks.

* Minor improvements.

## 0.0.2

* Bug fixed on notification listeners not getting called.

* Fixed a little bug in example app.

* Listeners of notification callbacks are working.

* Added Release offline AAR package.

* More comments in plugin.

## 0.0.1

* Pushe basic commands.

* Support for Android OS.

* Notification content callback.

**Note**: Callbacks will be passed when flutter is running. So when the app is closed, notifications will not call the callback methods (They actually will, but the flutter doesn't get it).
Loading

0 comments on commit 175d4b0

Please sign in to comment.