@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.
- package/lib/commonjs/utils/version.js +1 -1
- package/lib/commonjs/utils/version.js.map +1 -1
- package/lib/module/utils/version.js +1 -1
- package/lib/module/utils/version.js.map +1 -1
- package/lib/typescript/utils/version.d.ts +1 -1
- package/package.json +1 -1
- package/plugin/build/withRTK.js +17 -0
- package/plugin/src/withRTK.ts +21 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SDK_VERSION","exports"],"sources":["version.ts"],"sourcesContent":["export const SDK_VERSION = '0.1.4-staging.
|
|
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.
|
|
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.
|
|
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.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.4-staging.9";
|
package/package.json
CHANGED
package/plugin/build/withRTK.js
CHANGED
|
@@ -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');
|
package/plugin/src/withRTK.ts
CHANGED
|
@@ -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
|
|