Skip to main content

Crate offline_rn_shell

Crate offline_rn_shell 

Source
Expand description

Copy React Native android/ + ios/ shells after scaffold.

Shells are cached under ~/.offline/cache/ by RN version; module identity is rewritten when applying to a project.

Structs§

ReactNativeFinalizeResult
Result of post-scaffold React Native native setup.

Constants§

APP_ATTEST_ENTITLEMENT
The App Attest environment entitlement. production makes every build, including one run from Xcode, attest in Apple’s production environment, which auth-service accepts without offline apps native dev-builds on.

Functions§

add_native_shells
Copy cached (or freshly generated) android/ + ios/ shells into target_dir.
finalize_react_native_mesh_app
After JS/TS template generation: add native shells and mesh-related native config.
patch_app_attest_entitlement
Give the iOS app target the App Attest entitlement: write ios/<Module>/<Module>.entitlements and point the target’s CODE_SIGN_ENTITLEMENTS at it (Debug and Release). Idempotent; an existing entitlements setting is left alone. Returns whether the entitlements file was written.
patch_mesh_native_permissions
Add Android/iOS permissions and iOS Podfile cleanup required by mesh-sdk.
patch_network_binding
Add Android NetworkBinding for unvalidated Wi‑Fi uplinks.
rn_module_name
Convert a slug like my-offline-app → MyOfflineApp for RN native module names.