-
Notifications
You must be signed in to change notification settings - Fork 22
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
Unable to set up the code locally #351
Comments
switch to 3.10.0 flutter version. and run that should work. We are working on upgrade will release it soon. |
Thanks Naveen for your prompt response. |
Is there any more commands required for setting up the code locally. If possible can you please share the same. |
Front Line Worker App Setup : Prerequisites Flutter 3.10.0 version - Flutter SDK Android Studio or VS Code any preferred IDE for Flutter development Run the application git clone https://github.com/egovernments/health-campaign-field-worker-app.git Product Repo: egovernments/health-campaign-field-worker-app Open the project in your preferred IDE (e.g., Android Studio, Visual Studio Code). Make sure that your IDE is configured with the Flutter and Dart plugins. Navigate to the root folder of the project in the terminal and run the following command to initialize the packages using Melos: This command fetches and links all the necessary dependencies for the project. Now create a .env file inside the apps/health_campaign_field_worker_app folder
BASE_URL={replace with base url} Again create another file as pubspec_overrides.yaml in the same folder melos_managed_dependency_overrides: digit_components,digit_firebase_services,forms_engine,intl, digit_showcasedependency_overrides: Note:: Check all the folder names should be present in packages folder,before overriding the dependencies Navigate to the app's folder from the terminal: cd apps/health_campaign_field_worker_app Connect your Android device or start an emulator. Ensure that it is visible by running: Now, run the following command to launch the app: This command will build the app and install it on the connected device or emulator. |
Hi Naveen, Regards, |
@gaurav2010ec : we don't have any demo server running in our environment. I can share the demo application video link : Link ) |
Hi, i tried to setup this code in my local machine, but unable to do so, i am getting the following error while setting up:
$ melos exec
└> melos run generate-flutter --no-select && melos run generate-dart --no-select
└> FAILED (in 7 packages)
└> digit_components (with exit code 1)
└> digit_entity_hooks (with exit code 1)
└> digit_firebase_services (with exit code 1)
└> digit_showcase (with exit code 1)
└> forms_engine (with exit code 1)
└> freezed_bloc_hooks (with exit code 1)
└> health_campaign_field_worker_app (with exit code 1)
melos run generate
└> melos exec --concurrency 1 -- "melos run generate-flutter --no-select && melos run generate-dart --no-select"
└> FAILED
ScriptException: The script generate failed to execute.
Please help me on setting up the environment locally.
I think this error is in the following package:
forms_engine:
Failed to build build_runner:build_runner:
../../../../../../../AppData/Local/Pub/Cache/hosted/pub.dev/watcher-1.0.2/lib/src/constructable_file_system_event.dart:7:57: Error: The class 'FileSystemEvent' can't be extended, implemented, or mixed in outside of its library because it's a sealed class.
abstract class _ConstructableFileSystemEvent implements FileSystemEvent {
Please check and revert, if possible send me the steps for setting up the same.
Regards,
Gaurav Kumar,
email: er.gaurav2010ec@gmail.com
The text was updated successfully, but these errors were encountered: