react-native-firework-sdk 1.3.1-beta.7 → 1.3.1-beta.8
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.
|
@@ -19,4 +19,13 @@
|
|
|
19
19
|
# If you keep the line number information, uncomment this to
|
|
20
20
|
# hide the original source file name.
|
|
21
21
|
#-renamesourcefileattribute SourceFile
|
|
22
|
+
-keep class com.fireworksdk.bridge.** { <fields>; }
|
|
23
|
+
-keep class com.fireworksdk.bridge.**
|
|
22
24
|
|
|
25
|
+
# Firework SDK
|
|
26
|
+
-keep public class * extends androidx.lifecycle.ViewModelProvider.Factory
|
|
27
|
+
-keep class com.loopnow.fireworklibrary.**
|
|
28
|
+
-keepclassmembers public class * extends androidx.lifecycle.ViewModel { public <init>(...); }
|
|
29
|
+
-keepclassmembers class com.loopnow.fireworklibrary.** { <fields>; }
|
|
30
|
+
-keep class com.google.gson.examples.android.model.** { *; }
|
|
31
|
+
-dontoptimize
|
package/android/src/main/java/com/fireworksdk/bridge/reactnative/manager/FWVideoFeedManager.kt
CHANGED
|
@@ -71,7 +71,7 @@ class FWVideoFeedManager : SimpleViewManager<FWVideoFeed>() {
|
|
|
71
71
|
FWLogUtils.d { "VideoContentStatus.LoadingContent" }
|
|
72
72
|
}
|
|
73
73
|
VideoContentStatus.LoadingContentFailed -> {
|
|
74
|
-
FWLogUtils.
|
|
74
|
+
FWLogUtils.d { "VideoContentStatus.LoadingContentFailed" }
|
|
75
75
|
FWEventUtils.receiveVideoFeedLoadFinishedFailedEvent(reactContext, videoFeedView.id, VideoContentStatus.LoadingContentFailed.rawValue, extra)
|
|
76
76
|
}
|
|
77
77
|
VideoContentStatus.ContentLoaded -> {
|
|
@@ -113,7 +113,7 @@ class FWVideoFeedManager : SimpleViewManager<FWVideoFeed>() {
|
|
|
113
113
|
FWLogUtils.d { "VideoContentStatus.LoadingContent" }
|
|
114
114
|
}
|
|
115
115
|
VideoContentStatus.LoadingContentFailed -> {
|
|
116
|
-
FWLogUtils.
|
|
116
|
+
FWLogUtils.d { "VideoContentStatus.LoadingContentFailed" }
|
|
117
117
|
FWEventUtils.receiveVideoFeedLoadFinishedFailedEvent(reactContext, playlistGroupFeedView.id, VideoContentStatus.LoadingContentFailed.rawValue, extra)
|
|
118
118
|
}
|
|
119
119
|
VideoContentStatus.ContentLoaded -> {
|
package/android/src/main/java/com/fireworksdk/bridge/reactnative/module/FireworkSDKModule.kt
CHANGED
|
@@ -60,7 +60,7 @@ class FireworkSDKModule(
|
|
|
60
60
|
override fun openVideoPlayer(url: String, config: ReadableMap?) {
|
|
61
61
|
val encodedParameters = FWUrlUtils.queryParamString(url, "fwplayer")
|
|
62
62
|
if (encodedParameters.isNullOrBlank()) {
|
|
63
|
-
FWLogUtils.
|
|
63
|
+
FWLogUtils.d { "The parameter url is invalid" }
|
|
64
64
|
return
|
|
65
65
|
}
|
|
66
66
|
|
|
@@ -114,7 +114,7 @@ class FireworkSDKModule(
|
|
|
114
114
|
val clientId = getAppid()
|
|
115
115
|
if (clientId.isNullOrBlank()) {
|
|
116
116
|
val errorMsg = "The appid is invalid"
|
|
117
|
-
FWLogUtils.
|
|
117
|
+
FWLogUtils.d { errorMsg }
|
|
118
118
|
FWEventUtils.sendInitFailedEvent(reactApplicationContext, errorMsg)
|
|
119
119
|
return
|
|
120
120
|
}
|