@siteed/expo-audio-stream 0.2.2 → 0.2.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.
- package/package.json +1 -1
- package/plugin/build/index.js +4 -1
- package/plugin/src/index.ts +4 -1
package/package.json
CHANGED
package/plugin/build/index.js
CHANGED
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const config_plugins_1 = require("@expo/config-plugins");
|
|
4
4
|
const MICROPHONE_USAGE = "Allow $(PRODUCT_NAME) to access your microphone";
|
|
5
|
-
const withRecordingPermission = (config,
|
|
5
|
+
const withRecordingPermission = (config, existingPerms) => {
|
|
6
|
+
if (!existingPerms) {
|
|
7
|
+
console.warn("No previous permissions provided");
|
|
8
|
+
}
|
|
6
9
|
config = (0, config_plugins_1.withInfoPlist)(config, (config) => {
|
|
7
10
|
config.modResults["NSMicrophoneUsageDescription"] = MICROPHONE_USAGE;
|
|
8
11
|
return config;
|
package/plugin/src/index.ts
CHANGED
|
@@ -9,7 +9,10 @@ const MICROPHONE_USAGE = "Allow $(PRODUCT_NAME) to access your microphone";
|
|
|
9
9
|
|
|
10
10
|
const withRecordingPermission: ConfigPlugin<{
|
|
11
11
|
microphonePermission: string;
|
|
12
|
-
}> = (config,
|
|
12
|
+
}> = (config, existingPerms) => {
|
|
13
|
+
if (!existingPerms) {
|
|
14
|
+
console.warn("No previous permissions provided");
|
|
15
|
+
}
|
|
13
16
|
config = withInfoPlist(config, (config) => {
|
|
14
17
|
config.modResults["NSMicrophoneUsageDescription"] = MICROPHONE_USAGE;
|
|
15
18
|
return config;
|