expo-video 1.1.6 → 1.1.7

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
@@ -10,6 +10,10 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 1.1.7 — 2024-05-06
14
+
15
+ _This version does not introduce any user-facing changes._
16
+
13
17
  ## 1.1.6 — 2024-05-01
14
18
 
15
19
  ### 🎉 New features
@@ -1,7 +1,7 @@
1
1
  apply plugin: 'com.android.library'
2
2
 
3
3
  group = 'host.exp.exponent'
4
- version = '1.1.6'
4
+ version = '1.1.7'
5
5
 
6
6
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
7
7
  apply from: expoModulesCorePlugin
@@ -14,7 +14,7 @@ android {
14
14
  namespace "expo.modules.video"
15
15
  defaultConfig {
16
16
  versionCode 1
17
- versionName '1.1.6'
17
+ versionName '1.1.7'
18
18
  }
19
19
  }
20
20
 
@@ -46,9 +46,10 @@ class FullscreenPlayerActivity : Activity() {
46
46
  VideoManager.getVideoView(videoViewId).exitFullscreen()
47
47
 
48
48
  // Disable the exit transition
49
- if (Build.VERSION.SDK_INT >= 34) {
49
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
50
50
  overrideActivityTransition(OVERRIDE_TRANSITION_CLOSE, 0, 0)
51
51
  } else {
52
+ @Suppress("DEPRECATION")
52
53
  overridePendingTransition(0, 0)
53
54
  }
54
55
  }
@@ -51,6 +51,7 @@ class VideoPlayerAudioFocusManager(val context: Context, private val player: Wea
51
51
  this.currentFocusRequest = newFocusRequest
52
52
  audioManager.requestAudioFocus(newFocusRequest)
53
53
  } else {
54
+ @Suppress("DEPRECATION")
54
55
  audioManager.requestAudioFocus(
55
56
  this,
56
57
  AudioManager.STREAM_MUSIC,
@@ -64,6 +65,7 @@ class VideoPlayerAudioFocusManager(val context: Context, private val player: Wea
64
65
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
65
66
  audioManager.abandonAudioFocusRequest(it)
66
67
  } else {
68
+ @Suppress("DEPRECATION")
67
69
  audioManager.abandonAudioFocus(this)
68
70
  }
69
71
  }
@@ -146,6 +146,7 @@ class VideoView(context: Context, appContext: AppContext) : ExpoView(context, ap
146
146
  if (Build.VERSION.SDK_INT >= 34) {
147
147
  currentActivity.overrideActivityTransition(Activity.OVERRIDE_TRANSITION_OPEN, 0, 0)
148
148
  } else {
149
+ @Suppress("DEPRECATION")
149
150
  currentActivity.overridePendingTransition(0, 0)
150
151
  }
151
152
  isInFullscreen = true
@@ -5,6 +5,7 @@ import android.graphics.Canvas
5
5
  import android.graphics.Outline
6
6
  import android.graphics.Path
7
7
  import android.graphics.RectF
8
+ import android.os.Build
8
9
  import android.view.View
9
10
  import android.view.ViewOutlineProvider
10
11
  import com.facebook.react.modules.i18nmanager.I18nUtil
@@ -197,7 +198,11 @@ class OutlineProvider(private val mContext: Context) : ViewOutlineProvider() {
197
198
  // shadow is. For the particular case, we fallback to canvas clipping in the view
198
199
  // which is supposed to call `clipCanvasIfNeeded` in its `draw` method.
199
200
  updateConvexPathIfNeeded()
200
- outline.setConvexPath(mConvexPath)
201
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
202
+ outline.setPath(mConvexPath)
203
+ } else {
204
+ outline.setConvexPath(mConvexPath)
205
+ }
201
206
  }
202
207
  }
203
208
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "expo-video",
3
3
  "title": "Expo Video",
4
- "version": "1.1.6",
4
+ "version": "1.1.7",
5
5
  "description": "A cross-platform, performant video component for React Native and Expo with Web support",
6
6
  "main": "build/index.js",
7
7
  "types": "build/index.d.ts",
@@ -36,5 +36,5 @@
36
36
  "peerDependencies": {
37
37
  "expo": "*"
38
38
  },
39
- "gitHead": "87bd0dfa8b784a834191195ca174a00dd30ee5b7"
39
+ "gitHead": "7995f30a8d2af4836f3aef9fe322e9403fc23d34"
40
40
  }