Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
B
blue-therm
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CordovaPlugin
  • blue-therm
  • Wiki
  • Home

Home · Changes

Page history
john.huang created page: home authored Jun 17, 2019 by John Huang's avatar John Huang
Hide whitespace changes
Inline Side-by-side
Showing with 4 additions and 4 deletions
+4 -4
  • home.md home.md +4 -4
  • No files found.
home.md
View page @ 7bc3deba
# 概述
#### 概述
本插件用于与BlueTherm的测温仪进行交互。目前仅支持iOS平台。
# 安装插件
#### 安装插件
打开终端,进入cordova项目根目录,输入下面命令
```
cordova plugin add git+http://gitlab.easternphoenix.com/CordovaPlugin/blue-therm.git
```
# 项目结构
#### 项目结构
插件内目录src/ios下面有一个Xcode项目和plugin接口。
**Xcode项目TSBlueTherm**
......@@ -19,7 +19,7 @@ cordova plugin add git+http://gitlab.easternphoenix.com/CordovaPlugin/blue-therm
**接口TSBlueThermPlugin.m**
接口部分并不实现具体的功能,接口只是简单调用framework中的功能。
# 设计理念
#### 设计理念
项目的关键设计在于,接口不实现具体功能,而是通过调用framework提供功能。我们可以把这种设计模式总结成「源码封装抽离」。该模式有以下好处:
1. 方便配置和管理。
相对于「源码封装抽离」的是将源码直接放置在plugin之内。后者设计较多的plugin.xml的配置问题,尤其当引入第三方库的时候,如果存在大量的源文件和资源则plugin.xml的配置将非常繁琐。一旦配置出错有可能是的plugin无法正常运作,增加调试的工作量。
......
Clone repository
  • Home
  • ios支持