flet-dev / flet

Flet enables developers to easily build realtime web, mobile and desktop apps in Python. No frontend experience required.
https://flet.dev
Apache License 2.0
11.38k stars 446 forks source link

flet build apk ```--product``` seems to be not working #2699

Closed lekshmanmj closed 8 months ago

lekshmanmj commented 8 months ago

Description Command Used: flet build apk --project "mjlTest" --product "Test Name"

Code example to reproduce the issue:

import flet as ft

def main(page: ft.Page):
    page.vertical_alignment = ft.MainAxisAlignment.CENTER
    page.horizontal_alignment = ft.CrossAxisAlignment.CENTER
    page.add(ft.Text('Hi'))

ft.app(target=main)

Describe the results you received:

Screenshot_2024-02-21-03-09-59-847_com miui securitycenter

Describe the results you expected: Expected Test Name in place of mjltest in above screenshot

Additional information you deem important (e.g. issue happens only occasionally):

Flet version (pip show flet):

Name: flet
Version: 0.20.2
Summary: Flet for Python - easily build interactive multi-platform apps in Python
Home-page: 
Author: Appveyor Systems Inc.
Author-email: hello@flet.dev
License: Apache-2.0
Location: /home/lekshman/bbb/bbb_env/lib/python3.11/site-packages
Requires: cookiecutter, flet-runtime, packaging, qrcode, watchdog, websocket-client, websockets
Required-by: 

Give your requirements.txt file (don't pip freeze, instead give direct packages):

flet

Operating system: Kali Linux - Debian based OS Test Environment OS: Android 12

Additional environment details: I suspect the following two areas as cause of this issue. Suspect 1: project name is asssigned to product image

Suspect 2: project name is assigned to android-label image

FeodorFitsner commented 8 months ago

Suspect 1 is correct - if product not specified it's replaced with project name. Suspect 2, however, is probably what we need.

I've updated flet build template. Give it another try and let me know how that worked.

lekshmanmj commented 8 months ago

Suspect 1 is correct - if product not specified it's replaced with project name. Suspect 2, however, is probably what we need.

I've updated flet build template. Give it another try and let me know how that worked.

okay.. I'll try update the result here.

lekshmanmj commented 8 months ago

Solution Reflected.... Product Name displayed as expected.