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

Can our Cocos support some of the Unity Android/IOS builds? #17810

Open
17628673421 opened this issue Nov 5, 2024 · 1 comment
Open

Can our Cocos support some of the Unity Android/IOS builds? #17810

17628673421 opened this issue Nov 5, 2024 · 1 comment
Labels
Feature Request Needs Triage Needs to be assigned by the team

Comments

@17628673421
Copy link

17628673421 commented Nov 5, 2024

Use Case

When using Unity I can put some Android developed features wrapped into an aar package under Assets/Plugins/Android. It is also possible to pre-modify the contents of mainTemplate.gradle, settingsTemplate.gradle, AndroidManifest.xml.

Problem Description

Cocos doesn't have that right now.

Proposed Solution

  1. Similar to the function under Unity Assets/Plugins, for example, I can encapsulate the Android developed function into an aar package and put it into Assets/Plugins/Android. You can pre-modify the contents of mainTemplate.gradle, settingsTemplate.gradle, AndroidManifest.xml.

  2. StreamingAssets folder function, will build the platform needs to be placed in the assets of the resources directly into this.

3.Calling Android native API through AndroidJavaObject and AndroidJavaClass classes provided by Unity. this way allows you to call Android Java code in C# scripts without writing JNI interfaces.
This is the current gap I see between doing native packages and using Unity.

Putting in the next big release support can all be genuinely desirable with this kind of alignment feature.

How it works

No response

Alternatives Considered

Just implement something similar

Additional Information

No response

@17628673421 17628673421 added Feature Request Needs Triage Needs to be assigned by the team labels Nov 5, 2024
@longchuan
Copy link

Not our cocos,It is cocos.Not some of,should be the same of.
this is the doc:
https://docs.cocos.com/creator/3.8/manual/zh/editor/publish/custom-project-build-template.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Needs Triage Needs to be assigned by the team
Projects
None yet
Development

No branches or pull requests

2 participants