-
Notifications
You must be signed in to change notification settings - Fork 12
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
Conversation
There was a problem hiding this 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 |
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.)