ruflet 0.0.20 → 0.0.22
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.
- checksums.yaml +4 -4
- data/README.md +30 -2
- data/lib/ruflet/cli/build_command.rb +1689 -86
- data/lib/ruflet/cli/new_command.rb +89 -19
- data/lib/ruflet/cli/run_command.rb +300 -49
- data/lib/ruflet/cli/update_command.rb +6 -6
- data/lib/ruflet/cli.rb +7 -2
- data/lib/ruflet/hot_reload.rb +23 -10
- data/lib/ruflet/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a925aef31bb20fe4f6f48f2d6f68e1f0bc1599fd494a517c2412c524c535e6c8
|
|
4
|
+
data.tar.gz: ddd86413840811bb99b66dbb5f9e325a338e981bcc1a126b4b73e46ec06a63fb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8fb021bc622f6ea04a0a6f444bae379546cc790b9349b0dea81c5d8d25926275cc9102ec9c05d08fb993f4b2ed749e7b4e502dfa35cad1551d5df74e81bc3859
|
|
7
|
+
data.tar.gz: 4124df68e4b93d77af36a7132bc1a59a88764c02cb1e875e3c84bd76e763f805e4381be292b1727ea9f1cd53103c9f73c1a86da01d9817fe45e2363460b4f2dd
|
data/README.md
CHANGED
|
@@ -25,16 +25,44 @@ dependencies. Run Ruflet commands directly inside the generated project.
|
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
27
|
ruflet new <appname>
|
|
28
|
-
ruflet run [scriptname|path] [--web|--desktop] [--port PORT]
|
|
28
|
+
ruflet run [scriptname|path] [--web|--desktop] [--experimental|--exp] [--port PORT]
|
|
29
29
|
ruflet debug [scriptname|path]
|
|
30
30
|
ruflet devices
|
|
31
31
|
ruflet emulators
|
|
32
32
|
ruflet doctor [--fix]
|
|
33
33
|
ruflet update [web|desktop|all] [--check] [--force]
|
|
34
|
-
ruflet build <apk|android|ios|aab|web|macos|windows|linux> [--self]
|
|
34
|
+
ruflet build <apk|android|ios|ipa|aab|web|macos|windows|linux> [--lite|--full|--self] [--experimental|--exp]
|
|
35
35
|
ruflet install [--device DEVICE_ID]
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
+
`--experimental` is available only for iOS and macOS builds. It selects the
|
|
39
|
+
native Apple renderer while the normal Ruflet build pipeline continues to
|
|
40
|
+
resolve the declared services, extensions, permissions, assets, and runtime
|
|
41
|
+
mode. Without it, Apple builds use only the Flutter renderer.
|
|
42
|
+
|
|
43
|
+
`--lite` creates the compact self-contained build: project Ruby is precompiled
|
|
44
|
+
when the matching mruby compiler is available, and the bundled VM starts in
|
|
45
|
+
parallel with Flutter. `--self` remains an alias for this profile.
|
|
46
|
+
Combining `--self --full` selects the full profile; `--self` does not override
|
|
47
|
+
an explicit `--full`.
|
|
48
|
+
|
|
49
|
+
`--full` packages the locked production bundle from `Gemfile.lock` and selects
|
|
50
|
+
a target-specific CRuby runtime. Set `RUFLET_FULL_RUNTIME_PATH`, or
|
|
51
|
+
`build.full_runtime_path` in `ruflet.yaml`, to a Flutter package named
|
|
52
|
+
`ruby_runtime` with a `ruflet-full-runtime.json` manifest for the target.
|
|
53
|
+
Ruflet refuses to substitute the lite mruby engine for a requested full build.
|
|
54
|
+
|
|
55
|
+
Before Flutter resolves or bundles packages, Ruflet removes extension plugins
|
|
56
|
+
that are not selected by the current services/extensions configuration. With
|
|
57
|
+
the experimental Apple renderer, built-in declarations are registered as Swift
|
|
58
|
+
extensions and their duplicate Dart/Flutter plugins are excluded entirely.
|
|
59
|
+
|
|
60
|
+
On macOS, `ruflet run --experimental` (or `ruflet run --exp`) downloads the
|
|
61
|
+
experimental Ruflet Explorer iOS Simulator prebuild the first time, reuses its
|
|
62
|
+
versioned cache afterward, and launches it on the already-booted simulator
|
|
63
|
+
with the current backend URL. Add `--desktop` to download and launch the native
|
|
64
|
+
macOS prebuild instead: `ruflet run --desktop --exp`.
|
|
65
|
+
|
|
38
66
|
Commands that create, diagnose, or build a Flutter client compare the cached
|
|
39
67
|
template revision with `AdamMusa/ruflet-template` on GitHub. When `main`
|
|
40
68
|
changes, Ruflet downloads the new template and refreshes its managed
|