bundo-appgen 0.0.8 → 0.0.10

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/README.md CHANGED
@@ -158,11 +158,9 @@ The target name ("HelloWorld") is the .xcworkspace folder name without the .xcwo
158
158
 
159
159
  We want to wrap a native project as a React Native app host easily without hurting so much times by touching the native code or native platform tooling e.g. changing app icon, app metadata, touching native C++, Swift & Objective-C code for upgrading React Native, etc.
160
160
 
161
- This package is heavily inspired by the [Expo Continuous Native Generation](https://docs.expo.dev/workflow/continuous-native-generation). Expo does a heavy lifting, and can make developers focus more on providing and delivering the actual product.
161
+ This package is heavily inspired by the [Expo Continuous Native Generation](https://docs.expo.dev/workflow/continuous-native-generation). Expo does a heavy lifting that make developers focus more on providing and delivering the actual product.
162
162
 
163
- `bundo-appgen` also wants to get the same experience like Expo, but the main differentiation from Expo is **keeping each platform configurations separated**, instead of merging the configuration data in a single object configuration. We choose to do this way because it is too difficult to support other platforms such as macOS, and other platforms in a single object. What we mean a single object is `bundo-appgen` provides a configuration for macOS and Windows not within the same kind of data or field, instead `bundo-appgen` provides platform configurations individually. This is much easier for prototyping the native app project because each platform have some unique configurations that other platforms don't have, and we can follow each platform requirements much easier.
164
-
165
- For an example, you can see a configuration file example below
163
+ `bundo-appgen` also wants to get the same experience like Expo, but `bundo-appgen` is supporting the macOS (and Windows probably in the future) that Expo does not want to, not creating another layer for native module e.g. Expo Modules, and [sanboxed plugin](#sandboxed-plugin) for security reasons. Another differentiation is `bundo-appgen` providing bare platform configurations as much as possible and keeping each platform configurations separated. This is much easier for prototyping the native app project because each platform have some unique configurations that other platforms don't have, and we can follow each platform requirements much easier. For an example, you can see a configuration file example below
166
164
 
167
165
  ```ts
168
166
  import {
@@ -222,7 +220,7 @@ export default {
222
220
  // later
223
221
  },
224
222
 
225
- android: {
223
+ visionos: {
226
224
  // later
227
225
  },
228
226
 
@@ -231,7 +229,7 @@ export default {
231
229
  } satisfies Config.Data
232
230
  ```
233
231
 
234
- `bundo-appgen` is currently supporting macOS. Right after we are sure that our appgen (App Generator) for macOS is fully-ready-stabily, `bundo-appgen` will try to support the Windows platform, because it is really our primary main focus initially.
232
+ `bundo-appgen` is currently supporting macOS. Right after we are sure that our appgen (App Generator) for macOS is fully-ready-stabily, `bundo-appgen` will try to support the Windows platform, because it is really this project main plan at the time.
235
233
 
236
234
  For Android and iOS, it is better to use [Expo](https://github.com/expo/expo) right now. It provides variety of first party packages in its ecosystem.
237
235
 
package/lib/bin/bin.mjs CHANGED
@@ -306,8 +306,9 @@ async function spawnPluginSandboxRunner(registry, permissions, metadata) {
306
306
  const lstat = node_fs2.lstatSync(pluginDirectory);
307
307
  if (lstat.isSymbolicLink()) {
308
308
  nodeArgs.push(`--allow-fs-read=${node_fs2.realpathSync(pluginDirectory)}`);
309
+ } else {
310
+ nodeArgs.push(`--allow-fs-read=${pluginDirectory}`);
309
311
  }
310
- nodeArgs.push(`--allow-fs-read=${pluginDirectory}`);
311
312
  });
312
313
  nodeArgs.push(node_path2.join(GlobalVars.appgenRoot.get(), "lib", "bin", "plugin-sandbox-runner.mjs"));
313
314
  nodeArgs.push(`--json=${JSON.stringify({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bundo-appgen",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "Native app generator for React Native macOS",
5
5
  "license": "MIT",
6
6
  "author": "RakaDoank <rakaaudira@gmail.com> (https://github.com/RakaDoank)",
@@ -71,8 +71,9 @@ export async function spawnPluginSandboxRunner(
71
71
 
72
72
  if(lstat.isSymbolicLink()) {
73
73
  nodeArgs.push(`--allow-fs-read=${node_fs.realpathSync(pluginDirectory)}`)
74
+ } else {
75
+ nodeArgs.push(`--allow-fs-read=${pluginDirectory}`)
74
76
  }
75
- nodeArgs.push(`--allow-fs-read=${pluginDirectory}`)
76
77
  })
77
78
 
78
79
  // exec plugin-sandbox-runner.mjs