Code Monkey home page Code Monkey logo

Comments (9)

ColinCollins avatar ColinCollins commented on May 22, 2024

Those files are used to cover the engine original template files, so we need to keep them in the example-case in order to make the example scene feature will be ok

from example-projects.

drelaptop avatar drelaptop commented on May 22, 2024

what's the engine original template files, do you means template in cocos2d-x-lite? and what time the cover behavior occurs, can you describe it in detail.

from example-projects.

ColinCollins avatar ColinCollins commented on May 22, 2024

yes, when we build the project to native platform, the editor will check the build-template folder if there any file could be cover, the editor will help you to do that

from example-projects.

ColinCollins avatar ColinCollins commented on May 22, 2024

image
those files will cover the original files that in cocos2d-x-lite

image

from example-projects.

drelaptop avatar drelaptop commented on May 22, 2024

so what's the meaning to do this work? keep both template is not convenient to maintain. and the build-template folder have not changed for 2 years.

you can compare the AppActivity.java between build-template and template to see the difference. some changes isn't sync to build-template/.../AppActivity.java

from example-projects.

ColinCollins avatar ColinCollins commented on May 22, 2024

I tried how this part of the feature to work just now ...
image
That is the example-case, I built to the Android platform. There has been added a new fold named proj.android and check the proj.android-studio you will find its AppActivity.cpp has been covered by the files that exist in proj.android.
image

from example-projects.

ColinCollins avatar ColinCollins commented on May 22, 2024

I think those files do not get any change because this part of feature has not got any change for two years. It only calls a custom function in AppActivity.java

from example-projects.

drelaptop avatar drelaptop commented on May 22, 2024

thanks for explain, it shouldn't be removed, but modified, I will change the title.

build-template/.../AppActivity.java should sync the changes with build/AppActivity.java

from example-projects.

ColinCollins avatar ColinCollins commented on May 22, 2024

ok, I already get what's kind of problem will happen if we did not fixe the AppActivity.java with this pr
cocos/engine-native#808
and as I just test, that problem still exists.

from example-projects.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.