esoftplay 0.0.267 → 0.0.268-04cfb21

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.
@@ -0,0 +1,37 @@
1
+ const { withAndroidManifest } = require('@expo/config-plugins');
2
+
3
+ module.exports = function withAndroidPermissionsFix(config) {
4
+ return withAndroidManifest(config, async (config) => {
5
+ const manifest = config.modResults.manifest;
6
+
7
+ // 1. Ensure the 'tools' namespace exists in the <manifest> tag
8
+ manifest.$['xmlns:tools'] = 'http://schemas.android.com/tools';
9
+
10
+ // 2. Find or create the READ_MEDIA_IMAGES permission entry
11
+ if (!manifest['uses-permission']) {
12
+ manifest['uses-permission'] = [];
13
+ }
14
+
15
+ const permissionName = 'android.permission.READ_MEDIA_IMAGES';
16
+ const existingPermission = manifest['uses-permission'].find(
17
+ (p) => p.$['android:name'] === permissionName
18
+ );
19
+
20
+ if (existingPermission) {
21
+ // Update existing entry to include the replace rule
22
+ existingPermission.$['android:maxSdkVersion'] = '34';
23
+ existingPermission.$['tools:replace'] = 'android:maxSdkVersion';
24
+ } else {
25
+ // Add new entry if it doesn't exist
26
+ manifest['uses-permission'].push({
27
+ $: {
28
+ 'android:name': permissionName,
29
+ 'android:maxSdkVersion': '34',
30
+ 'tools:replace': 'android:maxSdkVersion',
31
+ },
32
+ });
33
+ }
34
+
35
+ return config;
36
+ });
37
+ };
package/bin/build.js CHANGED
@@ -142,6 +142,7 @@ if (fs.existsSync(packjson)) {
142
142
  "./raw/plugins/heapSize",
143
143
  "./raw/plugins/fcmIcon",
144
144
  "./raw/plugins/noDarkAndroid",
145
+ "./raw/plugins/withAndroidPermissionsFix",
145
146
  "./raw/plugins/withAndroidVerifiedLinksWorkaround",
146
147
  ]
147
148
 
@@ -336,7 +337,7 @@ export default function App() {
336
337
  'react-native-mmkv',
337
338
  'react-native-reanimated',
338
339
  'react-native-safe-area-context',
339
- "react-native-worklets",
340
+ // "react-native-worklets",
340
341
  'react-native-screens',
341
342
  'react-native-webview',
342
343
  'shorthash',
package/bin/cli.js CHANGED
@@ -27,6 +27,7 @@ var args = process.argv.slice(2);
27
27
 
28
28
  // console.log(modpath, "sdofsjdofjsd")
29
29
  async function execution() {
30
+ command('bun ./node_modules/esoftplay/bin/connector.js')
30
31
  const preload = await preload_api()
31
32
  console.log("PRELOAD", preload)
32
33
  if (preload) {