2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -43,14 +43,9 @@ android {
43
43
}
44
44
45
45
dependencies {
46
- // Use either AndroidX library names or old/support library names based on major version of support lib
47
- def supportLibVersion = safeExtGet(' supportLibVersion' , ' 27.1.1' )
48
- def supportLibMajorVersion = supportLibVersion. split(' \\ .' )[0 ] as int
49
- def appCompatLibName = (supportLibMajorVersion < 20 ) ? " androidx.appcompat:appcompat" : " com.android.support:appcompat-v7"
50
-
51
46
implementation fileTree(dir : ' libs' , include : [' *.jar' ])
52
47
testImplementation ' junit:junit:4.12'
53
- implementation " $a ppCompatLibName : $s upportLibVersion "
48
+ implementation " androidx.appcompat:appcompat:1.2.0 "
54
49
implementation ' com.facebook.react:react-native:+'
55
50
implementation ' me.leolin:ShortcutBadger:1.1.22@aar'
56
51
implementation " com.google.firebase:firebase-messaging:${ safeExtGet('firebaseMessagingVersion', '+')} "
Original file line number Diff line number Diff line change @@ -431,6 +431,8 @@ public void sendToNotificationCentreWithPicture(Bundle bundle, Bitmap largeIconB
431
431
soundUri = getSoundUri (soundName );
432
432
433
433
notification .setSound (soundUri );
434
+ } else {
435
+ notification .setNotificationSilent ();
434
436
}
435
437
436
438
if (soundUri == null || Build .VERSION .SDK_INT >= Build .VERSION_CODES .O ) {
0 commit comments