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

cobalt_shell_apk to build dev.cobalt.coat #4304

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

johnxwork
Copy link
Contributor

@johnxwork johnxwork commented Oct 23, 2024

This new target generate CobaltShell.apk that has dev.cobalt.coat as its package name, and include most of Cobalt's java code.

App starts from CobaltActivity now. CobaltActivity inherits from ContentShellActivity now instead of GameActivity.

Remember to put treat_warnings_as_errors = false in gn args since Chromium treats java warnings as errors and we have many.

There are many TODOs left in this CL and this is only to be served as a prototype to unblock SbPlayer and JS injection.

b/374191454

@johnxwork johnxwork requested a review from a team as a code owner October 23, 2024 01:30
@johnxwork
Copy link
Contributor Author

This is very ugly at the moment. But I'm uploading the draft right now to see if it can help unblock Colin and Bo-Rong.

Copy link
Contributor

@zhongqiliang zhongqiliang left a comment

Choose a reason for hiding this comment

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

I have not tested it locally, submit it once you are good with it.

This new target generate CobaltShell.apk that has dev.cobalt.coat as its package name, and include most of Cobalt's java code.

App starts from CobaltActivity now. CobaltActivity inherits from ContentShellActivity now instead of GameActivity.

Remember to put treat_warnings_as_errors = false in gn args since Chromium treats java warnings as errors and we have many.

There are many TODOs left in this CL and this is only to be served as a prototype to unblock SbPlayer and JS injection.

b/374191454

<application android:name="dev.cobalt.app.CobaltApplication"
android:icon="@mipmap/app_icon"
android:zygotePreloadName="org.chromium.content_public.app.ZygotePreload"
Copy link
Contributor

@borongc borongc Oct 24, 2024

Choose a reason for hiding this comment

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

Android TV requires android:banner, we should put android:banner="@drawable/app_banner" as well.

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.

3 participants