@datadog/mobile-react-native-webview 3.11.0 → 3.12.0

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.
@@ -32,7 +32,16 @@ apply plugin: 'com.android.library'
32
32
  if (isNewArchitectureEnabled()) {
33
33
  apply plugin: 'com.facebook.react'
34
34
  }
35
- apply plugin: 'kotlin-android'
35
+ // AGP 9 ships built-in Kotlin support and registers the `kotlin` extension
36
+ // itself. Applying the Kotlin plugin on top of it fails configuration with
37
+ // "Cannot add extension with name 'kotlin'". Asking for the extension covers
38
+ // every way built-in Kotlin can be turned on -- the global default, the
39
+ // android.builtInKotlin property, and the per-module com.android.built-in-kotlin
40
+ // plugin -- without reading an AGP version number.
41
+ if (project.extensions.findByName('kotlin') == null) {
42
+ apply plugin: 'kotlin-android'
43
+ }
44
+
36
45
  apply plugin: 'org.jlleitschuh.gradle.ktlint'
37
46
  apply plugin: "io.gitlab.arturbosch.detekt"
38
47
 
@@ -127,9 +136,9 @@ android {
127
136
  sourceSets {
128
137
  main {
129
138
  if (isNewArchitectureEnabled()) {
130
- java.srcDirs += ['src/newarch']
139
+ kotlin.srcDirs += ['src/newarch']
131
140
  } else {
132
- java.srcDirs += ['src/oldarch']
141
+ kotlin.srcDirs += ['src/oldarch']
133
142
  }
134
143
  }
135
144
 
@@ -137,9 +146,9 @@ android {
137
146
  java.srcDir('src/test/kotlin')
138
147
 
139
148
  if (isNewArchitectureEnabled()) {
140
- java.srcDirs += ['src/testNewArch/kotlin']
149
+ kotlin.srcDirs += ['src/testNewArch/kotlin']
141
150
  } else {
142
- java.srcDirs += ['src/testOldArch/kotlin']
151
+ kotlin.srcDirs += ['src/testOldArch/kotlin']
143
152
  }
144
153
  }
145
154
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datadog/mobile-react-native-webview",
3
- "version": "3.11.0",
3
+ "version": "3.12.0",
4
4
  "description": "A client-side React Native module to interact with react-native-webview and Datadog",
5
5
  "keywords": [
6
6
  "datadog",
@@ -94,5 +94,5 @@
94
94
  "javaPackageName": "com.datadog.reactnative.webview"
95
95
  }
96
96
  },
97
- "gitHead": "740f7bb57bf494788159bc5b6f7d9fd2673c3879"
97
+ "gitHead": "d0e4c26e84cbd0389d1dd564b02a558ec1563f37"
98
98
  }