diff --git a/.github/workflows/01-apk-build.yaml b/.github/workflows/01-apk-build.yaml new file mode 100644 index 0000000..f825e9b --- /dev/null +++ b/.github/workflows/01-apk-build.yaml @@ -0,0 +1,65 @@ +name: Montar APK 01 + +on: + # Runs on push to any of the below branches + # push: + # branches: + # - main + + # Runs on pull request events that target one of the below branches + # pull_request: + # branches: + # - main + + # Allows you to run this workflow manually from the Actions tab of the repository + workflow_dispatch: + +env: + # https://flet.dev/docs/publish#versioning + BUILD_NUMBER: 1 + BUILD_VERSION: 1.0.0 + + # Python version to use + PYTHON_VERSION: 3.14.0 + + # flet-cli version to install for `flet build` + FLET_CLI_VERSION: 0.28.3 + + # Ensures Python uses UTF-8 encoding by default + PYTHONUTF8: 1 + + # Disables rich text formatting in Flet CLI output + FLET_CLI_NO_RICH_OUTPUT: 1 + + # Disables progress bars when using UV + UV_NO_PROGRESS: 1 + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Python ${{ env.PYTHON_VERSION }} + uses: actions/setup-python@v5 + with: + python-version: ${{ env.PYTHON_VERSION }} + + - name: Install flet-cli ${{ env.FLET_CLI_VERSION }} + run: | + python -m pip install --upgrade pip + pip install flet-cli==$FLET_CLI_VERSION + + - name: Flet Build APK + run: | + cd 07_app_hibrido/ + flet build apk 01_hello_world_janela --verbose --build-number=$BUILD_NUMBER --build-version=$BUILD_VERSION + - name: Upload APK Artifact + uses: actions/upload-artifact@v4.3.4 # https://github.com/marketplace/actions/upload-a-build-artifact + with: + name: apk-build-artifact # the name of the artifact + path: /home/runner/work/python_app_hibrido_qua526001/python_app_hibrido_qua526001/07_app_hibrido/01_hello_world_janela/build/flutter/build/app/outputs/flutter-apk/* # location of Flet build output + if-no-files-found: error # Fail the action with an error message if no files are found + overwrite: false # If true, an artifact with a matching name will be deleted before a new one is uploaded. If false, the action will fail if an artifact for the given name already exists. Does not fail if the artifact does not exist. diff --git a/.github/workflows/02-apk-build.yaml b/.github/workflows/02-apk-build.yaml new file mode 100644 index 0000000..eb2773c --- /dev/null +++ b/.github/workflows/02-apk-build.yaml @@ -0,0 +1,65 @@ +name: Montar APK 02 + +on: + # Runs on push to any of the below branches + # push: + # branches: + # - main + # + # Runs on pull request events that target one of the below branches + # pull_request: + # branches: + # - main + # + # Allows you to run this workflow manually from the Actions tab of the repository + workflow_dispatch: + +env: + # https://flet.dev/docs/publish#versioning + BUILD_NUMBER: 1 + BUILD_VERSION: 1.0.0 + + # Python version to use + PYTHON_VERSION: 3.14.0 + + # flet-cli version to install for `flet build` + FLET_CLI_VERSION: 0.28.3 + + # Ensures Python uses UTF-8 encoding by default + PYTHONUTF8: 1 + + # Disables rich text formatting in Flet CLI output + FLET_CLI_NO_RICH_OUTPUT: 1 + + # Disables progress bars when using UV + UV_NO_PROGRESS: 1 + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Python ${{ env.PYTHON_VERSION }} + uses: actions/setup-python@v5 + with: + python-version: ${{ env.PYTHON_VERSION }} + + - name: Install flet-cli ${{ env.FLET_CLI_VERSION }} + run: | + python -m pip install --upgrade pip + pip install flet-cli==$FLET_CLI_VERSION + + - name: Flet Build APK + run: | + cd 07_app_hibrido/ + flet build apk 02_texto_e_imagem --verbose --build-number=$BUILD_NUMBER --build-version=$BUILD_VERSION + - name: Upload APK Artifact + uses: actions/upload-artifact@v4.3.4 # https://github.com/marketplace/actions/upload-a-build-artifact + with: + name: apk-build-artifact # the name of the artifact + path: /home/runner/work/python_app_hibrido_qua526001/python_app_hibrido_qua526001/07_app_hibrido/02_texto_e_imagem/build/flutter/build/app/outputs/flutter-apk/* # location of Flet build output + if-no-files-found: error # Fail the action with an error message if no files are found + overwrite: false # If true, an artifact with a matching name will be deleted before a new one is uploaded. If false, the action will fail if an artifact for the given name already exists. Does not fail if the artifact does not exist. diff --git a/.github/workflows/03-apk-build.yaml b/.github/workflows/03-apk-build.yaml new file mode 100644 index 0000000..5f0b899 --- /dev/null +++ b/.github/workflows/03-apk-build.yaml @@ -0,0 +1,65 @@ +name: Montar APK 03 + +on: + # Runs on push to any of the below branches + # push: + # branches: + # - main + # + # Runs on pull request events that target one of the below branches + # pull_request: + # branches: + # - main + # + # Allows you to run this workflow manually from the Actions tab of the repository + workflow_dispatch: + +env: + # https://flet.dev/docs/publish#versioning + BUILD_NUMBER: 1 + BUILD_VERSION: 1.0.0 + + # Python version to use + PYTHON_VERSION: 3.14.0 + + # flet-cli version to install for `flet build` + FLET_CLI_VERSION: 0.28.3 + + # Ensures Python uses UTF-8 encoding by default + PYTHONUTF8: 1 + + # Disables rich text formatting in Flet CLI output + FLET_CLI_NO_RICH_OUTPUT: 1 + + # Disables progress bars when using UV + UV_NO_PROGRESS: 1 + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Python ${{ env.PYTHON_VERSION }} + uses: actions/setup-python@v5 + with: + python-version: ${{ env.PYTHON_VERSION }} + + - name: Install flet-cli ${{ env.FLET_CLI_VERSION }} + run: | + python -m pip install --upgrade pip + pip install flet-cli==$FLET_CLI_VERSION + + - name: Flet Build APK + run: | + cd 07_app_hibrido/ + flet build apk 03_eventos --verbose --build-number=$BUILD_NUMBER --build-version=$BUILD_VERSION + - name: Upload APK Artifact + uses: actions/upload-artifact@v4.3.4 # https://github.com/marketplace/actions/upload-a-build-artifact + with: + name: apk-build-artifact # the name of the artifact + path: /home/runner/work/python_app_hibrido_qua526001/python_app_hibrido_qua526001/07_app_hibrido/03_eventos/build/flutter/build/app/outputs/flutter-apk/* # location of Flet build output + if-no-files-found: error # Fail the action with an error message if no files are found + overwrite: false # If true, an artifact with a matching name will be deleted before a new one is uploaded. If false, the action will fail if an artifact for the given name already exists. Does not fail if the artifact does not exist. diff --git a/.github/workflows/04-apk-build.yaml b/.github/workflows/04-apk-build.yaml new file mode 100644 index 0000000..b0f071c --- /dev/null +++ b/.github/workflows/04-apk-build.yaml @@ -0,0 +1,65 @@ +name: Montar APK 04 + +on: + # Runs on push to any of the below branches + # push: + # branches: + # - main + # + # Runs on pull request events that target one of the below branches + # pull_request: + # branches: + # - main + # + # Allows you to run this workflow manually from the Actions tab of the repository + workflow_dispatch: + +env: + # https://flet.dev/docs/publish#versioning + BUILD_NUMBER: 1 + BUILD_VERSION: 1.0.0 + + # Python version to use + PYTHON_VERSION: 3.14.0 + + # flet-cli version to install for `flet build` + FLET_CLI_VERSION: 0.28.3 + + # Ensures Python uses UTF-8 encoding by default + PYTHONUTF8: 1 + + # Disables rich text formatting in Flet CLI output + FLET_CLI_NO_RICH_OUTPUT: 1 + + # Disables progress bars when using UV + UV_NO_PROGRESS: 1 + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Python ${{ env.PYTHON_VERSION }} + uses: actions/setup-python@v5 + with: + python-version: ${{ env.PYTHON_VERSION }} + + - name: Install flet-cli ${{ env.FLET_CLI_VERSION }} + run: | + python -m pip install --upgrade pip + pip install flet-cli==$FLET_CLI_VERSION + + - name: Flet Build APK + run: | + cd 07_app_hibrido/ + flet build apk 04_flex_fuel --verbose --build-number=$BUILD_NUMBER --build-version=$BUILD_VERSION + - name: Upload APK Artifact + uses: actions/upload-artifact@v4.3.4 # https://github.com/marketplace/actions/upload-a-build-artifact + with: + name: apk-build-artifact # the name of the artifact + path: /home/runner/work/python_app_hibrido_qua526001/python_app_hibrido_qua526001/07_app_hibrido/04_flex_fuel/build/flutter/build/app/outputs/flutter-apk/* # location of Flet build output + if-no-files-found: error # Fail the action with an error message if no files are found + overwrite: false # If true, an artifact with a matching name will be deleted before a new one is uploaded. If false, the action will fail if an artifact for the given name already exists. Does not fail if the artifact does not exist. diff --git a/.github/workflows/05-apk-build.yaml b/.github/workflows/05-apk-build.yaml new file mode 100644 index 0000000..43b209f --- /dev/null +++ b/.github/workflows/05-apk-build.yaml @@ -0,0 +1,69 @@ +name: Montar APK 05 + +on: + # Runs on push to any of the below branches + # push: + # branches: + # - main + # + # Runs on pull request events that target one of the below branches + # pull_request: + # branches: + # - main + # + # Allows you to run this workflow manually from the Actions tab of the repository + workflow_dispatch: + +env: + # https://flet.dev/docs/publish#versioning + BUILD_NUMBER: 1 + BUILD_VERSION: 1.0.0 + + # Python version to use + PYTHON_VERSION: 3.14.0 + + # flet-cli version to install for `flet build` + FLET_CLI_VERSION: 0.28.3 + + # Ensures Python uses UTF-8 encoding by default + PYTHONUTF8: 1 + + # Disables rich text formatting in Flet CLI output + FLET_CLI_NO_RICH_OUTPUT: 1 + + # Disables progress bars when using UV + UV_NO_PROGRESS: 1 + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Python ${{ env.PYTHON_VERSION }} + uses: actions/setup-python@v5 + with: + python-version: ${{ env.PYTHON_VERSION }} + + - name: Install flet-cli ${{ env.FLET_CLI_VERSION }} + run: | + python -m pip install --upgrade pip + pip install flet-cli==$FLET_CLI_VERSION + + - name: Install Dependences + run: | + pip install pytubefix + + - name: Flet Build APK + run: | + cd 07_app_hibrido/ + flet build apk 05_yt_downloader --verbose --build-number=$BUILD_NUMBER --build-version=$BUILD_VERSION + - name: Upload APK Artifact + uses: actions/upload-artifact@v4.3.4 # https://github.com/marketplace/actions/upload-a-build-artifact + with: + name: apk-build-artifact # the name of the artifact + path: /home/runner/work/python_app_hibrido_qua526001/python_app_hibrido_qua526001/07_app_hibrido/05_yt_downloader/build/flutter/build/app/outputs/flutter-apk/* # location of Flet build output + if-no-files-found: error # Fail the action with an error message if no files are found + overwrite: false # If true, an artifact with a matching name will be deleted before a new one is uploaded. If false, the action will fail if an artifact for the given name already exists. Does not fail if the artifact does not exist. diff --git a/07_app_hibrido/02_texto_e_imagem/pyproject.toml b/07_app_hibrido/02_texto_e_imagem/pyproject.toml index 4f5cde7..57201cd 100644 --- a/07_app_hibrido/02_texto_e_imagem/pyproject.toml +++ b/07_app_hibrido/02_texto_e_imagem/pyproject.toml @@ -1,5 +1,5 @@ [project] -name = "02-texto-e-imagem" +name = "texto-e-imagem" version = "0.1.0" description = "" readme = "README.md" @@ -38,4 +38,4 @@ dev-dependencies = [ package-mode = false [tool.poetry.group.dev.dependencies] -flet = {extras = ["all"], version = "0.28.3"} \ No newline at end of file +flet = {extras = ["all"], version = "0.28.3"} diff --git a/07_app_hibrido/03_eventos/pyproject.toml b/07_app_hibrido/03_eventos/pyproject.toml index 782d543..2fa20ba 100644 --- a/07_app_hibrido/03_eventos/pyproject.toml +++ b/07_app_hibrido/03_eventos/pyproject.toml @@ -1,5 +1,5 @@ [project] -name = "03-eventos" +name = "eventos" version = "0.1.0" description = "" readme = "README.md" @@ -38,4 +38,4 @@ dev-dependencies = [ package-mode = false [tool.poetry.group.dev.dependencies] -flet = {extras = ["all"], version = "0.28.3"} \ No newline at end of file +flet = {extras = ["all"], version = "0.28.3"} diff --git a/07_app_hibrido/04_flex_fuel/pyproject.toml b/07_app_hibrido/04_flex_fuel/pyproject.toml index 337431b..0afc798 100644 --- a/07_app_hibrido/04_flex_fuel/pyproject.toml +++ b/07_app_hibrido/04_flex_fuel/pyproject.toml @@ -1,5 +1,5 @@ [project] -name = "04-flex-fuel" +name = "flex-fuel" version = "0.1.0" description = "" readme = "README.md" @@ -38,4 +38,4 @@ dev-dependencies = [ package-mode = false [tool.poetry.group.dev.dependencies] -flet = {extras = ["all"], version = "0.28.3"} \ No newline at end of file +flet = {extras = ["all"], version = "0.28.3"} diff --git a/07_app_hibrido/05_yt_downloader/pyproject.toml b/07_app_hibrido/05_yt_downloader/pyproject.toml index 48bf58c..b1d8a5f 100644 --- a/07_app_hibrido/05_yt_downloader/pyproject.toml +++ b/07_app_hibrido/05_yt_downloader/pyproject.toml @@ -1,14 +1,27 @@ [project] -name = "05-yt-downloader" +name = "yt-downloader" version = "0.1.0" description = "" readme = "README.md" -requires-python = ">=3.9" +requires-python = ">=3.14" authors = [ { name = "Flet developer", email = "you@example.com" } ] dependencies = [ - "flet==0.28.3" + "flet==0.28.3", + "aiohttp>=3.12.13", + "aiohappyeyeballs>=2.5.0", + "aiosignal>=1.4.0", + "frozenlist>=1.1.0", + "attrs>=17.3.0", + "multidict==6.7.0", + "propcache>=0.2.0", + "yarl==1.22.0", + "idna==3.11", + "multidict>=4.0", + "propcache>=0.2.1", + "nodejs-wheel-binaries>=22.20.0", + "pytubefix==10.3.6", ] [tool.flet] @@ -31,11 +44,24 @@ path = "src" [tool.uv] dev-dependencies = [ - "flet[all]==0.28.3", + "flet[all]==0.28.3", + "pytubefix==10.3.6", + "aiohttp>=3.12.13", + "aiohappyeyeballs>=2.5.0", + "aiosignal>=1.4.0", + "frozenlist>=1.1.0", + "attrs>=17.3.0", + "multidict==6.7.0", + "propcache>=0.2.0", + "yarl==1.22.0", + "idna==3.11", + "multidict>=4.0", + "propcache>=0.2.1", + "nodejs-wheel-binaries>=22.20.0", ] [tool.poetry] package-mode = false [tool.poetry.group.dev.dependencies] -flet = {extras = ["all"], version = "0.28.3"} \ No newline at end of file +flet = {extras = ["all"], version = "0.28.3"}