react-native-firework-sdk 1.0.2 → 1.0.5

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.
@@ -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 {
@@ -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.reactApplicationContext.currentActivity as Activity
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.reactApplicationContext, fwVideoFeedItemDetailsModel)
43
+ FWEventUtils.sendVideoFeedClickEvent(context, fwVideoFeedItemDetailsModel)
45
44
  }
46
45
 
47
46
  override fun onItemClicked(index: Int) {
package/package.json CHANGED
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "react-native-firework-sdk",
3
- "version": "1.0.2",
3
+ "version": "1.0.5",
4
4
  "description": "Firework React Native SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
7
7
  "types": "lib/typescript/index.d.ts",
8
- "react-native": "src/index",
9
8
  "source": "src/index",
10
9
  "files": [
11
10
  "src",
@@ -10,9 +10,10 @@ Pod::Spec.new do |s|
10
10
  s.license = package["license"]
11
11
  s.authors = package["author"]
12
12
 
13
- s.platforms = { :ios => "11.0" }
13
+ s.platforms = { :ios => "12.0" }
14
14
  s.source = { :git => "https://github.com/loopsocial/bogano.git", :tag => "#{s.version}" }
15
15
 
16
+ s.swift_version = '5.0'
16
17
  # s.header_dir = "ios"
17
18
  # s.public_header_files = "ios/*.h"
18
19
  s.source_files = "ios/**/*.{h,m,mm,swift}"