diff --git a/AUTHORS b/AUTHORS
index 4ec7b7de70..1fb0ec6e9e 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -13,6 +13,10 @@ Developers:
Rolando Abarca
Javascript Binding and testjs
+ Squallium
+ Added ccFPSImages entity as linked resource on linux eclipse project setting.
+ Added CocosDenshion dependency to libextension project for eclipse project of linux.
+
longlene
Improve android project creation script
@@ -362,7 +366,8 @@ Developers:
Refactoring emscripten building script.
Peter Young (young40)
- Implements setVisible() for CCEditBox
+ Implements setVisible() for CCEditBox.
+ Fixing a bug that event will not be sent to server when paramMap parameter of logEvent function is nil in plugin-x.
csy1988525
Fixing a bug about display result is wrong when invoking CCControlButton:: setHighlighted.
diff --git a/CocosDenshion/proj.mac/CocosDenshion.xcodeproj/project.pbxproj b/CocosDenshion/proj.mac/CocosDenshion.xcodeproj/project.pbxproj
index 1c31a62577..810beeb4d2 100644
--- a/CocosDenshion/proj.mac/CocosDenshion.xcodeproj/project.pbxproj
+++ b/CocosDenshion/proj.mac/CocosDenshion.xcodeproj/project.pbxproj
@@ -258,7 +258,6 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
HEADER_SEARCH_PATHS = "";
- OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
SDKROOT = macosx;
VALIDATE_PRODUCT = YES;
};
diff --git a/cocos2d-ios.xcworkspace/contents.xcworkspacedata b/cocos2d-ios.xcworkspace/contents.xcworkspacedata
index 455cfdbac8..e4605274d9 100644
--- a/cocos2d-ios.xcworkspace/contents.xcworkspacedata
+++ b/cocos2d-ios.xcworkspace/contents.xcworkspacedata
@@ -75,4 +75,49 @@
location = "group:scripting/lua/proj.ios/luabindings.xcodeproj">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/cocos2d-mac.xcworkspace/contents.xcworkspacedata b/cocos2d-mac.xcworkspace/contents.xcworkspacedata
index 2fdc94ae40..3468d0041e 100644
--- a/cocos2d-mac.xcworkspace/contents.xcworkspacedata
+++ b/cocos2d-mac.xcworkspace/contents.xcworkspacedata
@@ -7,6 +7,9 @@
+
+
+
+
diff --git a/cocos2dx/Android.mk b/cocos2dx/Android.mk
index 221842d31b..77724c83e9 100644
--- a/cocos2dx/Android.mk
+++ b/cocos2dx/Android.mk
@@ -59,6 +59,7 @@ kazmath/src/GL/mat4stack.c \
kazmath/src/GL/matrix.c \
keypad_dispatcher/CCKeypadDelegate.cpp \
keypad_dispatcher/CCKeypadDispatcher.cpp \
+keyboard_dispatcher/CCKeyboardDispatcher.cpp \
label_nodes/CCLabelAtlas.cpp \
label_nodes/CCLabelBMFont.cpp \
label_nodes/CCLabelTTF.cpp \
diff --git a/cocos2dx/CCDirector.cpp b/cocos2dx/CCDirector.cpp
index b96b617be2..5fdeaa9f39 100644
--- a/cocos2dx/CCDirector.cpp
+++ b/cocos2dx/CCDirector.cpp
@@ -64,9 +64,7 @@ THE SOFTWARE.
#include "platform/CCImage.h"
#include "CCEGLView.h"
#include "CCConfiguration.h"
-#ifdef KEYBOARD_SUPPORT
#include "keyboard_dispatcher/CCKeyboardDispatcher.h"
-#endif
/**
@@ -154,10 +152,8 @@ bool Director::init(void)
_touchDispatcher = new TouchDispatcher();
_touchDispatcher->init();
-#ifdef KEYBOARD_SUPPORT
// KeyboardDispatcher
_keyboardDispatcher = new KeyboardDispatcher();
-#endif
// KeypadDispatcher
_keypadDispatcher = new KeypadDispatcher();
@@ -185,9 +181,7 @@ Director::~Director(void)
CC_SAFE_RELEASE(_scheduler);
CC_SAFE_RELEASE(_actionManager);
CC_SAFE_RELEASE(_touchDispatcher);
-#ifdef KEYBOARD_SUPPORT
CC_SAFE_RELEASE(_keyboardDispatcher);
-#endif
CC_SAFE_RELEASE(_keypadDispatcher);
CC_SAFE_DELETE(_accelerometer);
@@ -1004,7 +998,6 @@ TouchDispatcher* Director::getTouchDispatcher()
return _touchDispatcher;
}
-#ifdef KEYBOARD_SUPPORT
void Director::setKeyboardDispatcher(KeyboardDispatcher* pKeyboardDispatcher)
{
CC_SAFE_RETAIN(pKeyboardDispatcher);
@@ -1016,7 +1009,6 @@ KeyboardDispatcher* Director::getKeyboardDispatcher()
{
return _keyboardDispatcher;
}
-#endif
void Director::setKeypadDispatcher(KeypadDispatcher* pKeypadDispatcher)
{
diff --git a/cocos2dx/CCDirector.h b/cocos2dx/CCDirector.h
index 97f14c9e34..8f44a6a862 100644
--- a/cocos2dx/CCDirector.h
+++ b/cocos2dx/CCDirector.h
@@ -71,9 +71,7 @@ class Node;
class Scheduler;
class ActionManager;
class TouchDispatcher;
-#ifdef KEYBOARD_SUPPORT
class KeyboardDispatcher;
-#endif
class KeypadDispatcher;
class Accelerometer;
@@ -328,12 +326,12 @@ public:
*/
CC_PROPERTY(TouchDispatcher*, _touchDispatcher, TouchDispatcher);
-#ifdef KEYBOARD_SUPPORT
/** KeyboardDispatcher associated with this director
- @since v?.?
+ @note Supported on Mac and Linux only now.
+ @since v3.0
*/
CC_PROPERTY(KeyboardDispatcher*, _keyboardDispatcher, KeyboardDispatcher);
-#endif
+
/** KeypadDispatcher associated with this director
@since v2.0
*/
diff --git a/cocos2dx/keyboard_dispatcher/CCKeyboardDispatcher.cpp b/cocos2dx/keyboard_dispatcher/CCKeyboardDispatcher.cpp
index be57e9477b..fbb089d176 100644
--- a/cocos2dx/keyboard_dispatcher/CCKeyboardDispatcher.cpp
+++ b/cocos2dx/keyboard_dispatcher/CCKeyboardDispatcher.cpp
@@ -33,8 +33,8 @@ NS_CC_BEGIN
//
//------------------------------------------------------------------
KeyboardDispatcher::KeyboardDispatcher()
-: _keyPressDelegate(NULL)
-, _keyReleaseDelegate(NULL)
+: _keyPressDelegate(nullptr)
+, _keyReleaseDelegate(nullptr)
{
}
diff --git a/cocos2dx/layers_scenes_transitions_nodes/CCLayer.cpp b/cocos2dx/layers_scenes_transitions_nodes/CCLayer.cpp
index ae5d984085..37b874dd4e 100644
--- a/cocos2dx/layers_scenes_transitions_nodes/CCLayer.cpp
+++ b/cocos2dx/layers_scenes_transitions_nodes/CCLayer.cpp
@@ -38,9 +38,7 @@ THE SOFTWARE.
#include "support/TransformUtils.h"
// extern
#include "kazmath/GL/matrix.h"
-#ifdef KEYBOARD_SUPPORT
#include "keyboard_dispatcher/CCKeyboardDispatcher.h"
-#endif
NS_CC_BEGIN
@@ -48,9 +46,7 @@ NS_CC_BEGIN
Layer::Layer()
: _touchEnabled(false)
, _accelerometerEnabled(false)
-#ifdef KEYBOARD_SUPPORT
, _keyboardEnabled(false)
-#endif
, _keypadEnabled(false)
, _scriptTouchHandlerEntry(NULL)
, _scriptKeypadHandlerEntry(NULL)
@@ -279,7 +275,6 @@ void Layer::unregisterScriptAccelerateHandler(void)
CC_SAFE_RELEASE_NULL(_scriptAccelerateHandlerEntry);
}
-#ifdef KEYBOARD_SUPPORT
/// isKeyboardEnabled getter
bool Layer::isKeyboardEnabled()
{
@@ -300,12 +295,11 @@ void Layer::setKeyboardEnabled(bool enabled)
}
else
{
- pDirector->getKeyboardDispatcher()->setKeyPressDelegate(NULL);
- pDirector->getKeyboardDispatcher()->setKeyReleaseDelegate(NULL);
+ pDirector->getKeyboardDispatcher()->setKeyPressDelegate(nullptr);
+ pDirector->getKeyboardDispatcher()->setKeyReleaseDelegate(nullptr);
}
}
}
-#endif
/// isKeypadEnabled getter
bool Layer::isKeypadEnabled()
@@ -845,7 +839,6 @@ void LayerColor::setOpacity(GLubyte opacity)
//
// LayerGradient
//
-
LayerGradient* LayerGradient::create(const ccColor4B& start, const ccColor4B& end)
{
LayerGradient * pLayer = new LayerGradient();
diff --git a/cocos2dx/layers_scenes_transitions_nodes/CCLayer.h b/cocos2dx/layers_scenes_transitions_nodes/CCLayer.h
index 7ca3929557..9b5a17a375 100644
--- a/cocos2dx/layers_scenes_transitions_nodes/CCLayer.h
+++ b/cocos2dx/layers_scenes_transitions_nodes/CCLayer.h
@@ -67,7 +67,7 @@ public:
virtual ~Layer();
virtual bool init();
- /** create one layer */
+ /** creates a fullscreen black layer */
static Layer *create(void);
virtual void onEnter();
@@ -134,12 +134,12 @@ public:
You can enable / disable accelerometer events with this property.
it's new in cocos2d-x
*/
-#ifdef KEYBOARD_SUPPORT
+
virtual bool isKeyboardEnabled();
virtual void setKeyboardEnabled(bool value);
virtual void keyPressed(int keyCode) {};
virtual void keyReleased(int keyCode) {};
-#endif
+
virtual bool isKeypadEnabled();
virtual void setKeypadEnabled(bool value);
@@ -157,9 +157,7 @@ public:
protected:
bool _touchEnabled;
bool _accelerometerEnabled;
-#ifdef KEYBOARD_SUPPORT
bool _keyboardEnabled;
-#endif
bool _keypadEnabled;
private:
@@ -243,7 +241,8 @@ public:
virtual void draw();
virtual void setContentSize(const Size & var);
-
+
+ /** creates a fullscreen black layer */
static LayerColor* create();
/** creates a Layer with color, width and height in Points */
@@ -304,6 +303,9 @@ class CC_DLL LayerGradient : public LayerColor
{
public:
+ /** Creates a fullscreen black layer */
+ static LayerGradient* create();
+
/** Creates a full-screen Layer with a gradient between start and end. */
static LayerGradient* create(const ccColor4B& start, const ccColor4B& end);
@@ -332,8 +334,6 @@ public:
virtual void setCompressedInterpolation(bool bCompressedInterpolation);
virtual bool isCompressedInterpolation();
- static LayerGradient* create();
-
protected:
virtual void updateColor();
};
diff --git a/cocos2dx/platform/linux/CCEGLView.cpp b/cocos2dx/platform/linux/CCEGLView.cpp
index 95bbae6c82..2b9b497581 100644
--- a/cocos2dx/platform/linux/CCEGLView.cpp
+++ b/cocos2dx/platform/linux/CCEGLView.cpp
@@ -13,9 +13,7 @@
#include "touch_dispatcher/CCTouch.h"
#include "touch_dispatcher/CCTouchDispatcher.h"
#include "text_input_node/CCIMEDispatcher.h"
-#ifdef KEYBOARD_SUPPORT
#include "keyboard_dispatcher/CCKeyboardDispatcher.h"
-#endif
PFNGLGENFRAMEBUFFERSEXTPROC glGenFramebuffersEXT = NULL;
PFNGLDELETEFRAMEBUFFERSEXTPROC glDeleteFramebuffersEXT = NULL;
@@ -157,7 +155,6 @@ int closeEventHandle() {
return GL_TRUE;
}
-#ifdef KEYBOARD_SUPPORT
void GLFWCALL keyboardEventHandle(int keyCode, int action)
{
KeyboardDispatcher *kbDisp = Director::sharedDirector()->getKeyboardDispatcher();
@@ -172,7 +169,6 @@ void GLFWCALL keyboardEventHandle(int keyCode, int action)
break;
}
}
-#endif
void EGLView::setFrameSize(float width, float height)
{
@@ -248,7 +244,7 @@ void EGLView::setFrameSize(float width, float height)
glfwSetMouseButtonCallback(mouseButtonEventHandle);
//register the glfw mouse pos event
glfwSetMousePosCallback(mousePosEventHandle);
-#ifdef KEYBOARD_SUPPORT
+#ifdef CC_KEYBOARD_SUPPORT
//register the glfw keyboard event
glfwSetKeyCallback(keyboardEventHandle);
#endif
diff --git a/cocos2dx/proj.ios/cocos2dx.xcodeproj/project.pbxproj.REMOVED.git-id b/cocos2dx/proj.ios/cocos2dx.xcodeproj/project.pbxproj.REMOVED.git-id
index f19db9f2c1..d9e6ced132 100644
--- a/cocos2dx/proj.ios/cocos2dx.xcodeproj/project.pbxproj.REMOVED.git-id
+++ b/cocos2dx/proj.ios/cocos2dx.xcodeproj/project.pbxproj.REMOVED.git-id
@@ -1 +1 @@
-aa069b7e15b1c1a60eb701106de33aa81dca0f77
\ No newline at end of file
+a44aca2820580a568d0cb92fb573086e1096d5e1
\ No newline at end of file
diff --git a/cocos2dx/proj.linux/.project b/cocos2dx/proj.linux/.project
index 65b43549e7..306260a9da 100755
--- a/cocos2dx/proj.linux/.project
+++ b/cocos2dx/proj.linux/.project
@@ -96,6 +96,16 @@
1
PARENT-1-PROJECT_LOC/CCConfiguration.h
+
+ ccFPSImages.c
+ 1
+ PARENT-1-PROJECT_LOC/ccFPSImages.c
+
+
+ ccFPSImages.h
+ 1
+ PARENT-1-PROJECT_LOC/ccFPSImages.h
+
CCDirector.cpp
1
diff --git a/cocos2dx/proj.linux/cocos2dx.mk b/cocos2dx/proj.linux/cocos2dx.mk
index 522d3fb0bc..bb1b98d495 100644
--- a/cocos2dx/proj.linux/cocos2dx.mk
+++ b/cocos2dx/proj.linux/cocos2dx.mk
@@ -11,7 +11,7 @@ CCFLAGS += -MMD -Werror -Wno-deprecated-declarations -fPIC
CXXFLAGS += -MMD -Werror -Wno-deprecated-declarations -fPIC -std=gnu++0x
ARFLAGS = cr
-DEFINES += -DLINUX -DKEYBOARD_SUPPORT
+DEFINES += -DLINUX -DCC_KEYBOARD_SUPPORT
ifdef USE_BOX2D
DEFINES += -DCC_ENABLE_BOX2D_INTEGRATION=1
diff --git a/cocos2dx/proj.mac/cocos2dx.xcodeproj/project.pbxproj.REMOVED.git-id b/cocos2dx/proj.mac/cocos2dx.xcodeproj/project.pbxproj.REMOVED.git-id
index 8456e51bbc..c674431d3e 100644
--- a/cocos2dx/proj.mac/cocos2dx.xcodeproj/project.pbxproj.REMOVED.git-id
+++ b/cocos2dx/proj.mac/cocos2dx.xcodeproj/project.pbxproj.REMOVED.git-id
@@ -1 +1 @@
-d0d80920ec6a91b8d245eb1905b39fe55135f362
\ No newline at end of file
+1dc917cb6f1a62d8d7536db3c3db9f25562d59b7
\ No newline at end of file
diff --git a/cocos2dx/proj.marmalade/cocos2dx.mkf b/cocos2dx/proj.marmalade/cocos2dx.mkf
index 8f5a075930..c5a696ef41 100644
--- a/cocos2dx/proj.marmalade/cocos2dx.mkf
+++ b/cocos2dx/proj.marmalade/cocos2dx.mkf
@@ -109,6 +109,11 @@ files
"*.h"
"*.cpp"
+ ("../keyboard_dispatcher")
+ [keyboard_dispatcher]
+ "*.h"
+ "*.cpp"
+
("../label_nodes")
[label_nodes]
"*.h"
diff --git a/cocos2dx/proj.nacl/Makefile b/cocos2dx/proj.nacl/Makefile
index cbc82320d0..1bf672f7e1 100644
--- a/cocos2dx/proj.nacl/Makefile
+++ b/cocos2dx/proj.nacl/Makefile
@@ -37,6 +37,7 @@ SOURCES = ../actions/CCAction.cpp \
../effects/CCGrid.cpp \
../keypad_dispatcher/CCKeypadDelegate.cpp \
../keypad_dispatcher/CCKeypadDispatcher.cpp \
+../keyboard_dispatcher/CCKeyboardDispatcher.cpp \
../label_nodes/CCLabelAtlas.cpp \
../label_nodes/CCLabelBMFont.cpp \
../label_nodes/CCLabelTTF.cpp \
diff --git a/cocos2dx/proj.win32/cocos2d.vcxproj b/cocos2dx/proj.win32/cocos2d.vcxproj
index 4bb0ee12e0..887f002440 100644
--- a/cocos2dx/proj.win32/cocos2d.vcxproj
+++ b/cocos2dx/proj.win32/cocos2d.vcxproj
@@ -172,6 +172,7 @@ xcopy /Y /Q "$(ProjectDir)..\platform\third_party\win32\libraries\*.*" "$(OutDir
+
@@ -313,6 +314,7 @@ xcopy /Y /Q "$(ProjectDir)..\platform\third_party\win32\libraries\*.*" "$(OutDir
+
diff --git a/cocos2dx/proj.win32/cocos2d.vcxproj.filters b/cocos2dx/proj.win32/cocos2d.vcxproj.filters
index c08ef80f32..ee7e91e62e 100644
--- a/cocos2dx/proj.win32/cocos2d.vcxproj.filters
+++ b/cocos2dx/proj.win32/cocos2d.vcxproj.filters
@@ -1,971 +1,977 @@
-
-
-
-
- {cc64f5ad-2234-494c-9c51-b7a20c8887aa}
-
-
- {aec8225f-81a7-4213-b97b-7004d5535398}
-
-
- {736cf4ab-e0d6-40ba-912a-b062d28d318a}
-
-
- {1c7c61b8-3d36-4ba0-a87c-457eb4c782d0}
-
-
- {0b3a64bd-79fa-476a-a461-6b97e5072453}
-
-
- {e455af5e-da09-4f41-b79f-df4dd311820d}
-
-
- {206bd96b-f80e-4722-8675-d7c6ff9b3639}
-
-
- {075492ba-08bc-404c-92da-32029797a600}
-
-
- {41abe422-1602-4fe0-ac1c-6b04a14c1abb}
-
-
- {8bf0f517-2ac3-4fc3-a1ad-999d9ea103cd}
-
-
- {926fc31c-8742-4984-9940-c972dd02fc8a}
-
-
- {9428f8e6-4ce3-4596-b8af-14d70b7c5b5d}
-
-
- {755e5282-111e-46a5-9169-7c12b37f5ffc}
-
-
- {d94bbf20-8de9-49a7-ae20-6a1140cf633b}
-
-
- {4a64789e-cc8d-4f84-a869-e6dae2e0d58c}
-
-
- {bb98a889-9a48-4e31-af2f-117f14da388a}
-
-
- {fdea327e-b905-47db-8c33-b70d7866166b}
-
-
- {46c8d130-b8b5-47f5-a063-ca700e1c32cc}
-
-
- {f2671200-b2d8-4d2e-9728-06719cf6f835}
-
-
- {eaa16c9b-dfbc-4a37-8e3e-e961d9ca1d1a}
-
-
- {3c91932f-7667-4049-b9bd-caac4c8eab15}
-
-
- {535c04b0-fe2b-44c9-9a8c-9029e2b6de5c}
-
-
- {5b082c5c-d396-43ca-b3b1-997d0f6247d0}
-
-
- {7751500e-ac9e-4604-a96d-670b30b7d8bd}
-
-
- {b38113b1-3d59-4f6e-ac5a-f43921f6ed09}
-
-
- {569c49c9-27eb-456e-a3f4-9f403e28a3a1}
-
-
- {191b3e94-47dc-4054-b1cb-bf145d281521}
-
-
- {a91a4cc0-41e6-43e9-80c0-2c9101924386}
-
-
- {e278b354-1e41-4e92-95b3-7f661ba67140}
-
-
- {163895ae-8a8e-46bf-bdf2-98bb2c1347fc}
-
-
- {1179d205-d065-49f0-8457-bc4c3f1d0cb3}
-
-
- {cc25bb83-527d-4218-8d68-ebf963ce7698}
-
-
- {c45b97e8-fa1f-4e58-8ec5-d46371c2dd26}
-
-
- {caa78ce0-9b58-4314-b117-1acae278691e}
-
-
- {5e6e45aa-50ef-451b-9bb1-f98b9b78259b}
-
-
-
-
- base_nodes
-
-
- base_nodes
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- effects
-
-
- effects
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- label_nodes
-
-
- label_nodes
-
-
- label_nodes
-
-
- layers_scenes_transitions_nodes
-
-
- layers_scenes_transitions_nodes
-
-
- layers_scenes_transitions_nodes
-
-
- layers_scenes_transitions_nodes
-
-
- layers_scenes_transitions_nodes
-
-
- menu_nodes
-
-
- menu_nodes
-
-
- misc_nodes
-
-
- misc_nodes
-
-
- misc_nodes
-
-
- particle_nodes
-
-
- particle_nodes
-
-
- particle_nodes
-
-
- particle_nodes
-
-
- platform
-
-
- platform
-
-
- platform
-
-
- platform
-
-
- platform\win32
-
-
- platform\win32
-
-
- platform\win32
-
-
- platform\win32
-
-
- platform\win32
-
-
- platform\win32
-
-
- sprite_nodes
-
-
- sprite_nodes
-
-
- sprite_nodes
-
-
- sprite_nodes
-
-
- sprite_nodes
-
-
- sprite_nodes
-
-
- support
-
-
- support
-
-
- support
-
-
- support
-
-
- support
-
-
- support
-
-
- support
-
-
- support\data_support
-
-
- support\image_support
-
-
- support\zip_support
-
-
- support\zip_support
-
-
- support\zip_support
-
-
- textures
-
-
- textures
-
-
- textures
-
-
- textures
-
-
- tilemap_parallax_nodes
-
-
- tilemap_parallax_nodes
-
-
- tilemap_parallax_nodes
-
-
- tilemap_parallax_nodes
-
-
- tilemap_parallax_nodes
-
-
- tilemap_parallax_nodes
-
-
- touch_dispatcher
-
-
- touch_dispatcher
-
-
- touch_dispatcher
-
-
- keypad_dispatcher
-
-
- keypad_dispatcher
-
-
- text_input_node
-
-
- text_input_node
-
-
- script_support
-
-
- kazmath\src
-
-
- kazmath\src
-
-
- kazmath\src
-
-
- kazmath\src
-
-
- kazmath\src
-
-
- kazmath\src
-
-
- kazmath\src
-
-
- kazmath\src
-
-
- kazmath\src
-
-
- kazmath\src
-
-
- kazmath\src
-
-
- kazmath\src\GL
-
-
- kazmath\src\GL
-
-
-
-
-
-
-
- draw_nodes
-
-
- draw_nodes
-
-
- misc_nodes
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- platform\win32
-
-
- platform
-
-
- platform
-
-
- platform\win32
-
-
- support
-
-
- support\user_default
-
-
- support\tinyxml2
-
-
- cocoa
-
-
-
- textures
-
-
- support\component
-
-
- support\component
-
-
- textures\etc
-
-
-
-
- base_nodes
-
-
- base_nodes
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- effects
-
-
- effects
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- actions
-
-
- include
-
-
- include
-
-
- include
-
-
- include
-
-
- include
-
-
- include
-
-
- label_nodes
-
-
- label_nodes
-
-
- label_nodes
-
-
- layers_scenes_transitions_nodes
-
-
- layers_scenes_transitions_nodes
-
-
- layers_scenes_transitions_nodes
-
-
- layers_scenes_transitions_nodes
-
-
- layers_scenes_transitions_nodes
-
-
- menu_nodes
-
-
- menu_nodes
-
-
- misc_nodes
-
-
- misc_nodes
-
-
- misc_nodes
-
-
- particle_nodes
-
-
- particle_nodes
-
-
- particle_nodes
-
-
- particle_nodes
-
-
- platform
-
-
- platform
-
-
- platform
-
-
- platform
-
-
- platform
-
-
- platform
-
-
- platform
-
-
- platform
-
-
- platform
-
-
- platform
-
-
- platform
-
-
- platform
-
-
- platform\win32
-
-
- platform\win32
-
-
- platform\win32
-
-
- platform\win32
-
-
- platform\win32
-
-
- platform\win32
-
-
- sprite_nodes
-
-
- sprite_nodes
-
-
- sprite_nodes
-
-
- sprite_nodes
-
-
- sprite_nodes
-
-
- sprite_nodes
-
-
- support
-
-
- support
-
-
- support
-
-
- support
-
-
- support
-
-
- support
-
-
- support
-
-
- support\data_support
-
-
- support\data_support
-
-
- support\data_support
-
-
- support\image_support
-
-
- support\zip_support
-
-
- support\zip_support
-
-
- support\zip_support
-
-
- textures
-
-
- textures
-
-
- textures
-
-
- textures
-
-
- tilemap_parallax_nodes
-
-
- tilemap_parallax_nodes
-
-
- tilemap_parallax_nodes
-
-
- tilemap_parallax_nodes
-
-
- tilemap_parallax_nodes
-
-
- tilemap_parallax_nodes
-
-
- touch_dispatcher
-
-
- touch_dispatcher
-
-
- touch_dispatcher
-
-
- touch_dispatcher
-
-
- keypad_dispatcher
-
-
- keypad_dispatcher
-
-
- text_input_node
-
-
- text_input_node
-
-
- text_input_node
-
-
- script_support
-
-
- kazmath\include\kazmath
-
-
- kazmath\include\kazmath
-
-
- kazmath\include\kazmath
-
-
- kazmath\include\kazmath
-
-
- kazmath\include\kazmath
-
-
- kazmath\include\kazmath
-
-
- kazmath\include\kazmath
-
-
- kazmath\include\kazmath
-
-
- kazmath\include\kazmath
-
-
- kazmath\include\kazmath
-
-
- kazmath\include\kazmath
-
-
- kazmath\include\kazmath
-
-
- kazmath\include\kazmath\GL
-
-
- kazmath\include\kazmath\GL
-
-
-
-
-
-
- draw_nodes
-
-
- draw_nodes
-
-
- misc_nodes
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- shaders
-
-
- platform\win32
-
-
- support
-
-
- support\user_default
-
-
- support\tinyxml2
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- cocoa
-
-
- textures
-
-
-
- support\component
-
-
- support\component
-
-
- textures\etc
-
-
+
+
+
+
+ {cc64f5ad-2234-494c-9c51-b7a20c8887aa}
+
+
+ {aec8225f-81a7-4213-b97b-7004d5535398}
+
+
+ {736cf4ab-e0d6-40ba-912a-b062d28d318a}
+
+
+ {1c7c61b8-3d36-4ba0-a87c-457eb4c782d0}
+
+
+ {0b3a64bd-79fa-476a-a461-6b97e5072453}
+
+
+ {e455af5e-da09-4f41-b79f-df4dd311820d}
+
+
+ {206bd96b-f80e-4722-8675-d7c6ff9b3639}
+
+
+ {075492ba-08bc-404c-92da-32029797a600}
+
+
+ {41abe422-1602-4fe0-ac1c-6b04a14c1abb}
+
+
+ {8bf0f517-2ac3-4fc3-a1ad-999d9ea103cd}
+
+
+ {926fc31c-8742-4984-9940-c972dd02fc8a}
+
+
+ {9428f8e6-4ce3-4596-b8af-14d70b7c5b5d}
+
+
+ {755e5282-111e-46a5-9169-7c12b37f5ffc}
+
+
+ {d94bbf20-8de9-49a7-ae20-6a1140cf633b}
+
+
+ {4a64789e-cc8d-4f84-a869-e6dae2e0d58c}
+
+
+ {bb98a889-9a48-4e31-af2f-117f14da388a}
+
+
+ {fdea327e-b905-47db-8c33-b70d7866166b}
+
+
+ {46c8d130-b8b5-47f5-a063-ca700e1c32cc}
+
+
+ {f2671200-b2d8-4d2e-9728-06719cf6f835}
+
+
+ {eaa16c9b-dfbc-4a37-8e3e-e961d9ca1d1a}
+
+
+ {3c91932f-7667-4049-b9bd-caac4c8eab15}
+
+
+ {535c04b0-fe2b-44c9-9a8c-9029e2b6de5c}
+
+
+ {5b082c5c-d396-43ca-b3b1-997d0f6247d0}
+
+
+ {7751500e-ac9e-4604-a96d-670b30b7d8bd}
+
+
+ {b38113b1-3d59-4f6e-ac5a-f43921f6ed09}
+
+
+ {569c49c9-27eb-456e-a3f4-9f403e28a3a1}
+
+
+ {191b3e94-47dc-4054-b1cb-bf145d281521}
+
+
+ {a91a4cc0-41e6-43e9-80c0-2c9101924386}
+
+
+ {e278b354-1e41-4e92-95b3-7f661ba67140}
+
+
+ {163895ae-8a8e-46bf-bdf2-98bb2c1347fc}
+
+
+ {1179d205-d065-49f0-8457-bc4c3f1d0cb3}
+
+
+ {cc25bb83-527d-4218-8d68-ebf963ce7698}
+
+
+ {c45b97e8-fa1f-4e58-8ec5-d46371c2dd26}
+
+
+ {caa78ce0-9b58-4314-b117-1acae278691e}
+
+
+ {5e6e45aa-50ef-451b-9bb1-f98b9b78259b}
+
+ {e7134ba0-4220-4dd1-b120-3533883394ac}
+
+
+
+
+ base_nodes
+
+
+ base_nodes
+
+
+ cocoa
+
+
+ cocoa
+
+
+ cocoa
+
+
+ cocoa
+
+
+ cocoa
+
+
+ cocoa
+
+
+ cocoa
+
+
+ cocoa
+
+
+ cocoa
+
+
+ cocoa
+
+
+ cocoa
+
+
+ effects
+
+
+ effects
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ label_nodes
+
+
+ label_nodes
+
+
+ label_nodes
+
+
+ layers_scenes_transitions_nodes
+
+
+ layers_scenes_transitions_nodes
+
+
+ layers_scenes_transitions_nodes
+
+
+ layers_scenes_transitions_nodes
+
+
+ layers_scenes_transitions_nodes
+
+
+ menu_nodes
+
+
+ menu_nodes
+
+
+ misc_nodes
+
+
+ misc_nodes
+
+
+ misc_nodes
+
+
+ particle_nodes
+
+
+ particle_nodes
+
+
+ particle_nodes
+
+
+ particle_nodes
+
+
+ platform
+
+
+ platform
+
+
+ platform
+
+
+ platform
+
+
+ platform\win32
+
+
+ platform\win32
+
+
+ platform\win32
+
+
+ platform\win32
+
+
+ platform\win32
+
+
+ platform\win32
+
+
+ sprite_nodes
+
+
+ sprite_nodes
+
+
+ sprite_nodes
+
+
+ sprite_nodes
+
+
+ sprite_nodes
+
+
+ sprite_nodes
+
+
+ support
+
+
+ support
+
+
+ support
+
+
+ support
+
+
+ support
+
+
+ support
+
+
+ support
+
+
+ support\data_support
+
+
+ support\image_support
+
+
+ support\zip_support
+
+
+ support\zip_support
+
+
+ support\zip_support
+
+
+ textures
+
+
+ textures
+
+
+ textures
+
+
+ textures
+
+
+ tilemap_parallax_nodes
+
+
+ tilemap_parallax_nodes
+
+
+ tilemap_parallax_nodes
+
+
+ tilemap_parallax_nodes
+
+
+ tilemap_parallax_nodes
+
+
+ tilemap_parallax_nodes
+
+
+ touch_dispatcher
+
+
+ touch_dispatcher
+
+
+ touch_dispatcher
+
+
+ keypad_dispatcher
+
+
+ keypad_dispatcher
+
+
+ text_input_node
+
+
+ text_input_node
+
+
+ script_support
+
+
+ kazmath\src
+
+
+ kazmath\src
+
+
+ kazmath\src
+
+
+ kazmath\src
+
+
+ kazmath\src
+
+
+ kazmath\src
+
+
+ kazmath\src
+
+
+ kazmath\src
+
+
+ kazmath\src
+
+
+ kazmath\src
+
+
+ kazmath\src
+
+
+ kazmath\src\GL
+
+
+ kazmath\src\GL
+
+
+
+
+
+
+
+ draw_nodes
+
+
+ draw_nodes
+
+
+ misc_nodes
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ platform\win32
+
+
+ platform
+
+
+ platform
+
+
+ platform\win32
+
+
+ support
+
+
+ support\user_default
+
+
+ support\tinyxml2
+
+
+ cocoa
+
+
+
+ textures
+
+
+ support\component
+
+
+ support\component
+
+
+ textures\etc
+
+ keyboard_dispatcher
+
+
+
+
+ base_nodes
+
+
+ base_nodes
+
+
+ cocoa
+
+
+ cocoa
+
+
+ cocoa
+
+
+ cocoa
+
+
+ cocoa
+
+
+ cocoa
+
+
+ cocoa
+
+
+ cocoa
+
+
+ cocoa
+
+
+ cocoa
+
+
+ cocoa
+
+
+ cocoa
+
+
+ effects
+
+
+ effects
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ actions
+
+
+ include
+
+
+ include
+
+
+ include
+
+
+ include
+
+
+ include
+
+
+ include
+
+
+ label_nodes
+
+
+ label_nodes
+
+
+ label_nodes
+
+
+ layers_scenes_transitions_nodes
+
+
+ layers_scenes_transitions_nodes
+
+
+ layers_scenes_transitions_nodes
+
+
+ layers_scenes_transitions_nodes
+
+
+ layers_scenes_transitions_nodes
+
+
+ menu_nodes
+
+
+ menu_nodes
+
+
+ misc_nodes
+
+
+ misc_nodes
+
+
+ misc_nodes
+
+
+ particle_nodes
+
+
+ particle_nodes
+
+
+ particle_nodes
+
+
+ particle_nodes
+
+
+ platform
+
+
+ platform
+
+
+ platform
+
+
+ platform
+
+
+ platform
+
+
+ platform
+
+
+ platform
+
+
+ platform
+
+
+ platform
+
+
+ platform
+
+
+ platform
+
+
+ platform
+
+
+ platform\win32
+
+
+ platform\win32
+
+
+ platform\win32
+
+
+ platform\win32
+
+
+ platform\win32
+
+
+ platform\win32
+
+
+ sprite_nodes
+
+
+ sprite_nodes
+
+
+ sprite_nodes
+
+
+ sprite_nodes
+
+
+ sprite_nodes
+
+
+ sprite_nodes
+
+
+ support
+
+
+ support
+
+
+ support
+
+
+ support
+
+
+ support
+
+
+ support
+
+
+ support
+
+
+ support\data_support
+
+
+ support\data_support
+
+
+ support\data_support
+
+
+ support\image_support
+
+
+ support\zip_support
+
+
+ support\zip_support
+
+
+ support\zip_support
+
+
+ textures
+
+
+ textures
+
+
+ textures
+
+
+ textures
+
+
+ tilemap_parallax_nodes
+
+
+ tilemap_parallax_nodes
+
+
+ tilemap_parallax_nodes
+
+
+ tilemap_parallax_nodes
+
+
+ tilemap_parallax_nodes
+
+
+ tilemap_parallax_nodes
+
+
+ touch_dispatcher
+
+
+ touch_dispatcher
+
+
+ touch_dispatcher
+
+
+ touch_dispatcher
+
+
+ keypad_dispatcher
+
+
+ keypad_dispatcher
+
+
+ text_input_node
+
+
+ text_input_node
+
+
+ text_input_node
+
+
+ script_support
+
+
+ kazmath\include\kazmath
+
+
+ kazmath\include\kazmath
+
+
+ kazmath\include\kazmath
+
+
+ kazmath\include\kazmath
+
+
+ kazmath\include\kazmath
+
+
+ kazmath\include\kazmath
+
+
+ kazmath\include\kazmath
+
+
+ kazmath\include\kazmath
+
+
+ kazmath\include\kazmath
+
+
+ kazmath\include\kazmath
+
+
+ kazmath\include\kazmath
+
+
+ kazmath\include\kazmath
+
+
+ kazmath\include\kazmath\GL
+
+
+ kazmath\include\kazmath\GL
+
+
+
+
+
+
+ draw_nodes
+
+
+ draw_nodes
+
+
+ misc_nodes
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ shaders
+
+
+ platform\win32
+
+
+ support
+
+
+ support\user_default
+
+
+ support\tinyxml2
+
+
+ cocoa
+
+
+ cocoa
+
+
+ cocoa
+
+
+ cocoa
+
+
+ textures
+
+
+
+ support\component
+
+
+ support\component
+
+
+ textures\etc
+
+ keyboard_dispatcher
+
+
\ No newline at end of file
diff --git a/cocos2dx/textures/CCTexture2D.cpp b/cocos2dx/textures/CCTexture2D.cpp
index a2a0591eb5..c5494df2ca 100644
--- a/cocos2dx/textures/CCTexture2D.cpp
+++ b/cocos2dx/textures/CCTexture2D.cpp
@@ -516,7 +516,7 @@ bool Texture2D::initWithString(const char *text, ccFontDefinition *textDefinitio
#if CC_ENABLE_CACHE_TEXTURE_DATA
// cache the texture data
- VolatileTexture::addStringTexture(this, text, dimensions, hAlignment, vAlignment, fontName, fontSize);
+ VolatileTexture::addStringTexture(this, text, textDefinition->_dimensions, textDefinition->_alignment, textDefinition->_vertAlignment, textDefinition->_fontName.c_str(), textDefinition->_fontSize);
#endif
bool bRet = false;
diff --git a/extensions/physics_nodes/CCPhysicsSprite.cpp b/extensions/physics_nodes/CCPhysicsSprite.cpp
index c9a8193273..feba6a3f57 100644
--- a/extensions/physics_nodes/CCPhysicsSprite.cpp
+++ b/extensions/physics_nodes/CCPhysicsSprite.cpp
@@ -23,6 +23,10 @@
#include "CCPhysicsSprite.h"
#include "support/CCPointExtension.h"
+#if defined(CC_ENABLE_CHIPMUNK_INTEGRATION) && defined(CC_ENABLE_BOX2D_INTEGRATION)
+#error "Either Chipmunk or Box2d should be enabled, but not both at the same time"
+#endif
+
#if CC_ENABLE_CHIPMUNK_INTEGRATION
#include "chipmunk.h"
#elif CC_ENABLE_BOX2D_INTEGRATION
@@ -33,12 +37,9 @@ NS_CC_EXT_BEGIN
PhysicsSprite::PhysicsSprite()
: _ignoreBodyRotation(false)
-#if CC_ENABLE_CHIPMUNK_INTEGRATION
, _CPBody(NULL)
-#elif CC_ENABLE_BOX2D_INTEGRATION
, _pB2Body(NULL)
, _PTMRatio(0.0f)
-#endif
{}
PhysicsSprite* PhysicsSprite::create()
@@ -189,6 +190,10 @@ float PhysicsSprite::getPositionY()
return _position.y;
}
+//
+// Chipmunk only
+//
+
#if CC_ENABLE_CHIPMUNK_INTEGRATION
cpBody* PhysicsSprite::getCPBody() const
@@ -201,56 +206,31 @@ void PhysicsSprite::setCPBody(cpBody *pBody)
_CPBody = pBody;
}
-void PhysicsSprite::updatePosFromPhysics()
+b2Body* PhysicsSprite::getB2Body() const
{
- cpVect cpPos = cpBodyGetPos(_CPBody);
- _position = ccp(cpPos.x, cpPos.y);
+ CCAssert(false, "Can't call box2d methods when Chipmunk is enabled");
+ return NULL;
}
-void PhysicsSprite::setPosition(const Point &pos)
+void PhysicsSprite::setB2Body(b2Body *pBody)
{
- cpVect cpPos = cpv(pos.x, pos.y);
- cpBodySetPos(_CPBody, cpPos);
+ CCAssert(false, "Can't call box2d methods when Chipmunk is enabled");
}
-float PhysicsSprite::getRotation()
+float PhysicsSprite::getPTMRatio() const
{
- return (_ignoreBodyRotation ? Sprite::getRotation() : -CC_RADIANS_TO_DEGREES(cpBodyGetAngle(_CPBody)));
+ CCAssert(false, "Can't call box2d methods when Chipmunk is enabled");
+ return 0;
}
-void PhysicsSprite::setRotation(float fRotation)
+void PhysicsSprite::setPTMRatio(float fRatio)
{
- if (_ignoreBodyRotation)
- {
- Sprite::setRotation(fRotation);
- }
- else
- {
- cpBodySetAngle(_CPBody, -CC_DEGREES_TO_RADIANS(fRotation));
- }
-}
-
-// returns the transform matrix according the Chipmunk Body values
-AffineTransform PhysicsSprite::nodeToParentTransform()
-{
- // Although scale is not used by physics engines, it is calculated just in case
- // the sprite is animated (scaled up/down) using actions.
- // For more info see: http://www.cocos2d-iphone.org/forum/topic/68990
- cpVect rot = (_ignoreBodyRotation ? cpvforangle(-CC_DEGREES_TO_RADIANS(_rotationX)) : _CPBody->rot);
- float x = _CPBody->p.x + rot.x * -_anchorPointInPoints.x * _scaleX - rot.y * -_anchorPointInPoints.y * _scaleY;
- float y = _CPBody->p.y + rot.y * -_anchorPointInPoints.x * _scaleX + rot.x * -_anchorPointInPoints.y * _scaleY;
-
- if (_ignoreAnchorPointForPosition)
- {
- x += _anchorPointInPoints.x;
- y += _anchorPointInPoints.y;
- }
-
- return (_transform = AffineTransformMake(rot.x * _scaleX, rot.y * _scaleX,
- -rot.y * _scaleY, rot.x * _scaleY,
- x, y));
+ CCAssert(false, "Can't call box2d methods when Chipmunk is enabled");
}
+//
+// Box2d only
+//
#elif CC_ENABLE_BOX2D_INTEGRATION
b2Body* PhysicsSprite::getB2Body() const
@@ -273,25 +253,68 @@ void PhysicsSprite::setPTMRatio(float fRatio)
_PTMRatio = fRatio;
}
-// Override the setters and getters to always reflect the body's properties.
+cpBody* PhysicsSprite::getCPBody() const
+{
+ CCAssert(false, "Can't call Chipmunk methods when Box2d is enabled");
+ return NULL;
+}
+
+void PhysicsSprite::setCPBody(cpBody *pBody)
+{
+ CCAssert(false, "Can't call Chipmunk methods when Box2d is enabled");
+}
+
+#endif
+
+//
+// Common to Box2d and Chipmunk
+//
+
void PhysicsSprite::updatePosFromPhysics()
{
+
+#if CC_ENABLE_CHIPMUNK_INTEGRATION
+
+ cpVect cpPos = cpBodyGetPos(_CPBody);
+ _position = ccp(cpPos.x, cpPos.y);
+
+#elif CC_ENABLE_BOX2D_INTEGRATION
+
b2Vec2 pos = _pB2Body->GetPosition();
float x = pos.x * _PTMRatio;
float y = pos.y * _PTMRatio;
_position = ccp(x,y);
+#endif
+
}
void PhysicsSprite::setPosition(const Point &pos)
{
+#if CC_ENABLE_CHIPMUNK_INTEGRATION
+
+ cpVect cpPos = cpv(pos.x, pos.y);
+ cpBodySetPos(_CPBody, cpPos);
+
+#elif CC_ENABLE_BOX2D_INTEGRATION
+
float angle = _pB2Body->GetAngle();
_pB2Body->SetTransform(b2Vec2(pos.x / _PTMRatio, pos.y / _PTMRatio), angle);
+#endif
+
}
float PhysicsSprite::getRotation()
{
+#if CC_ENABLE_CHIPMUNK_INTEGRATION
+
+ return (_ignoreBodyRotation ? Sprite::getRotation() : -CC_RADIANS_TO_DEGREES(cpBodyGetAngle(_CPBody)));
+
+#elif CC_ENABLE_BOX2D_INTEGRATION
+
return (_ignoreBodyRotation ? Sprite::getRotation() :
CC_RADIANS_TO_DEGREES(_pB2Body->GetAngle()));
+#endif
+
}
void PhysicsSprite::setRotation(float fRotation)
@@ -300,50 +323,79 @@ void PhysicsSprite::setRotation(float fRotation)
{
Sprite::setRotation(fRotation);
}
+
+#if CC_ENABLE_CHIPMUNK_INTEGRATION
+ else
+ {
+ cpBodySetAngle(_CPBody, -CC_DEGREES_TO_RADIANS(fRotation));
+ }
+
+#elif CC_ENABLE_BOX2D_INTEGRATION
else
{
b2Vec2 p = _pB2Body->GetPosition();
float radians = CC_DEGREES_TO_RADIANS(fRotation);
_pB2Body->SetTransform(p, radians);
}
+#endif
+
}
-// returns the transform matrix according the Box2D Body values
+// returns the transform matrix according the Chipmunk Body values
AffineTransform PhysicsSprite::nodeToParentTransform()
{
- b2Vec2 pos = _pB2Body->GetPosition();
-
- float x = pos.x * _PTMRatio;
- float y = pos.y * _PTMRatio;
-
+ // Although scale is not used by physics engines, it is calculated just in case
+ // the sprite is animated (scaled up/down) using actions.
+ // For more info see: http://www.cocos2d-iphone.org/forum/topic/68990
+
+#if CC_ENABLE_CHIPMUNK_INTEGRATION
+
+ cpVect rot = (_ignoreBodyRotation ? cpvforangle(-CC_DEGREES_TO_RADIANS(_rotationX)) : _CPBody->rot);
+ float x = _CPBody->p.x + rot.x * -_anchorPointInPoints.x * _scaleX - rot.y * -_anchorPointInPoints.y * _scaleY;
+ float y = _CPBody->p.y + rot.y * -_anchorPointInPoints.x * _scaleX + rot.x * -_anchorPointInPoints.y * _scaleY;
+
if (_ignoreAnchorPointForPosition)
{
x += _anchorPointInPoints.x;
y += _anchorPointInPoints.y;
}
-
+
+ return (_transform = AffineTransformMake(rot.x * _scaleX, rot.y * _scaleX,
+ -rot.y * _scaleY, rot.x * _scaleY,
+ x, y));
+
+
+#elif CC_ENABLE_BOX2D_INTEGRATION
+
+ b2Vec2 pos = _pB2Body->GetPosition();
+
+ float x = pos.x * _PTMRatio;
+ float y = pos.y * _PTMRatio;
+
+ if (_ignoreAnchorPointForPosition)
+ {
+ x += _anchorPointInPoints.x;
+ y += _anchorPointInPoints.y;
+ }
+
// Make matrix
float radians = _pB2Body->GetAngle();
float c = cosf(radians);
float s = sinf(radians);
-
- // Although scale is not used by physics engines, it is calculated just in case
- // the sprite is animated (scaled up/down) using actions.
- // For more info see: http://www.cocos2d-iphone.org/forum/topic/68990
+
if (!_anchorPointInPoints.equals(PointZero))
{
x += ((c * -_anchorPointInPoints.x * _scaleX) + (-s * -_anchorPointInPoints.y * _scaleY));
y += ((s * -_anchorPointInPoints.x * _scaleX) + (c * -_anchorPointInPoints.y * _scaleY));
}
-
+
// Rot, Translate Matrix
_transform = AffineTransformMake( c * _scaleX, s * _scaleX,
- -s * _scaleY, c * _scaleY,
- x, y );
-
+ -s * _scaleY, c * _scaleY,
+ x, y );
+
return _transform;
+#endif
}
-#endif
-
NS_CC_EXT_END
diff --git a/extensions/physics_nodes/CCPhysicsSprite.h b/extensions/physics_nodes/CCPhysicsSprite.h
index da11ce90ef..1d11738a20 100644
--- a/extensions/physics_nodes/CCPhysicsSprite.h
+++ b/extensions/physics_nodes/CCPhysicsSprite.h
@@ -25,13 +25,8 @@
#include "cocos2d.h"
#include "ExtensionMacros.h"
-#if CC_ENABLE_CHIPMUNK_INTEGRATION
-#include "chipmunk.h"
-#elif CC_ENABLE_BOX2D_INTEGRATION
+struct cpBody;
class b2Body;
-#else // CC_ENABLE_BOX2D_INTEGRATION
-#error "You must define either CC_ENABLE_CHIPMUNK_INTEGRATION or CC_ENABLE_BOX2D_INTEGRATION to use PhysicsSprite.h"
-#endif
NS_CC_EXT_BEGIN
/** A Sprite subclass that is bound to a physics body.
@@ -50,15 +45,15 @@ class PhysicsSprite : public Sprite
{
protected:
bool _ignoreBodyRotation;
-#if CC_ENABLE_CHIPMUNK_INTEGRATION
+
+
+ // chipmunk specific
cpBody *_CPBody;
-#elif CC_ENABLE_BOX2D_INTEGRATION
+ // box2d specific
b2Body *_pB2Body;
-
- // Pixels to Meters ratio
float _PTMRatio;
-#endif // CC_ENABLE_CHIPMUNK_INTEGRATION
+
public:
PhysicsSprite();
@@ -110,18 +105,22 @@ public:
virtual void setRotation(float fRotation);
virtual AffineTransform nodeToParentTransform();
-#if CC_ENABLE_CHIPMUNK_INTEGRATION
+ //
+ // Chipmunk specific
+ //
/** Body accessor when using regular Chipmunk */
cpBody* getCPBody() const;
void setCPBody(cpBody *pBody);
-#elif CC_ENABLE_BOX2D_INTEGRATION
+
+ //
+ // Box2d specific
+ //
/** Body accessor when using box2d */
b2Body* getB2Body() const;
void setB2Body(b2Body *pBody);
float getPTMRatio() const;
void setPTMRatio(float fPTMRatio);
-#endif // CC_ENABLE_BOX2D_INTEGRATION
protected:
void updatePosFromPhysics();
diff --git a/extensions/proj.linux/.cproject b/extensions/proj.linux/.cproject
index a4aac1c02c..9918728542 100644
--- a/extensions/proj.linux/.cproject
+++ b/extensions/proj.linux/.cproject
@@ -40,6 +40,7 @@
+
@@ -66,6 +67,7 @@
+
@@ -133,6 +135,7 @@
+
@@ -159,6 +162,7 @@
+
@@ -218,6 +222,7 @@
+
@@ -244,6 +249,7 @@
+
@@ -312,6 +318,7 @@
+
@@ -338,6 +345,7 @@
+
diff --git a/extensions/proj.mac/extensions.xcodeproj/project.pbxproj b/extensions/proj.mac/extensions.xcodeproj/project.pbxproj
index 3ec88e06a2..bdee787e8f 100644
--- a/extensions/proj.mac/extensions.xcodeproj/project.pbxproj
+++ b/extensions/proj.mac/extensions.xcodeproj/project.pbxproj
@@ -112,6 +112,8 @@
1A0C0D4F1777F9CD00838530 /* Slot.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A0C0CE31777F9CD00838530 /* Slot.cpp */; };
1A0C0D501777F9CD00838530 /* SlotData.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A0C0CE51777F9CD00838530 /* SlotData.cpp */; };
1A0C0D511777F9CD00838530 /* spine-cocos2dx.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A0C0CE71777F9CD00838530 /* spine-cocos2dx.cpp */; };
+ A05FCAE8177C1A1400BE600E /* libwebsockets.a in Frameworks */ = {isa = PBXBuildFile; fileRef = A05FCAE7177C1A1400BE600E /* libwebsockets.a */; };
+ A05FCAEA177C1F8E00BE600E /* libcurl.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = A05FCAE9177C1F8E00BE600E /* libcurl.dylib */; };
/* End PBXBuildFile section */
/* Begin PBXCopyFilesBuildPhase section */
@@ -361,9 +363,9 @@
1A0C0CE71777F9CD00838530 /* spine-cocos2dx.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = "spine-cocos2dx.cpp"; sourceTree = ""; };
1A0C0CE81777F9CD00838530 /* spine-cocos2dx.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "spine-cocos2dx.h"; sourceTree = ""; };
1A0C0CE91777F9CD00838530 /* spine.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = spine.h; sourceTree = ""; };
- 1A0C0D551777FAAD00838530 /* libwebsockets.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = libwebsockets.h; sourceTree = ""; };
- 1A0C0D571777FAAD00838530 /* libwebsockets.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libwebsockets.a; sourceTree = ""; };
- 1A0C0D591777FB1300838530 /* libcurl.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libcurl.a; path = ../../cocos2dx/platform/third_party/ios/libraries/libcurl.a; sourceTree = ""; };
+ A05FCAE5177C1A1400BE600E /* libwebsockets.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = libwebsockets.h; sourceTree = ""; };
+ A05FCAE7177C1A1400BE600E /* libwebsockets.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libwebsockets.a; sourceTree = ""; };
+ A05FCAE9177C1F8E00BE600E /* libcurl.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libcurl.dylib; path = usr/lib/libcurl.dylib; sourceTree = SDKROOT; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -371,7 +373,9 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ A05FCAEA177C1F8E00BE600E /* libcurl.dylib in Frameworks */,
1A0C0A7E1777F79700838530 /* Foundation.framework in Frameworks */,
+ A05FCAE8177C1A1400BE600E /* libwebsockets.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -409,8 +413,8 @@
1A0C0A7C1777F79700838530 /* Frameworks */ = {
isa = PBXGroup;
children = (
- 1A0C0D591777FB1300838530 /* libcurl.a */,
- 1A0C0D521777FAAD00838530 /* libwebsockets */,
+ A05FCAE9177C1F8E00BE600E /* libcurl.dylib */,
+ A05FCAE3177C1A1400BE600E /* libwebsockets */,
1A0C0A7D1777F79700838530 /* Foundation.framework */,
);
name = Frameworks;
@@ -805,36 +809,28 @@
path = ../spine;
sourceTree = "";
};
- 1A0C0D521777FAAD00838530 /* libwebsockets */ = {
+ A05FCAE3177C1A1400BE600E /* libwebsockets */ = {
isa = PBXGroup;
children = (
- 1A0C0D531777FAAD00838530 /* ios */,
+ A05FCAE4177C1A1400BE600E /* include */,
+ A05FCAE6177C1A1400BE600E /* lib */,
);
name = libwebsockets;
- path = ../../external/libwebsockets;
+ path = ../../external/libwebsockets/mac;
sourceTree = "";
};
- 1A0C0D531777FAAD00838530 /* ios */ = {
+ A05FCAE4177C1A1400BE600E /* include */ = {
isa = PBXGroup;
children = (
- 1A0C0D541777FAAD00838530 /* include */,
- 1A0C0D561777FAAD00838530 /* lib */,
- );
- path = ios;
- sourceTree = "";
- };
- 1A0C0D541777FAAD00838530 /* include */ = {
- isa = PBXGroup;
- children = (
- 1A0C0D551777FAAD00838530 /* libwebsockets.h */,
+ A05FCAE5177C1A1400BE600E /* libwebsockets.h */,
);
path = include;
sourceTree = "";
};
- 1A0C0D561777FAAD00838530 /* lib */ = {
+ A05FCAE6177C1A1400BE600E /* lib */ = {
isa = PBXGroup;
children = (
- 1A0C0D571777FAAD00838530 /* libwebsockets.a */,
+ A05FCAE7177C1A1400BE600E /* libwebsockets.a */,
);
path = lib;
sourceTree = "";
@@ -1017,7 +1013,7 @@
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
- "$(inherited)",
+ CC_KEYBOARD_SUPPORT,
CC_TARGET_OS_MAC,
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
@@ -1046,6 +1042,7 @@
GCC_PREPROCESSOR_DEFINITIONS = (
NDEBUG,
CC_TARGET_OS_MAC,
+ CC_KEYBOARD_SUPPORT,
);
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
diff --git a/external/libwebsockets/mac/include/libwebsockets.h b/external/libwebsockets/mac/include/libwebsockets.h
new file mode 100644
index 0000000000..65bae14534
--- /dev/null
+++ b/external/libwebsockets/mac/include/libwebsockets.h
@@ -0,0 +1,993 @@
+/*
+ * libwebsockets - small server side websockets and web server implementation
+ *
+ * Copyright (C) 2010-2013 Andy Green
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation:
+ * version 2.1 of the License.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301 USA
+ */
+
+#ifndef __LIBWEBSOCKET_H__
+#define __LIBWEBSOCKET_H__
+
+#ifdef __cplusplus
+extern "C" {
+#include
+#endif
+
+#ifdef WIN32
+
+#ifndef WIN32_LEAN_AND_MEAN
+#define WIN32_LEAN_AND_MEAN
+#endif
+#include
+#include
+#include
+#include "../win32port/win32helpers/websock-w32.h"
+
+#include "../win32port/win32helpers/gettimeofday.h"
+
+#define strcasecmp stricmp
+#define getdtablesize() 30000
+
+typedef int ssize_t;
+
+#define LWS_VISIBLE
+
+#ifdef LWS_DLL
+#ifdef LWS_INTERNAL
+#define LWS_EXTERN extern __declspec(dllexport)
+#else
+#define LWS_EXTERN extern __declspec(dllimport)
+#endif
+#else
+#define LWS_EXTERN
+#endif
+
+#else // NOT WIN32
+#include
+#include
+
+#if defined(__GNUC__)
+#define LWS_VISIBLE __attribute__((visibility("default")))
+#else
+#define LWS_VISIBLE
+#endif
+
+#endif
+
+#include
+
+#ifndef LWS_EXTERN
+#define LWS_EXTERN extern
+#endif
+
+#define CONTEXT_PORT_NO_LISTEN 0
+#define MAX_MUX_RECURSION 2
+
+enum lws_log_levels {
+ LLL_ERR = 1 << 0,
+ LLL_WARN = 1 << 1,
+ LLL_NOTICE = 1 << 2,
+ LLL_INFO = 1 << 3,
+ LLL_DEBUG = 1 << 4,
+ LLL_PARSER = 1 << 5,
+ LLL_HEADER = 1 << 6,
+ LLL_EXT = 1 << 7,
+ LLL_CLIENT = 1 << 8,
+ LLL_LATENCY = 1 << 9,
+
+ LLL_COUNT = 10 /* set to count of valid flags */
+};
+
+LWS_VISIBLE LWS_EXTERN void _lws_log(int filter, const char *format, ...);
+
+/* notice, warn and log are always compiled in */
+#define lwsl_notice(...) _lws_log(LLL_NOTICE, __VA_ARGS__)
+#define lwsl_warn(...) _lws_log(LLL_WARN, __VA_ARGS__)
+#define lwsl_err(...) _lws_log(LLL_ERR, __VA_ARGS__)
+/*
+ * weaker logging can be deselected at configure time using --disable-debug
+ * that gets rid of the overhead of checking while keeping _warn and _err
+ * active
+ */
+#ifdef _DEBUG
+
+#define lwsl_info(...) _lws_log(LLL_INFO, __VA_ARGS__)
+#define lwsl_debug(...) _lws_log(LLL_DEBUG, __VA_ARGS__)
+#define lwsl_parser(...) _lws_log(LLL_PARSER, __VA_ARGS__)
+#define lwsl_header(...) _lws_log(LLL_HEADER, __VA_ARGS__)
+#define lwsl_ext(...) _lws_log(LLL_EXT, __VA_ARGS__)
+#define lwsl_client(...) _lws_log(LLL_CLIENT, __VA_ARGS__)
+#define lwsl_latency(...) _lws_log(LLL_LATENCY, __VA_ARGS__)
+LWS_VISIBLE LWS_EXTERN void lwsl_hexdump(void *buf, size_t len);
+
+#else /* no debug */
+
+#define lwsl_info(...)
+#define lwsl_debug(...)
+#define lwsl_parser(...)
+#define lwsl_header(...)
+#define lwsl_ext(...)
+#define lwsl_client(...)
+#define lwsl_latency(...)
+#define lwsl_hexdump(a, b)
+
+#endif
+
+enum libwebsocket_context_options {
+ LWS_SERVER_OPTION_REQUIRE_VALID_OPENSSL_CLIENT_CERT = 2,
+ LWS_SERVER_OPTION_SKIP_SERVER_CANONICAL_NAME = 4,
+};
+
+enum libwebsocket_callback_reasons {
+ LWS_CALLBACK_ESTABLISHED,
+ LWS_CALLBACK_CLIENT_CONNECTION_ERROR,
+ LWS_CALLBACK_CLIENT_FILTER_PRE_ESTABLISH,
+ LWS_CALLBACK_CLIENT_ESTABLISHED,
+ LWS_CALLBACK_CLOSED,
+ LWS_CALLBACK_RECEIVE,
+ LWS_CALLBACK_CLIENT_RECEIVE,
+ LWS_CALLBACK_CLIENT_RECEIVE_PONG,
+ LWS_CALLBACK_CLIENT_WRITEABLE,
+ LWS_CALLBACK_SERVER_WRITEABLE,
+ LWS_CALLBACK_HTTP,
+ LWS_CALLBACK_HTTP_FILE_COMPLETION,
+ LWS_CALLBACK_HTTP_WRITEABLE,
+ LWS_CALLBACK_FILTER_NETWORK_CONNECTION,
+ LWS_CALLBACK_FILTER_PROTOCOL_CONNECTION,
+ LWS_CALLBACK_OPENSSL_LOAD_EXTRA_CLIENT_VERIFY_CERTS,
+ LWS_CALLBACK_OPENSSL_LOAD_EXTRA_SERVER_VERIFY_CERTS,
+ LWS_CALLBACK_OPENSSL_PERFORM_CLIENT_CERT_VERIFICATION,
+ LWS_CALLBACK_CLIENT_APPEND_HANDSHAKE_HEADER,
+ LWS_CALLBACK_CONFIRM_EXTENSION_OKAY,
+ LWS_CALLBACK_CLIENT_CONFIRM_EXTENSION_SUPPORTED,
+ LWS_CALLBACK_PROTOCOL_INIT,
+ LWS_CALLBACK_PROTOCOL_DESTROY,
+ /* external poll() management support */
+ LWS_CALLBACK_ADD_POLL_FD,
+ LWS_CALLBACK_DEL_POLL_FD,
+ LWS_CALLBACK_SET_MODE_POLL_FD,
+ LWS_CALLBACK_CLEAR_MODE_POLL_FD,
+};
+
+#ifndef LWS_NO_EXTENSIONS
+enum libwebsocket_extension_callback_reasons {
+ LWS_EXT_CALLBACK_SERVER_CONTEXT_CONSTRUCT,
+ LWS_EXT_CALLBACK_CLIENT_CONTEXT_CONSTRUCT,
+ LWS_EXT_CALLBACK_SERVER_CONTEXT_DESTRUCT,
+ LWS_EXT_CALLBACK_CLIENT_CONTEXT_DESTRUCT,
+ LWS_EXT_CALLBACK_CONSTRUCT,
+ LWS_EXT_CALLBACK_CLIENT_CONSTRUCT,
+ LWS_EXT_CALLBACK_CHECK_OK_TO_REALLY_CLOSE,
+ LWS_EXT_CALLBACK_CHECK_OK_TO_PROPOSE_EXTENSION,
+ LWS_EXT_CALLBACK_DESTROY,
+ LWS_EXT_CALLBACK_DESTROY_ANY_WSI_CLOSING,
+ LWS_EXT_CALLBACK_ANY_WSI_ESTABLISHED,
+ LWS_EXT_CALLBACK_PACKET_RX_PREPARSE,
+ LWS_EXT_CALLBACK_PACKET_TX_PRESEND,
+ LWS_EXT_CALLBACK_PACKET_TX_DO_SEND,
+ LWS_EXT_CALLBACK_HANDSHAKE_REPLY_TX,
+ LWS_EXT_CALLBACK_FLUSH_PENDING_TX,
+ LWS_EXT_CALLBACK_EXTENDED_PAYLOAD_RX,
+ LWS_EXT_CALLBACK_CAN_PROXY_CLIENT_CONNECTION,
+ LWS_EXT_CALLBACK_1HZ,
+ LWS_EXT_CALLBACK_REQUEST_ON_WRITEABLE,
+ LWS_EXT_CALLBACK_IS_WRITEABLE,
+ LWS_EXT_CALLBACK_PAYLOAD_TX,
+ LWS_EXT_CALLBACK_PAYLOAD_RX,
+};
+#endif
+
+enum libwebsocket_write_protocol {
+ LWS_WRITE_TEXT,
+ LWS_WRITE_BINARY,
+ LWS_WRITE_CONTINUATION,
+ LWS_WRITE_HTTP,
+
+ /* special 04+ opcodes */
+
+ LWS_WRITE_CLOSE,
+ LWS_WRITE_PING,
+ LWS_WRITE_PONG,
+
+ /* flags */
+
+ LWS_WRITE_NO_FIN = 0x40,
+ /*
+ * client packet payload goes out on wire unmunged
+ * only useful for security tests since normal servers cannot
+ * decode the content if used
+ */
+ LWS_WRITE_CLIENT_IGNORE_XOR_MASK = 0x80
+};
+
+/*
+ * you need these to look at headers that have been parsed if using the
+ * LWS_CALLBACK_FILTER_CONNECTION callback. If a header from the enum
+ * list below is absent, .token = NULL and token_len = 0. Otherwise .token
+ * points to .token_len chars containing that header content.
+ */
+
+struct lws_tokens {
+ char *token;
+ int token_len;
+};
+
+enum lws_token_indexes {
+ WSI_TOKEN_GET_URI,
+ WSI_TOKEN_HOST,
+ WSI_TOKEN_CONNECTION,
+ WSI_TOKEN_KEY1,
+ WSI_TOKEN_KEY2,
+ WSI_TOKEN_PROTOCOL,
+ WSI_TOKEN_UPGRADE,
+ WSI_TOKEN_ORIGIN,
+ WSI_TOKEN_DRAFT,
+ WSI_TOKEN_CHALLENGE,
+
+ /* new for 04 */
+ WSI_TOKEN_KEY,
+ WSI_TOKEN_VERSION,
+ WSI_TOKEN_SWORIGIN,
+
+ /* new for 05 */
+ WSI_TOKEN_EXTENSIONS,
+
+ /* client receives these */
+ WSI_TOKEN_ACCEPT,
+ WSI_TOKEN_NONCE,
+ WSI_TOKEN_HTTP,
+ WSI_TOKEN_MUXURL,
+
+ /* use token storage to stash these */
+
+ _WSI_TOKEN_CLIENT_SENT_PROTOCOLS,
+ _WSI_TOKEN_CLIENT_PEER_ADDRESS,
+ _WSI_TOKEN_CLIENT_URI,
+ _WSI_TOKEN_CLIENT_HOST,
+ _WSI_TOKEN_CLIENT_ORIGIN,
+
+ /* always last real token index*/
+ WSI_TOKEN_COUNT,
+ /* parser state additions */
+ WSI_TOKEN_NAME_PART,
+ WSI_TOKEN_SKIPPING,
+ WSI_TOKEN_SKIPPING_SAW_CR,
+ WSI_PARSING_COMPLETE,
+ WSI_INIT_TOKEN_MUXURL,
+};
+
+/*
+ * From RFC 6455
+ 1000
+
+ 1000 indicates a normal closure, meaning that the purpose for
+ which the connection was established has been fulfilled.
+
+ 1001
+
+ 1001 indicates that an endpoint is "going away", such as a server
+ going down or a browser having navigated away from a page.
+
+ 1002
+
+ 1002 indicates that an endpoint is terminating the connection due
+ to a protocol error.
+
+ 1003
+
+ 1003 indicates that an endpoint is terminating the connection
+ because it has received a type of data it cannot accept (e.g., an
+ endpoint that understands only text data MAY send this if it
+ receives a binary message).
+
+ 1004
+
+ Reserved. The specific meaning might be defined in the future.
+
+ 1005
+
+ 1005 is a reserved value and MUST NOT be set as a status code in a
+ Close control frame by an endpoint. It is designated for use in
+ applications expecting a status code to indicate that no status
+ code was actually present.
+
+ 1006
+
+ 1006 is a reserved value and MUST NOT be set as a status code in a
+ Close control frame by an endpoint. It is designated for use in
+ applications expecting a status code to indicate that the
+ connection was closed abnormally, e.g., without sending or
+ receiving a Close control frame.
+
+ 1007
+
+ 1007 indicates that an endpoint is terminating the connection
+ because it has received data within a message that was not
+ consistent with the type of the message (e.g., non-UTF-8 [RFC3629]
+ data within a text message).
+
+ 1008
+
+ 1008 indicates that an endpoint is terminating the connection
+ because it has received a message that violates its policy. This
+ is a generic status code that can be returned when there is no
+ other more suitable status code (e.g., 1003 or 1009) or if there
+ is a need to hide specific details about the policy.
+
+ 1009
+
+ 1009 indicates that an endpoint is terminating the connection
+ because it has received a message that is too big for it to
+ process.
+
+ 1010
+
+ 1010 indicates that an endpoint (client) is terminating the
+ connection because it has expected the server to negotiate one or
+ more extension, but the server didn't return them in the response
+ message of the WebSocket handshake. The list of extensions that
+ are needed SHOULD appear in the /reason/ part of the Close frame.
+ Note that this status code is not used by the server, because it
+ can fail the WebSocket handshake instead.
+
+ 1011
+
+ 1011 indicates that a server is terminating the connection because
+ it encountered an unexpected condition that prevented it from
+ fulfilling the request.
+
+ 1015
+
+ 1015 is a reserved value and MUST NOT be set as a status code in a
+ Close control frame by an endpoint. It is designated for use in
+ applications expecting a status code to indicate that the
+ connection was closed due to a failure to perform a TLS handshake
+ (e.g., the server certificate can't be verified).
+*/
+
+enum lws_close_status {
+ LWS_CLOSE_STATUS_NOSTATUS = 0,
+ LWS_CLOSE_STATUS_NORMAL = 1000,
+ LWS_CLOSE_STATUS_GOINGAWAY = 1001,
+ LWS_CLOSE_STATUS_PROTOCOL_ERR = 1002,
+ LWS_CLOSE_STATUS_UNACCEPTABLE_OPCODE = 1003,
+ LWS_CLOSE_STATUS_RESERVED = 1004,
+ LWS_CLOSE_STATUS_NO_STATUS = 1005,
+ LWS_CLOSE_STATUS_ABNORMAL_CLOSE = 1006,
+ LWS_CLOSE_STATUS_INVALID_PAYLOAD = 1007,
+ LWS_CLOSE_STATUS_POLICY_VIOLATION = 1008,
+ LWS_CLOSE_STATUS_MESSAGE_TOO_LARGE = 1009,
+ LWS_CLOSE_STATUS_EXTENSION_REQUIRED = 1010,
+ LWS_CLOSE_STATUS_UNEXPECTED_CONDITION = 1011,
+ LWS_CLOSE_STATUS_TLS_FAILURE = 1015,
+};
+
+struct libwebsocket;
+struct libwebsocket_context;
+/* needed even with extensions disabled for create context */
+struct libwebsocket_extension;
+
+/**
+ * callback_function() - User server actions
+ * @context: Websockets context
+ * @wsi: Opaque websocket instance pointer
+ * @reason: The reason for the call
+ * @user: Pointer to per-session user data allocated by library
+ * @in: Pointer used for some callback reasons
+ * @len: Length set for some callback reasons
+ *
+ * This callback is the way the user controls what is served. All the
+ * protocol detail is hidden and handled by the library.
+ *
+ * For each connection / session there is user data allocated that is
+ * pointed to by "user". You set the size of this user data area when
+ * the library is initialized with libwebsocket_create_server.
+ *
+ * You get an opportunity to initialize user data when called back with
+ * LWS_CALLBACK_ESTABLISHED reason.
+ *
+ * LWS_CALLBACK_ESTABLISHED: after the server completes a handshake with
+ * an incoming client
+ *
+ * LWS_CALLBACK_CLIENT_CONNECTION_ERROR: the request client connection has
+ * been unable to complete a handshake with the remote server
+ *
+ * LWS_CALLBACK_CLIENT_FILTER_PRE_ESTABLISH: this is the last chance for the
+ * client user code to examine the http headers
+ * and decide to reject the connection. If the
+ * content in the headers is interesting to the
+ * client (url, etc) it needs to copy it out at
+ * this point since it will be destroyed before
+ * the CLIENT_ESTABLISHED call
+ *
+ * LWS_CALLBACK_CLIENT_ESTABLISHED: after your client connection completed
+ * a handshake with the remote server
+ *
+ * LWS_CALLBACK_CLOSED: when the websocket session ends
+ *
+ * LWS_CALLBACK_RECEIVE: data has appeared for this server endpoint from a
+ * remote client, it can be found at *in and is
+ * len bytes long
+ *
+ * LWS_CALLBACK_CLIENT_RECEIVE_PONG: if you elected to see PONG packets,
+ * they appear with this callback reason. PONG
+ * packets only exist in 04+ protocol
+ *
+ * LWS_CALLBACK_CLIENT_RECEIVE: data has appeared from the server for the
+ * client connection, it can be found at *in and
+ * is len bytes long
+ *
+ * LWS_CALLBACK_HTTP: an http request has come from a client that is not
+ * asking to upgrade the connection to a websocket
+ * one. This is a chance to serve http content,
+ * for example, to send a script to the client
+ * which will then open the websockets connection.
+ * @in points to the URI path requested and
+ * libwebsockets_serve_http_file() makes it very
+ * simple to send back a file to the client.
+ * Normally after sending the file you are done
+ * with the http connection, since the rest of the
+ * activity will come by websockets from the script
+ * that was delivered by http, so you will want to
+ * return 1; to close and free up the connection.
+ * That's important because it uses a slot in the
+ * total number of client connections allowed set
+ * by MAX_CLIENTS.
+ *
+ * LWS_CALLBACK_HTTP_WRITEABLE: you can write more down the http protocol
+ * link now.
+ *
+ * LWS_CALLBACK_HTTP_FILE_COMPLETION: a file requested to be send down
+ * http link has completed.
+ *
+ * LWS_CALLBACK_CLIENT_WRITEABLE:
+ * LWS_CALLBACK_SERVER_WRITEABLE: If you call
+ * libwebsocket_callback_on_writable() on a connection, you will
+ * get one of these callbacks coming when the connection socket
+ * is able to accept another write packet without blocking.
+ * If it already was able to take another packet without blocking,
+ * you'll get this callback at the next call to the service loop
+ * function. Notice that CLIENTs get LWS_CALLBACK_CLIENT_WRITEABLE
+ * and servers get LWS_CALLBACK_SERVER_WRITEABLE.
+ *
+ * LWS_CALLBACK_FILTER_NETWORK_CONNECTION: called when a client connects to
+ * the server at network level; the connection is accepted but then
+ * passed to this callback to decide whether to hang up immediately
+ * or not, based on the client IP. @in contains the connection
+ * socket's descriptor. Return non-zero to terminate
+ * the connection before sending or receiving anything.
+ * Because this happens immediately after the network connection
+ * from the client, there's no websocket protocol selected yet so
+ * this callback is issued only to protocol 0.
+ *
+ * LWS_CALLBACK_FILTER_PROTOCOL_CONNECTION: called when the handshake has
+ * been received and parsed from the client, but the response is
+ * not sent yet. Return non-zero to disallow the connection.
+ * @user is a pointer to an array of struct lws_tokens, you can
+ * use the header enums lws_token_indexes from libwebsockets.h
+ * to check for and read the supported header presence and
+ * content before deciding to allow the handshake to proceed or
+ * to kill the connection.
+ *
+ * LWS_CALLBACK_OPENSSL_LOAD_EXTRA_CLIENT_VERIFY_CERTS: if configured for
+ * including OpenSSL support, this callback allows your user code
+ * to perform extra SSL_CTX_load_verify_locations() or similar
+ * calls to direct OpenSSL where to find certificates the client
+ * can use to confirm the remote server identity. @user is the
+ * OpenSSL SSL_CTX*
+ *
+ * LWS_CALLBACK_OPENSSL_LOAD_EXTRA_SERVER_VERIFY_CERTS: if configured for
+ * including OpenSSL support, this callback allows your user code
+ * to load extra certifcates into the server which allow it to
+ * verify the validity of certificates returned by clients. @user
+ * is the server's OpenSSL SSL_CTX*
+ *
+ * LWS_CALLBACK_OPENSSL_PERFORM_CLIENT_CERT_VERIFICATION: if the
+ * libwebsockets context was created with the option
+ * LWS_SERVER_OPTION_REQUIRE_VALID_OPENSSL_CLIENT_CERT, then this
+ * callback is generated during OpenSSL verification of the cert
+ * sent from the client. It is sent to protocol[0] callback as
+ * no protocol has been negotiated on the connection yet.
+ * Notice that the libwebsockets context and wsi are both NULL
+ * during this callback. See
+ * http://www.openssl.org/docs/ssl/SSL_CTX_set_verify.html
+ * to understand more detail about the OpenSSL callback that
+ * generates this libwebsockets callback and the meanings of the
+ * arguments passed. In this callback, @user is the x509_ctx,
+ * @in is the ssl pointer and @len is preverify_ok
+ * Notice that this callback maintains libwebsocket return
+ * conventions, return 0 to mean the cert is OK or 1 to fail it.
+ * This also means that if you don't handle this callback then
+ * the default callback action of returning 0 allows the client
+ * certificates.
+ *
+ * LWS_CALLBACK_CLIENT_APPEND_HANDSHAKE_HEADER: this callback happens
+ * when a client handshake is being compiled. @user is NULL,
+ * @in is a char **, it's pointing to a char * which holds the
+ * next location in the header buffer where you can add
+ * headers, and @len is the remaining space in the header buffer,
+ * which is typically some hundreds of bytes. So, to add a canned
+ * cookie, your handler code might look similar to:
+ *
+ * char **p = (char **)in;
+ *
+ * if (len < 100)
+ * return 1;
+ *
+ * *p += sprintf(*p, "Cookie: a=b\x0d\x0a");
+ *
+ * return 0;
+ *
+ * Notice if you add anything, you just have to take care about
+ * the CRLF on the line you added. Obviously this callback is
+ * optional, if you don't handle it everything is fine.
+ *
+ * Notice the callback is coming to protocols[0] all the time,
+ * because there is no specific protocol handshook yet.
+ *
+ * LWS_CALLBACK_CONFIRM_EXTENSION_OKAY: When the server handshake code
+ * sees that it does support a requested extension, before
+ * accepting the extension by additing to the list sent back to
+ * the client it gives this callback just to check that it's okay
+ * to use that extension. It calls back to the requested protocol
+ * and with @in being the extension name, @len is 0 and @user is
+ * valid. Note though at this time the ESTABLISHED callback hasn't
+ * happened yet so if you initialize @user content there, @user
+ * content during this callback might not be useful for anything.
+ * Notice this callback comes to protocols[0].
+ *
+ * LWS_CALLBACK_CLIENT_CONFIRM_EXTENSION_SUPPORTED: When a client
+ * connection is being prepared to start a handshake to a server,
+ * each supported extension is checked with protocols[0] callback
+ * with this reason, giving the user code a chance to suppress the
+ * claim to support that extension by returning non-zero. If
+ * unhandled, by default 0 will be returned and the extension
+ * support included in the header to the server. Notice this
+ * callback comes to protocols[0].
+ *
+ * LWS_CALLBACK_PROTOCOL_INIT: One-time call per protocol so it can
+ * do initial setup / allocations etc
+ *
+ * LWS_CALLBACK_PROTOCOL_DESTROY: One-time call per protocol indicating
+ * this protocol won't get used at all after this callback, the
+ * context is getting destroyed. Take the opportunity to
+ * deallocate everything that was allocated by the protocol.
+ *
+ * The next four reasons are optional and only need taking care of if you
+ * will be integrating libwebsockets sockets into an external polling
+ * array.
+ *
+ * LWS_CALLBACK_ADD_POLL_FD: libwebsocket deals with its poll() loop
+ * internally, but in the case you are integrating with another
+ * server you will need to have libwebsocket sockets share a
+ * polling array with the other server. This and the other
+ * POLL_FD related callbacks let you put your specialized
+ * poll array interface code in the callback for protocol 0, the
+ * first protocol you support, usually the HTTP protocol in the
+ * serving case. This callback happens when a socket needs to be
+ * added to the polling loop: @in contains the fd, and
+ * @len is the events bitmap (like, POLLIN). If you are using the
+ * internal polling loop (the "service" callback), you can just
+ * ignore these callbacks.
+ *
+ * LWS_CALLBACK_DEL_POLL_FD: This callback happens when a socket descriptor
+ * needs to be removed from an external polling array. @in is
+ * the socket desricptor. If you are using the internal polling
+ * loop, you can just ignore it.
+ *
+ * LWS_CALLBACK_SET_MODE_POLL_FD: This callback happens when libwebsockets
+ * wants to modify the events for the socket descriptor in @in.
+ * The handler should OR @len on to the events member of the pollfd
+ * struct for this socket descriptor. If you are using the
+ * internal polling loop, you can just ignore it.
+ *
+ * LWS_CALLBACK_CLEAR_MODE_POLL_FD: This callback occurs when libwebsockets
+ * wants to modify the events for the socket descriptor in @in.
+ * The handler should AND ~@len on to the events member of the
+ * pollfd struct for this socket descriptor. If you are using the
+ * internal polling loop, you can just ignore it.
+ */
+LWS_VISIBLE LWS_EXTERN int callback(struct libwebsocket_context *context,
+ struct libwebsocket *wsi,
+ enum libwebsocket_callback_reasons reason, void *user,
+ void *in, size_t len);
+
+typedef int (callback_function)(struct libwebsocket_context *context,
+ struct libwebsocket *wsi,
+ enum libwebsocket_callback_reasons reason, void *user,
+ void *in, size_t len);
+
+#ifndef LWS_NO_EXTENSIONS
+/**
+ * extension_callback_function() - Hooks to allow extensions to operate
+ * @context: Websockets context
+ * @ext: This extension
+ * @wsi: Opaque websocket instance pointer
+ * @reason: The reason for the call
+ * @user: Pointer to per-session user data allocated by library
+ * @in: Pointer used for some callback reasons
+ * @len: Length set for some callback reasons
+ *
+ * Each extension that is active on a particular connection receives
+ * callbacks during the connection lifetime to allow the extension to
+ * operate on websocket data and manage itself.
+ *
+ * Libwebsockets takes care of allocating and freeing "user" memory for
+ * each active extension on each connection. That is what is pointed to
+ * by the @user parameter.
+ *
+ * LWS_EXT_CALLBACK_CONSTRUCT: called when the server has decided to
+ * select this extension from the list provided by the client,
+ * just before the server will send back the handshake accepting
+ * the connection with this extension active. This gives the
+ * extension a chance to initialize its connection context found
+ * in @user.
+ *
+ * LWS_EXT_CALLBACK_CLIENT_CONSTRUCT: same as LWS_EXT_CALLBACK_CONSTRUCT
+ * but called when client is instantiating this extension. Some
+ * extensions will work the same on client and server side and then
+ * you can just merge handlers for both CONSTRUCTS.
+ *
+ * LWS_EXT_CALLBACK_DESTROY: called when the connection the extension was
+ * being used on is about to be closed and deallocated. It's the
+ * last chance for the extension to deallocate anything it has
+ * allocated in the user data (pointed to by @user) before the
+ * user data is deleted. This same callback is used whether you
+ * are in client or server instantiation context.
+ *
+ * LWS_EXT_CALLBACK_PACKET_RX_PREPARSE: when this extension was active on
+ * a connection, and a packet of data arrived at the connection,
+ * it is passed to this callback to give the extension a chance to
+ * change the data, eg, decompress it. @user is pointing to the
+ * extension's private connection context data, @in is pointing
+ * to an lws_tokens struct, it consists of a char * pointer called
+ * token, and an int called token_len. At entry, these are
+ * set to point to the received buffer and set to the content
+ * length. If the extension will grow the content, it should use
+ * a new buffer allocated in its private user context data and
+ * set the pointed-to lws_tokens members to point to its buffer.
+ *
+ * LWS_EXT_CALLBACK_PACKET_TX_PRESEND: this works the same way as
+ * LWS_EXT_CALLBACK_PACKET_RX_PREPARSE above, except it gives the
+ * extension a chance to change websocket data just before it will
+ * be sent out. Using the same lws_token pointer scheme in @in,
+ * the extension can change the buffer and the length to be
+ * transmitted how it likes. Again if it wants to grow the
+ * buffer safely, it should copy the data into its own buffer and
+ * set the lws_tokens token pointer to it.
+ */
+LWS_VISIBLE LWS_EXTERN int extension_callback(struct libwebsocket_context *context,
+ struct libwebsocket_extension *ext,
+ struct libwebsocket *wsi,
+ enum libwebsocket_extension_callback_reasons reason,
+ void *user, void *in, size_t len);
+
+typedef int (extension_callback_function)(struct libwebsocket_context *context,
+ struct libwebsocket_extension *ext,
+ struct libwebsocket *wsi,
+ enum libwebsocket_extension_callback_reasons reason,
+ void *user, void *in, size_t len);
+#endif
+
+/**
+ * struct libwebsocket_protocols - List of protocols and handlers server
+ * supports.
+ * @name: Protocol name that must match the one given in the client
+ * Javascript new WebSocket(url, 'protocol') name
+ * @callback: The service callback used for this protocol. It allows the
+ * service action for an entire protocol to be encapsulated in
+ * the protocol-specific callback
+ * @per_session_data_size: Each new connection using this protocol gets
+ * this much memory allocated on connection establishment and
+ * freed on connection takedown. A pointer to this per-connection
+ * allocation is passed into the callback in the 'user' parameter
+ * @rx_buffer_size: if you want atomic frames delivered to the callback, you
+ * should set this to the size of the biggest legal frame that
+ * you support. If the frame size is exceeded, there is no
+ * error, but the buffer will spill to the user callback when
+ * full, which you can detect by using
+ * libwebsockets_remaining_packet_payload(). Notice that you
+ * just talk about frame size here, the LWS_SEND_BUFFER_PRE_PADDING
+ * and post-padding are automatically also allocated on top.
+ * @owning_server: the server init call fills in this opaque pointer when
+ * registering this protocol with the server.
+ * @protocol_index: which protocol we are starting from zero
+ *
+ * This structure represents one protocol supported by the server. An
+ * array of these structures is passed to libwebsocket_create_server()
+ * allows as many protocols as you like to be handled by one server.
+ */
+
+struct libwebsocket_protocols {
+ const char *name;
+ callback_function *callback;
+ size_t per_session_data_size;
+ size_t rx_buffer_size;
+
+ /*
+ * below are filled in on server init and can be left uninitialized,
+ * no need for user to use them directly either
+ */
+
+ struct libwebsocket_context *owning_server;
+ int protocol_index;
+};
+
+#ifndef LWS_NO_EXTENSIONS
+/**
+ * struct libwebsocket_extension - An extension we know how to cope with
+ *
+ * @name: Formal extension name, eg, "deflate-stream"
+ * @callback: Service callback
+ * @per_session_data_size: Libwebsockets will auto-malloc this much
+ * memory for the use of the extension, a pointer
+ * to it comes in the @user callback parameter
+ * @per_context_private_data: Optional storage for this extension that
+ * is per-context, so it can track stuff across
+ * all sessions, etc, if it wants
+ */
+
+struct libwebsocket_extension {
+ const char *name;
+ extension_callback_function *callback;
+ size_t per_session_data_size;
+ void *per_context_private_data;
+};
+#endif
+
+/**
+ * struct lws_context_creation_info: parameters to create context with
+ *
+ * @port: Port to listen on... you can use 0 to suppress listening on
+ * any port, that's what you want if you are not running a
+ * websocket server at all but just using it as a client
+ * @iface: NULL to bind the listen socket to all interfaces, or the
+ * interface name, eg, "eth2"
+ * @protocols: Array of structures listing supported protocols and a protocol-
+ * specific callback for each one. The list is ended with an
+ * entry that has a NULL callback pointer.
+ * It's not const because we write the owning_server member
+ * @extensions: NULL or array of libwebsocket_extension structs listing the
+ * extensions this context supports. If you configured with
+ * --without-extensions, you should give NULL here.
+ * @ssl_cert_filepath: If libwebsockets was compiled to use ssl, and you want
+ * to listen using SSL, set to the filepath to fetch the
+ * server cert from, otherwise NULL for unencrypted
+ * @ssl_private_key_filepath: filepath to private key if wanting SSL mode,
+ * else ignored
+ * @ssl_ca_filepath: CA certificate filepath or NULL
+ * @ssl_cipher_list: List of valid ciphers to use (eg,
+ * "RC4-MD5:RC4-SHA:AES128-SHA:AES256-SHA:HIGH:!DSS:!aNULL"
+ * or you can leave it as NULL to get "DEFAULT"
+ * @gid: group id to change to after setting listen socket, or -1.
+ * @uid: user id to change to after setting listen socket, or -1.
+ * @options: 0, or LWS_SERVER_OPTION_DEFEAT_CLIENT_MASK
+ * @user: optional user pointer that can be recovered via the context
+ * pointer using libwebsocket_context_user
+ * @ka_time: 0 for no keepalive, otherwise apply this keepalive timeout to
+ * all libwebsocket sockets, client or server
+ * @ka_probes: if ka_time was nonzero, after the timeout expires how many
+ * times to try to get a response from the peer before giving up
+ * and killing the connection
+ * @ka_interval: if ka_time was nonzero, how long to wait before each ka_probes
+ * attempt
+ */
+
+struct lws_context_creation_info {
+ int port;
+ const char *iface;
+ struct libwebsocket_protocols *protocols;
+ struct libwebsocket_extension *extensions;
+ const char *ssl_cert_filepath;
+ const char *ssl_private_key_filepath;
+ const char *ssl_ca_filepath;
+ const char *ssl_cipher_list;
+ int gid;
+ int uid;
+ unsigned int options;
+ void *user;
+ int ka_time;
+ int ka_probes;
+ int ka_interval;
+
+};
+
+LWS_VISIBLE LWS_EXTERN
+void lws_set_log_level(int level,
+ void (*log_emit_function)(int level, const char *line));
+
+LWS_VISIBLE LWS_EXTERN void
+lwsl_emit_syslog(int level, const char *line);
+
+LWS_VISIBLE LWS_EXTERN struct libwebsocket_context *
+libwebsocket_create_context(struct lws_context_creation_info *info);
+
+LWS_VISIBLE LWS_EXTERN void
+libwebsocket_context_destroy(struct libwebsocket_context *context);
+
+LWS_VISIBLE LWS_EXTERN int
+libwebsocket_service(struct libwebsocket_context *context, int timeout_ms);
+
+LWS_VISIBLE LWS_EXTERN int
+libwebsocket_service_fd(struct libwebsocket_context *context,
+ struct pollfd *pollfd);
+
+LWS_VISIBLE LWS_EXTERN void *
+libwebsocket_context_user(struct libwebsocket_context *context);
+
+/*
+ * IMPORTANT NOTICE!
+ *
+ * When sending with websocket protocol (LWS_WRITE_TEXT or LWS_WRITE_BINARY)
+ * the send buffer has to have LWS_SEND_BUFFER_PRE_PADDING bytes valid BEFORE
+ * buf, and LWS_SEND_BUFFER_POST_PADDING bytes valid AFTER (buf + len).
+ *
+ * This allows us to add protocol info before and after the data, and send as
+ * one packet on the network without payload copying, for maximum efficiency.
+ *
+ * So for example you need this kind of code to use libwebsocket_write with a
+ * 128-byte payload
+ *
+ * char buf[LWS_SEND_BUFFER_PRE_PADDING + 128 + LWS_SEND_BUFFER_POST_PADDING];
+ *
+ * // fill your part of the buffer... for example here it's all zeros
+ * memset(&buf[LWS_SEND_BUFFER_PRE_PADDING], 0, 128);
+ *
+ * libwebsocket_write(wsi, &buf[LWS_SEND_BUFFER_PRE_PADDING], 128,
+ * LWS_WRITE_TEXT);
+ *
+ * When sending LWS_WRITE_HTTP, there is no protocol addition and you can just
+ * use the whole buffer without taking care of the above.
+ */
+
+/*
+ * this is the frame nonce plus two header plus 8 length
+ * there's an additional two for mux extension per mux nesting level
+ * 2 byte prepend on close will already fit because control frames cannot use
+ * the big length style
+ */
+
+#define LWS_SEND_BUFFER_PRE_PADDING (4 + 10 + (2 * MAX_MUX_RECURSION))
+#define LWS_SEND_BUFFER_POST_PADDING 4
+
+LWS_VISIBLE LWS_EXTERN int
+libwebsocket_write(struct libwebsocket *wsi, unsigned char *buf, size_t len,
+ enum libwebsocket_write_protocol protocol);
+
+LWS_VISIBLE LWS_EXTERN int
+libwebsockets_serve_http_file(struct libwebsocket_context *context,
+ struct libwebsocket *wsi, const char *file,
+ const char *content_type);
+LWS_VISIBLE LWS_EXTERN int
+libwebsockets_serve_http_file_fragment(struct libwebsocket_context *context,
+ struct libwebsocket *wsi);
+
+LWS_VISIBLE LWS_EXTERN const struct libwebsocket_protocols *
+libwebsockets_get_protocol(struct libwebsocket *wsi);
+
+LWS_VISIBLE LWS_EXTERN int
+libwebsocket_callback_on_writable(struct libwebsocket_context *context,
+ struct libwebsocket *wsi);
+
+LWS_VISIBLE LWS_EXTERN int
+libwebsocket_callback_on_writable_all_protocol(
+ const struct libwebsocket_protocols *protocol);
+
+LWS_VISIBLE LWS_EXTERN int
+libwebsocket_get_socket_fd(struct libwebsocket *wsi);
+
+LWS_VISIBLE LWS_EXTERN int
+libwebsocket_is_final_fragment(struct libwebsocket *wsi);
+
+LWS_VISIBLE LWS_EXTERN unsigned char
+libwebsocket_get_reserved_bits(struct libwebsocket *wsi);
+
+LWS_VISIBLE LWS_EXTERN int
+libwebsocket_rx_flow_control(struct libwebsocket *wsi, int enable);
+
+LWS_VISIBLE LWS_EXTERN void
+libwebsocket_rx_flow_allow_all_protocol(
+ const struct libwebsocket_protocols *protocol);
+
+LWS_VISIBLE LWS_EXTERN size_t
+libwebsockets_remaining_packet_payload(struct libwebsocket *wsi);
+
+LWS_VISIBLE LWS_EXTERN struct libwebsocket *
+libwebsocket_client_connect(struct libwebsocket_context *clients,
+ const char *address,
+ int port,
+ int ssl_connection,
+ const char *path,
+ const char *host,
+ const char *origin,
+ const char *protocol,
+ int ietf_version_or_minus_one);
+
+LWS_VISIBLE LWS_EXTERN struct libwebsocket *
+libwebsocket_client_connect_extended(struct libwebsocket_context *clients,
+ const char *address,
+ int port,
+ int ssl_connection,
+ const char *path,
+ const char *host,
+ const char *origin,
+ const char *protocol,
+ int ietf_version_or_minus_one,
+ void *userdata);
+
+LWS_VISIBLE LWS_EXTERN const char *
+libwebsocket_canonical_hostname(struct libwebsocket_context *context);
+
+
+LWS_VISIBLE LWS_EXTERN void
+libwebsockets_get_peer_addresses(struct libwebsocket_context *context,
+ struct libwebsocket *wsi, int fd, char *name, int name_len,
+ char *rip, int rip_len);
+
+LWS_VISIBLE LWS_EXTERN int
+libwebsockets_get_random(struct libwebsocket_context *context,
+ void *buf, int len);
+
+LWS_VISIBLE LWS_EXTERN int
+lws_daemonize(const char *_lock_path);
+
+LWS_VISIBLE LWS_EXTERN int
+lws_send_pipe_choked(struct libwebsocket *wsi);
+
+LWS_VISIBLE LWS_EXTERN int
+lws_frame_is_binary(struct libwebsocket *wsi);
+
+LWS_VISIBLE LWS_EXTERN unsigned char *
+libwebsockets_SHA1(const unsigned char *d, size_t n, unsigned char *md);
+
+LWS_VISIBLE LWS_EXTERN int
+lws_b64_encode_string(const char *in, int in_len, char *out, int out_size);
+
+LWS_VISIBLE LWS_EXTERN int
+lws_b64_decode_string(const char *in, char *out, int out_size);
+
+LWS_VISIBLE LWS_EXTERN const char *
+lws_get_library_version(void);
+
+/* access to headers... only valid while headers valid */
+
+LWS_VISIBLE LWS_EXTERN int
+lws_hdr_total_length(struct libwebsocket *wsi, enum lws_token_indexes h);
+
+LWS_VISIBLE LWS_EXTERN int
+lws_hdr_copy(struct libwebsocket *wsi, char *dest, int len,
+ enum lws_token_indexes h);
+
+/*
+ * Note: this is not normally needed as a user api. It's provided in case it is
+ * useful when integrating with other app poll loop service code.
+ */
+
+LWS_VISIBLE LWS_EXTERN int
+libwebsocket_read(struct libwebsocket_context *context,
+ struct libwebsocket *wsi,
+ unsigned char *buf, size_t len);
+
+#ifndef LWS_NO_EXTENSIONS
+LWS_VISIBLE LWS_EXTERN struct libwebsocket_extension *libwebsocket_get_internal_extensions();
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/external/libwebsockets/mac/lib/libwebsockets.a.REMOVED.git-id b/external/libwebsockets/mac/lib/libwebsockets.a.REMOVED.git-id
new file mode 100644
index 0000000000..bdf504bf24
--- /dev/null
+++ b/external/libwebsockets/mac/lib/libwebsockets.a.REMOVED.git-id
@@ -0,0 +1 @@
+5d0743ce07a9c865d4367d8e3db161148676f2c8
\ No newline at end of file
diff --git a/plugin/plugins/admob/proj.ios/PluginAdmob.xcodeproj/project.pbxproj b/plugin/plugins/admob/proj.ios/PluginAdmob.xcodeproj/project.pbxproj
index e1fec66e46..631a665f84 100644
--- a/plugin/plugins/admob/proj.ios/PluginAdmob.xcodeproj/project.pbxproj
+++ b/plugin/plugins/admob/proj.ios/PluginAdmob.xcodeproj/project.pbxproj
@@ -212,7 +212,10 @@
FADC44B6176EA82000B2D5ED /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ CLANG_CXX_LANGUAGE_STANDARD = "compiler-default";
+ CLANG_CXX_LIBRARY = "compiler-default";
DSTROOT = /tmp/PluginAdmob.dst;
+ GCC_C_LANGUAGE_STANDARD = "compiler-default";
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "PluginAdmob-Prefix.pch";
HEADER_SEARCH_PATHS = "$(SRCROOT)/../../../protocols/platform/ios";
@@ -229,7 +232,10 @@
FADC44B7176EA82000B2D5ED /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ CLANG_CXX_LANGUAGE_STANDARD = "compiler-default";
+ CLANG_CXX_LIBRARY = "compiler-default";
DSTROOT = /tmp/PluginAdmob.dst;
+ GCC_C_LANGUAGE_STANDARD = "compiler-default";
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "PluginAdmob-Prefix.pch";
HEADER_SEARCH_PATHS = "$(SRCROOT)/../../../protocols/platform/ios";
diff --git a/plugin/plugins/flurry/proj.ios/PluginFlurry.xcodeproj/project.pbxproj b/plugin/plugins/flurry/proj.ios/PluginFlurry.xcodeproj/project.pbxproj
index de8213e1d3..560071669c 100644
--- a/plugin/plugins/flurry/proj.ios/PluginFlurry.xcodeproj/project.pbxproj
+++ b/plugin/plugins/flurry/proj.ios/PluginFlurry.xcodeproj/project.pbxproj
@@ -102,7 +102,7 @@
FA09A369168AFD41008C1C7B /* Project object */ = {
isa = PBXProject;
attributes = {
- LastUpgradeCheck = 0440;
+ LastUpgradeCheck = 0460;
ORGANIZATIONNAME = zhangbin;
};
buildConfigurationList = FA09A36C168AFD41008C1C7B /* Build configuration list for PBXProject "PluginFlurry" */;
@@ -141,6 +141,9 @@
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
@@ -167,6 +170,9 @@
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
@@ -183,8 +189,10 @@
FA09A381168AFD41008C1C7B /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
- CLANG_CXX_LIBRARY = "libc++";
+ CLANG_CXX_LANGUAGE_STANDARD = "compiler-default";
+ CLANG_CXX_LIBRARY = "compiler-default";
DSTROOT = /tmp/libPluginFlurry.dst;
+ GCC_C_LANGUAGE_STANDARD = "compiler-default";
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "PluginFlurry-Prefix.pch";
HEADER_SEARCH_PATHS = "$(SRCROOT)/../../../protocols/platform/ios";
@@ -202,8 +210,10 @@
FA09A382168AFD41008C1C7B /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
- CLANG_CXX_LIBRARY = "libc++";
+ CLANG_CXX_LANGUAGE_STANDARD = "compiler-default";
+ CLANG_CXX_LIBRARY = "compiler-default";
DSTROOT = /tmp/libPluginFlurry.dst;
+ GCC_C_LANGUAGE_STANDARD = "compiler-default";
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "PluginFlurry-Prefix.pch";
HEADER_SEARCH_PATHS = "$(SRCROOT)/../../../protocols/platform/ios";
diff --git a/plugin/plugins/twitter/proj.ios/PluginTwitter.xcodeproj/project.pbxproj b/plugin/plugins/twitter/proj.ios/PluginTwitter.xcodeproj/project.pbxproj
index 268d4490ba..d3ea4f1cee 100644
--- a/plugin/plugins/twitter/proj.ios/PluginTwitter.xcodeproj/project.pbxproj
+++ b/plugin/plugins/twitter/proj.ios/PluginTwitter.xcodeproj/project.pbxproj
@@ -179,7 +179,7 @@
FACAD87F1762C1B500D75ADE /* Project object */ = {
isa = PBXProject;
attributes = {
- LastUpgradeCheck = 0440;
+ LastUpgradeCheck = 0460;
ORGANIZATIONNAME = zhangbin;
};
buildConfigurationList = FACAD8821762C1B500D75ADE /* Build configuration list for PBXProject "PluginTwitter" */;
@@ -226,6 +226,9 @@
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
@@ -251,6 +254,9 @@
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
@@ -267,8 +273,10 @@
FACAD8971762C1B500D75ADE /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
- CLANG_CXX_LIBRARY = "libc++";
+ CLANG_CXX_LANGUAGE_STANDARD = "compiler-default";
+ CLANG_CXX_LIBRARY = "compiler-default";
DSTROOT = /tmp/PluginTwitter.dst;
+ GCC_C_LANGUAGE_STANDARD = "compiler-default";
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "PluginTwitter-Prefix.pch";
HEADER_SEARCH_PATHS = "$(SRCROOT)/../../../protocols/platform/ios";
@@ -281,8 +289,10 @@
FACAD8981762C1B500D75ADE /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
- CLANG_CXX_LIBRARY = "libc++";
+ CLANG_CXX_LANGUAGE_STANDARD = "compiler-default";
+ CLANG_CXX_LIBRARY = "compiler-default";
DSTROOT = /tmp/PluginTwitter.dst;
+ GCC_C_LANGUAGE_STANDARD = "compiler-default";
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "PluginTwitter-Prefix.pch";
HEADER_SEARCH_PATHS = "$(SRCROOT)/../../../protocols/platform/ios";
diff --git a/plugin/plugins/umeng/proj.ios/AnalyticsUmeng.m b/plugin/plugins/umeng/proj.ios/AnalyticsUmeng.m
index 7805586e6b..9260004579 100644
--- a/plugin/plugins/umeng/proj.ios/AnalyticsUmeng.m
+++ b/plugin/plugins/umeng/proj.ios/AnalyticsUmeng.m
@@ -74,7 +74,11 @@ THE SOFTWARE.
- (void) logEvent: (NSString*) eventId withParam:(NSMutableDictionary*) paramMap
{
OUTPUT_LOG(@"Umeng logEventWithParam invoked");
- [MobClick event:eventId attributes:paramMap];
+ if (paramMap != nil) {
+ [MobClick event:eventId attributes:paramMap];
+ } else {
+ [MobClick event:eventId];
+ }
}
- (void) logTimedEventBegin: (NSString*) eventId
diff --git a/plugin/plugins/umeng/proj.ios/PluginUmeng.xcodeproj/project.pbxproj b/plugin/plugins/umeng/proj.ios/PluginUmeng.xcodeproj/project.pbxproj
index ea67c97955..19afde100d 100644
--- a/plugin/plugins/umeng/proj.ios/PluginUmeng.xcodeproj/project.pbxproj
+++ b/plugin/plugins/umeng/proj.ios/PluginUmeng.xcodeproj/project.pbxproj
@@ -100,7 +100,7 @@
FA09A2F8168ADAEC008C1C7B /* Project object */ = {
isa = PBXProject;
attributes = {
- LastUpgradeCheck = 0440;
+ LastUpgradeCheck = 0460;
ORGANIZATIONNAME = zhangbin;
};
buildConfigurationList = FA09A2FB168ADAEC008C1C7B /* Build configuration list for PBXProject "PluginUmeng" */;
@@ -139,6 +139,9 @@
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
@@ -165,6 +168,9 @@
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
@@ -181,8 +187,10 @@
FA09A310168ADAEC008C1C7B /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
- CLANG_CXX_LIBRARY = "libc++";
+ CLANG_CXX_LANGUAGE_STANDARD = "compiler-default";
+ CLANG_CXX_LIBRARY = "compiler-default";
DSTROOT = /tmp/libPluginUmeng.dst;
+ GCC_C_LANGUAGE_STANDARD = "compiler-default";
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "PluginUmeng-Prefix.pch";
HEADER_SEARCH_PATHS = "$(SRCROOT)/../../../protocols/platform/ios";
@@ -200,8 +208,10 @@
FA09A311168ADAEC008C1C7B /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
- CLANG_CXX_LIBRARY = "libc++";
+ CLANG_CXX_LANGUAGE_STANDARD = "compiler-default";
+ CLANG_CXX_LIBRARY = "compiler-default";
DSTROOT = /tmp/libPluginUmeng.dst;
+ GCC_C_LANGUAGE_STANDARD = "compiler-default";
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "PluginUmeng-Prefix.pch";
HEADER_SEARCH_PATHS = "$(SRCROOT)/../../../protocols/platform/ios";
diff --git a/plugin/plugins/weibo/proj.ios/PluginWeibo.xcodeproj/project.pbxproj b/plugin/plugins/weibo/proj.ios/PluginWeibo.xcodeproj/project.pbxproj
index 75af6648a9..da7106f327 100644
--- a/plugin/plugins/weibo/proj.ios/PluginWeibo.xcodeproj/project.pbxproj
+++ b/plugin/plugins/weibo/proj.ios/PluginWeibo.xcodeproj/project.pbxproj
@@ -142,7 +142,7 @@
FAE27527175D9D2900F5DA8E /* Project object */ = {
isa = PBXProject;
attributes = {
- LastUpgradeCheck = 0440;
+ LastUpgradeCheck = 0460;
ORGANIZATIONNAME = zhangbin;
};
buildConfigurationList = FAE2752A175D9D2900F5DA8E /* Build configuration list for PBXProject "PluginWeibo" */;
@@ -184,6 +184,9 @@
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
CLANG_CXX_LANGUAGE_STANDARD = "compiler-default";
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
@@ -209,6 +212,9 @@
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
CLANG_CXX_LANGUAGE_STANDARD = "compiler-default";
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
@@ -225,9 +231,10 @@
FAE2753F175D9D2B00F5DA8E /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
- CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
- CLANG_CXX_LIBRARY = "libc++";
+ CLANG_CXX_LANGUAGE_STANDARD = "compiler-default";
+ CLANG_CXX_LIBRARY = "compiler-default";
DSTROOT = /tmp/PluginWeibo.dst;
+ GCC_C_LANGUAGE_STANDARD = "compiler-default";
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "PluginWeibo-Prefix.pch";
HEADER_SEARCH_PATHS = "$(SRCROOT)/../../../protocols/platform/ios";
@@ -240,9 +247,10 @@
FAE27540175D9D2B00F5DA8E /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
- CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
- CLANG_CXX_LIBRARY = "libc++";
+ CLANG_CXX_LANGUAGE_STANDARD = "compiler-default";
+ CLANG_CXX_LIBRARY = "compiler-default";
DSTROOT = /tmp/PluginWeibo.dst;
+ GCC_C_LANGUAGE_STANDARD = "compiler-default";
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "PluginWeibo-Prefix.pch";
HEADER_SEARCH_PATHS = "$(SRCROOT)/../../../protocols/platform/ios";
diff --git a/plugin/samples/HelloShare/proj.ios/AppController.h b/plugin/protocols/platform/ios/InterfaceUser.h
similarity index 76%
rename from plugin/samples/HelloShare/proj.ios/AppController.h
rename to plugin/protocols/platform/ios/InterfaceUser.h
index ab7abff7d2..f6d08bb00a 100644
--- a/plugin/samples/HelloShare/proj.ios/AppController.h
+++ b/plugin/protocols/platform/ios/InterfaceUser.h
@@ -1,35 +1,36 @@
-/****************************************************************************
-Copyright (c) 2012-2013 cocos2d-x.org
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-****************************************************************************/
-
-#import
-
-@class RootViewController;
-
-@interface AppController : NSObject {
- UIWindow *window;
- RootViewController *viewController;
-}
-
-@end
-
+/****************************************************************************
+Copyright (c) 2012+2013 cocos2d+x.org
+
+http://www.cocos2d+x.org
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+****************************************************************************/
+
+@protocol InterfaceUser
+
+- (void) configDeveloperInfo : (NSMutableDictionary*) cpInfo;
+- (void) login;
+- (void) logout;
+- (BOOL) isLogined;
+- (NSString*) getSessionID;
+- (void) setDebugMode: (BOOL) debug;
+- (NSString*) getSDKVersion;
+- (NSString*) getPluginVersion;
+
+@end
diff --git a/plugin/protocols/platform/ios/ProtocolUser.mm b/plugin/protocols/platform/ios/ProtocolUser.mm
new file mode 100644
index 0000000000..ab3f2ed58a
--- /dev/null
+++ b/plugin/protocols/platform/ios/ProtocolUser.mm
@@ -0,0 +1,80 @@
+/****************************************************************************
+Copyright (c) 2012-2013 cocos2d-x.org
+
+http://www.cocos2d-x.org
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+****************************************************************************/
+#include "ProtocolUser.h"
+#include "PluginUtilsIOS.h"
+#import "InterfaceUser.h"
+
+namespace cocos2d { namespace plugin {
+
+ProtocolUser::ProtocolUser()
+: _listener(NULL)
+{
+}
+
+ProtocolUser::~ProtocolUser()
+{
+}
+
+void ProtocolUser::configDeveloperInfo(TUserDeveloperInfo devInfo)
+{
+ if (devInfo.empty())
+ {
+ PluginUtilsIOS::outputLog("The developer info is empty for %s!", this->getPluginName());
+ return;
+ }
+ else
+ {
+ PluginOCData* pData = PluginUtilsIOS::getPluginOCData(this);
+ assert(pData != NULL);
+
+ id ocObj = pData->obj;
+ if ([ocObj conformsToProtocol:@protocol(InterfaceUser)]) {
+ NSObject* curObj = ocObj;
+ NSMutableDictionary* pDict = PluginUtilsIOS::createDictFromMap(&devInfo);
+ [curObj configDeveloperInfo:pDict];
+ }
+ }
+}
+
+void ProtocolUser::login()
+{
+ PluginUtilsIOS::callOCFunctionWithName(this, "login");
+}
+
+void ProtocolUser::logout()
+{
+ PluginUtilsIOS::callOCFunctionWithName(this, "logout");
+}
+
+bool ProtocolUser::isLogined()
+{
+ return PluginUtilsIOS::callOCBoolFunctionWithName(this, "isLogined");
+}
+
+std::string ProtocolUser::getSessionID()
+{
+ return PluginUtilsIOS::callOCStringFunctionWithName(this, "getSessionID");
+}
+
+}} // namespace cocos2d { namespace plugin {
diff --git a/plugin/samples/HelloShare/proj.ios/RootViewController.h b/plugin/protocols/platform/ios/UserWrapper.h
similarity index 76%
rename from plugin/samples/HelloShare/proj.ios/RootViewController.h
rename to plugin/protocols/platform/ios/UserWrapper.h
index b346fa122d..02c21f2c0d 100644
--- a/plugin/samples/HelloShare/proj.ios/RootViewController.h
+++ b/plugin/protocols/platform/ios/UserWrapper.h
@@ -1,32 +1,40 @@
-/****************************************************************************
-Copyright (c) 2012-2013 cocos2d-x.org
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-****************************************************************************/
-
-#import
-
-
-@interface RootViewController : UIViewController {
-
-}
-
-@end
+/****************************************************************************
+Copyright (c) 2012+2013 cocos2d+x.org
+
+http://www.cocos2d+x.org
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+****************************************************************************/
+
+#import
+
+typedef enum {
+ kLoginSucceed = 0,
+ kLoginFailed,
+ kLogoutSucceed,
+} UserActionResult;
+
+@interface UserWrapper : NSObject
+{
+
+}
+
++ (void) onActionResult:(id) obj withRet:(UserActionResult) ret withMsg:(NSString*) msg;
+
+@end
diff --git a/plugin/samples/HelloIAP/proj.android/src/org/cocos2dx/helloIAP/HelloIAP.java b/plugin/protocols/platform/ios/UserWrapper.mm
similarity index 54%
rename from plugin/samples/HelloIAP/proj.android/src/org/cocos2dx/helloIAP/HelloIAP.java
rename to plugin/protocols/platform/ios/UserWrapper.mm
index f13450365d..117398abab 100644
--- a/plugin/samples/HelloIAP/proj.android/src/org/cocos2dx/helloIAP/HelloIAP.java
+++ b/plugin/protocols/platform/ios/UserWrapper.mm
@@ -1,43 +1,53 @@
-/****************************************************************************
-Copyright (c) 2010-2012 cocos2d-x.org
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-****************************************************************************/
-package org.cocos2dx.helloIAP;
-
-import org.cocos2dx.lib.Cocos2dxActivity;
-import org.cocos2dx.lib.Cocos2dxGLSurfaceView;
-import org.cocos2dx.plugin.PluginWrapper;
-
-import android.os.Bundle;
-
-public class HelloIAP extends Cocos2dxActivity{
-
- protected void onCreate(Bundle savedInstanceState){
- super.onCreate(savedInstanceState);
- PluginWrapper.init(this);
- PluginWrapper.setGLSurfaceView(Cocos2dxGLSurfaceView.getInstance());
- }
-
- static {
- System.loadLibrary("game");
- }
-}
+/****************************************************************************
+Copyright (c) 2012+2013 cocos2d+x.org
+
+http://www.cocos2d+x.org
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+****************************************************************************/
+
+#import "UserWrapper.h"
+#include "PluginUtilsIOS.h"
+#include "ProtocolUser.h"
+
+using namespace cocos2d::plugin;
+
+@implementation UserWrapper
+
++ (void) onActionResult:(id) obj withRet:(UserActionResult) ret withMsg:(NSString*) msg
+{
+ PluginProtocol* pPlugin = PluginUtilsIOS::getPluginPtr(obj);
+ ProtocolUser* pUser = dynamic_cast(pPlugin);
+ if (pUser) {
+ UserActionListener* listener = pUser->getActionListener();
+ if (NULL != listener)
+ {
+ const char* chMsg = [msg UTF8String];
+ listener->onActionResult(pUser, (UserActionResultCode) ret, chMsg);
+ }
+ else
+ {
+ PluginUtilsIOS::outputLog("Listener of plugin %s not set correctly", pPlugin->getPluginName());
+ }
+ } else {
+ PluginUtilsIOS::outputLog("Can't find the C++ object of the User plugin");
+ }
+}
+
+@end
diff --git a/plugin/protocols/proj.ios/PluginProtocol.xcodeproj/project.pbxproj b/plugin/protocols/proj.ios/PluginProtocol.xcodeproj/project.pbxproj
index cbf537f92e..d25e99c866 100644
--- a/plugin/protocols/proj.ios/PluginProtocol.xcodeproj/project.pbxproj
+++ b/plugin/protocols/proj.ios/PluginProtocol.xcodeproj/project.pbxproj
@@ -19,6 +19,8 @@
FAB6DF9A1755D93600C90D89 /* PluginProtocol.mm in Sources */ = {isa = PBXBuildFile; fileRef = FAB6DF991755D93600C90D89 /* PluginProtocol.mm */; };
FAC2A7F91777F8C200035D22 /* ProtocolShare.mm in Sources */ = {isa = PBXBuildFile; fileRef = FAC2A7F61777F8C200035D22 /* ProtocolShare.mm */; };
FAC2A7FA1777F8C200035D22 /* ShareWrapper.mm in Sources */ = {isa = PBXBuildFile; fileRef = FAC2A7F81777F8C200035D22 /* ShareWrapper.mm */; };
+ FAD55520177D1FA900968F54 /* ProtocolUser.mm in Sources */ = {isa = PBXBuildFile; fileRef = FAD5551D177D1FA900968F54 /* ProtocolUser.mm */; };
+ FAD55521177D1FA900968F54 /* UserWrapper.mm in Sources */ = {isa = PBXBuildFile; fileRef = FAD5551F177D1FA900968F54 /* UserWrapper.mm */; };
FADC44CA176EABCF00B2D5ED /* AdsWrapper.mm in Sources */ = {isa = PBXBuildFile; fileRef = FADC44C9176EABCF00B2D5ED /* AdsWrapper.mm */; };
/* End PBXBuildFile section */
@@ -63,6 +65,11 @@
FAC2A7F61777F8C200035D22 /* ProtocolShare.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ProtocolShare.mm; sourceTree = ""; };
FAC2A7F71777F8C200035D22 /* ShareWrapper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ShareWrapper.h; sourceTree = ""; };
FAC2A7F81777F8C200035D22 /* ShareWrapper.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ShareWrapper.mm; sourceTree = ""; };
+ FAD5551C177D1FA900968F54 /* InterfaceUser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InterfaceUser.h; sourceTree = ""; };
+ FAD5551D177D1FA900968F54 /* ProtocolUser.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ProtocolUser.mm; sourceTree = ""; };
+ FAD5551E177D1FA900968F54 /* UserWrapper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UserWrapper.h; sourceTree = ""; };
+ FAD5551F177D1FA900968F54 /* UserWrapper.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = UserWrapper.mm; sourceTree = ""; };
+ FAD55522177D213F00968F54 /* ProtocolUser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ProtocolUser.h; sourceTree = ""; };
FADC44C8176EABCF00B2D5ED /* AdsWrapper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AdsWrapper.h; sourceTree = ""; };
FADC44C9176EABCF00B2D5ED /* AdsWrapper.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = AdsWrapper.mm; sourceTree = ""; };
/* End PBXFileReference section */
@@ -112,6 +119,7 @@
FA09A336168ADC05008C1C7B /* include */ = {
isa = PBXGroup;
children = (
+ FAD55522177D213F00968F54 /* ProtocolUser.h */,
FAC2A7F41777F88700035D22 /* ProtocolShare.h */,
FAB6DF931755D7D100C90D89 /* PluginFactory.h */,
FAB6DF941755D7D100C90D89 /* PluginParam.h */,
@@ -128,6 +136,10 @@
FA0CB8B5168D3CC200E36B11 /* ios */ = {
isa = PBXGroup;
children = (
+ FAD5551C177D1FA900968F54 /* InterfaceUser.h */,
+ FAD5551D177D1FA900968F54 /* ProtocolUser.mm */,
+ FAD5551E177D1FA900968F54 /* UserWrapper.h */,
+ FAD5551F177D1FA900968F54 /* UserWrapper.mm */,
FAC2A7F51777F8C200035D22 /* InterfaceShare.h */,
FAC2A7F61777F8C200035D22 /* ProtocolShare.mm */,
FAC2A7F71777F8C200035D22 /* ShareWrapper.h */,
@@ -212,6 +224,8 @@
FADC44CA176EABCF00B2D5ED /* AdsWrapper.mm in Sources */,
FAC2A7F91777F8C200035D22 /* ProtocolShare.mm in Sources */,
FAC2A7FA1777F8C200035D22 /* ShareWrapper.mm in Sources */,
+ FAD55520177D1FA900968F54 /* ProtocolUser.mm in Sources */,
+ FAD55521177D1FA900968F54 /* UserWrapper.mm in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -273,8 +287,10 @@
FA09A330168ADBC2008C1C7B /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
CLANG_CXX_LIBRARY = "libc++";
DSTROOT = /tmp/PluginProtocol.dst;
+ GCC_C_LANGUAGE_STANDARD = c99;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "PluginProtocol-Prefix.pch";
OTHER_LDFLAGS = "-ObjC";
@@ -286,8 +302,10 @@
FA09A331168ADBC2008C1C7B /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
CLANG_CXX_LIBRARY = "libc++";
DSTROOT = /tmp/PluginProtocol.dst;
+ GCC_C_LANGUAGE_STANDARD = c99;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "PluginProtocol-Prefix.pch";
OTHER_LDFLAGS = "-ObjC";
diff --git a/plugin/samples/HelloAds/Classes/AppDelegate.cpp b/plugin/samples/HelloAds/Classes/AppDelegate.cpp
deleted file mode 100644
index 3586f8267f..0000000000
--- a/plugin/samples/HelloAds/Classes/AppDelegate.cpp
+++ /dev/null
@@ -1,75 +0,0 @@
-/****************************************************************************
-Copyright (c) 2012-2013 cocos2d-x.org
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-****************************************************************************/
-#include "AppDelegate.h"
-#include "HelloWorldScene.h"
-
-USING_NS_CC;
-
-AppDelegate::AppDelegate() {
-
-}
-
-AppDelegate::~AppDelegate()
-{
-}
-
-bool AppDelegate::applicationDidFinishLaunching() {
- // initialize director
- Director* pDirector = Director::sharedDirector();
- EGLView* pEGLView = EGLView::sharedOpenGLView();
-
- pDirector->setOpenGLView(pEGLView);
-
- pEGLView->setDesignResolutionSize(960.0f, 640.0f, kResolutionNoBorder);
-
- // turn on display FPS
- pDirector->setDisplayStats(true);
-
- // set FPS. the default value is 1.0/60 if you don't call this
- pDirector->setAnimationInterval(1.0 / 60);
-
- // create a scene. it's an autorelease object
- Scene *pScene = HelloWorld::scene();
-
- // run
- pDirector->runWithScene(pScene);
-
- return true;
-}
-
-// This function will be called when the app is inactive. When comes a phone call,it's be invoked too
-void AppDelegate::applicationDidEnterBackground() {
- Director::sharedDirector()->stopAnimation();
-
- // if you use SimpleAudioEngine, it must be pause
- // SimpleAudioEngine::sharedEngine()->pauseBackgroundMusic();
-}
-
-// this function will be called when the app is active again
-void AppDelegate::applicationWillEnterForeground() {
- Director::sharedDirector()->startAnimation();
-
- // if you use SimpleAudioEngine, it must resume here
- // SimpleAudioEngine::sharedEngine()->resumeBackgroundMusic();
-}
diff --git a/plugin/samples/HelloAds/Classes/AppDelegate.h b/plugin/samples/HelloAds/Classes/AppDelegate.h
deleted file mode 100644
index e3885d961d..0000000000
--- a/plugin/samples/HelloAds/Classes/AppDelegate.h
+++ /dev/null
@@ -1,61 +0,0 @@
-/****************************************************************************
-Copyright (c) 2012-2013 cocos2d-x.org
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-****************************************************************************/
-#ifndef _APP_DELEGATE_H_
-#define _APP_DELEGATE_H_
-
-#include "cocos2d.h"
-
-/**
-@brief The cocos2d Application.
-
-The reason for implement as private inheritance is to hide some interface call by Director.
-*/
-class AppDelegate : private cocos2d::Application
-{
-public:
- AppDelegate();
- virtual ~AppDelegate();
-
- /**
- @brief Implement Director and Scene init code here.
- @return true Initialize success, app continue.
- @return false Initialize failed, app terminate.
- */
- virtual bool applicationDidFinishLaunching();
-
- /**
- @brief The function be called when the application enter background
- @param the pointer of the application
- */
- virtual void applicationDidEnterBackground();
-
- /**
- @brief The function be called when the application enter foreground
- @param the pointer of the application
- */
- virtual void applicationWillEnterForeground();
-};
-
-#endif // _APP_DELEGATE_H_
-
diff --git a/plugin/samples/HelloAds/proj.android/.classpath b/plugin/samples/HelloAds/proj.android/.classpath
deleted file mode 100644
index 9f9f31f70f..0000000000
--- a/plugin/samples/HelloAds/proj.android/.classpath
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugin/samples/HelloAds/proj.android/.project b/plugin/samples/HelloAds/proj.android/.project
deleted file mode 100644
index f731d7c4b7..0000000000
--- a/plugin/samples/HelloAds/proj.android/.project
+++ /dev/null
@@ -1,45 +0,0 @@
-
-
- HelloAds
-
-
-
-
-
- com.android.ide.eclipse.adt.ResourceManagerBuilder
-
-
-
-
- com.android.ide.eclipse.adt.PreCompilerBuilder
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- com.android.ide.eclipse.adt.ApkBuilder
-
-
-
-
-
- com.android.ide.eclipse.adt.AndroidNature
- org.eclipse.jdt.core.javanature
-
-
-
- Classes
- 2
- PARENT-1-PROJECT_LOC/Classes
-
-
- plugin-x
- 2
- PARENT-3-PROJECT_LOC/publish
-
-
-
diff --git a/plugin/samples/HelloAds/proj.android/AndroidManifest.xml b/plugin/samples/HelloAds/proj.android/AndroidManifest.xml
deleted file mode 100644
index 804a1bc20a..0000000000
--- a/plugin/samples/HelloAds/proj.android/AndroidManifest.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugin/samples/HelloAds/proj.android/build.xml b/plugin/samples/HelloAds/proj.android/build.xml
deleted file mode 100644
index 693f927946..0000000000
--- a/plugin/samples/HelloAds/proj.android/build.xml
+++ /dev/null
@@ -1,83 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugin/samples/HelloAds/proj.android/jni/Android.mk b/plugin/samples/HelloAds/proj.android/jni/Android.mk
deleted file mode 100644
index 49fb10bb3c..0000000000
--- a/plugin/samples/HelloAds/proj.android/jni/Android.mk
+++ /dev/null
@@ -1,21 +0,0 @@
-LOCAL_PATH := $(call my-dir)
-
-include $(CLEAR_VARS)
-
-LOCAL_MODULE := cocos2dcpp_shared
-
-LOCAL_MODULE_FILENAME := libcocos2dcpp
-
-LOCAL_SRC_FILES := hellocpp/main.cpp \
- ../../Classes/AppDelegate.cpp \
- ../../Classes/HelloWorldScene.cpp
-
-LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes
-
-LOCAL_WHOLE_STATIC_LIBRARIES += cocos2dx_static \
-PluginProtocolStatic
-
-include $(BUILD_SHARED_LIBRARY)
-
-$(call import-module,cocos2dx)
-$(call import-module,protocols/android)
diff --git a/plugin/samples/HelloAds/proj.android/project.properties b/plugin/samples/HelloAds/proj.android/project.properties
deleted file mode 100644
index db4ff43492..0000000000
--- a/plugin/samples/HelloAds/proj.android/project.properties
+++ /dev/null
@@ -1,13 +0,0 @@
-# This file is automatically generated by Android Tools.
-# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
-#
-# This file must be checked in Version Control Systems.
-#
-# To customize properties used by the Ant build system use,
-# "ant.properties", and override values to adapt the script to your
-# project structure.
-
-# Project target.
-target=android-13
-
-android.library.reference.1=../../../../cocos2dx/platform/android/java
diff --git a/plugin/samples/HelloAnalytics/Classes/AppDelegate.cpp b/plugin/samples/HelloAnalytics/Classes/AppDelegate.cpp
deleted file mode 100644
index dacb18f155..0000000000
--- a/plugin/samples/HelloAnalytics/Classes/AppDelegate.cpp
+++ /dev/null
@@ -1,155 +0,0 @@
-/****************************************************************************
-Copyright (c) 2012-2013 cocos2d-x.org
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-****************************************************************************/
-#include "AppDelegate.h"
-#include "cocos2d.h"
-#include "HelloWorldScene.h"
-#include "PluginManager.h"
-#include "ProtocolAnalytics.h"
-
-using namespace cocos2d::plugin;
-USING_NS_CC;
-
-// The app key of flurry
-#define FLURRY_KEY_IOS "KMGG7CD9WPK2TW4X9VR8"
-#define FLURRY_KEY_ANDROID "SPKFH8KMPGHMMBWRBT5W"
-#define UMENG_KEY_IOS "50d2b18c5270152187000097"
-#define UMENG_KEY_ANDROID "" // umeng key for android is setted in AndroidManifest.xml
-
-ProtocolAnalytics* g_pAnalytics = NULL;
-std::string s_strAppKey = "";
-
-AppDelegate::AppDelegate()
-{
-
-}
-
-AppDelegate::~AppDelegate()
-{
-
-}
-
-void AppDelegate::loadAnalyticsPlugin()
-{
- PluginProtocol* pPlugin = NULL;
- ccLanguageType langType = Application::sharedApplication()->getCurrentLanguage();
-
- std::string umengKey = "";
- std::string flurryKey = "";
-
-#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
- umengKey = UMENG_KEY_IOS;
- flurryKey = FLURRY_KEY_IOS;
-#elif (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
- umengKey = UMENG_KEY_ANDROID;
- flurryKey = FLURRY_KEY_ANDROID;
-#endif
-
- if (kLanguageChinese == langType)
- {
- pPlugin = PluginManager::getInstance()->loadPlugin("AnalyticsUmeng");
- s_strAppKey = umengKey;
- }
- else
- {
- pPlugin = PluginManager::getInstance()->loadPlugin("AnalyticsFlurry");
- s_strAppKey = flurryKey;
- }
-
- g_pAnalytics = dynamic_cast(pPlugin);
-}
-
-bool AppDelegate::applicationDidFinishLaunching()
-{
- loadAnalyticsPlugin();
- g_pAnalytics->setDebugMode(true);
- g_pAnalytics->startSession(s_strAppKey.c_str());
- g_pAnalytics->setCaptureUncaughtException(true);
- g_pAnalytics->setSessionContinueMillis(10000);
-
- const char* sdkVer = g_pAnalytics->getSDKVersion().c_str();
- CCLog("SDK version : %s", sdkVer);
-
- g_pAnalytics->callFuncWithParam("updateOnlineConfig", NULL);
-
- PluginParam pParam1(true);
- g_pAnalytics->callFuncWithParam("setReportLocation", &pParam1, NULL);
-
- g_pAnalytics->callFuncWithParam("logPageView", NULL);
-
- PluginParam pParam2("1.1");
- g_pAnalytics->callFuncWithParam("setVersionName", &pParam2, NULL);
-
- PluginParam pParam3(20);
- g_pAnalytics->callFuncWithParam("setAge", &pParam3, NULL);
-
- PluginParam pParam4(1);
- g_pAnalytics->callFuncWithParam("setGender", &pParam4, NULL);
-
- PluginParam pParam5("123456");
- g_pAnalytics->callFuncWithParam("setUserId", &pParam5, NULL);
-
- PluginParam pParam6(false);
- g_pAnalytics->callFuncWithParam("setUseHttps", &pParam6, NULL);
-
- // initialize director
- Director *pDirector = Director::sharedDirector();
- pDirector->setOpenGLView(EGLView::sharedOpenGLView());
-
- // turn on display FPS
- //pDirector->setDisplayStats(true);
-
- // set FPS. the default value is 1.0/60 if you don't call this
- pDirector->setAnimationInterval(1.0 / 60);
-
- // create a scene. it's an autorelease object
- Scene *pScene = HelloWorld::scene();
-
- // run
- pDirector->runWithScene(pScene);
-
- return true;
-}
-
-// This function will be called when the app is inactive. When comes a phone call,it's be invoked too
-void AppDelegate::applicationDidEnterBackground()
-{
- Director::sharedDirector()->pause();
-
- // if you use SimpleAudioEngine, it must be pause
- // SimpleAudioEngine::sharedEngine()->pauseBackgroundMusic();
- g_pAnalytics->stopSession();
-}
-
-// this function will be called when the app is active again
-void AppDelegate::applicationWillEnterForeground()
-{
- Director::sharedDirector()->resume();
- if (g_pAnalytics)
- {
- g_pAnalytics->startSession(s_strAppKey.c_str());
- }
-
- // if you use SimpleAudioEngine, it must resume here
- // SimpleAudioEngine::sharedEngine()->resumeBackgroundMusic();
-}
diff --git a/plugin/samples/HelloAnalytics/Classes/AppDelegate.h b/plugin/samples/HelloAnalytics/Classes/AppDelegate.h
deleted file mode 100644
index d11ba56a3f..0000000000
--- a/plugin/samples/HelloAnalytics/Classes/AppDelegate.h
+++ /dev/null
@@ -1,63 +0,0 @@
-/****************************************************************************
-Copyright (c) 2012-2013 cocos2d-x.org
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-****************************************************************************/
-#ifndef _APP_DELEGATE_H_
-#define _APP_DELEGATE_H_
-
-#include "CCApplication.h"
-
-/**
-@brief The cocos2d Application.
-
-The reason for implement as private inheritance is to hide some interface call by Director.
-*/
-class AppDelegate : private cocos2d::Application
-{
-public:
- AppDelegate();
- virtual ~AppDelegate();
-
- /**
- @brief Implement Director and Scene init code here.
- @return true Initialize success, app continue.
- @return false Initialize failed, app terminate.
- */
- virtual bool applicationDidFinishLaunching();
-
- /**
- @brief The function be called when the application enter background
- @param the pointer of the application
- */
- virtual void applicationDidEnterBackground();
-
- /**
- @brief The function be called when the application enter foreground
- @param the pointer of the application
- */
- virtual void applicationWillEnterForeground();
-
- static void loadAnalyticsPlugin();
-};
-
-#endif // _APP_DELEGATE_H_
-
diff --git a/plugin/samples/HelloAnalytics/proj.android/.classpath b/plugin/samples/HelloAnalytics/proj.android/.classpath
deleted file mode 100644
index e6251b7af1..0000000000
--- a/plugin/samples/HelloAnalytics/proj.android/.classpath
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugin/samples/HelloAnalytics/proj.android/.project b/plugin/samples/HelloAnalytics/proj.android/.project
deleted file mode 100644
index 242b4d396f..0000000000
--- a/plugin/samples/HelloAnalytics/proj.android/.project
+++ /dev/null
@@ -1,45 +0,0 @@
-
-
- HelloAnalytics
-
-
-
-
-
- com.android.ide.eclipse.adt.ResourceManagerBuilder
-
-
-
-
- com.android.ide.eclipse.adt.PreCompilerBuilder
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- com.android.ide.eclipse.adt.ApkBuilder
-
-
-
-
-
- com.android.ide.eclipse.adt.AndroidNature
- org.eclipse.jdt.core.javanature
-
-
-
- Classes
- 2
- PARENT-1-PROJECT_LOC/Classes
-
-
- publish
- 2
- PARENT-3-PROJECT_LOC/publish
-
-
-
diff --git a/plugin/samples/HelloAnalytics/proj.android/AndroidManifest.xml b/plugin/samples/HelloAnalytics/proj.android/AndroidManifest.xml
deleted file mode 100644
index eb2eb922e3..0000000000
--- a/plugin/samples/HelloAnalytics/proj.android/AndroidManifest.xml
+++ /dev/null
@@ -1,57 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugin/samples/HelloAnalytics/proj.android/ant.properties b/plugin/samples/HelloAnalytics/proj.android/ant.properties
deleted file mode 100644
index b0971e891e..0000000000
--- a/plugin/samples/HelloAnalytics/proj.android/ant.properties
+++ /dev/null
@@ -1,17 +0,0 @@
-# This file is used to override default values used by the Ant build system.
-#
-# This file must be checked into Version Control Systems, as it is
-# integral to the build system of your project.
-
-# This file is only used by the Ant script.
-
-# You can use this to override default values such as
-# 'source.dir' for the location of your java source folder and
-# 'out.dir' for the location of your output folder.
-
-# You can also use it define how the release builds are signed by declaring
-# the following properties:
-# 'key.store' for the location of your keystore and
-# 'key.alias' for the name of the key to use.
-# The password will be asked during the build when you use the 'release' target.
-
diff --git a/plugin/samples/HelloAnalytics/proj.android/build.xml b/plugin/samples/HelloAnalytics/proj.android/build.xml
deleted file mode 100644
index 80abad0ab0..0000000000
--- a/plugin/samples/HelloAnalytics/proj.android/build.xml
+++ /dev/null
@@ -1,92 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugin/samples/HelloAnalytics/proj.android/build_native.sh b/plugin/samples/HelloAnalytics/proj.android/build_native.sh
deleted file mode 100755
index 7b388a1442..0000000000
--- a/plugin/samples/HelloAnalytics/proj.android/build_native.sh
+++ /dev/null
@@ -1,81 +0,0 @@
-APPNAME="HelloAnalytics"
-
-# options
-
-buildexternalsfromsource=
-
-usage(){
-cat << EOF
-usage: $0 [options]
-
-Build C/C++ code for $APPNAME using Android NDK
-
-OPTIONS:
--s Build externals from source
--h this help
-EOF
-}
-
-while getopts "sh" OPTION; do
-case "$OPTION" in
-s)
-buildexternalsfromsource=1
-;;
-h)
-usage
-exit 0
-;;
-esac
-done
-
-# paths
-
-if [ -z "${NDK_ROOT+aaa}" ];then
-echo "please define NDK_ROOT"
-exit 1
-fi
-
-DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-# ... use paths relative to current directory
-PLUGIN_ROOT="$DIR/../../.."
-COCOS2DX_ROOT="$DIR/../../../.."
-APP_ROOT="$DIR/.."
-APP_ANDROID_ROOT="$DIR"
-
-echo "PLUGIN_ROOT = $PLUGIN_ROOT"
-echo "NDK_ROOT = $NDK_ROOT"
-echo "COCOS2DX_ROOT = $COCOS2DX_ROOT"
-echo "APP_ROOT = $APP_ROOT"
-echo "APP_ANDROID_ROOT = $APP_ANDROID_ROOT"
-echo "---------------------------------------------------------"
-
-# make sure assets is exist
-if [ -d "$APP_ANDROID_ROOT"/assets ]; then
- rm -rf "$APP_ANDROID_ROOT"/assets
-fi
-
-mkdir "$APP_ANDROID_ROOT"/assets
-
-# copy resources
-for file in "$APP_ROOT"/Resources/*
-do
-if [ -d "$file" ]; then
- cp -rf "$file" "$APP_ANDROID_ROOT"/assets
-fi
-
-if [ -f "$file" ]; then
- cp "$file" "$APP_ANDROID_ROOT"/assets
-fi
-done
-
-if [[ "$buildexternalsfromsource" ]]; then
- echo "Building external dependencies from source"
- set -x
- "$NDK_ROOT"/ndk-build -C "$APP_ANDROID_ROOT" $* \
- "NDK_MODULE_PATH=${PLUGIN_ROOT}/publish:${COCOS2DX_ROOT}:${COCOS2DX_ROOT}/cocos2dx/platform/third_party/android/source"
-else
- echo "Using prebuilt externals"
- set -x
- "$NDK_ROOT"/ndk-build -C "$APP_ANDROID_ROOT" $* \
- "NDK_MODULE_PATH=${PLUGIN_ROOT}/publish:${COCOS2DX_ROOT}:${COCOS2DX_ROOT}/cocos2dx/platform/third_party/android/prebuilt"
-fi
diff --git a/plugin/samples/HelloAnalytics/proj.android/jni/Android.mk b/plugin/samples/HelloAnalytics/proj.android/jni/Android.mk
deleted file mode 100644
index 6940ebe855..0000000000
--- a/plugin/samples/HelloAnalytics/proj.android/jni/Android.mk
+++ /dev/null
@@ -1,21 +0,0 @@
-LOCAL_PATH := $(call my-dir)
-
-include $(CLEAR_VARS)
-
-LOCAL_MODULE := game_shared
-
-LOCAL_MODULE_FILENAME := libgame
-
-LOCAL_SRC_FILES := hellocpp/main.cpp \
- ../../Classes/AppDelegate.cpp \
- ../../Classes/HelloWorldScene.cpp
-
-LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes
-
-LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static \
- PluginProtocolStatic
-
-include $(BUILD_SHARED_LIBRARY)
-
-$(call import-module,cocos2dx) \
-$(call import-module,protocols/android)
diff --git a/plugin/samples/HelloAnalytics/proj.android/jni/Application.mk b/plugin/samples/HelloAnalytics/proj.android/jni/Application.mk
deleted file mode 100644
index 488132832e..0000000000
--- a/plugin/samples/HelloAnalytics/proj.android/jni/Application.mk
+++ /dev/null
@@ -1,3 +0,0 @@
-APP_STL := gnustl_static
-APP_CPPFLAGS += -frtti -std=c++11
-NDK_TOOLCHAIN_VERSION=4.7
diff --git a/plugin/samples/HelloAnalytics/proj.android/jni/hellocpp/main.cpp b/plugin/samples/HelloAnalytics/proj.android/jni/hellocpp/main.cpp
deleted file mode 100644
index edb9402593..0000000000
--- a/plugin/samples/HelloAnalytics/proj.android/jni/hellocpp/main.cpp
+++ /dev/null
@@ -1,47 +0,0 @@
-#include "AppDelegate.h"
-#include "platform/android/jni/JniHelper.h"
-#include "PluginJniHelper.h"
-#include
-#include
-
-#include "HelloWorldScene.h"
-
-#define LOG_TAG "main"
-#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__)
-
-using namespace cocos2d;
-
-extern "C"
-{
-
-jint JNI_OnLoad(JavaVM *vm, void *reserved)
-{
- JniHelper::setJavaVM(vm);
- PluginJniHelper::setJavaVM(vm);
-
- return JNI_VERSION_1_4;
-}
-
-void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thiz, jint w, jint h)
-{
- if (!Director::sharedDirector()->getOpenGLView())
- {
- EGLView *view = EGLView::sharedOpenGLView();
- view->setFrameSize(w, h);
-
- AppDelegate *pAppDelegate = new AppDelegate();
- Application::sharedApplication()->run();
- }
- else
- {
- ccDrawInit();
- ccGLInvalidateStateCache();
-
- ShaderCache::sharedShaderCache()->reloadDefaultShaders();
- TextureCache::reloadAllTextures();
- NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
- Director::sharedDirector()->setGLDefaultValues();
- }
-}
-
-}
diff --git a/plugin/samples/HelloAnalytics/proj.android/ndkgdb.sh b/plugin/samples/HelloAnalytics/proj.android/ndkgdb.sh
deleted file mode 100755
index e706c46ad3..0000000000
--- a/plugin/samples/HelloAnalytics/proj.android/ndkgdb.sh
+++ /dev/null
@@ -1,47 +0,0 @@
-APPNAME="HelloAnalytics"
-APP_ANDROID_NAME="org.cocos2dx.helloanalytics"
-
-if [ -z "${SDK_ROOT+aaa}" ]; then
-# ... if SDK_ROOT is not set, use "$HOME/bin/android-sdk"
- SDK_ROOT="$HOME/bin/android-sdk"
-fi
-
-if [ -z "${NDK_ROOT+aaa}" ]; then
-# ... if NDK_ROOT is not set, use "$HOME/bin/android-ndk"
- NDK_ROOT="$HOME/bin/android-ndk"
-fi
-
-if [ -z "${COCOS2DX_ROOT+aaa}" ]; then
-# ... if COCOS2DX_ROOT is not set
-# ... find current working directory
- DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-# ... use paths relative to current directory
- COCOS2DX_ROOT="$DIR/../.."
- APP_ROOT="$DIR/.."
- APP_ANDROID_ROOT="$DIR"
-else
- APP_ROOT="$COCOS2DX_ROOT/$APPNAME"
- APP_ANDROID_ROOT="$COCOS2DX_ROOT/$APPNAME/proj.android"
-fi
-
-echo "NDK_ROOT = $NDK_ROOT"
-echo "SDK_ROOT = $SDK_ROOT"
-echo "COCOS2DX_ROOT = $COCOS2DX_ROOT"
-echo "APP_ROOT = $APP_ROOT"
-echo "APP_ANDROID_ROOT = $APP_ANDROID_ROOT"
-echo "APP_ANDROID_NAME = $APP_ANDROID_NAME"
-
-echo
-echo "Killing and restarting ${APP_ANDROID_NAME}"
-echo
-
-set -x
-
-"${SDK_ROOT}"/platform-tools/adb shell am force-stop "${APP_ANDROID_NAME}"
-
-NDK_MODULE_PATH="${COCOS2DX_ROOT}":"${COCOS2DX_ROOT}"/cocos2dx/platform/third_party/android/prebuilt \
- "${NDK_ROOT}"/ndk-gdb \
- --adb="${SDK_ROOT}"/platform-tools/adb \
- --verbose \
- --start \
- --force
diff --git a/plugin/samples/HelloAnalytics/proj.android/proguard-project.txt b/plugin/samples/HelloAnalytics/proj.android/proguard-project.txt
deleted file mode 100644
index b60ae7ea07..0000000000
--- a/plugin/samples/HelloAnalytics/proj.android/proguard-project.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-# To enable ProGuard in your project, edit project.properties
-# to define the proguard.config property as described in that file.
-#
-# Add project specific ProGuard rules here.
-# By default, the flags in this file are appended to flags specified
-# in ${sdk.dir}/tools/proguard/proguard-android.txt
-# You can edit the include path and order by changing the ProGuard
-# include property in project.properties.
-#
-# For more details, see
-# http://developer.android.com/guide/developing/tools/proguard.html
-
-# Add any project specific keep options here:
-
-# If your project uses WebView with JS, uncomment the following
-# and specify the fully qualified class name to the JavaScript interface
-# class:
-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
-# public *;
-#}
diff --git a/plugin/samples/HelloAnalytics/proj.android/project.properties b/plugin/samples/HelloAnalytics/proj.android/project.properties
deleted file mode 100644
index e4ad2bf52d..0000000000
--- a/plugin/samples/HelloAnalytics/proj.android/project.properties
+++ /dev/null
@@ -1,15 +0,0 @@
-# This file is automatically generated by Android Tools.
-# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
-#
-# This file must be checked in Version Control Systems.
-#
-# To customize properties used by the Ant build system edit
-# "ant.properties", and override values to adapt the script to your
-# project structure.
-#
-# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
-#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
-
-# Project target.
-target=android-10
-android.library.reference.1=../../../../cocos2dx/platform/android/java
diff --git a/plugin/samples/HelloAnalytics/proj.android/res/values/strings.xml b/plugin/samples/HelloAnalytics/proj.android/res/values/strings.xml
deleted file mode 100644
index 5d8f1e706b..0000000000
--- a/plugin/samples/HelloAnalytics/proj.android/res/values/strings.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
- HelloAnalytics
-
diff --git a/plugin/samples/HelloAnalytics/proj.android/src/org/cocos2dx/helloanalytics/HelloAnalytics.java b/plugin/samples/HelloAnalytics/proj.android/src/org/cocos2dx/helloanalytics/HelloAnalytics.java
deleted file mode 100644
index 1ec319368f..0000000000
--- a/plugin/samples/HelloAnalytics/proj.android/src/org/cocos2dx/helloanalytics/HelloAnalytics.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010-2012 cocos2d-x.org
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-****************************************************************************/
-package org.cocos2dx.helloanalytics;
-
-import org.cocos2dx.lib.Cocos2dxActivity;
-import org.cocos2dx.plugin.PluginWrapper;
-
-import android.os.Bundle;
-
-public class HelloAnalytics extends Cocos2dxActivity{
-
- protected void onCreate(Bundle savedInstanceState){
- super.onCreate(savedInstanceState);
- PluginWrapper.init(this);
- }
-
- static {
- System.loadLibrary("game");
- }
-}
diff --git a/plugin/samples/HelloAnalytics/proj.ios/AppController.mm b/plugin/samples/HelloAnalytics/proj.ios/AppController.mm
deleted file mode 100644
index 9ce66c9aa1..0000000000
--- a/plugin/samples/HelloAnalytics/proj.ios/AppController.mm
+++ /dev/null
@@ -1,134 +0,0 @@
-/****************************************************************************
- Copyright (c) 2010 cocos2d-x.org
-
- http://www.cocos2d-x.org
-
- Permission is hereby granted, free of charge, to any person obtaining a copy
- of this software and associated documentation files (the "Software"), to deal
- in the Software without restriction, including without limitation the rights
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- copies of the Software, and to permit persons to whom the Software is
- furnished to do so, subject to the following conditions:
-
- The above copyright notice and this permission notice shall be included in
- all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- THE SOFTWARE.
- ****************************************************************************/
-#import
-#import "AppController.h"
-#import "cocos2d.h"
-#import "EAGLView.h"
-#import "AppDelegate.h"
-
-#import "RootViewController.h"
-
-@implementation AppController
-
-#pragma mark -
-#pragma mark Application lifecycle
-
-// cocos2d application instance
-static AppDelegate s_sharedApplication;
-
-- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
-
- // Override point for customization after application launch.
-
- // Add the view controller's view to the window and display.
- window = [[UIWindow alloc] initWithFrame: [[UIScreen mainScreen] bounds]];
- CCEAGLView *__glView = [CCEAGLView viewWithFrame: [window bounds]
- pixelFormat: kEAGLColorFormatRGBA8
- depthFormat: GL_DEPTH_COMPONENT16
- preserveBackbuffer: NO
- sharegroup:nil
- multiSampling:NO
- numberOfSamples:0];
-
- // Use RootViewController manage CCEAGLView
- viewController = [[RootViewController alloc] initWithNibName:nil bundle:nil];
- viewController.wantsFullScreenLayout = YES;
- viewController.view = __glView;
-
- // Set RootViewController to window
- if ( [[UIDevice currentDevice].systemVersion floatValue] < 6.0)
- {
- // warning: addSubView doesn't work on iOS6
- [window addSubview: viewController.view];
- }
- else
- {
- // use this method on ios6
- [window setRootViewController:viewController];
- }
-
- [window makeKeyAndVisible];
-
- [[UIApplication sharedApplication] setStatusBarHidden: YES];
-
- cocos2d::Application::sharedApplication()->run();
- return YES;
-}
-
-
-- (void)applicationWillResignActive:(UIApplication *)application {
- /*
- Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
- Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
- */
- cocos2d::Director::sharedDirector()->pause();
-}
-
-- (void)applicationDidBecomeActive:(UIApplication *)application {
- /*
- Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
- */
- cocos2d::Director::sharedDirector()->resume();
-}
-
-- (void)applicationDidEnterBackground:(UIApplication *)application {
- /*
- Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
- If your application supports background execution, called instead of applicationWillTerminate: when the user quits.
- */
- cocos2d::Application::sharedApplication()->applicationDidEnterBackground();
-}
-
-- (void)applicationWillEnterForeground:(UIApplication *)application {
- /*
- Called as part of transition from the background to the inactive state: here you can undo many of the changes made on entering the background.
- */
- cocos2d::Application::sharedApplication()->applicationWillEnterForeground();
-}
-
-- (void)applicationWillTerminate:(UIApplication *)application {
- /*
- Called when the application is about to terminate.
- See also applicationDidEnterBackground:.
- */
-}
-
-
-#pragma mark -
-#pragma mark Memory management
-
-- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application {
- /*
- Free up as much memory as possible by purging cached data objects that can be recreated (or reloaded from disk) later.
- */
-}
-
-
-- (void)dealloc {
- [super dealloc];
-}
-
-
-@end
-
diff --git a/plugin/samples/HelloAnalytics/proj.ios/Default-568h@2x.png.REMOVED.git-id b/plugin/samples/HelloAnalytics/proj.ios/Default-568h@2x.png.REMOVED.git-id
deleted file mode 100644
index 8f5838f3a8..0000000000
--- a/plugin/samples/HelloAnalytics/proj.ios/Default-568h@2x.png.REMOVED.git-id
+++ /dev/null
@@ -1 +0,0 @@
-66c6d1cead373b45218424f6a82f370897e443e4
\ No newline at end of file
diff --git a/plugin/samples/HelloAnalytics/proj.ios/Default@2x.png.REMOVED.git-id b/plugin/samples/HelloAnalytics/proj.ios/Default@2x.png.REMOVED.git-id
deleted file mode 100644
index 8843505b20..0000000000
--- a/plugin/samples/HelloAnalytics/proj.ios/Default@2x.png.REMOVED.git-id
+++ /dev/null
@@ -1 +0,0 @@
-84689888a14a2123d2b39f7f2f61be8c15207479
\ No newline at end of file
diff --git a/plugin/samples/HelloAnalytics/proj.ios/HelloAnalytics.xcodeproj/project.pbxproj b/plugin/samples/HelloAnalytics/proj.ios/HelloAnalytics.xcodeproj/project.pbxproj
deleted file mode 100755
index eff302a4ad..0000000000
--- a/plugin/samples/HelloAnalytics/proj.ios/HelloAnalytics.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,582 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 46;
- objects = {
-
-/* Begin PBXBuildFile section */
- 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; };
- 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; };
- 288765A50DF7441C002DB57D /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 288765A40DF7441C002DB57D /* CoreGraphics.framework */; };
- BF1373EF128A898400D9F789 /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF492D4B1289302400A09262 /* OpenGLES.framework */; };
- BF1373F0128A899500D9F789 /* libxml2.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = BF492C21128924A800A09262 /* libxml2.dylib */; };
- BF1373F1128A899E00D9F789 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = BF492B6912891AC600A09262 /* libz.dylib */; };
- BF13742F128A8E6A00D9F789 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF137426128A8E4600D9F789 /* QuartzCore.framework */; };
- BF365AA812A103F70050DCF4 /* AppController.mm in Sources */ = {isa = PBXBuildFile; fileRef = BF365AA712A103F70050DCF4 /* AppController.mm */; };
- BF4DE6AD138BB89600CF907D /* RootViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = BF4DE6AC138BB89600CF907D /* RootViewController.mm */; };
- D446FD79161028E9000ADA7B /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = D446FD78161028E9000ADA7B /* Default.png */; };
- D446FD7B161028ED000ADA7B /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = D446FD7A161028ED000ADA7B /* Default@2x.png */; };
- D446FD7D161028F4000ADA7B /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = D446FD7C161028F4000ADA7B /* Default-568h@2x.png */; };
- D4ABB4B313B4395300552E6E /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = D4ABB4B213B4395300552E6E /* main.m */; };
- D4EF94E815BD319200D803EB /* Icon-57.png in Resources */ = {isa = PBXBuildFile; fileRef = D4EF94E715BD319200D803EB /* Icon-57.png */; };
- D4EF94EA15BD319500D803EB /* Icon-114.png in Resources */ = {isa = PBXBuildFile; fileRef = D4EF94E915BD319500D803EB /* Icon-114.png */; };
- D4EF94EC15BD319B00D803EB /* Icon-72.png in Resources */ = {isa = PBXBuildFile; fileRef = D4EF94EB15BD319B00D803EB /* Icon-72.png */; };
- D4EF94EE15BD319D00D803EB /* Icon-144.png in Resources */ = {isa = PBXBuildFile; fileRef = D4EF94ED15BD319D00D803EB /* Icon-144.png */; };
- FA0CB877168D2F5400E36B11 /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FA0CB873168D2F5400E36B11 /* AppDelegate.cpp */; };
- FA0CB878168D2F5400E36B11 /* HelloWorldScene.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FA0CB875168D2F5400E36B11 /* HelloWorldScene.cpp */; };
- FA0CB87E168D2FB200E36B11 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FA0CB87D168D2FB200E36B11 /* SystemConfiguration.framework */; };
- FA0CB8A6168D31EA00E36B11 /* CloseNormal.png in Resources */ = {isa = PBXBuildFile; fileRef = FA0CB8A3168D31EA00E36B11 /* CloseNormal.png */; };
- FA0CB8A7168D31EA00E36B11 /* CloseSelected.png in Resources */ = {isa = PBXBuildFile; fileRef = FA0CB8A4168D31EA00E36B11 /* CloseSelected.png */; };
- FA3FC131168D6AF400F56319 /* libPluginProtocol.a in Frameworks */ = {isa = PBXBuildFile; fileRef = FA3FC12E168D6ADD00F56319 /* libPluginProtocol.a */; };
- FA7C6D1817251CD5008A0ECC /* libcocos2dx.a in Frameworks */ = {isa = PBXBuildFile; fileRef = FA7C6CF517251BEA008A0ECC /* libcocos2dx.a */; };
- FA7C6D1917251CD5008A0ECC /* libPluginFlurry.a in Frameworks */ = {isa = PBXBuildFile; fileRef = FA7C6D0817251C10008A0ECC /* libPluginFlurry.a */; };
- FA7C6D1A17251CD5008A0ECC /* libPluginUmeng.a in Frameworks */ = {isa = PBXBuildFile; fileRef = FA7C6D1117251C17008A0ECC /* libPluginUmeng.a */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- FA3FC12D168D6ADD00F56319 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = FA3FC126168D6ADC00F56319 /* PluginProtocol.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = FA09A321168ADBC2008C1C7B;
- remoteInfo = PluginProtocol;
- };
- FA3FC12F168D6AEB00F56319 /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = FA3FC126168D6ADC00F56319 /* PluginProtocol.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = FA09A320168ADBC2008C1C7B;
- remoteInfo = PluginProtocol;
- };
- FA7C6CF417251BEA008A0ECC /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = FA7C6CED17251BEA008A0ECC /* cocos2dx.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 1551A33F158F2AB200E66CFE;
- remoteInfo = cocos2dx;
- };
- FA7C6D0717251C10008A0ECC /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = FA7C6D0017251C10008A0ECC /* PluginFlurry.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = FA09A372168AFD41008C1C7B;
- remoteInfo = PluginFlurry;
- };
- FA7C6D1017251C17008A0ECC /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = FA7C6D0917251C16008A0ECC /* PluginUmeng.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = FA09A301168ADAEC008C1C7B;
- remoteInfo = PluginUmeng;
- };
- FA7C6D1217251C30008A0ECC /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = FA7C6D0017251C10008A0ECC /* PluginFlurry.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = FA09A371168AFD41008C1C7B;
- remoteInfo = PluginFlurry;
- };
- FA7C6D1417251C30008A0ECC /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = FA7C6D0917251C16008A0ECC /* PluginUmeng.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = FA09A300168ADAEC008C1C7B;
- remoteInfo = PluginUmeng;
- };
- FA7C6D1617251C30008A0ECC /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = FA7C6CED17251BEA008A0ECC /* cocos2dx.xcodeproj */;
- proxyType = 1;
- remoteGlobalIDString = 1551A33E158F2AB200E66CFE;
- remoteInfo = cocos2dx;
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 1D30AB110D05D00D00671497 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
- 1D6058910D05DD3D006BFB54 /* HelloAnalytics.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HelloAnalytics.app; sourceTree = BUILT_PRODUCTS_DIR; };
- 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
- 288765A40DF7441C002DB57D /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
- 781C33B11547F06B00633F88 /* OpenAL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenAL.framework; path = System/Library/Frameworks/OpenAL.framework; sourceTree = SDKROOT; };
- 781C33B31547F06B00633F88 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; };
- 781C33B51547F06B00633F88 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; };
- BF137426128A8E4600D9F789 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
- BF365AA612A103F70050DCF4 /* AppController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppController.h; sourceTree = ""; };
- BF365AA712A103F70050DCF4 /* AppController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = AppController.mm; sourceTree = ""; };
- BF492B6912891AC600A09262 /* libz.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libz.dylib; path = usr/lib/libz.dylib; sourceTree = SDKROOT; };
- BF492C21128924A800A09262 /* libxml2.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libxml2.dylib; path = usr/lib/libxml2.dylib; sourceTree = SDKROOT; };
- BF492D4B1289302400A09262 /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = System/Library/Frameworks/OpenGLES.framework; sourceTree = SDKROOT; };
- BF4DE6AB138BB89600CF907D /* RootViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RootViewController.h; sourceTree = ""; };
- BF4DE6AC138BB89600CF907D /* RootViewController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RootViewController.mm; sourceTree = ""; };
- D446FD78161028E9000ADA7B /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Default.png; path = ../proj.ios/Default.png; sourceTree = ""; };
- D446FD7A161028ED000ADA7B /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Default@2x.png"; path = "../proj.ios/Default@2x.png"; sourceTree = ""; };
- D446FD7C161028F4000ADA7B /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Default-568h@2x.png"; path = "../proj.ios/Default-568h@2x.png"; sourceTree = ""; };
- D4ABB4B213B4395300552E6E /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
- D4EF94E715BD319200D803EB /* Icon-57.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-57.png"; path = "../proj.ios/Icon-57.png"; sourceTree = ""; };
- D4EF94E915BD319500D803EB /* Icon-114.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-114.png"; path = "../proj.ios/Icon-114.png"; sourceTree = ""; };
- D4EF94EB15BD319B00D803EB /* Icon-72.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-72.png"; path = "../proj.ios/Icon-72.png"; sourceTree = ""; };
- D4EF94ED15BD319D00D803EB /* Icon-144.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-144.png"; path = "../proj.ios/Icon-144.png"; sourceTree = ""; };
- FA0CB873168D2F5400E36B11 /* AppDelegate.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AppDelegate.cpp; sourceTree = ""; };
- FA0CB874168D2F5400E36B11 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
- FA0CB875168D2F5400E36B11 /* HelloWorldScene.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = HelloWorldScene.cpp; sourceTree = ""; };
- FA0CB876168D2F5400E36B11 /* HelloWorldScene.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HelloWorldScene.h; sourceTree = ""; };
- FA0CB87D168D2FB200E36B11 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
- FA0CB8A3168D31EA00E36B11 /* CloseNormal.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = CloseNormal.png; sourceTree = ""; };
- FA0CB8A4168D31EA00E36B11 /* CloseSelected.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = CloseSelected.png; sourceTree = ""; };
- FA3FC126168D6ADC00F56319 /* PluginProtocol.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = PluginProtocol.xcodeproj; path = ../../../protocols/proj.ios/PluginProtocol.xcodeproj; sourceTree = ""; };
- FA7C6CED17251BEA008A0ECC /* cocos2dx.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = cocos2dx.xcodeproj; path = ../../../../cocos2dx/proj.ios/cocos2dx.xcodeproj; sourceTree = ""; };
- FA7C6D0017251C10008A0ECC /* PluginFlurry.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = PluginFlurry.xcodeproj; path = ../../../plugins/flurry/proj.ios/PluginFlurry.xcodeproj; sourceTree = ""; };
- FA7C6D0917251C16008A0ECC /* PluginUmeng.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = PluginUmeng.xcodeproj; path = ../../../plugins/umeng/proj.ios/PluginUmeng.xcodeproj; sourceTree = ""; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 1D60588F0D05DD3D006BFB54 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- FA7C6D1817251CD5008A0ECC /* libcocos2dx.a in Frameworks */,
- FA7C6D1917251CD5008A0ECC /* libPluginFlurry.a in Frameworks */,
- FA7C6D1A17251CD5008A0ECC /* libPluginUmeng.a in Frameworks */,
- FA3FC131168D6AF400F56319 /* libPluginProtocol.a in Frameworks */,
- FA0CB87E168D2FB200E36B11 /* SystemConfiguration.framework in Frameworks */,
- 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */,
- 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */,
- 288765A50DF7441C002DB57D /* CoreGraphics.framework in Frameworks */,
- BF1373EF128A898400D9F789 /* OpenGLES.framework in Frameworks */,
- BF1373F0128A899500D9F789 /* libxml2.dylib in Frameworks */,
- BF1373F1128A899E00D9F789 /* libz.dylib in Frameworks */,
- BF13742F128A8E6A00D9F789 /* QuartzCore.framework in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 19C28FACFE9D520D11CA2CBB /* Products */ = {
- isa = PBXGroup;
- children = (
- 1D6058910D05DD3D006BFB54 /* HelloAnalytics.app */,
- );
- name = Products;
- sourceTree = "";
- };
- 29B97314FDCFA39411CA2CEA /* CustomTemplate */ = {
- isa = PBXGroup;
- children = (
- FA7C6D0917251C16008A0ECC /* PluginUmeng.xcodeproj */,
- FA7C6D0017251C10008A0ECC /* PluginFlurry.xcodeproj */,
- FA7C6CED17251BEA008A0ECC /* cocos2dx.xcodeproj */,
- FA3FC126168D6ADC00F56319 /* PluginProtocol.xcodeproj */,
- FA0CB872168D2F5400E36B11 /* Classes */,
- 29B97323FDCFA39411CA2CEA /* Frameworks */,
- BF5681CC1313A84D0055EEAC /* ios */,
- 19C28FACFE9D520D11CA2CBB /* Products */,
- 784521C214EBA449009D533B /* Resources */,
- );
- name = CustomTemplate;
- sourceTree = "";
- };
- 29B97323FDCFA39411CA2CEA /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- FA0CB87D168D2FB200E36B11 /* SystemConfiguration.framework */,
- BF492B6912891AC600A09262 /* libz.dylib */,
- BF137426128A8E4600D9F789 /* QuartzCore.framework */,
- BF492D4B1289302400A09262 /* OpenGLES.framework */,
- BF492C21128924A800A09262 /* libxml2.dylib */,
- 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */,
- 1D30AB110D05D00D00671497 /* Foundation.framework */,
- 288765A40DF7441C002DB57D /* CoreGraphics.framework */,
- 781C33B11547F06B00633F88 /* OpenAL.framework */,
- 781C33B31547F06B00633F88 /* AudioToolbox.framework */,
- 781C33B51547F06B00633F88 /* AVFoundation.framework */,
- );
- name = Frameworks;
- sourceTree = "";
- };
- 784521C214EBA449009D533B /* Resources */ = {
- isa = PBXGroup;
- children = (
- FA0CB8A3168D31EA00E36B11 /* CloseNormal.png */,
- FA0CB8A4168D31EA00E36B11 /* CloseSelected.png */,
- D4EF94ED15BD319D00D803EB /* Icon-144.png */,
- D4EF94EB15BD319B00D803EB /* Icon-72.png */,
- D4EF94E915BD319500D803EB /* Icon-114.png */,
- D4EF94E715BD319200D803EB /* Icon-57.png */,
- D446FD7C161028F4000ADA7B /* Default-568h@2x.png */,
- D446FD7A161028ED000ADA7B /* Default@2x.png */,
- D446FD78161028E9000ADA7B /* Default.png */,
- );
- name = Resources;
- path = ../Resources;
- sourceTree = "";
- };
- BF5681CC1313A84D0055EEAC /* ios */ = {
- isa = PBXGroup;
- children = (
- D4ABB4B213B4395300552E6E /* main.m */,
- BF365AA612A103F70050DCF4 /* AppController.h */,
- BF365AA712A103F70050DCF4 /* AppController.mm */,
- BF4DE6AB138BB89600CF907D /* RootViewController.h */,
- BF4DE6AC138BB89600CF907D /* RootViewController.mm */,
- );
- name = ios;
- sourceTree = "";
- };
- FA0CB872168D2F5400E36B11 /* Classes */ = {
- isa = PBXGroup;
- children = (
- FA0CB873168D2F5400E36B11 /* AppDelegate.cpp */,
- FA0CB874168D2F5400E36B11 /* AppDelegate.h */,
- FA0CB875168D2F5400E36B11 /* HelloWorldScene.cpp */,
- FA0CB876168D2F5400E36B11 /* HelloWorldScene.h */,
- );
- name = Classes;
- path = ../Classes;
- sourceTree = "";
- };
- FA3FC127168D6ADC00F56319 /* Products */ = {
- isa = PBXGroup;
- children = (
- FA3FC12E168D6ADD00F56319 /* libPluginProtocol.a */,
- );
- name = Products;
- sourceTree = "";
- };
- FA7C6CEE17251BEA008A0ECC /* Products */ = {
- isa = PBXGroup;
- children = (
- FA7C6CF517251BEA008A0ECC /* libcocos2dx.a */,
- );
- name = Products;
- sourceTree = "";
- };
- FA7C6D0117251C10008A0ECC /* Products */ = {
- isa = PBXGroup;
- children = (
- FA7C6D0817251C10008A0ECC /* libPluginFlurry.a */,
- );
- name = Products;
- sourceTree = "";
- };
- FA7C6D0A17251C16008A0ECC /* Products */ = {
- isa = PBXGroup;
- children = (
- FA7C6D1117251C17008A0ECC /* libPluginUmeng.a */,
- );
- name = Products;
- sourceTree = "";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 1D6058900D05DD3D006BFB54 /* HelloAnalytics */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "HelloAnalytics" */;
- buildPhases = (
- 1D60588D0D05DD3D006BFB54 /* Resources */,
- 1D60588E0D05DD3D006BFB54 /* Sources */,
- 1D60588F0D05DD3D006BFB54 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- FA7C6D1317251C30008A0ECC /* PBXTargetDependency */,
- FA7C6D1517251C30008A0ECC /* PBXTargetDependency */,
- FA7C6D1717251C30008A0ECC /* PBXTargetDependency */,
- FA3FC130168D6AEB00F56319 /* PBXTargetDependency */,
- );
- name = HelloAnalytics;
- productName = HelloWorld;
- productReference = 1D6058910D05DD3D006BFB54 /* HelloAnalytics.app */;
- productType = "com.apple.product-type.application";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 29B97313FDCFA39411CA2CEA /* Project object */ = {
- isa = PBXProject;
- attributes = {
- LastUpgradeCheck = 0450;
- };
- buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "HelloAnalytics" */;
- compatibilityVersion = "Xcode 3.2";
- developmentRegion = English;
- hasScannedForEncodings = 1;
- knownRegions = (
- English,
- Japanese,
- French,
- German,
- );
- mainGroup = 29B97314FDCFA39411CA2CEA /* CustomTemplate */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = FA7C6CEE17251BEA008A0ECC /* Products */;
- ProjectRef = FA7C6CED17251BEA008A0ECC /* cocos2dx.xcodeproj */;
- },
- {
- ProductGroup = FA7C6D0117251C10008A0ECC /* Products */;
- ProjectRef = FA7C6D0017251C10008A0ECC /* PluginFlurry.xcodeproj */;
- },
- {
- ProductGroup = FA3FC127168D6ADC00F56319 /* Products */;
- ProjectRef = FA3FC126168D6ADC00F56319 /* PluginProtocol.xcodeproj */;
- },
- {
- ProductGroup = FA7C6D0A17251C16008A0ECC /* Products */;
- ProjectRef = FA7C6D0917251C16008A0ECC /* PluginUmeng.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 1D6058900D05DD3D006BFB54 /* HelloAnalytics */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- FA3FC12E168D6ADD00F56319 /* libPluginProtocol.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = libPluginProtocol.a;
- remoteRef = FA3FC12D168D6ADD00F56319 /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- FA7C6CF517251BEA008A0ECC /* libcocos2dx.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = libcocos2dx.a;
- remoteRef = FA7C6CF417251BEA008A0ECC /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- FA7C6D0817251C10008A0ECC /* libPluginFlurry.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = libPluginFlurry.a;
- remoteRef = FA7C6D0717251C10008A0ECC /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- FA7C6D1117251C17008A0ECC /* libPluginUmeng.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = libPluginUmeng.a;
- remoteRef = FA7C6D1017251C17008A0ECC /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 1D60588D0D05DD3D006BFB54 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- D4EF94E815BD319200D803EB /* Icon-57.png in Resources */,
- D4EF94EA15BD319500D803EB /* Icon-114.png in Resources */,
- D4EF94EC15BD319B00D803EB /* Icon-72.png in Resources */,
- D4EF94EE15BD319D00D803EB /* Icon-144.png in Resources */,
- D446FD79161028E9000ADA7B /* Default.png in Resources */,
- D446FD7B161028ED000ADA7B /* Default@2x.png in Resources */,
- D446FD7D161028F4000ADA7B /* Default-568h@2x.png in Resources */,
- FA0CB8A6168D31EA00E36B11 /* CloseNormal.png in Resources */,
- FA0CB8A7168D31EA00E36B11 /* CloseSelected.png in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 1D60588E0D05DD3D006BFB54 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- BF365AA812A103F70050DCF4 /* AppController.mm in Sources */,
- BF4DE6AD138BB89600CF907D /* RootViewController.mm in Sources */,
- D4ABB4B313B4395300552E6E /* main.m in Sources */,
- FA0CB877168D2F5400E36B11 /* AppDelegate.cpp in Sources */,
- FA0CB878168D2F5400E36B11 /* HelloWorldScene.cpp in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXTargetDependency section */
- FA3FC130168D6AEB00F56319 /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = PluginProtocol;
- targetProxy = FA3FC12F168D6AEB00F56319 /* PBXContainerItemProxy */;
- };
- FA7C6D1317251C30008A0ECC /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = PluginFlurry;
- targetProxy = FA7C6D1217251C30008A0ECC /* PBXContainerItemProxy */;
- };
- FA7C6D1517251C30008A0ECC /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = PluginUmeng;
- targetProxy = FA7C6D1417251C30008A0ECC /* PBXContainerItemProxy */;
- };
- FA7C6D1717251C30008A0ECC /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- name = cocos2dx;
- targetProxy = FA7C6D1617251C30008A0ECC /* PBXContainerItemProxy */;
- };
-/* End PBXTargetDependency section */
-
-/* Begin XCBuildConfiguration section */
- 1D6058940D05DD3E006BFB54 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
- CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CODE_SIGN_IDENTITY = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_INLINES_ARE_PRIVATE_EXTERN = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = HelloAnalytics_Prefix.pch;
- GCC_PREPROCESSOR_DEFINITIONS = (
- USE_FILE32API,
- CC_TARGET_OS_IPHONE,
- "COCOS2D_DEBUG=1",
- );
- GCC_PREPROCESSOR_DEFINITIONS_NOT_USED_IN_PRECOMPS = "";
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_VERSION = "";
- HEADER_SEARCH_PATHS = (
- "\"$(SDKROOT)/usr/include/libxml2/\"",
- "\"$(SRCROOT)/../../../../cocos2dx/include\"",
- "\"$(SRCROOT)/../../../../cocos2dx\"",
- "\"$(SRCROOT)/../../../../cocos2dx/platform/ios\"",
- "\"$(SRCROOT)/../../../../cocos2dx/kazmath/include\"",
- "\"$(SRCROOT)/../../../../external/chipmunk/include/chipmunk\"",
- "\"$(SRCROOT)/../../../protocols/include\"",
- "\"$(SRCROOT)/../../../plugins/flurry/include\"",
- "\"$(SRCROOT)/../../../plugins/umeng/include\"",
- );
- INFOPLIST_FILE = "HelloAnalytics-Info.plist";
- IPHONEOS_DEPLOYMENT_TARGET = 5.0;
- LIBRARY_SEARCH_PATHS = (
- "$(inherited)",
- "\"$(SRCROOT)/../../../plugins/flurry/platform/ios\"",
- "\"$(SRCROOT)/../../../plugins/umeng/platform/ios\"",
- );
- "OTHER_LDFLAGS[arch=*]" = "-ObjC";
- PRODUCT_NAME = HelloAnalytics;
- PROVISIONING_PROFILE = "";
- SDKROOT = iphoneos;
- TARGETED_DEVICE_FAMILY = "1,2";
- VALID_ARCHS = "armv6 armv7 i386";
- };
- name = Debug;
- };
- 1D6058950D05DD3E006BFB54 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
- CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CODE_SIGN_IDENTITY = "iPhone Developer";
- COPY_PHASE_STRIP = YES;
- GCC_INLINES_ARE_PRIVATE_EXTERN = NO;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = HelloAnalytics_Prefix.pch;
- GCC_PREPROCESSOR_DEFINITIONS = (
- USE_FILE32API,
- CC_TARGET_OS_IPHONE,
- );
- GCC_PREPROCESSOR_DEFINITIONS_NOT_USED_IN_PRECOMPS = "";
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_VERSION = "";
- HEADER_SEARCH_PATHS = (
- "\"$(SDKROOT)/usr/include/libxml2/\"",
- "\"$(SRCROOT)/../../../../cocos2dx/include\"",
- "\"$(SRCROOT)/../../../../cocos2dx\"",
- "\"$(SRCROOT)/../../../../cocos2dx/platform/ios\"",
- "\"$(SRCROOT)/../../../../cocos2dx/kazmath/include\"",
- "\"$(SRCROOT)/../../../../external/chipmunk/include/chipmunk\"",
- "\"$(SRCROOT)/../../../protocols/include\"",
- "\"$(SRCROOT)/../../../plugins/flurry/include\"",
- "\"$(SRCROOT)/../../../plugins/umeng/include\"",
- );
- INFOPLIST_FILE = "HelloAnalytics-Info.plist";
- IPHONEOS_DEPLOYMENT_TARGET = 5.0;
- LIBRARY_SEARCH_PATHS = (
- "$(inherited)",
- "\"$(SRCROOT)/../../../plugins/flurry/platform/ios\"",
- "\"$(SRCROOT)/../../../plugins/umeng/platform/ios\"",
- );
- "OTHER_LDFLAGS[arch=*]" = "-ObjC";
- PRODUCT_NAME = HelloAnalytics;
- PROVISIONING_PROFILE = "";
- SDKROOT = iphoneos;
- TARGETED_DEVICE_FAMILY = "1,2";
- VALIDATE_PRODUCT = YES;
- VALID_ARCHS = "armv6 armv7 i386";
- };
- name = Release;
- };
- C01FCF4F08A954540054247B /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
- CLANG_CXX_LIBRARY = "libc++";
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- GCC_C_LANGUAGE_STANDARD = c99;
- GCC_VERSION = "";
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- "INFOPLIST_PREFIX_HEADER[sdk=*]" = "";
- SDKROOT = iphoneos;
- VALID_ARCHS = "armv6 armv7 i386";
- };
- name = Debug;
- };
- C01FCF5008A954540054247B /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
- CLANG_CXX_LIBRARY = "libc++";
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- GCC_C_LANGUAGE_STANDARD = c99;
- GCC_VERSION = "";
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
- SDKROOT = iphoneos;
- VALID_ARCHS = "armv6 armv7 i386";
- };
- name = Release;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "HelloAnalytics" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 1D6058940D05DD3E006BFB54 /* Debug */,
- 1D6058950D05DD3E006BFB54 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- C01FCF4E08A954540054247B /* Build configuration list for PBXProject "HelloAnalytics" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- C01FCF4F08A954540054247B /* Debug */,
- C01FCF5008A954540054247B /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
-/* End XCConfigurationList section */
- };
- rootObject = 29B97313FDCFA39411CA2CEA /* Project object */;
-}
diff --git a/plugin/samples/HelloAnalytics/proj.ios/HelloAnalytics_Prefix.pch b/plugin/samples/HelloAnalytics/proj.ios/HelloAnalytics_Prefix.pch
deleted file mode 100755
index b8914281d2..0000000000
--- a/plugin/samples/HelloAnalytics/proj.ios/HelloAnalytics_Prefix.pch
+++ /dev/null
@@ -1,8 +0,0 @@
-//
-// Prefix header for all source files of the 'HelloWorld' target in the 'HelloWorld' project
-//
-
-#ifdef __OBJC__
- #import
- #import
-#endif
diff --git a/plugin/samples/HelloAnalytics/proj.ios/RootViewController.mm b/plugin/samples/HelloAnalytics/proj.ios/RootViewController.mm
deleted file mode 100755
index ae2156e3f0..0000000000
--- a/plugin/samples/HelloAnalytics/proj.ios/RootViewController.mm
+++ /dev/null
@@ -1,94 +0,0 @@
-/****************************************************************************
- Copyright (c) 2010-2011 cocos2d-x.org
- Copyright (c) 2010 Ricardo Quesada
-
- http://www.cocos2d-x.org
-
- Permission is hereby granted, free of charge, to any person obtaining a copy
- of this software and associated documentation files (the "Software"), to deal
- in the Software without restriction, including without limitation the rights
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- copies of the Software, and to permit persons to whom the Software is
- furnished to do so, subject to the following conditions:
-
- The above copyright notice and this permission notice shall be included in
- all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- THE SOFTWARE.
- ****************************************************************************/
-
-#import "RootViewController.h"
-
-
-@implementation RootViewController
-
-/*
- // The designated initializer. Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
-- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
- if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])) {
- // Custom initialization
- }
- return self;
-}
-*/
-
-/*
-// Implement loadView to create a view hierarchy programmatically, without using a nib.
-- (void)loadView {
-}
-*/
-
-/*
-// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
-- (void)viewDidLoad {
- [super viewDidLoad];
-}
-
-*/
-// Override to allow orientations other than the default portrait orientation.
-// This method is deprecated on ios6
-- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
- return UIInterfaceOrientationIsPortrait( interfaceOrientation );
-}
-
-// For ios6.0 and higher, use supportedInterfaceOrientations & shouldAutorotate instead
-- (NSUInteger) supportedInterfaceOrientations
-{
-#ifdef __IPHONE_6_0
- return UIInterfaceOrientationMaskAllButUpsideDown;
-#endif
-}
-
-- (BOOL) shouldAutorotate {
- return YES;
-}
-
-
-
-
-- (void)didReceiveMemoryWarning {
- // Releases the view if it doesn't have a superview.
- [super didReceiveMemoryWarning];
-
- // Release any cached data, images, etc that aren't in use.
-}
-
-- (void)viewDidUnload {
- [super viewDidUnload];
- // Release any retained subviews of the main view.
- // e.g. self.myOutlet = nil;
-}
-
-
-- (void)dealloc {
- [super dealloc];
-}
-
-
-@end
diff --git a/plugin/samples/HelloAnalytics/proj.ios/main.m b/plugin/samples/HelloAnalytics/proj.ios/main.m
deleted file mode 100755
index bd2771a33d..0000000000
--- a/plugin/samples/HelloAnalytics/proj.ios/main.m
+++ /dev/null
@@ -1,33 +0,0 @@
-/****************************************************************************
-Copyright (c) 2012-2013 cocos2d-x.org
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-****************************************************************************/
-
-#import
-
-int main(int argc, char *argv[]) {
-
- NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
- int retVal = UIApplicationMain(argc, argv, nil, @"AppController");
- [pool release];
- return retVal;
-}
diff --git a/plugin/samples/HelloIAP/Classes/AppDelegate.cpp b/plugin/samples/HelloIAP/Classes/AppDelegate.cpp
deleted file mode 100644
index abbe0d4951..0000000000
--- a/plugin/samples/HelloIAP/Classes/AppDelegate.cpp
+++ /dev/null
@@ -1,83 +0,0 @@
-/****************************************************************************
-Copyright (c) 2012-2013 cocos2d-x.org
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-****************************************************************************/
-#include "AppDelegate.h"
-#include "cocos2d.h"
-#include "HelloWorldScene.h"
-#include "PluginManager.h"
-#include "MyPurchase.h"
-
-using namespace cocos2d::plugin;
-USING_NS_CC;
-
-AppDelegate::AppDelegate()
-{
-
-}
-
-AppDelegate::~AppDelegate()
-{
-
-}
-
-bool AppDelegate::applicationDidFinishLaunching()
-{
- MyPurchase::sharedPurchase()->loadIAPPlugin();
-
- // initialize director
- Director *pDirector = Director::sharedDirector();
- pDirector->setOpenGLView(EGLView::sharedOpenGLView());
- EGLView* pEGLView = EGLView::sharedOpenGLView();
- pEGLView->setDesignResolutionSize(960.0f, 640.0f, kResolutionNoBorder);
- // turn on display FPS
- pDirector->setDisplayStats(true);
-
- // set FPS. the default value is 1.0/60 if you don't call this
- pDirector->setAnimationInterval(1.0 / 60);
-
- // create a scene. it's an autorelease object
- Scene *pScene = HelloWorld::scene();
-
- // run
- pDirector->runWithScene(pScene);
-
- return true;
-}
-
-// This function will be called when the app is inactive. When comes a phone call,it's be invoked too
-void AppDelegate::applicationDidEnterBackground()
-{
- Director::sharedDirector()->pause();
-
- // if you use SimpleAudioEngine, it must be pause
- // SimpleAudioEngine::sharedEngine()->pauseBackgroundMusic();
-}
-
-// this function will be called when the app is active again
-void AppDelegate::applicationWillEnterForeground()
-{
- Director::sharedDirector()->resume();
-
- // if you use SimpleAudioEngine, it must resume here
- // SimpleAudioEngine::sharedEngine()->resumeBackgroundMusic();
-}
diff --git a/plugin/samples/HelloIAP/Classes/AppDelegate.h b/plugin/samples/HelloIAP/Classes/AppDelegate.h
deleted file mode 100644
index 946b4fca90..0000000000
--- a/plugin/samples/HelloIAP/Classes/AppDelegate.h
+++ /dev/null
@@ -1,62 +0,0 @@
-/****************************************************************************
-Copyright (c) 2012-2013 cocos2d-x.org
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-****************************************************************************/
-#ifndef _APP_DELEGATE_H_
-#define _APP_DELEGATE_H_
-
-#include "CCApplication.h"
-
-/**
-@brief The cocos2d Application.
-
-The reason for implement as private inheritance is to hide some interface call by Director.
-*/
-class AppDelegate : private cocos2d::Application
-{
-public:
- AppDelegate();
- virtual ~AppDelegate();
-
- /**
- @brief Implement Director and Scene init code here.
- @return true Initialize success, app continue.
- @return false Initialize failed, app terminate.
- */
- virtual bool applicationDidFinishLaunching();
-
- /**
- @brief The function be called when the application enter background
- @param the pointer of the application
- */
- virtual void applicationDidEnterBackground();
-
- /**
- @brief The function be called when the application enter foreground
- @param the pointer of the application
- */
- virtual void applicationWillEnterForeground();
-
- static void loadAnalyticsPlugin();
-};
-
-#endif // _APP_DELEGATE_H_
diff --git a/plugin/samples/HelloIAP/Resources/alipay_plugin.apk.REMOVED.git-id b/plugin/samples/HelloIAP/Resources/alipay_plugin.apk.REMOVED.git-id
deleted file mode 100644
index e7115f0d77..0000000000
--- a/plugin/samples/HelloIAP/Resources/alipay_plugin.apk.REMOVED.git-id
+++ /dev/null
@@ -1 +0,0 @@
-db46ceaf2554c8d9e48cdaec3a4cdf5519bb8896
\ No newline at end of file
diff --git a/plugin/samples/HelloIAP/Resources/background.png.REMOVED.git-id b/plugin/samples/HelloIAP/Resources/background.png.REMOVED.git-id
deleted file mode 100644
index 15b10523a1..0000000000
--- a/plugin/samples/HelloIAP/Resources/background.png.REMOVED.git-id
+++ /dev/null
@@ -1 +0,0 @@
-b2e4ae6ce873ef4a74cf0230693ef26e939d2778
\ No newline at end of file
diff --git a/plugin/samples/HelloIAP/proj.android/.classpath b/plugin/samples/HelloIAP/proj.android/.classpath
deleted file mode 100644
index 2519c88ef3..0000000000
--- a/plugin/samples/HelloIAP/proj.android/.classpath
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugin/samples/HelloIAP/proj.android/.project b/plugin/samples/HelloIAP/proj.android/.project
deleted file mode 100644
index 7bae797dfe..0000000000
--- a/plugin/samples/HelloIAP/proj.android/.project
+++ /dev/null
@@ -1,45 +0,0 @@
-
-
- HelloIAP
-
-
-
-
-
- com.android.ide.eclipse.adt.ResourceManagerBuilder
-
-
-
-
- com.android.ide.eclipse.adt.PreCompilerBuilder
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- com.android.ide.eclipse.adt.ApkBuilder
-
-
-
-
-
- com.android.ide.eclipse.adt.AndroidNature
- org.eclipse.jdt.core.javanature
-
-
-
- Classes
- 2
- PARENT-1-PROJECT_LOC/Classes
-
-
- publish
- 2
- PARENT-3-PROJECT_LOC/publish
-
-
-
diff --git a/plugin/samples/HelloIAP/proj.android/AndroidManifest.xml b/plugin/samples/HelloIAP/proj.android/AndroidManifest.xml
deleted file mode 100644
index 0c9510d06c..0000000000
--- a/plugin/samples/HelloIAP/proj.android/AndroidManifest.xml
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugin/samples/HelloIAP/proj.android/ant.properties b/plugin/samples/HelloIAP/proj.android/ant.properties
deleted file mode 100644
index b0971e891e..0000000000
--- a/plugin/samples/HelloIAP/proj.android/ant.properties
+++ /dev/null
@@ -1,17 +0,0 @@
-# This file is used to override default values used by the Ant build system.
-#
-# This file must be checked into Version Control Systems, as it is
-# integral to the build system of your project.
-
-# This file is only used by the Ant script.
-
-# You can use this to override default values such as
-# 'source.dir' for the location of your java source folder and
-# 'out.dir' for the location of your output folder.
-
-# You can also use it define how the release builds are signed by declaring
-# the following properties:
-# 'key.store' for the location of your keystore and
-# 'key.alias' for the name of the key to use.
-# The password will be asked during the build when you use the 'release' target.
-
diff --git a/plugin/samples/HelloIAP/proj.android/build.xml b/plugin/samples/HelloIAP/proj.android/build.xml
deleted file mode 100644
index 80abad0ab0..0000000000
--- a/plugin/samples/HelloIAP/proj.android/build.xml
+++ /dev/null
@@ -1,92 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugin/samples/HelloIAP/proj.android/build_native.sh b/plugin/samples/HelloIAP/proj.android/build_native.sh
deleted file mode 100755
index 7b388a1442..0000000000
--- a/plugin/samples/HelloIAP/proj.android/build_native.sh
+++ /dev/null
@@ -1,81 +0,0 @@
-APPNAME="HelloAnalytics"
-
-# options
-
-buildexternalsfromsource=
-
-usage(){
-cat << EOF
-usage: $0 [options]
-
-Build C/C++ code for $APPNAME using Android NDK
-
-OPTIONS:
--s Build externals from source
--h this help
-EOF
-}
-
-while getopts "sh" OPTION; do
-case "$OPTION" in
-s)
-buildexternalsfromsource=1
-;;
-h)
-usage
-exit 0
-;;
-esac
-done
-
-# paths
-
-if [ -z "${NDK_ROOT+aaa}" ];then
-echo "please define NDK_ROOT"
-exit 1
-fi
-
-DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-# ... use paths relative to current directory
-PLUGIN_ROOT="$DIR/../../.."
-COCOS2DX_ROOT="$DIR/../../../.."
-APP_ROOT="$DIR/.."
-APP_ANDROID_ROOT="$DIR"
-
-echo "PLUGIN_ROOT = $PLUGIN_ROOT"
-echo "NDK_ROOT = $NDK_ROOT"
-echo "COCOS2DX_ROOT = $COCOS2DX_ROOT"
-echo "APP_ROOT = $APP_ROOT"
-echo "APP_ANDROID_ROOT = $APP_ANDROID_ROOT"
-echo "---------------------------------------------------------"
-
-# make sure assets is exist
-if [ -d "$APP_ANDROID_ROOT"/assets ]; then
- rm -rf "$APP_ANDROID_ROOT"/assets
-fi
-
-mkdir "$APP_ANDROID_ROOT"/assets
-
-# copy resources
-for file in "$APP_ROOT"/Resources/*
-do
-if [ -d "$file" ]; then
- cp -rf "$file" "$APP_ANDROID_ROOT"/assets
-fi
-
-if [ -f "$file" ]; then
- cp "$file" "$APP_ANDROID_ROOT"/assets
-fi
-done
-
-if [[ "$buildexternalsfromsource" ]]; then
- echo "Building external dependencies from source"
- set -x
- "$NDK_ROOT"/ndk-build -C "$APP_ANDROID_ROOT" $* \
- "NDK_MODULE_PATH=${PLUGIN_ROOT}/publish:${COCOS2DX_ROOT}:${COCOS2DX_ROOT}/cocos2dx/platform/third_party/android/source"
-else
- echo "Using prebuilt externals"
- set -x
- "$NDK_ROOT"/ndk-build -C "$APP_ANDROID_ROOT" $* \
- "NDK_MODULE_PATH=${PLUGIN_ROOT}/publish:${COCOS2DX_ROOT}:${COCOS2DX_ROOT}/cocos2dx/platform/third_party/android/prebuilt"
-fi
diff --git a/plugin/samples/HelloIAP/proj.android/jni/Android.mk b/plugin/samples/HelloIAP/proj.android/jni/Android.mk
deleted file mode 100644
index a51de9683d..0000000000
--- a/plugin/samples/HelloIAP/proj.android/jni/Android.mk
+++ /dev/null
@@ -1,22 +0,0 @@
-LOCAL_PATH := $(call my-dir)
-
-include $(CLEAR_VARS)
-
-LOCAL_MODULE := game_shared
-
-LOCAL_MODULE_FILENAME := libgame
-
-LOCAL_SRC_FILES := hellocpp/main.cpp \
- ../../Classes/AppDelegate.cpp \
- ../../Classes/HelloWorldScene.cpp \
- ../../Classes/MyPurchase.cpp
-
-LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes
-
-LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static \
- PluginProtocolStatic
-
-include $(BUILD_SHARED_LIBRARY)
-
-$(call import-module,cocos2dx) \
-$(call import-module,protocols/android)
diff --git a/plugin/samples/HelloIAP/proj.android/jni/Application.mk b/plugin/samples/HelloIAP/proj.android/jni/Application.mk
deleted file mode 100644
index 488132832e..0000000000
--- a/plugin/samples/HelloIAP/proj.android/jni/Application.mk
+++ /dev/null
@@ -1,3 +0,0 @@
-APP_STL := gnustl_static
-APP_CPPFLAGS += -frtti -std=c++11
-NDK_TOOLCHAIN_VERSION=4.7
diff --git a/plugin/samples/HelloIAP/proj.android/jni/hellocpp/main.cpp b/plugin/samples/HelloIAP/proj.android/jni/hellocpp/main.cpp
deleted file mode 100644
index dc875f6427..0000000000
--- a/plugin/samples/HelloIAP/proj.android/jni/hellocpp/main.cpp
+++ /dev/null
@@ -1,70 +0,0 @@
-/****************************************************************************
-Copyright (c) 2012-2013 cocos2d-x.org
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-****************************************************************************/
-#include "AppDelegate.h"
-#include "platform/android/jni/JniHelper.h"
-#include "PluginJniHelper.h"
-#include
-#include
-
-#include "HelloWorldScene.h"
-
-#define LOG_TAG "main"
-#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__)
-
-using namespace cocos2d;
-
-extern "C"
-{
-
-jint JNI_OnLoad(JavaVM *vm, void *reserved)
-{
- JniHelper::setJavaVM(vm);
- PluginJniHelper::setJavaVM(vm);
-
- return JNI_VERSION_1_4;
-}
-
-void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thiz, jint w, jint h)
-{
- if (!Director::sharedDirector()->getOpenGLView())
- {
- EGLView *view = EGLView::sharedOpenGLView();
- view->setFrameSize(w, h);
-
- AppDelegate *pAppDelegate = new AppDelegate();
- Application::sharedApplication()->run();
- }
- else
- {
- ccDrawInit();
- ccGLInvalidateStateCache();
-
- ShaderCache::sharedShaderCache()->reloadDefaultShaders();
- TextureCache::reloadAllTextures();
- NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
- Director::sharedDirector()->setGLDefaultValues();
- }
-}
-
-}
diff --git a/plugin/samples/HelloIAP/proj.android/proguard-project.txt b/plugin/samples/HelloIAP/proj.android/proguard-project.txt
deleted file mode 100644
index b60ae7ea07..0000000000
--- a/plugin/samples/HelloIAP/proj.android/proguard-project.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-# To enable ProGuard in your project, edit project.properties
-# to define the proguard.config property as described in that file.
-#
-# Add project specific ProGuard rules here.
-# By default, the flags in this file are appended to flags specified
-# in ${sdk.dir}/tools/proguard/proguard-android.txt
-# You can edit the include path and order by changing the ProGuard
-# include property in project.properties.
-#
-# For more details, see
-# http://developer.android.com/guide/developing/tools/proguard.html
-
-# Add any project specific keep options here:
-
-# If your project uses WebView with JS, uncomment the following
-# and specify the fully qualified class name to the JavaScript interface
-# class:
-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
-# public *;
-#}
diff --git a/plugin/samples/HelloIAP/proj.android/project.properties b/plugin/samples/HelloIAP/proj.android/project.properties
deleted file mode 100644
index f6ee30d13d..0000000000
--- a/plugin/samples/HelloIAP/proj.android/project.properties
+++ /dev/null
@@ -1,16 +0,0 @@
-# This file is automatically generated by Android Tools.
-# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
-#
-# This file must be checked in Version Control Systems.
-#
-# To customize properties used by the Ant build system edit
-# "ant.properties", and override values to adapt the script to your
-# project structure.
-#
-# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
-#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
-
-# Project target.
-target=android-10
-android.library.reference.1=../../../../cocos2dx/platform/android/java
-android.library.reference.2=../../../publish/plugins/nd91/android/DependProject
diff --git a/plugin/samples/HelloIAP/proj.android/res/values/strings.xml b/plugin/samples/HelloIAP/proj.android/res/values/strings.xml
deleted file mode 100644
index 1827f14e1a..0000000000
--- a/plugin/samples/HelloIAP/proj.android/res/values/strings.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
- HelloIAP
-
diff --git a/plugin/samples/HelloUser/Classes/AppDelegate.cpp b/plugin/samples/HelloPlugins/Classes/AppDelegate.cpp
similarity index 94%
rename from plugin/samples/HelloUser/Classes/AppDelegate.cpp
rename to plugin/samples/HelloPlugins/Classes/AppDelegate.cpp
index d48938c82b..a2dd2e6d34 100644
--- a/plugin/samples/HelloUser/Classes/AppDelegate.cpp
+++ b/plugin/samples/HelloPlugins/Classes/AppDelegate.cpp
@@ -1,6 +1,5 @@
#include "AppDelegate.h"
#include "HelloWorldScene.h"
-#include "MyUserManager.h"
USING_NS_CC;
@@ -13,8 +12,6 @@ AppDelegate::~AppDelegate()
}
bool AppDelegate::applicationDidFinishLaunching() {
- MyUserManager::sharedManager()->loadPlugin();
-
// initialize director
Director* pDirector = Director::sharedDirector();
EGLView* pEGLView = EGLView::sharedOpenGLView();
@@ -22,6 +19,7 @@ bool AppDelegate::applicationDidFinishLaunching() {
pDirector->setOpenGLView(pEGLView);
pEGLView->setDesignResolutionSize(960.0f, 640.0f, kResolutionNoBorder);
+
// turn on display FPS
pDirector->setDisplayStats(true);
diff --git a/plugin/samples/HelloUser/Classes/AppDelegate.h b/plugin/samples/HelloPlugins/Classes/AppDelegate.h
similarity index 100%
rename from plugin/samples/HelloUser/Classes/AppDelegate.h
rename to plugin/samples/HelloPlugins/Classes/AppDelegate.h
diff --git a/plugin/samples/HelloPlugins/Classes/HelloWorldScene.cpp b/plugin/samples/HelloPlugins/Classes/HelloWorldScene.cpp
new file mode 100644
index 0000000000..f698bbe745
--- /dev/null
+++ b/plugin/samples/HelloPlugins/Classes/HelloWorldScene.cpp
@@ -0,0 +1,115 @@
+#include "HelloWorldScene.h"
+#include "TestAdsScene.h"
+#include "TestAnalyticsScene.h"
+#include "TestShareScene.h"
+#include "TestIAPScene.h"
+#include "TestUserScene.h"
+
+USING_NS_CC;
+
+std::string g_testCases[] = {
+ "Test Ads",
+ "Test Analytics",
+ "Test Share",
+#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
+ "Test IAP",
+ "Test User",
+#endif
+};
+
+Scene* HelloWorld::scene()
+{
+ // 'scene' is an autorelease object
+ Scene *scene = Scene::create();
+
+ // 'layer' is an autorelease object
+ HelloWorld *layer = HelloWorld::create();
+
+ // add layer as a child to scene
+ scene->addChild(layer);
+
+ // return the scene
+ return scene;
+}
+
+// on "init" you need to initialize your instance
+bool HelloWorld::init()
+{
+ //////////////////////////////
+ // 1. super init first
+ if ( !Layer::init() )
+ {
+ return false;
+ }
+
+ Size visibleSize = Director::sharedDirector()->getVisibleSize();
+ Point origin = Director::sharedDirector()->getVisibleOrigin();
+
+ /////////////////////////////
+ // 2. add a menu item with "X" image, which is clicked to quit the program
+ // you may modify it.
+
+ // add a "close" icon to exit the progress. it's an autorelease object
+ MenuItemImage *pCloseItem = MenuItemImage::create(
+ "CloseNormal.png",
+ "CloseSelected.png",
+ CC_CALLBACK_1(HelloWorld::menuCloseCallback, this));
+
+ pCloseItem->setPosition(ccp(origin.x + visibleSize.width - pCloseItem->getContentSize().width/2 ,
+ origin.y + pCloseItem->getContentSize().height/2));
+
+ // create menu, it's an autorelease object
+ Menu* pMenu = Menu::create(pCloseItem, NULL);
+ pMenu->setPosition(PointZero);
+ this->addChild(pMenu, 1);
+
+ Point beginPos = ccp(origin.x + visibleSize.width / 2, origin.y + visibleSize.height - 50);
+ float step = 60.0f;
+ int nCaseCount = sizeof(g_testCases) / sizeof(std::string);
+ for (int i = 0; i < nCaseCount; ++i) {
+ std::string caseName = g_testCases[i];
+ MenuItemFont *pItem = MenuItemFont::create(caseName.c_str(), CC_CALLBACK_1(HelloWorld::menuCallback, this));
+ pItem->setTag(i);
+ pItem->setPosition(ccp(beginPos.x, beginPos.y - i * step));
+ pMenu->addChild(pItem);
+ }
+ return true;
+}
+
+void HelloWorld::menuCallback(Object* pSender)
+{
+ MenuItemFont *pItem = (MenuItemFont*) pSender;
+ Scene* newScene = NULL;
+ switch (pItem->getTag()) {
+ case 0:
+ newScene = TestAds::scene();
+ break;
+ case 1:
+ newScene = TestAnalytics::scene();
+ break;
+ case 2:
+ newScene = TestShare::scene();
+ break;
+ case 3:
+ newScene = TestIAP::scene();
+ break;
+ case 4:
+ newScene = TestUser::scene();
+ break;
+ default:
+ break;
+ }
+
+ if (newScene) {
+ Director::sharedDirector()->replaceScene(newScene);
+ }
+}
+
+void HelloWorld::menuCloseCallback(Object* pSender)
+{
+ Director::sharedDirector()->end();
+
+#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
+ exit(0);
+#endif
+}
diff --git a/plugin/samples/HelloUser/Classes/HelloWorldScene.h b/plugin/samples/HelloPlugins/Classes/HelloWorldScene.h
similarity index 76%
rename from plugin/samples/HelloUser/Classes/HelloWorldScene.h
rename to plugin/samples/HelloPlugins/Classes/HelloWorldScene.h
index 948b144d61..8171df0f4c 100644
--- a/plugin/samples/HelloUser/Classes/HelloWorldScene.h
+++ b/plugin/samples/HelloPlugins/Classes/HelloWorldScene.h
@@ -14,17 +14,10 @@ public:
// a selector callback
void menuCloseCallback(Object* pSender);
- void testLogin(Object* pSender);
- void testLogout(Object* pSender);
+ void menuCallback(Object* pSender);
- void caseChanged(Object* pSender);
-
// implement the "static node()" method manually
CREATE_FUNC(HelloWorld);
-
-private:
- cocos2d::MenuItemToggle* _caseItem;
- int _selectedCase;
};
#endif // __HELLOWORLD_SCENE_H__
diff --git a/plugin/samples/HelloAds/Classes/HelloWorldScene.cpp b/plugin/samples/HelloPlugins/Classes/TestAds/TestAdsScene.cpp
similarity index 81%
rename from plugin/samples/HelloAds/Classes/HelloWorldScene.cpp
rename to plugin/samples/HelloPlugins/Classes/TestAds/TestAdsScene.cpp
index f3a8f4e261..f0edf50bf4 100644
--- a/plugin/samples/HelloAds/Classes/HelloWorldScene.cpp
+++ b/plugin/samples/HelloPlugins/Classes/TestAds/TestAdsScene.cpp
@@ -21,8 +21,9 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
-#include "HelloWorldScene.h"
+#include "TestAdsScene.h"
#include "PluginManager.h"
+#include "HelloWorldScene.h"
USING_NS_CC;
using namespace cocos2d::plugin;
@@ -47,13 +48,13 @@ const std::string s_aTestPoses[] = {
"Pos: BottomRight",
};
-Scene* HelloWorld::scene()
+Scene* TestAds::scene()
{
// 'scene' is an autorelease object
Scene *scene = Scene::create();
// 'layer' is an autorelease object
- HelloWorld *layer = HelloWorld::create();
+ TestAds *layer = TestAds::create();
// add layer as a child to scene
scene->addChild(layer);
@@ -63,7 +64,7 @@ Scene* HelloWorld::scene()
}
// on "init" you need to initialize your instance
-bool HelloWorld::init()
+bool TestAds::init()
{
//////////////////////////////
// 1. super init first
@@ -89,39 +90,36 @@ bool HelloWorld::init()
Size visibleSize = Director::sharedDirector()->getVisibleSize();
Point origin = Director::sharedDirector()->getVisibleOrigin();
Point posMid = ccp(origin.x + visibleSize.width / 2, origin.y + visibleSize.height / 2);
+ Point posBR = ccp(origin.x + visibleSize.width, origin.y);
/////////////////////////////
// 2. add a menu item with "X" image, which is clicked to quit the program
// you may modify it.
// add a "close" icon to exit the progress. it's an autorelease object
- MenuItemImage *pCloseItem = MenuItemImage::create(
- "CloseNormal.png",
- "CloseSelected.png",
- CC_CALLBACK_1(HelloWorld::menuCloseCallback, this));
-
- pCloseItem->setPosition(ccp(origin.x + visibleSize.width - pCloseItem->getContentSize().width/2 ,
- origin.y + pCloseItem->getContentSize().height/2));
+ MenuItemFont *pBackItem = MenuItemFont::create("Back", CC_CALLBACK_1(TestAds::menuBackCallback, this));
+ Size backSize = pBackItem->getContentSize();
+ pBackItem->setPosition(ccpAdd(posBR, ccp(- backSize.width / 2, backSize.height / 2)));
// create menu, it's an autorelease object
- Menu* pMenu = Menu::create(pCloseItem, NULL);
- pMenu->setPosition(PointZero);
+ Menu* pMenu = Menu::create(pBackItem, NULL);
+ pMenu->setPosition( PointZero );
LabelTTF* label1 = LabelTTF::create("ShowAds", "Arial", 24);
- MenuItemLabel* pItemShow = MenuItemLabel::create(label1, CC_CALLBACK_1(HelloWorld::testShow, this));
+ MenuItemLabel* pItemShow = MenuItemLabel::create(label1, CC_CALLBACK_1(TestAds::testShow, this));
pItemShow->setAnchorPoint(ccp(0.5f, 0));
pMenu->addChild(pItemShow, 0);
pItemShow->setPosition(ccpAdd(posMid, ccp(-100, -120)));
LabelTTF* label2 = LabelTTF::create("HideAds", "Arial", 24);
- MenuItemLabel* pItemHide = MenuItemLabel::create(label2, CC_CALLBACK_1(HelloWorld::testHide, this));
+ MenuItemLabel* pItemHide = MenuItemLabel::create(label2, CC_CALLBACK_1(TestAds::testHide, this));
pItemHide->setAnchorPoint(ccp(0.5f, 0));
pMenu->addChild(pItemHide, 0);
pItemHide->setPosition(ccpAdd(posMid, ccp(100, -120)));
// create optional menu
// cases item
- _caseItem = MenuItemToggle::createWithCallback(CC_CALLBACK_1(HelloWorld::caseChanged, this),
+ _caseItem = MenuItemToggle::createWithCallback(CC_CALLBACK_1(TestAds::caseChanged, this),
MenuItemFont::create( s_aTestCases[0].c_str() ),
NULL );
int caseLen = sizeof(s_aTestCases) / sizeof(std::string);
@@ -133,7 +131,7 @@ bool HelloWorld::init()
pMenu->addChild(_caseItem);
// type item
- _typeItem = MenuItemToggle::createWithCallback(CC_CALLBACK_1(HelloWorld::typeChanged, this),
+ _typeItem = MenuItemToggle::createWithCallback(CC_CALLBACK_1(TestAds::typeChanged, this),
MenuItemFont::create( s_aTestTypes[0].c_str() ),
NULL );
int typeLen = sizeof(s_aTestTypes) / sizeof(std::string);
@@ -145,7 +143,7 @@ bool HelloWorld::init()
pMenu->addChild(_typeItem);
// poses item
- _posItem = MenuItemToggle::createWithCallback(CC_CALLBACK_1(HelloWorld::posChanged, this),
+ _posItem = MenuItemToggle::createWithCallback(CC_CALLBACK_1(TestAds::posChanged, this),
MenuItemFont::create( s_aTestPoses[0].c_str() ),
NULL );
int posLen = sizeof(s_aTestPoses) / sizeof(std::string);
@@ -166,7 +164,7 @@ bool HelloWorld::init()
return true;
}
-void HelloWorld::testShow(Object* pSender)
+void TestAds::testShow(Object* pSender)
{
int nSize = 0;
if (_ads == _admob)
@@ -180,17 +178,18 @@ void HelloWorld::testShow(Object* pSender)
}
}
-void HelloWorld::testHide(Object* pSender)
+void TestAds::testHide(Object* pSender)
{
_ads->hideAds(_type);
}
-void HelloWorld::menuCloseCallback(Object* pSender)
+void TestAds::menuBackCallback(Object* pSender)
{
- Director::sharedDirector()->end();
-
if (_admob != NULL)
{
+ _admob->hideAds(ProtocolAds::kBannerAd);
+ _admob->hideAds(ProtocolAds::kFullScreenAd);
+ _admob->hideAds(ProtocolAds::kMoreApp);
PluginManager::getInstance()->unloadPlugin("AdsAdmob");
_admob = NULL;
}
@@ -201,13 +200,11 @@ void HelloWorld::menuCloseCallback(Object* pSender)
_listener = NULL;
}
- PluginManager::end();
-#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
- exit(0);
-#endif
+ Scene* newScene = HelloWorld::scene();
+ Director::sharedDirector()->replaceScene(newScene);
}
-void HelloWorld::caseChanged(Object* pSender)
+void TestAds::caseChanged(Object* pSender)
{
std::string strLog = "";
switch (_caseItem->getSelectedIndex())
@@ -222,14 +219,14 @@ void HelloWorld::caseChanged(Object* pSender)
CCLog("case selected change to : %s", strLog.c_str());
}
-void HelloWorld::typeChanged(Object* pSender)
+void TestAds::typeChanged(Object* pSender)
{
int selectIndex = _typeItem->getSelectedIndex();
_type = (ProtocolAds::AdsType) selectIndex;
CCLog("type selected change to : %d", _type);
}
-void HelloWorld::posChanged(Object* pSender)
+void TestAds::posChanged(Object* pSender)
{
int selectIndex = _posItem->getSelectedIndex();
_pos = (ProtocolAds::AdsPos) selectIndex;
diff --git a/plugin/samples/HelloAds/Classes/HelloWorldScene.h b/plugin/samples/HelloPlugins/Classes/TestAds/TestAdsScene.h
similarity index 92%
rename from plugin/samples/HelloAds/Classes/HelloWorldScene.h
rename to plugin/samples/HelloPlugins/Classes/TestAds/TestAdsScene.h
index 416fba523f..ab3e8af0b5 100644
--- a/plugin/samples/HelloAds/Classes/HelloWorldScene.h
+++ b/plugin/samples/HelloPlugins/Classes/TestAds/TestAdsScene.h
@@ -21,8 +21,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
-#ifndef __HELLOWORLD_SCENE_H__
-#define __HELLOWORLD_SCENE_H__
+#ifndef __TEST_ADS_SCENE_H__
+#define __TEST_ADS_SCENE_H__
#include "cocos2d.h"
#include "ProtocolAds.h"
@@ -34,7 +34,7 @@ public:
virtual void onPlayerGetPoints(cocos2d::plugin::ProtocolAds* pAdsPlugin, int points);
};
-class HelloWorld : public cocos2d::Layer
+class TestAds : public cocos2d::Layer
{
public:
// Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone
@@ -44,7 +44,7 @@ public:
static cocos2d::Scene* scene();
// a selector callback
- void menuCloseCallback(Object* pSender);
+ void menuBackCallback(Object* pSender);
void testShow(Object* pSender);
void testHide(Object* pSender);
@@ -54,7 +54,7 @@ public:
void typeChanged(Object* pSender);
// implement the "static node()" method manually
- CREATE_FUNC(HelloWorld);
+ CREATE_FUNC(TestAds);
private:
cocos2d::plugin::ProtocolAds* _admob;
@@ -69,4 +69,4 @@ private:
cocos2d::plugin::ProtocolAds::AdsType _type;
};
-#endif // __HELLOWORLD_SCENE_H__
+#endif // __TEST_ADS_SCENE_H__
diff --git a/plugin/samples/HelloAnalytics/Classes/HelloWorldScene.cpp b/plugin/samples/HelloPlugins/Classes/TestAnalytics/TestAnalyticsScene.cpp
similarity index 51%
rename from plugin/samples/HelloAnalytics/Classes/HelloWorldScene.cpp
rename to plugin/samples/HelloPlugins/Classes/TestAnalytics/TestAnalyticsScene.cpp
index 63340d0f8f..817e193eb3 100644
--- a/plugin/samples/HelloAnalytics/Classes/HelloWorldScene.cpp
+++ b/plugin/samples/HelloPlugins/Classes/TestAnalytics/TestAnalyticsScene.cpp
@@ -21,16 +21,18 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
-#include "HelloWorldScene.h"
+#include "TestAnalyticsScene.h"
#include "PluginManager.h"
-#include "ProtocolAnalytics.h"
-#include "AppDelegate.h"
+#include "HelloWorldScene.h"
using namespace cocos2d;
using namespace cocos2d::plugin;
-extern ProtocolAnalytics* g_pAnalytics;
-extern std::string s_strAppKey;
+// The app key of flurry
+#define FLURRY_KEY_IOS "KMGG7CD9WPK2TW4X9VR8"
+#define FLURRY_KEY_ANDROID "SPKFH8KMPGHMMBWRBT5W"
+#define UMENG_KEY_IOS "50d2b18c5270152187000097"
+#define UMENG_KEY_ANDROID "" // umeng key for android is setted in AndroidManifest.xml
enum {
TAG_LOG_EVENT_ID = 0,
@@ -57,13 +59,13 @@ static EventMenuItem s_EventMenuItem[] = {
{"MakeMeCrash", TAG_MAKE_ME_CRASH}
};
-Scene* HelloWorld::scene()
+Scene* TestAnalytics::scene()
{
// 'scene' is an autorelease object
Scene *scene = Scene::create();
// 'layer' is an autorelease object
- HelloWorld *layer = HelloWorld::create();
+ TestAnalytics *layer = TestAnalytics::create();
// add layer as a child to scene
scene->addChild(layer);
@@ -73,7 +75,7 @@ Scene* HelloWorld::scene()
}
// on "init" you need to initialize your instance
-bool HelloWorld::init()
+bool TestAnalytics::init()
{
//////////////////////////////
// 1. super init first
@@ -82,60 +84,53 @@ bool HelloWorld::init()
return false;
}
- Size size = Director::sharedDirector()->getWinSize();
+ _pluginAnalytics = NULL;
+ loadPlugins();
+
+ Size visibleSize = Director::sharedDirector()->getVisibleSize();
+ Point origin = Director::sharedDirector()->getVisibleOrigin();
+ Point posBR = ccp(origin.x + visibleSize.width, origin.y);
/////////////////////////////
// 2. add a menu item with "X" image, which is clicked to quit the program
// you may modify it.
// add a "close" icon to exit the progress. it's an autorelease object
- MenuItemImage *pCloseItem = MenuItemImage::create(
- "CloseNormal.png",
- "CloseSelected.png",
- this,
- menu_selector(HelloWorld::menuCloseCallback) );
- pCloseItem->setPosition( ccp(size.width - 20, 20) );
+ MenuItemFont *pBackItem = MenuItemFont::create("Back", CC_CALLBACK_1(TestAnalytics::menuBackCallback, this));
+ Size backSize = pBackItem->getContentSize();
+ pBackItem->setPosition(ccpAdd(posBR, ccp(- backSize.width / 2, backSize.height / 2)));
// create menu, it's an autorelease object
- Menu* pMenu = Menu::create(pCloseItem, NULL);
+ Menu* pMenu = Menu::create(pBackItem, NULL);
pMenu->setPosition( PointZero );
this->addChild(pMenu, 1);
float yPos = 0;
for (int i = 0; i < sizeof(s_EventMenuItem)/sizeof(s_EventMenuItem[0]); i++) {
LabelTTF* label = LabelTTF::create(s_EventMenuItem[i].id.c_str(), "Arial", 24);
- MenuItemLabel* pMenuItem = MenuItemLabel::create(label, this, menu_selector(HelloWorld::eventMenuCallback));
+ MenuItemLabel* pMenuItem = MenuItemLabel::create(label, CC_CALLBACK_1(TestAnalytics::eventMenuCallback, this));
pMenu->addChild(pMenuItem, 0, s_EventMenuItem[i].tag);
- yPos = size.height - 35*i - 100;
- pMenuItem->setPosition( ccp(size.width / 2, yPos));
+ yPos = visibleSize.height - 35*i - 100;
+ pMenuItem->setPosition( ccp(visibleSize.width / 2, yPos));
}
- std::string strName = g_pAnalytics->getPluginName();
- std::string strVer = g_pAnalytics->getSDKVersion();
+ std::string strName = _pluginAnalytics->getPluginName();
+ std::string strVer = _pluginAnalytics->getSDKVersion();
char ret[256] = { 0 };
sprintf(ret, "Plugin : %s, Ver : %s", strName.c_str(), strVer.c_str());
- LabelTTF* pLabel = LabelTTF::create(ret, "Arial", 18, CCSizeMake(size.width, 0), kTextAlignmentCenter);
- pLabel->setPosition(ccp(size.width / 2, yPos - 80));
+ LabelTTF* pLabel = LabelTTF::create(ret, "Arial", 18, CCSizeMake(visibleSize.width, 0), kTextAlignmentCenter);
+ pLabel->setPosition(ccp(visibleSize.width / 2, yPos - 80));
addChild(pLabel);
- LabelTTF* label = LabelTTF::create("reload all plugins", "Arial", 24);
- MenuItemLabel* pMenuItem = MenuItemLabel::create(label, this, menu_selector(HelloWorld::reloadPluginMenuCallback));
- pMenuItem->setAnchorPoint(ccp(0.5f, 0));
- pMenu->addChild(pMenuItem, 0);
- pMenuItem->setPosition( ccp(size.width / 2, 0));
-
return true;
}
-void HelloWorld::reloadPluginMenuCallback(Object* pSender)
+void TestAnalytics::onExit()
{
- PluginManager::getInstance()->unloadPlugin("AnalyticsFlurry");
- PluginManager::getInstance()->unloadPlugin("AnalyticsUmeng");
-
- AppDelegate::loadAnalyticsPlugin();
+ unloadPlugins();
}
-void HelloWorld::eventMenuCallback(Object* pSender)
+void TestAnalytics::eventMenuCallback(Object* pSender)
{
MenuItemLabel* pMenuItem = (MenuItemLabel*)pSender;
@@ -143,8 +138,8 @@ void HelloWorld::eventMenuCallback(Object* pSender)
{
case TAG_LOG_EVENT_ID:
{
- g_pAnalytics->logEvent("click");
- g_pAnalytics->logEvent("music");
+ _pluginAnalytics->logEvent("click");
+ _pluginAnalytics->logEvent("music");
}
break;
case TAG_LOG_EVENT_ID_KV:
@@ -152,25 +147,25 @@ void HelloWorld::eventMenuCallback(Object* pSender)
LogEventParamMap paramMap;
paramMap.insert(LogEventParamPair("type", "popular"));
paramMap.insert(LogEventParamPair("artist", "JJLin"));
- g_pAnalytics->logEvent("music", ¶mMap);
+ _pluginAnalytics->logEvent("music", ¶mMap);
}
break;
case TAG_LOG_ONLINE_CONFIG:
{
PluginParam param("abc");
- CCLog("Online config = %s", g_pAnalytics->callStringFuncWithParam("getConfigParams", ¶m, NULL).c_str());
+ CCLog("Online config = %s", _pluginAnalytics->callStringFuncWithParam("getConfigParams", ¶m, NULL).c_str());
}
break;
case TAG_LOG_EVENT_ID_DURATION:
{
PluginParam event1("book");
PluginParam dura1(12000);
- g_pAnalytics->callFuncWithParam("logEventWithDuration", &event1, &dura1, NULL);
+ _pluginAnalytics->callFuncWithParam("logEventWithDuration", &event1, &dura1, NULL);
PluginParam event2("book");
PluginParam dura2(12000);
PluginParam label("chapter1");
- g_pAnalytics->callFuncWithParam("logEventWithDurationLabel", &event2, &dura2, &label, NULL);
+ _pluginAnalytics->callFuncWithParam("logEventWithDurationLabel", &event2, &dura2, &label, NULL);
PluginParam event3("music");
PluginParam dura3(2330000);
@@ -178,16 +173,16 @@ void HelloWorld::eventMenuCallback(Object* pSender)
paramMap.insert(LogEventParamPair("type", "popular"));
paramMap.insert(LogEventParamPair("artist", "JJLin"));
PluginParam mapValue(paramMap);
- g_pAnalytics->callFuncWithParam("logEventWithDurationParams", &event3, &dura3, &mapValue, NULL);
+ _pluginAnalytics->callFuncWithParam("logEventWithDurationParams", &event3, &dura3, &mapValue, NULL);
}
break;
case TAG_LOG_EVENT_BEGIN:
{
- g_pAnalytics->logTimedEventBegin("music");
+ _pluginAnalytics->logTimedEventBegin("music");
PluginParam event1("music");
PluginParam label1("one");
- g_pAnalytics->callFuncWithParam("logTimedEventWithLabelBegin", &event1, &label1, NULL);
+ _pluginAnalytics->callFuncWithParam("logTimedEventWithLabelBegin", &event1, &label1, NULL);
PluginParam event2("music");
PluginParam label2("flag0");
@@ -195,26 +190,26 @@ void HelloWorld::eventMenuCallback(Object* pSender)
paramMap.insert(LogEventParamPair("type", "popular"));
paramMap.insert(LogEventParamPair("artist", "JJLin"));
PluginParam mapValue(paramMap);
- g_pAnalytics->callFuncWithParam("logTimedKVEventBegin", &event2, &label2, &mapValue, NULL);
+ _pluginAnalytics->callFuncWithParam("logTimedKVEventBegin", &event2, &label2, &mapValue, NULL);
PluginParam event3("music-kv");
- g_pAnalytics->callFuncWithParam("logTimedEventBeginWithParams", &event3, &mapValue, NULL);
+ _pluginAnalytics->callFuncWithParam("logTimedEventBeginWithParams", &event3, &mapValue, NULL);
}
break;
case TAG_LOG_EVENT_END:
{
- g_pAnalytics->logTimedEventEnd("music");
+ _pluginAnalytics->logTimedEventEnd("music");
PluginParam event1("music");
PluginParam label1("one");
- g_pAnalytics->callFuncWithParam("logTimedEventWithLabelEnd", &event1, &label1, NULL);
+ _pluginAnalytics->callFuncWithParam("logTimedEventWithLabelEnd", &event1, &label1, NULL);
PluginParam event2("music");
PluginParam label2("flag0");
- g_pAnalytics->callFuncWithParam("logTimedKVEventEnd", &event2, &label2, NULL);
+ _pluginAnalytics->callFuncWithParam("logTimedKVEventEnd", &event2, &label2, NULL);
PluginParam event3("music-kv");
- g_pAnalytics->callFuncWithParam("logTimedEventEnd", &event3, NULL);
+ _pluginAnalytics->callFuncWithParam("logTimedEventEnd", &event3, NULL);
}
break;
case TAG_MAKE_ME_CRASH:
@@ -228,14 +223,81 @@ void HelloWorld::eventMenuCallback(Object* pSender)
}
}
-void HelloWorld::menuCloseCallback(Object* pSender)
+void TestAnalytics::loadPlugins()
{
- if (g_pAnalytics)
- g_pAnalytics->stopSession();
-
- PluginManager::end();
- Director::sharedDirector()->end();
+ ccLanguageType langType = Application::sharedApplication()->getCurrentLanguage();
+
+ std::string umengKey = "";
+ std::string flurryKey = "";
+ std::string pluginName = "";
+ std::string strAppKey = "";
+
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
- exit(0);
+ umengKey = UMENG_KEY_IOS;
+ flurryKey = FLURRY_KEY_IOS;
+#elif (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
+ umengKey = UMENG_KEY_ANDROID;
+ flurryKey = FLURRY_KEY_ANDROID;
#endif
+
+ if (kLanguageChinese == langType)
+ {
+ pluginName = "AnalyticsUmeng";
+ strAppKey = umengKey;
+ }
+ else
+ {
+ pluginName = "AnalyticsFlurry";
+ strAppKey = flurryKey;
+ }
+
+ _pluginAnalytics = dynamic_cast (PluginManager::getInstance()->loadPlugin(pluginName.c_str()));
+
+ _pluginAnalytics->setDebugMode(true);
+ _pluginAnalytics->startSession(strAppKey.c_str());
+ _pluginAnalytics->setCaptureUncaughtException(true);
+ _pluginAnalytics->setSessionContinueMillis(10000);
+
+ const char* sdkVer = _pluginAnalytics->getSDKVersion().c_str();
+ CCLog("SDK version : %s", sdkVer);
+
+ _pluginAnalytics->callFuncWithParam("updateOnlineConfig", NULL);
+
+ PluginParam pParam1(true);
+ _pluginAnalytics->callFuncWithParam("setReportLocation", &pParam1, NULL);
+
+ _pluginAnalytics->callFuncWithParam("logPageView", NULL);
+
+ PluginParam pParam2("1.1");
+ _pluginAnalytics->callFuncWithParam("setVersionName", &pParam2, NULL);
+
+ PluginParam pParam3(20);
+ _pluginAnalytics->callFuncWithParam("setAge", &pParam3, NULL);
+
+ PluginParam pParam4(1);
+ _pluginAnalytics->callFuncWithParam("setGender", &pParam4, NULL);
+
+ PluginParam pParam5("123456");
+ _pluginAnalytics->callFuncWithParam("setUserId", &pParam5, NULL);
+
+ PluginParam pParam6(false);
+ _pluginAnalytics->callFuncWithParam("setUseHttps", &pParam6, NULL);
+
+}
+
+void TestAnalytics::unloadPlugins()
+{
+ if (NULL != _pluginAnalytics) {
+ _pluginAnalytics->stopSession();
+
+ std::string pluginName = _pluginAnalytics->getPluginName();
+ PluginManager::getInstance()->unloadPlugin(pluginName.c_str());
+ _pluginAnalytics = NULL;
+ }
+}
+
+void TestAnalytics::menuBackCallback(Object* pSender)
+{
+ Scene* newScene = HelloWorld::scene();
+ Director::sharedDirector()->replaceScene(newScene);
}
diff --git a/plugin/samples/HelloShare/Classes/HelloWorldScene.h b/plugin/samples/HelloPlugins/Classes/TestAnalytics/TestAnalyticsScene.h
similarity index 79%
rename from plugin/samples/HelloShare/Classes/HelloWorldScene.h
rename to plugin/samples/HelloPlugins/Classes/TestAnalytics/TestAnalyticsScene.h
index 1b5c1191ea..cecde70cee 100644
--- a/plugin/samples/HelloShare/Classes/HelloWorldScene.h
+++ b/plugin/samples/HelloPlugins/Classes/TestAnalytics/TestAnalyticsScene.h
@@ -21,27 +21,34 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
-#ifndef __HELLOWORLD_SCENE_H__
-#define __HELLOWORLD_SCENE_H__
+#ifndef __TEST_ANALYTICS_SCENE_H__
+#define __TEST_ANALYTICS_SCENE_H__
#include "cocos2d.h"
+#include "ProtocolAnalytics.h"
-class HelloWorld : public cocos2d::Layer
+class TestAnalytics : public cocos2d::Layer
{
public:
// Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone
- virtual bool init();
+ virtual bool init();
+ virtual void onExit();
// there's no 'id' in cpp, so we recommand to return the exactly class pointer
static cocos2d::Scene* scene();
// a selector callback
- void menuCloseCallback(Object* pSender);
+ void menuBackCallback(Object* pSender);
void eventMenuCallback(Object* pSender);
- void reloadPluginMenuCallback(Object* pSender);
+
+ void loadPlugins();
+ void unloadPlugins();
// implement the "static node()" method manually
- CREATE_FUNC(HelloWorld);
+ CREATE_FUNC(TestAnalytics);
+
+private:
+ cocos2d::plugin::ProtocolAnalytics* _pluginAnalytics;
};
-#endif // __HELLOWORLD_SCENE_H__
+#endif // __TEST_ANALYTICS_SCENE_H__
diff --git a/plugin/samples/HelloIAP/Classes/MyPurchase.cpp b/plugin/samples/HelloPlugins/Classes/TestIAP/MyPurchase.cpp
similarity index 100%
rename from plugin/samples/HelloIAP/Classes/MyPurchase.cpp
rename to plugin/samples/HelloPlugins/Classes/TestIAP/MyPurchase.cpp
diff --git a/plugin/samples/HelloIAP/Classes/MyPurchase.h b/plugin/samples/HelloPlugins/Classes/TestIAP/MyPurchase.h
similarity index 100%
rename from plugin/samples/HelloIAP/Classes/MyPurchase.h
rename to plugin/samples/HelloPlugins/Classes/TestIAP/MyPurchase.h
diff --git a/plugin/samples/HelloIAP/Classes/HelloWorldScene.cpp b/plugin/samples/HelloPlugins/Classes/TestIAP/TestIAPScene.cpp
similarity index 71%
rename from plugin/samples/HelloIAP/Classes/HelloWorldScene.cpp
rename to plugin/samples/HelloPlugins/Classes/TestIAP/TestIAPScene.cpp
index 0e2513dbc0..1111a4e989 100644
--- a/plugin/samples/HelloIAP/Classes/HelloWorldScene.cpp
+++ b/plugin/samples/HelloPlugins/Classes/TestIAP/TestIAPScene.cpp
@@ -21,10 +21,11 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
-#include "HelloWorldScene.h"
+#include "TestIAPScene.h"
#include "PluginManager.h"
#include "AppDelegate.h"
#include "MyPurchase.h"
+#include "HelloWorldScene.h"
using namespace cocos2d;
using namespace cocos2d::plugin;
@@ -44,13 +45,13 @@ static EventMenuItem s_EventMenuItem[] = {
{"BtnND91.png", TAG_PAY_BY_ND91},
};
-Scene* HelloWorld::scene()
+Scene* TestIAP::scene()
{
// 'scene' is an autorelease object
Scene *scene = Scene::create();
// 'layer' is an autorelease object
- HelloWorld *layer = HelloWorld::create();
+ TestIAP *layer = TestIAP::create();
// add layer as a child to scene
scene->addChild(layer);
@@ -60,7 +61,7 @@ Scene* HelloWorld::scene()
}
// on "init" you need to initialize your instance
-bool HelloWorld::init()
+bool TestIAP::init()
{
//////////////////////////////
// 1. super init first
@@ -69,11 +70,8 @@ bool HelloWorld::init()
return false;
}
- Size size = Director::sharedDirector()->getWinSize();
+ MyPurchase::sharedPurchase()->loadIAPPlugin();
- Sprite* pBackground = Sprite::create("background.png");
- pBackground->setPosition(ccp(size.width / 2, size.height / 2));
- addChild(pBackground);
/////////////////////////////
// 2. add a menu item with "X" image, which is clicked to quit the program
// you may modify it.
@@ -83,15 +81,12 @@ bool HelloWorld::init()
Point posTL = ccp(pEGLView->getVisibleOrigin().x, pEGLView->getVisibleOrigin().y + pEGLView->getVisibleSize().height);
// add a "close" icon to exit the progress. it's an autorelease object
- MenuItemImage *pCloseItem = MenuItemImage::create(
- "CloseNormal.png",
- "CloseSelected.png",
- this,
- menu_selector(HelloWorld::menuCloseCallback) );
- pCloseItem->setPosition( ccp(posBR.x - 20, posBR.y + 20) );
+ MenuItemFont *pBackItem = MenuItemFont::create("Back", CC_CALLBACK_1(TestIAP::menuBackCallback, this));
+ Size backSize = pBackItem->getContentSize();
+ pBackItem->setPosition(ccpAdd(posBR, ccp(- backSize.width / 2, backSize.height / 2)));
// create menu, it's an autorelease object
- Menu* pMenu = Menu::create(pCloseItem, NULL);
+ Menu* pMenu = Menu::create(pBackItem, NULL);
pMenu->setPosition( PointZero );
this->addChild(pMenu, 1);
@@ -101,7 +96,7 @@ bool HelloWorld::init()
int row = 0;
for (int i = 0; i < sizeof(s_EventMenuItem)/sizeof(s_EventMenuItem[0]); i++) {
MenuItemImage* pMenuItem = MenuItemImage::create(s_EventMenuItem[i].id.c_str(), s_EventMenuItem[i].id.c_str(),
- this, menu_selector(HelloWorld::eventMenuCallback));
+ CC_CALLBACK_1(TestIAP::eventMenuCallback, this));
pMenu->addChild(pMenuItem, 0, s_EventMenuItem[i].tag);
Point pos = ccpAdd(beginPos, ccp(posStep.x * row, posStep.y * line));
@@ -116,22 +111,10 @@ bool HelloWorld::init()
pMenuItem->setPosition(pos);
}
- LabelTTF* label = LabelTTF::create("reload all plugins", "Arial", 24);
- MenuItemLabel* pMenuItem = MenuItemLabel::create(label, this, menu_selector(HelloWorld::reloadPluginMenuCallback));
- pMenuItem->setAnchorPoint(ccp(0.5f, 0));
- pMenu->addChild(pMenuItem, 0);
- pMenuItem->setPosition( ccp(size.width / 2, 0));
-
return true;
}
-void HelloWorld::reloadPluginMenuCallback(Object* pSender)
-{
- MyPurchase::sharedPurchase()->unloadIAPPlugin();
- MyPurchase::sharedPurchase()->loadIAPPlugin();
-}
-
-void HelloWorld::eventMenuCallback(Object* pSender)
+void TestIAP::eventMenuCallback(Object* pSender)
{
MenuItemLabel* pMenuItem = (MenuItemLabel*)pSender;
TProductInfo pInfo;
@@ -143,12 +126,10 @@ void HelloWorld::eventMenuCallback(Object* pSender)
MyPurchase::sharedPurchase()->payByMode(pInfo, mode);
}
-void HelloWorld::menuCloseCallback(Object* pSender)
+void TestIAP::menuBackCallback(Object* pSender)
{
MyPurchase::purgePurchase();
- Director::sharedDirector()->end();
-#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
- exit(0);
-#endif
+ Scene* newScene = HelloWorld::scene();
+ Director::sharedDirector()->replaceScene(newScene);
}
diff --git a/plugin/samples/HelloAnalytics/Classes/HelloWorldScene.h b/plugin/samples/HelloPlugins/Classes/TestIAP/TestIAPScene.h
similarity index 86%
rename from plugin/samples/HelloAnalytics/Classes/HelloWorldScene.h
rename to plugin/samples/HelloPlugins/Classes/TestIAP/TestIAPScene.h
index 1b5c1191ea..4929bdfd40 100644
--- a/plugin/samples/HelloAnalytics/Classes/HelloWorldScene.h
+++ b/plugin/samples/HelloPlugins/Classes/TestIAP/TestIAPScene.h
@@ -21,12 +21,12 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
-#ifndef __HELLOWORLD_SCENE_H__
-#define __HELLOWORLD_SCENE_H__
+#ifndef __TEST_IAP_SCENE_H__
+#define __TEST_IAP_SCENE_H__
#include "cocos2d.h"
-class HelloWorld : public cocos2d::Layer
+class TestIAP : public cocos2d::Layer
{
public:
// Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone
@@ -36,12 +36,11 @@ public:
static cocos2d::Scene* scene();
// a selector callback
- void menuCloseCallback(Object* pSender);
+ void menuBackCallback(Object* pSender);
void eventMenuCallback(Object* pSender);
- void reloadPluginMenuCallback(Object* pSender);
// implement the "static node()" method manually
- CREATE_FUNC(HelloWorld);
+ CREATE_FUNC(TestIAP);
};
-#endif // __HELLOWORLD_SCENE_H__
+#endif // __TEST_IAP_SCENE_H__
diff --git a/plugin/samples/HelloShare/Classes/MyShareManager.cpp b/plugin/samples/HelloPlugins/Classes/TestShare/MyShareManager.cpp
similarity index 95%
rename from plugin/samples/HelloShare/Classes/MyShareManager.cpp
rename to plugin/samples/HelloPlugins/Classes/TestShare/MyShareManager.cpp
index d431ff9ed2..97f6d34174 100644
--- a/plugin/samples/HelloShare/Classes/MyShareManager.cpp
+++ b/plugin/samples/HelloPlugins/Classes/TestShare/MyShareManager.cpp
@@ -48,7 +48,7 @@ MyShareManager::~MyShareManager()
}
}
-MyShareManager* MyShareManager::sharedShareManager()
+MyShareManager* MyShareManager::sharedManager()
{
if (s_pManager == NULL) {
s_pManager = new MyShareManager();
diff --git a/plugin/samples/HelloShare/Classes/MyShareManager.h b/plugin/samples/HelloPlugins/Classes/TestShare/MyShareManager.h
similarity index 97%
rename from plugin/samples/HelloShare/Classes/MyShareManager.h
rename to plugin/samples/HelloPlugins/Classes/TestShare/MyShareManager.h
index 32aadd666a..4521a57b6c 100755
--- a/plugin/samples/HelloShare/Classes/MyShareManager.h
+++ b/plugin/samples/HelloPlugins/Classes/TestShare/MyShareManager.h
@@ -35,7 +35,7 @@ public:
class MyShareManager
{
public:
- static MyShareManager* sharedShareManager();
+ static MyShareManager* sharedManager();
static void purgeManager();
typedef enum {
diff --git a/plugin/samples/HelloShare/Classes/HelloWorldScene.cpp b/plugin/samples/HelloPlugins/Classes/TestShare/TestShareScene.cpp
similarity index 66%
rename from plugin/samples/HelloShare/Classes/HelloWorldScene.cpp
rename to plugin/samples/HelloPlugins/Classes/TestShare/TestShareScene.cpp
index 90013730f6..5b9d8043e2 100644
--- a/plugin/samples/HelloShare/Classes/HelloWorldScene.cpp
+++ b/plugin/samples/HelloPlugins/Classes/TestShare/TestShareScene.cpp
@@ -21,10 +21,11 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
-#include "HelloWorldScene.h"
+#include "TestShareScene.h"
#include "PluginManager.h"
#include "AppDelegate.h"
#include "MyShareManager.h"
+#include "HelloWorldScene.h"
using namespace cocos2d;
using namespace cocos2d::plugin;
@@ -44,13 +45,13 @@ static EventMenuItem s_EventMenuItem[] = {
{"weibo.png", TAG_SHARE_BY_WEIBO}
};
-Scene* HelloWorld::scene()
+Scene* TestShare::scene()
{
// 'scene' is an autorelease object
Scene *scene = Scene::create();
// 'layer' is an autorelease object
- HelloWorld *layer = HelloWorld::create();
+ TestShare *layer = TestShare::create();
// add layer as a child to scene
scene->addChild(layer);
@@ -60,7 +61,7 @@ Scene* HelloWorld::scene()
}
// on "init" you need to initialize your instance
-bool HelloWorld::init()
+bool TestShare::init()
{
//////////////////////////////
// 1. super init first
@@ -69,30 +70,23 @@ bool HelloWorld::init()
return false;
}
- Size size = Director::sharedDirector()->getVisibleSize();
+ MyShareManager::sharedManager()->loadSharePlugin();
- Sprite* pBackground = Sprite::create("background.png");
- pBackground->setPosition(ccp(size.width / 2, size.height / 2));
- addChild(pBackground);
/////////////////////////////
// 2. add a menu item with "X" image, which is clicked to quit the program
// you may modify it.
EGLView* pEGLView = EGLView::sharedOpenGLView();
Point posBR = ccp(pEGLView->getVisibleOrigin().x + pEGLView->getVisibleSize().width, pEGLView->getVisibleOrigin().y);
- Point posBC = ccp(pEGLView->getVisibleOrigin().x + pEGLView->getVisibleSize().width/2, pEGLView->getVisibleOrigin().y);
Point posTL = ccp(pEGLView->getVisibleOrigin().x, pEGLView->getVisibleOrigin().y + pEGLView->getVisibleSize().height);
// add a "close" icon to exit the progress. it's an autorelease object
- MenuItemImage *pCloseItem = MenuItemImage::create(
- "CloseNormal.png",
- "CloseSelected.png",
- this,
- menu_selector(HelloWorld::menuCloseCallback) );
- pCloseItem->setPosition( ccp(posBR.x - 20, posBR.y + 20) );
+ MenuItemFont *pBackItem = MenuItemFont::create("Back", CC_CALLBACK_1(TestShare::menuBackCallback, this));
+ Size backSize = pBackItem->getContentSize();
+ pBackItem->setPosition(ccpAdd(posBR, ccp(- backSize.width / 2, backSize.height / 2)));
// create menu, it's an autorelease object
- Menu* pMenu = Menu::create(pCloseItem, NULL);
+ Menu* pMenu = Menu::create(pBackItem, NULL);
pMenu->setPosition( PointZero );
this->addChild(pMenu, 1);
@@ -101,8 +95,7 @@ bool HelloWorld::init()
int line = 0;
int row = 0;
for (int i = 0; i < sizeof(s_EventMenuItem)/sizeof(s_EventMenuItem[0]); i++) {
- MenuItemImage* pMenuItem = MenuItemImage::create(s_EventMenuItem[i].id.c_str(), s_EventMenuItem[i].id.c_str(),
- this, menu_selector(HelloWorld::eventMenuCallback));
+ MenuItemImage* pMenuItem = MenuItemImage::create(s_EventMenuItem[i].id.c_str(), s_EventMenuItem[i].id.c_str(), CC_CALLBACK_1(TestShare::eventMenuCallback, this));
pMenu->addChild(pMenuItem, 0, s_EventMenuItem[i].tag);
Point pos = ccpAdd(beginPos, ccp(posStep.x * row, posStep.y * line));
@@ -117,36 +110,22 @@ bool HelloWorld::init()
pMenuItem->setPosition(pos);
}
- LabelTTF* label = LabelTTF::create("Reload all plugins", "Arial", 24);
- MenuItemLabel* pMenuItem = MenuItemLabel::create(label, this, menu_selector(HelloWorld::reloadPluginMenuCallback));
- pMenuItem->setAnchorPoint(ccp(0.5f, 0));
- pMenu->addChild(pMenuItem, 0);
- pMenuItem->setPosition(posBC);
-
return true;
}
-void HelloWorld::reloadPluginMenuCallback(Object* pSender)
-{
- MyShareManager::sharedShareManager()->unloadSharePlugin();
- MyShareManager::sharedShareManager()->loadSharePlugin();
-}
-
-void HelloWorld::eventMenuCallback(Object* pSender)
+void TestShare::eventMenuCallback(Object* pSender)
{
MenuItemLabel* pMenuItem = (MenuItemLabel*)pSender;
TShareInfo pInfo;
pInfo["SharedText"] = "Share message : HelloShare!";
// pInfo["SharedImagePath"] = "Full/path/to/image";
MyShareManager::MyShareMode mode = (MyShareManager::MyShareMode) (pMenuItem->getTag() - TAG_SHARE_BY_TWWITER + 1);
- MyShareManager::sharedShareManager()->shareByMode(pInfo, mode);
+ MyShareManager::sharedManager()->shareByMode(pInfo, mode);
}
-void HelloWorld::menuCloseCallback(Object* pSender)
+void TestShare::menuBackCallback(Object* pSender)
{
MyShareManager::purgeManager();
- Director::sharedDirector()->end();
-#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
- exit(0);
-#endif
+ Scene* newScene = HelloWorld::scene();
+ Director::sharedDirector()->replaceScene(newScene);
}
diff --git a/plugin/samples/HelloIAP/Classes/HelloWorldScene.h b/plugin/samples/HelloPlugins/Classes/TestShare/TestShareScene.h
similarity index 86%
rename from plugin/samples/HelloIAP/Classes/HelloWorldScene.h
rename to plugin/samples/HelloPlugins/Classes/TestShare/TestShareScene.h
index 1b5c1191ea..c49da10706 100644
--- a/plugin/samples/HelloIAP/Classes/HelloWorldScene.h
+++ b/plugin/samples/HelloPlugins/Classes/TestShare/TestShareScene.h
@@ -21,12 +21,12 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
-#ifndef __HELLOWORLD_SCENE_H__
-#define __HELLOWORLD_SCENE_H__
+#ifndef __TEST_SHARE_SCENE_H__
+#define __TEST_SHARE_SCENE_H__
#include "cocos2d.h"
-class HelloWorld : public cocos2d::Layer
+class TestShare : public cocos2d::Layer
{
public:
// Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone
@@ -36,12 +36,11 @@ public:
static cocos2d::Scene* scene();
// a selector callback
- void menuCloseCallback(Object* pSender);
+ void menuBackCallback(Object* pSender);
void eventMenuCallback(Object* pSender);
- void reloadPluginMenuCallback(Object* pSender);
// implement the "static node()" method manually
- CREATE_FUNC(HelloWorld);
+ CREATE_FUNC(TestShare);
};
-#endif // __HELLOWORLD_SCENE_H__
+#endif // __TEST_SHARE_SCENE_H__
diff --git a/plugin/samples/HelloUser/Classes/MyUserManager.cpp b/plugin/samples/HelloPlugins/Classes/TestUser/MyUserManager.cpp
similarity index 100%
rename from plugin/samples/HelloUser/Classes/MyUserManager.cpp
rename to plugin/samples/HelloPlugins/Classes/TestUser/MyUserManager.cpp
diff --git a/plugin/samples/HelloUser/Classes/MyUserManager.h b/plugin/samples/HelloPlugins/Classes/TestUser/MyUserManager.h
similarity index 100%
rename from plugin/samples/HelloUser/Classes/MyUserManager.h
rename to plugin/samples/HelloPlugins/Classes/TestUser/MyUserManager.h
diff --git a/plugin/samples/HelloUser/Classes/HelloWorldScene.cpp b/plugin/samples/HelloPlugins/Classes/TestUser/TestUserScene.cpp
similarity index 71%
rename from plugin/samples/HelloUser/Classes/HelloWorldScene.cpp
rename to plugin/samples/HelloPlugins/Classes/TestUser/TestUserScene.cpp
index 4d6326ff8f..fc18b4b597 100644
--- a/plugin/samples/HelloUser/Classes/HelloWorldScene.cpp
+++ b/plugin/samples/HelloPlugins/Classes/TestUser/TestUserScene.cpp
@@ -1,5 +1,6 @@
-#include "HelloWorldScene.h"
+#include "TestUserScene.h"
#include "MyUserManager.h"
+#include "HelloWorldScene.h"
USING_NS_CC;
@@ -8,13 +9,13 @@ const std::string s_aTestCases[] = {
"ND91",
};
-Scene* HelloWorld::scene()
+Scene* TestUser::scene()
{
// 'scene' is an autorelease object
Scene *scene = Scene::create();
// 'layer' is an autorelease object
- HelloWorld *layer = HelloWorld::create();
+ TestUser *layer = TestUser::create();
// add layer as a child to scene
scene->addChild(layer);
@@ -24,7 +25,7 @@ Scene* HelloWorld::scene()
}
// on "init" you need to initialize your instance
-bool HelloWorld::init()
+bool TestUser::init()
{
//////////////////////////////
// 1. super init first
@@ -33,42 +34,40 @@ bool HelloWorld::init()
return false;
}
+ MyUserManager::sharedManager()->loadPlugin();
Size visibleSize = Director::sharedDirector()->getVisibleSize();
Point origin = Director::sharedDirector()->getVisibleOrigin();
Point posMid = ccp(origin.x + visibleSize.width / 2, origin.y + visibleSize.height / 2);
+ Point posBR = ccp(origin.x + visibleSize.width, origin.y);
/////////////////////////////
// 2. add a menu item with "X" image, which is clicked to quit the program
// you may modify it.
// add a "close" icon to exit the progress. it's an autorelease object
- MenuItemImage *pCloseItem = MenuItemImage::create(
- "CloseNormal.png",
- "CloseSelected.png",
- CC_CALLBACK_1(HelloWorld::menuCloseCallback, this));
-
- pCloseItem->setPosition(ccp(origin.x + visibleSize.width - pCloseItem->getContentSize().width/2 ,
- origin.y + pCloseItem->getContentSize().height/2));
+ MenuItemFont *pBackItem = MenuItemFont::create("Back", CC_CALLBACK_1(TestUser::menuBackCallback, this));
+ Size backSize = pBackItem->getContentSize();
+ pBackItem->setPosition(ccpAdd(posBR, ccp(- backSize.width / 2, backSize.height / 2)));
// create menu, it's an autorelease object
- Menu* pMenu = Menu::create(pCloseItem, NULL);
+ Menu* pMenu = Menu::create(pBackItem, NULL);
pMenu->setPosition(PointZero);
LabelTTF* label1 = LabelTTF::create("Login", "Arial", 32);
- MenuItemLabel* pItemLogin = MenuItemLabel::create(label1, CC_CALLBACK_1(HelloWorld::testLogin, this));
+ MenuItemLabel* pItemLogin = MenuItemLabel::create(label1, CC_CALLBACK_1(TestUser::testLogin, this));
pItemLogin->setAnchorPoint(ccp(0.5f, 0));
pMenu->addChild(pItemLogin, 0);
pItemLogin->setPosition(ccpAdd(posMid, ccp(-100, -120)));
LabelTTF* label2 = LabelTTF::create("Logout", "Arial", 32);
- MenuItemLabel* pItemLogout = MenuItemLabel::create(label2, CC_CALLBACK_1(HelloWorld::testLogout, this));
+ MenuItemLabel* pItemLogout = MenuItemLabel::create(label2, CC_CALLBACK_1(TestUser::testLogout, this));
pItemLogout->setAnchorPoint(ccp(0.5f, 0));
pMenu->addChild(pItemLogout, 0);
pItemLogout->setPosition(ccpAdd(posMid, ccp(100, -120)));
// create optional menu
// cases item
- _caseItem = MenuItemToggle::createWithCallback(CC_CALLBACK_1(HelloWorld::caseChanged, this),
+ _caseItem = MenuItemToggle::createWithCallback(CC_CALLBACK_1(TestUser::caseChanged, this),
MenuItemFont::create( s_aTestCases[0].c_str() ),
NULL );
int caseLen = sizeof(s_aTestCases) / sizeof(std::string);
@@ -85,26 +84,25 @@ bool HelloWorld::init()
return true;
}
-void HelloWorld::caseChanged(Object* pSender)
+void TestUser::caseChanged(Object* pSender)
{
_selectedCase = _caseItem->getSelectedIndex();
}
-void HelloWorld::testLogin(Object* pSender)
+void TestUser::testLogin(Object* pSender)
{
MyUserManager::sharedManager()->loginByMode((MyUserManager::MyUserMode) (_selectedCase + 1));
}
-void HelloWorld::testLogout(Object* pSender)
+void TestUser::testLogout(Object* pSender)
{
MyUserManager::sharedManager()->logoutByMode((MyUserManager::MyUserMode) (_selectedCase + 1));
}
-void HelloWorld::menuCloseCallback(Object* pSender)
+void TestUser::menuBackCallback(Object* pSender)
{
- Director::sharedDirector()->end();
+ MyUserManager::purgeManager();
-#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
- exit(0);
-#endif
+ Scene* newScene = HelloWorld::scene();
+ Director::sharedDirector()->replaceScene(newScene);
}
diff --git a/plugin/samples/HelloPlugins/Classes/TestUser/TestUserScene.h b/plugin/samples/HelloPlugins/Classes/TestUser/TestUserScene.h
new file mode 100644
index 0000000000..f146d7b0ec
--- /dev/null
+++ b/plugin/samples/HelloPlugins/Classes/TestUser/TestUserScene.h
@@ -0,0 +1,30 @@
+#ifndef __TEST_USER_SCENE_H__
+#define __TEST_USER_SCENE_H__
+
+#include "cocos2d.h"
+
+class TestUser : public cocos2d::Layer
+{
+public:
+ // Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone
+ virtual bool init();
+
+ // there's no 'id' in cpp, so we recommend returning the class instance pointer
+ static cocos2d::Scene* scene();
+
+ // a selector callback
+ void menuBackCallback(Object* pSender);
+ void testLogin(Object* pSender);
+ void testLogout(Object* pSender);
+
+ void caseChanged(Object* pSender);
+
+ // implement the "static node()" method manually
+ CREATE_FUNC(TestUser);
+
+private:
+ cocos2d::MenuItemToggle* _caseItem;
+ int _selectedCase;
+};
+
+#endif // __TEST_USER_SCENE_H__
diff --git a/plugin/samples/HelloShare/proj.android/.classpath b/plugin/samples/HelloPlugins/proj.android/.classpath
old mode 100755
new mode 100644
similarity index 50%
rename from plugin/samples/HelloShare/proj.android/.classpath
rename to plugin/samples/HelloPlugins/proj.android/.classpath
index 4ace7547e1..78c6a50901
--- a/plugin/samples/HelloShare/proj.android/.classpath
+++ b/plugin/samples/HelloPlugins/proj.android/.classpath
@@ -4,13 +4,25 @@
+
+
+
+
+
+
+
+
+
+
+
-
+
+
diff --git a/plugin/samples/HelloUser/proj.android/.project b/plugin/samples/HelloPlugins/proj.android/.project
similarity index 97%
rename from plugin/samples/HelloUser/proj.android/.project
rename to plugin/samples/HelloPlugins/proj.android/.project
index b8d9f4a665..866cd15eb9 100644
--- a/plugin/samples/HelloUser/proj.android/.project
+++ b/plugin/samples/HelloPlugins/proj.android/.project
@@ -1,6 +1,6 @@
- HelloUser
+ HelloPlugins
diff --git a/plugin/samples/HelloPlugins/proj.android/AndroidManifest.xml b/plugin/samples/HelloPlugins/proj.android/AndroidManifest.xml
new file mode 100644
index 0000000000..4e3f48d5d7
--- /dev/null
+++ b/plugin/samples/HelloPlugins/proj.android/AndroidManifest.xml
@@ -0,0 +1,58 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/plugin/samples/HelloAds/proj.android/README.md b/plugin/samples/HelloPlugins/proj.android/README.md
similarity index 100%
rename from plugin/samples/HelloAds/proj.android/README.md
rename to plugin/samples/HelloPlugins/proj.android/README.md
diff --git a/plugin/samples/HelloAds/proj.android/ant.properties b/plugin/samples/HelloPlugins/proj.android/ant.properties
similarity index 100%
rename from plugin/samples/HelloAds/proj.android/ant.properties
rename to plugin/samples/HelloPlugins/proj.android/ant.properties
diff --git a/plugin/samples/HelloUser/proj.android/build.xml b/plugin/samples/HelloPlugins/proj.android/build.xml
similarity index 98%
rename from plugin/samples/HelloUser/proj.android/build.xml
rename to plugin/samples/HelloPlugins/proj.android/build.xml
index 28a0fcf8df..6b1565b670 100644
--- a/plugin/samples/HelloUser/proj.android/build.xml
+++ b/plugin/samples/HelloPlugins/proj.android/build.xml
@@ -1,5 +1,5 @@
-
+
-
-
-
diff --git a/plugin/samples/HelloShare/proj.android/ant.properties b/plugin/samples/HelloShare/proj.android/ant.properties
deleted file mode 100755
index b0971e891e..0000000000
--- a/plugin/samples/HelloShare/proj.android/ant.properties
+++ /dev/null
@@ -1,17 +0,0 @@
-# This file is used to override default values used by the Ant build system.
-#
-# This file must be checked into Version Control Systems, as it is
-# integral to the build system of your project.
-
-# This file is only used by the Ant script.
-
-# You can use this to override default values such as
-# 'source.dir' for the location of your java source folder and
-# 'out.dir' for the location of your output folder.
-
-# You can also use it define how the release builds are signed by declaring
-# the following properties:
-# 'key.store' for the location of your keystore and
-# 'key.alias' for the name of the key to use.
-# The password will be asked during the build when you use the 'release' target.
-
diff --git a/plugin/samples/HelloShare/proj.android/build.xml b/plugin/samples/HelloShare/proj.android/build.xml
deleted file mode 100755
index b3f20e0181..0000000000
--- a/plugin/samples/HelloShare/proj.android/build.xml
+++ /dev/null
@@ -1,92 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugin/samples/HelloShare/proj.android/build_native.sh b/plugin/samples/HelloShare/proj.android/build_native.sh
deleted file mode 100755
index 0e800b7d70..0000000000
--- a/plugin/samples/HelloShare/proj.android/build_native.sh
+++ /dev/null
@@ -1,81 +0,0 @@
-APPNAME="HelloSocial"
-
-# options
-
-buildexternalsfromsource=
-
-usage(){
-cat << EOF
-usage: $0 [options]
-
-Build C/C++ code for $APPNAME using Android NDK
-
-OPTIONS:
--s Build externals from source
--h this help
-EOF
-}
-
-while getopts "sh" OPTION; do
-case "$OPTION" in
-s)
-buildexternalsfromsource=1
-;;
-h)
-usage
-exit 0
-;;
-esac
-done
-
-# paths
-
-if [ -z "${NDK_ROOT+aaa}" ];then
-echo "please define NDK_ROOT"
-exit 1
-fi
-
-DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-# ... use paths relative to current directory
-PLUGIN_ROOT="$DIR/../../.."
-COCOS2DX_ROOT="$DIR/../../../.."
-APP_ROOT="$DIR/.."
-APP_ANDROID_ROOT="$DIR"
-
-echo "PLUGIN_ROOT = $PLUGIN_ROOT"
-echo "NDK_ROOT = $NDK_ROOT"
-echo "COCOS2DX_ROOT = $COCOS2DX_ROOT"
-echo "APP_ROOT = $APP_ROOT"
-echo "APP_ANDROID_ROOT = $APP_ANDROID_ROOT"
-echo "---------------------------------------------------------"
-
-# make sure assets is exist
-if [ -d "$APP_ANDROID_ROOT"/assets ]; then
- rm -rf "$APP_ANDROID_ROOT"/assets
-fi
-
-mkdir "$APP_ANDROID_ROOT"/assets
-
-# copy resources
-for file in "$APP_ROOT"/Resources/*
-do
-if [ -d "$file" ]; then
- cp -rf "$file" "$APP_ANDROID_ROOT"/assets
-fi
-
-if [ -f "$file" ]; then
- cp "$file" "$APP_ANDROID_ROOT"/assets
-fi
-done
-
-if [[ "$buildexternalsfromsource" ]]; then
- echo "Building external dependencies from source"
- set -x
- "$NDK_ROOT"/ndk-build -j 4 -C "$APP_ANDROID_ROOT" $* \
- "NDK_MODULE_PATH=${PLUGIN_ROOT}/publish:${COCOS2DX_ROOT}:${COCOS2DX_ROOT}/cocos2dx/platform/third_party/android/source"
-else
- echo "Using prebuilt externals"
- set -x
- "$NDK_ROOT"/ndk-build -j 4 -C "$APP_ANDROID_ROOT" $* \
- "NDK_MODULE_PATH=${PLUGIN_ROOT}/publish:${COCOS2DX_ROOT}:${COCOS2DX_ROOT}/cocos2dx/platform/third_party/android/prebuilt"
-fi
diff --git a/plugin/samples/HelloShare/proj.android/jni/Android.mk b/plugin/samples/HelloShare/proj.android/jni/Android.mk
deleted file mode 100755
index 61b1a4fef2..0000000000
--- a/plugin/samples/HelloShare/proj.android/jni/Android.mk
+++ /dev/null
@@ -1,22 +0,0 @@
-LOCAL_PATH := $(call my-dir)
-
-include $(CLEAR_VARS)
-
-LOCAL_MODULE := game_shared
-
-LOCAL_MODULE_FILENAME := libgame
-
-LOCAL_SRC_FILES := hellocpp/main.cpp \
- ../../Classes/AppDelegate.cpp \
- ../../Classes/HelloWorldScene.cpp \
- ../../Classes/MyShareManager.cpp
-
-LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes
-
-LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static \
- PluginProtocolStatic
-
-include $(BUILD_SHARED_LIBRARY)
-
-$(call import-module,cocos2dx)
-$(call import-module,protocols/android)
diff --git a/plugin/samples/HelloShare/proj.android/jni/Application.mk b/plugin/samples/HelloShare/proj.android/jni/Application.mk
deleted file mode 100755
index 488132832e..0000000000
--- a/plugin/samples/HelloShare/proj.android/jni/Application.mk
+++ /dev/null
@@ -1,3 +0,0 @@
-APP_STL := gnustl_static
-APP_CPPFLAGS += -frtti -std=c++11
-NDK_TOOLCHAIN_VERSION=4.7
diff --git a/plugin/samples/HelloShare/proj.android/jni/hellocpp/main.cpp b/plugin/samples/HelloShare/proj.android/jni/hellocpp/main.cpp
deleted file mode 100644
index edb9402593..0000000000
--- a/plugin/samples/HelloShare/proj.android/jni/hellocpp/main.cpp
+++ /dev/null
@@ -1,47 +0,0 @@
-#include "AppDelegate.h"
-#include "platform/android/jni/JniHelper.h"
-#include "PluginJniHelper.h"
-#include
-#include
-
-#include "HelloWorldScene.h"
-
-#define LOG_TAG "main"
-#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__)
-
-using namespace cocos2d;
-
-extern "C"
-{
-
-jint JNI_OnLoad(JavaVM *vm, void *reserved)
-{
- JniHelper::setJavaVM(vm);
- PluginJniHelper::setJavaVM(vm);
-
- return JNI_VERSION_1_4;
-}
-
-void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thiz, jint w, jint h)
-{
- if (!Director::sharedDirector()->getOpenGLView())
- {
- EGLView *view = EGLView::sharedOpenGLView();
- view->setFrameSize(w, h);
-
- AppDelegate *pAppDelegate = new AppDelegate();
- Application::sharedApplication()->run();
- }
- else
- {
- ccDrawInit();
- ccGLInvalidateStateCache();
-
- ShaderCache::sharedShaderCache()->reloadDefaultShaders();
- TextureCache::reloadAllTextures();
- NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
- Director::sharedDirector()->setGLDefaultValues();
- }
-}
-
-}
diff --git a/plugin/samples/HelloShare/proj.android/proguard-project.txt b/plugin/samples/HelloShare/proj.android/proguard-project.txt
deleted file mode 100755
index b60ae7ea07..0000000000
--- a/plugin/samples/HelloShare/proj.android/proguard-project.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-# To enable ProGuard in your project, edit project.properties
-# to define the proguard.config property as described in that file.
-#
-# Add project specific ProGuard rules here.
-# By default, the flags in this file are appended to flags specified
-# in ${sdk.dir}/tools/proguard/proguard-android.txt
-# You can edit the include path and order by changing the ProGuard
-# include property in project.properties.
-#
-# For more details, see
-# http://developer.android.com/guide/developing/tools/proguard.html
-
-# Add any project specific keep options here:
-
-# If your project uses WebView with JS, uncomment the following
-# and specify the fully qualified class name to the JavaScript interface
-# class:
-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
-# public *;
-#}
diff --git a/plugin/samples/HelloShare/proj.android/project.properties b/plugin/samples/HelloShare/proj.android/project.properties
deleted file mode 100755
index e4ad2bf52d..0000000000
--- a/plugin/samples/HelloShare/proj.android/project.properties
+++ /dev/null
@@ -1,15 +0,0 @@
-# This file is automatically generated by Android Tools.
-# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
-#
-# This file must be checked in Version Control Systems.
-#
-# To customize properties used by the Ant build system edit
-# "ant.properties", and override values to adapt the script to your
-# project structure.
-#
-# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
-#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
-
-# Project target.
-target=android-10
-android.library.reference.1=../../../../cocos2dx/platform/android/java
diff --git a/plugin/samples/HelloShare/proj.android/res/values/strings.xml b/plugin/samples/HelloShare/proj.android/res/values/strings.xml
deleted file mode 100755
index bd727b6167..0000000000
--- a/plugin/samples/HelloShare/proj.android/res/values/strings.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
- HelloShare
-
diff --git a/plugin/samples/HelloShare/proj.android/src/org/cocos2dx/helloShare/HelloShare.java b/plugin/samples/HelloShare/proj.android/src/org/cocos2dx/helloShare/HelloShare.java
deleted file mode 100755
index af2033f677..0000000000
--- a/plugin/samples/HelloShare/proj.android/src/org/cocos2dx/helloShare/HelloShare.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010-2012 cocos2d-x.org
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-****************************************************************************/
-package org.cocos2dx.helloShare;
-
-import org.cocos2dx.lib.Cocos2dxActivity;
-import org.cocos2dx.lib.Cocos2dxGLSurfaceView;
-import org.cocos2dx.plugin.PluginWrapper;
-
-import android.os.Bundle;
-
-public class HelloShare extends Cocos2dxActivity{
-
- protected void onCreate(Bundle savedInstanceState){
- super.onCreate(savedInstanceState);
- PluginWrapper.init(this);
- PluginWrapper.setGLSurfaceView(Cocos2dxGLSurfaceView.getInstance());
- }
-
- static {
- System.loadLibrary("game");
- }
-}
diff --git a/plugin/samples/HelloShare/proj.ios/AppController.mm b/plugin/samples/HelloShare/proj.ios/AppController.mm
deleted file mode 100644
index e7dece6458..0000000000
--- a/plugin/samples/HelloShare/proj.ios/AppController.mm
+++ /dev/null
@@ -1,137 +0,0 @@
-/****************************************************************************
-Copyright (c) 2012-2013 cocos2d-x.org
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-****************************************************************************/
-
-#import "AppController.h"
-#import "EAGLView.h"
-#import "cocos2d.h"
-#import "AppDelegate.h"
-#import "RootViewController.h"
-
-@implementation AppController
-
-#pragma mark -
-#pragma mark Application lifecycle
-
-// cocos2d application instance
-static AppDelegate s_sharedApplication;
-
-- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
-
- // Override point for customization after application launch.
-
- // Add the view controller's view to the window and display.
- window = [[UIWindow alloc] initWithFrame: [[UIScreen mainScreen] bounds]];
-
- // Init the CCEAGLView
- CCEAGLView *__glView = [CCEAGLView viewWithFrame: [window bounds]
- pixelFormat: kEAGLColorFormatRGB565
- depthFormat: GL_DEPTH24_STENCIL8_OES
- preserveBackbuffer: NO
- sharegroup: nil
- multiSampling: NO
- numberOfSamples: 0];
- [__glView setMultipleTouchEnabled:YES];
-
- // Use RootViewController manage CCEAGLView
- viewController = [[RootViewController alloc] initWithNibName:nil bundle:nil];
- viewController.wantsFullScreenLayout = YES;
- viewController.view = __glView;
-
- // Set RootViewController to window
- if ( [[UIDevice currentDevice].systemVersion floatValue] < 6.0)
- {
- // warning: addSubView doesn't work on iOS6
- [window addSubview: viewController.view];
- }
- else
- {
- // use this method on ios6
- [window setRootViewController:viewController];
- }
-
- [window makeKeyAndVisible];
-
- [[UIApplication sharedApplication] setStatusBarHidden:true];
-
- cocos2d::Application::sharedApplication()->run();
-
- return YES;
-}
-
-
-- (void)applicationWillResignActive:(UIApplication *)application {
- /*
- Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
- Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
- */
- cocos2d::Director::sharedDirector()->pause();
-}
-
-- (void)applicationDidBecomeActive:(UIApplication *)application {
- /*
- Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
- */
- cocos2d::Director::sharedDirector()->resume();
-}
-
-- (void)applicationDidEnterBackground:(UIApplication *)application {
- /*
- Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
- If your application supports background execution, called instead of applicationWillTerminate: when the user quits.
- */
- cocos2d::Application::sharedApplication()->applicationDidEnterBackground();
-}
-
-- (void)applicationWillEnterForeground:(UIApplication *)application {
- /*
- Called as part of transition from the background to the inactive state: here you can undo many of the changes made on entering the background.
- */
- cocos2d::Application::sharedApplication()->applicationWillEnterForeground();
-}
-
-- (void)applicationWillTerminate:(UIApplication *)application {
- /*
- Called when the application is about to terminate.
- See also applicationDidEnterBackground:.
- */
-}
-
-
-#pragma mark -
-#pragma mark Memory management
-
-- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application {
- /*
- Free up as much memory as possible by purging cached data objects that can be recreated (or reloaded from disk) later.
- */
-}
-
-
-- (void)dealloc {
- [window release];
- [super dealloc];
-}
-
-
-@end
diff --git a/plugin/samples/HelloShare/proj.ios/Default-568h@2x.png.REMOVED.git-id b/plugin/samples/HelloShare/proj.ios/Default-568h@2x.png.REMOVED.git-id
deleted file mode 100644
index 8f5838f3a8..0000000000
--- a/plugin/samples/HelloShare/proj.ios/Default-568h@2x.png.REMOVED.git-id
+++ /dev/null
@@ -1 +0,0 @@
-66c6d1cead373b45218424f6a82f370897e443e4
\ No newline at end of file
diff --git a/plugin/samples/HelloShare/proj.ios/Default@2x.png.REMOVED.git-id b/plugin/samples/HelloShare/proj.ios/Default@2x.png.REMOVED.git-id
deleted file mode 100644
index 8843505b20..0000000000
--- a/plugin/samples/HelloShare/proj.ios/Default@2x.png.REMOVED.git-id
+++ /dev/null
@@ -1 +0,0 @@
-84689888a14a2123d2b39f7f2f61be8c15207479
\ No newline at end of file
diff --git a/plugin/samples/HelloShare/proj.ios/HelloShare.xcodeproj/project.pbxproj b/plugin/samples/HelloShare/proj.ios/HelloShare.xcodeproj/project.pbxproj
deleted file mode 100644
index 08b0d37600..0000000000
--- a/plugin/samples/HelloShare/proj.ios/HelloShare.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,605 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 46;
- objects = {
-
-/* Begin PBXBuildFile section */
- 15A3DAEB1682F8A6002FB0C5 /* CDAudioManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 15A3DA861682F8A6002FB0C5 /* CDAudioManager.m */; };
- 15A3DAEC1682F8A6002FB0C5 /* CDOpenALSupport.m in Sources */ = {isa = PBXBuildFile; fileRef = 15A3DA891682F8A6002FB0C5 /* CDOpenALSupport.m */; };
- 15A3DAED1682F8A6002FB0C5 /* CocosDenshion.m in Sources */ = {isa = PBXBuildFile; fileRef = 15A3DA8B1682F8A6002FB0C5 /* CocosDenshion.m */; };
- 15A3DAEE1682F8A6002FB0C5 /* SimpleAudioEngine.mm in Sources */ = {isa = PBXBuildFile; fileRef = 15A3DA8C1682F8A6002FB0C5 /* SimpleAudioEngine.mm */; };
- 15A3DAEF1682F8A6002FB0C5 /* SimpleAudioEngine_objc.m in Sources */ = {isa = PBXBuildFile; fileRef = 15A3DA8E1682F8A6002FB0C5 /* SimpleAudioEngine_objc.m */; };
- 1AC3624916D4A1E8000847F2 /* AppController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1AC3624316D4A1E8000847F2 /* AppController.mm */; };
- 1AC3624B16D4A1E8000847F2 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 1AC3624516D4A1E8000847F2 /* main.m */; };
- 1AFAF8B716D35DE700DB1158 /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AFAF8B316D35DE700DB1158 /* AppDelegate.cpp */; };
- 1AFAF8B816D35DE700DB1158 /* HelloWorldScene.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AFAF8B516D35DE700DB1158 /* HelloWorldScene.cpp */; };
- 1AFAF8BC16D35E4900DB1158 /* CloseNormal.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AFAF8B916D35E4900DB1158 /* CloseNormal.png */; };
- 1AFAF8BD16D35E4900DB1158 /* CloseSelected.png in Resources */ = {isa = PBXBuildFile; fileRef = 1AFAF8BA16D35E4900DB1158 /* CloseSelected.png */; };
- 1AFCDA8216D4A25900906EA6 /* RootViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1AFCDA8116D4A25900906EA6 /* RootViewController.mm */; };
- 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; };
- 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; };
- 288765A50DF7441C002DB57D /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 288765A40DF7441C002DB57D /* CoreGraphics.framework */; };
- 7855E0E1153FEF240059DD9A /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 7855E0DF153FEF240059DD9A /* Default.png */; };
- BF171245129291EC00B8313A /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF170DB012928DE900B8313A /* OpenGLES.framework */; };
- BF1712461292920000B8313A /* libxml2.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = BF170DB212928DE900B8313A /* libxml2.dylib */; };
- BF1712471292920000B8313A /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = BF170DB412928DE900B8313A /* libz.dylib */; };
- BF1C47F01293687400B63C5D /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF1C47EA1293683800B63C5D /* QuartzCore.framework */; };
- D41A0AD1160F154A004552AE /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = D41A0AD0160F154A004552AE /* Default-568h@2x.png */; };
- D446FD6E16102124000ADA7B /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = D446FD6D16102124000ADA7B /* Default@2x.png */; };
- D44C620C132DFF330009C878 /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620B132DFF330009C878 /* OpenAL.framework */; };
- D44C620E132DFF430009C878 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D44C620D132DFF430009C878 /* AVFoundation.framework */; };
- D4EF949A15BD2D8B00D803EB /* Icon-57.png in Resources */ = {isa = PBXBuildFile; fileRef = D4EF949915BD2D8B00D803EB /* Icon-57.png */; };
- D4EF949C15BD2D8E00D803EB /* Icon-114.png in Resources */ = {isa = PBXBuildFile; fileRef = D4EF949B15BD2D8E00D803EB /* Icon-114.png */; };
- D4EF949E15BD2D9600D803EB /* Icon-72.png in Resources */ = {isa = PBXBuildFile; fileRef = D4EF949D15BD2D9600D803EB /* Icon-72.png */; };
- D4EF94A015BD2D9800D803EB /* Icon-144.png in Resources */ = {isa = PBXBuildFile; fileRef = D4EF949F15BD2D9800D803EB /* Icon-144.png */; };
- FAC2A80B1777FAEA00035D22 /* MyShareManager.cpp in Sources */ = {isa = PBXBuildFile; fileRef = FAC2A8091777FAEA00035D22 /* MyShareManager.cpp */; };
- FACAD8F61763061F00D75ADE /* libPluginTwitter.a in Frameworks */ = {isa = PBXBuildFile; fileRef = FACAD8F51762DC3A00D75ADE /* libPluginTwitter.a */; };
- FACAD8F81763070D00D75ADE /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FACAD8F71763070D00D75ADE /* SystemConfiguration.framework */; };
- FAE27583175DEC8600F5DA8E /* background.png in Resources */ = {isa = PBXBuildFile; fileRef = FAE27580175DEC8600F5DA8E /* background.png */; };
- FAE27584175DEC8600F5DA8E /* twitter.jpeg in Resources */ = {isa = PBXBuildFile; fileRef = FAE27581175DEC8600F5DA8E /* twitter.jpeg */; };
- FAE27585175DEC8600F5DA8E /* weibo.png in Resources */ = {isa = PBXBuildFile; fileRef = FAE27582175DEC8600F5DA8E /* weibo.png */; };
- FAE27598175DEE1900F5DA8E /* libcocos2dx.a in Frameworks */ = {isa = PBXBuildFile; fileRef = FAE2757F175DEC0D00F5DA8E /* libcocos2dx.a */; };
- FAE27599175DEE1900F5DA8E /* libPluginProtocol.a in Frameworks */ = {isa = PBXBuildFile; fileRef = FAE2758E175DED1700F5DA8E /* libPluginProtocol.a */; };
- FAE2759A175DEE1900F5DA8E /* libPluginWeibo.a in Frameworks */ = {isa = PBXBuildFile; fileRef = FAE27597175DED2400F5DA8E /* libPluginWeibo.a */; };
- FAE275A1175DEEF500F5DA8E /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FAE275A0175DEEF500F5DA8E /* AudioToolbox.framework */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
- FACAD8F41762DC3A00D75ADE /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = FACAD8ED1762DC3A00D75ADE /* PluginTwitter.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = FACAD8881762C1B500D75ADE;
- remoteInfo = PluginTwitter;
- };
- FAE2757E175DEC0D00F5DA8E /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = FAE27577175DEC0C00F5DA8E /* cocos2dx.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = 1551A33F158F2AB200E66CFE;
- remoteInfo = cocos2dx;
- };
- FAE2758D175DED1700F5DA8E /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = FAE27586175DED1700F5DA8E /* PluginProtocol.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = FA09A321168ADBC2008C1C7B;
- remoteInfo = PluginProtocol;
- };
- FAE27596175DED2400F5DA8E /* PBXContainerItemProxy */ = {
- isa = PBXContainerItemProxy;
- containerPortal = FAE2758F175DED2300F5DA8E /* PluginWeibo.xcodeproj */;
- proxyType = 2;
- remoteGlobalIDString = FAE27530175D9D2900F5DA8E;
- remoteInfo = PluginWeibo;
- };
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXFileReference section */
- 15A3DA821682F8A6002FB0C5 /* Export.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Export.h; sourceTree = ""; };
- 15A3DA831682F8A6002FB0C5 /* SimpleAudioEngine.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SimpleAudioEngine.h; sourceTree = ""; };
- 15A3DA851682F8A6002FB0C5 /* CDAudioManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CDAudioManager.h; sourceTree = ""; };
- 15A3DA861682F8A6002FB0C5 /* CDAudioManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CDAudioManager.m; sourceTree = ""; };
- 15A3DA871682F8A6002FB0C5 /* CDConfig.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CDConfig.h; sourceTree = ""; };
- 15A3DA881682F8A6002FB0C5 /* CDOpenALSupport.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CDOpenALSupport.h; sourceTree = ""; };
- 15A3DA891682F8A6002FB0C5 /* CDOpenALSupport.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CDOpenALSupport.m; sourceTree = ""; };
- 15A3DA8A1682F8A6002FB0C5 /* CocosDenshion.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CocosDenshion.h; sourceTree = ""; };
- 15A3DA8B1682F8A6002FB0C5 /* CocosDenshion.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CocosDenshion.m; sourceTree = ""; };
- 15A3DA8C1682F8A6002FB0C5 /* SimpleAudioEngine.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = SimpleAudioEngine.mm; sourceTree = ""; };
- 15A3DA8D1682F8A6002FB0C5 /* SimpleAudioEngine_objc.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SimpleAudioEngine_objc.h; sourceTree = ""; };
- 15A3DA8E1682F8A6002FB0C5 /* SimpleAudioEngine_objc.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SimpleAudioEngine_objc.m; sourceTree = ""; };
- 1AC3624216D4A1E8000847F2 /* AppController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppController.h; sourceTree = SOURCE_ROOT; };
- 1AC3624316D4A1E8000847F2 /* AppController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = AppController.mm; sourceTree = SOURCE_ROOT; };
- 1AC3624516D4A1E8000847F2 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = SOURCE_ROOT; };
- 1AC3624616D4A1E8000847F2 /* Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Prefix.pch; sourceTree = SOURCE_ROOT; };
- 1AFAF8B316D35DE700DB1158 /* AppDelegate.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = AppDelegate.cpp; path = ../Classes/AppDelegate.cpp; sourceTree = ""; };
- 1AFAF8B416D35DE700DB1158 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = ../Classes/AppDelegate.h; sourceTree = ""; };
- 1AFAF8B516D35DE700DB1158 /* HelloWorldScene.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = HelloWorldScene.cpp; path = ../Classes/HelloWorldScene.cpp; sourceTree = ""; };
- 1AFAF8B616D35DE700DB1158 /* HelloWorldScene.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = HelloWorldScene.h; path = ../Classes/HelloWorldScene.h; sourceTree = ""; };
- 1AFAF8B916D35E4900DB1158 /* CloseNormal.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = CloseNormal.png; sourceTree = ""; };
- 1AFAF8BA16D35E4900DB1158 /* CloseSelected.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = CloseSelected.png; sourceTree = ""; };
- 1AFCDA8016D4A25900906EA6 /* RootViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RootViewController.h; sourceTree = SOURCE_ROOT; };
- 1AFCDA8116D4A25900906EA6 /* RootViewController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RootViewController.mm; sourceTree = SOURCE_ROOT; };
- 1D30AB110D05D00D00671497 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
- 1D6058910D05DD3D006BFB54 /* HelloShare.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HelloShare.app; sourceTree = BUILT_PRODUCTS_DIR; };
- 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
- 288765A40DF7441C002DB57D /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
- 7855E0DF153FEF240059DD9A /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = SOURCE_ROOT; };
- BF170DB012928DE900B8313A /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = System/Library/Frameworks/OpenGLES.framework; sourceTree = SDKROOT; };
- BF170DB212928DE900B8313A /* libxml2.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libxml2.dylib; path = usr/lib/libxml2.dylib; sourceTree = SDKROOT; };
- BF170DB412928DE900B8313A /* libz.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libz.dylib; path = usr/lib/libz.dylib; sourceTree = SDKROOT; };
- BF1C47EA1293683800B63C5D /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
- D41A0AD0160F154A004552AE /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Default-568h@2x.png"; path = "../proj.ios/Default-568h@2x.png"; sourceTree = ""; };
- D446FD6D16102124000ADA7B /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Default@2x.png"; path = "../proj.ios/Default@2x.png"; sourceTree = ""; };
- D44C620B132DFF330009C878 /* OpenAL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenAL.framework; path = System/Library/Frameworks/OpenAL.framework; sourceTree = SDKROOT; };
- D44C620D132DFF430009C878 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; };
- D4EF949915BD2D8B00D803EB /* Icon-57.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-57.png"; path = "../proj.ios/Icon-57.png"; sourceTree = ""; };
- D4EF949B15BD2D8E00D803EB /* Icon-114.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-114.png"; path = "../proj.ios/Icon-114.png"; sourceTree = ""; };
- D4EF949D15BD2D9600D803EB /* Icon-72.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-72.png"; path = "../proj.ios/Icon-72.png"; sourceTree = ""; };
- D4EF949F15BD2D9800D803EB /* Icon-144.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon-144.png"; path = "../proj.ios/Icon-144.png"; sourceTree = ""; };
- D4F9F37B12E54555005CA6D2 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = SOURCE_ROOT; };
- FAC2A8091777FAEA00035D22 /* MyShareManager.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = MyShareManager.cpp; path = ../Classes/MyShareManager.cpp; sourceTree = ""; };
- FAC2A80A1777FAEA00035D22 /* MyShareManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MyShareManager.h; path = ../Classes/MyShareManager.h; sourceTree = ""; };
- FACAD8ED1762DC3A00D75ADE /* PluginTwitter.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = PluginTwitter.xcodeproj; path = ../../../plugins/twitter/proj.ios/PluginTwitter.xcodeproj; sourceTree = ""; };
- FACAD8F71763070D00D75ADE /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
- FAE27577175DEC0C00F5DA8E /* cocos2dx.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = cocos2dx.xcodeproj; path = ../../../../cocos2dx/proj.ios/cocos2dx.xcodeproj; sourceTree = ""; };
- FAE27580175DEC8600F5DA8E /* background.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = background.png; sourceTree = ""; };
- FAE27581175DEC8600F5DA8E /* twitter.jpeg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = twitter.jpeg; sourceTree = ""; };
- FAE27582175DEC8600F5DA8E /* weibo.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = weibo.png; sourceTree = ""; };
- FAE27586175DED1700F5DA8E /* PluginProtocol.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = PluginProtocol.xcodeproj; path = ../../../protocols/proj.ios/PluginProtocol.xcodeproj; sourceTree = ""; };
- FAE2758F175DED2300F5DA8E /* PluginWeibo.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = PluginWeibo.xcodeproj; path = ../../../plugins/weibo/proj.ios/PluginWeibo.xcodeproj; sourceTree = ""; };
- FAE275A0175DEEF500F5DA8E /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 1D60588F0D05DD3D006BFB54 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- FACAD8F81763070D00D75ADE /* SystemConfiguration.framework in Frameworks */,
- FACAD8F61763061F00D75ADE /* libPluginTwitter.a in Frameworks */,
- FAE275A1175DEEF500F5DA8E /* AudioToolbox.framework in Frameworks */,
- FAE27598175DEE1900F5DA8E /* libcocos2dx.a in Frameworks */,
- FAE27599175DEE1900F5DA8E /* libPluginProtocol.a in Frameworks */,
- FAE2759A175DEE1900F5DA8E /* libPluginWeibo.a in Frameworks */,
- 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */,
- 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */,
- 288765A50DF7441C002DB57D /* CoreGraphics.framework in Frameworks */,
- BF171245129291EC00B8313A /* OpenGLES.framework in Frameworks */,
- BF1712461292920000B8313A /* libxml2.dylib in Frameworks */,
- BF1712471292920000B8313A /* libz.dylib in Frameworks */,
- BF1C47F01293687400B63C5D /* QuartzCore.framework in Frameworks */,
- D44C620C132DFF330009C878 /* OpenAL.framework in Frameworks */,
- D44C620E132DFF430009C878 /* AVFoundation.framework in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 080E96DDFE201D6D7F000001 /* ios */ = {
- isa = PBXGroup;
- children = (
- 1AC3624216D4A1E8000847F2 /* AppController.h */,
- 1AC3624316D4A1E8000847F2 /* AppController.mm */,
- D4F9F37B12E54555005CA6D2 /* Info.plist */,
- 1AC3624516D4A1E8000847F2 /* main.m */,
- 1AC3624616D4A1E8000847F2 /* Prefix.pch */,
- 1AFCDA8016D4A25900906EA6 /* RootViewController.h */,
- 1AFCDA8116D4A25900906EA6 /* RootViewController.mm */,
- );
- name = ios;
- path = Classes;
- sourceTree = "";
- };
- 15A3DA6B1682F8A6002FB0C5 /* CocosDenshion */ = {
- isa = PBXGroup;
- children = (
- 15A3DA811682F8A6002FB0C5 /* include */,
- 15A3DA841682F8A6002FB0C5 /* ios */,
- );
- name = CocosDenshion;
- path = ../../../../CocosDenshion;
- sourceTree = "";
- };
- 15A3DA811682F8A6002FB0C5 /* include */ = {
- isa = PBXGroup;
- children = (
- 15A3DA821682F8A6002FB0C5 /* Export.h */,
- 15A3DA831682F8A6002FB0C5 /* SimpleAudioEngine.h */,
- );
- path = include;
- sourceTree = "";
- };
- 15A3DA841682F8A6002FB0C5 /* ios */ = {
- isa = PBXGroup;
- children = (
- 15A3DA851682F8A6002FB0C5 /* CDAudioManager.h */,
- 15A3DA861682F8A6002FB0C5 /* CDAudioManager.m */,
- 15A3DA871682F8A6002FB0C5 /* CDConfig.h */,
- 15A3DA881682F8A6002FB0C5 /* CDOpenALSupport.h */,
- 15A3DA891682F8A6002FB0C5 /* CDOpenALSupport.m */,
- 15A3DA8A1682F8A6002FB0C5 /* CocosDenshion.h */,
- 15A3DA8B1682F8A6002FB0C5 /* CocosDenshion.m */,
- 15A3DA8C1682F8A6002FB0C5 /* SimpleAudioEngine.mm */,
- 15A3DA8D1682F8A6002FB0C5 /* SimpleAudioEngine_objc.h */,
- 15A3DA8E1682F8A6002FB0C5 /* SimpleAudioEngine_objc.m */,
- );
- path = ios;
- sourceTree = "";
- };
- 15AA9C4015B7EC450033D6C2 /* Classes */ = {
- isa = PBXGroup;
- children = (
- FAC2A8091777FAEA00035D22 /* MyShareManager.cpp */,
- FAC2A80A1777FAEA00035D22 /* MyShareManager.h */,
- 1AFAF8B316D35DE700DB1158 /* AppDelegate.cpp */,
- 1AFAF8B416D35DE700DB1158 /* AppDelegate.h */,
- 1AFAF8B516D35DE700DB1158 /* HelloWorldScene.cpp */,
- 1AFAF8B616D35DE700DB1158 /* HelloWorldScene.h */,
- );
- name = Classes;
- path = ../classes;
- sourceTree = "";
- };
- 19C28FACFE9D520D11CA2CBB /* Products */ = {
- isa = PBXGroup;
- children = (
- 1D6058910D05DD3D006BFB54 /* HelloShare.app */,
- );
- name = Products;
- sourceTree = "";
- };
- 29B97314FDCFA39411CA2CEA /* CustomTemplate */ = {
- isa = PBXGroup;
- children = (
- FACAD8ED1762DC3A00D75ADE /* PluginTwitter.xcodeproj */,
- FAE2758F175DED2300F5DA8E /* PluginWeibo.xcodeproj */,
- FAE27586175DED1700F5DA8E /* PluginProtocol.xcodeproj */,
- FAE27577175DEC0C00F5DA8E /* cocos2dx.xcodeproj */,
- 15AA9C4015B7EC450033D6C2 /* Classes */,
- 15A3DA6B1682F8A6002FB0C5 /* CocosDenshion */,
- 29B97323FDCFA39411CA2CEA /* Frameworks */,
- 080E96DDFE201D6D7F000001 /* ios */,
- 19C28FACFE9D520D11CA2CBB /* Products */,
- 78C7DDAA14EBA5050085D0C2 /* Resources */,
- );
- name = CustomTemplate;
- sourceTree = "";
- };
- 29B97323FDCFA39411CA2CEA /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- FACAD8F71763070D00D75ADE /* SystemConfiguration.framework */,
- FAE275A0175DEEF500F5DA8E /* AudioToolbox.framework */,
- BF170DB212928DE900B8313A /* libxml2.dylib */,
- BF170DB412928DE900B8313A /* libz.dylib */,
- D44C620D132DFF430009C878 /* AVFoundation.framework */,
- 288765A40DF7441C002DB57D /* CoreGraphics.framework */,
- 1D30AB110D05D00D00671497 /* Foundation.framework */,
- D44C620B132DFF330009C878 /* OpenAL.framework */,
- BF170DB012928DE900B8313A /* OpenGLES.framework */,
- BF1C47EA1293683800B63C5D /* QuartzCore.framework */,
- 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */,
- );
- name = Frameworks;
- sourceTree = "";
- };
- 78C7DDAA14EBA5050085D0C2 /* Resources */ = {
- isa = PBXGroup;
- children = (
- FAE27580175DEC8600F5DA8E /* background.png */,
- FAE27581175DEC8600F5DA8E /* twitter.jpeg */,
- FAE27582175DEC8600F5DA8E /* weibo.png */,
- 1AFAF8B916D35E4900DB1158 /* CloseNormal.png */,
- 1AFAF8BA16D35E4900DB1158 /* CloseSelected.png */,
- D41A0AD0160F154A004552AE /* Default-568h@2x.png */,
- 7855E0DF153FEF240059DD9A /* Default.png */,
- D446FD6D16102124000ADA7B /* Default@2x.png */,
- D4EF949B15BD2D8E00D803EB /* Icon-114.png */,
- D4EF949F15BD2D9800D803EB /* Icon-144.png */,
- D4EF949915BD2D8B00D803EB /* Icon-57.png */,
- D4EF949D15BD2D9600D803EB /* Icon-72.png */,
- );
- name = Resources;
- path = ../Resources;
- sourceTree = "";
- };
- FACAD8EE1762DC3A00D75ADE /* Products */ = {
- isa = PBXGroup;
- children = (
- FACAD8F51762DC3A00D75ADE /* libPluginTwitter.a */,
- );
- name = Products;
- sourceTree = "";
- };
- FAE27578175DEC0C00F5DA8E /* Products */ = {
- isa = PBXGroup;
- children = (
- FAE2757F175DEC0D00F5DA8E /* libcocos2dx.a */,
- );
- name = Products;
- sourceTree = "";
- };
- FAE27587175DED1700F5DA8E /* Products */ = {
- isa = PBXGroup;
- children = (
- FAE2758E175DED1700F5DA8E /* libPluginProtocol.a */,
- );
- name = Products;
- sourceTree = "";
- };
- FAE27590175DED2300F5DA8E /* Products */ = {
- isa = PBXGroup;
- children = (
- FAE27597175DED2400F5DA8E /* libPluginWeibo.a */,
- );
- name = Products;
- sourceTree = "";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 1D6058900D05DD3D006BFB54 /* HelloShare */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "HelloShare" */;
- buildPhases = (
- 1D60588D0D05DD3D006BFB54 /* Resources */,
- 1D60588E0D05DD3D006BFB54 /* Sources */,
- 1D60588F0D05DD3D006BFB54 /* Frameworks */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = HelloShare;
- productName = iphone;
- productReference = 1D6058910D05DD3D006BFB54 /* HelloShare.app */;
- productType = "com.apple.product-type.application";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 29B97313FDCFA39411CA2CEA /* Project object */ = {
- isa = PBXProject;
- attributes = {
- LastUpgradeCheck = 0430;
- };
- buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "HelloShare" */;
- compatibilityVersion = "Xcode 3.2";
- developmentRegion = English;
- hasScannedForEncodings = 1;
- knownRegions = (
- English,
- Japanese,
- French,
- German,
- );
- mainGroup = 29B97314FDCFA39411CA2CEA /* CustomTemplate */;
- projectDirPath = "";
- projectReferences = (
- {
- ProductGroup = FAE27578175DEC0C00F5DA8E /* Products */;
- ProjectRef = FAE27577175DEC0C00F5DA8E /* cocos2dx.xcodeproj */;
- },
- {
- ProductGroup = FAE27587175DED1700F5DA8E /* Products */;
- ProjectRef = FAE27586175DED1700F5DA8E /* PluginProtocol.xcodeproj */;
- },
- {
- ProductGroup = FACAD8EE1762DC3A00D75ADE /* Products */;
- ProjectRef = FACAD8ED1762DC3A00D75ADE /* PluginTwitter.xcodeproj */;
- },
- {
- ProductGroup = FAE27590175DED2300F5DA8E /* Products */;
- ProjectRef = FAE2758F175DED2300F5DA8E /* PluginWeibo.xcodeproj */;
- },
- );
- projectRoot = "";
- targets = (
- 1D6058900D05DD3D006BFB54 /* HelloShare */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
- FACAD8F51762DC3A00D75ADE /* libPluginTwitter.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = libPluginTwitter.a;
- remoteRef = FACAD8F41762DC3A00D75ADE /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- FAE2757F175DEC0D00F5DA8E /* libcocos2dx.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = libcocos2dx.a;
- remoteRef = FAE2757E175DEC0D00F5DA8E /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- FAE2758E175DED1700F5DA8E /* libPluginProtocol.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = libPluginProtocol.a;
- remoteRef = FAE2758D175DED1700F5DA8E /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
- FAE27597175DED2400F5DA8E /* libPluginWeibo.a */ = {
- isa = PBXReferenceProxy;
- fileType = archive.ar;
- path = libPluginWeibo.a;
- remoteRef = FAE27596175DED2400F5DA8E /* PBXContainerItemProxy */;
- sourceTree = BUILT_PRODUCTS_DIR;
- };
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
- 1D60588D0D05DD3D006BFB54 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 7855E0E1153FEF240059DD9A /* Default.png in Resources */,
- D4EF949A15BD2D8B00D803EB /* Icon-57.png in Resources */,
- D4EF949C15BD2D8E00D803EB /* Icon-114.png in Resources */,
- D4EF949E15BD2D9600D803EB /* Icon-72.png in Resources */,
- D4EF94A015BD2D9800D803EB /* Icon-144.png in Resources */,
- D41A0AD1160F154A004552AE /* Default-568h@2x.png in Resources */,
- D446FD6E16102124000ADA7B /* Default@2x.png in Resources */,
- 1AFAF8BC16D35E4900DB1158 /* CloseNormal.png in Resources */,
- 1AFAF8BD16D35E4900DB1158 /* CloseSelected.png in Resources */,
- FAE27583175DEC8600F5DA8E /* background.png in Resources */,
- FAE27584175DEC8600F5DA8E /* twitter.jpeg in Resources */,
- FAE27585175DEC8600F5DA8E /* weibo.png in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 1D60588E0D05DD3D006BFB54 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 15A3DAEB1682F8A6002FB0C5 /* CDAudioManager.m in Sources */,
- 15A3DAEC1682F8A6002FB0C5 /* CDOpenALSupport.m in Sources */,
- 15A3DAED1682F8A6002FB0C5 /* CocosDenshion.m in Sources */,
- 15A3DAEE1682F8A6002FB0C5 /* SimpleAudioEngine.mm in Sources */,
- 15A3DAEF1682F8A6002FB0C5 /* SimpleAudioEngine_objc.m in Sources */,
- 1AFAF8B716D35DE700DB1158 /* AppDelegate.cpp in Sources */,
- 1AFAF8B816D35DE700DB1158 /* HelloWorldScene.cpp in Sources */,
- 1AC3624916D4A1E8000847F2 /* AppController.mm in Sources */,
- 1AC3624B16D4A1E8000847F2 /* main.m in Sources */,
- 1AFCDA8216D4A25900906EA6 /* RootViewController.mm in Sources */,
- FAC2A80B1777FAEA00035D22 /* MyShareManager.cpp in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin XCBuildConfiguration section */
- 1D6058940D05DD3E006BFB54 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CODE_SIGN_IDENTITY = "";
- COPY_PHASE_STRIP = NO;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_INLINES_ARE_PRIVATE_EXTERN = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = Prefix.pch;
- GCC_PREPROCESSOR_DEFINITIONS = (
- USE_FILE32API,
- CC_TARGET_OS_IPHONE,
- "COCOS2D_DEBUG=1",
- CC_ENABLE_CHIPMUNK_INTEGRATION,
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_VERSION = "";
- HEADER_SEARCH_PATHS = (
- "$(SRCROOT)/../../../../CocosDenshion/include",
- "\"$(SRCROOT)/../../../../cocos2dx/kazmath/include\"",
- "\"$(SRCROOT)/../../../../cocos2dx\"",
- "\"$(SRCROOT)/../../../../cocos2dx/include\"",
- "\"$(SRCROOT)/../../../../cocos2dx/platform/third_party/ios\"",
- "\"$(SRCROOT)/../../../../cocos2dx/platform/ios\"",
- "\"$(SRCROOT)/../../../../cocos2dx/platform/ios/Simulation\"",
- "\"$(SRCROOT)/../../../protocols/include",
- );
- INFOPLIST_FILE = Info.plist;
- IPHONEOS_DEPLOYMENT_TARGET = 5.1;
- LIBRARY_SEARCH_PATHS = "\"$(SRCROOT)/../../../cocos2dx/platform/third_party/ios/libraries\"";
- OTHER_CFLAGS = "-O2";
- "OTHER_LDFLAGS[arch=*]" = "-ObjC";
- PRODUCT_NAME = HelloShare;
- SDKROOT = iphoneos;
- TARGETED_DEVICE_FAMILY = "1,2";
- USER_HEADER_SEARCH_PATHS = "";
- VALID_ARCHS = "armv6 armv7 i386";
- };
- name = Debug;
- };
- 1D6058950D05DD3E006BFB54 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CODE_SIGN_IDENTITY = "";
- COPY_PHASE_STRIP = YES;
- GCC_INLINES_ARE_PRIVATE_EXTERN = NO;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = Prefix.pch;
- GCC_PREPROCESSOR_DEFINITIONS = (
- USE_FILE32API,
- CC_TARGET_OS_IPHONE,
- CC_ENABLE_CHIPMUNK_INTEGRATION,
- );
- GCC_SYMBOLS_PRIVATE_EXTERN = NO;
- GCC_VERSION = "";
- HEADER_SEARCH_PATHS = (
- "$(SRCROOT)/../../../../CocosDenshion/include",
- "\"$(SRCROOT)/../../../../cocos2dx/kazmath/include\"",
- "\"$(SRCROOT)/../../../../cocos2dx\"",
- "\"$(SRCROOT)/../../../../cocos2dx/include\"",
- "\"$(SRCROOT)/../../../../cocos2dx/platform/third_party/ios\"",
- "\"$(SRCROOT)/../../../../cocos2dx/platform/ios\"",
- "\"$(SRCROOT)/../../../../cocos2dx/platform/ios/Simulation\"",
- "\"$(SRCROOT)/../../../protocols/include",
- );
- INFOPLIST_FILE = Info.plist;
- IPHONEOS_DEPLOYMENT_TARGET = 5.1;
- LIBRARY_SEARCH_PATHS = "\"$(SRCROOT)/../../../cocos2dx/platform/third_party/ios/libraries\"";
- "OTHER_LDFLAGS[arch=*]" = "-ObjC";
- PRODUCT_NAME = HelloShare;
- SDKROOT = iphoneos;
- TARGETED_DEVICE_FAMILY = "1,2";
- USER_HEADER_SEARCH_PATHS = "";
- VALIDATE_PRODUCT = YES;
- };
- name = Release;
- };
- C01FCF4F08A954540054247B /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
- CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CODE_SIGN_IDENTITY = "";
- GCC_C_LANGUAGE_STANDARD = c99;
- GCC_VERSION = "";
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- SDKROOT = iphoneos;
- VALID_ARCHS = "armv6 armv7 i386";
- };
- name = Debug;
- };
- C01FCF5008A954540054247B /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD_32_BIT)";
- CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CODE_SIGN_IDENTITY = "";
- GCC_C_LANGUAGE_STANDARD = c99;
- GCC_VERSION = "";
- GCC_WARN_ABOUT_RETURN_TYPE = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
- SDKROOT = iphoneos;
- VALID_ARCHS = "armv6 armv7 i386";
- };
- name = Release;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "HelloShare" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 1D6058940D05DD3E006BFB54 /* Debug */,
- 1D6058950D05DD3E006BFB54 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Debug;
- };
- C01FCF4E08A954540054247B /* Build configuration list for PBXProject "HelloShare" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- C01FCF4F08A954540054247B /* Debug */,
- C01FCF5008A954540054247B /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Debug;
- };
-/* End XCConfigurationList section */
- };
- rootObject = 29B97313FDCFA39411CA2CEA /* Project object */;
-}
diff --git a/plugin/samples/HelloShare/proj.ios/Prefix.pch b/plugin/samples/HelloShare/proj.ios/Prefix.pch
deleted file mode 100644
index 5b4e2fd9e1..0000000000
--- a/plugin/samples/HelloShare/proj.ios/Prefix.pch
+++ /dev/null
@@ -1,8 +0,0 @@
-//
-// Prefix header for all source files of the 'iphone' target in the 'iphone' project
-//
-
-#ifdef __OBJC__
- #import
- #import
-#endif
diff --git a/plugin/samples/HelloShare/proj.ios/RootViewController.mm b/plugin/samples/HelloShare/proj.ios/RootViewController.mm
deleted file mode 100644
index bdadc9ced7..0000000000
--- a/plugin/samples/HelloShare/proj.ios/RootViewController.mm
+++ /dev/null
@@ -1,89 +0,0 @@
-/****************************************************************************
-Copyright (c) 2012-2013 cocos2d-x.org
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-****************************************************************************/
-
-#import "RootViewController.h"
-
-
-@implementation RootViewController
-
-/*
- // The designated initializer. Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
-- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
- if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])) {
- // Custom initialization
- }
- return self;
-}
-*/
-
-/*
-// Implement loadView to create a view hierarchy programmatically, without using a nib.
-- (void)loadView {
-}
-*/
-
-/*
-// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
-- (void)viewDidLoad {
- [super viewDidLoad];
-}
-
-*/
-// Override to allow orientations other than the default portrait orientation.
-// This method is deprecated on ios6
-- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
- return UIInterfaceOrientationIsLandscape( interfaceOrientation );
-}
-
-// For ios6, use supportedInterfaceOrientations & shouldAutorotate instead
-- (NSUInteger) supportedInterfaceOrientations{
-#ifdef __IPHONE_6_0
- return UIInterfaceOrientationMaskAllButUpsideDown;
-#endif
-}
-
-- (BOOL) shouldAutorotate {
- return YES;
-}
-
-- (void)didReceiveMemoryWarning {
- // Releases the view if it doesn't have a superview.
- [super didReceiveMemoryWarning];
-
- // Release any cached data, images, etc that aren't in use.
-}
-
-- (void)viewDidUnload {
- [super viewDidUnload];
- // Release any retained subviews of the main view.
- // e.g. self.myOutlet = nil;
-}
-
-
-- (void)dealloc {
- [super dealloc];
-}
-
-
-@end
diff --git a/plugin/samples/HelloShare/proj.ios/main.m b/plugin/samples/HelloShare/proj.ios/main.m
deleted file mode 100644
index f607c969a3..0000000000
--- a/plugin/samples/HelloShare/proj.ios/main.m
+++ /dev/null
@@ -1,36 +0,0 @@
-/****************************************************************************
-Copyright (c) 2012-2013 cocos2d-x.org
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-****************************************************************************/
-
-#import
-
-// Under iOS and the Simulator, we can use an alternate Accelerometer interface
-#import "AccelerometerSimulation.h"
-
-int main(int argc, char *argv[]) {
-
- NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
- int retVal = UIApplicationMain(argc, argv, nil, @"AppController");
- [pool release];
- return retVal;
-}
diff --git a/plugin/samples/HelloUser/Resources/alipay_plugin.apk.REMOVED.git-id b/plugin/samples/HelloUser/Resources/alipay_plugin.apk.REMOVED.git-id
deleted file mode 100644
index 8b0739a130..0000000000
--- a/plugin/samples/HelloUser/Resources/alipay_plugin.apk.REMOVED.git-id
+++ /dev/null
@@ -1 +0,0 @@
-761ab0ca76abcdc06890e579f77fcdea6afa83c6
\ No newline at end of file
diff --git a/plugin/samples/HelloUser/Resources/pro.jar.REMOVED.git-id b/plugin/samples/HelloUser/Resources/pro.jar.REMOVED.git-id
deleted file mode 100644
index 23c54c6ba3..0000000000
--- a/plugin/samples/HelloUser/Resources/pro.jar.REMOVED.git-id
+++ /dev/null
@@ -1 +0,0 @@
-0cb89ef70f9172baa023fcbae9b87da09af2e776
\ No newline at end of file
diff --git a/plugin/samples/HelloUser/proj.android/.classpath b/plugin/samples/HelloUser/proj.android/.classpath
deleted file mode 100644
index 6cffa0e876..0000000000
--- a/plugin/samples/HelloUser/proj.android/.classpath
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugin/samples/HelloUser/proj.android/AndroidManifest.xml b/plugin/samples/HelloUser/proj.android/AndroidManifest.xml
deleted file mode 100644
index 5967950d64..0000000000
--- a/plugin/samples/HelloUser/proj.android/AndroidManifest.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugin/samples/HelloUser/proj.android/README.md b/plugin/samples/HelloUser/proj.android/README.md
deleted file mode 100644
index 312835611a..0000000000
--- a/plugin/samples/HelloUser/proj.android/README.md
+++ /dev/null
@@ -1,87 +0,0 @@
-## Prerequisites:
-
-* Android NDK
-* Android SDK **OR** Eclipse ADT Bundle
-* Android AVD target installed
-
-## Building project
-
-There are two ways of building Android projects.
-
-1. Eclipse
-2. Command Line
-
-### Import Project in Eclipse
-
-#### Features:
-
-1. Complete workflow from Eclipse, including:
- * Build C++.
- * Clean C++.
- * Build and Run whole project.
- * Logcat view.
- * Debug Java code.
- * Javascript editor.
- * Project management.
-2. True C++ editing, including:
- * Code completion.
- * Jump to definition.
- * Refactoring tools etc.
- * Quick open C++ files.
-
-
-#### Setup Eclipse Environment (only once)
-
-
-**NOTE:** This step needs to be done only once to setup the Eclipse environment for cocos2d-x projects. Skip this section if you've done this before.
-
-1. Download Eclipse ADT bundle from [Google ADT homepage](http://developer.android.com/sdk/index.html)
-
- **OR**
-
- Install Eclipse with Java. Add ADT and CDT plugins.
-
-2. Only for Windows
- 1. Install [Cygwin](http://www.cygwin.com/) with make (select make package from the list during the install).
- 2. Add `Cygwin\bin` directory to system PATH variable.
- 3. Add this line `none /cygdrive cygdrive binary,noacl,posix=0,user 0 0` to `Cygwin\etc\fstab` file.
-
-3. Set up Variables:
- 1. Path Variable `COCOS2DX`:
- * Eclipse->Preferences->General->Workspace->**Linked Resources**
- * Click **New** button to add a Path Variable `COCOS2DX` pointing to the root cocos2d-x directory.
- ![Example](https://lh5.googleusercontent.com/-oPpk9kg3e5w/UUOYlq8n7aI/AAAAAAAAsdQ/zLA4eghBH9U/s400/cocos2d-x-eclipse-vars.png)
-
- 2. C/C++ Environment Variable `NDK_ROOT`:
- * Eclipse->Preferences->C/C++->Build->**Environment**.
- * Click **Add** button and add a new variable `NDK_ROOT` pointing to the root NDK directory.
- ![Example](https://lh3.googleusercontent.com/-AVcY8IAT0_g/UUOYltoRobI/AAAAAAAAsdM/22D2J9u3sig/s400/cocos2d-x-eclipse-ndk.png)
- * Only for Windows: Add new variables **CYGWIN** with value `nodosfilewarning` and **SHELLOPTS** with value `igncr`
-
-4. Import libcocos2dx library project:
- 1. File->New->Project->Android Project From Existing Code.
- 2. Click **Browse** button and open `cocos2d-x/cocos2dx/platform/android/java` directory.
- 3. Click **Finish** to add project.
-
-#### Adding and running from Eclipse
-
-![Example](https://lh3.googleusercontent.com/-SLBOu6e3QbE/UUOcOXYaGqI/AAAAAAAAsdo/tYBY2SylOSM/s288/cocos2d-x-eclipse-project-from-code.png) ![Import](https://lh5.googleusercontent.com/-XzC9Pn65USc/UUOcOTAwizI/AAAAAAAAsdk/4b6YM-oim9Y/s400/cocos2d-x-eclipse-import-project.png)
-
-1. File->New->Project->Android Project From Existing Code
-2. **Browse** to your project directory. eg: `cocos2d-x/cocos2dx/samples/Cpp/TestCpp/proj.android/`
-3. Add the project
-4. Click **Run** or **Debug** to compile C++ followed by Java and to run on connected device or emulator.
-
-
-### Running project from Command Line
-
- $ cd cocos2d-x/samples/Cpp/TestCpp/proj.android/
- $ export NDK_ROOT=/path/to/ndk
- $ ./build_native.sh
- $ ant debug install
-
-If the last command results in sdk.dir missing error then do:
-
- $ android list target
- $ android update project -p . -t (id from step 6)
- $ android update project -p cocos2d-x/cocos2dx/platform/android/java/ -t (id from step 6)
diff --git a/plugin/samples/HelloUser/proj.android/ant.properties b/plugin/samples/HelloUser/proj.android/ant.properties
deleted file mode 100644
index b0971e891e..0000000000
--- a/plugin/samples/HelloUser/proj.android/ant.properties
+++ /dev/null
@@ -1,17 +0,0 @@
-# This file is used to override default values used by the Ant build system.
-#
-# This file must be checked into Version Control Systems, as it is
-# integral to the build system of your project.
-
-# This file is only used by the Ant script.
-
-# You can use this to override default values such as
-# 'source.dir' for the location of your java source folder and
-# 'out.dir' for the location of your output folder.
-
-# You can also use it define how the release builds are signed by declaring
-# the following properties:
-# 'key.store' for the location of your keystore and
-# 'key.alias' for the name of the key to use.
-# The password will be asked during the build when you use the 'release' target.
-
diff --git a/plugin/samples/HelloUser/proj.android/build_native.sh b/plugin/samples/HelloUser/proj.android/build_native.sh
deleted file mode 100755
index e1dec28a1d..0000000000
--- a/plugin/samples/HelloUser/proj.android/build_native.sh
+++ /dev/null
@@ -1,78 +0,0 @@
-APPNAME="HelloUser"
-
-# options
-
-buildexternalsfromsource=
-
-usage(){
-cat << EOF
-usage: $0 [options]
-
-Build C/C++ code for $APPNAME using Android NDK
-
-OPTIONS:
--s Build externals from source
--h this help
-EOF
-}
-
-while getopts "sh" OPTION; do
-case "$OPTION" in
-s)
-buildexternalsfromsource=1
-;;
-h)
-usage
-exit 0
-;;
-esac
-done
-
-# paths
-
-if [ -z "${NDK_ROOT+aaa}" ];then
-echo "please define NDK_ROOT"
-exit 1
-fi
-
-DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-# ... use paths relative to current directory
-PLUGIN_ROOT="$DIR/../../.."
-COCOS2DX_ROOT="$DIR/../../../.."
-APP_ROOT="$DIR/.."
-APP_ANDROID_ROOT="$DIR"
-
-echo "NDK_ROOT = $NDK_ROOT"
-echo "COCOS2DX_ROOT = $COCOS2DX_ROOT"
-echo "APP_ROOT = $APP_ROOT"
-echo "APP_ANDROID_ROOT = $APP_ANDROID_ROOT"
-
-# make sure assets is exist
-if [ -d "$APP_ANDROID_ROOT"/assets ]; then
- rm -rf "$APP_ANDROID_ROOT"/assets
-fi
-
-mkdir "$APP_ANDROID_ROOT"/assets
-
-# copy resources
-for file in "$APP_ROOT"/Resources/*
-do
-if [ -d "$file" ]; then
- cp -rf "$file" "$APP_ANDROID_ROOT"/assets
-fi
-
-if [ -f "$file" ]; then
- cp "$file" "$APP_ANDROID_ROOT"/assets
-fi
-done
-
-# run ndk-build
-if [[ "$buildexternalsfromsource" ]]; then
- echo "Building external dependencies from source"
- "$NDK_ROOT"/ndk-build -C "$APP_ANDROID_ROOT" $* \
- "NDK_MODULE_PATH=${PLUGIN_ROOT}/publish:${COCOS2DX_ROOT}:${COCOS2DX_ROOT}/cocos2dx/platform/third_party/android/source"
-else
- echo "Using prebuilt externals"
- "$NDK_ROOT"/ndk-build -C "$APP_ANDROID_ROOT" $* \
- "NDK_MODULE_PATH=${PLUGIN_ROOT}/publish:${COCOS2DX_ROOT}:${COCOS2DX_ROOT}/cocos2dx/platform/third_party/android/prebuilt"
-fi
diff --git a/plugin/samples/HelloUser/proj.android/jni/Android.mk b/plugin/samples/HelloUser/proj.android/jni/Android.mk
deleted file mode 100644
index 4679003bc3..0000000000
--- a/plugin/samples/HelloUser/proj.android/jni/Android.mk
+++ /dev/null
@@ -1,23 +0,0 @@
-LOCAL_PATH := $(call my-dir)
-
-include $(CLEAR_VARS)
-
-LOCAL_MODULE := cocos2dcpp_shared
-
-LOCAL_MODULE_FILENAME := libcocos2dcpp
-
-LOCAL_SRC_FILES := hellocpp/main.cpp \
- ../../Classes/AppDelegate.cpp \
- ../../Classes/HelloWorldScene.cpp \
- ../../Classes/MyUserManager.cpp
-
-LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes
-
-LOCAL_WHOLE_STATIC_LIBRARIES += cocos2dx_static \
-PluginProtocolStatic
-
-include $(BUILD_SHARED_LIBRARY)
-
-$(call import-module,cocos2dx)
-
-$(call import-module,protocols/android)
diff --git a/plugin/samples/HelloUser/proj.android/jni/Application.mk b/plugin/samples/HelloUser/proj.android/jni/Application.mk
deleted file mode 100644
index 43499d7113..0000000000
--- a/plugin/samples/HelloUser/proj.android/jni/Application.mk
+++ /dev/null
@@ -1,3 +0,0 @@
-APP_STL := gnustl_static
-APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -DCOCOS2D_DEBUG=1 -std=c++11
-NDK_TOOLCHAIN_VERSION=4.7
diff --git a/plugin/samples/HelloUser/proj.android/jni/hellocpp/main.cpp b/plugin/samples/HelloUser/proj.android/jni/hellocpp/main.cpp
deleted file mode 100644
index 9d2d9ef439..0000000000
--- a/plugin/samples/HelloUser/proj.android/jni/hellocpp/main.cpp
+++ /dev/null
@@ -1,48 +0,0 @@
-#include "AppDelegate.h"
-#include "cocos2d.h"
-#include "CCEventType.h"
-#include "platform/android/jni/JniHelper.h"
-#include
-#include
-#include "PluginJniHelper.h"
-
-#define LOG_TAG "main"
-#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__)
-
-using namespace cocos2d;
-
-extern "C"
-{
-
-jint JNI_OnLoad(JavaVM *vm, void *reserved)
-{
- JniHelper::setJavaVM(vm);
- PluginJniHelper::setJavaVM(vm);
- return JNI_VERSION_1_4;
-}
-
-void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thiz, jint w, jint h)
-{
- if (!Director::sharedDirector()->getOpenGLView())
- {
- EGLView *view = EGLView::sharedOpenGLView();
- view->setFrameSize(w, h);
-
- AppDelegate *pAppDelegate = new AppDelegate();
- Application::sharedApplication()->run();
- }
- /*
- else
- {
- ccDrawInit();
- ccGLInvalidateStateCache();
-
- ShaderCache::sharedShaderCache()->reloadDefaultShaders();
- TextureCache::reloadAllTextures();
- NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
- Director::sharedDirector()->setGLDefaultValues();
- }
- */
-}
-
-}
diff --git a/plugin/samples/HelloUser/proj.android/proguard-project.txt b/plugin/samples/HelloUser/proj.android/proguard-project.txt
deleted file mode 100644
index f2fe1559a2..0000000000
--- a/plugin/samples/HelloUser/proj.android/proguard-project.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-# To enable ProGuard in your project, edit project.properties
-# to define the proguard.config property as described in that file.
-#
-# Add project specific ProGuard rules here.
-# By default, the flags in this file are appended to flags specified
-# in ${sdk.dir}/tools/proguard/proguard-android.txt
-# You can edit the include path and order by changing the ProGuard
-# include property in project.properties.
-#
-# For more details, see
-# http://developer.android.com/guide/developing/tools/proguard.html
-
-# Add any project specific keep options here:
-
-# If your project uses WebView with JS, uncomment the following
-# and specify the fully qualified class name to the JavaScript interface
-# class:
-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
-# public *;
-#}
diff --git a/plugin/samples/HelloUser/proj.android/res/values/strings.xml b/plugin/samples/HelloUser/proj.android/res/values/strings.xml
deleted file mode 100644
index 35d82d2614..0000000000
--- a/plugin/samples/HelloUser/proj.android/res/values/strings.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
- HelloUser
-
diff --git a/plugin/samples/HelloUser/proj.android/src/org/cocos2dx/HelloUser/HelloUser.java b/plugin/samples/HelloUser/proj.android/src/org/cocos2dx/HelloUser/HelloUser.java
deleted file mode 100644
index aeb10ef581..0000000000
--- a/plugin/samples/HelloUser/proj.android/src/org/cocos2dx/HelloUser/HelloUser.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/****************************************************************************
-Copyright (c) 2010-2011 cocos2d-x.org
-
-http://www.cocos2d-x.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-****************************************************************************/
-package org.cocos2dx.HelloUser;
-
-import org.cocos2dx.lib.Cocos2dxActivity;
-import org.cocos2dx.lib.Cocos2dxGLSurfaceView;
-import org.cocos2dx.plugin.PluginWrapper;
-
-import android.os.Bundle;
-
-public class HelloUser extends Cocos2dxActivity{
-
- protected void onCreate(Bundle savedInstanceState){
- super.onCreate(savedInstanceState);
-
- PluginWrapper.init(this);
- PluginWrapper.setGLSurfaceView(Cocos2dxGLSurfaceView.getInstance());
- }
-
- public Cocos2dxGLSurfaceView onCreateView() {
- Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this);
- // HelloUser should create stencil buffer
- glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8);
-
- return glSurfaceView;
- }
-
- static {
- System.loadLibrary("cocos2dcpp");
- }
-}
diff --git a/samples/Cpp/TestCpp/Classes/KeyboardTest/KeyboardTest.cpp b/samples/Cpp/TestCpp/Classes/KeyboardTest/KeyboardTest.cpp
index 430260c1f5..f5c8f341c5 100644
--- a/samples/Cpp/TestCpp/Classes/KeyboardTest/KeyboardTest.cpp
+++ b/samples/Cpp/TestCpp/Classes/KeyboardTest/KeyboardTest.cpp
@@ -1,6 +1,6 @@
#include "KeyboardTest.h"
-#ifdef KEYBOARD_SUPPORT
+#ifdef CC_KEYBOARD_SUPPORT
KeyboardTest::KeyboardTest()
{
diff --git a/samples/Cpp/TestCpp/Classes/KeyboardTest/KeyboardTest.h b/samples/Cpp/TestCpp/Classes/KeyboardTest/KeyboardTest.h
index 2586741b2f..f688037834 100644
--- a/samples/Cpp/TestCpp/Classes/KeyboardTest/KeyboardTest.h
+++ b/samples/Cpp/TestCpp/Classes/KeyboardTest/KeyboardTest.h
@@ -1,7 +1,7 @@
#ifndef _KEYBOARD_TEST_H_
#define _KEYBOARD_TEST_H_
-#ifdef KEYBOARD_SUPPORT
+#ifdef CC_KEYBOARD_SUPPORT
#include "cocos2d.h"
#include "../testBasic.h"
diff --git a/samples/Cpp/TestCpp/Classes/LayerTest/LayerTest.cpp b/samples/Cpp/TestCpp/Classes/LayerTest/LayerTest.cpp
index ee41c03f98..944b50dca2 100644
--- a/samples/Cpp/TestCpp/Classes/LayerTest/LayerTest.cpp
+++ b/samples/Cpp/TestCpp/Classes/LayerTest/LayerTest.cpp
@@ -16,7 +16,9 @@ static std::function createFunctions[] = {
CL(LayerTest1),
CL(LayerTest2),
CL(LayerTestBlend),
- CL(LayerGradient),
+ CL(LayerGradientTest),
+ CL(LayerGradientTest2),
+ CL(LayerGradientTest3),
CL(LayerIgnoreAnchorPointPos),
CL(LayerIgnoreAnchorPointRot),
CL(LayerIgnoreAnchorPointScale),
@@ -581,7 +583,7 @@ std::string LayerTestBlend::title()
//------------------------------------------------------------------
//
-// LayerGradient
+// LayerGradientTest
//
//------------------------------------------------------------------
LayerGradientTest::LayerGradientTest()
@@ -633,6 +635,51 @@ string LayerGradientTest::subtitle()
return "Touch the screen and move your finger";
}
+//------------------------------------------------------------------
+//
+// LayerGradientTest2
+//
+//------------------------------------------------------------------
+LayerGradientTest2::LayerGradientTest2()
+{
+ LayerGradient* layer = new LayerGradient;
+ layer->initWithColor(ccc4(255,0,0,255), ccc4(255,255,0,255));
+ layer->autorelease();
+ addChild(layer);
+}
+
+std::string LayerGradientTest2::title()
+{
+ return "LayerGradientTest 2";
+}
+
+string LayerGradientTest2::subtitle()
+{
+ return "You should see a gradient";
+}
+
+
+//------------------------------------------------------------------
+//
+// LayerGradientTest3
+//
+//------------------------------------------------------------------
+LayerGradientTest3::LayerGradientTest3()
+{
+ LayerGradient* layer1 = LayerGradient::create(ccc4(255,0,0,255), ccc4(255,255,0,255));
+ addChild(layer1);
+}
+
+std::string LayerGradientTest3::title()
+{
+ return "LayerGradientTest 3";
+}
+
+string LayerGradientTest3::subtitle()
+{
+ return "You should see a gradient";
+}
+
// LayerIgnoreAnchorPointPos
#define kLayerIgnoreAnchorPoint 1000
diff --git a/samples/Cpp/TestCpp/Classes/LayerTest/LayerTest.h b/samples/Cpp/TestCpp/Classes/LayerTest/LayerTest.h
index 7f3f66188a..7dd3186959 100644
--- a/samples/Cpp/TestCpp/Classes/LayerTest/LayerTest.h
+++ b/samples/Cpp/TestCpp/Classes/LayerTest/LayerTest.h
@@ -105,6 +105,22 @@ public:
void toggleItem(cocos2d::Object *sender);
};
+class LayerGradientTest2 : public LayerTest
+{
+public:
+ LayerGradientTest2();
+ virtual std::string title();
+ virtual std::string subtitle();
+};
+
+class LayerGradientTest3 : public LayerTest
+{
+public:
+ LayerGradientTest3();
+ virtual std::string title();
+ virtual std::string subtitle();
+};
+
class LayerIgnoreAnchorPointPos : public LayerTest
{
public:
diff --git a/samples/Cpp/TestCpp/Classes/controller.cpp b/samples/Cpp/TestCpp/Classes/controller.cpp
index 46b931a430..e2bc5e59a6 100644
--- a/samples/Cpp/TestCpp/Classes/controller.cpp
+++ b/samples/Cpp/TestCpp/Classes/controller.cpp
@@ -49,7 +49,7 @@ struct {
{ "FileUtilsTest", []() { return new FileUtilsTestScene(); } },
{ "FontTest", []() { return new FontTestScene(); } },
{ "IntervalTest", [](){return new IntervalTestScene(); } },
-#ifdef KEYBOARD_SUPPORT
+#ifdef CC_KEYBOARD_SUPPORT
{ "KeyboardTest", []() { return new KeyboardTestScene(); } },
#endif
#if (CC_TARGET_PLATFORM != CC_PLATFORM_BADA)
diff --git a/samples/Cpp/TestCpp/Classes/tests.h b/samples/Cpp/TestCpp/Classes/tests.h
index 7b2b9b2464..c9c119f2cd 100644
--- a/samples/Cpp/TestCpp/Classes/tests.h
+++ b/samples/Cpp/TestCpp/Classes/tests.h
@@ -29,7 +29,7 @@
#include "EffectsAdvancedTest/EffectsAdvancedTest.h"
#include "AccelerometerTest/AccelerometerTest.h"
#include "KeypadTest/KeypadTest.h"
-#ifdef KEYBOARD_SUPPORT
+#ifdef CC_KEYBOARD_SUPPORT
#include "KeyboardTest/KeyboardTest.h"
#endif
#include "PerformanceTest/PerformanceTest.h"
diff --git a/samples/Cpp/TestCpp/proj.linux/Makefile b/samples/Cpp/TestCpp/proj.linux/Makefile
index 00c2445c4b..62c38a39cc 100644
--- a/samples/Cpp/TestCpp/proj.linux/Makefile
+++ b/samples/Cpp/TestCpp/proj.linux/Makefile
@@ -1,6 +1,6 @@
EXECUTABLE = TestCpp
-DEFINES += -DKEYBOARD_SUPPORT
+DEFINES += -DCC_KEYBOARD_SUPPORT
SOURCES = ../Classes/AccelerometerTest/AccelerometerTest.cpp \
../Classes/ActionManagerTest/ActionManagerTest.cpp \
diff --git a/samples/Cpp/TestCpp/proj.mac/TestCpp.xcodeproj/project.pbxproj.REMOVED.git-id b/samples/Cpp/TestCpp/proj.mac/TestCpp.xcodeproj/project.pbxproj.REMOVED.git-id
index 076eec3ddf..8f9958a187 100644
--- a/samples/Cpp/TestCpp/proj.mac/TestCpp.xcodeproj/project.pbxproj.REMOVED.git-id
+++ b/samples/Cpp/TestCpp/proj.mac/TestCpp.xcodeproj/project.pbxproj.REMOVED.git-id
@@ -1 +1 @@
-9ae9939f85833280aac46f6be8bddf05b869bab8
\ No newline at end of file
+226867e25e3d039a278ae385c4b8822461b82427
\ No newline at end of file
diff --git a/plugin/samples/HelloAnalytics/proj.ios/AppController.h b/samples/Javascript/TestJavascript/proj.mac/AppController.h
old mode 100755
new mode 100644
similarity index 77%
rename from plugin/samples/HelloAnalytics/proj.ios/AppController.h
rename to samples/Javascript/TestJavascript/proj.mac/AppController.h
index 3d51064ca0..96c717304b
--- a/plugin/samples/HelloAnalytics/proj.ios/AppController.h
+++ b/samples/Javascript/TestJavascript/proj.mac/AppController.h
@@ -22,12 +22,21 @@
THE SOFTWARE.
****************************************************************************/
-@class RootViewController;
+#pragma once
-@interface AppController : NSObject {
- UIWindow *window;
- RootViewController *viewController;
-}
+#import "cocos2d.h"
+#import "EAGLView.h"
+
+@interface AppController : NSObject
+ {
+ NSWindow *window;
+ CCEAGLView *glView;
+ }
+
+ @property (nonatomic, assign) IBOutlet NSWindow* window;
+ @property (nonatomic, assign) IBOutlet CCEAGLView* glView;
+
+ -(IBAction) toggleFullScreen:(id)sender;
+ -(IBAction) exitFullScreen:(id)sender;
@end
-
diff --git a/samples/Javascript/TestJavascript/proj.mac/AppController.mm b/samples/Javascript/TestJavascript/proj.mac/AppController.mm
new file mode 100644
index 0000000000..43d05cf28a
--- /dev/null
+++ b/samples/Javascript/TestJavascript/proj.mac/AppController.mm
@@ -0,0 +1,93 @@
+/****************************************************************************
+ Copyright (c) 2010 cocos2d-x.org
+
+ http://www.cocos2d-x.org
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
+ ****************************************************************************/
+
+#import "AppController.h"
+#import "AppDelegate.h"
+
+@implementation AppController
+
+ static AppDelegate s_sharedApplication;
+
+ @synthesize window, glView;
+
+ -(void) applicationDidFinishLaunching:(NSNotification *)aNotification
+ {
+ // create the window
+ // note that using NSResizableWindowMask causes the window to be a little
+ // smaller and therefore ipad graphics are not loaded
+ NSRect rect = NSMakeRect(100, 100, 800, 450);
+ window = [[NSWindow alloc] initWithContentRect:rect
+ styleMask:( NSClosableWindowMask | NSTitledWindowMask )
+ backing:NSBackingStoreBuffered
+ defer:YES];
+
+ NSOpenGLPixelFormatAttribute attributes[] = {
+ NSOpenGLPFADoubleBuffer,
+ NSOpenGLPFADepthSize, 24,
+ NSOpenGLPFAStencilSize, 8,
+ 0
+ };
+
+ NSOpenGLPixelFormat *pixelFormat = [[[NSOpenGLPixelFormat alloc] initWithAttributes:attributes] autorelease];
+
+ // allocate our GL view
+ // (isn't there already a shared CCEAGLView?)
+ glView = [[CCEAGLView alloc] initWithFrame:rect pixelFormat:pixelFormat];
+
+ // set window parameters
+ [window becomeFirstResponder];
+ [window setContentView:glView];
+ [window setTitle:@"TestCpp"];
+ [window makeKeyAndOrderFront:self];
+ [window setAcceptsMouseMovedEvents:NO];
+
+ cocos2d::Application::sharedApplication()->run();
+ }
+
+ -(BOOL) applicationShouldTerminateAfterLastWindowClosed:(NSApplication*)theApplication
+ {
+ return YES;
+ }
+
+ -(void) dealloc
+ {
+ cocos2d::Director::sharedDirector()->end();
+ [super dealloc];
+ }
+
+#pragma mark -
+#pragma mark IB Actions
+
+ -(IBAction) toggleFullScreen:(id)sender
+ {
+ CCEAGLView* pView = [CCEAGLView sharedEGLView];
+ [pView setFullScreen:!pView.isFullScreen];
+ }
+
+ -(IBAction) exitFullScreen:(id)sender
+ {
+ [[CCEAGLView sharedEGLView] setFullScreen:NO];
+ }
+
+@end
diff --git a/samples/Javascript/TestJavascript/proj.mac/Icon.icns b/samples/Javascript/TestJavascript/proj.mac/Icon.icns
new file mode 100644
index 0000000000..285dee82b3
Binary files /dev/null and b/samples/Javascript/TestJavascript/proj.mac/Icon.icns differ
diff --git a/samples/Javascript/TestJavascript/proj.mac/TestJavascript.xcodeproj/project.pbxproj b/samples/Javascript/TestJavascript/proj.mac/TestJavascript.xcodeproj/project.pbxproj
new file mode 100644
index 0000000000..f493c8157b
--- /dev/null
+++ b/samples/Javascript/TestJavascript/proj.mac/TestJavascript.xcodeproj/project.pbxproj
@@ -0,0 +1,825 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 46;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 15A3D5631682F20C002FB0C5 /* main.js in Resources */ = {isa = PBXBuildFile; fileRef = 15A3D4621682F14C002FB0C5 /* main.js */; };
+ 15A3D5651682F20C002FB0C5 /* tests_resources-jsb.js in Resources */ = {isa = PBXBuildFile; fileRef = 15A3D4711682F14C002FB0C5 /* tests_resources-jsb.js */; };
+ 15A3D5681682F20C002FB0C5 /* tests-main.js in Resources */ = {isa = PBXBuildFile; fileRef = 15A3D4741682F14C002FB0C5 /* tests-main.js */; };
+ 1A4C3F1317784B6000EDFB3B /* libchipmunk.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A4C3F0E17784B6000EDFB3B /* libchipmunk.a */; };
+ 1A4C3F1417784B6000EDFB3B /* libcocos2dx.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A4C3F0F17784B6000EDFB3B /* libcocos2dx.a */; };
+ 1A4C3F1517784B6000EDFB3B /* libCocosDenshion.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A4C3F1017784B6000EDFB3B /* libCocosDenshion.a */; };
+ 1A4C3F1617784B6000EDFB3B /* libextensions.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A4C3F1117784B6000EDFB3B /* libextensions.a */; };
+ 1A4C3F1717784B6000EDFB3B /* libjsbindings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A4C3F1217784B6000EDFB3B /* libjsbindings.a */; };
+ 1A6B05C517782A2400FFE52B /* libsqlite3.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A6B05C417782A2400FFE52B /* libsqlite3.dylib */; };
+ 1A6B05C717782B0500FFE52B /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A6B05C617782B0500FFE52B /* libz.dylib */; };
+ 1A6E468A177812D20055514D /* jsb.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6E4672177812AF0055514D /* jsb.js */; };
+ 1A6E468B177812D20055514D /* jsb_chipmunk.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6E4673177812AF0055514D /* jsb_chipmunk.js */; };
+ 1A6E468C177812D20055514D /* jsb_chipmunk_constants.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6E4674177812AF0055514D /* jsb_chipmunk_constants.js */; };
+ 1A6E468D177812D20055514D /* jsb_cocos2d.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6E4675177812AF0055514D /* jsb_cocos2d.js */; };
+ 1A6E468E177812D20055514D /* jsb_cocos2d_constants.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6E4676177812AF0055514D /* jsb_cocos2d_constants.js */; };
+ 1A6E468F177812D20055514D /* jsb_cocos2d_extension.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6E4677177812AF0055514D /* jsb_cocos2d_extension.js */; };
+ 1A6E4690177812D20055514D /* jsb_cocosbuilder.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6E4678177812AF0055514D /* jsb_cocosbuilder.js */; };
+ 1A6E4691177812D20055514D /* jsb_debugger.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6E4679177812AF0055514D /* jsb_debugger.js */; };
+ 1A6E4692177812D20055514D /* jsb_opengl.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6E467A177812AF0055514D /* jsb_opengl.js */; };
+ 1A6E4693177812D20055514D /* jsb_opengl_constants.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6E467B177812AF0055514D /* jsb_opengl_constants.js */; };
+ 1A6E4694177812D20055514D /* jsb_sys.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6E467C177812AF0055514D /* jsb_sys.js */; };
+ 1A6E4695177812D20055514D /* main.debug.js in Resources */ = {isa = PBXBuildFile; fileRef = 1A6E467D177812AF0055514D /* main.debug.js */; };
+ 1A80332A1728DECD00240CC3 /* EffectsAdvancedTest in Resources */ = {isa = PBXBuildFile; fileRef = 1A8033291728DECD00240CC3 /* EffectsAdvancedTest */; };
+ 1A80332C1728F1FB00240CC3 /* res in Resources */ = {isa = PBXBuildFile; fileRef = 1A80332B1728F1FB00240CC3 /* res */; };
+ 1AA51A9F16F708FA000FDF05 /* ActionManagerTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A7816F708FA000FDF05 /* ActionManagerTest */; };
+ 1AA51AA016F708FA000FDF05 /* ActionsTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A7916F708FA000FDF05 /* ActionsTest */; };
+ 1AA51AA116F708FA000FDF05 /* BaseTestLayer in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A7A16F708FA000FDF05 /* BaseTestLayer */; };
+ 1AA51AA216F708FA000FDF05 /* Box2dTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A7B16F708FA000FDF05 /* Box2dTest */; };
+ 1AA51AA316F708FA000FDF05 /* ChipmunkTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A7C16F708FA000FDF05 /* ChipmunkTest */; };
+ 1AA51AA416F708FA000FDF05 /* ClickAndMoveTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A7D16F708FA000FDF05 /* ClickAndMoveTest */; };
+ 1AA51AA516F708FA000FDF05 /* CocosDenshionTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A7E16F708FA000FDF05 /* CocosDenshionTest */; };
+ 1AA51AA616F708FA000FDF05 /* CocosNodeTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A7F16F708FA000FDF05 /* CocosNodeTest */; };
+ 1AA51AA716F708FA000FDF05 /* CurrentLanguageTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A8016F708FA000FDF05 /* CurrentLanguageTest */; };
+ 1AA51AA816F708FA000FDF05 /* DrawPrimitivesTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A8116F708FA000FDF05 /* DrawPrimitivesTest */; };
+ 1AA51AA916F708FA000FDF05 /* EaseActionsTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A8216F708FA000FDF05 /* EaseActionsTest */; };
+ 1AA51AAA16F708FA000FDF05 /* EffectsTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A8316F708FA000FDF05 /* EffectsTest */; };
+ 1AA51AAB16F708FA000FDF05 /* EventTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A8416F708FA000FDF05 /* EventTest */; };
+ 1AA51AAC16F708FA000FDF05 /* ExtensionsTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A8516F708FA000FDF05 /* ExtensionsTest */; };
+ 1AA51AAD16F708FA000FDF05 /* FileUtils in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A8616F708FA000FDF05 /* FileUtils */; };
+ 1AA51AAE16F708FA000FDF05 /* FontTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A8716F708FA000FDF05 /* FontTest */; };
+ 1AA51AAF16F708FA000FDF05 /* IntervalTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A8816F708FA000FDF05 /* IntervalTest */; };
+ 1AA51AB016F708FA000FDF05 /* LabelTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A8916F708FA000FDF05 /* LabelTest */; };
+ 1AA51AB116F708FA000FDF05 /* LayerTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A8A16F708FA000FDF05 /* LayerTest */; };
+ 1AA51AB216F708FA000FDF05 /* MenuTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A8B16F708FA000FDF05 /* MenuTest */; };
+ 1AA51AB316F708FA000FDF05 /* OpenGLTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A8C16F708FA000FDF05 /* OpenGLTest */; };
+ 1AA51AB416F708FA000FDF05 /* ParallaxTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A8D16F708FA000FDF05 /* ParallaxTest */; };
+ 1AA51AB516F708FA000FDF05 /* ParticleTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A8E16F708FA000FDF05 /* ParticleTest */; };
+ 1AA51AB616F708FA000FDF05 /* PerformanceTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A8F16F708FA000FDF05 /* PerformanceTest */; };
+ 1AA51AB716F708FA000FDF05 /* Presentation in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A9016F708FA000FDF05 /* Presentation */; };
+ 1AA51AB816F708FA000FDF05 /* ProgressActionsTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A9116F708FA000FDF05 /* ProgressActionsTest */; };
+ 1AA51AB916F708FA000FDF05 /* RenderTextureTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A9216F708FA000FDF05 /* RenderTextureTest */; };
+ 1AA51ABB16F708FA000FDF05 /* RotateWorldTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A9416F708FA000FDF05 /* RotateWorldTest */; };
+ 1AA51ABC16F708FA000FDF05 /* SceneTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A9516F708FA000FDF05 /* SceneTest */; };
+ 1AA51ABD16F708FA000FDF05 /* SchedulerTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A9616F708FA000FDF05 /* SchedulerTest */; };
+ 1AA51ABE16F708FA000FDF05 /* SpriteTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A9716F708FA000FDF05 /* SpriteTest */; };
+ 1AA51ABF16F708FA000FDF05 /* SysTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A9816F708FA000FDF05 /* SysTest */; };
+ 1AA51AC016F708FA000FDF05 /* TextInputTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A9916F708FA000FDF05 /* TextInputTest */; };
+ 1AA51AC116F708FA000FDF05 /* TextureCacheTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A9A16F708FA000FDF05 /* TextureCacheTest */; };
+ 1AA51AC216F708FA000FDF05 /* TileMapTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A9B16F708FA000FDF05 /* TileMapTest */; };
+ 1AA51AC316F708FA000FDF05 /* TouchesTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A9C16F708FA000FDF05 /* TouchesTest */; };
+ 1AA51AC416F708FA000FDF05 /* TransitionsTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A9D16F708FA000FDF05 /* TransitionsTest */; };
+ 1AA51AC516F708FA000FDF05 /* UnitTest in Resources */ = {isa = PBXBuildFile; fileRef = 1AA51A9E16F708FA000FDF05 /* UnitTest */; };
+ A05FCAC8177C123600BE600E /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A05FCAC7177C123600BE600E /* OpenGL.framework */; };
+ A05FCAC9177C123F00BE600E /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A05FCAC7177C123600BE600E /* OpenGL.framework */; };
+ A05FCACC177C125300BE600E /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A05FCACB177C125300BE600E /* Cocoa.framework */; };
+ A05FCACD177C125800BE600E /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A05FCACB177C125300BE600E /* Cocoa.framework */; };
+ A05FCAD6177C129100BE600E /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = A05FCACF177C129100BE600E /* InfoPlist.strings */; };
+ A05FCAD7177C129100BE600E /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = A05FCACF177C129100BE600E /* InfoPlist.strings */; };
+ A05FCAD8177C129100BE600E /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = A05FCAD1177C129100BE600E /* MainMenu.xib */; };
+ A05FCAD9177C129100BE600E /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = A05FCAD1177C129100BE600E /* MainMenu.xib */; };
+ A05FCADA177C129100BE600E /* Icon.icns in Resources */ = {isa = PBXBuildFile; fileRef = A05FCAD3177C129100BE600E /* Icon.icns */; };
+ A05FCADB177C129100BE600E /* Icon.icns in Resources */ = {isa = PBXBuildFile; fileRef = A05FCAD3177C129100BE600E /* Icon.icns */; };
+ A05FCAE1177C12B500BE600E /* AppController.mm in Sources */ = {isa = PBXBuildFile; fileRef = A05FCAE0177C12B500BE600E /* AppController.mm */; };
+ A05FCAE2177C12B500BE600E /* AppController.mm in Sources */ = {isa = PBXBuildFile; fileRef = A05FCAE0177C12B500BE600E /* AppController.mm */; };
+ A05FCAEC177C1FBB00BE600E /* libcurl.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = A05FCAEB177C1FBB00BE600E /* libcurl.dylib */; };
+ A05FCAEE177C208D00BE600E /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = A05FCAED177C208D00BE600E /* main.m */; };
+ A05FCAEF177C208D00BE600E /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = A05FCAED177C208D00BE600E /* main.m */; };
+ A05FCAF1177C273700BE600E /* ApplicationServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A05FCAF0177C273700BE600E /* ApplicationServices.framework */; };
+ A218F7DC1743D97E00F65883 /* XHRTest in Resources */ = {isa = PBXBuildFile; fileRef = A218F7DB1743D97E00F65883 /* XHRTest */; };
+ A22656EF1743DCBB00598A2C /* ClippingNodeTest in Resources */ = {isa = PBXBuildFile; fileRef = A22656EE1743DCBB00598A2C /* ClippingNodeTest */; };
+ A92275421517C094001B78AA /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A92275411517C094001B78AA /* QuartzCore.framework */; };
+ A92275461517C094001B78AA /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A92275451517C094001B78AA /* OpenAL.framework */; };
+ A92275481517C094001B78AA /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A92275471517C094001B78AA /* AudioToolbox.framework */; };
+ A922754E1517C094001B78AA /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A922754D1517C094001B78AA /* Foundation.framework */; };
+ A92275501517C094001B78AA /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A922754F1517C094001B78AA /* CoreGraphics.framework */; };
+ D401B61116FB637400F2529D /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D4545215156E28EF00887EB5 /* AppDelegate.cpp */; };
+ D401B67D16FB637400F2529D /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A92275411517C094001B78AA /* QuartzCore.framework */; };
+ D401B67F16FB637400F2529D /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A92275451517C094001B78AA /* OpenAL.framework */; };
+ D401B68016FB637400F2529D /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A92275471517C094001B78AA /* AudioToolbox.framework */; };
+ D401B68116FB637400F2529D /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A92275491517C094001B78AA /* AVFoundation.framework */; };
+ D401B68316FB637400F2529D /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A922754D1517C094001B78AA /* Foundation.framework */; };
+ D401B68416FB637400F2529D /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A922754F1517C094001B78AA /* CoreGraphics.framework */; };
+ D401B6D716FBF49A00F2529D /* game.js in Resources */ = {isa = PBXBuildFile; fileRef = D401B6D516FBF48000F2529D /* game.js */; };
+ D401B6E016FC072B00F2529D /* tests-boot-jsb.js in Resources */ = {isa = PBXBuildFile; fileRef = D401B6DE16FC071100F2529D /* tests-boot-jsb.js */; };
+ D4545227156E28EF00887EB5 /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D4545215156E28EF00887EB5 /* AppDelegate.cpp */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXFileReference section */
+ 15A3D4621682F14C002FB0C5 /* main.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = main.js; path = ../../Shared/tests/main.js; sourceTree = ""; };
+ 15A3D4711682F14C002FB0C5 /* tests_resources-jsb.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = "tests_resources-jsb.js"; path = "../../Shared/tests/tests_resources-jsb.js"; sourceTree = ""; };
+ 15A3D4741682F14C002FB0C5 /* tests-main.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = "tests-main.js"; path = "../../Shared/tests/tests-main.js"; sourceTree = ""; };
+ 1A4C3F0E17784B6000EDFB3B /* libchipmunk.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libchipmunk.a; sourceTree = BUILT_PRODUCTS_DIR; };
+ 1A4C3F0F17784B6000EDFB3B /* libcocos2dx.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libcocos2dx.a; sourceTree = BUILT_PRODUCTS_DIR; };
+ 1A4C3F1017784B6000EDFB3B /* libCocosDenshion.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libCocosDenshion.a; sourceTree = BUILT_PRODUCTS_DIR; };
+ 1A4C3F1117784B6000EDFB3B /* libextensions.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libextensions.a; sourceTree = BUILT_PRODUCTS_DIR; };
+ 1A4C3F1217784B6000EDFB3B /* libjsbindings.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libjsbindings.a; sourceTree = BUILT_PRODUCTS_DIR; };
+ 1A6B05C417782A2400FFE52B /* libsqlite3.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libsqlite3.dylib; path = usr/lib/libsqlite3.dylib; sourceTree = SDKROOT; };
+ 1A6B05C617782B0500FFE52B /* libz.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libz.dylib; path = usr/lib/libz.dylib; sourceTree = SDKROOT; };
+ 1A6E4672177812AF0055514D /* jsb.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb.js; sourceTree = ""; };
+ 1A6E4673177812AF0055514D /* jsb_chipmunk.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_chipmunk.js; sourceTree = ""; };
+ 1A6E4674177812AF0055514D /* jsb_chipmunk_constants.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_chipmunk_constants.js; sourceTree = ""; };
+ 1A6E4675177812AF0055514D /* jsb_cocos2d.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_cocos2d.js; sourceTree = ""; };
+ 1A6E4676177812AF0055514D /* jsb_cocos2d_constants.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_cocos2d_constants.js; sourceTree = ""; };
+ 1A6E4677177812AF0055514D /* jsb_cocos2d_extension.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_cocos2d_extension.js; sourceTree = ""; };
+ 1A6E4678177812AF0055514D /* jsb_cocosbuilder.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_cocosbuilder.js; sourceTree = ""; };
+ 1A6E4679177812AF0055514D /* jsb_debugger.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_debugger.js; sourceTree = ""; };
+ 1A6E467A177812AF0055514D /* jsb_opengl.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_opengl.js; sourceTree = ""; };
+ 1A6E467B177812AF0055514D /* jsb_opengl_constants.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_opengl_constants.js; sourceTree = ""; };
+ 1A6E467C177812AF0055514D /* jsb_sys.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_sys.js; sourceTree = ""; };
+ 1A6E467D177812AF0055514D /* main.debug.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = main.debug.js; sourceTree = ""; };
+ 1A8033291728DECD00240CC3 /* EffectsAdvancedTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = EffectsAdvancedTest; path = ../../Shared/tests/EffectsAdvancedTest; sourceTree = ""; };
+ 1A80332B1728F1FB00240CC3 /* res */ = {isa = PBXFileReference; lastKnownFileType = folder; name = res; path = ../../Shared/tests/res; sourceTree = ""; };
+ 1AA51A7816F708FA000FDF05 /* ActionManagerTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = ActionManagerTest; path = ../../Shared/tests/ActionManagerTest; sourceTree = ""; };
+ 1AA51A7916F708FA000FDF05 /* ActionsTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = ActionsTest; path = ../../Shared/tests/ActionsTest; sourceTree = ""; };
+ 1AA51A7A16F708FA000FDF05 /* BaseTestLayer */ = {isa = PBXFileReference; lastKnownFileType = folder; name = BaseTestLayer; path = ../../Shared/tests/BaseTestLayer; sourceTree = ""; };
+ 1AA51A7B16F708FA000FDF05 /* Box2dTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = Box2dTest; path = ../../Shared/tests/Box2dTest; sourceTree = ""; };
+ 1AA51A7C16F708FA000FDF05 /* ChipmunkTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = ChipmunkTest; path = ../../Shared/tests/ChipmunkTest; sourceTree = ""; };
+ 1AA51A7D16F708FA000FDF05 /* ClickAndMoveTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = ClickAndMoveTest; path = ../../Shared/tests/ClickAndMoveTest; sourceTree = ""; };
+ 1AA51A7E16F708FA000FDF05 /* CocosDenshionTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = CocosDenshionTest; path = ../../Shared/tests/CocosDenshionTest; sourceTree = ""; };
+ 1AA51A7F16F708FA000FDF05 /* CocosNodeTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = CocosNodeTest; path = ../../Shared/tests/CocosNodeTest; sourceTree = ""; };
+ 1AA51A8016F708FA000FDF05 /* CurrentLanguageTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = CurrentLanguageTest; path = ../../Shared/tests/CurrentLanguageTest; sourceTree = ""; };
+ 1AA51A8116F708FA000FDF05 /* DrawPrimitivesTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = DrawPrimitivesTest; path = ../../Shared/tests/DrawPrimitivesTest; sourceTree = ""; };
+ 1AA51A8216F708FA000FDF05 /* EaseActionsTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = EaseActionsTest; path = ../../Shared/tests/EaseActionsTest; sourceTree = ""; };
+ 1AA51A8316F708FA000FDF05 /* EffectsTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = EffectsTest; path = ../../Shared/tests/EffectsTest; sourceTree = ""; };
+ 1AA51A8416F708FA000FDF05 /* EventTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = EventTest; path = ../../Shared/tests/EventTest; sourceTree = ""; };
+ 1AA51A8516F708FA000FDF05 /* ExtensionsTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = ExtensionsTest; path = ../../Shared/tests/ExtensionsTest; sourceTree = ""; };
+ 1AA51A8616F708FA000FDF05 /* FileUtils */ = {isa = PBXFileReference; lastKnownFileType = folder; name = FileUtils; path = ../../Shared/tests/FileUtils; sourceTree = ""; };
+ 1AA51A8716F708FA000FDF05 /* FontTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = FontTest; path = ../../Shared/tests/FontTest; sourceTree = ""; };
+ 1AA51A8816F708FA000FDF05 /* IntervalTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = IntervalTest; path = ../../Shared/tests/IntervalTest; sourceTree = ""; };
+ 1AA51A8916F708FA000FDF05 /* LabelTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = LabelTest; path = ../../Shared/tests/LabelTest; sourceTree = ""; };
+ 1AA51A8A16F708FA000FDF05 /* LayerTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = LayerTest; path = ../../Shared/tests/LayerTest; sourceTree = ""; };
+ 1AA51A8B16F708FA000FDF05 /* MenuTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = MenuTest; path = ../../Shared/tests/MenuTest; sourceTree = ""; };
+ 1AA51A8C16F708FA000FDF05 /* OpenGLTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = OpenGLTest; path = ../../Shared/tests/OpenGLTest; sourceTree = ""; };
+ 1AA51A8D16F708FA000FDF05 /* ParallaxTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = ParallaxTest; path = ../../Shared/tests/ParallaxTest; sourceTree = ""; };
+ 1AA51A8E16F708FA000FDF05 /* ParticleTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = ParticleTest; path = ../../Shared/tests/ParticleTest; sourceTree = ""; };
+ 1AA51A8F16F708FA000FDF05 /* PerformanceTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = PerformanceTest; path = ../../Shared/tests/PerformanceTest; sourceTree = ""; };
+ 1AA51A9016F708FA000FDF05 /* Presentation */ = {isa = PBXFileReference; lastKnownFileType = folder; name = Presentation; path = ../../Shared/tests/Presentation; sourceTree = ""; };
+ 1AA51A9116F708FA000FDF05 /* ProgressActionsTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = ProgressActionsTest; path = ../../Shared/tests/ProgressActionsTest; sourceTree = ""; };
+ 1AA51A9216F708FA000FDF05 /* RenderTextureTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = RenderTextureTest; path = ../../Shared/tests/RenderTextureTest; sourceTree = ""; };
+ 1AA51A9416F708FA000FDF05 /* RotateWorldTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = RotateWorldTest; path = ../../Shared/tests/RotateWorldTest; sourceTree = ""; };
+ 1AA51A9516F708FA000FDF05 /* SceneTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = SceneTest; path = ../../Shared/tests/SceneTest; sourceTree = ""; };
+ 1AA51A9616F708FA000FDF05 /* SchedulerTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = SchedulerTest; path = ../../Shared/tests/SchedulerTest; sourceTree = ""; };
+ 1AA51A9716F708FA000FDF05 /* SpriteTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = SpriteTest; path = ../../Shared/tests/SpriteTest; sourceTree = ""; };
+ 1AA51A9816F708FA000FDF05 /* SysTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = SysTest; path = ../../Shared/tests/SysTest; sourceTree = ""; };
+ 1AA51A9916F708FA000FDF05 /* TextInputTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = TextInputTest; path = ../../Shared/tests/TextInputTest; sourceTree = ""; };
+ 1AA51A9A16F708FA000FDF05 /* TextureCacheTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = TextureCacheTest; path = ../../Shared/tests/TextureCacheTest; sourceTree = ""; };
+ 1AA51A9B16F708FA000FDF05 /* TileMapTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = TileMapTest; path = ../../Shared/tests/TileMapTest; sourceTree = ""; };
+ 1AA51A9C16F708FA000FDF05 /* TouchesTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = TouchesTest; path = ../../Shared/tests/TouchesTest; sourceTree = ""; };
+ 1AA51A9D16F708FA000FDF05 /* TransitionsTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = TransitionsTest; path = ../../Shared/tests/TransitionsTest; sourceTree = ""; };
+ 1AA51A9E16F708FA000FDF05 /* UnitTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = UnitTest; path = ../../Shared/tests/UnitTest; sourceTree = ""; };
+ A05FCAC7177C123600BE600E /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGL.framework; path = System/Library/Frameworks/OpenGL.framework; sourceTree = SDKROOT; };
+ A05FCACB177C125300BE600E /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; };
+ A05FCAD0177C129100BE600E /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = InfoPlist.strings; sourceTree = ""; };
+ A05FCAD2177C129100BE600E /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = MainMenu.xib; sourceTree = ""; };
+ A05FCAD3177C129100BE600E /* Icon.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = Icon.icns; sourceTree = ""; };
+ A05FCAD4177C129100BE600E /* Test_Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Test_Info.plist; sourceTree = ""; };
+ A05FCAD5177C129100BE600E /* Test_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Test_Prefix.pch; sourceTree = ""; };
+ A05FCADF177C12B500BE600E /* AppController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppController.h; sourceTree = ""; };
+ A05FCAE0177C12B500BE600E /* AppController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = AppController.mm; sourceTree = ""; };
+ A05FCAEB177C1FBB00BE600E /* libcurl.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libcurl.dylib; path = usr/lib/libcurl.dylib; sourceTree = SDKROOT; };
+ A05FCAED177C208D00BE600E /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
+ A05FCAF0177C273700BE600E /* ApplicationServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ApplicationServices.framework; path = System/Library/Frameworks/ApplicationServices.framework; sourceTree = SDKROOT; };
+ A218F7DB1743D97E00F65883 /* XHRTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = XHRTest; path = ../../Shared/tests/XHRTest; sourceTree = ""; };
+ A22656EE1743DCBB00598A2C /* ClippingNodeTest */ = {isa = PBXFileReference; lastKnownFileType = folder; name = ClippingNodeTest; path = ../../Shared/tests/ClippingNodeTest; sourceTree = ""; };
+ A922753D1517C094001B78AA /* TestJavascript.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TestJavascript.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ A92275411517C094001B78AA /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
+ A92275451517C094001B78AA /* OpenAL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenAL.framework; path = System/Library/Frameworks/OpenAL.framework; sourceTree = SDKROOT; };
+ A92275471517C094001B78AA /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; };
+ A92275491517C094001B78AA /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; };
+ A922754D1517C094001B78AA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
+ A922754F1517C094001B78AA /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
+ D401B5FD16FB199B00F2529D /* Icon-57.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-57.png"; sourceTree = ""; };
+ D401B5FF16FB19A000F2529D /* Icon-114.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-114.png"; sourceTree = ""; };
+ D401B60116FB19A600F2529D /* Icon-72.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-72.png"; sourceTree = ""; };
+ D401B60316FB19A900F2529D /* Icon-144.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-144.png"; sourceTree = ""; };
+ D401B6C816FB637400F2529D /* TestJavascriptObfuscated.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TestJavascriptObfuscated.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ D401B6D516FBF48000F2529D /* game.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = game.js; path = ../game.js; sourceTree = ""; };
+ D401B6DE16FC071100F2529D /* tests-boot-jsb.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = "tests-boot-jsb.js"; path = "../../Shared/tests/tests-boot-jsb.js"; sourceTree = ""; };
+ D446FDA216102D7D000ADA7B /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = ""; };
+ D446FDA416102D82000ADA7B /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = ""; };
+ D446FDA616102D86000ADA7B /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = ""; };
+ D4545215156E28EF00887EB5 /* AppDelegate.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AppDelegate.cpp; sourceTree = ""; };
+ D4545216156E28EF00887EB5 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ A922753A1517C094001B78AA /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ A05FCAEC177C1FBB00BE600E /* libcurl.dylib in Frameworks */,
+ 1A4C3F1317784B6000EDFB3B /* libchipmunk.a in Frameworks */,
+ 1A4C3F1417784B6000EDFB3B /* libcocos2dx.a in Frameworks */,
+ 1A4C3F1517784B6000EDFB3B /* libCocosDenshion.a in Frameworks */,
+ 1A4C3F1617784B6000EDFB3B /* libextensions.a in Frameworks */,
+ 1A4C3F1717784B6000EDFB3B /* libjsbindings.a in Frameworks */,
+ 1A6B05C717782B0500FFE52B /* libz.dylib in Frameworks */,
+ 1A6B05C517782A2400FFE52B /* libsqlite3.dylib in Frameworks */,
+ A92275461517C094001B78AA /* OpenAL.framework in Frameworks */,
+ A05FCAF1177C273700BE600E /* ApplicationServices.framework in Frameworks */,
+ A92275421517C094001B78AA /* QuartzCore.framework in Frameworks */,
+ A92275481517C094001B78AA /* AudioToolbox.framework in Frameworks */,
+ A922754E1517C094001B78AA /* Foundation.framework in Frameworks */,
+ A92275501517C094001B78AA /* CoreGraphics.framework in Frameworks */,
+ A05FCAC9177C123F00BE600E /* OpenGL.framework in Frameworks */,
+ A05FCACD177C125800BE600E /* Cocoa.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ D401B67816FB637400F2529D /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ A05FCACC177C125300BE600E /* Cocoa.framework in Frameworks */,
+ A05FCAC8177C123600BE600E /* OpenGL.framework in Frameworks */,
+ D401B67D16FB637400F2529D /* QuartzCore.framework in Frameworks */,
+ D401B67F16FB637400F2529D /* OpenAL.framework in Frameworks */,
+ D401B68016FB637400F2529D /* AudioToolbox.framework in Frameworks */,
+ D401B68116FB637400F2529D /* AVFoundation.framework in Frameworks */,
+ D401B68316FB637400F2529D /* Foundation.framework in Frameworks */,
+ D401B68416FB637400F2529D /* CoreGraphics.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 15628F5B15F0F5C2000CF24B /* Resources */ = {
+ isa = PBXGroup;
+ children = (
+ 1A6E4671177812AF0055514D /* js */,
+ 1A80332B1728F1FB00240CC3 /* res */,
+ D446FDA616102D86000ADA7B /* Default-568h@2x.png */,
+ D446FDA216102D7D000ADA7B /* Default.png */,
+ D446FDA416102D82000ADA7B /* Default@2x.png */,
+ D401B60316FB19A900F2529D /* Icon-144.png */,
+ D401B60116FB19A600F2529D /* Icon-72.png */,
+ D401B5FF16FB19A000F2529D /* Icon-114.png */,
+ D401B5FD16FB199B00F2529D /* Icon-57.png */,
+ );
+ name = Resources;
+ sourceTree = "";
+ };
+ 1A6E4671177812AF0055514D /* js */ = {
+ isa = PBXGroup;
+ children = (
+ 1A6E4672177812AF0055514D /* jsb.js */,
+ 1A6E4673177812AF0055514D /* jsb_chipmunk.js */,
+ 1A6E4674177812AF0055514D /* jsb_chipmunk_constants.js */,
+ 1A6E4675177812AF0055514D /* jsb_cocos2d.js */,
+ 1A6E4676177812AF0055514D /* jsb_cocos2d_constants.js */,
+ 1A6E4677177812AF0055514D /* jsb_cocos2d_extension.js */,
+ 1A6E4678177812AF0055514D /* jsb_cocosbuilder.js */,
+ 1A6E4679177812AF0055514D /* jsb_debugger.js */,
+ 1A6E467A177812AF0055514D /* jsb_opengl.js */,
+ 1A6E467B177812AF0055514D /* jsb_opengl_constants.js */,
+ 1A6E467C177812AF0055514D /* jsb_sys.js */,
+ 1A6E467D177812AF0055514D /* main.debug.js */,
+ );
+ name = js;
+ path = ../../../../scripting/javascript/bindings/js;
+ sourceTree = "";
+ };
+ A05FCACE177C129100BE600E /* en.lproj */ = {
+ isa = PBXGroup;
+ children = (
+ A05FCACF177C129100BE600E /* InfoPlist.strings */,
+ A05FCAD1177C129100BE600E /* MainMenu.xib */,
+ );
+ path = en.lproj;
+ sourceTree = "";
+ };
+ A05FCADE177C129A00BE600E /* mac */ = {
+ isa = PBXGroup;
+ children = (
+ A05FCAED177C208D00BE600E /* main.m */,
+ A05FCADF177C12B500BE600E /* AppController.h */,
+ A05FCAE0177C12B500BE600E /* AppController.mm */,
+ A05FCACE177C129100BE600E /* en.lproj */,
+ A05FCAD3177C129100BE600E /* Icon.icns */,
+ A05FCAD4177C129100BE600E /* Test_Info.plist */,
+ A05FCAD5177C129100BE600E /* Test_Prefix.pch */,
+ );
+ name = mac;
+ sourceTree = "";
+ };
+ A92275321517C094001B78AA = {
+ isa = PBXGroup;
+ children = (
+ D4545214156E28EF00887EB5 /* Classes */,
+ A05FCADE177C129A00BE600E /* mac */,
+ A92275401517C094001B78AA /* Frameworks */,
+ D401B60716FB632B00F2529D /* js_src_obfuscated */,
+ D401B5FC16FB169100F2529D /* js_src_raw */,
+ A922753E1517C094001B78AA /* Products */,
+ 15628F5B15F0F5C2000CF24B /* Resources */,
+ );
+ sourceTree = "";
+ };
+ A922753E1517C094001B78AA /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ A922753D1517C094001B78AA /* TestJavascript.app */,
+ D401B6C816FB637400F2529D /* TestJavascriptObfuscated.app */,
+ );
+ name = Products;
+ sourceTree = "";
+ };
+ A92275401517C094001B78AA /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ A05FCAEB177C1FBB00BE600E /* libcurl.dylib */,
+ 1A4C3F0E17784B6000EDFB3B /* libchipmunk.a */,
+ 1A4C3F0F17784B6000EDFB3B /* libcocos2dx.a */,
+ 1A4C3F1017784B6000EDFB3B /* libCocosDenshion.a */,
+ 1A4C3F1117784B6000EDFB3B /* libextensions.a */,
+ 1A4C3F1217784B6000EDFB3B /* libjsbindings.a */,
+ 1A6B05C617782B0500FFE52B /* libz.dylib */,
+ 1A6B05C417782A2400FFE52B /* libsqlite3.dylib */,
+ A05FCAF0177C273700BE600E /* ApplicationServices.framework */,
+ A05FCACB177C125300BE600E /* Cocoa.framework */,
+ A05FCAC7177C123600BE600E /* OpenGL.framework */,
+ A92275411517C094001B78AA /* QuartzCore.framework */,
+ A92275451517C094001B78AA /* OpenAL.framework */,
+ A92275471517C094001B78AA /* AudioToolbox.framework */,
+ A92275491517C094001B78AA /* AVFoundation.framework */,
+ A922754D1517C094001B78AA /* Foundation.framework */,
+ A922754F1517C094001B78AA /* CoreGraphics.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "";
+ };
+ D401B5FC16FB169100F2529D /* js_src_raw */ = {
+ isa = PBXGroup;
+ children = (
+ A22656EE1743DCBB00598A2C /* ClippingNodeTest */,
+ A218F7DB1743D97E00F65883 /* XHRTest */,
+ 1AA51A7816F708FA000FDF05 /* ActionManagerTest */,
+ 1AA51A7916F708FA000FDF05 /* ActionsTest */,
+ 1AA51A7A16F708FA000FDF05 /* BaseTestLayer */,
+ 1AA51A7B16F708FA000FDF05 /* Box2dTest */,
+ 1AA51A7C16F708FA000FDF05 /* ChipmunkTest */,
+ 1AA51A7D16F708FA000FDF05 /* ClickAndMoveTest */,
+ 1AA51A7E16F708FA000FDF05 /* CocosDenshionTest */,
+ 1AA51A7F16F708FA000FDF05 /* CocosNodeTest */,
+ 1AA51A8016F708FA000FDF05 /* CurrentLanguageTest */,
+ 1AA51A8116F708FA000FDF05 /* DrawPrimitivesTest */,
+ 1AA51A8216F708FA000FDF05 /* EaseActionsTest */,
+ 1A8033291728DECD00240CC3 /* EffectsAdvancedTest */,
+ 1AA51A8316F708FA000FDF05 /* EffectsTest */,
+ 1AA51A8416F708FA000FDF05 /* EventTest */,
+ 1AA51A8516F708FA000FDF05 /* ExtensionsTest */,
+ 1AA51A8616F708FA000FDF05 /* FileUtils */,
+ 1AA51A8716F708FA000FDF05 /* FontTest */,
+ 1AA51A8816F708FA000FDF05 /* IntervalTest */,
+ 1AA51A8916F708FA000FDF05 /* LabelTest */,
+ 1AA51A8A16F708FA000FDF05 /* LayerTest */,
+ 1AA51A8B16F708FA000FDF05 /* MenuTest */,
+ 1AA51A8C16F708FA000FDF05 /* OpenGLTest */,
+ 1AA51A8D16F708FA000FDF05 /* ParallaxTest */,
+ 1AA51A8E16F708FA000FDF05 /* ParticleTest */,
+ 1AA51A8F16F708FA000FDF05 /* PerformanceTest */,
+ 1AA51A9016F708FA000FDF05 /* Presentation */,
+ 1AA51A9116F708FA000FDF05 /* ProgressActionsTest */,
+ 1AA51A9216F708FA000FDF05 /* RenderTextureTest */,
+ 1AA51A9416F708FA000FDF05 /* RotateWorldTest */,
+ 1AA51A9516F708FA000FDF05 /* SceneTest */,
+ 1AA51A9616F708FA000FDF05 /* SchedulerTest */,
+ 1AA51A9716F708FA000FDF05 /* SpriteTest */,
+ 1AA51A9816F708FA000FDF05 /* SysTest */,
+ 1AA51A9916F708FA000FDF05 /* TextInputTest */,
+ 1AA51A9A16F708FA000FDF05 /* TextureCacheTest */,
+ 1AA51A9B16F708FA000FDF05 /* TileMapTest */,
+ 1AA51A9C16F708FA000FDF05 /* TouchesTest */,
+ 1AA51A9D16F708FA000FDF05 /* TransitionsTest */,
+ 1AA51A9E16F708FA000FDF05 /* UnitTest */,
+ 15A3D4621682F14C002FB0C5 /* main.js */,
+ D401B6DE16FC071100F2529D /* tests-boot-jsb.js */,
+ 15A3D4741682F14C002FB0C5 /* tests-main.js */,
+ 15A3D4711682F14C002FB0C5 /* tests_resources-jsb.js */,
+ );
+ name = js_src_raw;
+ sourceTree = "";
+ };
+ D401B60716FB632B00F2529D /* js_src_obfuscated */ = {
+ isa = PBXGroup;
+ children = (
+ D401B6D516FBF48000F2529D /* game.js */,
+ );
+ name = js_src_obfuscated;
+ sourceTree = "";
+ };
+ D4545214156E28EF00887EB5 /* Classes */ = {
+ isa = PBXGroup;
+ children = (
+ D4545215156E28EF00887EB5 /* AppDelegate.cpp */,
+ D4545216156E28EF00887EB5 /* AppDelegate.h */,
+ );
+ name = Classes;
+ path = ../Classes;
+ sourceTree = "";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ A922753C1517C094001B78AA /* TestJavascript */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = A92277001517C097001B78AA /* Build configuration list for PBXNativeTarget "TestJavascript" */;
+ buildPhases = (
+ A92275391517C094001B78AA /* Sources */,
+ A922753A1517C094001B78AA /* Frameworks */,
+ A922753B1517C094001B78AA /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = TestJavascript;
+ productName = TestJavascript;
+ productReference = A922753D1517C094001B78AA /* TestJavascript.app */;
+ productType = "com.apple.product-type.application";
+ };
+ D401B60A16FB637400F2529D /* TestJavascriptObfuscated */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = D401B6C516FB637400F2529D /* Build configuration list for PBXNativeTarget "TestJavascriptObfuscated" */;
+ buildPhases = (
+ D401B60D16FB637400F2529D /* Sources */,
+ D401B67816FB637400F2529D /* Frameworks */,
+ D401B6E116FC076200F2529D /* ShellScript */,
+ D401B68516FB637400F2529D /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = TestJavascriptObfuscated;
+ productName = TestJavascript;
+ productReference = D401B6C816FB637400F2529D /* TestJavascriptObfuscated.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ A92275341517C094001B78AA /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ LastUpgradeCheck = 0430;
+ };
+ buildConfigurationList = A92275371517C094001B78AA /* Build configuration list for PBXProject "TestJavascript" */;
+ compatibilityVersion = "Xcode 3.2";
+ developmentRegion = English;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ );
+ mainGroup = A92275321517C094001B78AA;
+ productRefGroup = A922753E1517C094001B78AA /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ A922753C1517C094001B78AA /* TestJavascript */,
+ D401B60A16FB637400F2529D /* TestJavascriptObfuscated */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ A922753B1517C094001B78AA /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 1A6E468A177812D20055514D /* jsb.js in Resources */,
+ 1A6E468B177812D20055514D /* jsb_chipmunk.js in Resources */,
+ 1A6E468C177812D20055514D /* jsb_chipmunk_constants.js in Resources */,
+ 1A6E468D177812D20055514D /* jsb_cocos2d.js in Resources */,
+ 1A6E468E177812D20055514D /* jsb_cocos2d_constants.js in Resources */,
+ 1A6E468F177812D20055514D /* jsb_cocos2d_extension.js in Resources */,
+ 1A6E4690177812D20055514D /* jsb_cocosbuilder.js in Resources */,
+ 1A6E4691177812D20055514D /* jsb_debugger.js in Resources */,
+ 1A6E4692177812D20055514D /* jsb_opengl.js in Resources */,
+ 1A6E4693177812D20055514D /* jsb_opengl_constants.js in Resources */,
+ 1A6E4694177812D20055514D /* jsb_sys.js in Resources */,
+ 1A6E4695177812D20055514D /* main.debug.js in Resources */,
+ D401B6E016FC072B00F2529D /* tests-boot-jsb.js in Resources */,
+ 15A3D5631682F20C002FB0C5 /* main.js in Resources */,
+ 15A3D5651682F20C002FB0C5 /* tests_resources-jsb.js in Resources */,
+ 15A3D5681682F20C002FB0C5 /* tests-main.js in Resources */,
+ 1AA51A9F16F708FA000FDF05 /* ActionManagerTest in Resources */,
+ 1AA51AA016F708FA000FDF05 /* ActionsTest in Resources */,
+ 1AA51AA116F708FA000FDF05 /* BaseTestLayer in Resources */,
+ 1AA51AA216F708FA000FDF05 /* Box2dTest in Resources */,
+ 1AA51AA316F708FA000FDF05 /* ChipmunkTest in Resources */,
+ 1AA51AA416F708FA000FDF05 /* ClickAndMoveTest in Resources */,
+ 1AA51AA516F708FA000FDF05 /* CocosDenshionTest in Resources */,
+ 1AA51AA616F708FA000FDF05 /* CocosNodeTest in Resources */,
+ 1AA51AA716F708FA000FDF05 /* CurrentLanguageTest in Resources */,
+ 1AA51AA816F708FA000FDF05 /* DrawPrimitivesTest in Resources */,
+ 1AA51AA916F708FA000FDF05 /* EaseActionsTest in Resources */,
+ 1AA51AAA16F708FA000FDF05 /* EffectsTest in Resources */,
+ 1AA51AAB16F708FA000FDF05 /* EventTest in Resources */,
+ 1AA51AAC16F708FA000FDF05 /* ExtensionsTest in Resources */,
+ 1AA51AAD16F708FA000FDF05 /* FileUtils in Resources */,
+ 1AA51AAE16F708FA000FDF05 /* FontTest in Resources */,
+ 1AA51AAF16F708FA000FDF05 /* IntervalTest in Resources */,
+ 1AA51AB016F708FA000FDF05 /* LabelTest in Resources */,
+ 1AA51AB116F708FA000FDF05 /* LayerTest in Resources */,
+ 1AA51AB216F708FA000FDF05 /* MenuTest in Resources */,
+ 1AA51AB316F708FA000FDF05 /* OpenGLTest in Resources */,
+ 1AA51AB416F708FA000FDF05 /* ParallaxTest in Resources */,
+ 1AA51AB516F708FA000FDF05 /* ParticleTest in Resources */,
+ 1AA51AB616F708FA000FDF05 /* PerformanceTest in Resources */,
+ 1AA51AB716F708FA000FDF05 /* Presentation in Resources */,
+ 1AA51AB816F708FA000FDF05 /* ProgressActionsTest in Resources */,
+ 1AA51AB916F708FA000FDF05 /* RenderTextureTest in Resources */,
+ 1AA51ABB16F708FA000FDF05 /* RotateWorldTest in Resources */,
+ 1AA51ABC16F708FA000FDF05 /* SceneTest in Resources */,
+ 1AA51ABD16F708FA000FDF05 /* SchedulerTest in Resources */,
+ 1AA51ABE16F708FA000FDF05 /* SpriteTest in Resources */,
+ 1AA51ABF16F708FA000FDF05 /* SysTest in Resources */,
+ 1AA51AC016F708FA000FDF05 /* TextInputTest in Resources */,
+ 1AA51AC116F708FA000FDF05 /* TextureCacheTest in Resources */,
+ 1AA51AC216F708FA000FDF05 /* TileMapTest in Resources */,
+ 1AA51AC316F708FA000FDF05 /* TouchesTest in Resources */,
+ 1AA51AC416F708FA000FDF05 /* TransitionsTest in Resources */,
+ 1AA51AC516F708FA000FDF05 /* UnitTest in Resources */,
+ 1A80332A1728DECD00240CC3 /* EffectsAdvancedTest in Resources */,
+ 1A80332C1728F1FB00240CC3 /* res in Resources */,
+ A218F7DC1743D97E00F65883 /* XHRTest in Resources */,
+ A22656EF1743DCBB00598A2C /* ClippingNodeTest in Resources */,
+ A05FCAD6177C129100BE600E /* InfoPlist.strings in Resources */,
+ A05FCAD8177C129100BE600E /* MainMenu.xib in Resources */,
+ A05FCADA177C129100BE600E /* Icon.icns in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ D401B68516FB637400F2529D /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ D401B6D716FBF49A00F2529D /* game.js in Resources */,
+ A05FCAD7177C129100BE600E /* InfoPlist.strings in Resources */,
+ A05FCAD9177C129100BE600E /* MainMenu.xib in Resources */,
+ A05FCADB177C129100BE600E /* Icon.icns in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXShellScriptBuildPhase section */
+ D401B6E116FC076200F2529D /* ShellScript */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "pushd $SRCROOT/../\nrm game.js\nant -buildfile obfuscate.xml\npopd\n";
+ };
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ A92275391517C094001B78AA /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ D4545227156E28EF00887EB5 /* AppDelegate.cpp in Sources */,
+ A05FCAE1177C12B500BE600E /* AppController.mm in Sources */,
+ A05FCAEE177C208D00BE600E /* main.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ D401B60D16FB637400F2529D /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ D401B61116FB637400F2529D /* AppDelegate.cpp in Sources */,
+ A05FCAE2177C12B500BE600E /* AppController.mm in Sources */,
+ A05FCAEF177C208D00BE600E /* main.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+ A05FCACF177C129100BE600E /* InfoPlist.strings */ = {
+ isa = PBXVariantGroup;
+ children = (
+ A05FCAD0177C129100BE600E /* en */,
+ );
+ name = InfoPlist.strings;
+ sourceTree = "";
+ };
+ A05FCAD1177C129100BE600E /* MainMenu.xib */ = {
+ isa = PBXVariantGroup;
+ children = (
+ A05FCAD2177C129100BE600E /* en */,
+ );
+ name = MainMenu.xib;
+ sourceTree = "";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ A92276FE1517C097001B78AA /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
+ CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ GCC_C_LANGUAGE_STANDARD = c99;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "COCOS2D_DEBUG=1",
+ COCOS2D_JAVASCRIPT,
+ USE_FILE32API,
+ CC_ENABLE_CHIPMUNK_INTEGRATION,
+ CC_TARGET_OS_MAC,
+ DEBUG,
+ CC_KEYBOARD_SUPPORT,
+ );
+ GCC_SYMBOLS_PRIVATE_EXTERN = NO;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ HEADER_SEARCH_PATHS = (
+ "$(SRCROOT)/../../../../cocos2dx",
+ "$(SRCROOT)/../../../../cocos2dx/include",
+ "$(SRCROOT)/../../../../cocos2dx/platform/mac",
+ "$(SRCROOT)/../../../../cocos2dx/kazmath/include",
+ "${SRCROOT}/../../../../cocos2dx/platform/third_party/mac",
+ "$(SRCROOT)/../../../../CocosDenshion/include",
+ "$(SRCROOT)/../../../../external/chipmunk/include/chipmunk",
+ "$(SRCROOT)/../../../../scripting/javascript/spidermonkey-mac/include",
+ "$(SRCROOT)/../../../../scripting/javascript/bindings",
+ "$(SRCROOT)/../../../../extensions",
+ );
+ LIBRARY_SEARCH_PATHS = (
+ "\"$(SRCROOT)/../../../../scripting/javascript/spidermonkey-mac/lib\"",
+ "\"$(SRCROOT)/../../../../cocos2dx/platform/third_party/mac/libraries\"",
+ "\"$(SRCROOT)/../../../../external/libwebsockets/mac/lib\"",
+ );
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = macosx;
+ };
+ name = Debug;
+ };
+ A92276FF1517C097001B78AA /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
+ CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ GCC_C_LANGUAGE_STANDARD = c99;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ COCOS2D_JAVASCRIPT,
+ USE_FILE32API,
+ CC_ENABLE_CHIPMUNK_INTEGRATION,
+ CC_TARGET_OS_MAC,
+ NDEBUG,
+ CC_KEYBOARD_SUPPORT,
+ );
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ HEADER_SEARCH_PATHS = (
+ "$(SRCROOT)/../../../../cocos2dx",
+ "$(SRCROOT)/../../../../cocos2dx/include",
+ "$(SRCROOT)/../../../../cocos2dx/platform/mac",
+ "$(SRCROOT)/../../../../cocos2dx/kazmath/include",
+ "${SRCROOT}/../../../../cocos2dx/platform/third_party/mac",
+ "$(SRCROOT)/../../../../CocosDenshion/include",
+ "$(SRCROOT)/../../../../external/chipmunk/include/chipmunk",
+ "$(SRCROOT)/../../../../scripting/javascript/spidermonkey-mac/include",
+ "$(SRCROOT)/../../../../scripting/javascript/bindings",
+ "$(SRCROOT)/../../../../extensions",
+ );
+ LIBRARY_SEARCH_PATHS = (
+ "\"$(SRCROOT)/../../../../scripting/javascript/spidermonkey-mac/lib\"",
+ "\"$(SRCROOT)/../../../../cocos2dx/platform/third_party/mac/libraries\"",
+ "\"$(SRCROOT)/../../../../external/libwebsockets/mac/lib\"",
+ );
+ SDKROOT = macosx;
+ };
+ name = Release;
+ };
+ A92277011517C097001B78AA /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ COPY_PHASE_STRIP = NO;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = Test_Prefix.pch;
+ GCC_VERSION = "";
+ INFOPLIST_FILE = "$(SRCROOT)/Test_Info.plist";
+ ONLY_ACTIVE_ARCH = YES;
+ OTHER_LDFLAGS = "";
+ PRODUCT_NAME = TestJavascript;
+ WRAPPER_EXTENSION = app;
+ };
+ name = Debug;
+ };
+ A92277021517C097001B78AA /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ COPY_PHASE_STRIP = YES;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = Test_Prefix.pch;
+ GCC_VERSION = "";
+ INFOPLIST_FILE = "$(SRCROOT)/Test_Info.plist";
+ ONLY_ACTIVE_ARCH = YES;
+ OTHER_LDFLAGS = "";
+ PRODUCT_NAME = TestJavascript;
+ VALIDATE_PRODUCT = YES;
+ WRAPPER_EXTENSION = app;
+ };
+ name = Release;
+ };
+ D401B6C616FB637400F2529D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ COPY_PHASE_STRIP = NO;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_OPTIMIZATION_LEVEL = 1;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = Test_Prefix.pch;
+ GCC_THUMB_SUPPORT = NO;
+ GCC_VERSION = "";
+ INFOPLIST_FILE = "$(SRCROOT)/Info-obfuscated.plist";
+ IPHONEOS_DEPLOYMENT_TARGET = 5.0;
+ OTHER_LDFLAGS = (
+ "-lxml2",
+ "-lz",
+ "-ljs_static",
+ );
+ PRODUCT_NAME = TestJavascriptObfuscated;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ WRAPPER_EXTENSION = app;
+ };
+ name = Debug;
+ };
+ D401B6C716FB637400F2529D /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ COPY_PHASE_STRIP = YES;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = Test_Prefix.pch;
+ GCC_THUMB_SUPPORT = NO;
+ GCC_VERSION = "";
+ INFOPLIST_FILE = "$(SRCROOT)/Info-obfuscated.plist";
+ IPHONEOS_DEPLOYMENT_TARGET = 5.0;
+ OTHER_LDFLAGS = (
+ "-lxml2",
+ "-lz",
+ "-ljs_static",
+ );
+ PRODUCT_NAME = TestJavascriptObfuscated;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ WRAPPER_EXTENSION = app;
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ A92275371517C094001B78AA /* Build configuration list for PBXProject "TestJavascript" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ A92276FE1517C097001B78AA /* Debug */,
+ A92276FF1517C097001B78AA /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ A92277001517C097001B78AA /* Build configuration list for PBXNativeTarget "TestJavascript" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ A92277011517C097001B78AA /* Debug */,
+ A92277021517C097001B78AA /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ D401B6C516FB637400F2529D /* Build configuration list for PBXNativeTarget "TestJavascriptObfuscated" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ D401B6C616FB637400F2529D /* Debug */,
+ D401B6C716FB637400F2529D /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = A92275341517C094001B78AA /* Project object */;
+}
diff --git a/samples/Javascript/TestJavascript/proj.mac/TestJavascript.xcodeproj/project.xcworkspace/xcshareddata/TestJavascript.xccheckout b/samples/Javascript/TestJavascript/proj.mac/TestJavascript.xcodeproj/project.xcworkspace/xcshareddata/TestJavascript.xccheckout
new file mode 100644
index 0000000000..58f6193c12
--- /dev/null
+++ b/samples/Javascript/TestJavascript/proj.mac/TestJavascript.xcodeproj/project.xcworkspace/xcshareddata/TestJavascript.xccheckout
@@ -0,0 +1,63 @@
+
+
+
+
+ IDESourceControlProjectIdentifier
+ 0B98B4D8-828E-460D-817C-495BE3652AD5
+ IDESourceControlProjectName
+ TestJavascript
+ IDESourceControlProjectOriginsDictionary
+
+ 5B0F35E6-1A4B-4F3D-A082-C30150726270
+ git://github.com/folecr/cocos2dx-autogen-bindings.git
+ D2399FF0-C90F-4E4F-8E8D-F9BE2AA9DC5A
+ https://github.com/minggo/cocos2d-x.git
+ E0C8B176-3A21-43EF-A355-D004DE1F4825
+ https://github.com/minggo/cocos2d-js-tests.git
+
+ IDESourceControlProjectPath
+ samples/Javascript/TestJavascript/proj.ios/TestJavascript.xcodeproj/project.xcworkspace
+ IDESourceControlProjectRelativeInstallPathDictionary
+
+ 5B0F35E6-1A4B-4F3D-A082-C30150726270
+ ../../../../../../scripting/javascript/bindings/generated
+ D2399FF0-C90F-4E4F-8E8D-F9BE2AA9DC5A
+ ../../../../../..
+ E0C8B176-3A21-43EF-A355-D004DE1F4825
+ ../../../../Shared
+
+ IDESourceControlProjectURL
+ https://github.com/minggo/cocos2d-x.git
+ IDESourceControlProjectVersion
+ 110
+ IDESourceControlProjectWCCIdentifier
+ D2399FF0-C90F-4E4F-8E8D-F9BE2AA9DC5A
+ IDESourceControlProjectWCConfigurations
+
+
+ IDESourceControlRepositoryExtensionIdentifierKey
+ public.vcs.git
+ IDESourceControlWCCIdentifierKey
+ D2399FF0-C90F-4E4F-8E8D-F9BE2AA9DC5A
+ IDESourceControlWCCName
+ cocos2d-x
+
+
+ IDESourceControlRepositoryExtensionIdentifierKey
+ public.vcs.git
+ IDESourceControlWCCIdentifierKey
+ E0C8B176-3A21-43EF-A355-D004DE1F4825
+ IDESourceControlWCCName
+ Shared
+
+
+ IDESourceControlRepositoryExtensionIdentifierKey
+ public.vcs.git
+ IDESourceControlWCCIdentifierKey
+ 5B0F35E6-1A4B-4F3D-A082-C30150726270
+ IDESourceControlWCCName
+ generated
+
+
+
+
diff --git a/samples/Javascript/TestJavascript/proj.mac/Test_Prefix.pch b/samples/Javascript/TestJavascript/proj.mac/Test_Prefix.pch
new file mode 100644
index 0000000000..46c36a7e99
--- /dev/null
+++ b/samples/Javascript/TestJavascript/proj.mac/Test_Prefix.pch
@@ -0,0 +1,7 @@
+//
+// Prefix header for all source files of the 'Paralaxer' target in the 'Paralaxer' project
+//
+
+#ifdef __OBJC__
+ #import
+#endif
diff --git a/samples/Javascript/TestJavascript/proj.mac/en.lproj/InfoPlist.strings b/samples/Javascript/TestJavascript/proj.mac/en.lproj/InfoPlist.strings
new file mode 100644
index 0000000000..477b28ff8f
--- /dev/null
+++ b/samples/Javascript/TestJavascript/proj.mac/en.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+/* Localized versions of Info.plist keys */
+
diff --git a/samples/Javascript/TestJavascript/proj.mac/en.lproj/MainMenu.xib b/samples/Javascript/TestJavascript/proj.mac/en.lproj/MainMenu.xib
new file mode 100644
index 0000000000..3dacdedbd0
--- /dev/null
+++ b/samples/Javascript/TestJavascript/proj.mac/en.lproj/MainMenu.xib
@@ -0,0 +1,812 @@
+
+
+
+ 1060
+ 10K549
+ 1938
+ 1038.36
+ 461.00
+
+
+
+
+
+
+
+ YES
+
+
+ terminate:
+
+
+
+ 449
+
+
+
+ orderFrontStandardAboutPanel:
+
+
+
+ 142
+
+
+
+ delegate
+
+
+
+ 495
+
+
+
+ performMiniaturize:
+
+
+
+ 37
+
+
+
+ arrangeInFront:
+
+
+
+ 39
+
+
+
+ performZoom:
+
+
+
+ 240
+
+
+
+ hide:
+
+
+
+ 367
+
+
+
+ hideOtherApplications:
+
+
+
+ 368
+
+
+
+ unhideAllApplications:
+
+
+
+ 370
+
+
+
+ showHelp:
+
+
+
+ 493
+
+
+
+ toggleFullScreen:
+
+
+
+ 537
+
+
+
+
+ YES
+
+ 0
+
+ YES
+
+
+
+
+
+ -2
+
+
+ File's Owner
+
+
+ -1
+
+
+ First Responder
+
+
+ -3
+
+
+ Application
+
+
+ 29
+
+
+ YES
+
+
+
+
+
+
+
+
+ 19
+
+
+ YES
+
+
+
+
+
+ 56
+
+
+ YES
+
+
+
+
+
+ 57
+
+
+ YES
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 58
+
+
+
+
+ 134
+
+
+
+
+ 150
+
+
+
+
+ 136
+
+
+
+
+ 144
+
+
+
+
+ 129
+
+
+
+
+ 143
+
+
+
+
+ 236
+
+
+
+
+ 131
+
+
+ YES
+
+
+
+
+
+ 149
+
+
+
+
+ 145
+
+
+
+
+ 130
+
+
+
+
+ 24
+
+
+ YES
+
+
+
+
+
+
+
+
+ 92
+
+
+
+
+ 5
+
+
+
+
+ 239
+
+
+
+
+ 23
+
+
+
+
+ 295
+
+
+ YES
+
+
+
+
+
+ 296
+
+
+ YES
+
+
+
+
+
+ 420
+
+
+
+
+ 490
+
+
+ YES
+
+
+
+
+
+ 491
+
+
+ YES
+
+
+
+
+
+ 492
+
+
+
+
+ 494
+
+
+
+
+ 536
+
+
+
+
+
+
+ YES
+
+ YES
+ -1.IBPluginDependency
+ -2.IBPluginDependency
+ -3.IBPluginDependency
+ 129.IBPluginDependency
+ 130.IBPluginDependency
+ 131.IBPluginDependency
+ 134.IBPluginDependency
+ 136.IBPluginDependency
+ 143.IBPluginDependency
+ 144.IBPluginDependency
+ 145.IBPluginDependency
+ 149.IBPluginDependency
+ 150.IBPluginDependency
+ 19.IBPluginDependency
+ 23.IBPluginDependency
+ 236.IBPluginDependency
+ 239.IBPluginDependency
+ 24.IBPluginDependency
+ 29.IBPluginDependency
+ 295.IBPluginDependency
+ 296.IBPluginDependency
+ 420.IBPluginDependency
+ 490.IBPluginDependency
+ 491.IBPluginDependency
+ 492.IBPluginDependency
+ 494.IBPluginDependency
+ 5.IBPluginDependency
+ 536.IBPluginDependency
+ 56.IBPluginDependency
+ 57.IBPluginDependency
+ 58.IBPluginDependency
+ 92.IBPluginDependency
+
+
+ YES
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+
+
+ YES
+
+
+
+
+
+ YES
+
+
+
+
+ 541
+
+
+
+ YES
+
+ AppController
+ NSObject
+
+ YES
+
+ YES
+ exitFullScreen:
+ toggleFullScreen:
+
+
+ YES
+ id
+ id
+
+
+
+ YES
+
+ YES
+ exitFullScreen:
+ toggleFullScreen:
+
+
+ YES
+
+ exitFullScreen:
+ id
+
+
+ toggleFullScreen:
+ id
+
+
+
+
+ YES
+
+ YES
+ glView
+ window
+
+
+ YES
+ EAGLView
+ NSWindow
+
+
+
+ YES
+
+ YES
+ glView
+ window
+
+
+ YES
+
+ glView
+ EAGLView
+
+
+ window
+ NSWindow
+
+
+
+
+ IBProjectSource
+ ./Classes/AppController.h
+
+
+
+ EAGLView
+ NSOpenGLView
+
+ IBProjectSource
+ ./Classes/EAGLView.h
+
+
+
+
+ 0
+ IBCocoaFramework
+
+ com.apple.InterfaceBuilder.CocoaPlugin.InterfaceBuilder3
+
+
+ YES
+ 3
+
+ YES
+
+ YES
+ NSMenuCheckmark
+ NSMenuMixedState
+
+
+ YES
+ {9, 8}
+ {7, 2}
+
+
+
+
diff --git a/plugin/samples/HelloAnalytics/proj.ios/RootViewController.h b/samples/Javascript/TestJavascript/proj.mac/main.m
old mode 100755
new mode 100644
similarity index 88%
rename from plugin/samples/HelloAnalytics/proj.ios/RootViewController.h
rename to samples/Javascript/TestJavascript/proj.mac/main.m
index a40c2edd28..97d9b73282
--- a/plugin/samples/HelloAnalytics/proj.ios/RootViewController.h
+++ b/samples/Javascript/TestJavascript/proj.mac/main.m
@@ -1,6 +1,5 @@
/****************************************************************************
- Copyright (c) 2010-2011 cocos2d-x.org
- Copyright (c) 2010 Ricardo Quesada
+ Copyright (c) 2010 cocos2d-x.org
http://www.cocos2d-x.org
@@ -23,11 +22,9 @@
THE SOFTWARE.
****************************************************************************/
-#import
-
-
-@interface RootViewController : UIViewController {
+#import
+int main(int argc, char *argv[])
+{
+ return NSApplicationMain(argc, (const char **)argv);
}
-
-@end
diff --git a/scripting/javascript/bindings/generated b/scripting/javascript/bindings/generated
index 1629fa860d..1aef083d39 160000
--- a/scripting/javascript/bindings/generated
+++ b/scripting/javascript/bindings/generated
@@ -1 +1 @@
-Subproject commit 1629fa860dd1c378c0c1d2d39463d796e51f0043
+Subproject commit 1aef083d3959574072f234cd31c5a53ac52b58a9
diff --git a/scripting/javascript/bindings/js_manual_conversions.cpp b/scripting/javascript/bindings/js_manual_conversions.cpp
index efa23f5ef9..395c710a0f 100644
--- a/scripting/javascript/bindings/js_manual_conversions.cpp
+++ b/scripting/javascript/bindings/js_manual_conversions.cpp
@@ -12,19 +12,19 @@
JSBool jsval_to_opaque( JSContext *cx, jsval vp, void **r)
{
#ifdef __LP64__
+
+ // begin
JSObject *tmp_arg;
- if( ! JS_ValueToObject( cx, vp, &tmp_arg ) )
- return JS_FALSE;
+ JSBool ok = JS_ValueToObject( cx, vp, &tmp_arg );
+ JSB_PRECONDITION2( ok, cx, JS_FALSE, "Error converting value to object");
+ JSB_PRECONDITION2( tmp_arg && JS_IsTypedArrayObject( tmp_arg ), cx, JS_FALSE, "Not a TypedArray object");
+ JSB_PRECONDITION2( JS_GetTypedArrayByteLength( tmp_arg ) == sizeof(void*), cx, JS_FALSE, "Invalid Typed Array length");
- JSB_PRECONDITION( js_IsTypedArray( tmp_arg ), "jsb: Not a TypedArray object");
-
- JSB_PRECONDITION( JS_GetTypedArrayByteLength( tmp_arg ) == sizeof(void*), "jsb: Invalid Typed Array lenght");
-
- int32_t* arg_array = (int32_t*)JS_GetTypedArrayData( tmp_arg );
- uint64 ret = arg_array[0];
+ uint32_t* arg_array = (uint32_t*)JS_GetArrayBufferViewData( tmp_arg );
+ uint64_t ret = arg_array[0];
ret = ret << 32;
ret |= arg_array[1];
-
+
#else
assert( sizeof(int)==4);
int32_t ret;
@@ -52,19 +52,18 @@ JSBool jsval_to_long( JSContext *cx, jsval vp, long *r )
#ifdef __LP64__
// compatibility check
assert( sizeof(long)==8);
- JSObject *tmp_arg;
- if( ! JS_ValueToObject( cx, vp, &tmp_arg ) )
- return JS_FALSE;
+ JSString *jsstr = JS_ValueToString(cx, vp);
+ JSB_PRECONDITION2(jsstr, cx, JS_FALSE, "Error converting value to string");
- JSB_PRECONDITION( js_IsTypedArray( tmp_arg ), "jsb: Not a TypedArray object");
+ char *str = JS_EncodeString(cx, jsstr);
+ JSB_PRECONDITION2(str, cx, JS_FALSE, "Error encoding string");
+
+ char *endptr;
+ long ret = strtol(str, &endptr, 10);
+
+ *r = ret;
+ return JS_TRUE;
- JSB_PRECONDITION( JS_GetTypedArrayByteLength( tmp_arg ) == sizeof(long), "jsb: Invalid Typed Array lenght");
-
- int32_t* arg_array = (int32_t*)JS_GetTypedArrayData( tmp_arg );
- long ret = arg_array[0];
- ret = ret << 32;
- ret |= arg_array[1];
-
#else
// compatibility check
assert( sizeof(int)==4);
@@ -97,11 +96,11 @@ jsval opaque_to_jsval( JSContext *cx, void *opaque )
{
#ifdef __LP64__
uint64_t number = (uint64_t)opaque;
- JSObject *typedArray = js_CreateTypedArray(cx, js::TypedArray::TYPE_UINT32, 2);
- int32_t *buffer = (int32_t*)JS_GetTypedArrayData(typedArray);
+ JSObject *typedArray = JS_NewUint32Array( cx, 2 );
+ uint32_t *buffer = (uint32_t*)JS_GetArrayBufferViewData(typedArray);
buffer[0] = number >> 32;
buffer[1] = number & 0xffffffff;
- return OBJECT_TO_JSVAL(typedArray);
+ return OBJECT_TO_JSVAL(typedArray);
#else
assert(sizeof(int)==4);
int32_t number = (int32_t) opaque;
@@ -198,8 +197,8 @@ jsval uint_to_jsval( JSContext *cx, unsigned int number )
jsval long_to_jsval( JSContext *cx, long number )
{
#ifdef __LP64__
- NSCAssert( sizeof(long)==8, @"Error!");
-
+ assert( sizeof(long)==8);
+
char chr[128];
snprintf(chr, sizeof(chr)-1, "%ld", number);
JSString *ret_obj = JS_NewStringCopyZ(cx, chr);
diff --git a/scripting/javascript/bindings/proj.mac/jsbindings-Prefix.pch b/scripting/javascript/bindings/proj.mac/jsbindings-Prefix.pch
new file mode 100644
index 0000000000..af8c4a19d5
--- /dev/null
+++ b/scripting/javascript/bindings/proj.mac/jsbindings-Prefix.pch
@@ -0,0 +1,7 @@
+//
+// Prefix header for all source files of the 'jsbindings' target in the 'jsbindings' project
+//
+
+#ifdef __OBJC__
+ #import
+#endif
diff --git a/scripting/javascript/bindings/proj.mac/jsbindings.xcodeproj/project.pbxproj b/scripting/javascript/bindings/proj.mac/jsbindings.xcodeproj/project.pbxproj
new file mode 100644
index 0000000000..fd51d91ed6
--- /dev/null
+++ b/scripting/javascript/bindings/proj.mac/jsbindings.xcodeproj/project.pbxproj
@@ -0,0 +1,651 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 46;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 1A0C0E8B1778088700838530 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A0C0E8A1778088700838530 /* Foundation.framework */; };
+ 1A0C0EDA1778095000838530 /* cocos2d_specifics.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A0C0E991778095000838530 /* cocos2d_specifics.cpp */; };
+ 1A0C0EDB1778095000838530 /* cocosjs_manual_conversions.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A0C0E9B1778095000838530 /* cocosjs_manual_conversions.cpp */; };
+ 1A0C0EDC1778095000838530 /* jsb_cocos2dx_auto.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A0C0E9E1778095000838530 /* jsb_cocos2dx_auto.cpp */; };
+ 1A0C0EEC1778095000838530 /* js_bindings_ccbreader.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A0C0EB21778095000838530 /* js_bindings_ccbreader.cpp */; };
+ 1A0C0EED1778095000838530 /* js_bindings_chipmunk_auto_classes.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A0C0EB51778095000838530 /* js_bindings_chipmunk_auto_classes.cpp */; };
+ 1A0C0EEE1778095000838530 /* js_bindings_chipmunk_functions.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A0C0EB81778095000838530 /* js_bindings_chipmunk_functions.cpp */; };
+ 1A0C0EEF1778095000838530 /* js_bindings_chipmunk_manual.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A0C0EBA1778095000838530 /* js_bindings_chipmunk_manual.cpp */; };
+ 1A0C0EF01778095000838530 /* js_bindings_chipmunk_registration.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A0C0EBC1778095000838530 /* js_bindings_chipmunk_registration.cpp */; };
+ 1A0C0EF11778095000838530 /* js_bindings_core.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A0C0EBF1778095000838530 /* js_bindings_core.cpp */; };
+ 1A0C0EF21778095000838530 /* js_bindings_opengl.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A0C0EC11778095000838530 /* js_bindings_opengl.cpp */; };
+ 1A0C0EF31778095000838530 /* js_bindings_system_functions.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A0C0EC41778095000838530 /* js_bindings_system_functions.cpp */; };
+ 1A0C0EF41778095000838530 /* js_bindings_system_registration.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A0C0EC61778095000838530 /* js_bindings_system_registration.cpp */; };
+ 1A0C0EF51778095000838530 /* js_manual_conversions.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A0C0EC81778095000838530 /* js_manual_conversions.cpp */; };
+ 1A0C0EF61778095000838530 /* jsb_cocos2dx_extension_manual.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A0C0ECA1778095000838530 /* jsb_cocos2dx_extension_manual.cpp */; };
+ 1A0C0EF71778095000838530 /* jsb_opengl_functions.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A0C0ECD1778095000838530 /* jsb_opengl_functions.cpp */; };
+ 1A0C0EF81778095000838530 /* jsb_opengl_manual.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A0C0ECF1778095000838530 /* jsb_opengl_manual.cpp */; };
+ 1A0C0EF91778095000838530 /* jsb_opengl_registration.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A0C0ED11778095000838530 /* jsb_opengl_registration.cpp */; };
+ 1A0C0EFA1778095000838530 /* jsb_websocket.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A0C0ED31778095000838530 /* jsb_websocket.cpp */; };
+ 1A0C0EFB1778095000838530 /* ScriptingCore.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A0C0ED51778095000838530 /* ScriptingCore.cpp */; };
+ 1A0C0EFC1778095000838530 /* XMLHTTPRequest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A0C0ED81778095000838530 /* XMLHTTPRequest.cpp */; };
+ 1A6E46D51778162E0055514D /* jsb_cocos2dx_extension_auto.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A0C0EA11778095000838530 /* jsb_cocos2dx_extension_auto.cpp */; };
+ A00B437317795C5C00480238 /* libjs_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = A00B437217795C5C00480238 /* libjs_static.a */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXCopyFilesBuildPhase section */
+ 1A0C0E851778088700838530 /* CopyFiles */ = {
+ isa = PBXCopyFilesBuildPhase;
+ buildActionMask = 2147483647;
+ dstPath = "";
+ dstSubfolderSpec = 16;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXCopyFilesBuildPhase section */
+
+/* Begin PBXFileReference section */
+ 1A0C0E871778088700838530 /* libjsbindings.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libjsbindings.a; sourceTree = BUILT_PRODUCTS_DIR; };
+ 1A0C0E8A1778088700838530 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
+ 1A0C0E991778095000838530 /* cocos2d_specifics.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = cocos2d_specifics.cpp; path = ../cocos2d_specifics.cpp; sourceTree = ""; };
+ 1A0C0E9A1778095000838530 /* cocos2d_specifics.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = cocos2d_specifics.hpp; path = ../cocos2d_specifics.hpp; sourceTree = ""; };
+ 1A0C0E9B1778095000838530 /* cocosjs_manual_conversions.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = cocosjs_manual_conversions.cpp; path = ../cocosjs_manual_conversions.cpp; sourceTree = ""; };
+ 1A0C0E9C1778095000838530 /* cocosjs_manual_conversions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = cocosjs_manual_conversions.h; path = ../cocosjs_manual_conversions.h; sourceTree = ""; };
+ 1A0C0E9E1778095000838530 /* jsb_cocos2dx_auto.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = jsb_cocos2dx_auto.cpp; sourceTree = ""; };
+ 1A0C0E9F1778095000838530 /* jsb_cocos2dx_auto.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = jsb_cocos2dx_auto.hpp; sourceTree = ""; };
+ 1A0C0EA01778095000838530 /* jsb_cocos2dx_auto_api.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_cocos2dx_auto_api.js; sourceTree = ""; };
+ 1A0C0EA11778095000838530 /* jsb_cocos2dx_extension_auto.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = jsb_cocos2dx_extension_auto.cpp; sourceTree = ""; };
+ 1A0C0EA21778095000838530 /* jsb_cocos2dx_extension_auto.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = jsb_cocos2dx_extension_auto.hpp; sourceTree = ""; };
+ 1A0C0EA31778095000838530 /* jsb_cocos2dx_extension_auto_api.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_cocos2dx_extension_auto_api.js; sourceTree = ""; };
+ 1A0C0EA41778095000838530 /* README */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = README; sourceTree = ""; };
+ 1A0C0EA61778095000838530 /* jsb.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb.js; sourceTree = ""; };
+ 1A0C0EA71778095000838530 /* jsb_chipmunk.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_chipmunk.js; sourceTree = ""; };
+ 1A0C0EA81778095000838530 /* jsb_chipmunk_constants.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_chipmunk_constants.js; sourceTree = ""; };
+ 1A0C0EA91778095000838530 /* jsb_cocos2d.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_cocos2d.js; sourceTree = ""; };
+ 1A0C0EAA1778095000838530 /* jsb_cocos2d_constants.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_cocos2d_constants.js; sourceTree = ""; };
+ 1A0C0EAB1778095000838530 /* jsb_cocos2d_extension.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_cocos2d_extension.js; sourceTree = ""; };
+ 1A0C0EAC1778095000838530 /* jsb_cocosbuilder.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_cocosbuilder.js; sourceTree = ""; };
+ 1A0C0EAD1778095000838530 /* jsb_debugger.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_debugger.js; sourceTree = ""; };
+ 1A0C0EAE1778095000838530 /* jsb_opengl.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_opengl.js; sourceTree = ""; };
+ 1A0C0EAF1778095000838530 /* jsb_opengl_constants.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_opengl_constants.js; sourceTree = ""; };
+ 1A0C0EB01778095000838530 /* jsb_sys.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = jsb_sys.js; sourceTree = "