@amplitude/plugin-session-replay-react-native 0.5.0 → 0.5.2

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.
@@ -7,8 +7,26 @@ def isNewArchitectureEnabled() {
7
7
  return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
8
8
  }
9
9
 
10
+ // Gradle configures projects alphabetically, so this project sorts before ':app'.
11
+ // If the app doesn't apply RN's 'com.facebook.react.rootproject' plugin, the RN gradle
12
+ // plugin's jvmToolchain(17) sweep reaches this project after AGP has already finalized
13
+ // its Java toolchain, failing with "property 'languageVersion' is final" (issue #1510).
14
+ // Configuring ':app' first (as rootproject would) keeps the sweep ahead of finalization.
15
+ // When the app already applies that plugin, this block is a harmless no-op (both force ':app' first).
16
+ if (findProject(':app') != null) {
17
+ evaluationDependsOn(':app')
18
+ }
19
+
10
20
  apply plugin: "com.android.library"
11
- apply plugin: "kotlin-android"
21
+ // AGP 9 ships built-in Kotlin support and registers the `kotlin` extension
22
+ // itself. Applying the Kotlin plugin on top of it fails configuration with
23
+ // "Cannot add extension with name 'kotlin'". Asking for the extension covers
24
+ // every way built-in Kotlin can be turned on -- the global default, the
25
+ // android.builtInKotlin property, and the per-module com.android.built-in-kotlin
26
+ // plugin -- without reading an AGP version number.
27
+ if (project.extensions.findByName('kotlin') == null) {
28
+ apply plugin: "kotlin-android"
29
+ }
12
30
 
13
31
  if (isNewArchitectureEnabled()) {
14
32
  apply plugin: "com.facebook.react"
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.VERSION = void 0;
7
- const VERSION = exports.VERSION = '0.5.0';
7
+ const VERSION = exports.VERSION = '0.5.2';
8
8
  //# sourceMappingURL=version.js.map
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.5.0';
1
+ export const VERSION = '0.5.2';
2
2
  //# sourceMappingURL=version.js.map
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.5.0";
1
+ export declare const VERSION = "0.5.2";
2
2
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amplitude/plugin-session-replay-react-native",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "Amplitude Session Replay plugin for React Native",
5
5
  "keywords": [
6
6
  "analytics",
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.5.0';
1
+ export const VERSION = '0.5.2';