Skip to content

Commit

Permalink
Merge pull request #12 from unity/develop
Browse files Browse the repository at this point in the history
v4.13.3
  • Loading branch information
agamagiera-unity authored and GitHub Enterprise committed Dec 11, 2020
2 parents fe5195a + 4d031ee commit d00b007
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 15 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Log

## [4.13.3](https://github.com/deltaDNA/android-sdk/releases/tag/4.13.3)

### Fixed
- Fixed a bug that caused the notificationOpened callback not to be called in some circumstances

## [4.13.2](https://github.com/deltaDNA/android-sdk/releases/tag/4.13.2)

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ allprojects {
```
在你APP的构建脚本
```groovy
compile 'com.deltadna.android:deltadna-sdk:4.13.2'
compile 'com.deltadna.android:deltadna-sdk:4.13.3'
```

## 初始化
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ allprojects {
In your app's build script:
```groovy
dependencies {
implementation 'com.deltadna.android:deltadna-sdk:4.13.2'
implementation 'com.deltadna.android:deltadna-sdk:4.13.3'
}
```
The Java source and target compatibility needs to be set to 1.8 in you app's build script:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ public StyledNotificationFactory(Context context) {

@Override
public NotificationCompat.Builder configure(
NotificationCompat.Builder builder,
Context context,
PushMessage message){

return super.configure(builder, message);
return super.configure(context, message);

}
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
GROUP=com.deltadna.android
VERSION_NAME=4.13.2
VERSION_NAME=4.13.3

POM_DESCRIPTION=deltaDNA SDK for Android
POM_URL=https://github.com/deltaDNA/android-sdk
Expand Down
4 changes: 2 additions & 2 deletions library-notifications/README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ allprojects {
```
在你APP的构建脚本
```groovy
compile 'com.deltadna.android:deltadna-sdk:4.13.2'
compile 'com.deltadna.android:deltadna-sdk-notifications:4.13.2'
compile 'com.deltadna.android:deltadna-sdk:4.13.3'
compile 'com.deltadna.android:deltadna-sdk-notifications:4.13.3'
```

## 整合
Expand Down
4 changes: 2 additions & 2 deletions library-notifications/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ allprojects {
In your app's build script:
```groovy
dependencies {
implementation 'com.deltadna.android:deltadna-sdk:4.13.2'
implementation 'com.deltadna.android:deltadna-sdk-notifications:4.13.2'
implementation 'com.deltadna.android:deltadna-sdk:4.13.3'
implementation 'com.deltadna.android:deltadna-sdk-notifications:4.13.3'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
* {@code Intent} of your application.
* <p>
* The default behaviour can be customised by extending the class and overriding
* {@link #configure(NotificationCompat.Builder, PushMessage)}. The
* {@link #configure(Context, PushMessage)}. The
* {@link NotificationListenerService} will then need to be extended in order
* to define the new factory to be used for creating notifications.
*/
Expand All @@ -66,17 +66,20 @@ public NotificationFactory(Context context) {
* Fills a {@link androidx.core.app.NotificationCompat.Builder}
* with details from a {@link PushMessage}.
*
* @param builder the notification builder to be configured
* @param context the context for the notification
* @param message the push message
*
* @return configured notification builder
*/
public NotificationCompat.Builder configure(
NotificationCompat.Builder builder,
Context context,
PushMessage message){


NotificationCompat.Builder builder;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
builder.setChannelId(getChannel().getId());
builder = new NotificationCompat.Builder(context, getChannel().getId());
} else {
builder = new NotificationCompat.Builder(context);
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public void onMessageReceived(RemoteMessage message) {

final Notification notification = factory.create(
factory.configure(
new NotificationCompat.Builder(this),
this,
pushMessage),
info);
if (notification != null) {
Expand Down

0 comments on commit d00b007

Please sign in to comment.