Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to install pebble sdk in mac

Shulou Source: shulou.com Published: 2022-06-01 19:29:32 10月04日 Update

This article mainly shows you "mac how to install pebble sdk", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "mac how to install pebble sdk" this article.

# install pebble sdk using homebrew

Install pebble cli tools

Brew install pebble-sdk

After installation, we have the command line tool pebble. At this time, sdk is not actually installed. Try pebble-- version to verify whether it is correct.

Install the latest version of sdk

# install pebble sdk install latest online

After agreeing to the developer agreement, you can start downloading and installing sdk. However, due to the local trial has been failed to download, so consider using offline installation

# offline installation

First determine the sdk version number. You can view the available versions through pebble sdk list.

Installed SDKs:Available SDKs (beta channel): 3.12-beta6 (beta) 3.11.13.113.10.13.103.10-beta6 (beta) 3.10-beta2 (beta) 3.10-beta1 (beta) 3.9.23.93.9-beta8 (beta) 3.9-beta7 (beta) 3.9-beta5 (beta) 3.8.23.8.13.83.8-beta12 (beta) 3.8-beta10 (beta) 3.8-beta8 (beta) 3. 73.6.23.43.33.2.13.13.02.9

The latest version (2016.6.1) is 3.12, so download the following sdk offline package (size 2.9m), http://s3.amazonaws.com/assets.getpebble.com/sdk3/release/sdk-core-3.12.tar.bz2

After downloading, go to the directory where the file is located and execute it.

Pebble sdk install sdk-core-3.12.tar.bz2 completes installation

Start development

Finally, at the beginning of the development stage, I used the tools for pebble + vim to develop (it is a bit of a pity that ycm supports pebble).

Newly built project

Pebble new-project hello_world

Build

Cd hello_world

Pebble build

Simulation test

Pebble has a simulation environment to test the display effect of our program, which is very convenient

Pebble install-emulator basalt

Just after executing the above sentence, the default application is installed on the simulation environment.

The virtual keys corresponding to the top and bottom of the physical keyboard are: up-> up, down- > down, left- > back, right- > select

If you change the application type to watchface (modify the appinfo.json watchapp.watchface in the project directory), the button will not be captured by the application (because up,down will be cut to timeline)

The above is all the contents of the article "how to install pebble sdk in mac". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Development content tools version article simulation application project button environment directory learning help test regret up and down up and down can pass backward command Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia OPPO Reno vpn macOS Xiaomi