stream-chat-react-native 9.0.0-beta.13 → 9.0.0-beta.15

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.
@@ -155,3 +155,33 @@ if (isNewArchitectureEnabled()) {
155
155
  codegenJavaPackageName = "com.streamchatreactnative"
156
156
  }
157
157
  }
158
+
159
+ if (isNewArchitectureEnabled()) {
160
+ gradle.projectsEvaluated {
161
+ if (rootProject.ext.has("streamChatReactNativeCodegenHookInstalled")) {
162
+ return
163
+ }
164
+
165
+ def androidAppProject = rootProject.subprojects.find { it.plugins.hasPlugin("com.android.application") }
166
+ if (androidAppProject == null) {
167
+ return
168
+ }
169
+
170
+ def dependencyCodegenTasks = rootProject.subprojects
171
+ .findAll { it != androidAppProject }
172
+ .collect { it.tasks.findByName("generateCodegenArtifactsFromSchema") }
173
+ .findAll { it != null }
174
+
175
+ if (dependencyCodegenTasks.isEmpty()) {
176
+ return
177
+ }
178
+
179
+ rootProject.ext.set("streamChatReactNativeCodegenHookInstalled", true)
180
+
181
+ androidAppProject.tasks.matching { task ->
182
+ task.name.startsWith("configureCMake")
183
+ }.configureEach {
184
+ dependsOn(dependencyCodegenTasks)
185
+ }
186
+ }
187
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "stream-chat-react-native",
3
3
  "description": "The official React Native SDK for Stream Chat, a service for building chat applications",
4
- "version": "9.0.0-beta.13",
4
+ "version": "9.0.0-beta.15",
5
5
  "homepage": "https://www.npmjs.com/package/stream-chat-react-native",
6
6
  "author": {
7
7
  "company": "Stream.io Inc",
@@ -21,6 +21,7 @@
21
21
  "android/gradle",
22
22
  "ios",
23
23
  "*.podspec",
24
+ "react-native.config.js",
24
25
  "package.json"
25
26
  ],
26
27
  "license": "SEE LICENSE IN LICENSE",
@@ -29,7 +30,7 @@
29
30
  "dependencies": {
30
31
  "es6-symbol": "^3.1.3",
31
32
  "mime": "^4.0.7",
32
- "stream-chat-react-native-core": "9.0.0-beta.13"
33
+ "stream-chat-react-native-core": "9.0.0-beta.15"
33
34
  },
34
35
  "peerDependencies": {
35
36
  "@react-native-camera-roll/camera-roll": ">=7.8.0",
@@ -92,6 +93,9 @@
92
93
  "name": "StreamChatReactNativeSpec",
93
94
  "type": "all",
94
95
  "jsSrcsDir": "src/native",
96
+ "android": {
97
+ "javaPackageName": "com.streamchatreactnative"
98
+ },
95
99
  "ios": {
96
100
  "modulesProvider": {
97
101
  "StreamChatReactNative": "StreamChatReactNative",
@@ -0,0 +1,13 @@
1
+ module.exports = {
2
+ dependency: {
3
+ platforms: {
4
+ android: {
5
+ packageImportPath: 'import com.streamchatreactnative.StreamChatReactNativePackage;',
6
+ packageInstance: 'new StreamChatReactNativePackage()',
7
+ },
8
+ ios: {
9
+ podspecPath: 'stream-chat-react-native.podspec',
10
+ },
11
+ },
12
+ },
13
+ };