react-native-nitro-cookies 1.2.0 → 1.2.1

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,14 @@ 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'". Only apply it when nothing has
27
+ // registered that extension yet.
28
+ if (project.extensions.findByName('kotlin') == null) {
29
+ apply plugin: "kotlin-android"
30
+ }
31
+
25
32
  apply from: '../nitrogen/generated/android/nitrocookies+autolinking.gradle'
26
33
 
27
34
  apply plugin: "com.facebook.react"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-nitro-cookies",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Fetch, Get Cookies 🍪 at the Speed of Nitro",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",