@siteed/expo-audio-stream 1.2.1 → 1.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 +0 -10
- package/plugin/src/index.ts +0 -11
- package/publish.sh +5 -1
package/package.json
CHANGED
package/plugin/build/index.js
CHANGED
|
@@ -11,7 +11,6 @@ const withRecordingPermission = (config) => {
|
|
|
11
11
|
config.modResults['NSMicrophoneUsageDescription'] ||
|
|
12
12
|
MICROPHONE_USAGE;
|
|
13
13
|
// Add notification permissions
|
|
14
|
-
// This is the correct key for iOS notifications
|
|
15
14
|
config.modResults['NSUserNotificationsUsageDescription'] =
|
|
16
15
|
NOTIFICATION_USAGE;
|
|
17
16
|
// Add notification style
|
|
@@ -25,15 +24,6 @@ const withRecordingPermission = (config) => {
|
|
|
25
24
|
existingBackgroundModes.push('remote-notification');
|
|
26
25
|
}
|
|
27
26
|
config.modResults.UIBackgroundModes = existingBackgroundModes;
|
|
28
|
-
// Required capabilities for notifications
|
|
29
|
-
if (!config.modResults.UIRequiredDeviceCapabilities) {
|
|
30
|
-
config.modResults.UIRequiredDeviceCapabilities = [];
|
|
31
|
-
}
|
|
32
|
-
const capabilities = config.modResults
|
|
33
|
-
.UIRequiredDeviceCapabilities;
|
|
34
|
-
if (!capabilities.includes('notification')) {
|
|
35
|
-
capabilities.push('notification');
|
|
36
|
-
}
|
|
37
27
|
return config;
|
|
38
28
|
});
|
|
39
29
|
// Android Configuration
|
package/plugin/src/index.ts
CHANGED
|
@@ -18,7 +18,6 @@ const withRecordingPermission: ConfigPlugin = (config: ExpoConfig) => {
|
|
|
18
18
|
MICROPHONE_USAGE
|
|
19
19
|
|
|
20
20
|
// Add notification permissions
|
|
21
|
-
// This is the correct key for iOS notifications
|
|
22
21
|
config.modResults['NSUserNotificationsUsageDescription'] =
|
|
23
22
|
NOTIFICATION_USAGE
|
|
24
23
|
|
|
@@ -36,16 +35,6 @@ const withRecordingPermission: ConfigPlugin = (config: ExpoConfig) => {
|
|
|
36
35
|
}
|
|
37
36
|
config.modResults.UIBackgroundModes = existingBackgroundModes
|
|
38
37
|
|
|
39
|
-
// Required capabilities for notifications
|
|
40
|
-
if (!config.modResults.UIRequiredDeviceCapabilities) {
|
|
41
|
-
config.modResults.UIRequiredDeviceCapabilities = []
|
|
42
|
-
}
|
|
43
|
-
const capabilities = config.modResults
|
|
44
|
-
.UIRequiredDeviceCapabilities as string[]
|
|
45
|
-
if (!capabilities.includes('notification')) {
|
|
46
|
-
capabilities.push('notification')
|
|
47
|
-
}
|
|
48
|
-
|
|
49
38
|
return config
|
|
50
39
|
})
|
|
51
40
|
|
package/publish.sh
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
2
|
set -e
|
|
3
3
|
|
|
4
|
+
# Change to script's directory
|
|
5
|
+
cd "$(dirname "$0")"
|
|
6
|
+
echo "Changed to script directory: $(pwd)"
|
|
7
|
+
|
|
4
8
|
echo "Starting publication process..."
|
|
5
9
|
|
|
6
10
|
# Get current version from package.json
|
|
@@ -63,7 +67,7 @@ yarn deploy
|
|
|
63
67
|
|
|
64
68
|
# Commit changes
|
|
65
69
|
echo "Committing changes..."
|
|
66
|
-
git add
|
|
70
|
+
git add "$(pwd)/../../" # add all changes in the root folder
|
|
67
71
|
git commit -m "feat: bump version to $version"
|
|
68
72
|
|
|
69
73
|
echo "Publication process completed successfully!"
|