This repository has been archived by the owner on Sep 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
110 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,94 +1,90 @@ | ||
{ | ||
"versionLabel": "1.5.2", | ||
"uuid": "1cceab0a-8dc1-4641-b7b6-5ea9c827dd66", | ||
"appKeys": { | ||
"address": 5, | ||
"error": 11, | ||
"facebook": 10, | ||
"id": 3, | ||
"index": 2, | ||
"location": 1, | ||
"name": 4, | ||
"twitter": 9, | ||
"error": 11, | ||
"refresh": 6, | ||
"private": 8, | ||
"refresh": 6, | ||
"result": 7, | ||
"token": 0, | ||
"facebook": 10, | ||
"location": 1, | ||
"address": 5, | ||
"id": 3, | ||
"result": 7 | ||
"twitter": 9 | ||
}, | ||
"longName": "Spoon 1.5.2", | ||
"versionCode": 6, | ||
"capabilities": [ | ||
"location", | ||
"configurable" | ||
], | ||
"shortName": "Spoon", | ||
"companyName": "Thomas Hunsaker", | ||
"watchapp": { | ||
"watchface": false | ||
}, | ||
"longName": "Spoon 1.6", | ||
"projectType": "native", | ||
"resources": { | ||
"media": [ | ||
{ | ||
"type": "png", | ||
"name": "IMAGE_CHECK_MENU", | ||
"file": "images/menu_dots.png" | ||
"file": "images/checkbox_off.png", | ||
"name": "IMAGE_CHECK_OFF", | ||
"type": "png" | ||
}, | ||
{ | ||
"type": "png", | ||
"name": "IMAGE_CHECK_GRANDE", | ||
"file": "images/check_black_big.png" | ||
"file": "images/checkbox_on.png", | ||
"name": "IMAGE_CHECK_ON", | ||
"type": "png" | ||
}, | ||
{ | ||
"type": "png", | ||
"name": "IMAGE_CHECK_SHARE", | ||
"file": "images/share_black.png" | ||
"file": "images/spoon_long_med.png", | ||
"name": "IMAGE_APP_LOGO_LONG", | ||
"type": "png" | ||
}, | ||
{ | ||
"type": "png", | ||
"name": "IMAGE_CHECK_PRIVATE", | ||
"file": "images/private_black.png" | ||
"file": "images/check_black.png", | ||
"name": "IMAGE_CHECK_OK", | ||
"type": "png" | ||
}, | ||
{ | ||
"type": "png", | ||
"file": "images/foursquare_cog.png", | ||
"name": "IMAGE_FOURSQUARE_COG", | ||
"file": "images/foursquare_cog.png" | ||
"type": "png" | ||
}, | ||
{ | ||
"type": "png", | ||
"name": "IMAGE_CHECK_OK", | ||
"file": "images/check_black.png" | ||
"file": "images/private_black.png", | ||
"name": "IMAGE_CHECK_PRIVATE", | ||
"type": "png" | ||
}, | ||
{ | ||
"type": "png", | ||
"name": "IMAGE_APP_LOGO_LONG", | ||
"file": "images/spoon_long_med.png" | ||
"file": "images/share_black.png", | ||
"name": "IMAGE_CHECK_SHARE", | ||
"type": "png" | ||
}, | ||
{ | ||
"menuIcon": true, | ||
"type": "png", | ||
"name": "IMAGE_APP_ICON", | ||
"file": "images/spoon_pixelated_24x28.png" | ||
"file": "images/check_black_big.png", | ||
"name": "IMAGE_CHECK_GRANDE", | ||
"type": "png" | ||
}, | ||
{ | ||
"type": "png", | ||
"name": "IMAGE_CHECK_ON", | ||
"file": "images/checkbox_on.png" | ||
"file": "images/spoon_pixelated_24x28.png", | ||
"menuIcon": true, | ||
"name": "IMAGE_APP_ICON", | ||
"type": "png" | ||
}, | ||
{ | ||
"type": "png", | ||
"name": "IMAGE_CHECK_OFF", | ||
"file": "images/checkbox_off.png" | ||
"file": "images/share_facebook.png", | ||
"name": "IMAGE_SHARE_FACEBOOK", | ||
"type": "png" | ||
}, | ||
{ | ||
"type": "png", | ||
"file": "images/share_twitter.png", | ||
"name": "IMAGE_SHARE_TWITTER", | ||
"file": "images/share_twitter.png" | ||
}, | ||
{ | ||
"type": "png", | ||
"name": "IMAGE_SHARE_FACEBOOK", | ||
"file": "images/share_facebook.png" | ||
"type": "png" | ||
} | ||
] | ||
}, | ||
"shortName": "Spoon", | ||
"uuid": "1cceab0a-8dc1-4641-b7b6-5ea9c827dd66", | ||
"versionCode": 6, | ||
"versionLabel": "1.6", | ||
"watchapp": { | ||
"watchface": false | ||
} | ||
} |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
|
||
# | ||
# This file is the default set of rules to compile a Pebble project. | ||
# | ||
# Feel free to customize this to your needs. | ||
# | ||
|
||
try: | ||
from sh import CommandNotFound, jshint, cat, ErrorReturnCode_2 | ||
hint = jshint | ||
except (ImportError, CommandNotFound): | ||
hint = None | ||
|
||
top = '.' | ||
out = 'build' | ||
|
||
def options(ctx): | ||
ctx.load('pebble_sdk') | ||
|
||
def configure(ctx): | ||
ctx.load('pebble_sdk') | ||
global hint | ||
if hint is not None: | ||
hint = hint.bake(['--config', 'pebble-jshintrc']) | ||
|
||
def build(ctx): | ||
if False and hint is not None: | ||
try: | ||
hint([node.abspath() for node in ctx.path.ant_glob("src/**/*.js")], _tty_out=False) # no tty because there are none in the cloudpebble sandbox. | ||
except ErrorReturnCode_2 as e: | ||
ctx.fatal("\nJavaScript linting failed (you can disable this in Project Settings):\n" + e.stdout) | ||
|
||
# Concatenate all our JS files (but not recursively), and only if any JS exists in the first place. | ||
ctx.path.make_node('src/js/').mkdir() | ||
js_paths = [node.abspath() for node in ctx.path.ant_glob("src/*.js")] | ||
if js_paths: | ||
ctx.exec_command(['cat'] + js_paths, stdout=open('src/js/pebble-js-app.js', 'a')) | ||
|
||
ctx.load('pebble_sdk') | ||
|
||
ctx.pbl_program(source=ctx.path.ant_glob('src/**/*.c'), | ||
target='pebble-app.elf') | ||
|
||
ctx.pbl_bundle(elf='pebble-app.elf', | ||
js=ctx.path.ant_glob('src/js/**/*.js')) | ||
|