react-native-firework-sdk 1.0.3 → 1.0.4
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
|
@@ -184,6 +184,8 @@ dependencies {
|
|
|
184
184
|
// if RN is 0.66.4, you cannot use okhttp3 3.x versions
|
|
185
185
|
implementation 'com.squareup.okhttp3:okhttp:4.9.0'
|
|
186
186
|
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.0'
|
|
187
|
+
// react-native 0.61.3
|
|
188
|
+
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
|
|
187
189
|
}
|
|
188
190
|
|
|
189
191
|
configurations.all {
|
package/android/src/main/java/com/reactnativefireworksdk/components/videofeed/FWVideoFeed.kt
CHANGED
|
@@ -14,7 +14,6 @@ import com.loopnow.fireworklibrary.views.VideoFeedView
|
|
|
14
14
|
import com.reactnativefireworksdk.R
|
|
15
15
|
import com.reactnativefireworksdk.models.*
|
|
16
16
|
import com.reactnativefireworksdk.utils.FWEventUtils
|
|
17
|
-
import com.reactnativefireworksdk.utils.FWLogUtils
|
|
18
17
|
import com.reactnativefireworksdk.utils.FWVideoPlayerUtils
|
|
19
18
|
|
|
20
19
|
|
|
@@ -24,7 +23,7 @@ class FWVideoFeed(
|
|
|
24
23
|
) : RelativeLayout(context, attrs) {
|
|
25
24
|
|
|
26
25
|
// private val reactContext: ReactContext = context.reactApplicationContext
|
|
27
|
-
private val activity: Activity = context.
|
|
26
|
+
private val activity: Activity = context.currentActivity as Activity
|
|
28
27
|
|
|
29
28
|
private val videoFeedView: VideoFeedView
|
|
30
29
|
private var channelId: String? = null
|
|
@@ -41,7 +40,7 @@ class FWVideoFeed(
|
|
|
41
40
|
videoFeedView.addOnItemClickedListener(object: OnItemClickedListener {
|
|
42
41
|
override fun onItemClicked(index: Int, title: String, id: String, videoDuration: Long) {
|
|
43
42
|
val fwVideoFeedItemDetailsModel = FWVideoFeedItemDetailsModel(index, id, videoDuration.toInt())
|
|
44
|
-
FWEventUtils.sendVideoFeedClickEvent(context
|
|
43
|
+
FWEventUtils.sendVideoFeedClickEvent(context, fwVideoFeedItemDetailsModel)
|
|
45
44
|
}
|
|
46
45
|
|
|
47
46
|
override fun onItemClicked(index: Int) {
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
|
|
|
10
10
|
s.license = package["license"]
|
|
11
11
|
s.authors = package["author"]
|
|
12
12
|
|
|
13
|
-
s.platforms = { :ios => "
|
|
13
|
+
s.platforms = { :ios => "12.0" }
|
|
14
14
|
s.source = { :git => "https://github.com/loopsocial/bogano.git", :tag => "#{s.version}" }
|
|
15
15
|
|
|
16
16
|
s.swift_version = '5.0'
|