Skip to content

Collection of quick scripts, utilities mainly dedicated to indie developers

License

Notifications You must be signed in to change notification settings

rohanjsh/flutter-indie-helpers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Collection of quick scripts, utilities mainly dedicated to indie developers

Table of contents

Flutter Builds Script 🧑‍💻

Making it easier to generate all flutter builds.

Description

This script automates Flutter project builds with flavor and type options. It allows you to customize the number of flavors, flavor names, entry points, and build types.

Prerequisites

  • Flutter installed and configured.
  • Bash shell environment.

Available on FIG

fig run flutter-release-builds

Demo for - release_builds.sh

demo.mp4

Options

  • --use-defaults: Use default values.
  • --no-flavor: Build without flavors.

Usage

  • Default:
    ./release_builds.sh
  • For zsh:
    sh release_builds.sh

Additional Points

  • The script allows you to customize the number of flavors, flavor names, entry points, and build types.
  • Use --use-defaults for quick builds with default values.
  • Use --no-flavor if you don't want to use flavors. In this case, the script will prompt you to select build types directly.
  • The script creates timestamped build directories in the /builds folder.
  • Open the latest build directory automatically using open builds/$current_date_time.

Remove Unused Assets Script 🧹

This script helps you clean up your Flutter project by removing assets that are no longer referenced in your code.

Usage

  1. Run the script:

    sh remove_unused_assets.sh
  2. Enter the location of the assets folder when prompted.

  3. The script will search for unused assets in the specified folder and its subdirectories.

  4. Unused assets will be deleted.

Available on FIG

fig run flutter-remove-unused-assets

Note

  • Make sure to backup your project before running this script.

  • This script assumes your Flutter project is structured with a lib folder containing your source code.

  • The script checks for references to each asset in the lib folder and its subdirectories.

Example

# Enter the location of the assets folder
Enter the location of the assets folder: assets

# Output
Searching for unused assets in assets...
No references found for assets/image.png. Deleting...
No references found for assets/icon.svg. Deleting...
Finished cleaning unused assets.

About

Collection of quick scripts, utilities mainly dedicated to indie developers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages