From 26b855c99f65e9bb069792bcea51fe00352fa492 Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Tue, 3 Mar 2015 06:54:58 -0800 Subject: [PATCH 1/3] Release 2.1.4 - update browser desktop builds default index.html - fix animation easing function ordering (easeInBounce/easeOutBounce) - fix animation 'Finish' event not firing on iOS --- modules/native-android | 2 +- modules/native-ios | 2 +- modules/timestep | 2 +- package.json | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/native-android b/modules/native-android index 27e32be..9f5bceb 160000 --- a/modules/native-android +++ b/modules/native-android @@ -1 +1 @@ -Subproject commit 27e32bea7ba9b93f7872822d90d2714a3f05c8e8 +Subproject commit 9f5bceb3b52dcf92f9de31a97c95ea6a3c174c6a diff --git a/modules/native-ios b/modules/native-ios index e17cd93..541a44a 160000 --- a/modules/native-ios +++ b/modules/native-ios @@ -1 +1 @@ -Subproject commit e17cd93b1b27ce6c971690cbd3757d6ad3ab37a8 +Subproject commit 541a44aface29b0f804c0cc51aefd32b8f2a5211 diff --git a/modules/timestep b/modules/timestep index 45a2274..ea54d8d 160000 --- a/modules/timestep +++ b/modules/timestep @@ -1 +1 @@ -Subproject commit 45a227482906faea696cc4d452c22a51aab5e39f +Subproject commit ea54d8d5a463bd645160210f941a6f354f66baea diff --git a/package.json b/package.json index 99fa6fe..0a47bd9 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ { "name": "devkit-core", "author": "Game Closure", - "description": "DevKit client API", - "version": "2.0.15", + "description": "devkit engine", + "version": "2.1.4", "repository": { "type": "git", - "url": "http://github.com/gameclosure/gcapi/gcapi.git" + "url": "http://github.com/gameclosure/devkit-core.git" }, "dependencies": { "cli-color": "^0.3.2", From fc149339533ba60de009f5ca8b9e85ef306c089d Mon Sep 17 00:00:00 2001 From: Martin Hunt Date: Fri, 6 Mar 2015 00:46:05 -0800 Subject: [PATCH 2/3] Release 2.2.0 - export the native window API so native plugins can detect when games are listening for events on the window object ``` import devkit.native.Window as nativeWindow; nativeWindow.on('newListener', function (type, cb) { console.log("new native listener for", type); }); window.addEventListener("devicemotion", function () { ... }); ``` --- src/clientapi/native/Window.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/clientapi/native/Window.js b/src/clientapi/native/Window.js index 7d14409..b124a5a 100644 --- a/src/clientapi/native/Window.js +++ b/src/clientapi/native/Window.js @@ -14,24 +14,22 @@ * along with the Game Closure SDK. If not, see . */ -"use import"; - import lib.PubSub; -var _evts = new lib.PubSub(); +module.exports = new lib.PubSub(); window.open = window.open || window.setLocation; window.addEventListener = function (evtName, cb, isBubble) { - _evts.subscribe(evtName, window, cb); + module.exports.on(evtName, cb); } window.removeEventListener = function (evtName, cb, isBubble) { - _evts.unsubscribe(evtName, window, cb); + module.exports.removeListener(evtName, cb); } window.__fireEvent = function (name, evt) { - if (!evt) { evt = {}; } - evt.type = name; - _evts.publish(name, evt); + if (!evt) { evt = {}; } + evt.type = name; + module.exports.publish(name, evt); } From 3199fa510e9579b9616b2da24ef8b5a49af1fc07 Mon Sep 17 00:00:00 2001 From: Martin Hunt Date: Sat, 7 Mar 2015 19:13:20 -0800 Subject: [PATCH 3/3] fix errors handling boolean keys in iosIcons --- src/build/browser/html.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/build/browser/html.js b/src/build/browser/html.js index 5efcad5..cd99928 100644 --- a/src/build/browser/html.js +++ b/src/build/browser/html.js @@ -178,6 +178,8 @@ exports.GameHTML = Class(function () { var closestIcon; for (var size in iosIcons) { + if (typeof iosIcons[size] != 'string') { continue; } + var intSize = parseInt(size); var icon = path.join(app.paths.root, iosIcons[size]); if (!fs.existsSync(icon)) {