Skip to content
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

Merged
merged 5 commits into from Oct 10, 2020

Conversation

wuzhiming
Copy link
Contributor

使用驼峰,来跟编辑器保持一致,后续已经把新版本cocos console 合并入编辑器,后续编辑器版本稳定后,再删除现有的console代码

"project_replace_package_name": {
"src_package_name": "org.cocos2dx.hellojavascript",
"projectReplacePackageName": {
"srcPackageName": "org.cocos2dx.hellojavascript",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cocos2dx -> cocos 会好一些,尽量不实用 cocos2d-x .

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hellojavascript 可以改成 helloworld 了。之前是因为有多种语言,所以用 hellojavascript

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK,我把这些都改一下

@wuzhiming
Copy link
Contributor Author

这个等到下面这个 PR 合并后,再合并,不然可能导致编辑器和-lite不匹配导致无法构建原生工程。
https://github.com/cocos-creator/editor-3d/pull/4246

@@ -26,20 +26,20 @@
"to": "${COMMON_DIR}/cocos2d-x"
},
"projectReplacePackageName": {
"srcPackageName": "org.cocos2dx.hellojavascript",
"srcPackageName": "com.cocos.helloworld",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

对应的文件也要改

Copy link
Contributor

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",
Copy link
Contributor

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": {
Copy link
Contributor

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},
Copy link
Contributor

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>
Signed-off-by: wuzhiming <wuzhiming.chukong@gmail.com>
@minggo minggo merged commit 36bf36d into cocos:3d-gfx Oct 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants