Pocket4D
is a flutter-mini-program
(FMP) solution for mobile apps.
framework
-- a javascript framework that runs the FMP bundlepocket4d
-- main project entrypocket4d/android
-- kotlin/java codepocket4d/ios
-- swift/oc codepocket4d/lib
-- dart codepocket4d/clang
-- clang ffi codepocket4d/rust
-- rust ffi codepocket4d/example
-- example app that runs in android/ios simulator or real devicepocket4d/test
-- test code
- please install
dart
andflutter
sdk first. - use
fvm
to manage different flutter version: see https://github.com/leoafarias/fvm - if you find emulator of AndroidStudio is too slow, please use Mumu emulator.
- install: http://mumu.163.com/
- usage:
adb connect 127.0.0.1:5555
- usd
flutter doctor -v
to see if your flutter enviorment is installed correctly
- [✓] Flutter (Channel stable, 1.20.3)
- [✓] Dart version 2.9.2
- [✓] Android toolchain
- [✓] Xcode 11.7
-
Build and Run
Pocket4d-server
- git clone
git clone https://github.com/Pocket4D/Pocket4D-Server
- create a folder name
bundled
, build and run the./pocket4d-server
cd pocket4d-server && mkdir bundled && sh ./build.sh && ./pocket4d-server
-
Edit
html
css
and build withPocket4d-cli
- git clone
pocket4d-cli
git clone https://github.com/Pocket4D/Pocket4D-Cli
- open
src
folder start edit*.html
,*.css
and*.config
, remember to editapp.config
, with pages config - build bundle json
yarn build
- goto
pocket4d-cli/dist
, and upload the json, for examplecurl -F [email protected] localhost:3001/api/v1/bundled/app
- git clone
-
go to
pocket4d/pocket4d/example
, and runflutter run