flexn-io / create

Build apps for web, TVs, desktops, consoles, wearables and more. Developer friendly UI library targeting all form factors platforms. Another notable feature is providing focus management for TVs which very easy to implement using Create.
https://create.flexn.org
MIT License
26 stars 6 forks source link

How to change AndroidTv Name, Logo, Launcher Logo #172

Open saimirg opened 9 months ago

saimirg commented 9 months ago

Hi, where do change/assign application name, logo, launcher, etc for AndroidTv and FireTv APPs ?

aurimasmi commented 9 months ago

Are you using react native or renative?

saimirg commented 9 months ago

Im using renative.

On Thu, 21 Sep 2023 at 9:10 AM, Aurimas Mickys @.***> wrote:

Are you using react native or renative?

— Reply to this email directly, view it on GitHub https://github.com/flexn-io/create/issues/172#issuecomment-1728981630, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACYOZ5RIH5ZJ7P5X4WRYZ7LX3PR7ZANCNFSM6AAAAAA5AHV3EY . You are receiving this because you authored the thread.Message ID: @.***>

saimirg commented 9 months ago

Im following below folder structure but images under /appConfigs/helloworld/asstes are not being transferred to apps under platformBuilds folders.

image
pauliusguzas commented 9 months ago

@saimirg things you described are editable in appConfigs/[APP_ID], under renative.json you can change app name, app id, used engines and so on. App icons are also under appConfigs, from example of create-template-starter https://github.com/flexn-io/create/tree/main/packages/template-starter/appConfigs/base/assets/runtime I see that icons are under runtime folder. Can read a bit more about project configuration here if that helps https://renative.org/docs/guides/advanced-configuration

saimirg commented 9 months ago

hi @pauliusguzas i've bee doing several tests but the two files ic_log and ic_launcher get overwritten everytime. I;ve also tried adding new files on respective folders as documentation says, but again they don't get copied into platformBuilds folder.

pauliusguzas commented 9 months ago

@saimirg what versions of rnv and create are you using? And node

saimirg commented 9 months ago

Hi, these are the details. I need to understand where in the folder structure i need to place ic_logo and ic_launcher, or even other image names, so that that they are copied to /platformBuilds/... respective app.

image
aurimasmi commented 9 months ago

@saimirg it's default folder structure where you should place your assets. As you can see there are multiple drawable folders difference is resolution. Do you see these folders in your file structure? CleanShot2023-10-02at09 53 48

saimirg commented 9 months ago

No, i dont see those folders, i only have base->assets. Shall i create those ?

pauliusguzas commented 9 months ago

The issue is that create template uses imported assets. Go to appConfigs/app/renative.json and add "assetSources": null under common to not import assets and then you should be able to use your custom assets

saimirg commented 9 months ago

Hi @pauliusguzas, i'm still having a difficult time figuring out. The configuration you proposed is not transferring default logo and launcher anymore. I replaced the only to files, ic_logo and ic_launcher, however i still see the default logo when i add the app on homepage of an android tv. Everywhere else i see my logo.

image

Also, how do I latter make this dynamic, where do i have to place ic_logo and ic_launcher so they can get copied to respective destinations on runtime ?