mini_program_tooling 0.3.3
mini_program_tooling: ^0.3.3 copied to clipboard
Local developer and CI tooling for the Flutter mini-program platform.
Changelog #
0.3.3 #
- make
miniprogram embed initgenerate a lean default host adapter without native route alias files or sample native pages - keep native route opening available as an app-owned optional
buildMiniProgramConfig(openNativeRoute: ...)hook
0.3.2 #
- make
miniprogram create <id>default to the minimalanalyticscapability so the generated mini-program opens in a simpleMiniProgramScopehost without native-route wiring - keep
native_navigationavailable as an explicit opt-in through--capabilities analytics,native_navigation
0.3.1 #
- export
mini_program_sdkfrom the generated mini-program adapter barrel soMiniProgramScopeis available frommini_program/mini_program.dart - add an explicit
package:mini_program_sdk/mini_program_sdk.dartimport to generated host app examples for clearer IDE completion and diagnostics
0.3.0 #
- update
miniprogram embed initto generateMiniProgramScopeintegration helpers instead ofMiniProgramAppShell - generate
buildMiniProgramConfig(...)and scope-based launcher helpers while leavingMaterialApp, routes, navigator keys, themes, and routers app-owned - bump generated host and preview app dependencies to
mini_program_sdk: ^0.2.0
0.2.33 #
- add Android release
INTERNETpermission to generated embedded host apps so release APKs can load cloud-delivered mini-programs through API Gateway - expand
miniprogram --helpand group-level--helpoutput to show current cloud, host-run, embed-cloud, and publish target options - refresh root and tooling README guidance for AWS cloud delivery, multi mini-program buckets, host app connection, and Android release networking
0.2.32 #
- disable Flutter hot reload for the managed preview host because
miniprogram previewalready owns watch/rebuild/refresh; this avoids a Windows Flutter tool crash where lockedbuild/*.dillcache files can make Chrome preview fail on startup
0.2.31 #
- update the bundled AWS SAM backend template from Lambda
nodejs20.xtonodejs24.xso newminiprogram cloud deploystacks avoid the Node.js 20 runtime deprecation window - update generated host and preview app dependencies to
mini_program_sdk: ^0.1.3 - expand host-app documentation with a complete
main.dartexample, generated adapter structure, AWS API-backed APK build command, and guidance for whereBackendApiBaseUrl, API base URLs, and optional CloudFront domains come from - refresh the generated
lib/mini_program/README.mdso embedded host apps show the same cloud run and release APK guidance afterminiprogram embed init
0.2.30 #
- fix AWS cloud commands on Windows by launching
samwith shell resolution, which avoids false "sam not found" failures whensam --versionalready works in PowerShell - rewrite the AWS setup guidance in the root README and tooling README around
the full developer path:
- account bootstrap
- CLI credential setup
- S3 bucket creation and versioning
miniprogram publish --target cloudminiprogram cloud deploy- embedded host app connection with
embed cloud configureandhost run
- remove repo-
infrafocused wording from the main developer entry-point docs so published-package users see the bundled AWS cloud workflow first
0.2.29 #
- add
miniprogram cloud outputs --format dart-definefor copy-paste host runtime configuration - add
miniprogram embed cloud configure --env <env-name>to bind an embedded Flutter host app to a named cloud environment through.mini_program/host_cloud.json - add
miniprogram host run -d <device> --env <env-name>to wrapflutter runwith the resolvedMINI_PROGRAM_BACKEND_BASE_URL - add the new host-cloud state model and CLI regression coverage for the AWS embedded-host workflow
0.2.28 #
- add named cloud environment management with:
miniprogram env configure <env-name> --provider awsminiprogram env listminiprogram env use <local|env-name>
- implement the first cloud publish path with:
miniprogram publish --target cloudminiprogram publish --target cloud --env <env-name>
- add AWS cloud publish support that:
- builds the mini-program with the managed Stac builder
- requires S3 bucket versioning to be enabled
- uploads immutable release artifacts to S3
- uploads release and catalog metadata JSON records for later discovery and rollout services
- add the shared cloud publisher abstraction so
gcpandcustom-s3-compatiblecan plug into the same CLI model later - update root and tooling docs for the named cloud-environment workflow and
record the completed preview milestone in
nextWorkAgents.md
0.2.27 #
- add managed preview support for Microsoft Edge with
miniprogram preview -d edge - add managed preview support for Linux desktop with
miniprogram preview -d linux - add managed preview support for macOS desktop with
miniprogram preview -d macos - add managed preview support for iOS simulator workflows on macOS with
miniprogram preview -d ios - extend the hidden managed preview host generator and regression coverage for the new Edge, Linux, macOS, and iOS preview targets
0.2.26 #
- prefer
adb reverse tcp:<port> tcp:<port>for Android emulator preview and fall back to10.0.2.2only when reverse cannot be applied - add managed preview support for Android Wi-Fi physical-device targets such as
miniprogram preview -d 192.168.1.25:5555 - resolve a reachable LAN host for Android Wi-Fi preview sessions and allow
overriding it with
MINI_PROGRAM_PREVIEW_LAN_HOST - widen the generated Android preview-host debug cleartext config so LAN-based preview transport works across emulator, USB, and Wi-Fi device flows
- add regression coverage for emulator reverse fallback and Android Wi-Fi preview launch behavior
0.2.25 #
- add managed preview support for Android emulator targets such as
miniprogram preview -d emulator-5554 - add managed preview support for Android USB physical-device targets with
automatic
adb reversesetup and127.0.0.1preview transport - extend the hidden managed preview host to generate Android platform files and Android debug cleartext/network security config when needed
- add regression coverage for Android emulator and Android USB preview launch flows
0.2.24 #
- clear transient managed preview-host build output before every
miniprogram previewlaunch so repeated Chrome preview sessions do not reuse stale shader artifacts and crash on startup - remove stale preview-host crash logs as part of the same launch reset
- add regression coverage for preview-host reuse with pre-existing build files
0.2.23 #
- replace the route-heavy starter scaffold with a cleaner two-screen
profile/settings default built around
homeanddetails - remove the generated
..._route_demo.dartscreen from new mini-program scaffolds - keep advanced portable routing helpers available in
lib/host_action_helpers.dart, but move their usage into commented examples and README guidance instead of visible starter buttons - add regression coverage for the new realistic default scaffold flow
0.2.22 #
- replace the default scaffold's host-native demo actions with a safer portable routing starter flow built around three mini-program screens
- demonstrate the shared mini-program navigation actions by default:
openMiniProgramScreen,replaceMiniProgramScreen,resetMiniProgramStack,popMiniProgramScreen,popToMiniProgramRoot, andpopToMiniProgramScreen - keep
native_navigationandsecure_apias capability notes in the starter scaffold instead of generating fake production route and backend calls - add regression coverage for the new three-screen portable starter flow
0.2.21 #
- reduce the generated starter-screen body top spacing by switching scaffolded
body padding from
StacEdgeInsets.all(24)to horizontal-only padding - replace the raw JSON dump in the preview native placeholder with a clearer structured inspector for route, expect-result, and argument details
- add regression coverage for the updated starter-screen layout and preview placeholder output
0.2.20 #
- remove the extra scaffolded
StacSafeAreawrapper from generated starter screens so mini-program bodies do not render with confusing blank space below the app bar - add regression coverage to keep new generated screens on the direct
StacSingleChildScrollViewbody layout
0.2.19 #
- fix preview watch mode so build output updates under
stac/.builddo not trigger repeated follow-up rebuilds after a single save - add regression coverage for exact ignored preview-build directory events in the watcher path filter
0.2.18 #
- remove the extra preview-shell app bar so
miniprogram previewshows the mini-program UI directly instead of wrapping it in a second host header - stop the preview status poll from rebuilding the UI every second when nothing changed, which fixes the visible jumping and repeated refresh effect
- keep the preview status banner overlaid on top of the page instead of shifting layout during preview status changes
0.2.17 #
- add
miniprogram preview -d <chrome|windows>as the new developer-first preview loop for standalone mini-program authoring - generate and manage a hidden project-local preview host under
.mini_program/preview_host - serve preview manifests, screens, and assets through an internal session-scoped preview server instead of the real local backend workspace
- watch mini-program source files, rebuild on save, and trigger full preview refresh while keeping the last good UI visible on rebuild failures
- document the preview flow, its capability limits, and how it differs from
the real
publishplusbackend startdelivery path
0.2.16 #
- fix local Chrome and web host-app development by making the generated local
backend workspace respond correctly to browser CORS preflights and private
network access checks for
127.0.0.1:8080 - make
miniprogram backend startandminiprogram backend statusprint the target-specific local backend URLs for Android emulator, desktop or Chrome, and Android USBadb reverseworkflows - make generated host runtime setup log the resolved backend base URL and its resolution source during startup for faster local debugging
0.2.15 #
- make generated host adapters use the shared SDK local-backend resolver with target-aware defaults instead of hardcoded per-file backend URL logic
- add generated support for
MINI_PROGRAM_BACKEND_BASE_URL,MINI_PROGRAM_BACKEND_HOST, andMINI_PROGRAM_BACKEND_PORT - bump generated host app dependencies to
mini_program_sdk: ^0.1.2 - document the local backend conditions for emulator, desktop, Chrome, USB
adb reverse, and physical-device Wi-Fi workflows
0.2.14 #
- fix
miniprogram embed initso generated host apppubspec.yamlfiles pinmini_program_sdk: ^0.1.1instead of the stale^0.1.0constraint - refresh the embedding docs and regression tests around the generated hosted SDK dependency version
0.2.13 #
- make local backend start attempt
adb reverse tcp:<port> tcp:<port>for connected Android devices and emulators so local host apps can keep using127.0.0.1when emulator routing to10.0.2.2is broken - report successful
adb reversesetup in backend start output - add regression coverage for the new local Android reverse-port setup
0.2.12 #
- make
embed initgenerate Android debug-only cleartext/network security config so the default local emulator backend URL can work without manual manifest edits - refresh the tooling docs around the generated Android local-backend setup and
align the public CLI surface with the optional in-folder
build/validate/publishflow
0.2.11 #
- fix backend workspace resolution so
validate,publish, backend commands, anddoctorfall back to the valid global backend workspace when a stale parent.mini_program/backend_workspace.jsonis present - add regression coverage for stale local backend workspace state masking the initialized global backend workspace
0.2.10 #
- let
miniprogram build,miniprogram validate, andminiprogram publishinfer the mini-program id from the current working directory when the user is already inside the mini-program root - keep the explicit forms such as
miniprogram build <id>andminiprogram publish <id>for scripted and multi-project workflows - refresh docs and tests around the simpler in-folder authoring workflow
0.2.9 #
- make
miniprogram backend initdefault to the per-user global backend workspace on Windows at%LOCALAPPDATA%\mini_program\backend\ - keep
miniprogram backend init --root <path>as the explicit override for a custom backend workspace - document the generated local backend URL defaults so Android emulator
workflows can usually run with plain
flutter run -d emulator-5554when the backend is already running on port8080 - refresh the generated embed README, public docs, and tests around the local
backend URL defaults and
MINI_PROGRAM_BACKEND_BASE_URLoverride
0.2.8 #
- let
miniprogram embed initdefault to the current working directory when--project-rootis omitted - keep
miniprogram embed init --project-root <path>for explicit and scripted workflows - refresh docs, tests, and installed-CLI smoke coverage for the simpler embed flow
0.2.7 #
- manage a pinned Stac builder internally inside
mini_program_tooling - expose the managed pinned Stac builder status and version through
miniprogram doctor - keep
--stac-cli-scriptas the escape hatch while removing the normal need for a separate visiblestacinstall
0.2.6 #
- let
miniprogram env initsucceed without a saved platform repo root for the standalone workflow - let standalone
validateandpublishrun againstbackend initworkspaces without any platform repo path - update
embed initto patch host apppubspec.yamlwith hostedmini_program_sdkandmini_program_contractsdependencies - refresh docs and the installed-CLI smoke flow around the fully standalone local workflow
0.2.5 #
- add
miniprogram backend initto scaffold a standalone backend workspace - add tracked backend workspace state in
.mini_program/backend_workspace.jsonand~/.mini_program/global_backend_workspace.json - let backend lifecycle commands resolve either a standalone backend workspace or the platform repo layout
- make
miniprogram publishwrite manifests and screens into the initialized standalone backend workspace whenminiprogram backend inithas been used - keep tracked local publish state attached to that backend workspace so
backend reset-local --yescleans the correct local backend - update validation and installed-CLI smoke coverage for the standalone backend publish flow
0.2.2 #
- add
miniprogram doctorfor machine, env, repo, and backend diagnostics
0.2.1 #
- refresh the pub.dev release metadata for the current env-based workflow
- ship the saved global repo-root fallback used by
embed initand backend commands when running from unrelated working directories
0.2.0 #
- add
miniprogram env init,miniprogram env use, andminiprogram env status - add
.mini_program/env.jsonas saved CLI environment state for standalone mini-program workspaces - add a user-level fallback config in
~/.mini_program/global_env.jsonsoembed initand backend commands can reuse the saved repo root from unrelated working directories - let
build,validate,publish, andbackend ...reuse saved repo-root configuration instead of requiring repeated--repo-root - update the installed CLI smoke flow and docs around the new env workflow
0.1.0 #
- add the global
miniprogramexecutable - add
create,build,validate,publish, andembed initcommands - add repo-local backend lifecycle commands for
start,status,stop, andreset-local - add repo-local CLI state tracking under
.mini_program/