@cloudflare/realtimekit-react-native 0.2.1-staging.1 → 0.2.1-staging.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.
@@ -29,7 +29,11 @@ import java.util.HashMap;
29
29
 
30
30
  import com.cloudflare.realtimekit.RTKHolder;
31
31
 
32
- @ReactModule(name = "RTKHelperModule")
32
+ /*
33
+ * RTKHelper here was renamed from RTKHelperModule to match the module name returned from getName()
34
+ * Keeping different namings in React Module definition & getName() breaks in Expo with newArchitecture enabled
35
+ */
36
+ @ReactModule(name = "RTKHelper")
33
37
  public class RTKHelperModule extends ReactContextBaseJavaModule {
34
38
 
35
39
  private final ReactApplicationContext reactContext;
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.SDK_VERSION = void 0;
7
- const SDK_VERSION = exports.SDK_VERSION = '0.2.1-staging.1';
7
+ const SDK_VERSION = exports.SDK_VERSION = '0.2.1-staging.3';
8
8
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["SDK_VERSION","exports"],"sources":["version.ts"],"sourcesContent":["export const SDK_VERSION = '0.2.1-staging.1';\n"],"mappings":";;;;;;AAAO,MAAMA,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG,iBAAiB","ignoreList":[]}
1
+ {"version":3,"names":["SDK_VERSION","exports"],"sources":["version.ts"],"sourcesContent":["export const SDK_VERSION = '0.2.1-staging.3';\n"],"mappings":";;;;;;AAAO,MAAMA,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG,iBAAiB","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- export const SDK_VERSION = '0.2.1-staging.1';
1
+ export const SDK_VERSION = '0.2.1-staging.3';
2
2
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["SDK_VERSION"],"sources":["version.ts"],"sourcesContent":["export const SDK_VERSION = '0.2.1-staging.1';\n"],"mappings":"AAAA,OAAO,MAAMA,WAAW,GAAG,iBAAiB","ignoreList":[]}
1
+ {"version":3,"names":["SDK_VERSION"],"sources":["version.ts"],"sourcesContent":["export const SDK_VERSION = '0.2.1-staging.3';\n"],"mappings":"AAAA,OAAO,MAAMA,WAAW,GAAG,iBAAiB","ignoreList":[]}
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.2.1-staging.1";
1
+ export declare const SDK_VERSION = "0.2.1-staging.3";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudflare/realtimekit-react-native",
3
- "version": "0.2.1-staging.1",
3
+ "version": "0.2.1-staging.3",
4
4
  "description": "Cloudflare RealtimeKit SDK for react native",
5
5
  "main": "lib/commonjs/index",
6
6
  "author": "Cloudflare",
@@ -98,6 +98,7 @@ const withAndroidScreenshare = (config) => {
98
98
  });
99
99
  };
100
100
  const withAndroidBlobProviderAuthority = (config) => {
101
+ const uuid = require('uuid').v4();
101
102
  return (0, config_plugins_1.withStringsXml)(config, async (_config) => {
102
103
  // Avoid duplicates
103
104
  const existing = _config.modResults.resources.string?.find((item) => item.$.name === 'blob_provider_authority');
@@ -106,7 +107,7 @@ const withAndroidBlobProviderAuthority = (config) => {
106
107
  ...(_config.modResults.resources.string || []),
107
108
  {
108
109
  $: { name: 'blob_provider_authority' },
109
- _: 'com.cloudflare.realtimekit.expo.blobs',
110
+ _: 'com.cloudflare.realtimekit.expo.blobs-' + uuid,
110
111
  },
111
112
  ];
112
113
  }
@@ -148,6 +148,7 @@ const withAndroidScreenshare: ConfigPlugin = (config) => {
148
148
  };
149
149
 
150
150
  const withAndroidBlobProviderAuthority: ConfigPlugin = (config) => {
151
+ const uuid = require('uuid').v4();
151
152
  return withStringsXml(config, async (_config) => {
152
153
  // Avoid duplicates
153
154
  const existing = _config.modResults.resources.string?.find(
@@ -158,7 +159,7 @@ const withAndroidBlobProviderAuthority: ConfigPlugin = (config) => {
158
159
  ...(_config.modResults.resources.string || []),
159
160
  {
160
161
  $: { name: 'blob_provider_authority' },
161
- _: 'com.cloudflare.realtimekit.expo.blobs',
162
+ _: 'com.cloudflare.realtimekit.expo.blobs-' + uuid,
162
163
  },
163
164
  ];
164
165
  }