Skip to content
This repository was archived by the owner on Dec 23, 2025. It is now read-only.

Pocket4D/Pocket4D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pocket4D

Pocket4D is a flutter-mini-program(FMP) solution for mobile apps.

  1. Pocket4D
    1. Introduction
    2. Project Structure
    3. Enviorments && Tools
    4. Build and run
      1. Env Requirement:
      2. Materials
      3. Steps
    5. Documents
  2. Teams

Introduction

Project Structure

  1. framework -- a javascript framework that runs the FMP bundle
  2. pocket4d -- main project entry
  3. pocket4d/android -- kotlin/java code
  4. pocket4d/ios -- swift/oc code
  5. pocket4d/lib -- dart code
  6. pocket4d/clang -- clang ffi code
  7. pocket4d/rust -- rust ffi code
  8. pocket4d/example -- example app that runs in android/ios simulator or real device
  9. pocket4d/test -- test code

Enviorments && Tools

  1. please install dart and flutter sdk first.
  2. use fvm to manage different flutter version: see https://github.com/leoafarias/fvm
  3. if you find emulator of AndroidStudio is too slow, please use Mumu emulator.
    1. install: http://mumu.163.com/
    2. usage:
    adb connect 127.0.0.1:5555
  4. usd flutter doctor -v to see if your flutter enviorment is installed correctly

Build and run

Env Requirement:

  • [✓] Flutter (Channel stable, 1.20.3)
  • [✓] Dart version 2.9.2
  • [✓] Android toolchain
  • [✓] Xcode 11.7

Materials

  • [✓] Pocket4d-Cli: repo
  • [✓] Pocket4d-Server: repo

Steps

  1. 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

  2. Edit html css and build with Pocket4d-cli

    • git clone pocket4d-cli
         git clone https://github.com/Pocket4D/Pocket4D-Cli 
    • open src folder start edit *.html,*.css and *.config, remember to edit app.config, with pages config
    • build bundle json
      yarn build
    • goto pocket4d-cli/dist, and upload the json, for example
      curl -F bundled=@app.json localhost:3001/api/v1/bundled/app

  3. go to pocket4d/pocket4d/example, and run

    flutter run

Documents

Teams

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors