New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change template config file to camel case syntax #2804
Conversation
"project_replace_package_name": { | ||
"src_package_name": "org.cocos2dx.hellojavascript", | ||
"projectReplacePackageName": { | ||
"srcPackageName": "org.cocos2dx.hellojavascript", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cocos2dx -> cocos 会好一些,尽量不实用 cocos2d-x .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hellojavascript 可以改成 helloworld 了。之前是因为有多种语言,所以用 hellojavascript
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK,我把这些都改一下
这个等到下面这个 PR 合并后,再合并,不然可能导致编辑器和-lite不匹配导致无法构建原生工程。 |
@@ -26,20 +26,20 @@ | |||
"to": "${COMMON_DIR}/cocos2d-x" | |||
}, | |||
"projectReplacePackageName": { | |||
"srcPackageName": "org.cocos2dx.hellojavascript", | |||
"srcPackageName": "com.cocos.helloworld", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
对应的文件也要改
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
比如 templates\template-link\platforms\android\app\build.gradle
中的文本也要替换
"from": "cocos/bindings/manual/jsb_module_register.cpp", | ||
"doAddNativeSupport": { | ||
"appendFile": [{ | ||
"from": "cocos/scripting/js-bindings/manual/jsb_module_register.cpp", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
路径错了,之前的路径是对的。
"files": [ | ||
"${COMMON_DIR}/CMakeLists.txt" | ||
] | ||
}, | ||
"project_replace_cocos_x_root": { | ||
"projectReplaceCocosXRoot": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
projectReplaceCocosXRoot -》 projectReplaceCocosRoot
"files": [ | ||
"${COMMON_DIR}/CMakeLists.txt" | ||
] | ||
}, | ||
"project_replace_cocos_x_root": { | ||
"projectReplaceCocosXRoot": { | ||
"pattern":"\\$\\{COCOS_X_ROOT\\}", | ||
"files": [ | ||
{"file": "${COMMON_DIR}/CMakeLists.txt", "default":"${CMAKE_CURRENT_LIST_DIR}/cocos2d-x", "needFix":true}, | ||
{"file": "proj/settings.gradle", "default":"${COMMON_DIR}/cocos2d-x", "needFix":true}, | ||
{"file": "proj/app/build.gradle", "default":"${COMMON_DIR}/cocos2d-x", "needFix":true}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cocos2d-x 之类的都改成 cocos 吧
Signed-off-by: wuzhiming <wuzhiming.chukong@gmail.com>
Signed-off-by: wuzhiming <wuzhiming.chukong@gmail.com>
Signed-off-by: wuzhiming <wuzhiming.chukong@gmail.com>
Signed-off-by: wuzhiming <wuzhiming.chukong@gmail.com>
d474b10
to
867276f
Compare
Signed-off-by: wuzhiming <wuzhiming.chukong@gmail.com>
使用驼峰,来跟编辑器保持一致,后续已经把新版本cocos console 合并入编辑器,后续编辑器版本稳定后,再删除现有的console代码