Skip to content

Simplify flutter starter by removing build script #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 11, 2025
Merged

Conversation

vermakhushboo
Copy link
Member

@vermakhushboo vermakhushboo commented Aug 8, 2025

What does this PR do?

Simplify starter

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work.)

Related PRs and Issues

(If this PR is related to any other PR or resolves any issue or related to any issue link all related PR and issues here.)

Have you read the Contributing Guidelines on issues?

(Write your answer here.)

Copilot

This comment was marked as outdated.

@vermakhushboo vermakhushboo requested a review from Copilot August 8, 2025 13:58
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the Flutter starter kit build system by replacing environment variable-based configuration with a centralized Environment class and simplifying the build process. The changes move away from shell script-based builds with environment variables to a more direct Flutter development approach.

Key changes:

  • Removes the complex build.sh script and replaces it with standard Flutter commands
  • Introduces a centralized Environment class for configuration management
  • Adds a prepare-env.sh script for deployment-time configuration replacement

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
build.sh Removes the entire bash script that handled environment variables and web building
lib/config/environment.dart Adds new Environment class with hardcoded placeholder values
lib/data/repository/appwrite_repository.dart Updates to use Environment class instead of String.fromEnvironment
prepare-env.sh Adds deployment script for replacing placeholders with actual environment values
README.md Updates documentation to reflect new development workflow
.env.example Removes environment variable example file

@vermakhushboo vermakhushboo changed the title Fix build script for flutter Simplify flutter starter by removing build script Aug 8, 2025
@Meldiron Meldiron merged commit 8aa2aec into main Aug 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants