@datadog/mobile-react-native-webview 3.10.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.
@@ -23,8 +23,8 @@ Pod::Spec.new do |s|
23
23
  end
24
24
 
25
25
  # /!\ Remember to keep the version in sync with DatadogSDKReactNative.podspec
26
- s.dependency 'DatadogWebViewTracking', '3.16.0'
27
- s.dependency 'DatadogInternal', '3.16.0'
26
+ s.dependency 'DatadogWebViewTracking', '3.16.1'
27
+ s.dependency 'DatadogInternal', '3.16.1'
28
28
  s.dependency 'DatadogSDKReactNative'
29
29
 
30
30
  s.test_spec 'Tests' do |test_spec|
@@ -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
  }
@@ -196,7 +205,7 @@ dependencies {
196
205
  implementation "com.facebook.react:react-android:$reactNativeVersion"
197
206
  }
198
207
 
199
- implementation "com.datadoghq:dd-sdk-android-webview:3.13.1"
208
+ implementation "com.datadoghq:dd-sdk-android-webview:3.15.0"
200
209
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
201
210
 
202
211
  implementation project(path: ':datadog_mobile-react-native')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datadog/mobile-react-native-webview",
3
- "version": "3.10.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": "14166cc5fe36299fb641805b76f06bac2043fe1c"
97
+ "gitHead": "d0e4c26e84cbd0389d1dd564b02a558ec1563f37"
98
98
  }