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.
@@ -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.0.74"
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
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
46
- // Create the NotificationChannel
47
- val importance = NotificationManager.IMPORTANCE_DEFAULT
48
- val channel = NotificationChannel(channelId, channelName, importance)
49
- channel.description = channelDescription
50
- val notificationManager =
51
- context.getSystemService(NOTIFICATION_SERVICE) as NotificationManager
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-move-sdk",
3
- "version": "2.6.2",
3
+ "version": "2.6.3",
4
4
  "description": "React Native library for MOVE SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",