File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed
java/com/raven/ravenfcmutil/notification Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ android {
20
20
minSdkVersion 16
21
21
targetSdkVersion 30
22
22
versionCode 1
23
- versionName " 1.0.5 "
23
+ versionName " 1.0.6 "
24
24
25
25
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
26
26
consumerProguardFiles " consumer-rules.pro"
@@ -62,7 +62,7 @@ dependencies {
62
62
implementation ' com.google.firebase:firebase-messaging:21.0.1'
63
63
64
64
// implementation project(':raven-android-sdk')
65
- implementation ' com.github.ravenappdev:raven-android-sdk:1.0.5 '
65
+ api ' com.github.ravenappdev:raven-android-sdk:1.0.6 '
66
66
}
67
67
68
68
// Because the components are created only during the afterEvaluate phase, you must
@@ -78,7 +78,7 @@ afterEvaluate {
78
78
// You can then customize attributes of the publication as shown below.
79
79
groupId = ' com.raven'
80
80
artifactId = ' raven-fcm-util'
81
- version = ' 1.0.5 '
81
+ version = ' 1.0.6 '
82
82
}
83
83
}
84
84
}
Original file line number Diff line number Diff line change 5
5
<application >
6
6
<!-- FCM Related -->
7
7
<service
8
- android : name =" com.raven.ravenfcmutil.notification.MyFirebaseMessagingService "
8
+ android : name =" com.raven.ravenfcmutil.notification.FirebaseMessagingService "
9
9
android : exported =" false" >
10
10
<intent-filter >
11
11
<action android : name =" com.google.firebase.MESSAGING_EVENT" />
Original file line number Diff line number Diff line change @@ -16,12 +16,11 @@ import com.google.firebase.messaging.FirebaseMessagingService
16
16
import com.google.firebase.messaging.RemoteMessage
17
17
import com.raven.ravenandroidsdk.RavenSdk
18
18
import com.raven.ravenandroidsdk.models.Status
19
- import com.raven.ravenfcmutil.R
20
19
import kotlinx.coroutines.*
21
20
import java.util.*
22
21
23
22
24
- class MyFirebaseMessagingService : FirebaseMessagingService () {
23
+ class FirebaseMessagingService : FirebaseMessagingService () {
25
24
26
25
// coroutine for downloading images
27
26
private val coroutineScope = CoroutineScope (Dispatchers .IO )
@@ -189,7 +188,7 @@ class MyFirebaseMessagingService: FirebaseMessagingService() {
189
188
private suspend fun loadImageAsBitmap (url : String? ): Bitmap ? {
190
189
return coroutineScope.async {
191
190
try {
192
- val futureTarget: FutureTarget <Bitmap ?>? = Glide .with (this @MyFirebaseMessagingService )
191
+ val futureTarget: FutureTarget <Bitmap ?>? = Glide .with (this @FirebaseMessagingService )
193
192
.asBitmap()
194
193
.load(url)
195
194
.submit()
You can’t perform that action at this time.
0 commit comments