react-native-theoplayer 3.10.0 → 3.10.2

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/CHANGELOG.md CHANGED
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.1.0/)
6
6
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [3.10.2] - 24-03-22
9
+
10
+ ### Changed
11
+
12
+ - Downgraded default `androidx.core:core-ktx` dependency version to support Android target sdk 33.
13
+
14
+ ## [3.10.1] - 24-03-19
15
+
16
+ ### Changed
17
+
18
+ - Updated ios sdk version to 6.12.1
19
+
8
20
  ## [3.10.0] - 24-03-15
9
21
 
10
22
  ### Changed
@@ -9,7 +9,7 @@ buildscript {
9
9
  }
10
10
 
11
11
  dependencies {
12
- classpath 'com.android.tools.build:gradle:8.2.2'
12
+ classpath "com.android.tools.build:gradle:${safeExtGet('gradlePluginVersion', '8.2.2')}"
13
13
  classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${safeExtGet('kotlinVersion', '1.9.21')}"
14
14
  }
15
15
  }
@@ -108,9 +108,9 @@ repositories {
108
108
  dependencies {
109
109
  //noinspection GradleDynamicVersion
110
110
  implementation "com.facebook.react:react-native:+" // From node_modules
111
- implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3"
112
- implementation "androidx.appcompat:appcompat:1.6.1"
113
- implementation "androidx.core:core-ktx:1.12.0"
111
+ implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:${safeExtGet('coroutinesVersion', '1.7.3')}"
112
+ implementation "androidx.appcompat:appcompat:${safeExtGet('appcompatVersion', '1.6.1')}"
113
+ implementation "androidx.core:core-ktx:${safeExtGet('corektxVersion', '1.10.1')}"
114
114
 
115
115
  // The minimum supported THEOplayer version is 6.0.0
116
116
  def theoplayer_sdk_version = safeExtGet('THEOplayer_sdk', '[6.0.0,7.0)')
@@ -293,13 +293,18 @@ class MediaPlaybackService : MediaBrowserServiceCompat() {
293
293
 
294
294
  private fun startForegroundWithPlaybackState(@PlaybackStateCompat.State playbackState: Int, largeIcon: Bitmap? = null) {
295
295
  try {
296
- ServiceCompat.startForeground(
297
- this, NOTIFICATION_ID,
298
- notificationBuilder.build(playbackState, largeIcon, enableMediaControls),
299
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q)
296
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
297
+ startForeground(
298
+ NOTIFICATION_ID,
299
+ notificationBuilder.build(playbackState, largeIcon, enableMediaControls),
300
300
  ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK
301
- else 0
302
- )
301
+ )
302
+ } else {
303
+ startForeground(
304
+ NOTIFICATION_ID,
305
+ notificationBuilder.build(playbackState, largeIcon, enableMediaControls)
306
+ )
307
+ }
303
308
  } catch (e: IllegalStateException) {
304
309
  // Make sure that app does not crash in case anything goes wrong with starting the service.
305
310
  // https://issuetracker.google.com/issues/229000935
@@ -1,7 +1,7 @@
1
1
  // THEOplayerRCTDebug.swift
2
2
 
3
3
  // General debug flag, if set to false none of the debug prints will appear
4
- let DEBUG = true
4
+ let DEBUG = false
5
5
 
6
6
  // Debug flag to monitor incoming Theoplayer events
7
7
  let DEBUG_THEOPLAYER_EVENTS = DEBUG && false
@@ -10,7 +10,7 @@ let DEBUG_THEOPLAYER_EVENTS = DEBUG && false
10
10
  let DEBUG_EVENTHANDLER = DEBUG && false
11
11
 
12
12
  // Debug flag to monitor the interactions for each view with its underlying theoplayer instance
13
- let DEBUG_THEOPLAYER_INTERACTION = DEBUG && true
13
+ let DEBUG_THEOPLAYER_INTERACTION = DEBUG && false
14
14
 
15
15
  // Debug flag to monitor contentProtection integration handling
16
16
  let DEBUG_CONTENT_PROTECTION_API = DEBUG && false
@@ -40,7 +40,7 @@ let DEBUG_REMOTECOMMANDS = DEBUG && false
40
40
  let DEBUG_PIPCONTROLS = DEBUG && false
41
41
 
42
42
  // Debug flag to monitor incoming cache events
43
- let DEBUG_CACHE_EVENTS = DEBUG && true
43
+ let DEBUG_CACHE_EVENTS = DEBUG && false
44
44
 
45
45
  // Debug flag to monitor cache API usage
46
- let DEBUG_CACHE_API = DEBUG && true
46
+ let DEBUG_CACHE_API = DEBUG && false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-theoplayer",
3
- "version": "3.10.0",
3
+ "version": "3.10.2",
4
4
  "description": "A THEOplayer video component for react-native.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -41,20 +41,20 @@ Pod::Spec.new do |s|
41
41
  }
42
42
  else
43
43
  puts "Using THEOplayer-core SDK"
44
- s.dependency "THEOplayerSDK-core", "6.11"
44
+ s.dependency "THEOplayerSDK-core", "~> 6.11", "!= 6.12.0"
45
45
  if theofeatures.include?("GOOGLE_IMA")
46
46
  puts "Adding THEOplayer-Integration-GoogleIMA"
47
- s.dependency "THEOplayer-Integration-GoogleIMA/Base", "6.11"
48
- s.dependency "THEOplayer-Integration-GoogleIMA/Dependencies", "6.11"
47
+ s.dependency "THEOplayer-Integration-GoogleIMA/Base", "~> 6.11", "!= 6.12.0"
48
+ s.dependency "THEOplayer-Integration-GoogleIMA/Dependencies", "~> 6.11", "!= 6.12.0"
49
49
  end
50
50
  if theofeatures.include?("CHROMECAST")
51
51
  puts "Adding THEOplayer-Integration-GoogleCast"
52
- s.ios.dependency "THEOplayer-Integration-GoogleCast/Base", "6.11"
52
+ s.ios.dependency "THEOplayer-Integration-GoogleCast/Base", "~> 6.11", "!= 6.12.0"
53
53
  s.ios.dependency "google-cast-sdk-dynamic-xcframework", "~> 4.8"
54
54
  end
55
55
  if theofeatures.include?("SIDELOADED_TEXTTRACKS")
56
56
  puts "Adding THEOplayer-Connector-SideloadedSubtitle"
57
- s.dependency "THEOplayer-Connector-SideloadedSubtitle", "6.11"
57
+ s.dependency "THEOplayer-Connector-SideloadedSubtitle", "~> 6.11", "!= 6.12.0"
58
58
  end
59
59
  end
60
60