@cloudflare/realtimekit-react-native 0.1.4-staging.8 → 0.1.4-staging.9

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.
@@ -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.1.4-staging.8';
7
+ const SDK_VERSION = exports.SDK_VERSION = '0.1.4-staging.9';
8
8
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["SDK_VERSION","exports"],"sources":["version.ts"],"sourcesContent":["export const SDK_VERSION = '0.1.4-staging.8';\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.1.4-staging.9';\n"],"mappings":";;;;;;AAAO,MAAMA,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG,iBAAiB","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- export const SDK_VERSION = '0.1.4-staging.8';
1
+ export const SDK_VERSION = '0.1.4-staging.9';
2
2
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["SDK_VERSION"],"sources":["version.ts"],"sourcesContent":["export const SDK_VERSION = '0.1.4-staging.8';\n"],"mappings":"AAAA,OAAO,MAAMA,WAAW,GAAG,iBAAiB","ignoreList":[]}
1
+ {"version":3,"names":["SDK_VERSION"],"sources":["version.ts"],"sourcesContent":["export const SDK_VERSION = '0.1.4-staging.9';\n"],"mappings":"AAAA,OAAO,MAAMA,WAAW,GAAG,iBAAiB","ignoreList":[]}
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.4-staging.8";
1
+ export declare const SDK_VERSION = "0.1.4-staging.9";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudflare/realtimekit-react-native",
3
- "version": "0.1.4-staging.8",
3
+ "version": "0.1.4-staging.9",
4
4
  "description": "Cloudflare RealtimeKit SDK for react native",
5
5
  "main": "lib/commonjs/index",
6
6
  "author": "Cloudflare",
@@ -97,6 +97,22 @@ const withAndroidScreenshare = (config) => {
97
97
  return _config;
98
98
  });
99
99
  };
100
+ const withAndroidBlobProviderAuthority = (config) => {
101
+ return (0, config_plugins_1.withStringsXml)(config, async (_config) => {
102
+ // Avoid duplicates
103
+ const existing = _config.modResults.resources.string?.find((item) => item.$.name === 'blob_provider_authority');
104
+ if (!existing) {
105
+ _config.modResults.resources.string = [
106
+ ...(_config.modResults.resources.string || []),
107
+ {
108
+ $: { name: 'blob_provider_authority' },
109
+ _: 'com.cloudflare.realtimekit.expo.blobs',
110
+ },
111
+ ];
112
+ }
113
+ return _config;
114
+ });
115
+ };
100
116
  const withVoice = (config, props = {}) => {
101
117
  const _props = props ? props : {};
102
118
  config = withIosPermissions(config, _props);
@@ -104,6 +120,7 @@ const withVoice = (config, props = {}) => {
104
120
  config = withAndroidPermissions(config);
105
121
  }
106
122
  config = withAndroidScreenshare(config);
123
+ config = withAndroidBlobProviderAuthority(config);
107
124
  return config;
108
125
  };
109
126
  exports.default = (0, config_plugins_1.createRunOncePlugin)(withVoice, '@cloudflare/realtimekit-react-native');
@@ -5,6 +5,7 @@ import {
5
5
  createRunOncePlugin,
6
6
  withAndroidManifest,
7
7
  withInfoPlist,
8
+ withStringsXml,
8
9
  } from '@expo/config-plugins';
9
10
 
10
11
  const MICROPHONE = 'Allow $(PRODUCT_NAME) to access the microphone';
@@ -146,6 +147,25 @@ const withAndroidScreenshare: ConfigPlugin = (config) => {
146
147
  });
147
148
  };
148
149
 
150
+ const withAndroidBlobProviderAuthority: ConfigPlugin = (config) => {
151
+ return withStringsXml(config, async (_config) => {
152
+ // Avoid duplicates
153
+ const existing = _config.modResults.resources.string?.find(
154
+ (item) => item.$.name === 'blob_provider_authority'
155
+ );
156
+ if (!existing) {
157
+ _config.modResults.resources.string = [
158
+ ...(_config.modResults.resources.string || []),
159
+ {
160
+ $: { name: 'blob_provider_authority' },
161
+ _: 'com.cloudflare.realtimekit.expo.blobs',
162
+ },
163
+ ];
164
+ }
165
+ return _config;
166
+ });
167
+ };
168
+
149
169
  const withVoice: ConfigPlugin<Props | void> = (config, props = {}) => {
150
170
  const _props = props ? props : {};
151
171
  config = withIosPermissions(config, _props);
@@ -153,6 +173,7 @@ const withVoice: ConfigPlugin<Props | void> = (config, props = {}) => {
153
173
  config = withAndroidPermissions(config);
154
174
  }
155
175
  config = withAndroidScreenshare(config);
176
+ config = withAndroidBlobProviderAuthority(config);
156
177
  return config;
157
178
  };
158
179