pulse-updates 1.3.2 → 1.3.3

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.
@@ -15,6 +15,16 @@ buildscript {
15
15
  apply plugin: 'com.android.library'
16
16
  apply plugin: 'kotlin-android'
17
17
 
18
+ def isNewArchitectureEnabled() {
19
+ return project.hasProperty('newArchEnabled') && project.newArchEnabled == 'true'
20
+ }
21
+
22
+ // The host autolinker adds this library's codegen target to Android-autolinking.cmake.
23
+ // Apply the React plugin in New Architecture builds so that target is actually generated.
24
+ if (isNewArchitectureEnabled()) {
25
+ apply plugin: 'com.facebook.react'
26
+ }
27
+
18
28
  android {
19
29
  namespace "app.pulse.updates"
20
30
  compileSdkVersion safeExtGet('compileSdkVersion', 34)
@@ -28,6 +38,9 @@ android {
28
38
  sourceSets {
29
39
  main {
30
40
  java.srcDirs = ['src/main/java']
41
+ if (isNewArchitectureEnabled()) {
42
+ java.srcDirs += ["${project.buildDir}/generated/source/codegen/java"]
43
+ }
31
44
  }
32
45
  }
33
46
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pulse-updates",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "description": "Pulse app-experience SDK for React Native: updates, config, experiments, events, decisions and first-party links",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",