mirror of
https://github.com/inventree/inventree-app.git
synced 2025-07-01 19:30:44 +00:00
Use FVM in GitHub Actions and migrate to Flutter 3.32.4 (#641)
* feat: implement Flutter version management using FVM across CI workflows * Flutter 3.29.3 + minor Package upgrades * Replace deprecated `withOpacity` * Upgrade major package versions without breaking changes. * Disable unnecessary_async rule Re-enable later * New language version and automated fixes - unnecessary_breaks - unnecessary_underscore * Update BUILDING.md to use fvm commands * Add gitignore files for Android and iOS build artifacts * Migrate iOS dependencies to Swift Package Manager This is being done automatically by Flutter * Flutter 3.32.4 * New sdk version * docs: add IDE setup instructions and troubleshooting guide for FVM integration
This commit is contained in:
10
tasks.py
10
tasks.py
@ -8,7 +8,7 @@ from invoke import task
|
||||
@task
|
||||
def clean(c):
|
||||
"""Clean flutter build."""
|
||||
c.run("flutter clean")
|
||||
c.run("fvm flutter clean")
|
||||
|
||||
@task
|
||||
def update(c):
|
||||
@ -20,20 +20,20 @@ def translate(c):
|
||||
"""Update translation files."""
|
||||
|
||||
here = os.path.dirname(__file__)
|
||||
l10_dir = os.path.join(here, 'lib', 'l10n')
|
||||
l10_dir = os.path.join(here, "lib", "l10n")
|
||||
l10_dir = os.path.abspath(l10_dir)
|
||||
|
||||
python = 'python3' if sys.platform.lower() == 'darwin' else 'python'
|
||||
python = "python3" if sys.platform.lower() == "darwin" else "python"
|
||||
c.run(f"cd {l10_dir} && {python} collect_translations.py")
|
||||
|
||||
|
||||
@task(pre=[clean, update, translate])
|
||||
def ios(c):
|
||||
"""Build iOS app in release configuration."""
|
||||
c.run("flutter build ipa --release --no-tree-shake-icons")
|
||||
c.run("fvm flutter build ipa --release --no-tree-shake-icons")
|
||||
|
||||
|
||||
@task(pre=[clean, update, translate])
|
||||
def android(c):
|
||||
"""Build Android app in release configuration."""
|
||||
c.run("flutter build appbundle --release --no-tree-shake-icons")
|
||||
c.run("fvm flutter build appbundle --release --no-tree-shake-icons")
|
||||
|
Reference in New Issue
Block a user