react-native-spalla-player 0.13.2 → 0.13.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.
@@ -109,7 +109,7 @@ dependencies {
109
109
  implementation "com.facebook.react:react-native:+"
110
110
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
111
111
  implementation "androidx.mediarouter:mediarouter:1.2.0"
112
- implementation "stream.spalla:spalla-android-sdk:1.10.0"
112
+ implementation "stream.spalla:spalla-android-sdk:1.10.1"
113
113
  implementation "com.google.android.gms:play-services-cast-framework:21.3.0"
114
114
  }
115
115
 
@@ -4,11 +4,7 @@ import android.util.Log
4
4
  import android.view.View
5
5
  import com.facebook.react.bridge.Arguments
6
6
  import com.facebook.react.bridge.ReactContext
7
- import com.facebook.react.bridge.ReadableArray
8
- import com.facebook.react.bridge.ReadableNativeArray
9
- import com.facebook.react.bridge.WritableArray
10
7
  import com.facebook.react.bridge.WritableMap
11
- import com.facebook.react.common.MapBuilder
12
8
  import com.facebook.react.uimanager.ViewGroupManager
13
9
  import com.facebook.react.uimanager.ThemedReactContext
14
10
  import com.facebook.react.uimanager.annotations.ReactProp
@@ -48,15 +44,15 @@ class RNSpallaPlayerManager() : ViewGroupManager<SpallaPlayerContainerView>(),
48
44
  }
49
45
 
50
46
  override fun getExportedCustomBubblingEventTypeConstants(): MutableMap<String, Any> {
51
- return MapBuilder.builder<String, Any>()
52
- .put(
53
- "onPlayerEvent",
54
- MapBuilder.of(
55
- "phasedRegistrationNames",
56
- MapBuilder.of("bubbled", "onPlayerEvent")
57
- )
47
+ val eventMap = mutableMapOf<String, Any>()
48
+
49
+ eventMap["onPlayerEvent"] = mapOf(
50
+ "phasedRegistrationNames" to mapOf(
51
+ "bubbled" to "onPlayerEvent"
58
52
  )
59
- .build()
53
+ )
54
+
55
+ return eventMap
60
56
  }
61
57
 
62
58
  override fun onDropViewInstance(view: SpallaPlayerContainerView) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-spalla-player",
3
- "version": "0.13.2",
3
+ "version": "0.13.4",
4
4
  "description": "Spalla SDK for RN",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
16
16
 
17
17
  s.source_files = "ios/**/*.{h,m,mm,swift}"
18
18
 
19
- s.dependency "SpallaSDK", "~> 2.2.3"
19
+ s.dependency "SpallaSDK", "~> 2.2.4"
20
20
 
21
21
  # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
22
22
  # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.