react-native-move-sdk 2.6.2 → 2.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/android/build.gradle
CHANGED
|
@@ -142,7 +142,7 @@ dependencies {
|
|
|
142
142
|
// noinspection GradleDynamicVersion
|
|
143
143
|
|
|
144
144
|
implementation "com.facebook.react:react-android:+"
|
|
145
|
-
api "io.dolphin.move:move-sdk:2.6.
|
|
145
|
+
api "io.dolphin.move:move-sdk:2.6.2.76"
|
|
146
146
|
|
|
147
147
|
testImplementation 'junit:junit:4.13.2'
|
|
148
148
|
testImplementation "androidx.test:core:1.4.0"
|
|
@@ -4,7 +4,6 @@ import android.app.NotificationChannel
|
|
|
4
4
|
import android.app.NotificationManager
|
|
5
5
|
import android.content.Context
|
|
6
6
|
import android.content.Context.NOTIFICATION_SERVICE
|
|
7
|
-
import android.os.Build
|
|
8
7
|
import androidx.core.app.NotificationCompat
|
|
9
8
|
import io.dolphin.move.MoveNotification
|
|
10
9
|
|
|
@@ -42,14 +41,12 @@ data class MoveNotificationConfig(
|
|
|
42
41
|
}
|
|
43
42
|
|
|
44
43
|
private fun createChannel(context: Context) {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
notificationManager.createNotificationChannel(channel)
|
|
53
|
-
}
|
|
44
|
+
// Create the NotificationChannel
|
|
45
|
+
val importance = NotificationManager.IMPORTANCE_DEFAULT
|
|
46
|
+
val channel = NotificationChannel(channelId, channelName, importance)
|
|
47
|
+
channel.description = channelDescription
|
|
48
|
+
val notificationManager =
|
|
49
|
+
context.getSystemService(NOTIFICATION_SERVICE) as NotificationManager
|
|
50
|
+
notificationManager.createNotificationChannel(channel)
|
|
54
51
|
}
|
|
55
52
|
}
|