mirror of
https://github.com/google/pebble.git
synced 2025-11-13 19:12:49 -05:00
2.6 KiB
2.6 KiB
title, date
| title | date |
|---|---|
| Pebble SDK 4.2 - Changelog | 2016-10-18 |
Changes to Firmware
- Emery can now run apps compiled for Basalt (SDK 4.1 or earlier) or Aplite (SDK 3.7 or earlier) in "bezel mode".
- Fixed
health_service_metric_accessiblefor heartrate-related metrics.- Note that, as heartrate data is only retained for two hours, HRM accessibility
checks going back further than two hours will always return
false.
- Note that, as heartrate data is only retained for two hours, HRM accessibility
checks going back further than two hours will always return
- Rocky.js: The reliability of the
postMessageAPI has been improved. - Rocky.js:
postmessageconnected,postmessagedisconnectedandpostmessageerrorevents have been added. - Rocky.js: Using regular expressions no longer results in substantial app log spam.
- Rocky.js: The coordinate system was adjusted by 0.5 pixels; (0, 0) now refers to top left of the first pixel, rather than the center of the pixel.
- Rocky.js: The
memorypressureevent has been added. When fired with{level: 'high'}, the app must free up sufficient memory or it will be terminated. - Rocky.js: Content size is exposed via
UserPreferences. - Rocky.js:
watchInfo.platformnow works as expected in the emulator. - Rocky.js: Removed the global
print()function; useconsole.log(). - Rocky.js: Fixed a crash when passing invalid values to
clearTimeoutorclearInterval. - Rocky.js: Provided constructors for
CanvasRenderingContext2D,RockyCanvasElementandEvent. - Rocky.js: Removed unimplemented methods that previously threw an exception when called, allowing for polyfills of those methods.
- Rocky.js: Added the ability to unsubscribe from events using
removeEventListeneroroff. - Bug fixes and improvements.
Changes to SDK
- Added support for the Emery platform.
- Rocky.js is now considered stable, and can be used to submit apps to the appstore.
- Rocky.js: The default app template has been improved.
- Added
preferred_content_size()to retrieve the user's preferred font size. - All JS bundling is now performed using webpack
- Only JavaScript files that are actually used are now bundled.