Skip to content

Latest commit

 

History

History
158 lines (129 loc) · 3.36 KB

File metadata and controls

158 lines (129 loc) · 3.36 KB

E&I Flutter Client

The README contains the initial setup and execution instructions for the client.

Prerequisites

Before running this function, make sure you have the following:

Run

  1. Clone this repository
git clone https://github.com/GDSC-DGU/2024-SolutionChallenge-EarthAndI.git
  1. Change Directory
# Change App Directory
cd ./2024-SolutionChallenge-EarthAndI/app
  1. Add .env File
# Add .env File
cd assets
mkdir config
touch .env

Fill out the following in .env

API_SERVER_HOST=[analysis_api Cloud Function Http URL]
LOG_SERVER_HOST=[trigger_and_notification_api Cloud Function Http URL]
  1. Run Flutter
flutter pub get
flutter run

If you encounter any issues in iOS build

  1. follow these steps to clean your build cache for iOS
cd ios
rm Podfile.lock
rm Podfile
rm -rf Pods
pod cache clean --all
cd ..
flutter clean
flutter pub get
cd ios
pod install
flutter pub get
flutter run

If you encounter any issues in Android build

  1. follow these steps to clean your build cache for Android
cd android
./gradlew clean
cd ..
flutter clean
flutter pub get
flutter pub get
flutter run

Environment, Dependences And Directory Structure

Environment

  • Dart SDK version: 3.2.3
  • Flutter version: 3.16.6

Dependences

  • cupertino_icons: ^1.0.2
  • flutter_launcher_icons: ^0.13.1
  • flutter_native_splash: ^2.3.6
  • flutter_dotenv: ^5.1.0
  • intl: ^0.18.1
  • logger: ^2.0.2+1
  • get: ^4.6.6
  • flutter_svg: ^2.0.9
  • loading_animation_widget: ^1.2.0+4
  • speech_to_text: ^6.6.0
  • flutter_staggered_animations: ^1.0.0
  • extended_nested_scroll_view: ^6.2.1
  • get_storage: ^2.1.1
  • carousel_slider: ^4.2.1
  • image_picker: ^1.0.7
  • table_calendar: ^3.0.9
  • drift: ^2.14.1
  • sqlite3_flutter_libs: ^0.5.18
  • path_provider: ^2.1.2
  • path: ^1.8.3
  • firebase_core: ^2.25.4
  • firebase_auth: ^4.17.4
  • cloud_firestore: ^4.15.5
  • google_sign_in: ^6.2.1
  • permission_handler: ^11.2.1
  • health: ^8.1.0
  • rive: ^0.12.4
  • animated_text_kit: ^4.2.2
  • smooth_page_indicator: ^1.1.0
  • home_widget: ^0.4.1
  • timezone: ^0.9.2
  • flutter_app_badger: ^1.5.0
  • flutter_local_notifications: ^16.3.2
  • firebase_messaging: ^14.7.16
  • shimmer: ^3.0.0

Directory Structure

├── android
├── assets
│  ├── config
│  ├── data
│  ├── fonts
│  ├── icons
│  └── images
├── build
├── ios
├── lib
│  ├── apps
│  ├── bindings
│  ├── domains
│  ├── middlewares
│  ├── models
│  ├── providers
│  ├── repositories
│  ├── utilities
│  ├── view_models
│  ├── views
│  └── widgets
└────── main.app