Code Monkey home page Code Monkey logo

wmpf_demo_external's Introduction

在没有安装微信客户端的设备
运行微信小程序

💡 WMPF是什么

架构图

WMPF是微信小程序硬件框架(WeChat Mini-Program Framework)的简称,该运行环境能让硬件在脱离微信客户端的情况下运行微信小程序,目前已支持Android,未来会支持到更多的平台

WMPF上运行的微信小程序,与手机客户端的微信小程序能力一致。通过WMPF,开发者可以将微信平台能力赋能到硬件设备上

想要顺利的运行小程序,需要两个apk

  • WMPF Service apk:由微信定期打包发布,作为小程序框架的宿主环境
  • WMPF Client apk:作为Service的调用方,需要你参考示例DEMO及文档进行定制

时序图

本项目提供了WMPF Service的apk下载,WMPF Client示例DEMO以及说明文档

目录结构
 wmpf_demo_external
├── wmpf-demo 示例DEMO,帮助开发者快速构建自己的client,Android项目
├── wmpf-debug-assist 调试工具,方便小程序开发者在硬件上调试小程序

💻 WMPF使用场景

WMPF可以应用在各行各业的安卓系统平板电脑、大屏设备等硬件,提供低成本屏幕互动解决方案,可接入设备包括但不限于

  • 智慧零售:收银机 / 排号机 / 商场导航屏 / 自动贩卖机 / 点餐平板 / 互动广告屏幕等
  • 家用及娱乐设备:智能冰箱 / 儿童平板 / 跑步机 / 电视机 / KTV点唱机等
  • 公共服务:医院挂号机 / 图书租赁设备 / 美术馆办卡机等
  • 办公设备:教育平板 / 会议终端 / 会议投屏等

🚀 快速体验

想要运行demo,首先需要在wecooper平台注册

注册后完成后,在设备上运行小程序,只需要以下4步

  1. Releases Page下载并安装最新版本的WMPF Service apk
  2. 在Android Studio中导入运行wmpf-client-demo,并在demo的首页-快速体验页面填写小程序的appId和ticket,appId和ticket的获取如下图所示
  3. 在wmpf-client-demo中输入小程序的AppID,就可以运行和体验小程序了
  4. 注册激活硬件,将获取到的信息填入DeviceInfo.ktbuild.gradle,设置isInProductionEnv = true,然后修改定制你的wmpf-client!

boost

gif

📖 文档

项目的Wiki提供了更详细的接入指南,后台API,专有接口,硬件注册步骤等文档

🙋 帮助

⚖️ License

该项目在MIT协议的许可下使用

wmpf_demo_external's People

Contributors

laysionqet avatar simonla avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.