@react-native-video/drm 7.0.0-beta.11 → 7.0.0-beta.14

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.
@@ -21,7 +21,16 @@ def reactNativeArchitectures() {
21
21
  }
22
22
 
23
23
  apply plugin: "com.android.library"
24
- apply plugin: "kotlin-android"
24
+ // AGP 9 ships built-in Kotlin support and registers the `kotlin` extension
25
+ // itself. Applying the Kotlin plugin on top of it fails configuration with
26
+ // "Cannot add extension with name 'kotlin'". Asking for the extension covers
27
+ // every way built-in Kotlin can be turned on -- the global default, the
28
+ // android.builtInKotlin property, and the per-module com.android.built-in-kotlin
29
+ // plugin -- without reading an AGP version number.
30
+ if (project.extensions.findByName('kotlin') == null) {
31
+ apply plugin: "kotlin-android"
32
+ }
33
+
25
34
  apply from: '../nitrogen/generated/android/ReactNativeVideoDrm+autolinking.gradle'
26
35
 
27
36
  apply plugin: "com.facebook.react"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-video/drm",
3
- "version": "7.0.0-beta.11",
3
+ "version": "7.0.0-beta.14",
4
4
  "description": "DRM plugin for react-native-video",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",