commit e6a30eddd3f9a774cdeefb3106ba47e7eb884e79 Author: Rosa saepul nugraha Date: Wed Apr 29 12:53:22 2026 +0700 first commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1817034 --- /dev/null +++ b/.gitignore @@ -0,0 +1,117 @@ +# Miscellaneous +*.class +*.log +*.pyc +*.swp +.DS_Store +.atom/ +.build/ +.buildlog/ +.history +.svn/ +.swiftpm/ +migrate_working_dir/ + +# IntelliJ related +*.iml +*.ipr +*.iws +.idea/* + +# Visual Studio Code related +.classpath +.project +.settings/ +.vscode/* + +# packages file containing multi-root paths +.packages.generated + +# Flutter/Dart/Pub related +**/doc/api/ +**/ios/Flutter/.last_build_id +.dart_tool/ +.flutter-plugins +.flutter-plugins-dependencies +.packages +.pub-cache/ +.pub/ +build/ +flutter_*.png +linked_*.ds +unlinked.ds +unlinked_spec.ds +.fvm/ + +# Android related +**/android/**/gradle-wrapper.jar +**/android/.gradle +**/android/captures/ +**/android/local.properties +**/android/**/GeneratedPluginRegistrant.java +**/android/key.properties +**/android/.idea/ +**/android/app/debug +**/android/app/profile +**/android/app/release +*.jks + +# iOS/XCode related +**/ios/**/*.mode1v3 +**/ios/**/*.mode2v3 +**/ios/**/*.moved-aside +**/ios/**/*.pbxuser +**/ios/**/*.perspectivev3 +**/ios/**/*sync/ +**/ios/**/.sconsign.dblite +**/ios/**/.tags* +**/ios/**/.vagrant/ +**/ios/**/DerivedData/ +**/ios/**/Icon? +**/ios/**/Pods/ +**/ios/**/.symlinks/ +**/ios/**/profile +**/ios/**/xcuserdata +**/ios/.generated/ +**/ios/Flutter/App.framework +**/ios/Flutter/Flutter.framework +**/ios/Flutter/Flutter.podspec +**/ios/Flutter/Generated.xcconfig +**/ios/Flutter/app.flx +**/ios/Flutter/app.zip +**/ios/Flutter/.last_build_id +**/ios/Flutter/flutter_assets/ +**/ios/Flutter/flutter_export_environment.sh +**/ios/ServiceDefinitions.json +**/ios/Runner/GeneratedPluginRegistrant.* + +# Coverage +coverage/ + +# Submodules +packages/**/pubspec.lock + +# Web related +lib/generated_plugin_registrant.dart + +# Symbolication related +app.*.symbols + +# Obfuscation related +app.*.map.json + +# Exceptions to the above rules. +!**/ios/**/default.mode1v3 +!**/ios/**/default.mode2v3 +!**/ios/**/default.pbxuser +!**/ios/**/default.perspectivev3 +!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages +!/dev/ci/**/Gemfile.lock +!.vscode/extensions.json +!.vscode/launch.json +!.idea/codeStyles/ +!.idea/dictionaries/ +!.idea/runConfigurations/ + +# Generated l10n files +lib/l10n/gen/ \ No newline at end of file diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..5500bce --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,9 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=827846 + // for the documentation about the extensions.json format + "recommendations": [ + "dart-code.dart-code", + "dart-code.flutter", + "felixangelov.bloc" + ] +} diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..b4e33ce --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,34 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Launch development", + "request": "launch", + "type": "dart", + "program": "lib/main_development.dart", + "args": [ + "--flavor", + "development", + "--target", + "lib/main_development.dart" + ] + }, + { + "name": "Launch staging", + "request": "launch", + "type": "dart", + "program": "lib/main_staging.dart", + "args": ["--flavor", "staging", "--target", "lib/main_staging.dart"] + }, + { + "name": "Launch production", + "request": "launch", + "type": "dart", + "program": "lib/main_production.dart", + "args": ["--flavor", "production", "--target", "lib/main_production.dart"] + } + ] +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..c04f324 --- /dev/null +++ b/README.md @@ -0,0 +1,176 @@ +# ECCP + +![coverage][coverage_badge] +[![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link] +[![License: MIT][license_badge]][license_link] + +Generated by the [Very Good CLI][very_good_cli_link] 🤖 + +ECCP + +--- + +## Getting Started 🚀 + +This project contains 3 flavors: + +- development +- staging +- production + +To run the desired flavor either use the launch configuration in VSCode/Android Studio or use the following commands: + +```sh +# Development +$ flutter run --flavor development --target lib/main_development.dart + +# Staging +$ flutter run --flavor staging --target lib/main_staging.dart + +# Production +$ flutter run --flavor production --target lib/main_production.dart +``` + +_\*ECCP works on iOS, Android, Web, and Windows._ + +--- + +## Running Tests 🧪 + +To run all unit and widget tests use the following command: + +```sh +$ very_good test --coverage --test-randomize-ordering-seed random +``` + +To view the generated coverage report you can use [lcov](https://github.com/linux-test-project/lcov). + +```sh +# Generate Coverage Report +$ genhtml coverage/lcov.info -o coverage/ + +# Open Coverage Report +$ open coverage/index.html +``` + +--- + +## Working with Translations 🌐 + +This project relies on [flutter_localizations][flutter_localizations_link] and follows the [official internationalization guide for Flutter][internationalization_link]. + +### Adding Strings + +1. To add a new localizable string, open the `app_en.arb` file at `lib/l10n/arb/app_en.arb`. + +```arb +{ + "@@locale": "en", + "counterAppBarTitle": "Counter", + "@counterAppBarTitle": { + "description": "Text shown in the AppBar of the Counter Page" + } +} +``` + +2. Then add a new key/value and description + +```arb +{ + "@@locale": "en", + "counterAppBarTitle": "Counter", + "@counterAppBarTitle": { + "description": "Text shown in the AppBar of the Counter Page" + }, + "helloWorld": "Hello World", + "@helloWorld": { + "description": "Hello World Text" + } +} +``` + +3. Use the new string + +```dart +import 'package:frontend_eccp_mobile/l10n/l10n.dart'; + +@override +Widget build(BuildContext context) { + final l10n = context.l10n; + return Text(l10n.helloWorld); +} +``` + +### Adding Supported Locales + +Update the `CFBundleLocalizations` array in the `Info.plist` at `ios/Runner/Info.plist` to include the new locale. + +```xml + ... + + CFBundleLocalizations + + en + es + + + ... +``` + +### Adding Translations + +1. For each supported locale, add a new ARB file in `lib/l10n/arb`. + +``` +├── l10n +│ ├── arb +│ │ ├── app_en.arb +│ │ └── app_es.arb +``` + +2. Add the translated strings to each `.arb` file: + +`app_en.arb` + +```arb +{ + "@@locale": "en", + "counterAppBarTitle": "Counter", + "@counterAppBarTitle": { + "description": "Text shown in the AppBar of the Counter Page" + } +} +``` + +`app_es.arb` + +```arb +{ + "@@locale": "es", + "counterAppBarTitle": "Contador", + "@counterAppBarTitle": { + "description": "Texto mostrado en la AppBar de la página del contador" + } +} +``` + +### Generating Translations + +To use the latest translations changes, you will need to generate them: + +1. Generate localizations for the current project: + +```sh +flutter gen-l10n --arb-dir="lib/l10n/arb" +``` + +Alternatively, run `flutter run` and code generation will take place automatically. + +[coverage_badge]: coverage_badge.svg +[flutter_localizations_link]: https://api.flutter.dev/flutter/flutter_localizations/flutter_localizations-library.html +[internationalization_link]: https://flutter.dev/docs/development/accessibility-and-localization/internationalization +[license_badge]: https://img.shields.io/badge/license-MIT-blue.svg +[license_link]: https://opensource.org/licenses/MIT +[very_good_analysis_badge]: https://img.shields.io/badge/style-very_good_analysis-B22C89.svg +[very_good_analysis_link]: https://pub.dev/packages/very_good_analysis +[very_good_cli_link]: https://github.com/VeryGoodOpenSource/very_good_cli diff --git a/analysis_options.yaml b/analysis_options.yaml new file mode 100644 index 0000000..e64be3a --- /dev/null +++ b/analysis_options.yaml @@ -0,0 +1,11 @@ +include: package:very_good_analysis/analysis_options.yaml +analyzer: + errors: + lines_longer_than_80_chars: ignore + deprecated_member_use: ignore + avoid_catches_without_on_clauses: ignore + exclude: + - lib/l10n/gen/* +linter: + rules: + public_member_api_docs: false diff --git a/android/.gitignore b/android/.gitignore new file mode 100644 index 0000000..37277cd --- /dev/null +++ b/android/.gitignore @@ -0,0 +1,14 @@ +gradle-wrapper.jar +/.gradle +/captures/ +/gradlew +/gradlew.bat +/local.properties +GeneratedPluginRegistrant.java +.cxx/ + +# Remember to never publicly share your keystore. +# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app +key.properties +**/*.keystore +**/*.jks diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts new file mode 100644 index 0000000..639b001 --- /dev/null +++ b/android/app/build.gradle.kts @@ -0,0 +1,106 @@ +import java.util.Properties +import java.io.FileInputStream + +plugins { + id("com.android.application") + id("kotlin-android") + id("dev.flutter.flutter-gradle-plugin") + id("com.google.gms.google-services") + id("com.google.firebase.crashlytics") +} + +val keystoreProperties = Properties() +val keystorePropertiesFile = rootProject.file("key.properties") +if (keystorePropertiesFile.exists()) { + keystoreProperties.load(FileInputStream(keystorePropertiesFile)) +} + +android { + namespace = "com.adhivasindo.eccp" + compileSdk = flutter.compileSdkVersion + ndkVersion = "27.0.12077973" + + compileOptions { + sourceCompatibility = JavaVersion.VERSION_11 + targetCompatibility = JavaVersion.VERSION_11 + + isCoreLibraryDesugaringEnabled = true + } + + kotlinOptions { + jvmTarget = JavaVersion.VERSION_11.toString() + } + + defaultConfig { + // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). + applicationId = "com.adhivasindo.eccp" + // You can update the following values to match your application needs. + // For more information, see: https://flutter.dev/to/review-gradle-config. + minSdk = flutter.minSdkVersion + targetSdk = flutter.targetSdkVersion + versionCode = flutter.versionCode + versionName = flutter.versionName + } + + signingConfigs { + create("release") { + if (System.getenv("ANDROID_KEYSTORE_PATH") != null) { + storeFile = file(System.getenv("ANDROID_KEYSTORE_PATH")) + keyAlias = System.getenv("ANDROID_KEYSTORE_ALIAS") + keyPassword = System.getenv("ANDROID_KEYSTORE_PRIVATE_KEY_PASSWORD") + storePassword = System.getenv("ANDROID_KEYSTORE_PASSWORD") + + } else { + keyAlias = keystoreProperties["keyAlias"] as String? + keyPassword = keystoreProperties["keyPassword"] as String? + storeFile = keystoreProperties["storeFile"]?.let { file(it) } + storePassword = keystoreProperties["storePassword"] as String? + } + } + } + + flavorDimensions += "default" + productFlavors { + create("production") { + dimension = "default" + applicationIdSuffix = "" + manifestPlaceholders["appName"] = "ECCP" + } + create("staging") { + dimension = "default" + applicationIdSuffix = ".stg" + manifestPlaceholders["appName"] = "[STG] ECCP" + } + create("development") { + dimension = "default" + applicationIdSuffix = ".dev" + manifestPlaceholders["appName"] = "[DEV] ECCP" + } + } + + buildTypes { + getByName("release") { + signingConfig = signingConfigs.getByName("release") + isMinifyEnabled = true + proguardFiles( + getDefaultProguardFile("proguard-android.txt"), + "proguard-rules.pro" + ) + } + getByName("debug") { + signingConfig = signingConfigs.getByName("debug") + } + } +} + +flutter { + source = "../.." +} + +dependencies { + implementation("org.jetbrains.kotlin:kotlin-stdlib:2.2.10") + coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.4") + implementation(platform("com.google.firebase:firebase-bom:34.8.0")) + implementation("com.google.firebase:firebase-crashlytics") + implementation("com.google.firebase:firebase-analytics") +} diff --git a/android/app/google-services.json b/android/app/google-services.json new file mode 100644 index 0000000..05c0852 --- /dev/null +++ b/android/app/google-services.json @@ -0,0 +1,48 @@ +{ + "project_info": { + "project_number": "256601227152", + "project_id": "eccp-polri", + "storage_bucket": "eccp-polri.firebasestorage.app" + }, + "client": [ + { + "client_info": { + "mobilesdk_app_id": "1:256601227152:android:2498c93afebf6f5f7a3d15", + "android_client_info": { + "package_name": "com.adhivasindo.eccp" + } + }, + "oauth_client": [], + "api_key": [ + { + "current_key": "AIzaSyDC1NUwm7LRzVdHO1UMLHpYdBgvUPMIZsU" + } + ], + "services": { + "appinvite_service": { + "other_platform_oauth_client": [] + } + } + }, + { + "client_info": { + "mobilesdk_app_id": "1:256601227152:android:de7aa652934174f97a3d15", + "android_client_info": { + "package_name": "com.adhivasindo.eccp.dev" + } + }, + "oauth_client": [], + "api_key": [ + { + "current_key": "AIzaSyDC1NUwm7LRzVdHO1UMLHpYdBgvUPMIZsU" + } + ], + "services": { + "appinvite_service": { + "other_platform_oauth_client": [] + } + } + } + ], + "configuration_version": "1" +} diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml new file mode 100644 index 0000000..399f698 --- /dev/null +++ b/android/app/src/debug/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/android/app/src/development/ic_launcher-playstore.png b/android/app/src/development/ic_launcher-playstore.png new file mode 100644 index 0000000..87f4662 Binary files /dev/null and b/android/app/src/development/ic_launcher-playstore.png differ diff --git a/android/app/src/development/res/drawable/ic_launcher_foreground.xml b/android/app/src/development/res/drawable/ic_launcher_foreground.xml new file mode 100644 index 0000000..0f31f64 --- /dev/null +++ b/android/app/src/development/res/drawable/ic_launcher_foreground.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + diff --git a/android/app/src/development/res/mipmap-anydpi-v26/ic_launcher.xml b/android/app/src/development/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 0000000..7353dbd --- /dev/null +++ b/android/app/src/development/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/android/app/src/development/res/mipmap-anydpi-v26/ic_launcher_round.xml b/android/app/src/development/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 0000000..7353dbd --- /dev/null +++ b/android/app/src/development/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/android/app/src/development/res/mipmap-hdpi/ic_launcher.png b/android/app/src/development/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000..af80314 Binary files /dev/null and b/android/app/src/development/res/mipmap-hdpi/ic_launcher.png differ diff --git a/android/app/src/development/res/mipmap-hdpi/ic_launcher_round.png b/android/app/src/development/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 0000000..005f951 Binary files /dev/null and b/android/app/src/development/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/android/app/src/development/res/mipmap-mdpi/ic_launcher.png b/android/app/src/development/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000..1bab3a3 Binary files /dev/null and b/android/app/src/development/res/mipmap-mdpi/ic_launcher.png differ diff --git a/android/app/src/development/res/mipmap-mdpi/ic_launcher_round.png b/android/app/src/development/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 0000000..51bac1b Binary files /dev/null and b/android/app/src/development/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/android/app/src/development/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/development/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000..0c02cd6 Binary files /dev/null and b/android/app/src/development/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/android/app/src/development/res/mipmap-xhdpi/ic_launcher_round.png b/android/app/src/development/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 0000000..e8eb3ee Binary files /dev/null and b/android/app/src/development/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/android/app/src/development/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/development/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..8b8e0e4 Binary files /dev/null and b/android/app/src/development/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/android/app/src/development/res/mipmap-xxhdpi/ic_launcher_round.png b/android/app/src/development/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 0000000..808d082 Binary files /dev/null and b/android/app/src/development/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/android/app/src/development/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/development/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..3084696 Binary files /dev/null and b/android/app/src/development/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/android/app/src/development/res/mipmap-xxxhdpi/ic_launcher_round.png b/android/app/src/development/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 0000000..20bc5ba Binary files /dev/null and b/android/app/src/development/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/android/app/src/development/res/values/ic_launcher_background.xml b/android/app/src/development/res/values/ic_launcher_background.xml new file mode 100644 index 0000000..c5d5899 --- /dev/null +++ b/android/app/src/development/res/values/ic_launcher_background.xml @@ -0,0 +1,4 @@ + + + #FFFFFF + \ No newline at end of file diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..1818a98 --- /dev/null +++ b/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/android/app/src/main/ic_launcher-playstore.png b/android/app/src/main/ic_launcher-playstore.png new file mode 100644 index 0000000..d920815 Binary files /dev/null and b/android/app/src/main/ic_launcher-playstore.png differ diff --git a/android/app/src/main/kotlin/com/adhivasindo/co/id/sisarpras/lrt/MainActivity.kt b/android/app/src/main/kotlin/com/adhivasindo/co/id/sisarpras/lrt/MainActivity.kt new file mode 100644 index 0000000..6c23460 --- /dev/null +++ b/android/app/src/main/kotlin/com/adhivasindo/co/id/sisarpras/lrt/MainActivity.kt @@ -0,0 +1,5 @@ +package com.adhivasindo.eccp + +import io.flutter.embedding.android.FlutterActivity + +class MainActivity : FlutterActivity() diff --git a/android/app/src/main/res/drawable-v21/launch_background.xml b/android/app/src/main/res/drawable-v21/launch_background.xml new file mode 100644 index 0000000..bdf0fcc --- /dev/null +++ b/android/app/src/main/res/drawable-v21/launch_background.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/android/app/src/main/res/drawable/ic_launch_image.xml b/android/app/src/main/res/drawable/ic_launch_image.xml new file mode 100644 index 0000000..b49e967 --- /dev/null +++ b/android/app/src/main/res/drawable/ic_launch_image.xml @@ -0,0 +1,12 @@ + + + + diff --git a/android/app/src/main/res/drawable/ic_launcher_foreground.xml b/android/app/src/main/res/drawable/ic_launcher_foreground.xml new file mode 100644 index 0000000..4e37e10 --- /dev/null +++ b/android/app/src/main/res/drawable/ic_launcher_foreground.xml @@ -0,0 +1,20 @@ + + + + + + + diff --git a/android/app/src/main/res/drawable/launch_background.xml b/android/app/src/main/res/drawable/launch_background.xml new file mode 100644 index 0000000..bdf0fcc --- /dev/null +++ b/android/app/src/main/res/drawable/launch_background.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 0000000..7353dbd --- /dev/null +++ b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 0000000..7353dbd --- /dev/null +++ b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000..2c681ca Binary files /dev/null and b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 0000000..000642c Binary files /dev/null and b/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000..5ebc0f5 Binary files /dev/null and b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 0000000..fac2554 Binary files /dev/null and b/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000..391f46b Binary files /dev/null and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 0000000..8d12806 Binary files /dev/null and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..2b00529 Binary files /dev/null and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 0000000..479b968 Binary files /dev/null and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..5f55d97 Binary files /dev/null and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 0000000..2959a5b Binary files /dev/null and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/android/app/src/main/res/values-night/styles.xml b/android/app/src/main/res/values-night/styles.xml new file mode 100644 index 0000000..449a9f9 --- /dev/null +++ b/android/app/src/main/res/values-night/styles.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/android/app/src/main/res/values/ic_launcher_background.xml b/android/app/src/main/res/values/ic_launcher_background.xml new file mode 100644 index 0000000..c5d5899 --- /dev/null +++ b/android/app/src/main/res/values/ic_launcher_background.xml @@ -0,0 +1,4 @@ + + + #FFFFFF + \ No newline at end of file diff --git a/android/app/src/main/res/values/mapbox_access_token.xml b/android/app/src/main/res/values/mapbox_access_token.xml new file mode 100644 index 0000000..61a9f09 --- /dev/null +++ b/android/app/src/main/res/values/mapbox_access_token.xml @@ -0,0 +1,6 @@ + + + + pk.eyJ1Ijoicm9zYXNudWdyYWhhNyIsImEiOiJjbWN6MTJuNnIwZjJ4Mm1zanFtYThtbzNxIn0.qj9V77rs7yCqlkg8Whblgg + + \ No newline at end of file diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml new file mode 100644 index 0000000..d74aa35 --- /dev/null +++ b/android/app/src/main/res/values/styles.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/android/app/src/profile/AndroidManifest.xml b/android/app/src/profile/AndroidManifest.xml new file mode 100644 index 0000000..399f698 --- /dev/null +++ b/android/app/src/profile/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/android/app/src/staging/ic_launcher-playstore.png b/android/app/src/staging/ic_launcher-playstore.png new file mode 100644 index 0000000..c0524bd Binary files /dev/null and b/android/app/src/staging/ic_launcher-playstore.png differ diff --git a/android/app/src/staging/res/drawable/ic_launcher_foreground.xml b/android/app/src/staging/res/drawable/ic_launcher_foreground.xml new file mode 100644 index 0000000..0f48a6e --- /dev/null +++ b/android/app/src/staging/res/drawable/ic_launcher_foreground.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + diff --git a/android/app/src/staging/res/mipmap-anydpi-v26/ic_launcher.xml b/android/app/src/staging/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 0000000..7353dbd --- /dev/null +++ b/android/app/src/staging/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/android/app/src/staging/res/mipmap-anydpi-v26/ic_launcher_round.xml b/android/app/src/staging/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 0000000..7353dbd --- /dev/null +++ b/android/app/src/staging/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/android/app/src/staging/res/mipmap-hdpi/ic_launcher.png b/android/app/src/staging/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000..84db84c Binary files /dev/null and b/android/app/src/staging/res/mipmap-hdpi/ic_launcher.png differ diff --git a/android/app/src/staging/res/mipmap-hdpi/ic_launcher_round.png b/android/app/src/staging/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 0000000..a982bc0 Binary files /dev/null and b/android/app/src/staging/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/android/app/src/staging/res/mipmap-mdpi/ic_launcher.png b/android/app/src/staging/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000..e54346b Binary files /dev/null and b/android/app/src/staging/res/mipmap-mdpi/ic_launcher.png differ diff --git a/android/app/src/staging/res/mipmap-mdpi/ic_launcher_round.png b/android/app/src/staging/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 0000000..0c92416 Binary files /dev/null and b/android/app/src/staging/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/android/app/src/staging/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/staging/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000..bcb4fbd Binary files /dev/null and b/android/app/src/staging/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/android/app/src/staging/res/mipmap-xhdpi/ic_launcher_round.png b/android/app/src/staging/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 0000000..cee8a88 Binary files /dev/null and b/android/app/src/staging/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/android/app/src/staging/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/staging/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..fc2a1d2 Binary files /dev/null and b/android/app/src/staging/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/android/app/src/staging/res/mipmap-xxhdpi/ic_launcher_round.png b/android/app/src/staging/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 0000000..eda13fa Binary files /dev/null and b/android/app/src/staging/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/android/app/src/staging/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/staging/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..a186cfb Binary files /dev/null and b/android/app/src/staging/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/android/app/src/staging/res/mipmap-xxxhdpi/ic_launcher_round.png b/android/app/src/staging/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 0000000..71e04d2 Binary files /dev/null and b/android/app/src/staging/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/android/app/src/staging/res/values/ic_launcher_background.xml b/android/app/src/staging/res/values/ic_launcher_background.xml new file mode 100644 index 0000000..c5d5899 --- /dev/null +++ b/android/app/src/staging/res/values/ic_launcher_background.xml @@ -0,0 +1,4 @@ + + + #FFFFFF + \ No newline at end of file diff --git a/android/build.gradle.kts b/android/build.gradle.kts new file mode 100644 index 0000000..0cfadc0 --- /dev/null +++ b/android/build.gradle.kts @@ -0,0 +1,25 @@ +allprojects { + repositories { + google() + mavenCentral() + } +} + +val newBuildDir: Directory = + rootProject.layout.buildDirectory + .dir("../../build") + .get() + +rootProject.layout.buildDirectory.value(newBuildDir) + +subprojects { + val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name) + project.layout.buildDirectory.value(newSubprojectBuildDir) +} +subprojects { + project.evaluationDependsOn(":app") +} + +tasks.register("clean") { + delete(rootProject.layout.buildDirectory) +} diff --git a/android/gradle.properties b/android/gradle.properties new file mode 100644 index 0000000..f018a61 --- /dev/null +++ b/android/gradle.properties @@ -0,0 +1,3 @@ +org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError +android.useAndroidX=true +android.enableJetifier=true diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..e603bd3 --- /dev/null +++ b/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-all.zip diff --git a/android/settings.gradle.kts b/android/settings.gradle.kts new file mode 100644 index 0000000..2f45f7f --- /dev/null +++ b/android/settings.gradle.kts @@ -0,0 +1,27 @@ +pluginManagement { + val flutterSdkPath = run { + val properties = java.util.Properties() + file("local.properties").inputStream().use { properties.load(it) } + val flutterSdkPath = properties.getProperty("flutter.sdk") + require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" } + flutterSdkPath + } + + includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") + + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} + +plugins { + id("dev.flutter.flutter-plugin-loader") version "1.0.0" + id("com.android.application") version "8.12.0" apply false + id("org.jetbrains.kotlin.android") version "2.2.10" apply false + id("com.google.gms.google-services") version "4.4.4" apply false + id("com.google.firebase.crashlytics") version "3.0.6" apply false +} + +include(":app") diff --git a/assets/images/img-coming-soon.png b/assets/images/img-coming-soon.png new file mode 100644 index 0000000..33eb559 Binary files /dev/null and b/assets/images/img-coming-soon.png differ diff --git a/assets/images/img-location-permission.png b/assets/images/img-location-permission.png new file mode 100644 index 0000000..ecbbfbb Binary files /dev/null and b/assets/images/img-location-permission.png differ diff --git a/assets/images/img-no-internet.png b/assets/images/img-no-internet.png new file mode 100644 index 0000000..c2d78bd Binary files /dev/null and b/assets/images/img-no-internet.png differ diff --git a/assets/images/img-not-found.png b/assets/images/img-not-found.png new file mode 100644 index 0000000..873acce Binary files /dev/null and b/assets/images/img-not-found.png differ diff --git a/assets/images/img-server-error.png b/assets/images/img-server-error.png new file mode 100644 index 0000000..757ee6c Binary files /dev/null and b/assets/images/img-server-error.png differ diff --git a/assets/images/logo.png b/assets/images/logo.png new file mode 100644 index 0000000..568ff30 Binary files /dev/null and b/assets/images/logo.png differ diff --git a/assets/images/signature_pattern.jpg b/assets/images/signature_pattern.jpg new file mode 100644 index 0000000..5f0a89d Binary files /dev/null and b/assets/images/signature_pattern.jpg differ diff --git a/assets/json/loading.json b/assets/json/loading.json new file mode 100644 index 0000000..1a0ad7d --- /dev/null +++ b/assets/json/loading.json @@ -0,0 +1 @@ +{"v":"5.6.10","fr":30,"ip":30,"op":210,"w":800,"h":600,"nm":"合成 1","ddd":0,"assets":[{"id":"comp_0","layers":[{"ddd":0,"ind":1,"ty":4,"nm":"形状图层 18","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":340,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[0]},{"t":30,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"修剪路径 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.09019607843137255,0.3843137254901961,0.8745098039215686,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":121,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"形状图层 17","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":320,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":10,"s":[0]},{"t":40,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"修剪路径 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.09019607843137255,0.3843137254901961,0.8745098039215686,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":121,"st":10,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"形状图层 16","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":300,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":20,"s":[0]},{"t":50,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"修剪路径 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.09019607843137255,0.3843137254901961,0.8745098039215686,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":121,"st":20,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"形状图层 15","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":280,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":30,"s":[0]},{"t":60,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"修剪路径 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.09019607843137255,0.3843137254901961,0.8745098039215686,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":121,"st":30,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"形状图层 14","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":260,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":40,"s":[0]},{"t":70,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"修剪路径 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.09019607843137255,0.3843137254901961,0.8745098039215686,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":121,"st":40,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"形状图层 13","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":240,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":50,"s":[0]},{"t":80,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"修剪路径 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.09019607843137255,0.3843137254901961,0.8745098039215686,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":121,"st":50,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":"形状图层 12","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":220,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":60,"s":[0]},{"t":90,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"修剪路径 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.09019607843137255,0.3843137254901961,0.8745098039215686,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":181,"st":60,"bm":0},{"ddd":0,"ind":8,"ty":4,"nm":"形状图层 11","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":200,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":70,"s":[0]},{"t":100,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"修剪路径 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.09019607843137255,0.3843137254901961,0.8745098039215686,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":181,"st":70,"bm":0},{"ddd":0,"ind":9,"ty":4,"nm":"形状图层 10","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":180,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":80,"s":[0]},{"t":110,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"修剪路径 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.09019607843137255,0.3843137254901961,0.8745098039215686,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":181,"st":80,"bm":0},{"ddd":0,"ind":10,"ty":4,"nm":"形状图层 9","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":160,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":90,"s":[0]},{"t":120,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"修剪路径 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.09019607843137255,0.3843137254901961,0.8745098039215686,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":181,"st":90,"bm":0},{"ddd":0,"ind":11,"ty":4,"nm":"形状图层 8","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":140,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":100,"s":[0]},{"t":130,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"修剪路径 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.09019607843137255,0.3843137254901961,0.8745098039215686,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":181,"st":100,"bm":0},{"ddd":0,"ind":12,"ty":4,"nm":"形状图层 7","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":120,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":110,"s":[0]},{"t":140,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"修剪路径 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.09019607843137255,0.3843137254901961,0.8745098039215686,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":181,"st":110,"bm":0},{"ddd":0,"ind":13,"ty":4,"nm":"形状图层 6","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":100,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":120,"s":[0]},{"t":150,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"修剪路径 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.09019607843137255,0.3843137254901961,0.8745098039215686,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":78,"op":420,"st":120,"bm":0},{"ddd":0,"ind":14,"ty":4,"nm":"形状图层 5","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":80,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":130,"s":[0]},{"t":160,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"修剪路径 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.09019607843137255,0.3843137254901961,0.8745098039215686,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":78,"op":430,"st":130,"bm":0},{"ddd":0,"ind":15,"ty":4,"nm":"形状图层 4","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":60,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":140,"s":[0]},{"t":170,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"修剪路径 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.09019607843137255,0.3843137254901961,0.8745098039215686,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":78,"op":440,"st":140,"bm":0},{"ddd":0,"ind":16,"ty":4,"nm":"形状图层 3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":40,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":150,"s":[0]},{"t":180,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"修剪路径 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.09019607843137255,0.3843137254901961,0.8745098039215686,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":78,"op":450,"st":150,"bm":0},{"ddd":0,"ind":17,"ty":4,"nm":"形状图层 2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":20,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":160,"s":[0]},{"t":190,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"修剪路径 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.09019607843137255,0.3843137254901961,0.8745098039215686,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":78,"op":460,"st":160,"bm":0},{"ddd":0,"ind":18,"ty":4,"nm":"形状图层 1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":170,"s":[0]},{"t":200,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"修剪路径 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.09019607843137255,0.3843137254901961,0.8745098039215686,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":78,"op":470,"st":170,"bm":0},{"ddd":0,"ind":19,"ty":4,"nm":"形状图层 24","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":340,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":180,"s":[0]},{"t":210,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"修剪路径 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.09019607843137255,0.3843137254901961,0.8745098039215686,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":180,"op":301,"st":180,"bm":0},{"ddd":0,"ind":20,"ty":4,"nm":"形状图层 23","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":320,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":190,"s":[0]},{"t":220,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"修剪路径 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.09019607843137255,0.3843137254901961,0.8745098039215686,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":180,"op":301,"st":190,"bm":0},{"ddd":0,"ind":21,"ty":4,"nm":"形状图层 22","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":300,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":200,"s":[0]},{"t":230,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"修剪路径 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.09019607843137255,0.3843137254901961,0.8745098039215686,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":180,"op":301,"st":200,"bm":0},{"ddd":0,"ind":22,"ty":4,"nm":"形状图层 21","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":280,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":210,"s":[0]},{"t":240,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"修剪路径 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.09019607843137255,0.3843137254901961,0.8745098039215686,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":180,"op":301,"st":210,"bm":0},{"ddd":0,"ind":23,"ty":4,"nm":"形状图层 20","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":260,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":220,"s":[0]},{"t":250,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"修剪路径 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.09019607843137255,0.3843137254901961,0.8745098039215686,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":180,"op":301,"st":220,"bm":0},{"ddd":0,"ind":24,"ty":4,"nm":"形状图层 19","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":240,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[1.258,2.078,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[200,200],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":5,"ix":2},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":230,"s":[0]},{"t":260,"s":[120]}],"ix":3},"m":1,"ix":2,"nm":"修剪路径 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.09019607843137255,0.3843137254901961,0.8745098039215686,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":40,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[1.258,2.078],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":180,"op":301,"st":230,"bm":0}]}],"layers":[{"ddd":0,"ind":1,"ty":0,"nm":"预合成 1","refId":"comp_0","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[400,300,0],"ix":2},"a":{"a":0,"k":[400,300,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"ef":[{"ty":5,"nm":"简单阻塞工具","np":4,"mn":"ADBE Simple Choker","ix":1,"en":1,"ef":[{"ty":7,"nm":"视图","mn":"ADBE Simple Choker-0001","ix":1,"v":{"a":0,"k":1,"ix":1}},{"ty":0,"nm":"阻塞遮罩","mn":"ADBE Simple Choker-0002","ix":2,"v":{"a":0,"k":14,"ix":2}}]},{"ty":5,"nm":"梯度渐变","np":10,"mn":"ADBE Ramp","ix":2,"en":1,"ef":[{"ty":3,"nm":"渐变起点","mn":"ADBE Ramp-0001","ix":1,"v":{"a":0,"k":[400,0],"ix":1}},{"ty":2,"nm":"起始颜色","mn":"ADBE Ramp-0002","ix":2,"v":{"a":0,"k":[0.263066768646,1,0.867243647575,1],"ix":2}},{"ty":3,"nm":"渐变终点","mn":"ADBE Ramp-0003","ix":3,"v":{"a":0,"k":[400,600],"ix":3}},{"ty":2,"nm":"结束颜色","mn":"ADBE Ramp-0004","ix":4,"v":{"a":0,"k":[0.354580283165,1,0.820018112659,1],"ix":4}},{"ty":7,"nm":"渐变形状","mn":"ADBE Ramp-0005","ix":5,"v":{"a":0,"k":1,"ix":5}},{"ty":0,"nm":"渐变散射","mn":"ADBE Ramp-0006","ix":6,"v":{"a":0,"k":0,"ix":6}},{"ty":0,"nm":"与原始图像混合","mn":"ADBE Ramp-0007","ix":7,"v":{"a":0,"k":0,"ix":7}},{"ty":6,"nm":"","mn":"ADBE Ramp-0008","ix":8,"v":0}]}],"w":800,"h":600,"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":0,"nm":"预合成 1","refId":"comp_0","sr":1,"ks":{"o":{"a":0,"k":56,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[400,320,0],"ix":2},"a":{"a":0,"k":[400,300,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"ef":[{"ty":5,"nm":"简单阻塞工具","np":4,"mn":"ADBE Simple Choker","ix":1,"en":1,"ef":[{"ty":7,"nm":"视图","mn":"ADBE Simple Choker-0001","ix":1,"v":{"a":0,"k":1,"ix":1}},{"ty":0,"nm":"阻塞遮罩","mn":"ADBE Simple Choker-0002","ix":2,"v":{"a":0,"k":14,"ix":2}}]},{"ty":5,"nm":"梯度渐变","np":10,"mn":"ADBE Ramp","ix":2,"en":1,"ef":[{"ty":3,"nm":"渐变起点","mn":"ADBE Ramp-0001","ix":1,"v":{"a":0,"k":[400,0],"ix":1}},{"ty":2,"nm":"起始颜色","mn":"ADBE Ramp-0002","ix":2,"v":{"a":0,"k":[0.263066768646,1,0.867243647575,1],"ix":2}},{"ty":3,"nm":"渐变终点","mn":"ADBE Ramp-0003","ix":3,"v":{"a":0,"k":[400,600],"ix":3}},{"ty":2,"nm":"结束颜色","mn":"ADBE Ramp-0004","ix":4,"v":{"a":0,"k":[0.354580283165,1,0.820018112659,1],"ix":4}},{"ty":7,"nm":"渐变形状","mn":"ADBE Ramp-0005","ix":5,"v":{"a":0,"k":1,"ix":5}},{"ty":0,"nm":"渐变散射","mn":"ADBE Ramp-0006","ix":6,"v":{"a":0,"k":0,"ix":6}},{"ty":0,"nm":"与原始图像混合","mn":"ADBE Ramp-0007","ix":7,"v":{"a":0,"k":0,"ix":7}},{"ty":6,"nm":"","mn":"ADBE Ramp-0008","ix":8,"v":0}]},{"ty":29,"nm":"高斯模糊","np":5,"mn":"ADBE Gaussian Blur 2","ix":3,"en":1,"ef":[{"ty":0,"nm":"模糊度","mn":"ADBE Gaussian Blur 2-0001","ix":1,"v":{"a":0,"k":41.3,"ix":1}},{"ty":7,"nm":"模糊方向","mn":"ADBE Gaussian Blur 2-0002","ix":2,"v":{"a":0,"k":1,"ix":2}},{"ty":7,"nm":"重复边缘像素","mn":"ADBE Gaussian Blur 2-0003","ix":3,"v":{"a":0,"k":0,"ix":3}}]}],"w":800,"h":600,"ip":0,"op":300,"st":0,"bm":0}],"markers":[]} \ No newline at end of file diff --git a/assets/svg/bg_splash.svg b/assets/svg/bg_splash.svg new file mode 100644 index 0000000..2c61f21 --- /dev/null +++ b/assets/svg/bg_splash.svg @@ -0,0 +1,190 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/svg/ic-book.svg b/assets/svg/ic-book.svg new file mode 100644 index 0000000..099078c --- /dev/null +++ b/assets/svg/ic-book.svg @@ -0,0 +1,3 @@ + + + diff --git a/assets/svg/ic-history.svg b/assets/svg/ic-history.svg new file mode 100644 index 0000000..83d7728 --- /dev/null +++ b/assets/svg/ic-history.svg @@ -0,0 +1,3 @@ + + + diff --git a/assets/svg/logo.svg b/assets/svg/logo.svg new file mode 100644 index 0000000..cec580a --- /dev/null +++ b/assets/svg/logo.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/assets/svg/navigation/ic-asset-select.svg b/assets/svg/navigation/ic-asset-select.svg new file mode 100644 index 0000000..300bc22 --- /dev/null +++ b/assets/svg/navigation/ic-asset-select.svg @@ -0,0 +1,3 @@ + + + diff --git a/assets/svg/navigation/ic-asset.svg b/assets/svg/navigation/ic-asset.svg new file mode 100644 index 0000000..7894493 --- /dev/null +++ b/assets/svg/navigation/ic-asset.svg @@ -0,0 +1,3 @@ + + + diff --git a/assets/svg/navigation/ic-house-select.svg b/assets/svg/navigation/ic-house-select.svg new file mode 100644 index 0000000..6b60a0c --- /dev/null +++ b/assets/svg/navigation/ic-house-select.svg @@ -0,0 +1,3 @@ + + + diff --git a/assets/svg/navigation/ic-house.svg b/assets/svg/navigation/ic-house.svg new file mode 100644 index 0000000..de3c0c3 --- /dev/null +++ b/assets/svg/navigation/ic-house.svg @@ -0,0 +1,3 @@ + + + diff --git a/assets/svg/navigation/ic-notification-select.svg b/assets/svg/navigation/ic-notification-select.svg new file mode 100644 index 0000000..fb2935e --- /dev/null +++ b/assets/svg/navigation/ic-notification-select.svg @@ -0,0 +1,3 @@ + + + diff --git a/assets/svg/navigation/ic-notification.svg b/assets/svg/navigation/ic-notification.svg new file mode 100644 index 0000000..83b6bf3 --- /dev/null +++ b/assets/svg/navigation/ic-notification.svg @@ -0,0 +1,3 @@ + + + diff --git a/assets/svg/navigation/ic-task-select.svg b/assets/svg/navigation/ic-task-select.svg new file mode 100644 index 0000000..e8bc144 --- /dev/null +++ b/assets/svg/navigation/ic-task-select.svg @@ -0,0 +1,3 @@ + + + diff --git a/assets/svg/navigation/ic-task.svg b/assets/svg/navigation/ic-task.svg new file mode 100644 index 0000000..efbe99f --- /dev/null +++ b/assets/svg/navigation/ic-task.svg @@ -0,0 +1,3 @@ + + + diff --git a/assets/svg/navigation/ic-tools-select.svg b/assets/svg/navigation/ic-tools-select.svg new file mode 100644 index 0000000..4ca96ff --- /dev/null +++ b/assets/svg/navigation/ic-tools-select.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/assets/svg/navigation/ic-tools.svg b/assets/svg/navigation/ic-tools.svg new file mode 100644 index 0000000..3428fe3 --- /dev/null +++ b/assets/svg/navigation/ic-tools.svg @@ -0,0 +1,3 @@ + + + diff --git a/assets/svg/navigation/ic-user-select.svg b/assets/svg/navigation/ic-user-select.svg new file mode 100644 index 0000000..2444475 --- /dev/null +++ b/assets/svg/navigation/ic-user-select.svg @@ -0,0 +1,3 @@ + + + diff --git a/assets/svg/navigation/ic-user.svg b/assets/svg/navigation/ic-user.svg new file mode 100644 index 0000000..cce868a --- /dev/null +++ b/assets/svg/navigation/ic-user.svg @@ -0,0 +1,3 @@ + + + diff --git a/assets/svg/tabbar/ic-activity.svg b/assets/svg/tabbar/ic-activity.svg new file mode 100644 index 0000000..3070150 --- /dev/null +++ b/assets/svg/tabbar/ic-activity.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/assets/svg/tabbar/ic-checklist.svg b/assets/svg/tabbar/ic-checklist.svg new file mode 100644 index 0000000..1d3d7ac --- /dev/null +++ b/assets/svg/tabbar/ic-checklist.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/assets/svg/tabbar/ic-completed.svg b/assets/svg/tabbar/ic-completed.svg new file mode 100644 index 0000000..876abc6 --- /dev/null +++ b/assets/svg/tabbar/ic-completed.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/assets/svg/tabbar/ic-overview.svg b/assets/svg/tabbar/ic-overview.svg new file mode 100644 index 0000000..51363c1 --- /dev/null +++ b/assets/svg/tabbar/ic-overview.svg @@ -0,0 +1,4 @@ + + + + diff --git a/assets/svg/tabbar/ic-safety.svg b/assets/svg/tabbar/ic-safety.svg new file mode 100644 index 0000000..e808748 --- /dev/null +++ b/assets/svg/tabbar/ic-safety.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/assets/svg/tabbar/ic-tool.svg b/assets/svg/tabbar/ic-tool.svg new file mode 100644 index 0000000..4a9f825 --- /dev/null +++ b/assets/svg/tabbar/ic-tool.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/assets/webp/logo.webp b/assets/webp/logo.webp new file mode 100644 index 0000000..7191099 Binary files /dev/null and b/assets/webp/logo.webp differ diff --git a/coverage_badge.svg b/coverage_badge.svg new file mode 100644 index 0000000..88bfadf --- /dev/null +++ b/coverage_badge.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + coverage + coverage + 100% + 100% + + \ No newline at end of file diff --git a/devtools_options.yaml b/devtools_options.yaml new file mode 100644 index 0000000..fa0b357 --- /dev/null +++ b/devtools_options.yaml @@ -0,0 +1,3 @@ +description: This file stores settings for Dart & Flutter DevTools. +documentation: https://docs.flutter.dev/tools/devtools/extensions#configure-extension-enablement-states +extensions: diff --git a/flutter_native_splash.yaml b/flutter_native_splash.yaml new file mode 100644 index 0000000..8b2ef14 --- /dev/null +++ b/flutter_native_splash.yaml @@ -0,0 +1,13 @@ +flutter_native_splash: + color: "#000000" + image: assets/images/signature_pattern.jpg + icon_background_color: "#000000" + + android: true + ios: true + web: false + + android_12: + color: "#000000" + image: assets/images/signature_pattern.jpg + icon_background_color: "#000000" diff --git a/ios/.gitignore b/ios/.gitignore new file mode 100644 index 0000000..7a7f987 --- /dev/null +++ b/ios/.gitignore @@ -0,0 +1,34 @@ +**/dgph +*.mode1v3 +*.mode2v3 +*.moved-aside +*.pbxuser +*.perspectivev3 +**/*sync/ +.sconsign.dblite +.tags* +**/.vagrant/ +**/DerivedData/ +Icon? +**/Pods/ +**/.symlinks/ +profile +xcuserdata +**/.generated/ +Flutter/App.framework +Flutter/Flutter.framework +Flutter/Flutter.podspec +Flutter/Generated.xcconfig +Flutter/ephemeral/ +Flutter/app.flx +Flutter/app.zip +Flutter/flutter_assets/ +Flutter/flutter_export_environment.sh +ServiceDefinitions.json +Runner/GeneratedPluginRegistrant.* + +# Exceptions to above rules. +!default.mode1v3 +!default.mode2v3 +!default.pbxuser +!default.perspectivev3 diff --git a/ios/Flutter/AppFrameworkInfo.plist b/ios/Flutter/AppFrameworkInfo.plist new file mode 100644 index 0000000..d57061d --- /dev/null +++ b/ios/Flutter/AppFrameworkInfo.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + App + CFBundleIdentifier + io.flutter.flutter.app + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + App + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + MinimumOSVersion + 13.0 + + diff --git a/ios/Flutter/Debug.xcconfig b/ios/Flutter/Debug.xcconfig new file mode 100644 index 0000000..ec97fc6 --- /dev/null +++ b/ios/Flutter/Debug.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" +#include "Generated.xcconfig" diff --git a/ios/Flutter/Release.xcconfig b/ios/Flutter/Release.xcconfig new file mode 100644 index 0000000..c4855bf --- /dev/null +++ b/ios/Flutter/Release.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" +#include "Generated.xcconfig" diff --git a/ios/Podfile b/ios/Podfile new file mode 100644 index 0000000..3ac6ace --- /dev/null +++ b/ios/Podfile @@ -0,0 +1,44 @@ +# Uncomment this line to define a global platform for your project +platform :ios, '15.6' + +# CocoaPods analytics sends network stats synchronously affecting flutter build latency. +ENV['COCOAPODS_DISABLE_STATS'] = 'true' + +project 'Runner', { + 'Debug' => :debug, + 'Profile' => :release, + 'Release' => :release, +} + +def flutter_root + generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) + unless File.exist?(generated_xcode_build_settings_path) + raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" + end + + File.foreach(generated_xcode_build_settings_path) do |line| + matches = line.match(/FLUTTER_ROOT\=(.*)/) + return matches[1].strip if matches + end + raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" +end + +require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) + +flutter_ios_podfile_setup + +target 'Runner' do + use_frameworks! + + flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) + target 'RunnerTests' do + inherit! :search_paths + end +end + +post_install do |installer| + installer.pods_project.targets.each do |target| + flutter_additional_ios_build_settings(target) + end +end + diff --git a/ios/Podfile.lock b/ios/Podfile.lock new file mode 100644 index 0000000..43e6f2a --- /dev/null +++ b/ios/Podfile.lock @@ -0,0 +1,290 @@ +PODS: + - app_settings (5.1.1): + - Flutter + - clipboard (3.0.9): + - Flutter + - connectivity_plus (0.0.1): + - Flutter + - Firebase/Auth (12.8.0): + - Firebase/CoreOnly + - FirebaseAuth (~> 12.8.0) + - Firebase/CoreOnly (12.8.0): + - FirebaseCore (~> 12.8.0) + - Firebase/Crashlytics (12.8.0): + - Firebase/CoreOnly + - FirebaseCrashlytics (~> 12.8.0) + - Firebase/Messaging (12.8.0): + - Firebase/CoreOnly + - FirebaseMessaging (~> 12.8.0) + - Firebase/RemoteConfig (12.8.0): + - Firebase/CoreOnly + - FirebaseRemoteConfig (~> 12.8.0) + - firebase_auth (6.1.4): + - Firebase/Auth (= 12.8.0) + - firebase_core + - Flutter + - firebase_core (4.4.0): + - Firebase/CoreOnly (= 12.8.0) + - Flutter + - firebase_crashlytics (5.0.7): + - Firebase/Crashlytics (= 12.8.0) + - firebase_core + - Flutter + - firebase_messaging (16.1.1): + - Firebase/Messaging (= 12.8.0) + - firebase_core + - Flutter + - firebase_remote_config (6.1.4): + - Firebase/RemoteConfig (= 12.8.0) + - firebase_core + - Flutter + - FirebaseABTesting (12.8.0): + - FirebaseCore (~> 12.8.0) + - FirebaseAppCheckInterop (12.8.0) + - FirebaseAuth (12.8.0): + - FirebaseAppCheckInterop (~> 12.8.0) + - FirebaseAuthInterop (~> 12.8.0) + - FirebaseCore (~> 12.8.0) + - FirebaseCoreExtension (~> 12.8.0) + - GoogleUtilities/AppDelegateSwizzler (~> 8.1) + - GoogleUtilities/Environment (~> 8.1) + - GTMSessionFetcher/Core (< 6.0, >= 3.4) + - RecaptchaInterop (~> 101.0) + - FirebaseAuthInterop (12.8.0) + - FirebaseCore (12.8.0): + - FirebaseCoreInternal (~> 12.8.0) + - GoogleUtilities/Environment (~> 8.1) + - GoogleUtilities/Logger (~> 8.1) + - FirebaseCoreExtension (12.8.0): + - FirebaseCore (~> 12.8.0) + - FirebaseCoreInternal (12.8.0): + - "GoogleUtilities/NSData+zlib (~> 8.1)" + - FirebaseCrashlytics (12.8.0): + - FirebaseCore (~> 12.8.0) + - FirebaseInstallations (~> 12.8.0) + - FirebaseRemoteConfigInterop (~> 12.8.0) + - FirebaseSessions (~> 12.8.0) + - GoogleDataTransport (~> 10.1) + - GoogleUtilities/Environment (~> 8.1) + - nanopb (~> 3.30910.0) + - PromisesObjC (~> 2.4) + - FirebaseInstallations (12.8.0): + - FirebaseCore (~> 12.8.0) + - GoogleUtilities/Environment (~> 8.1) + - GoogleUtilities/UserDefaults (~> 8.1) + - PromisesObjC (~> 2.4) + - FirebaseMessaging (12.8.0): + - FirebaseCore (~> 12.8.0) + - FirebaseInstallations (~> 12.8.0) + - GoogleDataTransport (~> 10.1) + - GoogleUtilities/AppDelegateSwizzler (~> 8.1) + - GoogleUtilities/Environment (~> 8.1) + - GoogleUtilities/Reachability (~> 8.1) + - GoogleUtilities/UserDefaults (~> 8.1) + - nanopb (~> 3.30910.0) + - FirebaseRemoteConfig (12.8.0): + - FirebaseABTesting (~> 12.8.0) + - FirebaseCore (~> 12.8.0) + - FirebaseInstallations (~> 12.8.0) + - FirebaseRemoteConfigInterop (~> 12.8.0) + - FirebaseSharedSwift (~> 12.8.0) + - GoogleUtilities/Environment (~> 8.1) + - "GoogleUtilities/NSData+zlib (~> 8.1)" + - FirebaseRemoteConfigInterop (12.8.0) + - FirebaseSessions (12.8.0): + - FirebaseCore (~> 12.8.0) + - FirebaseCoreExtension (~> 12.8.0) + - FirebaseInstallations (~> 12.8.0) + - GoogleDataTransport (~> 10.1) + - GoogleUtilities/Environment (~> 8.1) + - GoogleUtilities/UserDefaults (~> 8.1) + - nanopb (~> 3.30910.0) + - PromisesSwift (~> 2.1) + - FirebaseSharedSwift (12.8.0) + - Flutter (1.0.0) + - flutter_local_notifications (0.0.1): + - Flutter + - flutter_native_splash (2.4.3): + - Flutter + - geolocator_apple (1.2.0): + - Flutter + - FlutterMacOS + - GoogleDataTransport (10.1.0): + - nanopb (~> 3.30910.0) + - PromisesObjC (~> 2.4) + - GoogleUtilities/AppDelegateSwizzler (8.1.0): + - GoogleUtilities/Environment + - GoogleUtilities/Logger + - GoogleUtilities/Network + - GoogleUtilities/Privacy + - GoogleUtilities/Environment (8.1.0): + - GoogleUtilities/Privacy + - GoogleUtilities/Logger (8.1.0): + - GoogleUtilities/Environment + - GoogleUtilities/Privacy + - GoogleUtilities/Network (8.1.0): + - GoogleUtilities/Logger + - "GoogleUtilities/NSData+zlib" + - GoogleUtilities/Privacy + - GoogleUtilities/Reachability + - "GoogleUtilities/NSData+zlib (8.1.0)": + - GoogleUtilities/Privacy + - GoogleUtilities/Privacy (8.1.0) + - GoogleUtilities/Reachability (8.1.0): + - GoogleUtilities/Logger + - GoogleUtilities/Privacy + - GoogleUtilities/UserDefaults (8.1.0): + - GoogleUtilities/Logger + - GoogleUtilities/Privacy + - GTMSessionFetcher/Core (5.0.0) + - image_picker_ios (0.0.1): + - Flutter + - nanopb (3.30910.0): + - nanopb/decode (= 3.30910.0) + - nanopb/encode (= 3.30910.0) + - nanopb/decode (3.30910.0) + - nanopb/encode (3.30910.0) + - package_info_plus (0.4.5): + - Flutter + - permission_handler_apple (9.3.0): + - Flutter + - PromisesObjC (2.4.0) + - PromisesSwift (2.4.0): + - PromisesObjC (= 2.4.0) + - RecaptchaInterop (101.0.0) + - share_plus (0.0.1): + - Flutter + - shared_preferences_foundation (0.0.1): + - Flutter + - FlutterMacOS + - url_launcher_ios (0.0.1): + - Flutter + +DEPENDENCIES: + - app_settings (from `.symlinks/plugins/app_settings/ios`) + - clipboard (from `.symlinks/plugins/clipboard/ios`) + - connectivity_plus (from `.symlinks/plugins/connectivity_plus/ios`) + - firebase_auth (from `.symlinks/plugins/firebase_auth/ios`) + - firebase_core (from `.symlinks/plugins/firebase_core/ios`) + - firebase_crashlytics (from `.symlinks/plugins/firebase_crashlytics/ios`) + - firebase_messaging (from `.symlinks/plugins/firebase_messaging/ios`) + - firebase_remote_config (from `.symlinks/plugins/firebase_remote_config/ios`) + - Flutter (from `Flutter`) + - flutter_local_notifications (from `.symlinks/plugins/flutter_local_notifications/ios`) + - flutter_native_splash (from `.symlinks/plugins/flutter_native_splash/ios`) + - geolocator_apple (from `.symlinks/plugins/geolocator_apple/darwin`) + - image_picker_ios (from `.symlinks/plugins/image_picker_ios/ios`) + - package_info_plus (from `.symlinks/plugins/package_info_plus/ios`) + - permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`) + - share_plus (from `.symlinks/plugins/share_plus/ios`) + - shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`) + - url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`) + +SPEC REPOS: + trunk: + - Firebase + - FirebaseABTesting + - FirebaseAppCheckInterop + - FirebaseAuth + - FirebaseAuthInterop + - FirebaseCore + - FirebaseCoreExtension + - FirebaseCoreInternal + - FirebaseCrashlytics + - FirebaseInstallations + - FirebaseMessaging + - FirebaseRemoteConfig + - FirebaseRemoteConfigInterop + - FirebaseSessions + - FirebaseSharedSwift + - GoogleDataTransport + - GoogleUtilities + - GTMSessionFetcher + - nanopb + - PromisesObjC + - PromisesSwift + - RecaptchaInterop + +EXTERNAL SOURCES: + app_settings: + :path: ".symlinks/plugins/app_settings/ios" + clipboard: + :path: ".symlinks/plugins/clipboard/ios" + connectivity_plus: + :path: ".symlinks/plugins/connectivity_plus/ios" + firebase_auth: + :path: ".symlinks/plugins/firebase_auth/ios" + firebase_core: + :path: ".symlinks/plugins/firebase_core/ios" + firebase_crashlytics: + :path: ".symlinks/plugins/firebase_crashlytics/ios" + firebase_messaging: + :path: ".symlinks/plugins/firebase_messaging/ios" + firebase_remote_config: + :path: ".symlinks/plugins/firebase_remote_config/ios" + Flutter: + :path: Flutter + flutter_local_notifications: + :path: ".symlinks/plugins/flutter_local_notifications/ios" + flutter_native_splash: + :path: ".symlinks/plugins/flutter_native_splash/ios" + geolocator_apple: + :path: ".symlinks/plugins/geolocator_apple/darwin" + image_picker_ios: + :path: ".symlinks/plugins/image_picker_ios/ios" + package_info_plus: + :path: ".symlinks/plugins/package_info_plus/ios" + permission_handler_apple: + :path: ".symlinks/plugins/permission_handler_apple/ios" + share_plus: + :path: ".symlinks/plugins/share_plus/ios" + shared_preferences_foundation: + :path: ".symlinks/plugins/shared_preferences_foundation/darwin" + url_launcher_ios: + :path: ".symlinks/plugins/url_launcher_ios/ios" + +SPEC CHECKSUMS: + app_settings: 5127ae0678de1dcc19f2293271c51d37c89428b2 + clipboard: 85f02e190f24debf05943aff98c26644b2a90245 + connectivity_plus: cb623214f4e1f6ef8fe7403d580fdad517d2f7dd + Firebase: 9a58fdbc9d8655ed7b79a19cf9690bb007d3d46d + firebase_auth: e9031a1dbe04a90d98e8d11ff2302352a1c6d9e8 + firebase_core: ee30637e6744af8e0c12a6a1e8a9718506ec2398 + firebase_crashlytics: 28b8f39df8104131376393e6af658b8b77dd120f + firebase_messaging: 343de01a8d3e18b60df0c6d37f7174c44ae38e02 + firebase_remote_config: 3a5639062e130c4d4b7c4bae347cc3bac90f5a1e + FirebaseABTesting: 31266c7845f9adde0f2e8a59267e9c82e4050898 + FirebaseAppCheckInterop: ba3dc604a89815379e61ec2365101608d365cf7d + FirebaseAuth: 4c289b1a43f5955283244a55cf6bd616de344be5 + FirebaseAuthInterop: 95363fe96493cb4f106656666a0768b420cba090 + FirebaseCore: 0dbad74bda10b8fb9ca34ad8f375fb9dd3ebef7c + FirebaseCoreExtension: 6605938d51f765d8b18bfcafd2085276a252bee2 + FirebaseCoreInternal: fe5fa466aeb314787093a7dce9f0beeaad5a2a21 + FirebaseCrashlytics: fb31c6907e5b52aa252668394d3f1ab326df1511 + FirebaseInstallations: 6a14ab3d694ebd9f839c48d330da5547e9ca9dc0 + FirebaseMessaging: 7f42cfd10ec64181db4e01b305a613791c8e782c + FirebaseRemoteConfig: e9e3909162a05bc0e796326255fd43250783a2a9 + FirebaseRemoteConfigInterop: 869ddca16614f979e5c931ece11fbb0b8729ed41 + FirebaseSessions: d614ca154c63dbbc6c10d6c38259c2162c4e7c9b + FirebaseSharedSwift: f57ed48f4542b2d7eb4738f4f23ba443f78b3780 + Flutter: cabc95a1d2626b1b06e7179b784ebcf0c0cde467 + flutter_local_notifications: a5a732f069baa862e728d839dd2ebb904737effb + flutter_native_splash: c32d145d68aeda5502d5f543ee38c192065986cf + geolocator_apple: ab36aa0e8b7d7a2d7639b3b4e48308394e8cef5e + GoogleDataTransport: aae35b7ea0c09004c3797d53c8c41f66f219d6a7 + GoogleUtilities: 00c88b9a86066ef77f0da2fab05f65d7768ed8e1 + GTMSessionFetcher: 02d6e866e90bc236f48a703a041dfe43e6221a29 + image_picker_ios: e0ece4aa2a75771a7de3fa735d26d90817041326 + nanopb: fad817b59e0457d11a5dfbde799381cd727c1275 + package_info_plus: af8e2ca6888548050f16fa2f1938db7b5a5df499 + permission_handler_apple: 4ed2196e43d0651e8ff7ca3483a069d469701f2d + PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47 + PromisesSwift: 9d77319bbe72ebf6d872900551f7eeba9bce2851 + RecaptchaInterop: 11e0b637842dfb48308d242afc3f448062325aba + share_plus: 50da8cb520a8f0f65671c6c6a99b3617ed10a58a + shared_preferences_foundation: 7036424c3d8ec98dfe75ff1667cb0cd531ec82bb + url_launcher_ios: 7a95fa5b60cc718a708b8f2966718e93db0cef1b + +PODFILE CHECKSUM: 388b7888ccc2970874a5186e749e5699355b6b6f + +COCOAPODS: 1.16.2 diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000..cd26cba --- /dev/null +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,1416 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 70; + objects = { + +/* Begin PBXBuildFile section */ + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; + 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; }; + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; + 4BE462F7F87D2E6CA9E68CBB /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4DCD6C4792E11CD74BBA8813 /* Pods_Runner.framework */; }; + 4F2FFD85DFCB35C228099A26 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DAFBC65BCE4F443A40AA8D6C /* Pods_RunnerTests.framework */; }; + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 97C146E61CF9000F007C117D /* Project object */; + proxyType = 1; + remoteGlobalIDString = 97C146ED1CF9000F007C117D; + remoteInfo = Runner; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 9705A1C41CF9048500538489 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 09CA3D849B12D2484DF12F81 /* Pods-Runner.profile-development.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile-development.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile-development.xcconfig"; sourceTree = ""; }; + 0A6751BD67C156595ECD6BAD /* Pods-RunnerTests.release-staging.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release-staging.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release-staging.xcconfig"; sourceTree = ""; }; + 13434C5619E3F221C4585C50 /* Pods-Runner.profile-staging.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile-staging.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile-staging.xcconfig"; sourceTree = ""; }; + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; + 22CD80CBFECDB761247E090E /* Pods-Runner.release-production.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release-production.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release-production.xcconfig"; sourceTree = ""; }; + 275B1B87C20AE83B7020E735 /* Pods-RunnerTests.release-production.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release-production.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release-production.xcconfig"; sourceTree = ""; }; + 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; + 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 37B0CCB1E768ED6CFDABF754 /* Pods-RunnerTests.debug-production.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug-production.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug-production.xcconfig"; sourceTree = ""; }; + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; + 46202A41D59F19DD073FADCF /* Pods-RunnerTests.profile-staging.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile-staging.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile-staging.xcconfig"; sourceTree = ""; }; + 4DCD6C4792E11CD74BBA8813 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 5CC3B7C3BE14A9D39348E4F0 /* Pods-RunnerTests.profile-production.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile-production.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile-production.xcconfig"; sourceTree = ""; }; + 6251042EBF06DD14FBF843A5 /* Pods-Runner.debug-production.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug-production.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug-production.xcconfig"; sourceTree = ""; }; + 68747645DB0F98E10EB69996 /* Pods-Runner.release-staging.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release-staging.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release-staging.xcconfig"; sourceTree = ""; }; + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; + 81C7F05141FD89CC86E152B7 /* Pods-RunnerTests.release-development.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release-development.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release-development.xcconfig"; sourceTree = ""; }; + 89E795743CF49EB21BC1B30D /* Pods-Runner.debug-development.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug-development.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug-development.xcconfig"; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; + 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; + 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + A4652A576820C374E83E9087 /* Pods-RunnerTests.debug-development.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug-development.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug-development.xcconfig"; sourceTree = ""; }; + AC554CF3DFCE4706EA8B126F /* Pods-Runner.profile-production.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile-production.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile-production.xcconfig"; sourceTree = ""; }; + C15AF4D96C7E4C77459C5B30 /* Pods-RunnerTests.profile-development.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile-development.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile-development.xcconfig"; sourceTree = ""; }; + D426F1C9D2D0D00E2ADE7E86 /* Pods-RunnerTests.debug-staging.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug-staging.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug-staging.xcconfig"; sourceTree = ""; }; + D4F84619C52DB907BD3BFA1B /* Pods-Runner.release-development.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release-development.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release-development.xcconfig"; sourceTree = ""; }; + DAFBC65BCE4F443A40AA8D6C /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + DBCD6B7E2F96298A002F2DB3 /* Runner.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Runner.entitlements; sourceTree = ""; }; + DFC9DEB30E52B72A94125BD6 /* Pods-Runner.debug-staging.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug-staging.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug-staging.xcconfig"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */ + DB3ED7112F3C735200E60FA9 /* PBXFileSystemSynchronizedBuildFileExceptionSet */ = { + isa = PBXFileSystemSynchronizedBuildFileExceptionSet; + membershipExceptions = ( + "development/GoogleService-Info.plist", + "production/GoogleService-Info.plist", + ); + target = 97C146ED1CF9000F007C117D /* Runner */; + }; +/* End PBXFileSystemSynchronizedBuildFileExceptionSet section */ + +/* Begin PBXFileSystemSynchronizedRootGroup section */ + DB7FE8852F3C7009008F6893 /* flavors */ = {isa = PBXFileSystemSynchronizedRootGroup; exceptions = (DB3ED7112F3C735200E60FA9 /* PBXFileSystemSynchronizedBuildFileExceptionSet */, ); explicitFileTypes = {}; explicitFolders = (); path = flavors; sourceTree = ""; }; +/* End PBXFileSystemSynchronizedRootGroup section */ + +/* Begin PBXFrameworksBuildPhase section */ + 97C146EB1CF9000F007C117D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 4BE462F7F87D2E6CA9E68CBB /* Pods_Runner.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + F3139866F163DA458CEC0CE0 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 4F2FFD85DFCB35C228099A26 /* Pods_RunnerTests.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 331C8082294A63A400263BE5 /* RunnerTests */ = { + isa = PBXGroup; + children = ( + 331C807B294A618700263BE5 /* RunnerTests.swift */, + ); + path = RunnerTests; + sourceTree = ""; + }; + 4B16D873AA745A1AC9FE3E35 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 4DCD6C4792E11CD74BBA8813 /* Pods_Runner.framework */, + DAFBC65BCE4F443A40AA8D6C /* Pods_RunnerTests.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 9740EEB11CF90186004384FC /* Flutter */ = { + isa = PBXGroup; + children = ( + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 9740EEB31CF90195004384FC /* Generated.xcconfig */, + ); + name = Flutter; + sourceTree = ""; + }; + 97C146E51CF9000F007C117D = { + isa = PBXGroup; + children = ( + 9740EEB11CF90186004384FC /* Flutter */, + 97C146F01CF9000F007C117D /* Runner */, + 97C146EF1CF9000F007C117D /* Products */, + 331C8082294A63A400263BE5 /* RunnerTests */, + DAC2B11D6060DD94DC903CC0 /* Pods */, + 4B16D873AA745A1AC9FE3E35 /* Frameworks */, + ); + sourceTree = ""; + }; + 97C146EF1CF9000F007C117D /* Products */ = { + isa = PBXGroup; + children = ( + 97C146EE1CF9000F007C117D /* Runner.app */, + 331C8081294A63A400263BE5 /* RunnerTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 97C146F01CF9000F007C117D /* Runner */ = { + isa = PBXGroup; + children = ( + DBCD6B7E2F96298A002F2DB3 /* Runner.entitlements */, + DB7FE8852F3C7009008F6893 /* flavors */, + 97C146FA1CF9000F007C117D /* Main.storyboard */, + 97C146FD1CF9000F007C117D /* Assets.xcassets */, + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, + 97C147021CF9000F007C117D /* Info.plist */, + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, + ); + path = Runner; + sourceTree = ""; + }; + DAC2B11D6060DD94DC903CC0 /* Pods */ = { + isa = PBXGroup; + children = ( + 6251042EBF06DD14FBF843A5 /* Pods-Runner.debug-production.xcconfig */, + DFC9DEB30E52B72A94125BD6 /* Pods-Runner.debug-staging.xcconfig */, + 89E795743CF49EB21BC1B30D /* Pods-Runner.debug-development.xcconfig */, + 22CD80CBFECDB761247E090E /* Pods-Runner.release-production.xcconfig */, + 68747645DB0F98E10EB69996 /* Pods-Runner.release-staging.xcconfig */, + D4F84619C52DB907BD3BFA1B /* Pods-Runner.release-development.xcconfig */, + AC554CF3DFCE4706EA8B126F /* Pods-Runner.profile-production.xcconfig */, + 13434C5619E3F221C4585C50 /* Pods-Runner.profile-staging.xcconfig */, + 09CA3D849B12D2484DF12F81 /* Pods-Runner.profile-development.xcconfig */, + 37B0CCB1E768ED6CFDABF754 /* Pods-RunnerTests.debug-production.xcconfig */, + D426F1C9D2D0D00E2ADE7E86 /* Pods-RunnerTests.debug-staging.xcconfig */, + A4652A576820C374E83E9087 /* Pods-RunnerTests.debug-development.xcconfig */, + 275B1B87C20AE83B7020E735 /* Pods-RunnerTests.release-production.xcconfig */, + 0A6751BD67C156595ECD6BAD /* Pods-RunnerTests.release-staging.xcconfig */, + 81C7F05141FD89CC86E152B7 /* Pods-RunnerTests.release-development.xcconfig */, + 5CC3B7C3BE14A9D39348E4F0 /* Pods-RunnerTests.profile-production.xcconfig */, + 46202A41D59F19DD073FADCF /* Pods-RunnerTests.profile-staging.xcconfig */, + C15AF4D96C7E4C77459C5B30 /* Pods-RunnerTests.profile-development.xcconfig */, + ); + path = Pods; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 331C8080294A63A400263BE5 /* RunnerTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; + buildPhases = ( + F1ED23FA8DE2B845E1BC1FDF /* [CP] Check Pods Manifest.lock */, + 331C807D294A63A400263BE5 /* Sources */, + 331C807F294A63A400263BE5 /* Resources */, + F3139866F163DA458CEC0CE0 /* Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + 331C8086294A63A400263BE5 /* PBXTargetDependency */, + ); + name = RunnerTests; + productName = RunnerTests; + productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 97C146ED1CF9000F007C117D /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + A832CB7161D18DEAF3361761 /* [CP] Check Pods Manifest.lock */, + 9740EEB61CF901F6004384FC /* Run Script */, + 97C146EA1CF9000F007C117D /* Sources */, + 97C146EB1CF9000F007C117D /* Frameworks */, + 97C146EC1CF9000F007C117D /* Resources */, + 9705A1C41CF9048500538489 /* Embed Frameworks */, + 3B06AD1E1E4923F5004D2608 /* Thin Binary */, + 2FFEFB02202F333C6D8DE770 /* [CP] Embed Pods Frameworks */, + 267C6215F6B7C8047A27FBA6 /* [CP] Copy Pods Resources */, + DB7FE88C2F3C708A008F6893 /* Copy GoogleService-info.plist */, + ); + buildRules = ( + ); + dependencies = ( + ); + fileSystemSynchronizedGroups = ( + DB7FE8852F3C7009008F6893 /* flavors */, + ); + name = Runner; + productName = Runner; + productReference = 97C146EE1CF9000F007C117D /* Runner.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 97C146E61CF9000F007C117D /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = NO; + LastUpgradeCheck = 1510; + ORGANIZATIONNAME = ""; + TargetAttributes = { + 331C8080294A63A400263BE5 = { + CreatedOnToolsVersion = 14.0; + TestTargetID = 97C146ED1CF9000F007C117D; + }; + 97C146ED1CF9000F007C117D = { + CreatedOnToolsVersion = 7.3.1; + LastSwiftMigration = 1100; + }; + }; + }; + buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 97C146E51CF9000F007C117D; + productRefGroup = 97C146EF1CF9000F007C117D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 97C146ED1CF9000F007C117D /* Runner */, + 331C8080294A63A400263BE5 /* RunnerTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 331C807F294A63A400263BE5 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 97C146EC1CF9000F007C117D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 267C6215F6B7C8047A27FBA6 /* [CP] Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist", + ); + inputPaths = ( + ); + name = "[CP] Copy Pods Resources"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist", + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; + 2FFEFB02202F333C6D8DE770 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + inputPaths = ( + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", + ); + name = "Thin Binary"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; + }; + 9740EEB61CF901F6004384FC /* Run Script */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Run Script"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; + }; + A832CB7161D18DEAF3361761 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + DB7FE88C2F3C708A008F6893 /* Copy GoogleService-info.plist */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + name = "Copy GoogleService-info.plist"; + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "environment=\"default\"\n\nif [[ $CONFIGURATION =~ -([^-]*)$ ]]; then\n environment=${BASH_REMATCH[1]}\nfi\n\necho \"Environment: $environment\"\n\nGOOGLESERVICE_INFO_PLIST=GoogleService-Info.plist\nGOOGLESERVICE_INFO_FILE=${PROJECT_DIR}/Runner/flavors/${environment}/${GOOGLESERVICE_INFO_PLIST}\n\necho \"Looking for ${GOOGLESERVICE_INFO_PLIST} in ${GOOGLESERVICE_INFO_FILE}\"\n\nif [ ! -f \"$GOOGLESERVICE_INFO_FILE\" ]; then\n echo \"No GoogleService-Info.plist found. Please ensure it's in the proper directory.\"\n exit 1\nfi\n\nPLIST_DESTINATION=${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app\necho \"Will copy ${GOOGLESERVICE_INFO_PLIST} to final destination: ${PLIST_DESTINATION}\"\n\ncp \"$GOOGLESERVICE_INFO_FILE\" \"$PLIST_DESTINATION\"\n"; + }; + F1ED23FA8DE2B845E1BC1FDF /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 331C807D294A63A400263BE5 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 97C146EA1CF9000F007C117D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 331C8086294A63A400263BE5 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 97C146ED1CF9000F007C117D /* Runner */; + targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 97C146FA1CF9000F007C117D /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C146FB1CF9000F007C117D /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C147001CF9000F007C117D /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 3C9C55192B07AC99000E5FCD /* Debug-production */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = "Debug-production"; + }; + 3C9C551A2B07AC99000E5FCD /* Debug-production */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = M792JKW277; + ENABLE_BITCODE = NO; + FLAVOR_APP_NAME = "ECCP"; + INFOPLIST_FILE = Runner/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 15.6; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PACKAGE_CONFIG = .dart_tool/package_config.json; + PRODUCT_BUNDLE_IDENTIFIER = "com.adhivasindo.eccp"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = "Debug-production"; + }; + 3C9C551B2B07AC99000E5FCD /* Debug-production */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 37B0CCB1E768ED6CFDABF754 /* Pods-RunnerTests.debug-production.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = "com.adhivasindo.eccp.RunnerTests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; + }; + name = "Debug-production"; + }; + 3C9C551C2B07ACA4000E5FCD /* Release-production */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = "Release-production"; + }; + 3C9C551D2B07ACA4000E5FCD /* Release-production */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = M792JKW277; + ENABLE_BITCODE = NO; + FLAVOR_APP_NAME = "ECCP"; + INFOPLIST_FILE = Runner/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 15.6; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PACKAGE_CONFIG = .dart_tool/package_config.json; + PRODUCT_BUNDLE_IDENTIFIER = "com.adhivasindo.eccp"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = "Release-production"; + }; + 3C9C551E2B07ACA4000E5FCD /* Release-production */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 275B1B87C20AE83B7020E735 /* Pods-RunnerTests.release-production.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = "com.adhivasindo.eccp.RunnerTests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; + }; + name = "Release-production"; + }; + 3C9C55222B07ACBD000E5FCD /* Profile-production */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = "Profile-production"; + }; + 3C9C55232B07ACBD000E5FCD /* Profile-production */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = M792JKW277; + ENABLE_BITCODE = NO; + FLAVOR_APP_NAME = "ECCP"; + INFOPLIST_FILE = Runner/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 15.6; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PACKAGE_CONFIG = .dart_tool/package_config.json; + PRODUCT_BUNDLE_IDENTIFIER = "com.adhivasindo.eccp"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = "Profile-production"; + }; + 3C9C55242B07ACBD000E5FCD /* Profile-production */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 5CC3B7C3BE14A9D39348E4F0 /* Pods-RunnerTests.profile-production.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = "com.adhivasindo.eccp"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; + }; + name = "Profile-production"; + }; + 3C9C55252B07ACE7000E5FCD /* Debug-development */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = "Debug-development"; + }; + 3C9C55262B07ACE7000E5FCD /* Debug-development */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-dev"; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = 23MK6Q756N; + ENABLE_BITCODE = NO; + FLAVOR_APP_NAME = "[DEV] ECCP"; + INFOPLIST_FILE = Runner/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 15.6; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PACKAGE_CONFIG = .dart_tool/package_config.json; + PRODUCT_BUNDLE_IDENTIFIER = "com.adhivasindo.eccp.dev"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = "Debug-development"; + }; + 3C9C55272B07ACE7000E5FCD /* Debug-development */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = A4652A576820C374E83E9087 /* Pods-RunnerTests.debug-development.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = "com.adhivasindo.eccp.RunnerTests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; + }; + name = "Debug-development"; + }; + 3C9C552B2B07AD09000E5FCD /* Profile-development */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = "Profile-development"; + }; + 3C9C552C2B07AD09000E5FCD /* Profile-development */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-dev"; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = 23MK6Q756N; + ENABLE_BITCODE = NO; + FLAVOR_APP_NAME = "[DEV] ECCP"; + INFOPLIST_FILE = Runner/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 15.6; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PACKAGE_CONFIG = .dart_tool/package_config.json; + PRODUCT_BUNDLE_IDENTIFIER = "com.adhivasindo.eccp.dev"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = "Profile-development"; + }; + 3C9C552D2B07AD09000E5FCD /* Profile-development */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = C15AF4D96C7E4C77459C5B30 /* Pods-RunnerTests.profile-development.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = "com.adhivasindo.eccp.RunnerTests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; + }; + name = "Profile-development"; + }; + 3C9C552E2B07AD1B000E5FCD /* Release-development */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = "Release-development"; + }; + 3C9C552F2B07AD1B000E5FCD /* Release-development */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-dev"; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = 23MK6Q756N; + ENABLE_BITCODE = NO; + FLAVOR_APP_NAME = "[DEV] ECCP"; + INFOPLIST_FILE = Runner/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 15.6; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PACKAGE_CONFIG = .dart_tool/package_config.json; + PRODUCT_BUNDLE_IDENTIFIER = "com.adhivasindo.eccp.dev"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = "Release-development"; + }; + 3C9C55302B07AD1B000E5FCD /* Release-development */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 81C7F05141FD89CC86E152B7 /* Pods-RunnerTests.release-development.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = "com.adhivasindo.eccp.RunnerTests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; + }; + name = "Release-development"; + }; + 3C9C55312B07AD26000E5FCD /* Debug-staging */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = "Debug-staging"; + }; + 3C9C55322B07AD26000E5FCD /* Debug-staging */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-stg"; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = M792JKW277; + ENABLE_BITCODE = NO; + FLAVOR_APP_NAME = "[STG] ECCP"; + INFOPLIST_FILE = Runner/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 15.6; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PACKAGE_CONFIG = .dart_tool/package_config.json; + PRODUCT_BUNDLE_IDENTIFIER = "com.adhivasindo.eccp.stg"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = "Debug-staging"; + }; + 3C9C55332B07AD26000E5FCD /* Debug-staging */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = D426F1C9D2D0D00E2ADE7E86 /* Pods-RunnerTests.debug-staging.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = "com.adhivasindo.eccp.RunnerTests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; + }; + name = "Debug-staging"; + }; + 3C9C55342B07AD41000E5FCD /* Release-staging */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = "Release-staging"; + }; + 3C9C55352B07AD41000E5FCD /* Release-staging */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-stg"; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = M792JKW277; + ENABLE_BITCODE = NO; + FLAVOR_APP_NAME = "[STG] ECCP"; + INFOPLIST_FILE = Runner/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 15.6; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PACKAGE_CONFIG = .dart_tool/package_config.json; + PRODUCT_BUNDLE_IDENTIFIER = "com.adhivasindo.eccp.stg"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = "Release-staging"; + }; + 3C9C55362B07AD41000E5FCD /* Release-staging */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 0A6751BD67C156595ECD6BAD /* Pods-RunnerTests.release-staging.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = "com.adhivasindo.eccp.RunnerTests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; + }; + name = "Release-staging"; + }; + 3C9C55372B07AD4B000E5FCD /* Profile-staging */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = "Profile-staging"; + }; + 3C9C55382B07AD4B000E5FCD /* Profile-staging */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-stg"; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = M792JKW277; + ENABLE_BITCODE = NO; + FLAVOR_APP_NAME = "[STG] ECCP"; + INFOPLIST_FILE = Runner/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 15.6; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PACKAGE_CONFIG = .dart_tool/package_config.json; + PRODUCT_BUNDLE_IDENTIFIER = "com.adhivasindo.eccp.stg"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = "Profile-staging"; + }; + 3C9C55392B07AD4B000E5FCD /* Profile-staging */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 46202A41D59F19DD073FADCF /* Pods-RunnerTests.profile-staging.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = "com.adhivasindo.eccp.RunnerTests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; + }; + name = "Profile-staging"; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3C9C551B2B07AC99000E5FCD /* Debug-production */, + 3C9C55332B07AD26000E5FCD /* Debug-staging */, + 3C9C55272B07ACE7000E5FCD /* Debug-development */, + 3C9C551E2B07ACA4000E5FCD /* Release-production */, + 3C9C55362B07AD41000E5FCD /* Release-staging */, + 3C9C55302B07AD1B000E5FCD /* Release-development */, + 3C9C55242B07ACBD000E5FCD /* Profile-production */, + 3C9C55392B07AD4B000E5FCD /* Profile-staging */, + 3C9C552D2B07AD09000E5FCD /* Profile-development */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = "Release-production"; + }; + 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3C9C55192B07AC99000E5FCD /* Debug-production */, + 3C9C55312B07AD26000E5FCD /* Debug-staging */, + 3C9C55252B07ACE7000E5FCD /* Debug-development */, + 3C9C551C2B07ACA4000E5FCD /* Release-production */, + 3C9C55342B07AD41000E5FCD /* Release-staging */, + 3C9C552E2B07AD1B000E5FCD /* Release-development */, + 3C9C55222B07ACBD000E5FCD /* Profile-production */, + 3C9C55372B07AD4B000E5FCD /* Profile-staging */, + 3C9C552B2B07AD09000E5FCD /* Profile-development */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = "Release-production"; + }; + 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3C9C551A2B07AC99000E5FCD /* Debug-production */, + 3C9C55322B07AD26000E5FCD /* Debug-staging */, + 3C9C55262B07ACE7000E5FCD /* Debug-development */, + 3C9C551D2B07ACA4000E5FCD /* Release-production */, + 3C9C55352B07AD41000E5FCD /* Release-staging */, + 3C9C552F2B07AD1B000E5FCD /* Release-development */, + 3C9C55232B07ACBD000E5FCD /* Profile-production */, + 3C9C55382B07AD4B000E5FCD /* Profile-staging */, + 3C9C552C2B07AD09000E5FCD /* Profile-development */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = "Release-production"; + }; +/* End XCConfigurationList section */ + }; + rootObject = 97C146E61CF9000F007C117D /* Project object */; +} diff --git a/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000..f9b0d7c --- /dev/null +++ b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 0000000..15cada4 --- /dev/null +++ b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/Runner.xcodeproj/xcshareddata/xcschemes/development.xcscheme b/ios/Runner.xcodeproj/xcshareddata/xcschemes/development.xcscheme new file mode 100644 index 0000000..112bbe9 --- /dev/null +++ b/ios/Runner.xcodeproj/xcshareddata/xcschemes/development.xcscheme @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/Runner.xcodeproj/xcshareddata/xcschemes/production.xcscheme b/ios/Runner.xcodeproj/xcshareddata/xcschemes/production.xcscheme new file mode 100644 index 0000000..b59fb06 --- /dev/null +++ b/ios/Runner.xcodeproj/xcshareddata/xcschemes/production.xcscheme @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/Runner.xcodeproj/xcshareddata/xcschemes/staging.xcscheme b/ios/Runner.xcodeproj/xcshareddata/xcschemes/staging.xcscheme new file mode 100644 index 0000000..6e3b252 --- /dev/null +++ b/ios/Runner.xcodeproj/xcshareddata/xcschemes/staging.xcscheme @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/Runner.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..21a3cc1 --- /dev/null +++ b/ios/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000..f9b0d7c --- /dev/null +++ b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift new file mode 100644 index 0000000..a843766 --- /dev/null +++ b/ios/Runner/AppDelegate.swift @@ -0,0 +1,16 @@ +import UIKit +import Flutter + +@main +@objc class AppDelegate: FlutterAppDelegate { + + override func application( + _ application: UIApplication, + didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? + ) -> Bool { + + GeneratedPluginRegistrant.register(with: self) + + return super.application(application, didFinishLaunchingWithOptions: launchOptions) + } +} diff --git a/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/1024.png b/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/1024.png new file mode 100644 index 0000000..bffc902 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/1024.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/128.png b/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/128.png new file mode 100644 index 0000000..fdff481 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/128.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/16.png b/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/16.png new file mode 100644 index 0000000..a5ae5f6 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/16.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/256.png b/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/256.png new file mode 100644 index 0000000..19a53f2 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/256.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/32.png b/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/32.png new file mode 100644 index 0000000..754605c Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/32.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/512.png b/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/512.png new file mode 100644 index 0000000..b0a9511 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/512.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/64.png b/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/64.png new file mode 100644 index 0000000..12f6f8b Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/64.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/Contents.json b/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/Contents.json new file mode 100644 index 0000000..a9e3e48 --- /dev/null +++ b/ios/Runner/Assets.xcassets/AppIcon-dev.appiconset/Contents.json @@ -0,0 +1,80 @@ +{ + "images": [ + { + "filename": "1024.png", + "idiom": "universal", + "platform": "ios", + "size": "1024x1024" + }, + { + "filename": "16.png", + "idiom": "mac", + "scale": "1x", + "size": "16x16" + }, + { + "filename": "32.png", + "idiom": "mac", + "scale": "2x", + "size": "16x16" + }, + { + "filename": "32.png", + "idiom": "mac", + "scale": "1x", + "size": "32x32" + }, + { + "filename": "64.png", + "idiom": "mac", + "scale": "2x", + "size": "32x32" + }, + { + "filename": "128.png", + "idiom": "mac", + "scale": "1x", + "size": "128x128" + }, + { + "filename": "256.png", + "idiom": "mac", + "scale": "2x", + "size": "128x128" + }, + { + "filename": "256.png", + "idiom": "mac", + "scale": "1x", + "size": "256x256" + }, + { + "filename": "512.png", + "idiom": "mac", + "scale": "2x", + "size": "256x256" + }, + { + "filename": "512.png", + "idiom": "mac", + "scale": "1x", + "size": "512x512" + }, + { + "filename": "1024.png", + "idiom": "mac", + "scale": "2x", + "size": "512x512" + }, + { + "filename": "1024.png", + "idiom": "universal", + "platform": "watchos", + "size": "1024x1024" + } + ], + "info": { + "author": "xcode", + "version": 1 + } +} diff --git a/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/1024.png b/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/1024.png new file mode 100644 index 0000000..7cc3037 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/1024.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/128.png b/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/128.png new file mode 100644 index 0000000..9c5cec1 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/128.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/16.png b/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/16.png new file mode 100644 index 0000000..a242499 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/16.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/256.png b/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/256.png new file mode 100644 index 0000000..bcc9dfc Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/256.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/32.png b/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/32.png new file mode 100644 index 0000000..985b0a5 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/32.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/512.png b/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/512.png new file mode 100644 index 0000000..5a802b0 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/512.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/64.png b/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/64.png new file mode 100644 index 0000000..e5d70cb Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/64.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/Contents.json b/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/Contents.json new file mode 100644 index 0000000..1a70ece --- /dev/null +++ b/ios/Runner/Assets.xcassets/AppIcon-stg.appiconset/Contents.json @@ -0,0 +1,80 @@ +{ + "images" : [ + { + "filename" : "1024.png", + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + }, + { + "filename" : "16.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "16x16" + }, + { + "filename" : "32.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "16x16" + }, + { + "filename" : "32.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "32x32" + }, + { + "filename" : "64.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "32x32" + }, + { + "filename" : "128.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "128x128" + }, + { + "filename" : "256.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "128x128" + }, + { + "filename" : "256.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "256x256" + }, + { + "filename" : "512.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "256x256" + }, + { + "filename" : "512.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "512x512" + }, + { + "filename" : "1024.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "512x512" + }, + { + "filename" : "1024.png", + "idiom" : "universal", + "platform" : "watchos", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/1024.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/1024.png new file mode 100644 index 0000000..329800c Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/1024.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/128.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/128.png new file mode 100644 index 0000000..a73d99a Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/128.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/16.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/16.png new file mode 100644 index 0000000..b285172 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/16.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/256.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/256.png new file mode 100644 index 0000000..0241f07 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/256.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/32.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/32.png new file mode 100644 index 0000000..a055b86 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/32.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/512.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/512.png new file mode 100644 index 0000000..2ceb975 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/512.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/64.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/64.png new file mode 100644 index 0000000..ed8d678 Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/64.png differ diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..a9e3e48 --- /dev/null +++ b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,80 @@ +{ + "images": [ + { + "filename": "1024.png", + "idiom": "universal", + "platform": "ios", + "size": "1024x1024" + }, + { + "filename": "16.png", + "idiom": "mac", + "scale": "1x", + "size": "16x16" + }, + { + "filename": "32.png", + "idiom": "mac", + "scale": "2x", + "size": "16x16" + }, + { + "filename": "32.png", + "idiom": "mac", + "scale": "1x", + "size": "32x32" + }, + { + "filename": "64.png", + "idiom": "mac", + "scale": "2x", + "size": "32x32" + }, + { + "filename": "128.png", + "idiom": "mac", + "scale": "1x", + "size": "128x128" + }, + { + "filename": "256.png", + "idiom": "mac", + "scale": "2x", + "size": "128x128" + }, + { + "filename": "256.png", + "idiom": "mac", + "scale": "1x", + "size": "256x256" + }, + { + "filename": "512.png", + "idiom": "mac", + "scale": "2x", + "size": "256x256" + }, + { + "filename": "512.png", + "idiom": "mac", + "scale": "1x", + "size": "512x512" + }, + { + "filename": "1024.png", + "idiom": "mac", + "scale": "2x", + "size": "512x512" + }, + { + "filename": "1024.png", + "idiom": "universal", + "platform": "watchos", + "size": "1024x1024" + } + ], + "info": { + "author": "xcode", + "version": 1 + } +} diff --git a/ios/Runner/Assets.xcassets/Contents.json b/ios/Runner/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/ios/Runner/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/ios/Runner/Assets.xcassets/LaunchBackground.imageset/Contents.json b/ios/Runner/Assets.xcassets/LaunchBackground.imageset/Contents.json new file mode 100644 index 0000000..9f447e1 --- /dev/null +++ b/ios/Runner/Assets.xcassets/LaunchBackground.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "background.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png b/ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png new file mode 100644 index 0000000..6dc6cd6 Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png differ diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json new file mode 100644 index 0000000..00cabce --- /dev/null +++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "LaunchImage.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "LaunchImage@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "LaunchImage@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png new file mode 100644 index 0000000..feef629 Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@1x.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@1x.png new file mode 100644 index 0000000..cea4825 Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@1x.png differ diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png new file mode 100644 index 0000000..e2ecee4 Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png new file mode 100644 index 0000000..e982bef Binary files /dev/null and b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md new file mode 100644 index 0000000..89c2725 --- /dev/null +++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md @@ -0,0 +1,5 @@ +# Launch Screen Assets + +You can customize the launch screen with your own desired assets by replacing the image files in this directory. + +You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. \ No newline at end of file diff --git a/ios/Runner/Base.lproj/LaunchScreen.storyboard b/ios/Runner/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..c39ad45 --- /dev/null +++ b/ios/Runner/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/Runner/Base.lproj/Main.storyboard b/ios/Runner/Base.lproj/Main.storyboard new file mode 100644 index 0000000..7e9a2e4 --- /dev/null +++ b/ios/Runner/Base.lproj/Main.storyboard @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist new file mode 100644 index 0000000..01145ab --- /dev/null +++ b/ios/Runner/Info.plist @@ -0,0 +1,89 @@ + + + + + CFBundleLocalizations + + en + es + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + $(FLAVOR_APP_NAME) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(FLAVOR_APP_NAME) + MinimumOSVersion + 15.6 + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleSignature + ???? + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UIBackgroundModes + + remote-notification + fetch + + NSUserNotificationAlertUsageDescription + We use notifications to inform you about updates and activity. + NSUserNotificationUsageDescription + Aplikasi ini butuh izin untuk menampilkan notifikasi debug (Chucker). + NSAppleIDUsageDescription + Aplikasi ini menggunakan Sign in with Apple untuk autentikasi. + LSSupportsOpeningDocumentsInPlace + + NSCameraUsageDescription + Aplikasi memerlukan akses kamera untuk mengambil foto profil atau mengunggah dokumen. Tanpa izin ini Anda masih bisa memilih foto dari galeri. + NSDocumentsDirectoryUsageDescription + App membutuhkan izin untuk menyimpan file ke dokumen. + NSLocationAlwaysAndWhenInUseUsageDescription + Lokasi di latar belakang diperlukan untuk menjaga akurasi arah kiblat dan memperbarui masjid terdekat saat Anda beralih aplikasi. Data lokasi tidak digunakan untuk pelacakan. + NSLocationAlwaysUsageDescription + Lokasi di latar belakang diperlukan untuk fungsi di atas agar tetap berjalan meski aplikasi tidak terbuka. + NSLocationWhenInUseUsageDescription + Lokasi digunakan untuk menampilkan arah kiblat, masjid terdekat, dan menghitung waktu salat sesuai posisi Anda. Data lokasi tidak digunakan untuk pelacakan. + NSMicrophoneUsageDescription + Mikrofon dipakai saat Anda merekam audio atau video di dalam aplikasi dan tidak digunakan di latar belakang. + NSPhotoLibraryAddUsageDescription + Izin Foto diperlukan agar Anda dapat memilih gambar dari galeri (misalnya foto profil). + NSPhotoLibraryUsageDescription + We require access to your photo library so you can choose a profile picture. The selected image will be displayed on your account profile. + UIViewControllerBasedStatusBarAppearance + + CADisableMinimumFrameDurationOnPhone + + UIApplicationSupportsIndirectInputEvents + + UIStatusBarHidden + + + diff --git a/ios/Runner/Runner-Bridging-Header.h b/ios/Runner/Runner-Bridging-Header.h new file mode 100644 index 0000000..308a2a5 --- /dev/null +++ b/ios/Runner/Runner-Bridging-Header.h @@ -0,0 +1 @@ +#import "GeneratedPluginRegistrant.h" diff --git a/ios/Runner/Runner.entitlements b/ios/Runner/Runner.entitlements new file mode 100644 index 0000000..903def2 --- /dev/null +++ b/ios/Runner/Runner.entitlements @@ -0,0 +1,8 @@ + + + + + aps-environment + development + + diff --git a/ios/Runner/flavors/development/GoogleService-Info.plist b/ios/Runner/flavors/development/GoogleService-Info.plist new file mode 100644 index 0000000..905fa16 --- /dev/null +++ b/ios/Runner/flavors/development/GoogleService-Info.plist @@ -0,0 +1,30 @@ + + + + + API_KEY + AIzaSyAPIQdcW777zdEqE9Wlra67Oxw2NjZp7_o + GCM_SENDER_ID + 256601227152 + PLIST_VERSION + 1 + BUNDLE_ID + com.adhivasindo.eccp.dev + PROJECT_ID + eccp-polri + STORAGE_BUCKET + eccp-polri.firebasestorage.app + IS_ADS_ENABLED + + IS_ANALYTICS_ENABLED + + IS_APPINVITE_ENABLED + + IS_GCM_ENABLED + + IS_SIGNIN_ENABLED + + GOOGLE_APP_ID + 1:256601227152:ios:03eadb340deefbce7a3d15 + + \ No newline at end of file diff --git a/ios/Runner/flavors/production/GoogleService-Info.plist b/ios/Runner/flavors/production/GoogleService-Info.plist new file mode 100644 index 0000000..54e0653 --- /dev/null +++ b/ios/Runner/flavors/production/GoogleService-Info.plist @@ -0,0 +1,30 @@ + + + + + API_KEY + AIzaSyAPIQdcW777zdEqE9Wlra67Oxw2NjZp7_o + GCM_SENDER_ID + 256601227152 + PLIST_VERSION + 1 + BUNDLE_ID + com.adhivasindo.eccp + PROJECT_ID + eccp-polri + STORAGE_BUCKET + eccp-polri.firebasestorage.app + IS_ADS_ENABLED + + IS_ANALYTICS_ENABLED + + IS_APPINVITE_ENABLED + + IS_GCM_ENABLED + + IS_SIGNIN_ENABLED + + GOOGLE_APP_ID + 1:256601227152:ios:9de828903b3545327a3d15 + + \ No newline at end of file diff --git a/ios/RunnerTests/RunnerTests.swift b/ios/RunnerTests/RunnerTests.swift new file mode 100644 index 0000000..86a7c3b --- /dev/null +++ b/ios/RunnerTests/RunnerTests.swift @@ -0,0 +1,12 @@ +import Flutter +import UIKit +import XCTest + +class RunnerTests: XCTestCase { + + func testExample() { + // If you add code to the Runner application, consider adding tests here. + // See https://developer.apple.com/documentation/xctest for more information about using XCTest. + } + +} diff --git a/l10n.yaml b/l10n.yaml new file mode 100644 index 0000000..9d7061e --- /dev/null +++ b/l10n.yaml @@ -0,0 +1,9 @@ +arb-dir: lib/l10n/arb +template-arb-file: app_en.arb +output-localization-file: app_localizations.dart +output-dir: lib/l10n/gen +nullable-getter: false + +# Needed to ensure the formatter does not run on the generated files. +# See https://github.com/dart-lang/dart_style/issues/864 for more information +header: "// dart format off\n// coverage:ignore-file" \ No newline at end of file diff --git a/lib/app/app.dart b/lib/app/app.dart new file mode 100644 index 0000000..f23ab3c --- /dev/null +++ b/lib/app/app.dart @@ -0,0 +1 @@ +export 'view/app.dart'; diff --git a/lib/app/core/config/app_environment.dart b/lib/app/core/config/app_environment.dart new file mode 100644 index 0000000..3d02aa1 --- /dev/null +++ b/lib/app/core/config/app_environment.dart @@ -0,0 +1,30 @@ +import 'package:frontend_eccp_mobile/app/core/config/app_flavor.dart'; + +class AppEnvironment { + AppEnvironment._(); + + static String get baseUrl { + if (Flavor.isProd) { + return 'https://project.adhivasindo.co.id/api_eccp'; + } + if (Flavor.isStaging) { + return 'https://project.adhivasindo.co.id/api_eccp'; + } + return 'https://project.adhivasindo.co.id/api_eccp'; + } + + static String get imageBaseUrl { + if (Flavor.isProd) { + return 'https://project.adhivasindo.co.id/'; + } + if (Flavor.isStaging) { + return 'https://project.adhivasindo.co.id/'; + } + return 'https://project.adhivasindo.co.id/'; + } + + static const int connectTimeoutSeconds = 15; + static const int receiveTimeoutSeconds = 30; + + static bool get enableHttpLog => !Flavor.isProd; +} diff --git a/lib/app/core/config/app_flavor.dart b/lib/app/core/config/app_flavor.dart new file mode 100644 index 0000000..5b5f14f --- /dev/null +++ b/lib/app/core/config/app_flavor.dart @@ -0,0 +1,11 @@ +import 'package:frontend_eccp_mobile/app/core/constants/enum/app_flavor_enum.dart'; + +class Flavor { + static late AppFlavor current; + + static String get name => current.name; + + static bool get isDev => current == AppFlavor.development; + static bool get isStaging => current == AppFlavor.staging; + static bool get isProd => current == AppFlavor.production; +} diff --git a/lib/app/core/config/app_update_config.dart b/lib/app/core/config/app_update_config.dart new file mode 100644 index 0000000..74a4211 --- /dev/null +++ b/lib/app/core/config/app_update_config.dart @@ -0,0 +1,21 @@ +class AppUpdateConfig { + AppUpdateConfig({ + required this.version, + required this.versionCode, + required this.linkUpdate, + required this.adminLink, + }); + + factory AppUpdateConfig.fromJson(Map json) { + return AppUpdateConfig( + version: json['version']?.toString() ?? '0.0.0', + versionCode: int.tryParse(json['version_code']?.toString() ?? '0') ?? 0, + linkUpdate: json['link_update']?.toString() ?? '', + adminLink: json['admin_link']?.toString() ?? '', + ); + } + final String version; + final int versionCode; + final String linkUpdate; + final String adminLink; +} diff --git a/lib/app/core/constants/api_constant.dart b/lib/app/core/constants/api_constant.dart new file mode 100644 index 0000000..17a3948 --- /dev/null +++ b/lib/app/core/constants/api_constant.dart @@ -0,0 +1,3 @@ +class ApiConstant { + static const String contentTypeJson = 'application/json'; +} diff --git a/lib/app/core/constants/app_colors.dart b/lib/app/core/constants/app_colors.dart new file mode 100644 index 0000000..19681b8 --- /dev/null +++ b/lib/app/core/constants/app_colors.dart @@ -0,0 +1,42 @@ +import 'package:flutter/material.dart'; +import 'package:hexcolor/hexcolor.dart'; + +class AppColors { + // PRIMARY + static Color primary900 = Colors.black; + static Color primary700 = Colors.black87; + static Color primary500 = Colors.black54; + static Color primary300 = Colors.black38; + + // ACCENT + static Color accentRed600 = HexColor('#E10600'); + static Color accentRed500 = HexColor('#FF3B30'); + static Color accentPink = HexColor('#FF2D55'); + static Color accentGreen = HexColor('#34C759'); + + // STATUS + static Color statusSuccess = HexColor('#28A745'); + static Color statusWarning = HexColor('#FFC107'); + static Color statusDanger = HexColor('#DC3545'); + + // NEUTRAL + static Color neutral50 = HexColor('#FAFAFA'); + static Color neutral100 = HexColor('#F2F2F2'); + static Color neutral200 = HexColor('#E0E0E0'); + static Color neutral400 = HexColor('#BDBDBD'); + static Color neutral500 = HexColor('#8C8C8C'); + static Color neutral600 = HexColor('#757575'); + static Color neutral700 = Colors.grey.shade700; + static Color neutral900 = HexColor('#212121'); + static Color neutralBlack = HexColor('#000000'); + static Color neutralWhite = HexColor('#FFFFFF'); + + // SUPPORT + static Color supportSteel600 = HexColor('#2D3E50'); + static Color supportSteel300 = HexColor('#8FA3BF'); + + // SHIMMER/LOADING + static Color shimmerBackgroundColor = HexColor('#292729'); + static Color shimmerBaseColor = HexColor('#292729'); + static Color shimmerHighColor = HexColor('#363436'); +} diff --git a/lib/app/core/constants/app_durations.dart b/lib/app/core/constants/app_durations.dart new file mode 100644 index 0000000..dfb7c21 --- /dev/null +++ b/lib/app/core/constants/app_durations.dart @@ -0,0 +1,10 @@ +class AppDurations { + AppDurations._(); + + static const fast = Duration(milliseconds: 150); + static const normal = Duration(milliseconds: 250); + static const slow = Duration(milliseconds: 400); + + static const pageTransition = Duration(milliseconds: 300); + static const modalTransition = Duration(milliseconds: 250); +} diff --git a/lib/app/core/constants/app_icon_sizes.dart b/lib/app/core/constants/app_icon_sizes.dart new file mode 100644 index 0000000..3cf32a3 --- /dev/null +++ b/lib/app/core/constants/app_icon_sizes.dart @@ -0,0 +1,10 @@ +class AppIconSizes { + AppIconSizes._(); + + static const double xs = 14; + static const double sm = 16; + static const double md = 20; + static const double lg = 24; + static const double xl = 28; + static const double xxl = 32; +} diff --git a/lib/app/core/constants/app_opacity.dart b/lib/app/core/constants/app_opacity.dart new file mode 100644 index 0000000..0a4ea65 --- /dev/null +++ b/lib/app/core/constants/app_opacity.dart @@ -0,0 +1,12 @@ +class AppOpacity { + AppOpacity._(); + + static const double disabled = 0.4; + static const double muted = 0.6; + static const double subtle = 0.8; + + static const double overlayLight = 0.05; + static const double opacity15 = 0.15; + static const double overlay = 0.1; + static const double overlayStrong = 0.2; +} diff --git a/lib/app/core/constants/app_padding.dart b/lib/app/core/constants/app_padding.dart new file mode 100644 index 0000000..d4d1e77 --- /dev/null +++ b/lib/app/core/constants/app_padding.dart @@ -0,0 +1,60 @@ +import 'package:flutter/widgets.dart'; + +class AppPadding { + AppPadding._(); + + static const EdgeInsets p0 = EdgeInsets.zero; + static const EdgeInsets p2 = EdgeInsets.all(2); + static const EdgeInsets p4 = EdgeInsets.all(4); + static const EdgeInsets p6 = EdgeInsets.all(6); + static const EdgeInsets p8 = EdgeInsets.all(8); + static const EdgeInsets p10 = EdgeInsets.all(10); + static const EdgeInsets p12 = EdgeInsets.all(12); + static const EdgeInsets p14 = EdgeInsets.all(14); + static const EdgeInsets p16 = EdgeInsets.all(16); + static const EdgeInsets p24 = EdgeInsets.all(24); + + static const EdgeInsets h4 = EdgeInsets.symmetric(horizontal: 4); + static const EdgeInsets h8 = EdgeInsets.symmetric(horizontal: 8); + static const EdgeInsets h10 = EdgeInsets.symmetric(horizontal: 10); + static const EdgeInsets h12 = EdgeInsets.symmetric(horizontal: 12); + static const EdgeInsets h14 = EdgeInsets.symmetric(horizontal: 14); + static const EdgeInsets h16 = EdgeInsets.symmetric(horizontal: 16); + static const EdgeInsets h18 = EdgeInsets.symmetric(horizontal: 18); + static const EdgeInsets h24 = EdgeInsets.symmetric( + horizontal: 24, + ); + + static const EdgeInsets v2 = EdgeInsets.symmetric(vertical: 2); + static const EdgeInsets v4 = EdgeInsets.symmetric(vertical: 4); + static const EdgeInsets v6 = EdgeInsets.symmetric(vertical: 6); + static const EdgeInsets v8 = EdgeInsets.symmetric(vertical: 8); + static const EdgeInsets v10 = EdgeInsets.symmetric(vertical: 10); + static const EdgeInsets v12 = EdgeInsets.symmetric(vertical: 12); + static const EdgeInsets v14 = EdgeInsets.symmetric(vertical: 14); + static const EdgeInsets v16 = EdgeInsets.symmetric(vertical: 16); + static const EdgeInsets v20 = EdgeInsets.symmetric(vertical: 20); + + static const EdgeInsets t6 = EdgeInsets.only(top: 6); + static const EdgeInsets t8 = EdgeInsets.only(top: 8); + static const EdgeInsets t12 = EdgeInsets.only(top: 12); + static const EdgeInsets t16 = EdgeInsets.only(top: 16); + static const EdgeInsets t24 = EdgeInsets.only(top: 24); + + static const EdgeInsets b2 = EdgeInsets.only(bottom: 2); + static const EdgeInsets b8 = EdgeInsets.only(bottom: 8); + static const EdgeInsets b10 = EdgeInsets.only(bottom: 10); + static const EdgeInsets b12 = EdgeInsets.only(bottom: 12); + static const EdgeInsets b14 = EdgeInsets.only(bottom: 14); + static const EdgeInsets b16 = EdgeInsets.only(bottom: 16); + + static const EdgeInsets l6 = EdgeInsets.only(left: 6); + static const EdgeInsets l8 = EdgeInsets.only(left: 8); + static const EdgeInsets l12 = EdgeInsets.only(left: 12); + static const EdgeInsets l16 = EdgeInsets.only(left: 16); + static const EdgeInsets l26 = EdgeInsets.only(left: 26); + + static const EdgeInsets r8 = EdgeInsets.only(right: 8); + static const EdgeInsets r12 = EdgeInsets.only(right: 12); + static const EdgeInsets r16 = EdgeInsets.only(right: 16); +} diff --git a/lib/app/core/constants/app_radius.dart b/lib/app/core/constants/app_radius.dart new file mode 100644 index 0000000..9ac9ea6 --- /dev/null +++ b/lib/app/core/constants/app_radius.dart @@ -0,0 +1,13 @@ +import 'package:flutter/widgets.dart'; + +class AppRadius { + AppRadius._(); + + static BorderRadius r6 = BorderRadius.circular(6); + static BorderRadius r10 = BorderRadius.circular(10); + static BorderRadius r8 = BorderRadius.circular(8); + static BorderRadius r14 = BorderRadius.circular(14); + static BorderRadius r18 = BorderRadius.circular(18); + static BorderRadius r24 = BorderRadius.circular(24); + static BorderRadius rFull = BorderRadius.circular(999); +} diff --git a/lib/app/core/constants/app_shadows.dart b/lib/app/core/constants/app_shadows.dart new file mode 100644 index 0000000..0778759 --- /dev/null +++ b/lib/app/core/constants/app_shadows.dart @@ -0,0 +1,36 @@ +import 'package:flutter/material.dart'; + +class AppShadows { + AppShadows._(); + + static List xs = [ + BoxShadow( + color: Colors.black.withOpacity(0.07), + blurRadius: 2, + ), + ]; + + static List sm = [ + BoxShadow( + color: Colors.black.withOpacity(0.1), + blurRadius: 4, + offset: const Offset(0, 1), + ), + ]; + + static List md = [ + BoxShadow( + color: Colors.black.withOpacity(0.15), + blurRadius: 8, + offset: const Offset(0, 2), + ), + ]; + + static List lg = [ + BoxShadow( + color: Colors.black.withOpacity(0.2), + blurRadius: 16, + offset: const Offset(0, 4), + ), + ]; +} diff --git a/lib/app/core/constants/app_sizes.dart b/lib/app/core/constants/app_sizes.dart new file mode 100644 index 0000000..8ca8959 --- /dev/null +++ b/lib/app/core/constants/app_sizes.dart @@ -0,0 +1,45 @@ +class AppSizes { + AppSizes._(); + + static const double maxContentWidth = 600; + + static const double bottomSheetHandleWidth = 40; + static const double bottomSheetHandleHeight = 6; + + static const double avatarSm = 32; + static const double avatarMd = 40; + static const double avatarLg = 64; + + static const double iconContainerSm = 32; + static const double iconContainerMd = 40; + static const double iconContainerLg = 48; + + static const double progressHeight = 4; + + static const double buttonHeight = 44; + static const double inputHeight = 48; + + static const double illustrationWidthFactor = 0.6; + + static const double s2 = 2; + static const double s4 = 4; + static const double s6 = 6; + static const double s8 = 8; + static const double s10 = 10; + static const double s12 = 12; + static const double s16 = 16; + static const double s24 = 24; + static const double s32 = 32; + static const double s40 = 40; + static const double s48 = 48; + static const double s56 = 56; + static const double s64 = 64; + static const double s72 = 72; + static const double s80 = 80; + static const double s88 = 88; + static const double s96 = 96; + static const double s104 = 104; + static const double s112 = 112; + static const double s120 = 120; + static const double s128 = 128; +} diff --git a/lib/app/core/constants/app_spacing.dart b/lib/app/core/constants/app_spacing.dart new file mode 100644 index 0000000..227d699 --- /dev/null +++ b/lib/app/core/constants/app_spacing.dart @@ -0,0 +1,28 @@ +import 'package:flutter/widgets.dart'; + +class AppSpacing { + AppSpacing._(); + static const SizedBox h2 = SizedBox(height: 2); + static const SizedBox h4 = SizedBox(height: 4); + static const SizedBox h6 = SizedBox(height: 6); + static const SizedBox h8 = SizedBox(height: 8); + static const SizedBox h12 = SizedBox(height: 12); + static const SizedBox h16 = SizedBox(height: 16); + static const SizedBox h20 = SizedBox(height: 20); + static const SizedBox h24 = SizedBox(height: 24); + static const SizedBox h32 = SizedBox(height: 32); + static const SizedBox h36 = SizedBox(height: 36); + static const SizedBox h40 = SizedBox(height: 40); + static const SizedBox h48 = SizedBox(height: 48); + static const SizedBox h64 = SizedBox(height: 64); + + static const SizedBox w4 = SizedBox(width: 4); + static const SizedBox w6 = SizedBox(width: 6); + static const SizedBox w8 = SizedBox(width: 8); + static const SizedBox w10 = SizedBox(width: 10); + static const SizedBox w12 = SizedBox(width: 12); + static const SizedBox w14 = SizedBox(width: 14); + static const SizedBox w16 = SizedBox(width: 16); + static const SizedBox w24 = SizedBox(width: 24); + static const SizedBox w32 = SizedBox(width: 32); +} diff --git a/lib/app/core/constants/app_text_styles.dart b/lib/app/core/constants/app_text_styles.dart new file mode 100644 index 0000000..003e82d --- /dev/null +++ b/lib/app/core/constants/app_text_styles.dart @@ -0,0 +1,90 @@ +import 'package:flutter/material.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/app_colors.dart'; +import 'package:google_fonts/google_fonts.dart'; + +class AppTextStyles { + AppTextStyles._(); + + static final String fontFamily = GoogleFonts.inter().fontFamily!; + + static TextStyle hAnalytics = GoogleFonts.inter( + fontSize: 24, + fontWeight: FontWeight.w700, + color: AppColors.neutral900, + ); + static TextStyle h1 = GoogleFonts.inter( + fontSize: 22, + fontWeight: FontWeight.w700, + color: AppColors.neutral900, + ); + + static TextStyle h2 = GoogleFonts.inter( + fontSize: 18, + fontWeight: FontWeight.w700, + color: AppColors.neutral900, + ); + static TextStyle h2Light = GoogleFonts.inter( + fontSize: 18, + fontWeight: FontWeight.w400, + color: AppColors.neutral900, + ); + + static TextStyle h3 = GoogleFonts.inter( + fontSize: 16, + fontWeight: FontWeight.w700, + color: AppColors.neutral900, + ); + static TextStyle h4 = GoogleFonts.inter( + fontSize: 16, + fontWeight: FontWeight.w600, + color: AppColors.neutral900, + ); + + static TextStyle section = GoogleFonts.inter( + fontSize: 13, + fontWeight: FontWeight.w600, + color: AppColors.neutral400, + ); + + static TextStyle label = GoogleFonts.inter( + fontSize: 14, + fontWeight: FontWeight.w600, + color: AppColors.neutral900, + ); + + static TextStyle body = GoogleFonts.inter( + fontSize: 14, + fontWeight: FontWeight.w400, + color: AppColors.neutral900, + ); + + static TextStyle small = GoogleFonts.inter( + fontSize: 13, + fontWeight: FontWeight.w400, + color: AppColors.neutral600, + ); + + static TextStyle xs = GoogleFonts.inter( + fontSize: 12, + fontWeight: FontWeight.w400, + color: AppColors.neutral400, + ); + + static TextStyle badge = GoogleFonts.inter( + fontSize: 12, + fontWeight: FontWeight.w600, + color: AppColors.primary700, + ); + + static TextStyle button = GoogleFonts.inter( + fontSize: 14, + fontWeight: FontWeight.w600, + color: Colors.white, + ); + + static TextStyle value = GoogleFonts.inter( + fontSize: 16, + fontWeight: FontWeight.w600, + color: AppColors.neutral900, + ); +} diff --git a/lib/app/core/constants/constants.dart b/lib/app/core/constants/constants.dart new file mode 100644 index 0000000..5424cb8 --- /dev/null +++ b/lib/app/core/constants/constants.dart @@ -0,0 +1,13 @@ +export 'api_constant.dart'; +export 'app_colors.dart'; +export 'app_durations.dart'; +export 'app_icon_sizes.dart'; +export 'app_opacity.dart'; +export 'app_padding.dart'; +export 'app_radius.dart'; +export 'app_shadows.dart'; +export 'app_sizes.dart'; +export 'app_spacing.dart'; +export 'app_text_styles.dart'; +export 'dio_constant.dart'; +export 'globalkey.dart'; diff --git a/lib/app/core/constants/dio_constant.dart b/lib/app/core/constants/dio_constant.dart new file mode 100644 index 0000000..5f6cd8e --- /dev/null +++ b/lib/app/core/constants/dio_constant.dart @@ -0,0 +1,3 @@ +class DioExtraKey { + static const String noAuth = 'noAuth'; +} diff --git a/lib/app/core/constants/enum/app_flavor_enum.dart b/lib/app/core/constants/enum/app_flavor_enum.dart new file mode 100644 index 0000000..b86b0b4 --- /dev/null +++ b/lib/app/core/constants/enum/app_flavor_enum.dart @@ -0,0 +1,5 @@ +enum AppFlavor { + development, + staging, + production, +} diff --git a/lib/app/core/constants/enum/appbar_type_enum.dart b/lib/app/core/constants/enum/appbar_type_enum.dart new file mode 100644 index 0000000..72bd785 --- /dev/null +++ b/lib/app/core/constants/enum/appbar_type_enum.dart @@ -0,0 +1 @@ +enum AppButtonType { primary, secondary } diff --git a/lib/app/core/constants/enum/location_status_enum.dart b/lib/app/core/constants/enum/location_status_enum.dart new file mode 100644 index 0000000..21d4ec1 --- /dev/null +++ b/lib/app/core/constants/enum/location_status_enum.dart @@ -0,0 +1 @@ +enum SimpleLocationStatus { granted, denied, deniedForever, serviceDisabled } diff --git a/lib/app/core/constants/enum/network_error_code_enum.dart b/lib/app/core/constants/enum/network_error_code_enum.dart new file mode 100644 index 0000000..624e129 --- /dev/null +++ b/lib/app/core/constants/enum/network_error_code_enum.dart @@ -0,0 +1,9 @@ +enum NetworkErrorCode { + unauthorized, + noInternet, + serverError, + requestCancelled, + badCertificate, + unknown, + notFound, +} diff --git a/lib/app/core/constants/enum/network_error_message_enum.dart b/lib/app/core/constants/enum/network_error_message_enum.dart new file mode 100644 index 0000000..6168c13 --- /dev/null +++ b/lib/app/core/constants/enum/network_error_message_enum.dart @@ -0,0 +1,30 @@ +enum NetworkErrorMessage { + unauthorized, + noInternet, + serverError, + requestCancelled, + badCertificate, + unknown, + notFound, +} + +extension NetworkErrorMessageExt on NetworkErrorMessage { + String get value { + switch (this) { + case NetworkErrorMessage.unauthorized: + return 'Session expired. Please login again.'; + case NetworkErrorMessage.noInternet: + return 'No internet connection.'; + case NetworkErrorMessage.serverError: + return 'Server error occurred.'; + case NetworkErrorMessage.requestCancelled: + return 'Request cancelled.'; + case NetworkErrorMessage.badCertificate: + return 'Invalid certificate.'; + case NetworkErrorMessage.unknown: + return 'Something went wrong.'; + case NetworkErrorMessage.notFound: + return 'Oops,terjadi kesalahan tidak terduga. (404)'; + } + } +} diff --git a/lib/app/core/constants/enum/snackbar_type_enum.dart b/lib/app/core/constants/enum/snackbar_type_enum.dart new file mode 100644 index 0000000..bcba62f --- /dev/null +++ b/lib/app/core/constants/enum/snackbar_type_enum.dart @@ -0,0 +1 @@ +enum SnackBarType { success, error, warning, info } diff --git a/lib/app/core/constants/globalkey.dart b/lib/app/core/constants/globalkey.dart new file mode 100644 index 0000000..5691d87 --- /dev/null +++ b/lib/app/core/constants/globalkey.dart @@ -0,0 +1,3 @@ +import 'package:flutter/material.dart'; + +final GlobalKey navigatorKey = GlobalKey(); diff --git a/lib/app/core/di/injection.config.dart b/lib/app/core/di/injection.config.dart new file mode 100644 index 0000000..b6156e9 --- /dev/null +++ b/lib/app/core/di/injection.config.dart @@ -0,0 +1,69 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// dart format width=80 + +// ************************************************************************** +// InjectableConfigGenerator +// ************************************************************************** + +// ignore_for_file: type=lint +// coverage:ignore-file + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:frontend_eccp_mobile/modules/auth/login/bloc/login_cubit.dart' + as _i941; +import 'package:frontend_eccp_mobile/modules/auth/login/data/datasources/login_remote_datasource.dart' + as _i457; +import 'package:frontend_eccp_mobile/modules/auth/login/data/repositories/login_repository.dart' + as _i435; +import 'package:frontend_eccp_mobile/modules/auth/refresh_token/data/datasources/auth_remote_datasource.dart' + as _i813; +import 'package:frontend_eccp_mobile/modules/auth/refresh_token/data/repositories/auth_repository.dart' + as _i908; +import 'package:frontend_eccp_mobile/modules/auth/refresh_token/services/auth_service.dart' + as _i1069; +import 'package:frontend_eccp_mobile/modules/profile/bloc/logout/logout_cubit.dart' + as _i58; +import 'package:frontend_eccp_mobile/modules/profile/data/datasources/profile_remote_datasource.dart' + as _i222; +import 'package:frontend_eccp_mobile/modules/profile/data/repositories/profile_repository.dart' + as _i604; +import 'package:get_it/get_it.dart' as _i174; +import 'package:injectable/injectable.dart' as _i526; + +extension GetItInjectableX on _i174.GetIt { + // initializes the registration of main-scope dependencies inside of GetIt + _i174.GetIt init({ + String? environment, + _i526.EnvironmentFilter? environmentFilter, + }) { + final gh = _i526.GetItHelper(this, environment, environmentFilter); + gh.lazySingleton<_i457.LoginRemoteDataSource>( + () => _i457.LoginRemoteDataSource(), + ); + gh.lazySingleton<_i813.AuthRemoteDataSource>( + () => _i813.AuthRemoteDataSource(), + ); + gh.lazySingleton<_i222.ProfileRemoteDataSource>( + () => _i222.ProfileRemoteDataSource(), + ); + gh.lazySingleton<_i435.LoginRepository>( + () => _i435.LoginRepository(gh<_i457.LoginRemoteDataSource>()), + ); + gh.lazySingleton<_i604.ProfileRepository>( + () => _i604.ProfileRepository(gh<_i222.ProfileRemoteDataSource>()), + ); + gh.lazySingleton<_i908.AuthRepository>( + () => _i908.AuthRepository(gh<_i813.AuthRemoteDataSource>()), + ); + gh.factory<_i58.LogoutCubit>( + () => _i58.LogoutCubit(gh<_i604.ProfileRepository>()), + ); + gh.factory<_i941.LoginCubit>( + () => _i941.LoginCubit(gh<_i435.LoginRepository>()), + ); + gh.lazySingleton<_i1069.AuthService>( + () => _i1069.AuthService(gh<_i908.AuthRepository>()), + ); + return this; + } +} diff --git a/lib/app/core/di/injection.dart b/lib/app/core/di/injection.dart new file mode 100644 index 0000000..c51977d --- /dev/null +++ b/lib/app/core/di/injection.dart @@ -0,0 +1,13 @@ +import 'package:frontend_eccp_mobile/app/core/di/injection.config.dart'; +import 'package:frontend_eccp_mobile/modules/auth/login/data/model/user_session.dart'; +import 'package:get_it/get_it.dart'; +import 'package:injectable/injectable.dart'; + +final GetIt getIt = GetIt.instance; + +@InjectableInit() +Future configureDependencies() async { + getIt + ..registerLazySingleton(UserSession.new) + ..init(); +} diff --git a/lib/app/core/handler/auth_handler.dart b/lib/app/core/handler/auth_handler.dart new file mode 100644 index 0000000..7fe437a --- /dev/null +++ b/lib/app/core/handler/auth_handler.dart @@ -0,0 +1,65 @@ +import 'package:flutter/material.dart'; +import 'package:flutter_bloc/flutter_bloc.dart'; +import 'package:frontend_eccp_mobile/app/core/di/injection.dart'; +import 'package:frontend_eccp_mobile/app/core/navigation/app_navigator.dart'; +import 'package:frontend_eccp_mobile/app/core/navigation/app_routes.dart'; +import 'package:frontend_eccp_mobile/app/core/notification/fcm_route/notification_router.dart'; +import 'package:frontend_eccp_mobile/app/core/notification/notification_intent_store.dart'; +import 'package:frontend_eccp_mobile/app/core/services/crashlytics_service.dart'; +import 'package:frontend_eccp_mobile/app/core/widgets/bottomsheet/app_bottom_sheet.dart'; +import 'package:frontend_eccp_mobile/app/core/widgets/bottomsheet/appbottomsheet_controller.dart'; +import 'package:frontend_eccp_mobile/modules/auth/login/data/model/user_session.dart'; +import 'package:frontend_eccp_mobile/modules/profile/bloc/logout/logout_cubit.dart'; +import 'package:modal_bottom_sheet/modal_bottom_sheet.dart'; + +class AuthHandler { + AuthHandler._(); + + static Future handleAuth(BuildContext context) async { + if (!context.mounted) return; + + if (getIt().isLoggedIn) { + await AppNavigator.clearAndPush( + context, + AppRoutes.home, + onOpened: () async { + final data = NotificationIntentStore.consume(); + + if (data != null) { + await NotificationRouter.handle(data); + } + }, + ); + } else { + await AppNavigator.clearAndPush( + context, + AppRoutes.login, + ); + } + } + + static Future logout(BuildContext context) async { + await showMaterialModalBottomSheet( + context: context, + backgroundColor: const Color.fromARGB(0, 213, 135, 135), + builder: (_) { + return AppBottomSheet( + controller: AppBottomSheetController(), + useSecondaryButton: true, + title: 'Apakah anda yakin ingin keluar?', + subTitle: + 'Jika ya, anda akan keluar dari aplikasi dan perlu login kembali.', + primaryText: 'Keluar', + secondaryText: 'Batal', + onPrimaryPressed: () async { + Navigator.pop(context); + await CrashlyticsService.clearUser(); + getIt().clear(); + if (!context.mounted) return; + await context.read().logout(); + }, + ); + }, + ); + } +} diff --git a/lib/app/core/handler/contact_admin.dart b/lib/app/core/handler/contact_admin.dart new file mode 100644 index 0000000..e3dbe7a --- /dev/null +++ b/lib/app/core/handler/contact_admin.dart @@ -0,0 +1,17 @@ +import 'package:frontend_eccp_mobile/app/core/services/remote_config_service.dart'; +import 'package:url_launcher/url_launcher.dart'; + +class ContactAdmin { + static Future openLink() async { + await RemoteConfigService.init(); + + final config = await RemoteConfigService.getUpdateConfig(); + if (config == null || config.adminLink.isEmpty) return; + + final uri = Uri.parse(config.adminLink); + await launchUrl( + uri, + mode: LaunchMode.externalApplication, + ); + } +} diff --git a/lib/app/core/models/fcm_payload.dart b/lib/app/core/models/fcm_payload.dart new file mode 100644 index 0000000..739ae41 --- /dev/null +++ b/lib/app/core/models/fcm_payload.dart @@ -0,0 +1,22 @@ +class FcmPayload { + FcmPayload({ + this.title, + this.body, + this.data, + }); + + factory FcmPayload.fromMessage(Map message) { + final notification = message['notification'] as Map?; + final rawData = message['data']; + + return FcmPayload( + title: notification?['title']?.toString(), + body: notification?['body']?.toString(), + data: rawData is Map ? Map.from(rawData) : null, + ); + } + + final String? title; + final String? body; + final Map? data; +} diff --git a/lib/app/core/models/notification_payload.dart b/lib/app/core/models/notification_payload.dart new file mode 100644 index 0000000..4058151 --- /dev/null +++ b/lib/app/core/models/notification_payload.dart @@ -0,0 +1,20 @@ +class NotificationPayload { + NotificationPayload({ + required this.page, + this.params, + }); + + factory NotificationPayload.fromMap(Map data) { + final param = data['params']; + + return NotificationPayload( + page: data['page']?.toString() ?? '', + params: param is Map ? Map.from(param) : null, + ); + } + + final String page; + final Map? params; + + bool get isValid => page.isNotEmpty; +} diff --git a/lib/app/core/navigation/app_navigator.dart b/lib/app/core/navigation/app_navigator.dart new file mode 100644 index 0000000..5946466 --- /dev/null +++ b/lib/app/core/navigation/app_navigator.dart @@ -0,0 +1,119 @@ +import 'package:flutter/material.dart'; +import 'package:go_router/go_router.dart'; + +typedef NavResult = void Function(T? result); +typedef NavOpened = void Function(); + +class AppNavigator { + AppNavigator._(); + + static Future push( + BuildContext context, + String route, { + Object? extra, + NavOpened? onOpened, + NavResult? onResult, + }) async { + final future = context.push(route, extra: extra); + + if (onOpened != null) { + WidgetsBinding.instance.addPostFrameCallback((_) { + onOpened(); + }); + } + + if (onResult != null) { + await future.then(onResult); + } + + return future; + } + + static Future clearAndPush( + BuildContext context, + String route, { + Object? extra, + NavOpened? onOpened, + }) async { + context.go(route, extra: extra); + + if (onOpened != null) { + WidgetsBinding.instance.addPostFrameCallback((_) { + onOpened(); + }); + } + } + + static void pop( + BuildContext context, [ + T? result, + ]) { + context.pop(result); + } + + static void popToRoot(BuildContext context) { + while (context.canPop()) { + context.pop(); + } + } + + static Future maybePop(BuildContext context) async { + if (context.canPop()) { + context.pop(); + return true; + } + return false; + } + + static Future pushFade( + BuildContext context, + String route, { + Object? extra, + Duration duration = const Duration(milliseconds: 200), + NavOpened? onOpened, + NavResult? onResult, + }) async { + final future = context.push( + route, + extra: extra, + ); + + if (onOpened != null) { + WidgetsBinding.instance.addPostFrameCallback((_) { + onOpened(); + }); + } + + if (onResult != null) { + await future.then(onResult); + } + + return future; + } + + static Future pushSlide( + BuildContext context, + String route, { + Object? extra, + Duration duration = const Duration(milliseconds: 250), + NavOpened? onOpened, + NavResult? onResult, + }) async { + final future = context.push( + route, + extra: extra, + ); + + if (onOpened != null) { + WidgetsBinding.instance.addPostFrameCallback((_) { + onOpened(); + }); + } + + if (onResult != null) { + await future.then(onResult); + } + + return future; + } +} diff --git a/lib/app/core/navigation/app_resume_once.dart b/lib/app/core/navigation/app_resume_once.dart new file mode 100644 index 0000000..960fa98 --- /dev/null +++ b/lib/app/core/navigation/app_resume_once.dart @@ -0,0 +1,47 @@ +import 'dart:async'; +import 'package:flutter/widgets.dart'; + +class _OneShotResumeObserver with WidgetsBindingObserver { + _OneShotResumeObserver(this._onResume); + final Future Function() _onResume; + bool _done = false; + + void start() => WidgetsBinding.instance.addObserver(this); + void stop() { + if (_done) return; + _done = true; + WidgetsBinding.instance.removeObserver(this); + } + + @override + Future didChangeAppLifecycleState(AppLifecycleState state) async { + if (state == AppLifecycleState.resumed && !_done) { + try { + await _onResume(); + } finally { + stop(); + } + } + } +} + +Future waitRecheckOnNextResume( + Future Function() onResume, { + Duration timeout = const Duration(seconds: 45), +}) async { + final c = Completer(); + final obs = _OneShotResumeObserver(() async { + try { + await onResume(); + } finally { + if (!c.isCompleted) c.complete(); + } + })..start(); + + Future.delayed(timeout, () { + obs.stop(); + if (!c.isCompleted) c.complete(); + }); + + return c.future; +} diff --git a/lib/app/core/navigation/app_router.dart b/lib/app/core/navigation/app_router.dart new file mode 100644 index 0000000..e4416fc --- /dev/null +++ b/lib/app/core/navigation/app_router.dart @@ -0,0 +1,59 @@ +import 'package:frontend_eccp_mobile/app/core/constants/globalkey.dart'; +import 'package:frontend_eccp_mobile/app/core/navigation/app_routes.dart'; +import 'package:frontend_eccp_mobile/app/core/navigation/main_navigation_page.dart'; +import 'package:frontend_eccp_mobile/modules/auth/login/presentation/screen/login_page.dart'; +import 'package:frontend_eccp_mobile/modules/splash/presentation/screen/splash_screen.dart'; +import 'package:frontend_eccp_mobile/modules/update/presentation/update_page.dart'; +import 'package:go_router/go_router.dart'; + +class AppRouter { + AppRouter._(); + + static final router = GoRouter( + initialLocation: AppRoutes.splash, + + navigatorKey: navigatorKey, + + routes: [ + GoRoute( + path: AppRoutes.splash, + builder: (context, state) => const SplashScreen(), + ), + GoRoute( + path: AppRoutes.updateApp, + builder: (context, state) { + final extra = state.extra as Map?; + + final version = extra?['version'] as String? ?? ''; + final link = extra?['link'] as String? ?? ''; + + return UpdatePage( + version: version, + link: link, + ); + }, + ), + GoRoute( + path: AppRoutes.login, + builder: (context, state) => const LoginPage(), + ), + GoRoute( + path: AppRoutes.home, + builder: (context, state) => const MainNavigationPage(), + ), + GoRoute( + path: AppRoutes.berkas, + builder: (context, state) => const MainNavigationPage( + initialIndex: 1, + ), + ), + + GoRoute( + path: AppRoutes.settings, + builder: (context, state) => const MainNavigationPage( + initialIndex: 2, + ), + ), + ], + ); +} diff --git a/lib/app/core/navigation/app_routes.dart b/lib/app/core/navigation/app_routes.dart new file mode 100644 index 0000000..5c66cd7 --- /dev/null +++ b/lib/app/core/navigation/app_routes.dart @@ -0,0 +1,10 @@ +class AppRoutes { + AppRoutes._(); + static const splash = '/'; + static const login = '/login'; + static const updateApp = '/update-app'; + + static const home = '/home'; + static const settings = '/settings'; + static const berkas = '/berkas'; +} diff --git a/lib/app/core/navigation/main_navigation_page.dart b/lib/app/core/navigation/main_navigation_page.dart new file mode 100644 index 0000000..7938f1f --- /dev/null +++ b/lib/app/core/navigation/main_navigation_page.dart @@ -0,0 +1,52 @@ +import 'package:flutter/material.dart'; +import 'package:frontend_eccp_mobile/app/core/widgets/app_bottom_nav.dart'; +import 'package:frontend_eccp_mobile/modules/berkas/presentation/screen/berkas_page.dart'; +import 'package:frontend_eccp_mobile/modules/home/presentation/screen/home_page.dart'; +import 'package:frontend_eccp_mobile/modules/profile/presentation/screen/profile_page.dart'; + +class MainNavigationPage extends StatefulWidget { + const MainNavigationPage({ + super.key, + this.initialIndex = 0, + }); + + final int initialIndex; + + @override + State createState() => _MainNavigationPageState(); +} + +class _MainNavigationPageState extends State { + late int _currentIndex; + + final List _pages = [ + const HomePage(), + const BerkasPage(), + const ProfilePage(), + ]; + + @override + void initState() { + super.initState(); + _currentIndex = widget.initialIndex; + } + + void _onTabChanged(int index) { + if (_currentIndex == index) return; + setState(() => _currentIndex = index); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + body: IndexedStack( + index: _currentIndex, + children: _pages, + ), + bottomNavigationBar: AppBottomNav( + currentIndex: _currentIndex, + onTap: _onTabChanged, + ), + ); + } +} diff --git a/lib/app/core/navigation/settings_navigator.dart b/lib/app/core/navigation/settings_navigator.dart new file mode 100644 index 0000000..abcb84a --- /dev/null +++ b/lib/app/core/navigation/settings_navigator.dart @@ -0,0 +1,51 @@ +import 'dart:io'; + +import 'package:android_intent_plus/android_intent.dart'; +import 'package:app_settings/app_settings.dart'; +import 'package:geolocator/geolocator.dart'; +import 'package:permission_handler/permission_handler.dart' as ph; +import 'package:url_launcher/url_launcher.dart'; + +class SettingsNavigator { + SettingsNavigator._(); + static Future openAppSettings() async { + try { + final ok = await Geolocator.openAppSettings(); + if (ok) return true; + } catch (_) {} + try { + final ok = await ph.openAppSettings(); + if (ok) return true; + } catch (_) {} + try { + await AppSettings.openAppSettings(); + return true; + } catch (_) {} + if (Platform.isIOS) { + try { + final uri = Uri.parse('app-settings:'); + if (await canLaunchUrl(uri)) { + await launchUrl(uri); + return true; + } + } catch (_) {} + } + return false; + } + + static Future openLocationSettings() async { + if (Platform.isIOS) return openAppSettings(); + try { + final ok = await Geolocator.openLocationSettings(); + if (ok) return true; + } catch (_) {} + try { + const i = AndroidIntent( + action: 'android.settings.LOCATION_SOURCE_SETTINGS', + ); + await i.launch(); + return true; + } catch (_) {} + return openAppSettings(); + } +} diff --git a/lib/app/core/network/api_endpoint.dart b/lib/app/core/network/api_endpoint.dart new file mode 100644 index 0000000..e16329a --- /dev/null +++ b/lib/app/core/network/api_endpoint.dart @@ -0,0 +1,5 @@ +class ApiEndpoint { + static const String refreshToken = '/api/v1/auth/refresh'; + static const String login = '/api/v1/auth/login'; + static const String logout = '/api/v1/auth/logout'; +} diff --git a/lib/app/core/network/dio_client.dart b/lib/app/core/network/dio_client.dart new file mode 100644 index 0000000..831571f --- /dev/null +++ b/lib/app/core/network/dio_client.dart @@ -0,0 +1,49 @@ +import 'package:chucker_flutter/chucker_flutter.dart'; +import 'package:dio/dio.dart'; +import 'package:flutter/foundation.dart'; +import 'package:frontend_eccp_mobile/app/core/config/app_environment.dart'; +import 'package:frontend_eccp_mobile/app/core/config/app_flavor.dart'; +import 'package:frontend_eccp_mobile/app/core/network/interceptors/auth_interceptor.dart'; +import 'package:frontend_eccp_mobile/app/core/network/interceptors/error_interceptor.dart'; +import 'package:frontend_eccp_mobile/app/core/network/interceptors/logging_interceptor.dart'; +import 'package:frontend_eccp_mobile/app/core/network/interceptors/retry_interceptor.dart'; +import 'package:pretty_dio_logger/pretty_dio_logger.dart'; + +class DioClient { + DioClient._(); + + static final Dio _dio = Dio( + BaseOptions( + baseUrl: AppEnvironment.baseUrl, + validateStatus: (status) => + status != null && status >= 200 && status < 300, + connectTimeout: const Duration( + seconds: AppEnvironment.connectTimeoutSeconds, + ), + receiveTimeout: const Duration( + seconds: AppEnvironment.receiveTimeoutSeconds, + ), + ), + ); + + static Dio getInstance() { + _dio.interceptors.clear(); + + _dio.interceptors.add(AuthInterceptor()); + _dio.interceptors.add(buildRetryInterceptor(_dio)); + _dio.interceptors.add(LoggingInterceptor()); + _dio.interceptors.add(ErrorInterceptor(_dio)); + _dio.interceptors.add( + PrettyDioLogger( + requestHeader: true, + requestBody: true, + ), + ); + + if (!kReleaseMode && Flavor.isDev) { + _dio.interceptors.add(ChuckerDioInterceptor()); + } + + return _dio; + } +} diff --git a/lib/app/core/network/interceptors/auth_interceptor.dart b/lib/app/core/network/interceptors/auth_interceptor.dart new file mode 100644 index 0000000..f566695 --- /dev/null +++ b/lib/app/core/network/interceptors/auth_interceptor.dart @@ -0,0 +1,69 @@ +import 'dart:convert'; +import 'dart:developer'; + +import 'package:dio/dio.dart'; +import 'package:flutter/foundation.dart'; +import 'package:frontend_eccp_mobile/app/core/utils/session_manager.dart'; + +class AuthInterceptor extends Interceptor { + @override + Future onRequest( + RequestOptions options, + RequestInterceptorHandler handler, + ) async { + final noAuth = options.extra['noAuth'] == true; + + if (!noAuth) { + final token = await SessionManager.getToken(); + + if (token != null && token.isNotEmpty) { + options.headers['Authorization'] = 'Bearer $token'; + } else { + options.headers.remove('Authorization'); + } + } + + if (options.data is Map || options.data is List) { + options.headers.putIfAbsent( + 'Content-Type', + () => 'application/json', + ); + } + + if (!kReleaseMode) { + final curl = StringBuffer() + ..write("curl -X ${options.method} '${options.uri}'"); + + options.headers.forEach((k, v) { + curl.write(" -H '$k: $v'"); + }); + + if (options.data != null) { + if (options.data is FormData) { + final formData = options.data as FormData; + + for (final field in formData.fields) { + curl.write(" -F '${field.key}=${field.value}'"); + } + + for (final file in formData.files) { + curl.write( + " -F '${file.key}=@${file.value.filename ?? 'file'}'", + ); + } + } else { + curl.write( + " -d '${jsonEncode(options.data)}'", + ); + } + } + + log( + curl.toString(), + name: 'DIO_CURL', + ); + } + + handler.next(options); + } +} diff --git a/lib/app/core/network/interceptors/error_interceptor.dart b/lib/app/core/network/interceptors/error_interceptor.dart new file mode 100644 index 0000000..992170e --- /dev/null +++ b/lib/app/core/network/interceptors/error_interceptor.dart @@ -0,0 +1,244 @@ +import 'package:dio/dio.dart'; +import 'package:flutter/material.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/enum/network_error_code_enum.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/enum/network_error_message_enum.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/globalkey.dart'; +import 'package:frontend_eccp_mobile/app/core/di/injection.dart'; +import 'package:frontend_eccp_mobile/app/core/navigation/app_routes.dart'; +import 'package:frontend_eccp_mobile/app/core/network/api_endpoint.dart'; +import 'package:frontend_eccp_mobile/app/core/services/bottom_sheet_service.dart'; +import 'package:frontend_eccp_mobile/app/core/services/crashlytics_service.dart'; +import 'package:frontend_eccp_mobile/app/core/utils/session_manager.dart'; +import 'package:frontend_eccp_mobile/app/core/utils/token_manager.dart'; +import 'package:frontend_eccp_mobile/modules/auth/refresh_token/services/auth_service.dart'; +import 'package:go_router/go_router.dart'; + +class ErrorInterceptor extends Interceptor { + ErrorInterceptor(this.dio); + + final Dio dio; + final AuthService _authService = getIt(); + + bool _isRefreshing = false; + final List _queue = []; + + @override + Future onError( + DioException err, + ErrorInterceptorHandler handler, + ) async { + final statusCode = err.response?.statusCode; + final isNoAuth = err.requestOptions.extra['noAuth'] == true; + + String? backendMessage; + final data = err.response?.data; + if (data is Map) { + backendMessage = data['message']?.toString(); + } + + final code = _mapErrorCode(err); + + if (_shouldSendToCrashlytics(code, statusCode)) { + await CrashlyticsService.recordError( + err, + err.stackTrace, + reason: backendMessage ?? code.name, + fatal: true, + context: { + 'url': err.requestOptions.uri.toString(), + 'method': err.requestOptions.method, + 'status_code': statusCode ?? -1, + 'error_code': code.name, + 'response': data?.toString() ?? '-', + }, + ); + } + + if (isNoAuth) { + return handler.reject( + _withMapped( + err, + backendMessage ?? _mapMessage(code).value, + ), + ); + } + + if (statusCode == 401) { + await _handle401(err, handler); + return; + } + + if (code == NetworkErrorCode.noInternet) { + if (err.requestOptions.extra['noInternetShown'] != true) { + err.requestOptions.extra['noInternetShown'] = true; + err.requestOptions.extra['handledGlobally'] = true; + + await BottomSheetService.showNoInternet(); + } + + return handler.reject( + _withMapped(err, NetworkErrorMessage.noInternet.value), + ); + } + + if (code == NetworkErrorCode.serverError) { + if (err.requestOptions.extra['serverErrorShown'] != true) { + err.requestOptions.extra['serverErrorShown'] = true; + err.requestOptions.extra['handledGlobally'] = true; + + await BottomSheetService.showServerError(); + } + + return handler.reject( + _withMapped(err, NetworkErrorMessage.serverError.value), + ); + } + + if (code == NetworkErrorCode.notFound) { + if (err.requestOptions.extra['serverErrorShown'] != true) { + err.requestOptions.extra['serverErrorShown'] = true; + err.requestOptions.extra['handledGlobally'] = true; + + await BottomSheetService.showNotFound(); + } + + return handler.reject( + _withMapped(err, NetworkErrorMessage.notFound.value), + ); + } + + return handler.reject( + _withMapped( + err, + backendMessage ?? _mapMessage(code).value, + ), + ); + } + + Future _handle401( + DioException err, + ErrorInterceptorHandler handler, + ) async { + final requestOptions = err.requestOptions; + + if (requestOptions.path.contains(ApiEndpoint.refreshToken) || + requestOptions.path.contains(ApiEndpoint.logout)) { + await _handleLogout(); + return handler.reject(err); + } + + if (_isRefreshing) { + _queue.add((token) async { + requestOptions.headers['Authorization'] = 'Bearer $token'; + final response = await dio.fetch(requestOptions); + handler.resolve(response); + }); + return; + } + + _isRefreshing = true; + + try { + final newToken = await _authService.refreshToken(); + + await SessionManager.saveToken(newToken.accessToken); + await SessionManager.saveRefreshToken(newToken.refreshToken); + + for (final retry in _queue) { + retry(newToken.accessToken); + } + _queue.clear(); + + requestOptions.headers['Authorization'] = + 'Bearer ${newToken.accessToken}'; + + final response = await dio.fetch(requestOptions); + + handler.resolve(response); + } catch (e) { + await _handleLogout(); + handler.reject(err); + } finally { + _isRefreshing = false; + } + } + + Future _handleLogout() async { + try { + await TokenManager.clearToken(); + dio.options.headers.remove('Authorization'); + + navigatorKey.currentContext?.go(AppRoutes.login); + } catch (e) { + debugPrint('Logout error: $e'); + } + } + + bool _shouldSendToCrashlytics( + NetworkErrorCode code, + int? statusCode, + ) { + if (code == NetworkErrorCode.noInternet) return false; + if (code == NetworkErrorCode.notFound) return true; + if (statusCode == 401) return false; + if (statusCode != null && statusCode < 500) return false; + return true; + } + + NetworkErrorCode _mapErrorCode(DioException e) { + final statusCode = e.response?.statusCode; + + switch (e.type) { + case DioExceptionType.badResponse: + if (statusCode == 404) return NetworkErrorCode.notFound; + if (statusCode == 401) return NetworkErrorCode.unauthorized; + if (statusCode != null && statusCode >= 500) { + return NetworkErrorCode.serverError; + } + return NetworkErrorCode.unknown; + + case DioExceptionType.connectionTimeout: + case DioExceptionType.sendTimeout: + case DioExceptionType.receiveTimeout: + case DioExceptionType.connectionError: + return NetworkErrorCode.noInternet; + + case DioExceptionType.cancel: + return NetworkErrorCode.requestCancelled; + + case DioExceptionType.badCertificate: + return NetworkErrorCode.badCertificate; + + case DioExceptionType.unknown: + return NetworkErrorCode.unknown; + } + } + + NetworkErrorMessage _mapMessage(NetworkErrorCode code) { + switch (code) { + case NetworkErrorCode.unauthorized: + return NetworkErrorMessage.unauthorized; + case NetworkErrorCode.noInternet: + return NetworkErrorMessage.noInternet; + case NetworkErrorCode.serverError: + return NetworkErrorMessage.serverError; + case NetworkErrorCode.notFound: + return NetworkErrorMessage.notFound; + case NetworkErrorCode.requestCancelled: + return NetworkErrorMessage.requestCancelled; + case NetworkErrorCode.badCertificate: + return NetworkErrorMessage.badCertificate; + case NetworkErrorCode.unknown: + return NetworkErrorMessage.unknown; + } + } + + DioException _withMapped(DioException err, String message) { + return DioException( + requestOptions: err.requestOptions, + response: err.response, + type: err.type, + error: message, + ); + } +} diff --git a/lib/app/core/network/interceptors/logging_interceptor.dart b/lib/app/core/network/interceptors/logging_interceptor.dart new file mode 100644 index 0000000..5742779 --- /dev/null +++ b/lib/app/core/network/interceptors/logging_interceptor.dart @@ -0,0 +1,36 @@ +import 'dart:developer'; +import 'package:dio/dio.dart'; +import 'package:flutter/foundation.dart'; + +class LoggingInterceptor extends Interceptor { + @override + void onResponse( + Response response, + ResponseInterceptorHandler handler, + ) { + if (!kReleaseMode) { + log( + 'RESPONSE ${response.statusCode}\n${response.requestOptions.uri}\n${response.data}', + name: 'DIO_RESPONSE', + ); + } + handler.next(response); + } + + @override + void onError( + DioException err, + ErrorInterceptorHandler handler, + ) { + if (!kReleaseMode) { + log( + 'ERROR ${err.response?.statusCode}\n' + '${err.requestOptions.uri}\n' + '${err.type}\n' + '${err.response?.data}', + name: 'DIO_ERROR', + ); + } + handler.next(err); + } +} diff --git a/lib/app/core/network/interceptors/retry_interceptor.dart b/lib/app/core/network/interceptors/retry_interceptor.dart new file mode 100644 index 0000000..ae9291a --- /dev/null +++ b/lib/app/core/network/interceptors/retry_interceptor.dart @@ -0,0 +1,30 @@ +import 'dart:developer'; +import 'dart:io'; + +import 'package:dio/dio.dart'; +import 'package:dio_smart_retry/dio_smart_retry.dart'; + +RetryInterceptor buildRetryInterceptor(Dio dio) { + return RetryInterceptor( + dio: dio, + retryDelays: const [ + Duration(milliseconds: 600), + Duration(seconds: 1), + Duration(seconds: 2), + ], + logPrint: (o) => log(o, name: 'DIO_RETRY'), + retryEvaluator: (e, _) { + final code = e.response?.statusCode ?? 0; + + final serverTransient = code == 502 || code == 503 || code == 504; + final connectionIssue = + e.type == DioExceptionType.connectionTimeout || + e.type == DioExceptionType.receiveTimeout || + e.type == DioExceptionType.sendTimeout || + e.type == DioExceptionType.connectionError || + (e.type == DioExceptionType.unknown && e.error is SocketException); + + return serverTransient || connectionIssue; + }, + ); +} diff --git a/lib/app/core/notification/fcm_background_handler.dart b/lib/app/core/notification/fcm_background_handler.dart new file mode 100644 index 0000000..0a60b14 --- /dev/null +++ b/lib/app/core/notification/fcm_background_handler.dart @@ -0,0 +1,9 @@ +import 'package:firebase_messaging/firebase_messaging.dart'; +import 'package:frontend_eccp_mobile/app/core/notification/fcm_notification_handler.dart'; + +@pragma('vm:entry-point') +Future firebaseMessagingBackgroundHandler( + RemoteMessage message, +) async { + await FcmNotificationHandler.handleBackground(message); +} diff --git a/lib/app/core/notification/fcm_config.dart b/lib/app/core/notification/fcm_config.dart new file mode 100644 index 0000000..3a3a95f --- /dev/null +++ b/lib/app/core/notification/fcm_config.dart @@ -0,0 +1,15 @@ +import 'package:firebase_messaging/firebase_messaging.dart'; + +class FcmConfig { + FcmConfig._(); + + static const String defaultChannelId = 'high_importance_channel'; + static const String defaultChannelName = 'High Importance Notifications'; + static const String defaultChannelDesc = + 'Channel for important notifications'; + + static AndroidNotificationPriority priority = + AndroidNotificationPriority.highPriority; + + static const bool enableForegroundNotification = true; +} diff --git a/lib/app/core/notification/fcm_notification_handler.dart b/lib/app/core/notification/fcm_notification_handler.dart new file mode 100644 index 0000000..af47215 --- /dev/null +++ b/lib/app/core/notification/fcm_notification_handler.dart @@ -0,0 +1,41 @@ +import 'dart:developer'; +import 'package:firebase_messaging/firebase_messaging.dart'; +import 'package:frontend_eccp_mobile/app/core/models/fcm_payload.dart'; +import 'package:frontend_eccp_mobile/app/core/notification/fcm_route/notification_router.dart'; +import 'package:frontend_eccp_mobile/app/core/notification/local_notification_service.dart'; + +class FcmNotificationHandler { + FcmNotificationHandler._(); + + static Future handleForeground(RemoteMessage message) async { + log('Foreground FCM: ${message.data}', name: 'FCM'); + + final payload = FcmPayload.fromMessage({ + 'notification': message.notification?.toMap(), + 'data': message.data, + }); + + if (payload.title != null && payload.body != null) { + await LocalNotificationService.show( + title: payload.title!, + body: payload.body!, + payload: payload.data, + ); + } + } + + static Future handleOpenedApp(RemoteMessage message) async { + log('Opened from FCM: ${message.data}', name: 'FCM'); + await NotificationRouter.handle(message.data); + } + + static Future handleLocalTap(String? payload) async { + if (payload == null) return; + await NotificationRouter.handleRaw(payload); + } + + static Future handleBackground(RemoteMessage message) async { + log('Background FCM: ${message.data}', name: 'FCM'); + await NotificationRouter.handle(message.data); + } +} diff --git a/lib/app/core/notification/fcm_route/notification_router.dart b/lib/app/core/notification/fcm_route/notification_router.dart new file mode 100644 index 0000000..7bf5440 --- /dev/null +++ b/lib/app/core/notification/fcm_route/notification_router.dart @@ -0,0 +1,110 @@ +import 'dart:convert'; +import 'dart:developer'; +import 'package:frontend_eccp_mobile/app/core/constants/globalkey.dart'; +import 'package:frontend_eccp_mobile/app/core/di/injection.dart'; +import 'package:frontend_eccp_mobile/app/core/navigation/app_navigator.dart'; +import 'package:frontend_eccp_mobile/app/core/navigation/app_routes.dart'; +import 'package:frontend_eccp_mobile/app/core/notification/fcm_route/notification_routes.dart'; +import 'package:frontend_eccp_mobile/modules/auth/login/data/model/user_session.dart'; + +class NotificationRouter { + NotificationRouter._(); + static Future handle(Map data) async { + log('NotificationRouter.handle: $data', name: 'FCM'); + + final page = data['page']?.toString(); + if (page == null || page.isEmpty) { + log('Missing page in notification payload', name: 'FCM'); + return; + } + + Map? params; + + final paramsRaw = data['params']; + if (paramsRaw is String && paramsRaw.isNotEmpty) { + try { + params = jsonDecode(paramsRaw) as Map; + } catch (_) { + log('Failed to decode params string', name: 'FCM'); + } + } else if (paramsRaw is Map) { + params = paramsRaw; + } + + params ??= Map.from(data) + ..remove('page') + ..remove('notification'); + + if (params.isEmpty) params = null; + + await _navigate(page: page, params: params); + } + + static Future handleRaw(String raw) async { + log('NotificationRouter.handleRaw: $raw', name: 'FCM'); + + if (raw.trim().isEmpty) return; + + try { + final decoded = jsonDecode(raw); + if (decoded is Map) { + await handle(decoded); + return; + } + } catch (_) {} + + if (raw.contains('=') && raw.contains('&')) { + try { + final uri = Uri(query: raw); + await handle(Map.from(uri.queryParameters)); + return; + } catch (_) {} + } + + try { + final normalized = raw + .replaceAll('{', '') + .replaceAll('}', '') + .split(',') + .map((e) => e.split(':')) + .where((e) => e.length == 2) + .fold>({}, (map, pair) { + final key = pair[0].trim(); + final value = pair[1].trim(); + + map[key] = int.tryParse(value) ?? value; + return map; + }); + + if (normalized.isNotEmpty) { + await handle(normalized); + return; + } + } catch (_) {} + + log('handleRaw failed to parse payload', name: 'FCM'); + } + + static Future _navigate({ + required String? page, + Map? params, + }) async { + final navContext = navigatorKey.currentContext; + if (navContext == null) return; + + if (!navContext.mounted) return; + + if (!getIt().isLoggedIn) { + await AppNavigator.clearAndPush( + navContext, + AppRoutes.login, + ); + return; + } + + if (page != null) { + if (!navContext.mounted) return; + await NotificationRoutes.routeToPage(navContext, page, params); + } + } +} diff --git a/lib/app/core/notification/fcm_route/notification_routes.dart b/lib/app/core/notification/fcm_route/notification_routes.dart new file mode 100644 index 0000000..213b83b --- /dev/null +++ b/lib/app/core/notification/fcm_route/notification_routes.dart @@ -0,0 +1,50 @@ +import 'dart:developer'; +import 'package:flutter/material.dart'; +import 'package:frontend_eccp_mobile/app/core/navigation/app_navigator.dart'; +import 'package:frontend_eccp_mobile/app/core/navigation/app_routes.dart'; + +class NotificationRoutes { + static Future routeToPage( + BuildContext context, + String page, + Map? params, + ) async { + log('Routing to page=$page params=$params', name: 'FCM'); + switch (page) { + case 'setting': + await AppNavigator.clearAndPush( + context, + AppRoutes.settings, + ); + return; + + case 'berkas': + final id = params?['id']; + + await AppNavigator.clearAndPush( + context, + AppRoutes.berkas, + onOpened: () async { + if (id != null) { + await AppNavigator.push( + context, + AppRoutes.berkas, + extra: { + 'berkasId': id.toString(), + }, + ); + } + }, + ); + return; + + default: + await AppNavigator.clearAndPush( + context, + AppRoutes.home, + ); + + log('Unknown notification page: $page', name: 'FCM'); + } + } +} diff --git a/lib/app/core/notification/fcm_service.dart b/lib/app/core/notification/fcm_service.dart new file mode 100644 index 0000000..684ceec --- /dev/null +++ b/lib/app/core/notification/fcm_service.dart @@ -0,0 +1,44 @@ +import 'dart:developer'; +import 'package:firebase_messaging/firebase_messaging.dart'; +import 'package:frontend_eccp_mobile/app/core/notification/fcm_background_handler.dart'; +import 'package:frontend_eccp_mobile/app/core/notification/fcm_notification_handler.dart'; +import 'package:frontend_eccp_mobile/app/core/notification/fcm_token_manager.dart'; +import 'package:frontend_eccp_mobile/app/core/notification/local_notification_service.dart'; +import 'package:frontend_eccp_mobile/app/core/notification/notification_intent_store.dart'; + +class FcmService { + FcmService._(); + + static final FirebaseMessaging _fcm = FirebaseMessaging.instance; + + static Future init() async { + await _fcm.requestPermission(); + + await LocalNotificationService.init( + onSelectNotification: FcmNotificationHandler.handleLocalTap, + ); + + final token = await FcmTokenManager.getToken(); + log('Initial FCM Token: $token', name: 'FCM'); + + FcmTokenManager.listenRefresh((token) { + log('FCM Token refreshed: $token', name: 'FCM'); + }); + + FirebaseMessaging.onMessage.listen( + FcmNotificationHandler.handleForeground, + ); + + FirebaseMessaging.onMessageOpenedApp.listen( + FcmNotificationHandler.handleOpenedApp, + ); + final initialMessage = await _fcm.getInitialMessage(); + if (initialMessage != null) { + NotificationIntentStore.pending = initialMessage.data; + } + + FirebaseMessaging.onBackgroundMessage( + firebaseMessagingBackgroundHandler, + ); + } +} diff --git a/lib/app/core/notification/fcm_token_manager.dart b/lib/app/core/notification/fcm_token_manager.dart new file mode 100644 index 0000000..a98b9c5 --- /dev/null +++ b/lib/app/core/notification/fcm_token_manager.dart @@ -0,0 +1,51 @@ +import 'dart:developer'; +import 'package:firebase_messaging/firebase_messaging.dart'; + +class FcmTokenManager { + FcmTokenManager._(); + + static final FirebaseMessaging _fcm = FirebaseMessaging.instance; + + static Future waitForAPNSToken() async { + String? apnsToken; + + while (apnsToken == null) { + await Future.delayed(const Duration(milliseconds: 500)); + apnsToken = await _fcm.getAPNSToken(); + } + + log('APNS Token ready: $apnsToken', name: 'FCM'); + } + + static Future getToken() async { + try { + await _fcm.requestPermission(); + + // await waitForAPNSToken(); + + final token = await _fcm.getToken(); + log('FCM Token: $token', name: 'FCM'); + + return token; + } catch (e) { + log('Get token error: $e', name: 'FCM'); + return null; + } + } + + static Future deleteToken() async { + try { + await _fcm.deleteToken(); + log('FCM Token deleted', name: 'FCM'); + } catch (e) { + log('Delete token error: $e', name: 'FCM'); + } + } + + static void listenRefresh(void Function(String token) onRefresh) { + FirebaseMessaging.instance.onTokenRefresh.listen((token) { + log('FCM Token refreshed: $token', name: 'FCM'); + onRefresh(token); + }); + } +} diff --git a/lib/app/core/notification/local_notification_service.dart b/lib/app/core/notification/local_notification_service.dart new file mode 100644 index 0000000..2d93229 --- /dev/null +++ b/lib/app/core/notification/local_notification_service.dart @@ -0,0 +1,54 @@ +import 'package:flutter_local_notifications/flutter_local_notifications.dart'; +import 'package:frontend_eccp_mobile/app/core/notification/fcm_config.dart'; + +typedef NotificationTapCallback = void Function(String? payload); + +class LocalNotificationService { + LocalNotificationService._(); + + static final FlutterLocalNotificationsPlugin _plugin = + FlutterLocalNotificationsPlugin(); + + static Future init({ + NotificationTapCallback? onSelectNotification, + }) async { + const android = AndroidInitializationSettings('@mipmap/ic_launcher'); + const ios = DarwinInitializationSettings(); + + const settings = InitializationSettings( + android: android, + iOS: ios, + ); + + await _plugin.initialize( + settings: settings, + onDidReceiveNotificationResponse: (response) { + onSelectNotification?.call(response.payload); + }, + ); + } + + static Future show({ + required String title, + required String body, + Map? payload, + }) async { + const androidDetails = AndroidNotificationDetails( + FcmConfig.defaultChannelId, + FcmConfig.defaultChannelName, + channelDescription: FcmConfig.defaultChannelDesc, + importance: Importance.high, + priority: Priority.high, + ); + + const details = NotificationDetails(android: androidDetails); + + await _plugin.show( + id: DateTime.now().millisecondsSinceEpoch ~/ 1000, + title: title, + body: body, + notificationDetails: details, + payload: payload?.toString(), + ); + } +} diff --git a/lib/app/core/notification/notification_intent_store.dart b/lib/app/core/notification/notification_intent_store.dart new file mode 100644 index 0000000..37e6df7 --- /dev/null +++ b/lib/app/core/notification/notification_intent_store.dart @@ -0,0 +1,19 @@ +class NotificationIntentStore { + NotificationIntentStore._(); + + static Map? _pendingData; + + static set pending(Map data) { + _pendingData = Map.from(data); + } + + static Map? get pending => _pendingData; + + static Map? consume() { + final data = _pendingData; + _pendingData = null; + return data; + } + + static bool get hasPending => _pendingData != null; +} diff --git a/lib/app/core/services/bottom_sheet_service.dart b/lib/app/core/services/bottom_sheet_service.dart new file mode 100644 index 0000000..1761545 --- /dev/null +++ b/lib/app/core/services/bottom_sheet_service.dart @@ -0,0 +1,295 @@ +import 'dart:async'; + +import 'package:flutter/material.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/constants.dart'; +import 'package:frontend_eccp_mobile/app/core/navigation/app_resume_once.dart'; +import 'package:frontend_eccp_mobile/app/core/navigation/settings_navigator.dart'; +import 'package:frontend_eccp_mobile/app/core/services/location_permission_service.dart'; +import 'package:internet_connection_checker/internet_connection_checker.dart'; +import 'package:modal_bottom_sheet/modal_bottom_sheet.dart'; + +typedef BottomSheetBuilder = Widget Function(BuildContext context); + +typedef LocationSheetBuilder = + Widget Function( + BuildContext context, { + required VoidCallback onOpenSettings, + VoidCallback? onRequestNow, + }); + +class BottomSheetService { + BottomSheetService._(); + + static bool _isShown = false; + + static BottomSheetBuilder? _noInternetBuilder; + static BottomSheetBuilder? _serverErrorBuilder; + static BottomSheetBuilder? _notFoundBuilder; + static BottomSheetBuilder? _sessionExpiredBuilder; + static LocationSheetBuilder? _locationPermissionBuilder; + + static StreamSubscription? _connSub; + + static void configure({ + BottomSheetBuilder? noInternetBuilder, + BottomSheetBuilder? serverErrorBuilder, + BottomSheetBuilder? notFoundBuilder, + BottomSheetBuilder? sessionExpiredBuilder, + LocationSheetBuilder? locationPermissionBuilder, + }) { + _noInternetBuilder = noInternetBuilder; + _serverErrorBuilder = serverErrorBuilder; + _notFoundBuilder = notFoundBuilder; + _sessionExpiredBuilder = sessionExpiredBuilder; + _locationPermissionBuilder = locationPermissionBuilder; + } + + static Future showNoInternet() => _show( + _noInternetBuilder, + _defaultNoInternet, + autoDismissOnReconnect: true, + ); + + static Future showServerError() => + _show(_serverErrorBuilder, _defaultServerError); + + static Future showNotFound() => + _show(_notFoundBuilder, _defaultNotFound); + + static Future showSessionExpired() => _show( + _sessionExpiredBuilder, + _defaultSessionExpired, + isDismissible: false, + ); + + static Future showCustom( + BottomSheetBuilder builder, { + bool isDismissible = true, + }) { + return _show(builder, builder, isDismissible: isDismissible); + } + + static Future showCustomReturn( + Widget Function(BuildContext) builder, { + bool isDismissible = true, + }) async { + return showModalBottomSheet( + context: navigatorKey.currentContext!, + isDismissible: isDismissible, + isScrollControlled: true, + + backgroundColor: Colors.transparent, + enableDrag: isDismissible, + useRootNavigator: true, + builder: builder, + ); + } + + static Future showLocationPermission({ + required VoidCallback onOpenSettings, + VoidCallback? onRequestNow, + }) { + final custom = _locationPermissionBuilder == null + ? null + : (BuildContext ctx) => _locationPermissionBuilder!( + ctx, + onOpenSettings: onOpenSettings, + onRequestNow: onRequestNow, + ); + + return _show( + custom, + (ctx) => _defaultLocationPermission( + ctx, + onOpenSettings: onOpenSettings, + onRequestNow: onRequestNow, + ), + ); + } + + static Future _show( + BottomSheetBuilder? custom, + BottomSheetBuilder fallback, { + bool autoDismissOnReconnect = false, + bool isDismissible = true, + }) async { + final navState = navigatorKey.currentState; + final overlayContext = navState?.overlay?.context ?? navState?.context; + + if (overlayContext == null || _isShown) return; + + _isShown = true; + + if (autoDismissOnReconnect) { + await _connSub?.cancel(); + _connSub = InternetConnectionChecker.instance.onStatusChange.listen( + (status) { + if (status == InternetConnectionStatus.connected && _isShown) { + final navigator = navigatorKey.currentState; + if (navigator != null && navigator.canPop()) { + navigator.pop(); + } + } + }, + ); + } + + try { + if (!overlayContext.mounted) return; + + await showMaterialModalBottomSheet( + context: overlayContext, + backgroundColor: Colors.transparent, + isDismissible: isDismissible, + enableDrag: isDismissible, + useRootNavigator: true, + duration: AppDurations.modalTransition, + builder: (ctx) { + return WillPopScope( + onWillPop: () async => isDismissible, + child: SafeArea( + top: false, + bottom: false, + child: custom != null ? custom(ctx) : fallback(ctx), + ), + ); + }, + ); + } finally { + _isShown = false; + await _connSub?.cancel(); + _connSub = null; + } + } + + static Widget _defaultNoInternet(BuildContext context) => Padding( + padding: AppPadding.p24, + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + const Icon(Icons.wifi_off, size: AppIconSizes.xxl), + AppSpacing.h12, + Text('Tidak ada internet', style: AppTextStyles.h3), + AppSpacing.h8, + Text( + 'Periksa koneksi kamu lalu coba lagi.', + style: AppTextStyles.small, + textAlign: TextAlign.center, + ), + ], + ), + ); + + static Widget _defaultServerError(BuildContext context) => Padding( + padding: AppPadding.p24, + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + const Icon(Icons.cloud_off, size: AppIconSizes.xxl), + AppSpacing.h12, + Text('Gangguan server', style: AppTextStyles.h3), + AppSpacing.h8, + Text( + 'Coba beberapa saat lagi.', + style: AppTextStyles.small, + textAlign: TextAlign.center, + ), + ], + ), + ); + + static Widget _defaultNotFound(BuildContext context) => Padding( + padding: AppPadding.p24, + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + const Icon(Icons.cloud_off, size: AppIconSizes.xxl), + AppSpacing.h12, + Text('Opps, kamu tersesat', style: AppTextStyles.h3), + AppSpacing.h8, + Text( + 'Baik, dimengerti. Mari kembali ke jalur semula.', + style: AppTextStyles.small, + textAlign: TextAlign.center, + ), + ], + ), + ); + + static Widget _defaultSessionExpired(BuildContext context) => Padding( + padding: AppPadding.p24, + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + const Icon(Icons.lock_outline, size: AppIconSizes.xxl), + AppSpacing.h12, + Text('Sesi berakhir', style: AppTextStyles.h3), + AppSpacing.h8, + Text( + 'Silakan login ulang untuk melanjutkan.', + style: AppTextStyles.small, + textAlign: TextAlign.center, + ), + AppSpacing.h16, + SizedBox( + width: double.infinity, + child: ElevatedButton( + onPressed: () => Navigator.of(context).pop(), + child: Text('Login Ulang', style: AppTextStyles.button), + ), + ), + ], + ), + ); + + static Widget _defaultLocationPermission( + BuildContext context, { + required VoidCallback onOpenSettings, + VoidCallback? onRequestNow, + }) { + return Padding( + padding: AppPadding.p24, + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + const Icon(Icons.my_location, size: AppIconSizes.xxl), + AppSpacing.h12, + Text('Permintaan Akses Lokasi', style: AppTextStyles.h3), + AppSpacing.h8, + Text( + 'Aplikasi ingin meminta akses lokasi kamu agar dapat memberikan pengalaman terbaik. Kamu dapat mengizinkan akses lokasi melalui pengaturan atau langsung sekarang.', + style: AppTextStyles.small, + textAlign: TextAlign.center, + ), + AppSpacing.h16, + SizedBox( + width: double.infinity, + child: ElevatedButton( + onPressed: () async { + final resumeFut = waitRecheckOnNextResume(() async { + if (await LocationPermissionService.recheckGranted()) { + onOpenSettings(); + } + }); + + await SettingsNavigator.openAppSettings(); + await resumeFut; + }, + child: Text('Buka Pengaturan', style: AppTextStyles.button), + ), + ), + if (onRequestNow != null) ...[ + AppSpacing.h8, + TextButton( + onPressed: () { + Navigator.of(context).pop(); + onRequestNow(); + }, + child: Text('Izinkan Sekarang', style: AppTextStyles.label), + ), + ], + ], + ), + ); + } +} diff --git a/lib/app/core/services/crashlytics_service.dart b/lib/app/core/services/crashlytics_service.dart new file mode 100644 index 0000000..14a7f59 --- /dev/null +++ b/lib/app/core/services/crashlytics_service.dart @@ -0,0 +1,75 @@ +import 'dart:async'; +import 'dart:developer' as developer; + +import 'package:firebase_crashlytics/firebase_crashlytics.dart'; +import 'package:flutter/foundation.dart'; +import 'package:frontend_eccp_mobile/app/core/config/app_flavor.dart'; + +class CrashlyticsService { + CrashlyticsService._(); + + static FirebaseCrashlytics get _instance => FirebaseCrashlytics.instance; + + static Future init() async { + await _instance.setCrashlyticsCollectionEnabled( + Flavor.isProd, + ); + if (kDebugMode) return; + + FlutterError.onError = (FlutterErrorDetails details) async { + await _instance.recordFlutterFatalError(details); + }; + + PlatformDispatcher.instance.onError = (error, stack) { + unawaited(_instance.recordError(error, stack, fatal: true)); + return true; + }; + } + + static Future log(String message) async { + if (kDebugMode) return; + await _instance.log(message); + } + + static Future recordError( + Object error, + StackTrace stack, { + String? reason, + bool fatal = false, + Map? context, + }) async { + if (kDebugMode) return; + if (context != null) { + context.forEach((key, value) async { + await _instance.setCustomKey(key, value.toString()); + }); + } + developer.log('CrashlyticsService.recordError: $reason'); + await _instance.recordError( + error, + stack, + reason: reason, + fatal: fatal, + ); + } + + static Future setUser({ + required String id, + String? nrp, + String? name, + }) async { + if (kDebugMode) return; + await _instance.setUserIdentifier(id); + if (nrp != null) { + await _instance.setCustomKey('nrp', nrp); + } + if (name != null) { + await _instance.setCustomKey('name', name); + } + } + + static Future clearUser() async { + if (kDebugMode) return; + await _instance.setUserIdentifier(''); + } +} diff --git a/lib/app/core/services/file_downloader.dart b/lib/app/core/services/file_downloader.dart new file mode 100644 index 0000000..65ed57b --- /dev/null +++ b/lib/app/core/services/file_downloader.dart @@ -0,0 +1,56 @@ +import 'dart:typed_data'; + +import 'package:dio/dio.dart'; +import 'package:file_picker/file_picker.dart'; + +class FileDownloader { + static Future downloadAndSave({ + required String url, + required String fileName, + void Function(int received, int total)? onProgress, + }) async { + final dio = Dio(); + + final response = await dio.get>( + url, + options: Options(responseType: ResponseType.bytes), + onReceiveProgress: onProgress, + ); + + final bytes = response.data; + + if (bytes == null) return null; + + final savedPath = await FilePicker.saveFile( + dialogTitle: 'Save File', + fileName: fileName, + type: FileType.custom, + allowedExtensions: ['pdf'], + bytes: Uint8List.fromList(bytes), + ); + + return savedPath; + } + + static Future> getFileInfo(String url) async { + final dio = Dio(); + + final response = await dio.head(url); + final headers = response.headers; + final size = headers.value('content-length'); + final sizeInBytes = int.tryParse(size ?? '0') ?? 0; + final sizeInMB = sizeInBytes / (1024 * 1024); + var fileName = url.split('/').last; + final disposition = headers.value('content-disposition'); + + if (disposition != null && disposition.contains('filename=')) { + fileName = disposition.split('filename=').last.replaceAll('"', ''); + } + + return { + 'name': fileName, + 'sizeMB': sizeInMB, + 'sizeBytes': sizeInBytes, + }; + } +} diff --git a/lib/app/core/services/image_picker_service.dart b/lib/app/core/services/image_picker_service.dart new file mode 100644 index 0000000..26d04a5 --- /dev/null +++ b/lib/app/core/services/image_picker_service.dart @@ -0,0 +1,21 @@ +import 'package:image_picker/image_picker.dart'; + +class ImagePickerService { + ImagePickerService._(); + + static final ImagePicker _picker = ImagePicker(); + + static Future pickFromGallery() async { + return _picker.pickImage( + source: ImageSource.gallery, + imageQuality: 85, + ); + } + + static Future pickFromCamera() async { + return _picker.pickImage( + source: ImageSource.camera, + imageQuality: 85, + ); + } +} diff --git a/lib/app/core/services/location_permission_service.dart b/lib/app/core/services/location_permission_service.dart new file mode 100644 index 0000000..abdf4df --- /dev/null +++ b/lib/app/core/services/location_permission_service.dart @@ -0,0 +1,153 @@ +import 'dart:async'; + +import 'package:flutter/foundation.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/enum/location_status_enum.dart'; +import 'package:frontend_eccp_mobile/app/core/services/bottom_sheet_service.dart'; +import 'package:frontend_eccp_mobile/app/core/utils/token_manager.dart'; +import 'package:geolocator/geolocator.dart'; + +class LocationPermissionService { + LocationPermissionService._(); + + static Future checkStatus() async { + final serviceEnabled = await Geolocator.isLocationServiceEnabled(); + if (!serviceEnabled) return SimpleLocationStatus.serviceDisabled; + + final perm = await Geolocator.checkPermission(); + switch (perm) { + case LocationPermission.always: + case LocationPermission.whileInUse: + return SimpleLocationStatus.granted; + case LocationPermission.denied: + case LocationPermission.unableToDetermine: + return SimpleLocationStatus.denied; + case LocationPermission.deniedForever: + return SimpleLocationStatus.deniedForever; + } + } + + static bool _requesting = false; + static Completer? _waiter; + + static Future _withLock(Future Function() body) async { + while (_requesting) { + _waiter ??= Completer(); + await _waiter!.future; + } + _requesting = true; + try { + return await body(); + } finally { + _requesting = false; + _waiter?.complete(); + _waiter = null; + } + } + + static Future request() => _withLock(() async { + var p = await Geolocator.checkPermission(); + if (p == LocationPermission.always || p == LocationPermission.whileInUse) { + return true; + } + + if (p == LocationPermission.deniedForever) { + return false; + } + + p = await Geolocator.requestPermission(); + return p == LocationPermission.always || p == LocationPermission.whileInUse; + }); + + static Future ensure({ + required VoidCallback onGranted, + VoidCallback? onNotGranted, + bool showSheetIfDenied = true, + bool returnImmediatelyOnDenied = false, + String? onlyOnceKey, + }) async { + final suppressSheet = + (showSheetIfDenied && onlyOnceKey != null) && + await TokenManager.getOneTimeFlag(onlyOnceKey); + + final serviceEnabled = await Geolocator.isLocationServiceEnabled(); + if (!serviceEnabled) { + onNotGranted?.call(); + if (showSheetIfDenied && !suppressSheet) { + final f = _showGoToSettingsSheet( + forServiceDisabled: true, + onAfterReturn: onGranted, + onlyOnceKey: onlyOnceKey, + allowRequestNow: false, + ); + if (returnImmediatelyOnDenied) { + unawaited(f); + return; + } + await f; + } + return; + } + + final grantedNow = await request(); + if (grantedNow) { + onGranted(); + return; + } + + onNotGranted?.call(); + + if (showSheetIfDenied && !suppressSheet) { + final f = _showGoToSettingsSheet( + forServiceDisabled: false, + onAfterReturn: onGranted, + onlyOnceKey: onlyOnceKey, + ); + if (returnImmediatelyOnDenied) { + unawaited(f); + return; + } + await f; + } + } + + static Future showGoToSettingsSheet({ + required VoidCallback onAfterReturn, + bool forServiceDisabled = false, + bool allowRequestNow = true, + String? onlyOnceKey, + }) async { + await _showGoToSettingsSheet( + onAfterReturn: onAfterReturn, + forServiceDisabled: forServiceDisabled, + allowRequestNow: allowRequestNow, + onlyOnceKey: onlyOnceKey, + ); + } + + static Future recheckGranted() async => + (await checkStatus()) == SimpleLocationStatus.granted; + + static Future _showGoToSettingsSheet({ + required VoidCallback onAfterReturn, + required bool forServiceDisabled, + bool allowRequestNow = true, + String? onlyOnceKey, + }) async { + if (onlyOnceKey != null) { + await TokenManager.setOneTimeFlag(onlyOnceKey, value: true); + } + + await BottomSheetService.showLocationPermission( + onOpenSettings: () async { + await Future.delayed(const Duration(milliseconds: 100)); + if (await recheckGranted()) onAfterReturn(); + }, + onRequestNow: allowRequestNow + ? () async { + final ok = await request(); + if (ok) onAfterReturn(); + } + : null, + ); + } +} diff --git a/lib/app/core/services/remote_config_service.dart b/lib/app/core/services/remote_config_service.dart new file mode 100644 index 0000000..a2cd3b3 --- /dev/null +++ b/lib/app/core/services/remote_config_service.dart @@ -0,0 +1,47 @@ +import 'dart:convert'; +import 'package:firebase_remote_config/firebase_remote_config.dart'; +import 'package:frontend_eccp_mobile/app/core/config/app_flavor.dart'; +import 'package:frontend_eccp_mobile/app/core/config/app_update_config.dart'; +import 'package:frontend_eccp_mobile/app/core/services/crashlytics_service.dart'; + +class RemoteConfigService { + RemoteConfigService._(); + + static final FirebaseRemoteConfig _rc = FirebaseRemoteConfig.instance; + + static Future init() async { + try { + await _rc.setConfigSettings( + RemoteConfigSettings( + fetchTimeout: const Duration(seconds: 10), + minimumFetchInterval: const Duration(minutes: 1), + ), + ); + + await _rc.fetchAndActivate(); + } catch (e, s) { + await CrashlyticsService.recordError( + e, + s, + reason: 'RemoteConfig init failed', + ); + } + } + + static Future getUpdateConfig() async { + try { + final raw = _rc.getString(Flavor.name); + if (raw.isEmpty) return null; + + final json = jsonDecode(raw) as Map; + return AppUpdateConfig.fromJson(json); + } catch (e, s) { + await CrashlyticsService.recordError( + e, + s, + reason: 'Invalid update config JSON', + ); + return null; + } + } +} diff --git a/lib/app/core/utils/app_validators.dart b/lib/app/core/utils/app_validators.dart new file mode 100644 index 0000000..9db2bac --- /dev/null +++ b/lib/app/core/utils/app_validators.dart @@ -0,0 +1,166 @@ +class AppValidators { + AppValidators._(); + + static String? required( + String value, { + String message = 'Field tidak boleh kosong', + }) { + if (value.trim().isEmpty) { + return message; + } + return null; + } + + static String? minLength( + String value, + int min, { + String? message, + }) { + if (value.length < min) { + return message ?? 'Minimal $min karakter'; + } + return null; + } + + static String? maxLength( + String value, + int max, { + String? message, + }) { + if (value.length > max) { + return message ?? 'Maksimal $max karakter'; + } + return null; + } + + static final _emailRegex = RegExp(r'^[\w\.-]+@([\w-]+\.)+[\w-]{2,}$'); + + static String? email( + String value, { + String emptyMessage = 'Email tidak boleh kosong', + String invalidMessage = 'Format email tidak valid', + }) { + if (value.trim().isEmpty) { + return emptyMessage; + } + + if (!_emailRegex.hasMatch(value.trim())) { + return invalidMessage; + } + + return null; + } + + static final _phoneRegex = RegExp(r'^[0-9]{9,15}$'); + + static String? phone( + String value, { + String emptyMessage = 'Nomor telepon tidak boleh kosong', + String invalidMessage = 'Nomor telepon tidak valid', + }) { + final v = value.replaceAll(RegExp('[^0-9]'), ''); + + if (v.isEmpty) { + return emptyMessage; + } + + if (!_phoneRegex.hasMatch(v)) { + return invalidMessage; + } + + return null; + } + + static String? password( + String value, { + int minLength = 8, + bool requireUppercase = true, + bool requireNumber = true, + bool requireSymbol = false, + }) { + if (value.isEmpty) { + return 'Password tidak boleh kosong'; + } + + if (value.length < minLength) { + return 'Password minimal $minLength karakter'; + } + + if (requireUppercase && !value.contains(RegExp('[A-Z]'))) { + return 'Password harus mengandung huruf besar'; + } + + if (requireNumber && !value.contains(RegExp('[0-9]'))) { + return 'Password harus mengandung angka'; + } + + if (requireSymbol && !value.contains(RegExp(r'[!@#$%^&*(),.?":{}|<>]'))) { + return 'Password harus mengandung simbol'; + } + + return null; + } + + static String? number( + String value, { + String message = 'Harus berupa angka', + }) { + if (value.isEmpty) return null; + + if (num.tryParse(value) == null) { + return message; + } + + return null; + } + + static String? minNumber( + String value, + num min, { + String? message, + }) { + final n = num.tryParse(value); + if (n == null) return 'Harus berupa angka'; + + if (n < min) { + return message ?? 'Minimal $min'; + } + return null; + } + + static String? maxNumber( + String value, + num max, { + String? message, + }) { + final n = num.tryParse(value); + if (n == null) return 'Harus berupa angka'; + + if (n > max) { + return message ?? 'Maksimal $max'; + } + return null; + } + + static String? equals( + String value, + String otherValue, { + String message = 'Nilai tidak sama', + }) { + if (value != otherValue) { + return message; + } + return null; + } + + static String? compose( + String value, + List validators, + ) { + for (final validator in validators) { + final result = validator(value); + if (result != null) return result; + } + return null; + } +} diff --git a/lib/app/core/utils/date_time_utils.dart b/lib/app/core/utils/date_time_utils.dart new file mode 100644 index 0000000..e382999 --- /dev/null +++ b/lib/app/core/utils/date_time_utils.dart @@ -0,0 +1,80 @@ +import 'package:intl/intl.dart'; + +class DateTimeUtils { + DateTimeUtils._(); + + static const _locale = 'id_ID'; + + static String yyyyMMdd(DateTime date) { + return DateFormat('yyyy-MM-dd', _locale).format(date); + } + + static String ddMMMyyyy(DateTime date) { + return DateFormat('dd MMM yyyy', _locale).format(date); + } + + static String ddMMMMyyyy(DateTime date) { + return DateFormat('dd MMMM yyyy', _locale).format(date); + } + + static String ddMMMyyyyHHmm(DateTime date) { + return DateFormat('dd MMM yyyy HH:mm', _locale).format(date); + } + + static String hhMM(DateTime date) { + return DateFormat('HH:mm', _locale).format(date); + } + + static String hhMMss(DateTime date) { + return DateFormat('HH:mm:ss', _locale).format(date); + } + + static String dayDDMMMMyyyy(DateTime date) { + return DateFormat('EEEE, dd MMMM yyyy', _locale).format(date); + } + + static String dayDDMMMMyyyyHHmm(DateTime date) { + return DateFormat('EEEE, dd MMMM yyyy HH:mm:ss', _locale).format(date); + } + + static DateTime? parse(String? value) { + if (value == null || value.isEmpty) return null; + return DateTime.tryParse(value); + } + + static String toApi(DateTime date) { + return DateFormat("yyyy-MM-dd'T'HH:mm:ss", _locale).format(date); + } + + static String timeAgo(DateTime date) { + final diff = DateTime.now().difference(date); + + if (diff.inSeconds < 60) { + return '${diff.inSeconds} detik lalu'; + } else if (diff.inMinutes < 60) { + return '${diff.inMinutes} menit lalu'; + } else if (diff.inHours < 24) { + return '${diff.inHours} jam lalu'; + } else if (diff.inDays < 7) { + return '${diff.inDays} hari lalu'; + } + + return dayDDMMMMyyyy(date); + } + + static String formatDateTimeWithGMT(DateTime date) { + final formatted = DateFormat( + 'MMM dd, yyyy hh:mm:ss a', + _locale, + ).format(date); + + final offset = date.timeZoneOffset; + + final sign = offset.isNegative ? '-' : '+'; + + final hours = offset.inHours.abs().toString().padLeft(2, '0'); + final minutes = (offset.inMinutes.abs() % 60).toString().padLeft(2, '0'); + + return '$formatted GMT$sign$hours:$minutes'; + } +} diff --git a/lib/app/core/utils/file_size.dart b/lib/app/core/utils/file_size.dart new file mode 100644 index 0000000..23fc80b --- /dev/null +++ b/lib/app/core/utils/file_size.dart @@ -0,0 +1,5 @@ +String formatFileSize(int bytes) { + if (bytes < 1024) return '$bytes B'; + if (bytes < 1024 * 1024) return '${(bytes / 1024).toStringAsFixed(1)} KB'; + return '${(bytes / (1024 * 1024)).toStringAsFixed(1)} MB'; +} diff --git a/lib/app/core/utils/session_manager.dart b/lib/app/core/utils/session_manager.dart new file mode 100644 index 0000000..5d3da27 --- /dev/null +++ b/lib/app/core/utils/session_manager.dart @@ -0,0 +1,58 @@ +import 'dart:convert'; +import 'package:shared_preferences/shared_preferences.dart'; + +class SessionManager { + static const _refreshTokenKey = 'refreshToken'; + static const _tokenKey = 'token'; + static const _userKey = 'user'; + + static Future saveToken(String token) async { + final prefs = await SharedPreferences.getInstance(); + await prefs.setString(_tokenKey, token); + } + + static Future saveRefreshToken(String token) async { + final prefs = await SharedPreferences.getInstance(); + await prefs.setString(_refreshTokenKey, token); + } + + static Future getToken() async { + final prefs = await SharedPreferences.getInstance(); + return prefs.getString(_tokenKey); + } + + static Future getRefreshToken() async { + final prefs = await SharedPreferences.getInstance(); + return prefs.getString(_refreshTokenKey); + } + + static Future saveUser(Map user) async { + final prefs = await SharedPreferences.getInstance(); + await prefs.setString(_userKey, jsonEncode(user)); + } + + static Future?> getUser() async { + final prefs = await SharedPreferences.getInstance(); + final data = prefs.getString(_userKey); + + if (data == null) return null; + + return jsonDecode(data) as Map; + } + + static Future getUserName() async { + final user = await getUser(); + return user?['name']?.toString() ?? ''; + } + + static Future getNrp() async { + final user = await getUser(); + return user?['nrp']?.toString() ?? ''; + } + + static Future clearSession() async { + final prefs = await SharedPreferences.getInstance(); + await prefs.remove(_tokenKey); + await prefs.remove(_userKey); + } +} diff --git a/lib/app/core/utils/show_message.dart b/lib/app/core/utils/show_message.dart new file mode 100644 index 0000000..9ff2870 --- /dev/null +++ b/lib/app/core/utils/show_message.dart @@ -0,0 +1,181 @@ +import 'dart:async'; + +import 'package:flutter/material.dart'; +import 'package:flutter_screenutil/flutter_screenutil.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/app_colors.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/enum/snackbar_type_enum.dart'; + +void showMessage( + BuildContext context, + String message, + SnackBarType snackBarType, { + int duration = 2000, +}) { + final overlay = Overlay.of(context); + + final indicatorColor = switch (snackBarType) { + SnackBarType.error => AppColors.primary900, + SnackBarType.success => AppColors.statusSuccess, + SnackBarType.warning => AppColors.statusWarning, + _ => const Color(0xFF7FAAF6), + }; + + late OverlayEntry entry; + + entry = OverlayEntry( + builder: (_) => _TopSnackBar( + message: message, + duration: duration, + indicatorColor: indicatorColor, + onDismiss: () { + entry.remove(); + }, + ), + ); + + overlay.insert(entry); +} + +class _TopSnackBar extends StatefulWidget { + const _TopSnackBar({ + required this.message, + required this.duration, + required this.indicatorColor, + required this.onDismiss, + }); + + final String message; + final int duration; + final Color indicatorColor; + final VoidCallback onDismiss; + + @override + State<_TopSnackBar> createState() => _TopSnackBarState(); +} + +class _TopSnackBarState extends State<_TopSnackBar> + with SingleTickerProviderStateMixin { + late AnimationController controller; + late Animation slideAnimation; + late Animation opacityAnimation; + + @override + void initState() { + super.initState(); + + controller = AnimationController( + vsync: this, + duration: const Duration(milliseconds: 620), + reverseDuration: const Duration(milliseconds: 520), + ); + + slideAnimation = + Tween( + begin: const Offset(0, -2), + end: Offset.zero, + ).animate( + CurvedAnimation( + parent: controller, + curve: Curves.easeOutCubic, + reverseCurve: Curves.easeInCubic, + ), + ); + + opacityAnimation = + Tween( + begin: 0, + end: 1, + ).animate( + CurvedAnimation( + parent: controller, + curve: Curves.easeOut, + ), + ); + + unawaited(controller.forward()); + + unawaited(_startTimer()); + } + + Future _startTimer() async { + await Future.delayed(Duration(milliseconds: widget.duration)); + await dismiss(); + } + + Future dismiss() async { + if (!mounted) return; + await controller.reverse(); + widget.onDismiss(); + } + + @override + void dispose() { + controller.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return Positioned( + top: MediaQuery.of(context).padding.top + 8, + left: 16.w, + right: 16.w, + child: SlideTransition( + position: slideAnimation, + child: FadeTransition( + opacity: opacityAnimation, + child: Material( + color: Colors.transparent, + child: GestureDetector( + onTap: dismiss, + child: Container( + constraints: BoxConstraints(maxWidth: 600.w), + decoration: BoxDecoration( + color: Colors.white, + borderRadius: BorderRadius.circular(8.r), + boxShadow: [ + BoxShadow( + color: Colors.black12, + blurRadius: 10.r, + offset: const Offset(0, 4), + ), + ], + ), + child: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Padding( + padding: EdgeInsets.fromLTRB(16.w, 12.h, 16.w, 0), + child: Text( + widget.message, + style: TextStyle( + fontSize: 14.sp, + fontWeight: FontWeight.w500, + color: Colors.black87, + ), + ), + ), + SizedBox(height: 12.h), + TweenAnimationBuilder( + duration: Duration(milliseconds: widget.duration), + tween: Tween(begin: 1, end: 0), + builder: (_, value, _) { + return LinearProgressIndicator( + value: value, + color: widget.indicatorColor, + backgroundColor: Colors.transparent, + minHeight: 4.h, + ); + }, + ), + ], + ), + ), + ), + ), + ), + ), + ); + } +} diff --git a/lib/app/core/utils/token_manager.dart b/lib/app/core/utils/token_manager.dart new file mode 100644 index 0000000..33b7e99 --- /dev/null +++ b/lib/app/core/utils/token_manager.dart @@ -0,0 +1,50 @@ +import 'dart:developer'; +import 'package:shared_preferences/shared_preferences.dart'; + +class TokenManager { + static const _tokenKey = 'token'; + static const _refreshTokenKey = 'refreshToken'; + static const _oneTimeFlagPrefix = 'one_time_flag__'; + + static Future setOneTimeFlag( + String name, { + required bool value, + }) async { + final prefs = await SharedPreferences.getInstance(); + await prefs.setBool('$_oneTimeFlagPrefix$name', value); + } + + static Future getOneTimeFlag(String name) async { + final prefs = await SharedPreferences.getInstance(); + return prefs.getBool('$_oneTimeFlagPrefix$name') ?? false; + } + + static Future clearOneTimeFlag( + String name, + ) async { + final prefs = await SharedPreferences.getInstance(); + await prefs.remove('$_oneTimeFlagPrefix$name'); + } + + static Future saveRefreshToken(String token) async { + log('SAVE REFRESH TOKEN: $token'); + final prefs = await SharedPreferences.getInstance(); + await prefs.setString(_refreshTokenKey, token); + } + + static Future clearToken() async { + final prefs = await SharedPreferences.getInstance(); + await prefs.setString(_refreshTokenKey, ''); + await prefs.setString(_tokenKey, ''); + } + + static Future getRefreshToken() async { + final prefs = await SharedPreferences.getInstance(); + return prefs.getString(_refreshTokenKey); + } + + static Future removeToken() async { + final prefs = await SharedPreferences.getInstance(); + await prefs.remove(_tokenKey); + } +} diff --git a/lib/app/core/utils/version_utils.dart b/lib/app/core/utils/version_utils.dart new file mode 100644 index 0000000..e4423a0 --- /dev/null +++ b/lib/app/core/utils/version_utils.dart @@ -0,0 +1,20 @@ +class VersionUtils { + static bool isNewer(String remote, String local) { + final r = _parse(remote); + final l = _parse(local); + + for (var i = 0; i < 3; i++) { + if (r[i] > l[i]) return true; + if (r[i] < l[i]) return false; + } + return false; + } + + static List _parse(String v) { + final parts = v.split('.'); + return List.generate( + 3, + (i) => i < parts.length ? int.tryParse(parts[i]) ?? 0 : 0, + ); + } +} diff --git a/lib/app/core/widgets/app_accordion.dart b/lib/app/core/widgets/app_accordion.dart new file mode 100644 index 0000000..19c9f3f --- /dev/null +++ b/lib/app/core/widgets/app_accordion.dart @@ -0,0 +1,118 @@ +import 'package:flutter/material.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/constants.dart'; + +class AppAccordion extends StatefulWidget { + const AppAccordion({ + required this.title, + required this.child, + this.description, + this.initialExpanded = false, + super.key, + }); + + final String title; + final String? description; + final Widget child; + final bool initialExpanded; + + @override + State createState() => _AppAccordionState(); +} + +class _AppAccordionState extends State { + late bool expanded; + + @override + void initState() { + super.initState(); + expanded = widget.initialExpanded; + } + + void toggle() { + setState(() { + expanded = !expanded; + }); + } + + @override + Widget build(BuildContext context) { + return Container( + margin: AppPadding.b12, + decoration: BoxDecoration( + color: Colors.white, + borderRadius: BorderRadius.circular(10), + border: Border.all(color: AppColors.neutral200), + boxShadow: [ + BoxShadow( + color: Colors.black.withOpacity(0.06), + blurRadius: 3, + ), + ], + ), + child: Column( + children: [ + InkWell( + onTap: toggle, + child: Padding( + padding: const EdgeInsets.symmetric( + horizontal: 14, + vertical: 12, + ), + child: Row( + children: [ + Expanded( + child: Text( + widget.title, + style: AppTextStyles.label.copyWith( + fontWeight: FontWeight.w700, + ), + ), + ), + AnimatedRotation( + turns: expanded ? 0.5 : 0, + duration: AppDurations.fast, + child: Icon( + Icons.keyboard_arrow_down, + color: AppColors.neutral400, + ), + ), + ], + ), + ), + ), + ClipRect( + child: AnimatedAlign( + alignment: Alignment.topCenter, + heightFactor: expanded ? 1 : 0, + duration: AppDurations.fast, + curve: Curves.easeInOut, + child: AnimatedOpacity( + opacity: expanded ? 1 : 0, + duration: AppDurations.fast, + child: Padding( + padding: const EdgeInsets.fromLTRB(14, 0, 14, 12), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + if (widget.description != null) ...[ + Text( + widget.description!, + style: AppTextStyles.small.copyWith( + fontStyle: FontStyle.italic, + color: AppColors.neutral700, + ), + ), + AppSpacing.h8, + ], + widget.child, + ], + ), + ), + ), + ), + ), + ], + ), + ); + } +} diff --git a/lib/app/core/widgets/app_bottom_nav.dart b/lib/app/core/widgets/app_bottom_nav.dart new file mode 100644 index 0000000..01a08d9 --- /dev/null +++ b/lib/app/core/widgets/app_bottom_nav.dart @@ -0,0 +1,108 @@ +import 'package:flutter/material.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/constants.dart'; +import 'package:iconsax_plus/iconsax_plus.dart'; + +class AppBottomNav extends StatelessWidget { + const AppBottomNav({ + required this.currentIndex, + required this.onTap, + super.key, + }); + + final int currentIndex; + final ValueChanged onTap; + + @override + Widget build(BuildContext context) { + return Container( + padding: EdgeInsets.only( + top: AppSizes.s12, + bottom: MediaQuery.of(context).viewPadding.bottom, + ), + decoration: BoxDecoration( + border: Border( + top: BorderSide(color: AppColors.neutral200), + ), + color: Colors.white, + ), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceAround, + children: [ + _NavItem( + 0, + currentIndex, + IconsaxPlusLinear.home_2, + IconsaxPlusBold.home_2, + 'Beranda', + onTap, + ), + _NavItem( + 1, + currentIndex, + IconsaxPlusLinear.document, + IconsaxPlusBold.document, + 'Berkas', + onTap, + ), + _NavItem( + 2, + currentIndex, + IconsaxPlusLinear.setting, + IconsaxPlusBold.setting, + 'Pengaturan', + onTap, + ), + ], + ), + ); + } +} + +class _NavItem extends StatelessWidget { + const _NavItem( + this.index, + this.currentIndex, + this.icon, + this.activeIcon, + this.label, + this.onTap, + ); + + final int index; + final int currentIndex; + final IconData icon; + final IconData activeIcon; + final String label; + final ValueChanged onTap; + + bool get isActive => index == currentIndex; + + @override + Widget build(BuildContext context) { + final activeColor = AppColors.primary900; + final inactiveColor = AppColors.neutral500; + + return GestureDetector( + behavior: HitTestBehavior.opaque, + onTap: () => onTap(index), + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + Icon( + isActive ? activeIcon : icon, + size: AppIconSizes.lg, + color: AppColors.primary900, + ), + AppSpacing.h4, + Text( + label, + style: AppTextStyles.badge.copyWith( + fontSize: 11, + color: isActive ? activeColor : inactiveColor, + ), + ), + ], + ), + ); + } +} diff --git a/lib/app/core/widgets/app_button.dart b/lib/app/core/widgets/app_button.dart new file mode 100644 index 0000000..b327359 --- /dev/null +++ b/lib/app/core/widgets/app_button.dart @@ -0,0 +1,128 @@ +import 'package:flutter/material.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/constants.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/enum/appbar_type_enum.dart'; + +class AppButton extends StatelessWidget { + const AppButton({ + required this.label, + required this.onPressed, + super.key, + this.type = AppButtonType.primary, + this.width, + this.height, + this.isExpanded = false, + this.radius = AppSizes.s8, + this.borderWidth = 1.5, + this.paddingVertical = 14, + this.paddingHorizontal = 24, + this.backgroundColor, + this.borderColor, + this.textColor, + this.fontSize = 16, + this.fontWeight = FontWeight.w600, + this.isLoading = false, + this.customContent, + }); + + final String label; + final VoidCallback? onPressed; + final AppButtonType type; + + final double? width; + final double? height; + final bool isExpanded; + + final double radius; + final double borderWidth; + final double paddingVertical; + final double paddingHorizontal; + + final Color? backgroundColor; + final Color? borderColor; + final Color? textColor; + + final double fontSize; + final FontWeight fontWeight; + final bool isLoading; + + final Widget? customContent; + + bool get _isPrimary => type == AppButtonType.primary; + + @override + Widget build(BuildContext context) { + final bgColor = _isPrimary + ? (backgroundColor ?? AppColors.primary900) + : (backgroundColor ?? AppColors.neutralWhite); + + final brColor = _isPrimary + ? Colors.transparent + : (borderColor ?? AppColors.primary900); + + final txtColor = _isPrimary + ? (textColor ?? Colors.white) + : (textColor ?? AppColors.primary900); + + final defaultChild = Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + AnimatedContainer( + duration: const Duration(milliseconds: 300), + width: isLoading ? AppIconSizes.sm : 0, + margin: EdgeInsets.only( + right: isLoading ? AppSizes.s12 : 0, + ), + child: AnimatedOpacity( + duration: const Duration(milliseconds: 200), + opacity: isLoading ? 1 : 0, + child: SizedBox( + width: AppIconSizes.sm, + height: AppIconSizes.sm, + child: CircularProgressIndicator( + strokeWidth: 2, + valueColor: AlwaysStoppedAnimation(txtColor), + ), + ), + ), + ), + Text( + label, + style: AppTextStyles.button.copyWith( + fontSize: fontSize, + fontWeight: fontWeight, + color: txtColor, + ), + ), + ], + ); + + final button = ElevatedButton( + onPressed: isLoading ? null : onPressed, + style: ElevatedButton.styleFrom( + elevation: 0, + backgroundColor: bgColor, + padding: EdgeInsets.symmetric( + vertical: paddingVertical, + horizontal: paddingHorizontal, + ), + shape: RoundedRectangleBorder( + side: BorderSide( + color: brColor, + width: borderWidth, + ), + borderRadius: BorderRadius.circular(radius), + ), + ), + child: AnimatedSize( + duration: const Duration(milliseconds: 300), + child: customContent ?? defaultChild, + ), + ); + + return SizedBox( + width: isExpanded ? double.infinity : width, + height: height, + child: button, + ); + } +} diff --git a/lib/app/core/widgets/app_dropdown.dart b/lib/app/core/widgets/app_dropdown.dart new file mode 100644 index 0000000..550aeb5 --- /dev/null +++ b/lib/app/core/widgets/app_dropdown.dart @@ -0,0 +1,65 @@ +import 'package:animated_custom_dropdown/custom_dropdown.dart'; +import 'package:flutter/material.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/constants.dart'; + +class AppDropdown extends StatelessWidget { + const AppDropdown({ + required this.items, + required this.onChanged, + super.key, + this.value, + this.title, + this.hint = 'Select', + this.showTitle = true, + this.isRequired = false, + this.isValid = true, + this.informationValid = '', + this.bgColor = const Color(0xFFF9FAFB), + this.borderColor = const Color(0xFFE5E7EB), + this.radius = AppSizes.s16, + }); + + final List items; + final T? value; + final ValueChanged onChanged; + + final String? title; + final String hint; + final bool showTitle; + final bool isRequired; + final bool isValid; + final String informationValid; + + final Color bgColor; + final Color borderColor; + final double radius; + + @override + Widget build(BuildContext context) { + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + if (showTitle && title != null) + Padding( + padding: const EdgeInsets.only(bottom: AppSizes.s12), + child: Text( + title!, + style: AppTextStyles.label, + ), + ), + CustomDropdown( + items: items, + initialItem: value, + onChanged: onChanged, + hintText: hint, + overlayHeight: 240, + decoration: CustomDropdownDecoration( + closedBorderRadius: BorderRadius.circular(radius), + closedFillColor: bgColor, + hintStyle: AppTextStyles.body, + ), + ), + ], + ); + } +} diff --git a/lib/app/core/widgets/app_empty.dart b/lib/app/core/widgets/app_empty.dart new file mode 100644 index 0000000..b822f03 --- /dev/null +++ b/lib/app/core/widgets/app_empty.dart @@ -0,0 +1,32 @@ +import 'package:flutter/material.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/app_colors.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/app_spacing.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/app_text_styles.dart'; +import 'package:iconsax_plus/iconsax_plus.dart'; + +Widget empty() { + return Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Icon( + IconsaxPlusLinear.task_square, + size: 42, + color: AppColors.neutral400, + ), + + AppSpacing.h12, + + Text( + 'Oops,', + style: AppTextStyles.label, + ), + + Text( + 'No Data Found', + style: AppTextStyles.small.copyWith( + color: AppColors.neutral600, + ), + ), + ], + ); +} diff --git a/lib/app/core/widgets/app_shad_textfield.dart b/lib/app/core/widgets/app_shad_textfield.dart new file mode 100644 index 0000000..cd49823 --- /dev/null +++ b/lib/app/core/widgets/app_shad_textfield.dart @@ -0,0 +1,212 @@ +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/constants.dart'; +import 'package:shadcn_ui/shadcn_ui.dart'; + +class AppShadInput extends StatefulWidget { + const AppShadInput({ + required this.title, + required this.hint, + super.key, + this.showTitle = true, + this.isRequired = false, + this.isEnabled = true, + this.width, + this.isPassword = false, + this.maxLines = 1, + this.maxLength, + this.keyboardType, + this.inputFormatters, + this.onChanged, + this.leading, + this.trailing, + this.focusNode, + this.textInputAction, + this.autofocus = false, + this.readOnly = false, + this.padding, + this.inputPadding = const EdgeInsets.symmetric(vertical: 7, horizontal: 5), + this.bgColor = Colors.white, + this.decoration, + this.controller, + this.isForm = false, + this.id, + this.validator, + this.description, + this.radius, + }); + + final String title; + final String hint; + + final bool showTitle; + final bool isRequired; + final bool isEnabled; + final double? width; + final double? radius; + + final bool isPassword; + final int maxLines; + final int? maxLength; + + final TextInputType? keyboardType; + final List? inputFormatters; + final void Function(String)? onChanged; + + final Widget? leading; + final Widget? trailing; + + final FocusNode? focusNode; + final TextInputAction? textInputAction; + final bool autofocus; + final bool readOnly; + + final EdgeInsetsGeometry? padding; + final EdgeInsetsGeometry inputPadding; + final Color bgColor; + final ShadDecoration? decoration; + + final TextEditingController? controller; + + final bool isForm; + final String? id; + final String? Function(String value)? validator; + final Widget? description; + + @override + State createState() => _AppShadInputState(); +} + +class _AppShadInputState extends State { + bool _obscure = true; + + @override + void initState() { + super.initState(); + + assert( + widget.isForm ? widget.id != null : widget.controller != null, + 'Jika isForm=true maka id wajib diisi, jika isForm=false maka controller wajib diisi', + ); + } + + ShadDecoration get _decoration => + widget.decoration ?? + ShadDecoration( + color: widget.bgColor, + border: ShadBorder.all( + color: AppColors.neutral200, + radius: BorderRadius.circular(widget.radius ?? AppSizes.s12), + ), + secondaryFocusedBorder: ShadBorder.all( + color: AppColors.neutral700, + width: 2, + radius: BorderRadius.circular( + (widget.radius ?? AppSizes.s12) + 4, + ), + ), + ); + + @override + Widget build(BuildContext context) { + final trailing = widget.isPassword + ? ShadIconButton( + width: 24, + height: 24, + backgroundColor: AppColors.neutral200, + pressedBackgroundColor: AppColors.neutral200, + icon: Icon( + _obscure ? LucideIcons.eyeOff : LucideIcons.eye, + size: 18, + color: AppColors.neutral600, + ), + onPressed: () { + setState(() => _obscure = !_obscure); + }, + ) + : widget.trailing; + + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + if (widget.showTitle) + Padding( + padding: const EdgeInsets.only(bottom: AppSizes.s12), + child: Row( + children: [ + Text( + widget.title, + style: AppTextStyles.label.copyWith( + color: AppColors.supportSteel600, + ), + ), + if (widget.isRequired) + const Text( + ' *', + style: TextStyle( + fontSize: 16, + color: Colors.red, + ), + ), + ], + ), + ), + SizedBox( + width: widget.width, + child: widget.isForm + ? ShadInputFormField( + id: widget.id, + enabled: widget.isEnabled, + validator: widget.validator, + description: widget.description, + placeholder: Text( + widget.hint, + style: AppTextStyles.body.copyWith( + color: AppColors.neutral900.withOpacity(0.5), + ), + ), + decoration: _decoration, + obscureText: widget.isPassword && _obscure, + maxLines: widget.maxLines, + maxLength: widget.maxLength, + keyboardType: widget.keyboardType, + inputFormatters: widget.inputFormatters, + onChanged: widget.onChanged, + leading: widget.leading, + onPressedOutside: (event) => FocusScope.of(context).unfocus(), + trailing: trailing, + inputPadding: widget.inputPadding, + style: AppTextStyles.body, + ) + : ShadInput( + controller: widget.controller, + enabled: widget.isEnabled, + focusNode: widget.focusNode, + readOnly: widget.readOnly, + autofocus: widget.autofocus, + keyboardType: widget.keyboardType, + textInputAction: widget.textInputAction, + maxLines: widget.maxLines, + maxLength: widget.maxLength, + inputFormatters: widget.inputFormatters, + obscureText: widget.isPassword && _obscure, + onChanged: widget.onChanged, + padding: widget.padding, + inputPadding: widget.inputPadding, + onPressedOutside: (event) => FocusScope.of(context).unfocus(), + decoration: _decoration, + placeholder: Text( + widget.hint, + style: AppTextStyles.body.copyWith( + color: AppColors.neutral900.withOpacity(0.5), + ), + ), + style: AppTextStyles.body, + leading: widget.leading, + trailing: trailing, + ), + ), + ], + ); + } +} diff --git a/lib/app/core/widgets/app_something_wrong.dart b/lib/app/core/widgets/app_something_wrong.dart new file mode 100644 index 0000000..e825ca0 --- /dev/null +++ b/lib/app/core/widgets/app_something_wrong.dart @@ -0,0 +1,36 @@ +import 'package:flutter/material.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/app_colors.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/app_spacing.dart'; +import 'package:google_fonts/google_fonts.dart'; +import 'package:iconsax_plus/iconsax_plus.dart'; + +Widget somethingWrong() { + return Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Icon( + IconsaxPlusLinear.cloud_remove, + size: 52, + color: AppColors.neutral400, + ), + AppSpacing.h12, + Text( + 'Oops, something wrong', + style: GoogleFonts.inter( + fontSize: 14, + fontWeight: FontWeight.w700, + color: AppColors.neutral900, + ), + ), + AppSpacing.h4, + Text( + 'Please try again later', + style: GoogleFonts.inter( + fontSize: 12, + color: AppColors.neutral600, + ), + ), + AppSpacing.h12, + ], + ); +} diff --git a/lib/app/core/widgets/app_textfield.dart b/lib/app/core/widgets/app_textfield.dart new file mode 100644 index 0000000..6a09062 --- /dev/null +++ b/lib/app/core/widgets/app_textfield.dart @@ -0,0 +1,278 @@ +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/constants.dart'; + +class AppTextField extends StatefulWidget { + const AppTextField({ + required this.title, + required this.hint, + required this.password, + required this.controller, + required this.isValid, + required this.informationValid, + super.key, + this.maxLine = 1, + this.maxLength, + this.showTitle = true, + this.isEnabled = true, + this.keyboardType, + this.radius = AppSizes.s16, + this.phoneText, + this.inputFormatters, + this.width, + this.isRequired = false, + this.contentPaddingVertical = AppSizes.s12, + this.prefixIcon, + this.showPrefixIcon = false, + this.prefixIconColor, + this.prefixIconSize = AppIconSizes.md, + this.prefixIconPadding = AppSizes.s12, + this.isDense = false, + this.minHeight, + this.onChanged, + this.iconRight, + this.bgColor = const Color(0xFFF9FAFB), + this.hintColor = const Color(0x800A0A0A), + this.titleColor = const Color(0xFF364153), + this.borderColor = const Color(0xFFE5E7EB), + }); + + final String title; + final String hint; + final bool password; + final TextEditingController controller; + + final int maxLine; + final int? maxLength; + final double contentPaddingVertical; + + final bool isEnabled; + final bool showTitle; + final bool isRequired; + final bool isValid; + + final String informationValid; + final double radius; + final double? width; + + final String? phoneText; + final TextInputType? keyboardType; + final List? inputFormatters; + + final Color bgColor; + final Color titleColor; + final Color hintColor; + final Color borderColor; + + final Widget? prefixIcon; + final bool showPrefixIcon; + final Color? prefixIconColor; + final double prefixIconSize; + final double prefixIconPadding; + + final bool isDense; + final double? minHeight; + + final Widget? iconRight; + final void Function(String)? onChanged; + + @override + State createState() => _AppTextFieldState(); +} + +class _AppTextFieldState extends State { + bool _showPass = true; + final FocusNode _focusNode = FocusNode(); + final GlobalKey _fieldKey = GlobalKey(); + OverlayEntry? _overlayEntry; + + void _scrollIntoView() { + WidgetsBinding.instance.addPostFrameCallback((_) async { + if (!mounted) return; + await Scrollable.ensureVisible( + context, + alignment: 0.25, + duration: const Duration(milliseconds: 200), + curve: Curves.easeOut, + ); + }); + } + + @override + void initState() { + super.initState(); + + _focusNode.addListener(() { + if (_focusNode.hasFocus) { + _addTapOutsideOverlay(); + _scrollIntoView(); + } else { + _removeTapOutsideOverlay(); + } + }); + } + + void _addTapOutsideOverlay() { + _overlayEntry = OverlayEntry( + builder: (_) => Positioned.fill( + child: GestureDetector( + behavior: HitTestBehavior.translucent, + onTap: _focusNode.unfocus, + ), + ), + ); + Overlay.of(context).insert(_overlayEntry!); + } + + void _removeTapOutsideOverlay() { + _overlayEntry?.remove(); + _overlayEntry = null; + } + + @override + void dispose() { + _removeTapOutsideOverlay(); + _focusNode.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return Column( + key: _fieldKey, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + if (widget.showTitle) + Padding( + padding: AppPadding.b8, + child: Row( + children: [ + Text( + widget.title, + style: AppTextStyles.label.copyWith( + color: widget.titleColor, + fontWeight: FontWeight.w400, + ), + ), + if (widget.isRequired) + Text( + ' *', + style: AppTextStyles.body.copyWith( + color: AppColors.primary500, + fontWeight: FontWeight.w600, + ), + ), + ], + ), + ), + Container( + width: widget.width, + constraints: widget.minHeight != null + ? BoxConstraints(minHeight: widget.minHeight!) + : null, + decoration: BoxDecoration( + color: widget.bgColor, + borderRadius: BorderRadius.circular(widget.radius), + border: Border.all( + color: widget.isValid ? widget.borderColor : AppColors.primary500, + width: 1.2, + ), + ), + child: Row( + children: [ + if (widget.showPrefixIcon && widget.prefixIcon != null) + Padding( + padding: EdgeInsets.only( + left: widget.prefixIconPadding, + right: AppSizes.s12, + ), + child: IconTheme( + data: IconThemeData( + size: widget.prefixIconSize, + color: widget.prefixIconColor ?? widget.hintColor, + ), + child: widget.prefixIcon!, + ), + ) + else + AppSpacing.w16, + if (widget.phoneText != null) + Padding( + padding: AppPadding.r8, + child: Text( + widget.phoneText!, + style: AppTextStyles.body.copyWith( + color: widget.hintColor, + fontWeight: FontWeight.w500, + ), + ), + ), + Expanded( + child: TextFormField( + controller: widget.controller, + obscureText: widget.password && _showPass, + maxLines: widget.maxLine, + enabled: widget.isEnabled, + maxLength: widget.maxLength, + keyboardType: widget.keyboardType, + inputFormatters: widget.inputFormatters, + style: AppTextStyles.body.copyWith( + fontSize: widget.isDense ? 13 : 14, + ), + decoration: InputDecoration( + isDense: widget.isDense, + hintText: widget.hint, + hintStyle: AppTextStyles.body.copyWith( + fontSize: widget.isDense ? 12 : 13, + color: widget.hintColor, + ), + contentPadding: EdgeInsets.symmetric( + vertical: widget.isDense + ? AppSizes.s8 + : widget.contentPaddingVertical, + ), + border: InputBorder.none, + counterText: '', + ), + onChanged: widget.onChanged, + ), + ), + if (widget.iconRight != null) + Padding( + padding: AppPadding.r12, + child: widget.iconRight, + ), + if (widget.password) + Padding( + padding: AppPadding.r12, + child: GestureDetector( + onTap: () => setState(() => _showPass = !_showPass), + child: Icon( + _showPass + ? Icons.visibility_off_rounded + : Icons.visibility_rounded, + size: AppIconSizes.md, + color: AppColors.neutral400, + ), + ), + ), + ], + ), + ), + if (!widget.isValid) + Padding( + padding: const EdgeInsets.only( + top: AppSizes.s8, + left: AppSizes.s12, + ), + child: Text( + widget.informationValid, + style: AppTextStyles.small.copyWith( + color: AppColors.primary500, + ), + ), + ), + ], + ); + } +} diff --git a/lib/app/core/widgets/bottomsheet/app_bottom_sheet.dart b/lib/app/core/widgets/bottomsheet/app_bottom_sheet.dart new file mode 100644 index 0000000..258e1b5 --- /dev/null +++ b/lib/app/core/widgets/bottomsheet/app_bottom_sheet.dart @@ -0,0 +1,211 @@ +import 'package:flutter/material.dart'; +import 'package:flutter_svg/flutter_svg.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/constants.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/enum/appbar_type_enum.dart'; +import 'package:frontend_eccp_mobile/app/core/widgets/app_button.dart'; +import 'package:frontend_eccp_mobile/app/core/widgets/bottomsheet/appbottomsheet_controller.dart'; + +class AppBottomSheet extends StatefulWidget { + const AppBottomSheet({ + required this.controller, + super.key, + this.icon, + this.title, + this.subTitle, + this.content, + this.primaryText, + this.secondaryText, + this.onPrimaryPressed, + this.onSecondaryPressed, + this.usePrimaryButton = true, + this.useSecondaryButton = false, + this.onOpened, + this.onClosed, + this.onDismissed, + this.enableDrag = true, + }); + + final AppBottomSheetController controller; + + final String? icon; + final String? title; + final String? subTitle; + final Widget? content; + + final String? primaryText; + final String? secondaryText; + final VoidCallback? onPrimaryPressed; + final VoidCallback? onSecondaryPressed; + + final bool useSecondaryButton; + final bool usePrimaryButton; + + final VoidCallback? onOpened; + final VoidCallback? onClosed; + final VoidCallback? onDismissed; + + final bool enableDrag; + + @override + State createState() => _AppBottomSheetState(); +} + +class _AppBottomSheetState extends State { + bool _dismissedBySystem = true; + + @override + void initState() { + super.initState(); + + WidgetsBinding.instance.addPostFrameCallback((_) { + widget.onOpened?.call(); + }); + } + + @override + void dispose() { + if (_dismissedBySystem) { + widget.onDismissed?.call(); + } + + widget.onClosed?.call(); + super.dispose(); + } + + void _closeByAction() { + _dismissedBySystem = false; + Navigator.pop(context); + } + + @override + Widget build(BuildContext context) { + return Material( + color: Colors.transparent, + child: AnimatedBuilder( + animation: widget.controller, + builder: (_, _) { + return Align( + alignment: Alignment.bottomCenter, + child: ConstrainedBox( + constraints: const BoxConstraints( + maxWidth: AppSizes.maxContentWidth, + ), + child: Container( + padding: EdgeInsets.fromLTRB( + AppSizes.s16, + AppSizes.s16, + AppSizes.s16, + MediaQuery.of(context).viewPadding.bottom + AppSizes.s16, + ), + decoration: const BoxDecoration( + color: Colors.white, + borderRadius: BorderRadius.vertical( + top: Radius.circular(16), + ), + ), + child: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + Center( + child: Container( + width: AppSizes.bottomSheetHandleWidth, + height: AppSizes.bottomSheetHandleHeight, + margin: const EdgeInsets.only( + bottom: AppSizes.s16, + ), + decoration: BoxDecoration( + color: AppColors.neutral200, + borderRadius: BorderRadius.circular(AppSizes.s8), + ), + ), + ), + + if (widget.icon != null) ...[ + Center( + child: widget.icon!.endsWith('.svg') + ? SvgPicture.asset( + widget.icon!, + width: + MediaQuery.of(context).size.width * + AppSizes.illustrationWidthFactor, + ) + : Image.asset( + widget.icon!, + width: + MediaQuery.of(context).size.width * + AppSizes.illustrationWidthFactor, + ), + ), + AppSpacing.h16, + ], + + if (widget.title != null) + Text( + widget.title!, + style: AppTextStyles.h3, + ), + + if (widget.subTitle != null) ...[ + AppSpacing.h8, + Text( + widget.subTitle!, + style: AppTextStyles.small, + ), + ], + + if (widget.content != null) ...[ + AppSpacing.h24, + widget.content!, + ], + + if (widget.useSecondaryButton || widget.usePrimaryButton) + AppSpacing.h24, + + Row( + children: [ + if (widget.useSecondaryButton) ...[ + Expanded( + child: AppButton( + radius: AppSizes.s12, + paddingVertical: AppSizes.s12, + backgroundColor: Colors.white, + label: widget.secondaryText ?? 'Batal', + type: AppButtonType.secondary, + onPressed: widget.controller.isLoading + ? null + : () { + _closeByAction(); + widget.onSecondaryPressed?.call(); + }, + ), + ), + AppSpacing.w12, + ], + + if (widget.usePrimaryButton) + Expanded( + child: AppButton( + label: widget.primaryText ?? 'OK', + radius: AppSizes.s12, + paddingVertical: AppSizes.s12, + isLoading: widget.controller.isLoading, + onPressed: widget.controller.isLoading + ? null + : () { + widget.onPrimaryPressed?.call(); + }, + ), + ), + ], + ), + ], + ), + ), + ), + ); + }, + ), + ); + } +} diff --git a/lib/app/core/widgets/bottomsheet/appbottomsheet_controller.dart b/lib/app/core/widgets/bottomsheet/appbottomsheet_controller.dart new file mode 100644 index 0000000..de77aa6 --- /dev/null +++ b/lib/app/core/widgets/bottomsheet/appbottomsheet_controller.dart @@ -0,0 +1,13 @@ +import 'package:flutter/foundation.dart'; + +class AppBottomSheetController extends ChangeNotifier { + bool _isLoading = false; + + bool get isLoading => _isLoading; + + void setLoading({required bool value}) { + if (_isLoading == value) return; + _isLoading = value; + notifyListeners(); + } +} diff --git a/lib/app/core/widgets/layout/app_screen.dart b/lib/app/core/widgets/layout/app_screen.dart new file mode 100644 index 0000000..c4b0283 --- /dev/null +++ b/lib/app/core/widgets/layout/app_screen.dart @@ -0,0 +1,289 @@ +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/constants.dart'; +import 'package:pull_to_refresh_flutter3/pull_to_refresh_flutter3.dart'; + +typedef AppAsyncCallback = Future Function(); + +class AppScreen extends StatelessWidget { + const AppScreen({ + required this.body, + super.key, + this.isSliver = false, + this.slivers, + this.appBar, + this.title, + this.centerTitle = true, + this.leading, + this.actions, + this.onBack, + this.useWillPopScope = false, + this.useShadowAppBar = true, + this.scrollableBody = true, + this.scrollController, + this.physics, + this.refreshController, + this.enablePullDown = false, + this.enablePullUp = false, + this.onRefresh, + this.onLoadMore, + this.refreshHeader, + this.refreshFooter, + this.footers, + this.footersPadding = AppPadding.p16, + this.hasSafeArea = true, + this.safeTop = true, + this.safeBottom, + this.safeLeft = true, + this.safeRight = true, + this.backgroundColor, + this.backgroundWidgets, + this.resizeToAvoidBottomInset, + this.floatingActionButton, + this.bottomNavigationBar, + this.extendBody = false, + this.extendBodyBehindAppBar = false, + this.statusBarStyle, + this.isLoading = false, + }); + final bool isLoading; + + final Widget body; + + final bool isSliver; + final List? slivers; + + final PreferredSizeWidget? appBar; + final bool useShadowAppBar; + final String? title; + final bool centerTitle; + final Widget? leading; + final List? actions; + final VoidCallback? onBack; + final bool useWillPopScope; + + final bool scrollableBody; + final ScrollController? scrollController; + final ScrollPhysics? physics; + + final RefreshController? refreshController; + final bool enablePullDown; + final bool enablePullUp; + final AppAsyncCallback? onRefresh; + final AppAsyncCallback? onLoadMore; + final Widget? refreshHeader; + final Widget? refreshFooter; + + final List? footers; + final EdgeInsets footersPadding; + + final bool hasSafeArea; + final bool safeTop; + final bool? safeBottom; + final bool safeLeft; + final bool safeRight; + + final Color? backgroundColor; + final List? backgroundWidgets; + final bool? resizeToAvoidBottomInset; + final Widget? floatingActionButton; + final Widget? bottomNavigationBar; + final bool extendBody; + final bool extendBodyBehindAppBar; + + final SystemUiOverlayStyle? statusBarStyle; + + Widget _wrapScrollbar(BuildContext context, Widget child) { + return ScrollbarTheme( + data: ScrollbarThemeData( + thumbColor: MaterialStateProperty.all(AppColors.neutral400), + thickness: MaterialStateProperty.all(3), + radius: const Radius.circular(AppSizes.s24), + ), + child: Scrollbar( + controller: scrollController, + interactive: true, + thumbVisibility: + MediaQuery.of(context).size.width > AppSizes.maxContentWidth, + child: child, + ), + ); + } + + Widget _buildBodyContent(BuildContext context) { + Widget content; + + if (isSliver) { + content = _wrapScrollbar( + context, + CustomScrollView( + controller: scrollController, + physics: physics, + slivers: slivers!, + ), + ); + } else { + content = body; + + if (scrollableBody) { + content = _wrapScrollbar( + context, + SingleChildScrollView( + controller: scrollController, + physics: physics, + child: content, + ), + ); + } + } + + if (refreshController != null) { + content = SmartRefresher( + controller: refreshController!, + enablePullDown: enablePullDown, + enablePullUp: enablePullUp, + onRefresh: onRefresh, + onLoading: onLoadMore, + header: refreshHeader, + footer: refreshFooter, + physics: physics, + child: content, + ); + } + + if (footers == null) return content; + + return Column( + children: [ + Expanded(child: content), + Padding( + padding: footersPadding, + child: Column( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: footers!, + ), + ), + ], + ); + } + + Widget _buildBody(BuildContext context) { + final content = backgroundWidgets == null + ? _buildBodyContent(context) + : Stack( + children: [ + ...backgroundWidgets!, + _buildBodyContent(context), + ], + ); + + final safeContent = hasSafeArea + ? SafeArea( + top: safeTop, + left: safeLeft, + right: safeRight, + bottom: + safeBottom ?? + (!kIsWeb && defaultTargetPlatform == TargetPlatform.android), + child: content, + ) + : content; + + return Stack( + children: [ + safeContent, + _buildLoadingOverlay(), + ], + ); + } + + Widget _buildLoadingOverlay() { + return AnimatedOpacity( + duration: const Duration(milliseconds: 200), + opacity: isLoading ? 1 : 0, + child: isLoading + ? Positioned.fill( + child: ColoredBox( + color: Colors.black.withOpacity(0.1), + child: Center( + child: Container( + width: 70, + height: 70, + padding: AppPadding.p16, + decoration: BoxDecoration( + color: AppColors.neutralWhite, + borderRadius: AppRadius.r10, + ), + child: CircularProgressIndicator( + color: AppColors.primary900, + strokeWidth: 3, + backgroundColor: Colors.transparent, + ), + ), + ), + ), + ) + : const SizedBox(), + ); + } + + PreferredSizeWidget? _buildAppBar(BuildContext context) { + if (appBar != null) return appBar; + if (title == null) return null; + + return AppBar( + backgroundColor: AppColors.neutralWhite, + surfaceTintColor: Colors.transparent, + scrolledUnderElevation: useShadowAppBar ? 4 : 0, + shadowColor: useShadowAppBar + ? Colors.black.withOpacity(AppOpacity.opacity15) + : Colors.transparent, + title: Text( + title!, + style: AppTextStyles.h3, + ), + centerTitle: centerTitle, + leading: + leading ?? + (onBack != null + ? IconButton( + icon: const Icon(Icons.arrow_back), + onPressed: onBack, + ) + : null), + actions: actions, + ); + } + + @override + Widget build(BuildContext context) { + final Widget screen = AnnotatedRegion( + value: + statusBarStyle ?? + SystemUiOverlayStyle.dark.copyWith( + statusBarColor: Colors.transparent, + ), + child: Scaffold( + backgroundColor: backgroundColor, + resizeToAvoidBottomInset: resizeToAvoidBottomInset, + appBar: _buildAppBar(context), + body: _buildBody(context), + floatingActionButton: floatingActionButton, + bottomNavigationBar: bottomNavigationBar, + extendBody: extendBody, + extendBodyBehindAppBar: extendBodyBehindAppBar, + ), + ); + + if (!useWillPopScope) return screen; + + return WillPopScope( + onWillPop: () async { + onBack?.call(); + return false; + }, + child: screen, + ); + } +} diff --git a/lib/app/core/widgets/pdf_viewer.dart b/lib/app/core/widgets/pdf_viewer.dart new file mode 100644 index 0000000..9d86d29 --- /dev/null +++ b/lib/app/core/widgets/pdf_viewer.dart @@ -0,0 +1,22 @@ +import 'package:flutter/material.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/app_colors.dart'; +import 'package:frontend_eccp_mobile/app/core/widgets/layout/app_screen.dart'; +import 'package:syncfusion_flutter_pdfviewer/pdfviewer.dart'; + +class PdfViewerPage extends StatelessWidget { + const PdfViewerPage({required this.url, super.key}); + + final String url; + + @override + Widget build(BuildContext context) { + return AppScreen( + title: 'Preview File', + backgroundColor: AppColors.neutralWhite, + scrollableBody: false, + body: SfPdfViewer.network( + url, + ), + ); + } +} diff --git a/lib/app/view/app.dart b/lib/app/view/app.dart new file mode 100644 index 0000000..343fafa --- /dev/null +++ b/lib/app/view/app.dart @@ -0,0 +1,70 @@ +import 'package:flutter/material.dart'; +import 'package:flutter_screenutil/flutter_screenutil.dart'; +import 'package:frontend_eccp_mobile/app/core/navigation/app_router.dart'; +import 'package:frontend_eccp_mobile/l10n/gen/app_localizations.dart'; +import 'package:shadcn_ui/shadcn_ui.dart'; + +class App extends StatelessWidget { + const App({super.key}); + + @override + Widget build(BuildContext context) { + return ShadApp.custom( + themeMode: ThemeMode.light, + darkTheme: ShadThemeData( + brightness: Brightness.dark, + colorScheme: const ShadSlateColorScheme.dark(), + ), + appBuilder: (contextShad) { + return ScreenUtilInit( + designSize: const Size(412, 915), + minTextAdapt: true, + splitScreenMode: true, + + enableScaleWH: () { + final width = MediaQueryData.fromWindow( + WidgetsBinding.instance.window, + ).size.width; + + return width < 600; + }, + + enableScaleText: () { + final width = MediaQueryData.fromWindow( + WidgetsBinding.instance.window, + ).size.width; + + return width < 600; + }, + + builder: (context, child) { + return MaterialApp.router( + routerDelegate: AppRouter.router.routerDelegate, + routeInformationParser: AppRouter.router.routeInformationParser, + routeInformationProvider: + AppRouter.router.routeInformationProvider, + + builder: (context, child) { + return ShadToaster( + child: child ?? const SizedBox(), + ); + }, + + theme: ThemeData( + appBarTheme: AppBarTheme( + backgroundColor: Theme.of(context).colorScheme.inversePrimary, + ), + useMaterial3: true, + ), + + debugShowCheckedModeBanner: false, + + localizationsDelegates: AppLocalizations.localizationsDelegates, + supportedLocales: AppLocalizations.supportedLocales, + ); + }, + ); + }, + ); + } +} diff --git a/lib/bootstrap.dart b/lib/bootstrap.dart new file mode 100644 index 0000000..1c7c917 --- /dev/null +++ b/lib/bootstrap.dart @@ -0,0 +1,146 @@ +import 'dart:async'; +import 'dart:developer'; + +import 'package:bloc/bloc.dart'; +import 'package:chucker_flutter/chucker_flutter.dart'; +import 'package:firebase_core/firebase_core.dart'; +import 'package:flutter/widgets.dart'; +import 'package:frontend_eccp_mobile/app/core/config/app_flavor.dart'; +import 'package:frontend_eccp_mobile/app/core/di/injection.dart'; +import 'package:frontend_eccp_mobile/app/core/navigation/app_resume_once.dart'; +import 'package:frontend_eccp_mobile/app/core/navigation/settings_navigator.dart'; +import 'package:frontend_eccp_mobile/app/core/notification/fcm_service.dart'; +import 'package:frontend_eccp_mobile/app/core/services/bottom_sheet_service.dart'; +import 'package:frontend_eccp_mobile/app/core/services/crashlytics_service.dart'; +import 'package:frontend_eccp_mobile/app/core/services/location_permission_service.dart'; +import 'package:frontend_eccp_mobile/app/core/utils/session_manager.dart'; +import 'package:frontend_eccp_mobile/app/core/widgets/bottomsheet/app_bottom_sheet.dart'; +import 'package:frontend_eccp_mobile/app/core/widgets/bottomsheet/appbottomsheet_controller.dart'; +import 'package:frontend_eccp_mobile/modules/auth/login/data/model/user_session.dart'; + +class AppBlocObserver extends BlocObserver { + const AppBlocObserver(); + + @override + void onChange(BlocBase bloc, Change change) { + super.onChange(bloc, change); + log('onChange(${bloc.runtimeType}, $change)'); + } + + @override + void onError(BlocBase bloc, Object error, StackTrace stackTrace) { + log('onError(${bloc.runtimeType}, $error, $stackTrace)'); + super.onError(bloc, error, stackTrace); + } +} + +Future initSession() async { + final session = getIt(); + + final token = await SessionManager.getToken(); + final user = await SessionManager.getUser(); + + if (token != null && user != null) { + session + ..token = token + ..user = user; + } +} + +Future bootstrap(FutureOr Function() builder) async { + FlutterError.onError = (details) { + log(details.exceptionAsString(), stackTrace: details.stack); + }; + WidgetsFlutterBinding.ensureInitialized(); + + await configureDependencies(); + await Firebase.initializeApp(); + await CrashlyticsService.init(); + await FcmService.init(); + await initSession(); + + Bloc.observer = const AppBlocObserver(); + + log('Running flavor: ${Flavor.name}'); + if (!Flavor.isProd) { + ChuckerFlutter.showOnRelease = true; + ChuckerFlutter.showNotification = false; + ChuckerFlutter.isDebugMode = true; + } + BottomSheetService.configure( + noInternetBuilder: (context) => AppBottomSheet( + controller: AppBottomSheetController(), + icon: 'assets/images/img-no-internet.png', + title: 'Eh, jaringannya hilang...', + subTitle: + 'Harap periksa kembali jaringan internetmu, coba lagi beberapa saat ya!', + primaryText: 'Baik, dimengerti', + onPrimaryPressed: () { + Navigator.pop(context); + }, + ), + serverErrorBuilder: (ctx) => AppBottomSheet( + controller: AppBottomSheetController(), + title: 'Mohon maaf kami sedang ada gangguan!', + primaryText: 'Baik, dimengerti', + icon: 'assets/images/img-server-error.png', + subTitle: + 'Saat ini permintaan kamu belum dapat diproses, coba lagi beberapa saat lagi ya!\nJika berlanjut, hubungi CS.', + onPrimaryPressed: () { + Navigator.pop(ctx); + }, + ), + notFoundBuilder: (ctx) => AppBottomSheet( + controller: AppBottomSheetController(), + title: 'Opps, kamu tersesat', + primaryText: 'Baik, dimengerti', + icon: 'assets/images/img-not-found.png', + subTitle: + 'Mari kembali ke jalur semula, coba lagi beberapa saat lagi ya!\nJika berlanjut, hubungi CS.', + onPrimaryPressed: () { + Navigator.pop(ctx); + }, + ), + sessionExpiredBuilder: (ctx) => AppBottomSheet( + controller: AppBottomSheetController(), + title: 'Sesi Berakhir', + primaryText: 'Login Ulang', + icon: 'assets/images/img-server-error.png', + subTitle: 'Silakan login ulang untuk melanjutkan.', + onPrimaryPressed: () { + Navigator.pop(ctx); + }, + ), + + locationPermissionBuilder: + ( + ctx, { + required onOpenSettings, + VoidCallback? onRequestNow, + }) { + return AppBottomSheet( + controller: AppBottomSheetController(), + title: 'Permintaan Akses Lokasi', + primaryText: 'Buka Pengaturan', + icon: 'assets/images/img-location-permission.png', + subTitle: + 'E-CPP ingin meminta akses lokasi kamu agar paket yang diberikan lebih cocok untukmu!', + onPrimaryPressed: () async { + final resumeFut = waitRecheckOnNextResume(() async { + if (await LocationPermissionService.recheckGranted()) { + onOpenSettings(); + } + }); + + await SettingsNavigator.openAppSettings(); + await resumeFut; + if (!ctx.mounted) return; + Navigator.pop(ctx); + }, + // onSecondary: onRequestNow, + ); + }, + ); + + runApp(await builder()); +} diff --git a/lib/l10n/arb/app_en.arb b/lib/l10n/arb/app_en.arb new file mode 100644 index 0000000..b698d63 --- /dev/null +++ b/lib/l10n/arb/app_en.arb @@ -0,0 +1,18 @@ +{ + "@@locale": "en", + "counterAppBarTitle": "Counter", + "@counterAppBarTitle": { + "description": "Text shown in the AppBar of the Counter Page" + }, + "@login": { + "title": "Sign-in to continue your maintenance tasks", + "labelUsername": "Employee ID / Username", + "descriptionUsername": "Enter your employee ID / Username", + "labelPassword": "Password", + "descriptionPassword": "Enter your password", + "loginForgotPassword": "Forgot Password?", + "loginButton": "Login", + "questTest": "Having trouble?", + "contactAdmin": "Contact Admin" + } +} diff --git a/lib/l10n/arb/app_es.arb b/lib/l10n/arb/app_es.arb new file mode 100644 index 0000000..0ac532b --- /dev/null +++ b/lib/l10n/arb/app_es.arb @@ -0,0 +1,7 @@ +{ + "@@locale": "es", + "counterAppBarTitle": "Contador", + "@counterAppBarTitle": { + "description": "Texto mostrado en la AppBar de la página del contador" + } +} diff --git a/lib/l10n/arb/app_id.arb b/lib/l10n/arb/app_id.arb new file mode 100644 index 0000000..847957f --- /dev/null +++ b/lib/l10n/arb/app_id.arb @@ -0,0 +1,11 @@ +{ + "@@locale": "id", + "counterAppBarTitle": "Penghitung", + "@counterAppBarTitle": { + "description": "Teks yang ditampilkan di AppBar pada Halaman Penghitung" + }, + "@loginTitle": "Masuk", + "@loginAppBarTitle": { + "description": "Teks yang ditampilkan di AppBar pada Halaman Login" + } +} diff --git a/lib/l10n/l10n.dart b/lib/l10n/l10n.dart new file mode 100644 index 0000000..bf9b906 --- /dev/null +++ b/lib/l10n/l10n.dart @@ -0,0 +1,8 @@ +import 'package:flutter/widgets.dart'; +import 'package:frontend_eccp_mobile/l10n/gen/app_localizations.dart'; + +export 'package:frontend_eccp_mobile/l10n/gen/app_localizations.dart'; + +extension AppLocalizationsX on BuildContext { + AppLocalizations get l10n => AppLocalizations.of(this); +} diff --git a/lib/main_development.dart b/lib/main_development.dart new file mode 100644 index 0000000..c18d310 --- /dev/null +++ b/lib/main_development.dart @@ -0,0 +1,9 @@ +import 'package:frontend_eccp_mobile/app/app.dart'; +import 'package:frontend_eccp_mobile/app/core/config/app_flavor.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/enum/app_flavor_enum.dart'; +import 'package:frontend_eccp_mobile/bootstrap.dart'; + +Future main() async { + Flavor.current = AppFlavor.development; + await bootstrap(() => const App()); +} diff --git a/lib/main_production.dart b/lib/main_production.dart new file mode 100644 index 0000000..e7b3acf --- /dev/null +++ b/lib/main_production.dart @@ -0,0 +1,9 @@ +import 'package:frontend_eccp_mobile/app/app.dart'; +import 'package:frontend_eccp_mobile/app/core/config/app_flavor.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/enum/app_flavor_enum.dart'; +import 'package:frontend_eccp_mobile/bootstrap.dart'; + +Future main() async { + Flavor.current = AppFlavor.production; + await bootstrap(() => const App()); +} diff --git a/lib/main_staging.dart b/lib/main_staging.dart new file mode 100644 index 0000000..0402449 --- /dev/null +++ b/lib/main_staging.dart @@ -0,0 +1,9 @@ +import 'package:frontend_eccp_mobile/app/app.dart'; +import 'package:frontend_eccp_mobile/app/core/config/app_flavor.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/enum/app_flavor_enum.dart'; +import 'package:frontend_eccp_mobile/bootstrap.dart'; + +Future main() async { + Flavor.current = AppFlavor.staging; + await bootstrap(() => const App()); +} diff --git a/lib/modules/auth/login/bloc/login_cubit.dart b/lib/modules/auth/login/bloc/login_cubit.dart new file mode 100644 index 0000000..cbf30cb --- /dev/null +++ b/lib/modules/auth/login/bloc/login_cubit.dart @@ -0,0 +1,73 @@ +import 'package:dio/dio.dart'; +import 'package:flutter_bloc/flutter_bloc.dart'; +import 'package:frontend_eccp_mobile/app/core/di/injection.dart'; +import 'package:frontend_eccp_mobile/app/core/services/crashlytics_service.dart'; +import 'package:frontend_eccp_mobile/app/core/utils/session_manager.dart'; +import 'package:frontend_eccp_mobile/modules/auth/login/bloc/login_state.dart'; +import 'package:frontend_eccp_mobile/modules/auth/login/data/model/login_request.dart'; +import 'package:frontend_eccp_mobile/modules/auth/login/data/model/user_session.dart'; +import 'package:frontend_eccp_mobile/modules/auth/login/data/repositories/login_repository.dart'; +import 'package:injectable/injectable.dart'; + +@injectable +class LoginCubit extends Cubit { + LoginCubit(this._repository) : super(LoginInitial()); + + final LoginRepository _repository; + + Future login({ + required String nrp, + required String password, + }) async { + emit(LoginLoading()); + + try { + final response = await _repository.login( + LoginRequest( + nrp: nrp, + password: password, + ), + ); + + if (response.status != 'success') { + emit(LoginFailure(response.message)); + return; + } + + await CrashlyticsService.setUser( + id: response.data.user.nrp, + nrp: response.data.user.nrp, + name: response.data.user.name, + ); + + await SessionManager.saveToken(response.data.accessToken); + await SessionManager.saveRefreshToken(response.data.refreshToken); + + final userMap = { + 'name': response.data.user.name, + 'nrp': response.data.user.nrp, + }; + + await SessionManager.saveUser(userMap); + + final _ = getIt() + ..token = response.data.accessToken + ..user = userMap; + + emit(LoginSuccess()); + } on DioException catch (e) { + final handled = e.requestOptions.extra['handledGlobally'] == true; + if (handled) return; + emit(LoginFailure(e.error?.toString())); + } catch (e, s) { + await CrashlyticsService.recordError( + e, + s, + fatal: true, + reason: 'Login Unknown Error', + ); + + emit(const LoginFailure('Terjadi kesalahan saat login')); + } + } +} diff --git a/lib/modules/auth/login/bloc/login_state.dart b/lib/modules/auth/login/bloc/login_state.dart new file mode 100644 index 0000000..efcbebe --- /dev/null +++ b/lib/modules/auth/login/bloc/login_state.dart @@ -0,0 +1,32 @@ +import 'package:equatable/equatable.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/enum/snackbar_type_enum.dart'; + +abstract class LoginState extends Equatable { + const LoginState(); + + @override + List get props => []; +} + +class LoginInitial extends LoginState {} + +class LoginLoading extends LoginState {} + +class LoginSuccess extends LoginState {} + +class LoginFailure extends LoginState { + const LoginFailure([ + this.message, + this.snackBarType = SnackBarType.error, + this.duration = 2000, + ]); + + final String? message; + final SnackBarType snackBarType; + final int duration; + + bool get hasMessage => message != null && message!.isNotEmpty; + + @override + List get props => [message, snackBarType, duration]; +} diff --git a/lib/modules/auth/login/data/datasources/login_remote_datasource.dart b/lib/modules/auth/login/data/datasources/login_remote_datasource.dart new file mode 100644 index 0000000..edec471 --- /dev/null +++ b/lib/modules/auth/login/data/datasources/login_remote_datasource.dart @@ -0,0 +1,29 @@ +import 'package:dio/dio.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/dio_constant.dart'; +import 'package:frontend_eccp_mobile/app/core/network/api_endpoint.dart'; +import 'package:frontend_eccp_mobile/app/core/network/dio_client.dart'; +import 'package:frontend_eccp_mobile/modules/auth/login/data/model/login_request.dart'; +import 'package:frontend_eccp_mobile/modules/auth/login/data/model/login_response.dart'; +import 'package:injectable/injectable.dart'; + +@lazySingleton +class LoginRemoteDataSource { + final Dio _dio = DioClient.getInstance(); + + Future login(LoginRequest request) async { + final response = await _dio.post>( + ApiEndpoint.login, + data: request.toJson(), + options: Options( + extra: {DioExtraKey.noAuth: true}, + ), + ); + + final data = response.data; + if (data == null) { + throw Exception('EMPTY_RESPONSE'); + } + + return LoginResponse.fromJson(data); + } +} diff --git a/lib/modules/auth/login/data/model/login_data.dart b/lib/modules/auth/login/data/model/login_data.dart new file mode 100644 index 0000000..cd7b223 --- /dev/null +++ b/lib/modules/auth/login/data/model/login_data.dart @@ -0,0 +1,29 @@ +import 'package:frontend_eccp_mobile/modules/auth/login/data/model/login_user.dart'; + +class LoginData { + LoginData({ + required this.accessToken, + required this.refreshToken, + required this.tokenType, + required this.expiresIn, + required this.user, + }); + + factory LoginData.fromJson(Map json) { + return LoginData( + accessToken: json['access_token']?.toString() ?? '', + refreshToken: json['refresh_token']?.toString() ?? '', + tokenType: json['token_type']?.toString() ?? '', + expiresIn: int.tryParse(json['expires_in']?.toString() ?? '0') ?? 0, + user: LoginUser.fromJson( + json['user'] as Map? ?? {}, + ), + ); + } + + final String accessToken; + final String refreshToken; + final String tokenType; + final int expiresIn; + final LoginUser user; +} diff --git a/lib/modules/auth/login/data/model/login_request.dart b/lib/modules/auth/login/data/model/login_request.dart new file mode 100644 index 0000000..9f5353b --- /dev/null +++ b/lib/modules/auth/login/data/model/login_request.dart @@ -0,0 +1,16 @@ +class LoginRequest { + LoginRequest({ + required this.nrp, + required this.password, + }); + + final String nrp; + final String password; + + Map toJson() { + return { + 'nrp': nrp, + 'password': password, + }; + } +} diff --git a/lib/modules/auth/login/data/model/login_response.dart b/lib/modules/auth/login/data/model/login_response.dart new file mode 100644 index 0000000..46c6ed9 --- /dev/null +++ b/lib/modules/auth/login/data/model/login_response.dart @@ -0,0 +1,23 @@ +import 'package:frontend_eccp_mobile/modules/auth/login/data/model/login_data.dart'; + +class LoginResponse { + LoginResponse({ + required this.status, + required this.message, + required this.data, + }); + + factory LoginResponse.fromJson(Map json) { + return LoginResponse( + status: json['status']?.toString() ?? '', + message: json['message']?.toString() ?? '', + data: LoginData.fromJson( + json['data'] as Map? ?? {}, + ), + ); + } + + final String status; + final String message; + final LoginData data; +} diff --git a/lib/modules/auth/login/data/model/login_user.dart b/lib/modules/auth/login/data/model/login_user.dart new file mode 100644 index 0000000..6d38e7a --- /dev/null +++ b/lib/modules/auth/login/data/model/login_user.dart @@ -0,0 +1,16 @@ +class LoginUser { + LoginUser({ + required this.name, + required this.nrp, + }); + + factory LoginUser.fromJson(Map json) { + return LoginUser( + name: json['name']?.toString() ?? '', + nrp: json['nrp']?.toString() ?? '', + ); + } + + final String name; + final String nrp; +} diff --git a/lib/modules/auth/login/data/model/user_session.dart b/lib/modules/auth/login/data/model/user_session.dart new file mode 100644 index 0000000..339ad4e --- /dev/null +++ b/lib/modules/auth/login/data/model/user_session.dart @@ -0,0 +1,14 @@ +class UserSession { + String? token; + Map? user; + + bool get isLoggedIn => token != null && token!.isNotEmpty; + + String get name => user?['name']?.toString() ?? ''; + String get nrp => user?['nrp']?.toString() ?? ''; + + void clear() { + token = null; + user = null; + } +} diff --git a/lib/modules/auth/login/data/repositories/login_repository.dart b/lib/modules/auth/login/data/repositories/login_repository.dart new file mode 100644 index 0000000..8d10f74 --- /dev/null +++ b/lib/modules/auth/login/data/repositories/login_repository.dart @@ -0,0 +1,15 @@ +import 'package:frontend_eccp_mobile/modules/auth/login/data/datasources/login_remote_datasource.dart'; +import 'package:frontend_eccp_mobile/modules/auth/login/data/model/login_request.dart'; +import 'package:frontend_eccp_mobile/modules/auth/login/data/model/login_response.dart'; +import 'package:injectable/injectable.dart'; + +@lazySingleton +class LoginRepository { + LoginRepository(this._remoteDatasource); + + final LoginRemoteDataSource _remoteDatasource; + + Future login(LoginRequest request) async { + return _remoteDatasource.login(request); + } +} diff --git a/lib/modules/auth/login/presentation/screen/login_page.dart b/lib/modules/auth/login/presentation/screen/login_page.dart new file mode 100644 index 0000000..9a18ca9 --- /dev/null +++ b/lib/modules/auth/login/presentation/screen/login_page.dart @@ -0,0 +1,194 @@ +import 'package:flutter/material.dart'; +import 'package:flutter_bloc/flutter_bloc.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/constants.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/enum/snackbar_type_enum.dart'; +import 'package:frontend_eccp_mobile/app/core/di/injection.dart'; +import 'package:frontend_eccp_mobile/app/core/navigation/app_navigator.dart'; +import 'package:frontend_eccp_mobile/app/core/navigation/app_routes.dart'; +import 'package:frontend_eccp_mobile/app/core/services/crashlytics_service.dart'; +import 'package:frontend_eccp_mobile/app/core/utils/app_validators.dart'; +import 'package:frontend_eccp_mobile/app/core/utils/show_message.dart'; +import 'package:frontend_eccp_mobile/app/core/widgets/app_button.dart'; +import 'package:frontend_eccp_mobile/app/core/widgets/app_shad_textfield.dart'; +import 'package:frontend_eccp_mobile/modules/auth/login/bloc/login_cubit.dart'; +import 'package:frontend_eccp_mobile/modules/auth/login/bloc/login_state.dart'; +import 'package:shadcn_ui/shadcn_ui.dart'; + +class LoginPage extends StatelessWidget { + const LoginPage({super.key}); + + @override + Widget build(BuildContext context) { + return BlocProvider( + create: (_) => getIt(), + child: const LoginUI(), + ); + } +} + +class LoginUI extends StatefulWidget { + const LoginUI({super.key}); + + @override + State createState() => _LoginUIState(); +} + +class _LoginUIState extends State { + final formKey = GlobalKey(); + + @override + void dispose() { + super.dispose(); + } + + Future _onLogin() async { + if (!formKey.currentState!.saveAndValidate()) return; + + await CrashlyticsService.log('Login attempt'); + + if (!mounted) return; + + await context.read().login( + nrp: formKey.currentState!.value['nrp']?.toString() ?? '', + password: formKey.currentState!.value['password']?.toString() ?? '', + ); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + backgroundColor: AppColors.neutralWhite, + body: BlocConsumer( + listener: (context, state) async { + await AppNavigator.clearAndPush( + context, + AppRoutes.home, + onOpened: () { + showMessage( + context, + 'Selamat, anda berhasil masuk', + SnackBarType.success, + ); + }, + ); + // if (state is LoginSuccess) { + // await AppNavigator.clearAndPush( + // context, + // AppRoutes.home, + // onOpened: () { + // showMessage( + // context, + // 'Selamat, anda berhasil masuk', + // SnackBarType.success, + // ); + // }, + // ); + // } else if (state is LoginFailure && state.hasMessage) { + // showMessage( + // context, + // state.message ?? '', + // state.snackBarType, + // duration: state.duration, + // ); + // } + }, + builder: (context, state) { + return SafeArea( + child: ShadForm( + key: formKey, + child: Align( + alignment: Alignment.topCenter, + child: ConstrainedBox( + constraints: const BoxConstraints(maxWidth: 520), + child: Padding( + padding: const EdgeInsets.all(8), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + AppSpacing.h48, + + Padding( + padding: AppPadding.h16, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + 'E-CPP DIVPROPAM POLRI', + style: AppTextStyles.h1, + textAlign: TextAlign.start, + ), + + Text( + 'Sign-in to continue', + style: AppTextStyles.h2Light, + textAlign: TextAlign.start, + ), + ], + ), + ), + + Padding( + padding: AppPadding.h12, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + AppSpacing.h36, + + AppShadInput( + title: 'NRP', + hint: 'Enter your NRP', + isForm: true, + id: 'nrp', + validator: (v) => AppValidators.required( + v, + message: 'NRP tidak boleh kosong', + ), + ), + + AppSpacing.h16, + + const AppShadInput( + title: 'Password', + hint: 'Enter your password', + isForm: true, + isPassword: true, + id: 'password', + validator: AppValidators.password, + ), + AppSpacing.h32, + + AppButton( + label: 'Login', + isExpanded: true, + onPressed: _onLogin, + isLoading: state is LoginLoading, + ), + ], + ), + ), + + const Spacer(), + + Align( + alignment: Alignment.bottomCenter, + child: Text( + '© 2026 E-CPP MABES POLRI. All rights reserved.', + style: AppTextStyles.body.copyWith( + color: AppColors.neutral600, + ), + ), + ), + + AppSpacing.h40, + ], + ), + ), + ), + ), + ), + ); + }, + ), + ); + } +} diff --git a/lib/modules/auth/refresh_token/data/datasources/auth_remote_datasource.dart b/lib/modules/auth/refresh_token/data/datasources/auth_remote_datasource.dart new file mode 100644 index 0000000..c80b0b9 --- /dev/null +++ b/lib/modules/auth/refresh_token/data/datasources/auth_remote_datasource.dart @@ -0,0 +1,30 @@ +import 'package:dio/dio.dart'; +import 'package:frontend_eccp_mobile/app/core/config/app_environment.dart'; +import 'package:frontend_eccp_mobile/app/core/network/api_endpoint.dart'; +import 'package:frontend_eccp_mobile/app/core/utils/session_manager.dart'; +import 'package:frontend_eccp_mobile/modules/auth/refresh_token/data/model/refresh_token_response.dart'; +import 'package:injectable/injectable.dart'; + +@lazySingleton +class AuthRemoteDataSource { + final Dio _dio = Dio( + BaseOptions( + baseUrl: AppEnvironment.baseUrl, + ), + ); + + Future refreshToken() async { + final token = await SessionManager.getRefreshToken(); + final response = await _dio.post>( + ApiEndpoint.refreshToken, + data: {'refresh_token': token}, + ); + + final data = response.data; + if (data == null) { + throw Exception('EMPTY_RESPONSE'); + } + + return RefreshTokenResponse.fromJson(data); + } +} diff --git a/lib/modules/auth/refresh_token/data/model/refresh_token_response.dart b/lib/modules/auth/refresh_token/data/model/refresh_token_response.dart new file mode 100644 index 0000000..bd6d608 --- /dev/null +++ b/lib/modules/auth/refresh_token/data/model/refresh_token_response.dart @@ -0,0 +1,30 @@ +class RefreshTokenResponse { + RefreshTokenResponse({ + required this.status, + required this.message, + required this.accessToken, + required this.refreshToken, + required this.tokenType, + required this.expiresIn, + }); + + factory RefreshTokenResponse.fromJson(Map json) { + final data = json['data'] as Map? ?? {}; + + return RefreshTokenResponse( + status: json['status']?.toString() ?? '', + message: json['message']?.toString() ?? '', + accessToken: data['access_token']?.toString() ?? '', + refreshToken: data['refresh_token']?.toString() ?? '', + tokenType: data['token_type']?.toString() ?? '', + expiresIn: int.tryParse(data['expires_in']?.toString() ?? '0') ?? 0, + ); + } + + final String status; + final String message; + final String accessToken; + final String refreshToken; + final String tokenType; + final int expiresIn; +} diff --git a/lib/modules/auth/refresh_token/data/repositories/auth_repository.dart b/lib/modules/auth/refresh_token/data/repositories/auth_repository.dart new file mode 100644 index 0000000..b615000 --- /dev/null +++ b/lib/modules/auth/refresh_token/data/repositories/auth_repository.dart @@ -0,0 +1,20 @@ +import 'package:frontend_eccp_mobile/modules/auth/refresh_token/data/datasources/auth_remote_datasource.dart'; +import 'package:frontend_eccp_mobile/modules/auth/refresh_token/data/model/refresh_token_response.dart'; +import 'package:injectable/injectable.dart'; + +@lazySingleton +class AuthRepository { + AuthRepository(this._remoteDatasource); + + final AuthRemoteDataSource _remoteDatasource; + + Future refreshToken() async { + final response = await _remoteDatasource.refreshToken(); + + if (response.status != 'success') { + throw Exception(response.message); + } + + return response; + } +} diff --git a/lib/modules/auth/refresh_token/services/auth_service.dart b/lib/modules/auth/refresh_token/services/auth_service.dart new file mode 100644 index 0000000..39506c8 --- /dev/null +++ b/lib/modules/auth/refresh_token/services/auth_service.dart @@ -0,0 +1,14 @@ +import 'package:frontend_eccp_mobile/modules/auth/refresh_token/data/model/refresh_token_response.dart'; +import 'package:frontend_eccp_mobile/modules/auth/refresh_token/data/repositories/auth_repository.dart'; +import 'package:injectable/injectable.dart'; + +@lazySingleton +class AuthService { + AuthService(this._repository); + + final AuthRepository _repository; + + Future refreshToken() async { + return _repository.refreshToken(); + } +} diff --git a/lib/modules/berkas/bloc/detail_berkas/detail_berkas_cubit.dart b/lib/modules/berkas/bloc/detail_berkas/detail_berkas_cubit.dart new file mode 100644 index 0000000..e69de29 diff --git a/lib/modules/berkas/bloc/detail_berkas/detail_berkas_state.dart b/lib/modules/berkas/bloc/detail_berkas/detail_berkas_state.dart new file mode 100644 index 0000000..e69de29 diff --git a/lib/modules/berkas/bloc/list_berkas/list_berkas_cubit.dart b/lib/modules/berkas/bloc/list_berkas/list_berkas_cubit.dart new file mode 100644 index 0000000..e69de29 diff --git a/lib/modules/berkas/bloc/list_berkas/list_berkas_state.dart b/lib/modules/berkas/bloc/list_berkas/list_berkas_state.dart new file mode 100644 index 0000000..e69de29 diff --git a/lib/modules/berkas/data/datasources/berkas_remote_datasource.dart b/lib/modules/berkas/data/datasources/berkas_remote_datasource.dart new file mode 100644 index 0000000..e69de29 diff --git a/lib/modules/berkas/data/models/berkas_model.dart b/lib/modules/berkas/data/models/berkas_model.dart new file mode 100644 index 0000000..78746bf --- /dev/null +++ b/lib/modules/berkas/data/models/berkas_model.dart @@ -0,0 +1,8 @@ +class BerkasModel { + BerkasModel({ + required this.title, + required this.description, + }); + final String title; + final String description; +} diff --git a/lib/modules/berkas/presentation/screen/berkas_page.dart b/lib/modules/berkas/presentation/screen/berkas_page.dart new file mode 100644 index 0000000..fcbdaee --- /dev/null +++ b/lib/modules/berkas/presentation/screen/berkas_page.dart @@ -0,0 +1,188 @@ +import 'package:flutter/material.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/constants.dart'; +import 'package:frontend_eccp_mobile/app/core/widgets/app_empty.dart'; +import 'package:frontend_eccp_mobile/app/core/widgets/layout/app_screen.dart'; +import 'package:frontend_eccp_mobile/modules/berkas/data/models/berkas_model.dart'; +import 'package:frontend_eccp_mobile/modules/berkas/presentation/widgets/Berkas_card.dart'; +import 'package:frontend_eccp_mobile/modules/berkas/presentation/widgets/Berkas_section_header.dart'; +import 'package:pull_to_refresh_flutter3/pull_to_refresh_flutter3.dart'; + +class BerkasPage extends StatefulWidget { + const BerkasPage({super.key}); + + @override + State createState() => _BerkasPageState(); +} + +class _BerkasPageState extends State { + final RefreshController _refreshController = RefreshController(); + + Future _onRefresh() async { + await Future.delayed(const Duration(seconds: 1)); + _refreshController.refreshCompleted(); + } + + @override + void dispose() { + _refreshController.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return AppScreen( + title: 'Berkas', + backgroundColor: AppColors.neutral50, + scrollableBody: false, + useShadowAppBar: false, + isSliver: true, + refreshController: _refreshController, + enablePullDown: true, + onRefresh: _onRefresh, + refreshHeader: const ClassicHeader(), + body: const SizedBox.shrink(), + slivers: [ + if (todayBerkas.isNotEmpty) + _buildSection( + title: 'Terbaru', + items: todayBerkas, + ), + + if (earlierBerkas.isNotEmpty) + _buildSection( + title: 'Lebih Lama', + items: earlierBerkas, + ), + + if (todayBerkas.isEmpty && earlierBerkas.isEmpty) + SliverToBoxAdapter( + child: SizedBox( + height: MediaQuery.of(context).size.height * 0.7, + child: Center( + child: empty(), + ), + ), + ), + + const SliverToBoxAdapter(child: AppSpacing.h24), + ], + ); + } + + SliverMainAxisGroup _buildSection({ + required String title, + required List items, + }) { + return SliverMainAxisGroup( + slivers: [ + SliverPersistentHeader( + pinned: true, + delegate: BerkasSectionHeaderDelegate(title: title), + ), + + SliverPadding( + padding: const EdgeInsets.symmetric( + horizontal: AppSizes.s16, + ), + sliver: SliverToBoxAdapter( + child: Center( + child: ConstrainedBox( + constraints: const BoxConstraints(maxWidth: 900), + child: Column( + children: List.generate(items.length, (index) { + final item = items[index]; + + return Padding( + padding: AppPadding.t8, + child: BerkasCard(item: item), + ); + }), + ), + ), + ), + ), + ), + + const SliverToBoxAdapter(child: AppSpacing.h16), + ], + ); + } +} + +final todayBerkas = [ + BerkasModel( + title: 'Rosaldo', + description: '2908388', + ), + BerkasModel( + title: 'Rosaldo', + description: '2908388', + ), + BerkasModel( + title: 'Rosaldo', + description: '2908388', + ), + BerkasModel( + title: 'Rosaldo', + description: '2908388', + ), + BerkasModel( + title: 'Rosaldo', + description: '2908388', + ), + BerkasModel( + title: 'Rosaldo', + description: '2908388', + ), +]; + +final earlierBerkas = [ + BerkasModel( + title: 'Rosaldo 2', + description: '2908389', + ), + BerkasModel( + title: 'Rosaldo 3', + description: '2928389', + ), + BerkasModel( + title: 'Rosaldo 4', + description: '2900389', + ), + BerkasModel( + title: 'Rosaldo 5', + description: '3908389', + ), + BerkasModel( + title: 'Rosaldo 2', + description: '2908389', + ), + BerkasModel( + title: 'Rosaldo 3', + description: '2928389', + ), + BerkasModel( + title: 'Rosaldo 4', + description: '2900389', + ), + BerkasModel( + title: 'Rosaldo 5', + description: '3908389', + ), + BerkasModel( + title: 'Rosaldo 2', + description: '2908389', + ), + BerkasModel( + title: 'Rosaldo 3', + description: '2928389', + ), + BerkasModel( + title: 'Rosaldo 4', + description: '2900389', + ), + BerkasModel( + title: 'Rosaldo 5', + description: '3908389', + ), +]; diff --git a/lib/modules/berkas/presentation/widgets/berkas_card.dart b/lib/modules/berkas/presentation/widgets/berkas_card.dart new file mode 100644 index 0000000..8f0dd09 --- /dev/null +++ b/lib/modules/berkas/presentation/widgets/berkas_card.dart @@ -0,0 +1,58 @@ +import 'package:flutter/material.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/constants.dart'; +import 'package:frontend_eccp_mobile/modules/berkas/data/models/berkas_model.dart'; +import 'package:shadcn_ui/shadcn_ui.dart'; + +class BerkasCard extends StatelessWidget { + const BerkasCard({ + required this.item, + super.key, + }); + + final BerkasModel item; + + @override + Widget build(BuildContext context) { + return Container( + padding: AppPadding.v16.add(AppPadding.h16), + decoration: BoxDecoration( + color: AppColors.neutralWhite, + borderRadius: AppRadius.r8, + boxShadow: AppShadows.sm, + ), + child: Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const ShadAvatar( + 'https://sample.com/avatar-1.png', + placeholder: Text('RS'), + ), + AppSpacing.w12, + Expanded(child: _buildContent()), + ], + ), + ); + } + + Widget _buildContent() { + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + item.title, + style: AppTextStyles.small.copyWith( + fontWeight: FontWeight.w700, + color: AppColors.neutral900, + ), + ), + AppSpacing.h2, + Text( + item.description, + style: AppTextStyles.xs.copyWith( + color: AppColors.neutral700, + ), + ), + ], + ); + } +} diff --git a/lib/modules/berkas/presentation/widgets/berkas_section_header.dart b/lib/modules/berkas/presentation/widgets/berkas_section_header.dart new file mode 100644 index 0000000..89864da --- /dev/null +++ b/lib/modules/berkas/presentation/widgets/berkas_section_header.dart @@ -0,0 +1,62 @@ +import 'package:flutter/material.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/constants.dart'; + +class BerkasSectionHeaderDelegate extends SliverPersistentHeaderDelegate { + BerkasSectionHeaderDelegate({ + required this.title, + }); + + final String title; + + @override + double get minExtent => 48; + + @override + double get maxExtent => 48; + + @override + Widget build( + BuildContext context, + double shrinkOffset, + bool overlapsContent, + ) { + final isTablet = MediaQuery.of(context).size.width > 600; + + return Container( + color: AppColors.neutral50, + alignment: Alignment.center, + child: ConstrainedBox( + constraints: const BoxConstraints(maxWidth: 900), + child: Padding( + padding: isTablet ? EdgeInsets.zero : AppPadding.h16, + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Text( + title, + style: AppTextStyles.label.copyWith( + fontWeight: FontWeight.w600, + color: AppColors.neutral700, + ), + ), + Text( + 'Lihat Semua', + style: AppTextStyles.small.copyWith( + fontWeight: FontWeight.w600, + color: AppColors.primary900, + ), + ), + ], + ), + ), + ), + ); + } + + @override + bool shouldRebuild( + covariant SliverPersistentHeaderDelegate oldDelegate, + ) { + return false; + } +} diff --git a/lib/modules/home/bloc/home_cubit.dart b/lib/modules/home/bloc/home_cubit.dart new file mode 100644 index 0000000..e69de29 diff --git a/lib/modules/home/bloc/home_state.dart b/lib/modules/home/bloc/home_state.dart new file mode 100644 index 0000000..e69de29 diff --git a/lib/modules/home/data/datasources/home_remote_datasource.dart b/lib/modules/home/data/datasources/home_remote_datasource.dart new file mode 100644 index 0000000..e69de29 diff --git a/lib/modules/home/data/model/home_model.dart b/lib/modules/home/data/model/home_model.dart new file mode 100644 index 0000000..e69de29 diff --git a/lib/modules/home/presentation/screen/home_page.dart b/lib/modules/home/presentation/screen/home_page.dart new file mode 100644 index 0000000..4bc13ee --- /dev/null +++ b/lib/modules/home/presentation/screen/home_page.dart @@ -0,0 +1,71 @@ +import 'dart:async'; + +import 'package:flutter/material.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/app_colors.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/app_text_styles.dart'; +import 'package:frontend_eccp_mobile/app/core/widgets/layout/app_screen.dart'; +import 'package:pull_to_refresh_flutter3/pull_to_refresh_flutter3.dart'; + +class HomePage extends StatefulWidget { + const HomePage({super.key}); + + @override + State createState() => _HomePageState(); +} + +class _HomePageState extends State { + @override + Widget build(BuildContext context) { + return const HomeUI(); + } +} + +class HomeUI extends StatefulWidget { + const HomeUI({super.key}); + + @override + State createState() => _HomeUIState(); +} + +class _HomeUIState extends State { + final RefreshController _refreshController = RefreshController(); + + Future _onRefresh() async { + onInit(); + await Future.delayed(const Duration(seconds: 1)); + _refreshController.refreshCompleted(); + } + + void onInit() {} + + @override + void initState() { + super.initState(); + onInit(); + } + + @override + void dispose() { + _refreshController.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return AppScreen( + backgroundColor: AppColors.neutralWhite, + refreshController: _refreshController, + enablePullDown: true, + onRefresh: _onRefresh, + refreshHeader: const ClassicHeader(), + body: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Center( + child: Text('Home Page', style: AppTextStyles.h4), + ), + ], + ), + ); + } +} diff --git a/lib/modules/home/presentation/widgets/home_title.dart b/lib/modules/home/presentation/widgets/home_title.dart new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/lib/modules/home/presentation/widgets/home_title.dart @@ -0,0 +1 @@ + diff --git a/lib/modules/profile/bloc/logout/logout_cubit.dart b/lib/modules/profile/bloc/logout/logout_cubit.dart new file mode 100644 index 0000000..99b292d --- /dev/null +++ b/lib/modules/profile/bloc/logout/logout_cubit.dart @@ -0,0 +1,37 @@ +import 'package:dio/dio.dart'; +import 'package:flutter_bloc/flutter_bloc.dart'; +import 'package:frontend_eccp_mobile/app/core/services/crashlytics_service.dart'; +import 'package:frontend_eccp_mobile/modules/profile/bloc/logout/logout_state.dart'; +import 'package:frontend_eccp_mobile/modules/profile/data/repositories/profile_repository.dart'; +import 'package:injectable/injectable.dart'; + +@injectable +class LogoutCubit extends Cubit { + LogoutCubit(this._repository) : super(LogoutInitial()); + + final ProfileRepository _repository; + + Future logout() async { + emit(LogoutLoading()); + + try { + final response = await _repository.logout(); + + if (response.status != 'success') { + emit(LogoutFailure(response.message)); + return; + } + emit(LogoutSuccess()); + } on DioException catch (e) { + emit(LogoutFailure(e.error?.toString())); + } catch (e, s) { + await CrashlyticsService.recordError( + e, + s, + fatal: true, + reason: 'Logout Unknown Error', + ); + emit(const LogoutFailure()); + } + } +} diff --git a/lib/modules/profile/bloc/logout/logout_state.dart b/lib/modules/profile/bloc/logout/logout_state.dart new file mode 100644 index 0000000..e2b95de --- /dev/null +++ b/lib/modules/profile/bloc/logout/logout_state.dart @@ -0,0 +1,25 @@ +import 'package:equatable/equatable.dart'; + +abstract class LogoutState extends Equatable { + const LogoutState(); + + @override + List get props => []; +} + +class LogoutInitial extends LogoutState {} + +class LogoutLoading extends LogoutState {} + +class LogoutSuccess extends LogoutState {} + +class LogoutFailure extends LogoutState { + const LogoutFailure([this.message]); + + final String? message; + + bool get hasMessage => message != null && message!.isNotEmpty; + + @override + List get props => [message]; +} diff --git a/lib/modules/profile/bloc/profile/profile_cubit.dart b/lib/modules/profile/bloc/profile/profile_cubit.dart new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/lib/modules/profile/bloc/profile/profile_cubit.dart @@ -0,0 +1 @@ + diff --git a/lib/modules/profile/bloc/profile/profile_state.dart b/lib/modules/profile/bloc/profile/profile_state.dart new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/lib/modules/profile/bloc/profile/profile_state.dart @@ -0,0 +1 @@ + diff --git a/lib/modules/profile/data/datasources/profile_remote_datasource.dart b/lib/modules/profile/data/datasources/profile_remote_datasource.dart new file mode 100644 index 0000000..4eff700 --- /dev/null +++ b/lib/modules/profile/data/datasources/profile_remote_datasource.dart @@ -0,0 +1,35 @@ +import 'package:dio/dio.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/dio_constant.dart'; +import 'package:frontend_eccp_mobile/app/core/network/api_endpoint.dart'; +import 'package:frontend_eccp_mobile/app/core/network/dio_client.dart'; +import 'package:frontend_eccp_mobile/modules/profile/data/model/logout/logout_response.dart'; +import 'package:injectable/injectable.dart'; + +@lazySingleton +class ProfileRemoteDataSource { + final Dio _dio = DioClient.getInstance(); + + Future logout() async { + try { + final response = await _dio.post>( + ApiEndpoint.logout, + options: Options( + extra: {DioExtraKey.noAuth: false}, + ), + ); + + final data = response.data; + if (data == null) { + throw Exception('EMPTY_RESPONSE'); + } + + return LogoutResponse.fromJson(data); + } on DioException catch (e) { + final responseData = e.response?.data; + if (responseData is Map) { + return LogoutResponse.fromJson(responseData); + } + throw Exception(e.error?.toString() ?? 'LOGOUT_FAILED'); + } + } +} diff --git a/lib/modules/profile/data/model/logout/logout_response.dart b/lib/modules/profile/data/model/logout/logout_response.dart new file mode 100644 index 0000000..609bc06 --- /dev/null +++ b/lib/modules/profile/data/model/logout/logout_response.dart @@ -0,0 +1,16 @@ +class LogoutResponse { + LogoutResponse({ + required this.status, + required this.message, + }); + + factory LogoutResponse.fromJson(Map json) { + return LogoutResponse( + status: json['status']?.toString() ?? '', + message: json['message']?.toString() ?? '', + ); + } + + final String status; + final String message; +} diff --git a/lib/modules/profile/data/model/profile/profile_response.dart b/lib/modules/profile/data/model/profile/profile_response.dart new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/lib/modules/profile/data/model/profile/profile_response.dart @@ -0,0 +1 @@ + diff --git a/lib/modules/profile/data/repositories/profile_repository.dart b/lib/modules/profile/data/repositories/profile_repository.dart new file mode 100644 index 0000000..8c1732d --- /dev/null +++ b/lib/modules/profile/data/repositories/profile_repository.dart @@ -0,0 +1,14 @@ +import 'package:frontend_eccp_mobile/modules/profile/data/datasources/profile_remote_datasource.dart'; +import 'package:frontend_eccp_mobile/modules/profile/data/model/logout/logout_response.dart'; +import 'package:injectable/injectable.dart'; + +@lazySingleton +class ProfileRepository { + ProfileRepository(this._remoteDatasource); + + final ProfileRemoteDataSource _remoteDatasource; + + Future logout() async { + return _remoteDatasource.logout(); + } +} diff --git a/lib/modules/profile/presentation/screen/profile_page.dart b/lib/modules/profile/presentation/screen/profile_page.dart new file mode 100644 index 0000000..f08c83f --- /dev/null +++ b/lib/modules/profile/presentation/screen/profile_page.dart @@ -0,0 +1,160 @@ +import 'package:clipboard/clipboard.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_bloc/flutter_bloc.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/constants.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/enum/snackbar_type_enum.dart'; +import 'package:frontend_eccp_mobile/app/core/di/injection.dart'; +import 'package:frontend_eccp_mobile/app/core/handler/auth_handler.dart'; +import 'package:frontend_eccp_mobile/app/core/navigation/app_navigator.dart'; +import 'package:frontend_eccp_mobile/app/core/navigation/app_routes.dart'; +import 'package:frontend_eccp_mobile/app/core/notification/fcm_token_manager.dart'; +import 'package:frontend_eccp_mobile/app/core/utils/show_message.dart'; +import 'package:frontend_eccp_mobile/app/core/utils/token_manager.dart'; +import 'package:frontend_eccp_mobile/app/core/widgets/app_button.dart'; +import 'package:frontend_eccp_mobile/app/core/widgets/layout/app_screen.dart'; +import 'package:frontend_eccp_mobile/modules/profile/bloc/logout/logout_cubit.dart'; +import 'package:frontend_eccp_mobile/modules/profile/bloc/logout/logout_state.dart'; +import 'package:frontend_eccp_mobile/modules/profile/presentation/widgets/profile_header_card.dart'; +import 'package:frontend_eccp_mobile/modules/profile/presentation/widgets/profile_menu_section.dart'; +import 'package:iconsax_plus/iconsax_plus.dart'; +import 'package:pull_to_refresh_flutter3/pull_to_refresh_flutter3.dart'; + +class ProfilePage extends StatelessWidget { + const ProfilePage({super.key}); + + @override + Widget build(BuildContext context) { + return BlocProvider( + create: (_) => getIt(), + child: const ProfileUI(), + ); + } +} + +class ProfileUI extends StatefulWidget { + const ProfileUI({super.key}); + + @override + State createState() => _ProfileUIState(); +} + +class _ProfileUIState extends State { + final RefreshController _refreshController = RefreshController(); + + Future _onRefresh() async { + await Future.delayed(const Duration(milliseconds: 800)); + _refreshController.refreshCompleted(); + } + + bool get isTablet => MediaQuery.of(context).size.width > 600; + + @override + Widget build(BuildContext context) { + return BlocConsumer( + listener: (context, state) async { + if (state is LogoutLoading) return; + + await TokenManager.clearToken(); + + if (!context.mounted) return; + + await AppNavigator.clearAndPush( + context, + AppRoutes.login, + ); + }, + builder: (context, state) { + return AppScreen( + title: 'PROFIL', + backgroundColor: AppColors.neutral50, + refreshController: _refreshController, + enablePullDown: true, + onRefresh: _onRefresh, + refreshHeader: const ClassicHeader(), + body: Center( + child: ConstrainedBox( + constraints: const BoxConstraints(maxWidth: 900), + child: Column( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + AppSpacing.h16, + + const Padding( + padding: AppPadding.h16, + child: ProfileHeaderCard(), + ), + + AppSpacing.h24, + + ProfileMenuSection( + title: 'Personal Information', + items: [ + ProfileMenuItem( + icon: IconsaxPlusLinear.personalcard, + label: 'My Details', + iconColor: AppColors.neutral900, + ), + ProfileMenuItem( + icon: IconsaxPlusLinear.lock, + label: 'Change Password', + iconColor: AppColors.neutral900, + ), + ProfileMenuItem( + icon: IconsaxPlusLinear.notification_1, + label: 'Copy FCM Token', + iconColor: AppColors.neutral900, + onTap: () async { + final token = await FcmTokenManager.getToken(); + await FlutterClipboard.copy(token ?? ''); + if (!context.mounted) return; + showMessage( + context, + 'FCM Token copied : \n${token ?? ''}', + SnackBarType.success, + ); + }, + ), + ], + ), + AppSpacing.h16, + + Padding( + padding: AppPadding.p16, + child: AppButton( + height: 48, + paddingVertical: 0, + label: '', + customContent: Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const Icon( + Icons.logout_rounded, + color: Colors.white, + ), + AppSpacing.w6, + Text( + 'Log Out', + style: AppTextStyles.label.copyWith( + color: AppColors.neutralWhite, + ), + ), + ], + ), + isExpanded: true, + onPressed: () async { + await AuthHandler.logout(context); + }, + isLoading: state is LogoutLoading, + ), + ), + + AppSpacing.h32, + ], + ), + ), + ), + ); + }, + ); + } +} diff --git a/lib/modules/profile/presentation/widgets/profile_header_card.dart b/lib/modules/profile/presentation/widgets/profile_header_card.dart new file mode 100644 index 0000000..efd15cd --- /dev/null +++ b/lib/modules/profile/presentation/widgets/profile_header_card.dart @@ -0,0 +1,54 @@ +import 'package:flutter/material.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/constants.dart'; + +class ProfileHeaderCard extends StatelessWidget { + const ProfileHeaderCard({super.key}); + + @override + Widget build(BuildContext context) { + return Container( + padding: AppPadding.p14, + decoration: BoxDecoration( + color: AppColors.neutralWhite, + borderRadius: AppRadius.r18, + boxShadow: AppShadows.md, + ), + child: Row( + children: [ + ClipRRect( + borderRadius: AppRadius.rFull, + child: Image.network( + 'https://i.pravatar.cc/150?img=12', + width: 64, + height: 64, + fit: BoxFit.cover, + ), + ), + + AppSpacing.w14, + + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + 'Rosaldo', + style: AppTextStyles.h3, + ), + + AppSpacing.h2, + + Text( + 'NRP : 1882098', + style: AppTextStyles.badge.copyWith( + color: AppColors.neutral600, + ), + ), + ], + ), + ), + ], + ), + ); + } +} diff --git a/lib/modules/profile/presentation/widgets/profile_menu_section.dart b/lib/modules/profile/presentation/widgets/profile_menu_section.dart new file mode 100644 index 0000000..e74eb09 --- /dev/null +++ b/lib/modules/profile/presentation/widgets/profile_menu_section.dart @@ -0,0 +1,137 @@ +import 'package:flutter/material.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/constants.dart'; + +class ProfileMenuSection extends StatelessWidget { + const ProfileMenuSection({ + required this.title, + required this.items, + this.backgroundColor = Colors.white, + super.key, + }); + + final String title; + final List items; + final Color backgroundColor; + + @override + Widget build(BuildContext context) { + return Padding( + padding: AppPadding.h16, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + title, + style: AppTextStyles.section, + ), + + AppSpacing.h12, + + Container( + decoration: BoxDecoration( + color: backgroundColor, + borderRadius: AppRadius.r14, + boxShadow: AppShadows.md, + ), + child: Column( + children: List.generate( + items.length, + (index) { + final item = items[index]; + final isLast = index == items.length - 1; + + return Column( + children: [ + _ProfileMenuTile(item: item), + + if (!isLast) + Divider( + height: 1, + thickness: 1, + color: AppColors.neutral200, + ), + ], + ); + }, + ), + ), + ), + ], + ), + ); + } +} + +class ProfileMenuItem { + ProfileMenuItem({ + required this.icon, + required this.label, + required this.iconColor, + this.onTap, + this.useArrow = true, + this.color, + }); + + final IconData icon; + final String label; + final bool useArrow; + final VoidCallback? onTap; + Color? color = AppColors.supportSteel600; + Color iconColor; +} + +class _ProfileMenuTile extends StatelessWidget { + const _ProfileMenuTile({ + required this.item, + }); + + final ProfileMenuItem item; + + @override + Widget build(BuildContext context) { + return InkWell( + borderRadius: AppRadius.r14, + onTap: item.onTap, + child: Padding( + padding: const EdgeInsets.symmetric( + horizontal: 14, + vertical: 14, + ), + child: Row( + children: [ + Container( + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(6), + color: item.iconColor.withValues(alpha: 0.1), + ), + padding: AppPadding.p6, + child: Icon( + item.icon, + size: AppIconSizes.md, + color: item.iconColor, + ), + ), + + AppSpacing.w12, + + Expanded( + child: Text( + item.label, + style: AppTextStyles.body.copyWith( + color: item.color, + ), + ), + ), + + if (item.useArrow) + Icon( + Icons.chevron_right, + size: AppIconSizes.lg, + color: AppColors.neutral400, + ), + ], + ), + ), + ); + } +} diff --git a/lib/modules/splash/presentation/screen/splash_screen.dart b/lib/modules/splash/presentation/screen/splash_screen.dart new file mode 100644 index 0000000..bde8ee8 --- /dev/null +++ b/lib/modules/splash/presentation/screen/splash_screen.dart @@ -0,0 +1,106 @@ +import 'dart:async'; + +import 'package:flutter/material.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/constants.dart'; +import 'package:frontend_eccp_mobile/app/core/handler/auth_handler.dart'; +import 'package:frontend_eccp_mobile/app/core/navigation/app_navigator.dart'; +import 'package:frontend_eccp_mobile/app/core/navigation/app_routes.dart'; +import 'package:frontend_eccp_mobile/app/core/services/remote_config_service.dart'; +import 'package:frontend_eccp_mobile/app/core/utils/version_utils.dart'; +import 'package:package_info_plus/package_info_plus.dart'; + +class SplashScreen extends StatefulWidget { + const SplashScreen({super.key}); + + @override + State createState() => _SplashScreenState(); +} + +class _SplashScreenState extends State { + @override + void initState() { + super.initState(); + unawaited(_init()); + } + + Future _init() async { + await Future.delayed(const Duration(seconds: 2)); + + await RemoteConfigService.init(); + + final config = await RemoteConfigService.getUpdateConfig(); + final info = await PackageInfo.fromPlatform(); + + if (!mounted) return; + + if (config != null && VersionUtils.isNewer(config.version, info.version)) { + await AppNavigator.clearAndPush( + context, + AppRoutes.updateApp, + extra: { + 'version': config.version, + 'link': config.linkUpdate, + }, + ); + return; + } + + await AuthHandler.handleAuth(context); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + backgroundColor: AppColors.primary700, + body: Stack( + children: [ + Positioned.fill( + child: Image.asset( + 'assets/images/signature_pattern.jpg', + fit: BoxFit.cover, + ), + ), + + Positioned.fill( + child: Container( + color: AppColors.neutralWhite.withOpacity(0.9), + ), + ), + + Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Image.asset( + 'assets/images/logo.png', + height: 140, + ), + + AppSpacing.h16, + + Text( + 'E-CPP', + style: AppTextStyles.h1.copyWith( + fontWeight: FontWeight.w900, + fontStyle: FontStyle.italic, + color: AppColors.primary900, + ), + ), + + AppSpacing.h6, + + Text( + 'DIV PROPAM MABES POLRI', + style: AppTextStyles.body.copyWith( + fontWeight: FontWeight.w500, + color: AppColors.primary900, + ), + ), + ], + ), + ), + ], + ), + ); + } +} diff --git a/lib/modules/update/presentation/update_page.dart b/lib/modules/update/presentation/update_page.dart new file mode 100644 index 0000000..70f38d0 --- /dev/null +++ b/lib/modules/update/presentation/update_page.dart @@ -0,0 +1,179 @@ +import 'dart:ui'; + +import 'package:flutter/material.dart'; +import 'package:frontend_eccp_mobile/app/core/constants/app_colors.dart'; +import 'package:frontend_eccp_mobile/app/core/widgets/app_button.dart'; +import 'package:google_fonts/google_fonts.dart'; +import 'package:url_launcher/url_launcher.dart'; + +class UpdatePage extends StatelessWidget { + const UpdatePage({ + required this.version, + required this.link, + super.key, + }); + + final String version; + final String link; + + Future _openLink() async { + if (link.isEmpty) return; + + final uri = Uri.parse(link); + await launchUrl( + uri, + mode: LaunchMode.externalApplication, + ); + } + + @override + Widget build(BuildContext context) { + return WillPopScope( + onWillPop: () async => false, + child: Scaffold( + body: Stack( + children: [ + Positioned.fill( + child: Image.asset( + 'assets/images/signature_pattern.jpg', + fit: BoxFit.cover, + ), + ), + Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Image.asset( + 'assets/images/logo.png', + height: 140, + ), + const SizedBox(height: 16), + Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text( + 'E-CPP', + style: GoogleFonts.inter( + fontSize: 24.72, + fontWeight: FontWeight.w900, + fontStyle: FontStyle.italic, + color: AppColors.neutralWhite, + ), + ), + ], + ), + const SizedBox(height: 6), + Text( + 'DIV PROPAM MABES POLRI', + style: GoogleFonts.inter( + fontSize: 14, + fontWeight: FontWeight.w500, + color: AppColors.neutralWhite, + ), + ), + ], + ), + ), + + Positioned.fill( + child: BackdropFilter( + filter: ImageFilter.blur(sigmaX: 4, sigmaY: 4), + child: Container( + color: Colors.black.withOpacity(0.4), + ), + ), + ), + Align( + alignment: Alignment.bottomCenter, + child: SafeArea( + child: Padding( + padding: const EdgeInsets.fromLTRB(16, 0, 16, 16), + child: _UpdateBottomSheet( + onUpdate: _openLink, + version: version, + ), + ), + ), + ), + ], + ), + ), + ); + } +} + +class _UpdateBottomSheet extends StatelessWidget { + const _UpdateBottomSheet({ + required this.onUpdate, + required this.version, + }); + final String version; + final VoidCallback onUpdate; + + @override + Widget build(BuildContext context) { + return Material( + color: Colors.white, + borderRadius: BorderRadius.circular(20), + elevation: 12, + child: Padding( + padding: const EdgeInsets.fromLTRB(16, 16, 16, 24), + child: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + ClipRRect( + borderRadius: BorderRadius.circular(12), + child: Image.asset( + 'assets/images/signature_pattern.jpg', + width: double.infinity, + fit: BoxFit.cover, + ), + ), + + const SizedBox(height: 16), + + Text( + 'App update is required', + textAlign: TextAlign.center, + style: Theme.of(context).textTheme.titleMedium?.copyWith( + fontWeight: FontWeight.w600, + fontSize: 24, + ), + ), + + const SizedBox(height: 8), + + Text( + 'Your current app version is expired. Please update\nthe app to continue', + textAlign: TextAlign.start, + style: Theme.of(context).textTheme.bodySmall?.copyWith( + color: AppColors.neutral900, + ), + ), + const SizedBox(height: 12), + + Text( + 'New Version Available : $version', + textAlign: TextAlign.start, + style: Theme.of(context).textTheme.bodySmall?.copyWith( + color: AppColors.neutral900, + fontWeight: FontWeight.w600, + fontStyle: FontStyle.italic, + ), + ), + + const SizedBox(height: 24), + + AppButton( + label: 'Update App', + isExpanded: true, + radius: 10, + onPressed: onUpdate, + ), + ], + ), + ), + ); + } +} diff --git a/linux/flutter/ephemeral/.plugin_symlinks/connectivity_plus b/linux/flutter/ephemeral/.plugin_symlinks/connectivity_plus new file mode 120000 index 0000000..fdfbc21 --- /dev/null +++ b/linux/flutter/ephemeral/.plugin_symlinks/connectivity_plus @@ -0,0 +1 @@ +/Users/muslim/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.5/ \ No newline at end of file diff --git a/linux/flutter/ephemeral/.plugin_symlinks/device_info_plus b/linux/flutter/ephemeral/.plugin_symlinks/device_info_plus new file mode 120000 index 0000000..660b0a3 --- /dev/null +++ b/linux/flutter/ephemeral/.plugin_symlinks/device_info_plus @@ -0,0 +1 @@ +/Users/muslim/.pub-cache/hosted/pub.dev/device_info_plus-12.4.0/ \ No newline at end of file diff --git a/linux/flutter/ephemeral/.plugin_symlinks/file_picker b/linux/flutter/ephemeral/.plugin_symlinks/file_picker new file mode 120000 index 0000000..b035c31 --- /dev/null +++ b/linux/flutter/ephemeral/.plugin_symlinks/file_picker @@ -0,0 +1 @@ +/Users/muslim/.pub-cache/hosted/pub.dev/file_picker-11.0.2/ \ No newline at end of file diff --git a/linux/flutter/ephemeral/.plugin_symlinks/file_selector_linux b/linux/flutter/ephemeral/.plugin_symlinks/file_selector_linux new file mode 120000 index 0000000..afde1df --- /dev/null +++ b/linux/flutter/ephemeral/.plugin_symlinks/file_selector_linux @@ -0,0 +1 @@ +/Users/muslim/.pub-cache/hosted/pub.dev/file_selector_linux-0.9.4/ \ No newline at end of file diff --git a/linux/flutter/ephemeral/.plugin_symlinks/flutter_local_notifications_linux b/linux/flutter/ephemeral/.plugin_symlinks/flutter_local_notifications_linux new file mode 120000 index 0000000..fefd2c1 --- /dev/null +++ b/linux/flutter/ephemeral/.plugin_symlinks/flutter_local_notifications_linux @@ -0,0 +1 @@ +/Users/muslim/.pub-cache/hosted/pub.dev/flutter_local_notifications_linux-7.0.0/ \ No newline at end of file diff --git a/linux/flutter/ephemeral/.plugin_symlinks/image_picker_linux b/linux/flutter/ephemeral/.plugin_symlinks/image_picker_linux new file mode 120000 index 0000000..4ce84cd --- /dev/null +++ b/linux/flutter/ephemeral/.plugin_symlinks/image_picker_linux @@ -0,0 +1 @@ +/Users/muslim/.pub-cache/hosted/pub.dev/image_picker_linux-0.2.2/ \ No newline at end of file diff --git a/linux/flutter/ephemeral/.plugin_symlinks/package_info_plus b/linux/flutter/ephemeral/.plugin_symlinks/package_info_plus new file mode 120000 index 0000000..c2f2fd9 --- /dev/null +++ b/linux/flutter/ephemeral/.plugin_symlinks/package_info_plus @@ -0,0 +1 @@ +/Users/muslim/.pub-cache/hosted/pub.dev/package_info_plus-9.0.0/ \ No newline at end of file diff --git a/linux/flutter/ephemeral/.plugin_symlinks/path_provider_linux b/linux/flutter/ephemeral/.plugin_symlinks/path_provider_linux new file mode 120000 index 0000000..b00246f --- /dev/null +++ b/linux/flutter/ephemeral/.plugin_symlinks/path_provider_linux @@ -0,0 +1 @@ +/Users/muslim/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/ \ No newline at end of file diff --git a/linux/flutter/ephemeral/.plugin_symlinks/share_plus b/linux/flutter/ephemeral/.plugin_symlinks/share_plus new file mode 120000 index 0000000..6fd6810 --- /dev/null +++ b/linux/flutter/ephemeral/.plugin_symlinks/share_plus @@ -0,0 +1 @@ +/Users/muslim/.pub-cache/hosted/pub.dev/share_plus-12.0.1/ \ No newline at end of file diff --git a/linux/flutter/ephemeral/.plugin_symlinks/shared_preferences_linux b/linux/flutter/ephemeral/.plugin_symlinks/shared_preferences_linux new file mode 120000 index 0000000..463afa0 --- /dev/null +++ b/linux/flutter/ephemeral/.plugin_symlinks/shared_preferences_linux @@ -0,0 +1 @@ +/Users/muslim/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.4.1/ \ No newline at end of file diff --git a/linux/flutter/ephemeral/.plugin_symlinks/syncfusion_pdfviewer_linux b/linux/flutter/ephemeral/.plugin_symlinks/syncfusion_pdfviewer_linux new file mode 120000 index 0000000..baa81a2 --- /dev/null +++ b/linux/flutter/ephemeral/.plugin_symlinks/syncfusion_pdfviewer_linux @@ -0,0 +1 @@ +/Users/muslim/.pub-cache/hosted/pub.dev/syncfusion_pdfviewer_linux-33.2.3/ \ No newline at end of file diff --git a/linux/flutter/ephemeral/.plugin_symlinks/url_launcher_linux b/linux/flutter/ephemeral/.plugin_symlinks/url_launcher_linux new file mode 120000 index 0000000..03bc3e1 --- /dev/null +++ b/linux/flutter/ephemeral/.plugin_symlinks/url_launcher_linux @@ -0,0 +1 @@ +/Users/muslim/.pub-cache/hosted/pub.dev/url_launcher_linux-3.2.2/ \ No newline at end of file diff --git a/linux/flutter/generated_plugin_registrant.cc b/linux/flutter/generated_plugin_registrant.cc new file mode 100644 index 0000000..2e2ab15 --- /dev/null +++ b/linux/flutter/generated_plugin_registrant.cc @@ -0,0 +1,23 @@ +// +// Generated file. Do not edit. +// + +// clang-format off + +#include "generated_plugin_registrant.h" + +#include +#include +#include + +void fl_register_plugins(FlPluginRegistry* registry) { + g_autoptr(FlPluginRegistrar) file_selector_linux_registrar = + fl_plugin_registry_get_registrar_for_plugin(registry, "FileSelectorPlugin"); + file_selector_plugin_register_with_registrar(file_selector_linux_registrar); + g_autoptr(FlPluginRegistrar) syncfusion_pdfviewer_linux_registrar = + fl_plugin_registry_get_registrar_for_plugin(registry, "SyncfusionPdfviewerLinuxPlugin"); + syncfusion_pdfviewer_linux_plugin_register_with_registrar(syncfusion_pdfviewer_linux_registrar); + g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar = + fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin"); + url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar); +} diff --git a/linux/flutter/generated_plugin_registrant.h b/linux/flutter/generated_plugin_registrant.h new file mode 100644 index 0000000..e0f0a47 --- /dev/null +++ b/linux/flutter/generated_plugin_registrant.h @@ -0,0 +1,15 @@ +// +// Generated file. Do not edit. +// + +// clang-format off + +#ifndef GENERATED_PLUGIN_REGISTRANT_ +#define GENERATED_PLUGIN_REGISTRANT_ + +#include + +// Registers Flutter plugins. +void fl_register_plugins(FlPluginRegistry* registry); + +#endif // GENERATED_PLUGIN_REGISTRANT_ diff --git a/linux/flutter/generated_plugins.cmake b/linux/flutter/generated_plugins.cmake new file mode 100644 index 0000000..6e3ecdd --- /dev/null +++ b/linux/flutter/generated_plugins.cmake @@ -0,0 +1,26 @@ +# +# Generated file, do not edit. +# + +list(APPEND FLUTTER_PLUGIN_LIST + file_selector_linux + syncfusion_pdfviewer_linux + url_launcher_linux +) + +list(APPEND FLUTTER_FFI_PLUGIN_LIST +) + +set(PLUGIN_BUNDLED_LIBRARIES) + +foreach(plugin ${FLUTTER_PLUGIN_LIST}) + add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin}) + target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) + list(APPEND PLUGIN_BUNDLED_LIBRARIES $) + list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) +endforeach(plugin) + +foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) + add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin}) + list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) +endforeach(ffi_plugin) diff --git a/macos/.gitignore b/macos/.gitignore new file mode 100644 index 0000000..746adbb --- /dev/null +++ b/macos/.gitignore @@ -0,0 +1,7 @@ +# Flutter-related +**/Flutter/ephemeral/ +**/Pods/ + +# Xcode-related +**/dgph +**/xcuserdata/ diff --git a/macos/Flutter/Flutter-Debug.xcconfig b/macos/Flutter/Flutter-Debug.xcconfig new file mode 100644 index 0000000..4b81f9b --- /dev/null +++ b/macos/Flutter/Flutter-Debug.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" +#include "ephemeral/Flutter-Generated.xcconfig" diff --git a/macos/Flutter/Flutter-Release.xcconfig b/macos/Flutter/Flutter-Release.xcconfig new file mode 100644 index 0000000..5caa9d1 --- /dev/null +++ b/macos/Flutter/Flutter-Release.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" +#include "ephemeral/Flutter-Generated.xcconfig" diff --git a/macos/Flutter/GeneratedPluginRegistrant.swift b/macos/Flutter/GeneratedPluginRegistrant.swift new file mode 100644 index 0000000..390b727 --- /dev/null +++ b/macos/Flutter/GeneratedPluginRegistrant.swift @@ -0,0 +1,46 @@ +// +// Generated file. Do not edit. +// + +import FlutterMacOS +import Foundation + +import app_settings +import clipboard +import connectivity_plus +import device_info_plus +import file_picker +import file_selector_macos +import firebase_auth +import firebase_core +import firebase_crashlytics +import firebase_messaging +import firebase_remote_config +import flutter_local_notifications +import geolocator_apple +import package_info_plus +import share_plus +import shared_preferences_foundation +import syncfusion_pdfviewer_macos +import url_launcher_macos + +func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { + AppSettingsPlugin.register(with: registry.registrar(forPlugin: "AppSettingsPlugin")) + ClipboardPlugin.register(with: registry.registrar(forPlugin: "ClipboardPlugin")) + ConnectivityPlusPlugin.register(with: registry.registrar(forPlugin: "ConnectivityPlusPlugin")) + DeviceInfoPlusMacosPlugin.register(with: registry.registrar(forPlugin: "DeviceInfoPlusMacosPlugin")) + FilePickerPlugin.register(with: registry.registrar(forPlugin: "FilePickerPlugin")) + FileSelectorPlugin.register(with: registry.registrar(forPlugin: "FileSelectorPlugin")) + FLTFirebaseAuthPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseAuthPlugin")) + FLTFirebaseCorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseCorePlugin")) + FLTFirebaseCrashlyticsPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseCrashlyticsPlugin")) + FLTFirebaseMessagingPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseMessagingPlugin")) + FirebaseRemoteConfigPlugin.register(with: registry.registrar(forPlugin: "FirebaseRemoteConfigPlugin")) + FlutterLocalNotificationsPlugin.register(with: registry.registrar(forPlugin: "FlutterLocalNotificationsPlugin")) + GeolocatorPlugin.register(with: registry.registrar(forPlugin: "GeolocatorPlugin")) + FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin")) + SharePlusMacosPlugin.register(with: registry.registrar(forPlugin: "SharePlusMacosPlugin")) + SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin")) + SyncfusionFlutterPdfViewerPlugin.register(with: registry.registrar(forPlugin: "SyncfusionFlutterPdfViewerPlugin")) + UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin")) +} diff --git a/macos/Podfile b/macos/Podfile new file mode 100644 index 0000000..ff5ddb3 --- /dev/null +++ b/macos/Podfile @@ -0,0 +1,42 @@ +platform :osx, '10.15' + +# CocoaPods analytics sends network stats synchronously affecting flutter build latency. +ENV['COCOAPODS_DISABLE_STATS'] = 'true' + +project 'Runner', { + 'Debug' => :debug, + 'Profile' => :release, + 'Release' => :release, +} + +def flutter_root + generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__) + unless File.exist?(generated_xcode_build_settings_path) + raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first" + end + + File.foreach(generated_xcode_build_settings_path) do |line| + matches = line.match(/FLUTTER_ROOT\=(.*)/) + return matches[1].strip if matches + end + raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\"" +end + +require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) + +flutter_macos_podfile_setup + +target 'Runner' do + use_frameworks! + + flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__)) + target 'RunnerTests' do + inherit! :search_paths + end +end + +post_install do |installer| + installer.pods_project.targets.each do |target| + flutter_additional_macos_build_settings(target) + end +end diff --git a/macos/Runner.xcodeproj/project.pbxproj b/macos/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000..62e5812 --- /dev/null +++ b/macos/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,1281 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXAggregateTarget section */ + 33CC111A2044C6BA0003C045 /* Flutter Assemble */ = { + isa = PBXAggregateTarget; + buildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */; + buildPhases = ( + 33CC111E2044C6BF0003C045 /* ShellScript */, + ); + dependencies = ( + ); + name = "Flutter Assemble"; + productName = FLX; + }; +/* End PBXAggregateTarget section */ + +/* Begin PBXBuildFile section */ + 331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C80D7294CF71000263BE5 /* RunnerTests.swift */; }; + 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; }; + 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; }; + 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; }; + 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; }; + 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 33CC10E52044A3C60003C045 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 33CC10EC2044A3C60003C045; + remoteInfo = Runner; + }; + 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 33CC10E52044A3C60003C045 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 33CC111A2044C6BA0003C045; + remoteInfo = FLX; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 33CC110E2044A8840003C045 /* Bundle Framework */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Bundle Framework"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 331C80D5294CF71000263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 331C80D7294CF71000263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; + 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; }; + 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; }; + 33CC10ED2044A3C60003C045 /* ECCP.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ECCP.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; }; + 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; + 33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = ""; }; + 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = ""; }; + 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = ""; }; + 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = ""; }; + 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = ""; }; + 33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = ""; }; + 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; }; + 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 331C80D2294CF70F00263BE5 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 33CC10EA2044A3C60003C045 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 331C80D6294CF71000263BE5 /* RunnerTests */ = { + isa = PBXGroup; + children = ( + 331C80D7294CF71000263BE5 /* RunnerTests.swift */, + ); + path = RunnerTests; + sourceTree = ""; + }; + 33BA886A226E78AF003329D5 /* Configs */ = { + isa = PBXGroup; + children = ( + 33E5194F232828860026EE4D /* AppInfo.xcconfig */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 333000ED22D3DE5D00554162 /* Warnings.xcconfig */, + ); + path = Configs; + sourceTree = ""; + }; + 33CC10E42044A3C60003C045 = { + isa = PBXGroup; + children = ( + 33FAB671232836740065AC1E /* Runner */, + 33CEB47122A05771004F2AC0 /* Flutter */, + 331C80D6294CF71000263BE5 /* RunnerTests */, + 33CC10EE2044A3C60003C045 /* Products */, + D73912EC22F37F3D000D13A0 /* Frameworks */, + ); + sourceTree = ""; + }; + 33CC10EE2044A3C60003C045 /* Products */ = { + isa = PBXGroup; + children = ( + 33CC10ED2044A3C60003C045 /* ECCP.app */, + 331C80D5294CF71000263BE5 /* RunnerTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 33CC11242044D66E0003C045 /* Resources */ = { + isa = PBXGroup; + children = ( + 33CC10F22044A3C60003C045 /* Assets.xcassets */, + 33CC10F42044A3C60003C045 /* MainMenu.xib */, + 33CC10F72044A3C60003C045 /* Info.plist */, + ); + name = Resources; + path = ..; + sourceTree = ""; + }; + 33CEB47122A05771004F2AC0 /* Flutter */ = { + isa = PBXGroup; + children = ( + 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */, + 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */, + 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */, + 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */, + ); + path = Flutter; + sourceTree = ""; + }; + 33FAB671232836740065AC1E /* Runner */ = { + isa = PBXGroup; + children = ( + 33CC10F02044A3C60003C045 /* AppDelegate.swift */, + 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */, + 33E51913231747F40026EE4D /* DebugProfile.entitlements */, + 33E51914231749380026EE4D /* Release.entitlements */, + 33CC11242044D66E0003C045 /* Resources */, + 33BA886A226E78AF003329D5 /* Configs */, + ); + path = Runner; + sourceTree = ""; + }; + D73912EC22F37F3D000D13A0 /* Frameworks */ = { + isa = PBXGroup; + children = ( + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 331C80D4294CF70F00263BE5 /* RunnerTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; + buildPhases = ( + 331C80D1294CF70F00263BE5 /* Sources */, + 331C80D2294CF70F00263BE5 /* Frameworks */, + 331C80D3294CF70F00263BE5 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 331C80DA294CF71000263BE5 /* PBXTargetDependency */, + ); + name = RunnerTests; + productName = RunnerTests; + productReference = 331C80D5294CF71000263BE5 /* RunnerTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 33CC10EC2044A3C60003C045 /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + 33CC10E92044A3C60003C045 /* Sources */, + 33CC10EA2044A3C60003C045 /* Frameworks */, + 33CC10EB2044A3C60003C045 /* Resources */, + 33CC110E2044A8840003C045 /* Bundle Framework */, + 3399D490228B24CF009A79C7 /* ShellScript */, + ); + buildRules = ( + ); + dependencies = ( + 33CC11202044C79F0003C045 /* PBXTargetDependency */, + ); + name = Runner; + productName = Runner; + productReference = 33CC10ED2044A3C60003C045 /* ECCP.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 33CC10E52044A3C60003C045 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0920; + LastUpgradeCheck = 1510; + ORGANIZATIONNAME = ""; + TargetAttributes = { + 331C80D4294CF70F00263BE5 = { + CreatedOnToolsVersion = 14.0; + TestTargetID = 33CC10EC2044A3C60003C045; + }; + 33CC10EC2044A3C60003C045 = { + CreatedOnToolsVersion = 9.2; + LastSwiftMigration = 1100; + ProvisioningStyle = Automatic; + SystemCapabilities = { + com.apple.Sandbox = { + enabled = 1; + }; + }; + }; + 33CC111A2044C6BA0003C045 = { + CreatedOnToolsVersion = 9.2; + ProvisioningStyle = Manual; + }; + }; + }; + buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 33CC10E42044A3C60003C045; + productRefGroup = 33CC10EE2044A3C60003C045 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 33CC10EC2044A3C60003C045 /* Runner */, + 331C80D4294CF70F00263BE5 /* RunnerTests */, + 33CC111A2044C6BA0003C045 /* Flutter Assemble */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 331C80D3294CF70F00263BE5 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 33CC10EB2044A3C60003C045 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */, + 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3399D490228B24CF009A79C7 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh embed\n"; + }; + 33CC111E2044C6BF0003C045 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + Flutter/ephemeral/FlutterInputs.xcfilelist, + ); + inputPaths = ( + Flutter/ephemeral/tripwire, + ); + outputFileListPaths = ( + Flutter/ephemeral/FlutterOutputs.xcfilelist, + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 331C80D1294CF70F00263BE5 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 33CC10E92044A3C60003C045 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */, + 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */, + 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 331C80DA294CF71000263BE5 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 33CC10EC2044A3C60003C045 /* Runner */; + targetProxy = 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */; + }; + 33CC11202044C79F0003C045 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */; + targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 33CC10F42044A3C60003C045 /* MainMenu.xib */ = { + isa = PBXVariantGroup; + children = ( + 33CC10F52044A3C60003C045 /* Base */, + ); + name = MainMenu.xib; + path = Runner; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 331C80DB294CF71000263BE5 /* Debug-production */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.adhivasindo.eccp.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/my_app.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/my_app"; + }; + name = "Debug-production"; + }; + 331C80DC294CF71000263BE5 /* Release-production */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.adhivasindo.eccp.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/my_app.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/my_app"; + }; + name = "Release-production"; + }; + 331C80DD294CF71000263BE5 /* Profile-production */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.adhivasindo.eccp.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/my_app.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/my_app"; + }; + name = "Profile-production"; + }; + 338D0CE9231458BD00FA5F75 /* Profile-production */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.15; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = "Profile-production"; + }; + 338D0CEA231458BD00FA5F75 /* Profile-production */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + FLAVOR_APP_NAME = "ECCP"; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PRODUCT_NAME = "$(FLAVOR_APP_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_VERSION = 5.0; + }; + name = "Profile-production"; + }; + 338D0CEB231458BD00FA5F75 /* Profile-production */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Manual; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = "Profile-production"; + }; + 33CC10F92044A3C60003C045 /* Debug-production */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.15; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = "Debug-production"; + }; + 33CC10FA2044A3C60003C045 /* Release-production */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.15; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = "Release-production"; + }; + 33CC10FC2044A3C60003C045 /* Debug-production */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + FLAVOR_APP_NAME = "ECCP"; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PRODUCT_NAME = "$(FLAVOR_APP_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + }; + name = "Debug-production"; + }; + 33CC10FD2044A3C60003C045 /* Release-production */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + FLAVOR_APP_NAME = "ECCP"; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PRODUCT_NAME = "$(FLAVOR_APP_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_VERSION = 5.0; + }; + name = "Release-production"; + }; + 33CC111C2044C6BA0003C045 /* Debug-production */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Manual; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = "Debug-production"; + }; + 33CC111D2044C6BA0003C045 /* Release-production */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = "Release-production"; + }; + 4D081B8A2AEE0EE8009C4C7F /* Debug-staging */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.15; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = "Debug-staging"; + }; + 4D081B8B2AEE0EE8009C4C7F /* Debug-staging */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-stg"; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + FLAVOR_APP_NAME = "[STG] ECCP"; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.adhivasindo.eccp.stg; + PRODUCT_NAME = "$(FLAVOR_APP_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + }; + name = "Debug-staging"; + }; + 4D081B8C2AEE0EE8009C4C7F /* Debug-staging */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.adhivasindo.eccp.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/my_app.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/my_app"; + }; + name = "Debug-staging"; + }; + 4D081B8D2AEE0EE8009C4C7F /* Debug-staging */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Manual; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = "Debug-staging"; + }; + 4D081B8E2AEE0EEA009C4C7F /* Debug-development */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.15; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = "Debug-development"; + }; + 4D081B8F2AEE0EEA009C4C7F /* Debug-development */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-dev"; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + FLAVOR_APP_NAME = "[DEV] ECCP"; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.adhivasindo.eccp.dev; + PRODUCT_NAME = "$(FLAVOR_APP_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + }; + name = "Debug-development"; + }; + 4D081B902AEE0EEA009C4C7F /* Debug-development */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.adhivasindo.eccp.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/my_app.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/my_app"; + }; + name = "Debug-development"; + }; + 4D081B912AEE0EEA009C4C7F /* Debug-development */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Manual; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = "Debug-development"; + }; + 4D081B922AEE0EEE009C4C7F /* Release-development */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.15; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = "Release-development"; + }; + 4D081B932AEE0EEE009C4C7F /* Release-development */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-dev"; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + FLAVOR_APP_NAME = "[DEV] ECCP"; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.adhivasindo.eccp.dev; + PRODUCT_NAME = "$(FLAVOR_APP_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_VERSION = 5.0; + }; + name = "Release-development"; + }; + 4D081B942AEE0EEE009C4C7F /* Release-development */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.adhivasindo.eccp.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/my_app.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/my_app"; + }; + name = "Release-development"; + }; + 4D081B952AEE0EEE009C4C7F /* Release-development */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = "Release-development"; + }; + 4D081B962AEE0EF1009C4C7F /* Release-staging */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.15; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = "Release-staging"; + }; + 4D081B972AEE0EF1009C4C7F /* Release-staging */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-stg"; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + FLAVOR_APP_NAME = "[STG] ECCP"; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.adhivasindo.eccp.stg; + PRODUCT_NAME = "$(FLAVOR_APP_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_VERSION = 5.0; + }; + name = "Release-staging"; + }; + 4D081B982AEE0EF1009C4C7F /* Release-staging */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.adhivasindo.eccp.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/my_app.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/my_app"; + }; + name = "Release-staging"; + }; + 4D081B992AEE0EF1009C4C7F /* Release-staging */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = "Release-staging"; + }; + 4D081B9A2AEE0EF4009C4C7F /* Profile-development */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.15; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = "Profile-development"; + }; + 4D081B9B2AEE0EF4009C4C7F /* Profile-development */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-dev"; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + FLAVOR_APP_NAME = "[DEV] ECCP"; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.adhivasindo.eccp.dev; + PRODUCT_NAME = "$(FLAVOR_APP_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_VERSION = 5.0; + }; + name = "Profile-development"; + }; + 4D081B9C2AEE0EF4009C4C7F /* Profile-development */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.adhivasindo.eccp.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/my_app.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/my_app"; + }; + name = "Profile-development"; + }; + 4D081B9D2AEE0EF4009C4C7F /* Profile-development */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Manual; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = "Profile-development"; + }; + 4D081B9E2AEE0EF8009C4C7F /* Profile-staging */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.15; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = "Profile-staging"; + }; + 4D081B9F2AEE0EF8009C4C7F /* Profile-staging */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-stg"; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + FLAVOR_APP_NAME = "[STG] ECCP"; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.adhivasindo.eccp.stg; + PRODUCT_NAME = "$(FLAVOR_APP_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + SWIFT_VERSION = 5.0; + }; + name = "Profile-staging"; + }; + 4D081BA02AEE0EF8009C4C7F /* Profile-staging */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.adhivasindo.eccp.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/my_app.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/my_app"; + }; + name = "Profile-staging"; + }; + 4D081BA12AEE0EF8009C4C7F /* Profile-staging */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Manual; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = "Profile-staging"; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 331C80DB294CF71000263BE5 /* Debug-production */, + 4D081B902AEE0EEA009C4C7F /* Debug-development */, + 4D081B8C2AEE0EE8009C4C7F /* Debug-staging */, + 331C80DC294CF71000263BE5 /* Release-production */, + 4D081B942AEE0EEE009C4C7F /* Release-development */, + 4D081B982AEE0EF1009C4C7F /* Release-staging */, + 331C80DD294CF71000263BE5 /* Profile-production */, + 4D081B9C2AEE0EF4009C4C7F /* Profile-development */, + 4D081BA02AEE0EF8009C4C7F /* Profile-staging */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = "Release-production"; + }; + 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC10F92044A3C60003C045 /* Debug-production */, + 4D081B8E2AEE0EEA009C4C7F /* Debug-development */, + 4D081B8A2AEE0EE8009C4C7F /* Debug-staging */, + 33CC10FA2044A3C60003C045 /* Release-production */, + 4D081B922AEE0EEE009C4C7F /* Release-development */, + 4D081B962AEE0EF1009C4C7F /* Release-staging */, + 338D0CE9231458BD00FA5F75 /* Profile-production */, + 4D081B9A2AEE0EF4009C4C7F /* Profile-development */, + 4D081B9E2AEE0EF8009C4C7F /* Profile-staging */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = "Release-production"; + }; + 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC10FC2044A3C60003C045 /* Debug-production */, + 4D081B8F2AEE0EEA009C4C7F /* Debug-development */, + 4D081B8B2AEE0EE8009C4C7F /* Debug-staging */, + 33CC10FD2044A3C60003C045 /* Release-production */, + 4D081B932AEE0EEE009C4C7F /* Release-development */, + 4D081B972AEE0EF1009C4C7F /* Release-staging */, + 338D0CEA231458BD00FA5F75 /* Profile-production */, + 4D081B9B2AEE0EF4009C4C7F /* Profile-development */, + 4D081B9F2AEE0EF8009C4C7F /* Profile-staging */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = "Release-production"; + }; + 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 33CC111C2044C6BA0003C045 /* Debug-production */, + 4D081B912AEE0EEA009C4C7F /* Debug-development */, + 4D081B8D2AEE0EE8009C4C7F /* Debug-staging */, + 33CC111D2044C6BA0003C045 /* Release-production */, + 4D081B952AEE0EEE009C4C7F /* Release-development */, + 4D081B992AEE0EF1009C4C7F /* Release-staging */, + 338D0CEB231458BD00FA5F75 /* Profile-production */, + 4D081B9D2AEE0EF4009C4C7F /* Profile-development */, + 4D081BA12AEE0EF8009C4C7F /* Profile-staging */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = "Release-production"; + }; +/* End XCConfigurationList section */ + }; + rootObject = 33CC10E52044A3C60003C045 /* Project object */; +} diff --git a/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 0000000..9df0dbe --- /dev/null +++ b/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/macos/Runner.xcodeproj/xcshareddata/xcschemes/development.xcscheme b/macos/Runner.xcodeproj/xcshareddata/xcschemes/development.xcscheme new file mode 100644 index 0000000..6c04259 --- /dev/null +++ b/macos/Runner.xcodeproj/xcshareddata/xcschemes/development.xcscheme @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/macos/Runner.xcodeproj/xcshareddata/xcschemes/production.xcscheme b/macos/Runner.xcodeproj/xcshareddata/xcschemes/production.xcscheme new file mode 100644 index 0000000..a7da79c --- /dev/null +++ b/macos/Runner.xcodeproj/xcshareddata/xcschemes/production.xcscheme @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/macos/Runner.xcodeproj/xcshareddata/xcschemes/staging.xcscheme b/macos/Runner.xcodeproj/xcshareddata/xcschemes/staging.xcscheme new file mode 100644 index 0000000..5d43e8b --- /dev/null +++ b/macos/Runner.xcodeproj/xcshareddata/xcschemes/staging.xcscheme @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/macos/Runner.xcworkspace/contents.xcworkspacedata b/macos/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..1d526a1 --- /dev/null +++ b/macos/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/macos/Runner/AppDelegate.swift b/macos/Runner/AppDelegate.swift new file mode 100644 index 0000000..b3c1761 --- /dev/null +++ b/macos/Runner/AppDelegate.swift @@ -0,0 +1,13 @@ +import Cocoa +import FlutterMacOS + +@main +class AppDelegate: FlutterAppDelegate { + override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { + return true + } + + override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool { + return true + } +} diff --git a/macos/Runner/Assets.xcassets/AppIcon-dev.appiconset/1024.png b/macos/Runner/Assets.xcassets/AppIcon-dev.appiconset/1024.png new file mode 100644 index 0000000..bffc902 Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon-dev.appiconset/1024.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon-dev.appiconset/128.png b/macos/Runner/Assets.xcassets/AppIcon-dev.appiconset/128.png new file mode 100644 index 0000000..fdff481 Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon-dev.appiconset/128.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon-dev.appiconset/16.png b/macos/Runner/Assets.xcassets/AppIcon-dev.appiconset/16.png new file mode 100644 index 0000000..a5ae5f6 Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon-dev.appiconset/16.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon-dev.appiconset/256 1.png b/macos/Runner/Assets.xcassets/AppIcon-dev.appiconset/256 1.png new file mode 100644 index 0000000..19a53f2 Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon-dev.appiconset/256 1.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon-dev.appiconset/256.png b/macos/Runner/Assets.xcassets/AppIcon-dev.appiconset/256.png new file mode 100644 index 0000000..19a53f2 Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon-dev.appiconset/256.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon-dev.appiconset/32 1.png b/macos/Runner/Assets.xcassets/AppIcon-dev.appiconset/32 1.png new file mode 100644 index 0000000..754605c Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon-dev.appiconset/32 1.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon-dev.appiconset/32.png b/macos/Runner/Assets.xcassets/AppIcon-dev.appiconset/32.png new file mode 100644 index 0000000..754605c Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon-dev.appiconset/32.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon-dev.appiconset/512 1.png b/macos/Runner/Assets.xcassets/AppIcon-dev.appiconset/512 1.png new file mode 100644 index 0000000..b0a9511 Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon-dev.appiconset/512 1.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon-dev.appiconset/512.png b/macos/Runner/Assets.xcassets/AppIcon-dev.appiconset/512.png new file mode 100644 index 0000000..b0a9511 Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon-dev.appiconset/512.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon-dev.appiconset/64.png b/macos/Runner/Assets.xcassets/AppIcon-dev.appiconset/64.png new file mode 100644 index 0000000..12f6f8b Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon-dev.appiconset/64.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon-dev.appiconset/Contents.json b/macos/Runner/Assets.xcassets/AppIcon-dev.appiconset/Contents.json new file mode 100644 index 0000000..e361225 --- /dev/null +++ b/macos/Runner/Assets.xcassets/AppIcon-dev.appiconset/Contents.json @@ -0,0 +1,68 @@ +{ + "images" : [ + { + "filename" : "16.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "16x16" + }, + { + "filename" : "32 1.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "16x16" + }, + { + "filename" : "32.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "32x32" + }, + { + "filename" : "64.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "32x32" + }, + { + "filename" : "128.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "128x128" + }, + { + "filename" : "256 1.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "128x128" + }, + { + "filename" : "256.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "256x256" + }, + { + "filename" : "512 1.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "256x256" + }, + { + "filename" : "512.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "512x512" + }, + { + "filename" : "1024.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "512x512" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/macos/Runner/Assets.xcassets/AppIcon-stg.appiconset/1024.png b/macos/Runner/Assets.xcassets/AppIcon-stg.appiconset/1024.png new file mode 100644 index 0000000..67946d8 Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon-stg.appiconset/1024.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon-stg.appiconset/128.png b/macos/Runner/Assets.xcassets/AppIcon-stg.appiconset/128.png new file mode 100644 index 0000000..0f7afae Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon-stg.appiconset/128.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon-stg.appiconset/16.png b/macos/Runner/Assets.xcassets/AppIcon-stg.appiconset/16.png new file mode 100644 index 0000000..02f262a Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon-stg.appiconset/16.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon-stg.appiconset/256 1.png b/macos/Runner/Assets.xcassets/AppIcon-stg.appiconset/256 1.png new file mode 100644 index 0000000..0a92169 Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon-stg.appiconset/256 1.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon-stg.appiconset/256.png b/macos/Runner/Assets.xcassets/AppIcon-stg.appiconset/256.png new file mode 100644 index 0000000..0a92169 Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon-stg.appiconset/256.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon-stg.appiconset/32 1.png b/macos/Runner/Assets.xcassets/AppIcon-stg.appiconset/32 1.png new file mode 100644 index 0000000..ecd10a9 Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon-stg.appiconset/32 1.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon-stg.appiconset/32.png b/macos/Runner/Assets.xcassets/AppIcon-stg.appiconset/32.png new file mode 100644 index 0000000..ecd10a9 Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon-stg.appiconset/32.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon-stg.appiconset/512 1.png b/macos/Runner/Assets.xcassets/AppIcon-stg.appiconset/512 1.png new file mode 100644 index 0000000..dda1564 Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon-stg.appiconset/512 1.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon-stg.appiconset/512.png b/macos/Runner/Assets.xcassets/AppIcon-stg.appiconset/512.png new file mode 100644 index 0000000..dda1564 Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon-stg.appiconset/512.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon-stg.appiconset/64.png b/macos/Runner/Assets.xcassets/AppIcon-stg.appiconset/64.png new file mode 100644 index 0000000..a6b50e6 Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon-stg.appiconset/64.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon-stg.appiconset/Contents.json b/macos/Runner/Assets.xcassets/AppIcon-stg.appiconset/Contents.json new file mode 100644 index 0000000..e361225 --- /dev/null +++ b/macos/Runner/Assets.xcassets/AppIcon-stg.appiconset/Contents.json @@ -0,0 +1,68 @@ +{ + "images" : [ + { + "filename" : "16.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "16x16" + }, + { + "filename" : "32 1.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "16x16" + }, + { + "filename" : "32.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "32x32" + }, + { + "filename" : "64.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "32x32" + }, + { + "filename" : "128.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "128x128" + }, + { + "filename" : "256 1.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "128x128" + }, + { + "filename" : "256.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "256x256" + }, + { + "filename" : "512 1.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "256x256" + }, + { + "filename" : "512.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "512x512" + }, + { + "filename" : "1024.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "512x512" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/1024.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/1024.png new file mode 100644 index 0000000..e2d0105 Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/1024.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/128.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/128.png new file mode 100644 index 0000000..f88f62c Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/128.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/16.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/16.png new file mode 100644 index 0000000..4d6b10e Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/16.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/256 1.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/256 1.png new file mode 100644 index 0000000..18bd6b0 Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/256 1.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/256.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/256.png new file mode 100644 index 0000000..18bd6b0 Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/256.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/32 1.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/32 1.png new file mode 100644 index 0000000..1405ec4 Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/32 1.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/32.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/32.png new file mode 100644 index 0000000..1405ec4 Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/32.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/512 1.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/512 1.png new file mode 100644 index 0000000..9666a0c Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/512 1.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/512.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/512.png new file mode 100644 index 0000000..9666a0c Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/512.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/64.png b/macos/Runner/Assets.xcassets/AppIcon.appiconset/64.png new file mode 100644 index 0000000..2ee511e Binary files /dev/null and b/macos/Runner/Assets.xcassets/AppIcon.appiconset/64.png differ diff --git a/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..e361225 --- /dev/null +++ b/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,68 @@ +{ + "images" : [ + { + "filename" : "16.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "16x16" + }, + { + "filename" : "32 1.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "16x16" + }, + { + "filename" : "32.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "32x32" + }, + { + "filename" : "64.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "32x32" + }, + { + "filename" : "128.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "128x128" + }, + { + "filename" : "256 1.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "128x128" + }, + { + "filename" : "256.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "256x256" + }, + { + "filename" : "512 1.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "256x256" + }, + { + "filename" : "512.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "512x512" + }, + { + "filename" : "1024.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "512x512" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/macos/Runner/Assets.xcassets/Contents.json b/macos/Runner/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/macos/Runner/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/macos/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/macos/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json new file mode 100644 index 0000000..b23a03e --- /dev/null +++ b/macos/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "LaunchImage@1x.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "LaunchImage@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "LaunchImage@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/macos/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@1x.png b/macos/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@1x.png new file mode 100644 index 0000000..cea4825 Binary files /dev/null and b/macos/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@1x.png differ diff --git a/macos/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/macos/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png new file mode 100644 index 0000000..0e20080 Binary files /dev/null and b/macos/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ diff --git a/macos/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/macos/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png new file mode 100644 index 0000000..5c562f9 Binary files /dev/null and b/macos/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ diff --git a/macos/Runner/Base.lproj/MainMenu.xib b/macos/Runner/Base.lproj/MainMenu.xib new file mode 100644 index 0000000..9b7132a --- /dev/null +++ b/macos/Runner/Base.lproj/MainMenu.xib @@ -0,0 +1,344 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/macos/Runner/Configs/AppInfo.xcconfig b/macos/Runner/Configs/AppInfo.xcconfig new file mode 100644 index 0000000..79236bc --- /dev/null +++ b/macos/Runner/Configs/AppInfo.xcconfig @@ -0,0 +1,14 @@ +// Application-level settings for the Runner target. +// +// This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the +// future. If not, the values below would default to using the project name when this becomes a +// 'flutter create' template. + +// The application's name. By default this is also the title of the Flutter window. +PRODUCT_NAME = my_app + +// The application's bundle identifier +PRODUCT_BUNDLE_IDENTIFIER = com.example.myApp + +// The copyright displayed in application information +PRODUCT_COPYRIGHT = Copyright © 2023 com.example. All rights reserved. diff --git a/macos/Runner/Configs/Debug.xcconfig b/macos/Runner/Configs/Debug.xcconfig new file mode 100644 index 0000000..36b0fd9 --- /dev/null +++ b/macos/Runner/Configs/Debug.xcconfig @@ -0,0 +1,2 @@ +#include "../../Flutter/Flutter-Debug.xcconfig" +#include "Warnings.xcconfig" diff --git a/macos/Runner/Configs/Release.xcconfig b/macos/Runner/Configs/Release.xcconfig new file mode 100644 index 0000000..dff4f49 --- /dev/null +++ b/macos/Runner/Configs/Release.xcconfig @@ -0,0 +1,2 @@ +#include "../../Flutter/Flutter-Release.xcconfig" +#include "Warnings.xcconfig" diff --git a/macos/Runner/Configs/Warnings.xcconfig b/macos/Runner/Configs/Warnings.xcconfig new file mode 100644 index 0000000..42bcbf4 --- /dev/null +++ b/macos/Runner/Configs/Warnings.xcconfig @@ -0,0 +1,13 @@ +WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings +GCC_WARN_UNDECLARED_SELECTOR = YES +CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES +CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE +CLANG_WARN__DUPLICATE_METHOD_MATCH = YES +CLANG_WARN_PRAGMA_PACK = YES +CLANG_WARN_STRICT_PROTOTYPES = YES +CLANG_WARN_COMMA = YES +GCC_WARN_STRICT_SELECTOR_MATCH = YES +CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES +CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES +GCC_WARN_SHADOW = YES +CLANG_WARN_UNREACHABLE_CODE = YES diff --git a/macos/Runner/DebugProfile.entitlements b/macos/Runner/DebugProfile.entitlements new file mode 100644 index 0000000..dddb8a3 --- /dev/null +++ b/macos/Runner/DebugProfile.entitlements @@ -0,0 +1,12 @@ + + + + + com.apple.security.app-sandbox + + com.apple.security.cs.allow-jit + + com.apple.security.network.server + + + diff --git a/macos/Runner/Info.plist b/macos/Runner/Info.plist new file mode 100644 index 0000000..b762bb9 --- /dev/null +++ b/macos/Runner/Info.plist @@ -0,0 +1,34 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIconFile + + CFBundleName + $(FLAVOR_APP_NAME) + CFBundleDisplayName + $(FLAVOR_APP_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSMinimumSystemVersion + $(MACOSX_DEPLOYMENT_TARGET) + NSHumanReadableCopyright + $(PRODUCT_COPYRIGHT) + NSMainNibFile + MainMenu + NSPrincipalClass + NSApplication + + diff --git a/macos/Runner/MainFlutterWindow.swift b/macos/Runner/MainFlutterWindow.swift new file mode 100644 index 0000000..3cc05eb --- /dev/null +++ b/macos/Runner/MainFlutterWindow.swift @@ -0,0 +1,15 @@ +import Cocoa +import FlutterMacOS + +class MainFlutterWindow: NSWindow { + override func awakeFromNib() { + let flutterViewController = FlutterViewController() + let windowFrame = self.frame + self.contentViewController = flutterViewController + self.setFrame(windowFrame, display: true) + + RegisterGeneratedPlugins(registry: flutterViewController) + + super.awakeFromNib() + } +} diff --git a/macos/Runner/Release.entitlements b/macos/Runner/Release.entitlements new file mode 100644 index 0000000..852fa1a --- /dev/null +++ b/macos/Runner/Release.entitlements @@ -0,0 +1,8 @@ + + + + + com.apple.security.app-sandbox + + + diff --git a/macos/RunnerTests/RunnerTests.swift b/macos/RunnerTests/RunnerTests.swift new file mode 100644 index 0000000..5418c9f --- /dev/null +++ b/macos/RunnerTests/RunnerTests.swift @@ -0,0 +1,12 @@ +import FlutterMacOS +import Cocoa +import XCTest + +class RunnerTests: XCTestCase { + + func testExample() { + // If you add code to the Runner application, consider adding tests here. + // See https://developer.apple.com/documentation/xctest for more information about using XCTest. + } + +} diff --git a/pubspec.lock b/pubspec.lock new file mode 100644 index 0000000..823807f --- /dev/null +++ b/pubspec.lock @@ -0,0 +1,2095 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + _fe_analyzer_shared: + dependency: transitive + description: + name: _fe_analyzer_shared + sha256: c209688d9f5a5f26b2fb47a188131a6fb9e876ae9e47af3737c0b4f58a93470d + url: "https://pub.dev" + source: hosted + version: "91.0.0" + _flutterfire_internals: + dependency: transitive + description: + name: _flutterfire_internals + sha256: cd83f7d6bd4e4c0b0b4fef802e8796784032e1cc23d7b0e982cf5d05d9bbe182 + url: "https://pub.dev" + source: hosted + version: "1.3.66" + adaptive_number: + dependency: transitive + description: + name: adaptive_number + sha256: "3a567544e9b5c9c803006f51140ad544aedc79604fd4f3f2c1380003f97c1d77" + url: "https://pub.dev" + source: hosted + version: "1.0.0" + analyzer: + dependency: transitive + description: + name: analyzer + sha256: f51c8499b35f9b26820cfe914828a6a98a94efd5cc78b37bb7d03debae3a1d08 + url: "https://pub.dev" + source: hosted + version: "8.4.1" + android_intent_plus: + dependency: "direct main" + description: + name: android_intent_plus + sha256: "14a9f94c5825a528e8c38ee89a33dbeba947efbbf76f066c174f4f3ae4f48feb" + url: "https://pub.dev" + source: hosted + version: "6.0.0" + animated_custom_dropdown: + dependency: "direct main" + description: + name: animated_custom_dropdown + sha256: "5a72dc209041bb53f6c7164bc2e366552d5197cdb032b1c9b2c36e3013024486" + url: "https://pub.dev" + source: hosted + version: "3.1.1" + ansicolor: + dependency: transitive + description: + name: ansicolor + sha256: "50e982d500bc863e1d703448afdbf9e5a72eb48840a4f766fa361ffd6877055f" + url: "https://pub.dev" + source: hosted + version: "2.0.3" + app_settings: + dependency: "direct main" + description: + name: app_settings + sha256: "3e46c561441e5820d3a25339bf8b51b9e45a5f686873851a20c257a530917795" + url: "https://pub.dev" + source: hosted + version: "6.1.1" + archive: + dependency: transitive + description: + name: archive + sha256: "2fde1607386ab523f7a36bb3e7edb43bd58e6edaf2ffb29d8a6d578b297fdbbd" + url: "https://pub.dev" + source: hosted + version: "4.0.7" + args: + dependency: transitive + description: + name: args + sha256: d0481093c50b1da8910eb0bb301626d4d8eb7284aa739614d2b394ee09e3ea04 + url: "https://pub.dev" + source: hosted + version: "2.7.0" + async: + dependency: transitive + description: + name: async + sha256: "758e6d74e971c3e5aceb4110bfd6698efc7f501675bcfe0c775459a8140750eb" + url: "https://pub.dev" + source: hosted + version: "2.13.0" + bloc: + dependency: "direct main" + description: + name: bloc + sha256: a48653a82055a900b88cd35f92429f068c5a8057ae9b136d197b3d56c57efb81 + url: "https://pub.dev" + source: hosted + version: "9.2.0" + bloc_test: + dependency: "direct dev" + description: + name: bloc_test + sha256: "1dd549e58be35148bc22a9135962106aa29334bc1e3f285994946a1057b29d7b" + url: "https://pub.dev" + source: hosted + version: "10.0.0" + boolean_selector: + dependency: transitive + description: + name: boolean_selector + sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea" + url: "https://pub.dev" + source: hosted + version: "2.1.2" + boxy: + dependency: transitive + description: + name: boxy + sha256: "569373f23560f5a5dbe53c08a7463a698635e7ac72ba355ff4fa52516c0d2e32" + url: "https://pub.dev" + source: hosted + version: "2.2.2" + build: + dependency: transitive + description: + name: build + sha256: "275bf6bb2a00a9852c28d4e0b410da1d833a734d57d39d44f94bfc895a484ec3" + url: "https://pub.dev" + source: hosted + version: "4.0.4" + build_config: + dependency: transitive + description: + name: build_config + sha256: "4070d2a59f8eec34c97c86ceb44403834899075f66e8a9d59706f8e7834f6f71" + url: "https://pub.dev" + source: hosted + version: "1.3.0" + build_daemon: + dependency: transitive + description: + name: build_daemon + sha256: bf05f6e12cfea92d3c09308d7bcdab1906cd8a179b023269eed00c071004b957 + url: "https://pub.dev" + source: hosted + version: "4.1.1" + build_runner: + dependency: "direct dev" + description: + name: build_runner + sha256: "7981eb922842c77033026eb4341d5af651562008cdb116bdfa31fc46516b6462" + url: "https://pub.dev" + source: hosted + version: "2.12.2" + built_collection: + dependency: transitive + description: + name: built_collection + sha256: "376e3dd27b51ea877c28d525560790aee2e6fbb5f20e2f85d5081027d94e2100" + url: "https://pub.dev" + source: hosted + version: "5.1.1" + built_value: + dependency: transitive + description: + name: built_value + sha256: "6ae8a6435a8c6520c7077b107e77f1fb4ba7009633259a4d49a8afd8e7efc5e9" + url: "https://pub.dev" + source: hosted + version: "8.12.4" + characters: + dependency: transitive + description: + name: characters + sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803 + url: "https://pub.dev" + source: hosted + version: "1.4.0" + checked_yaml: + dependency: transitive + description: + name: checked_yaml + sha256: "959525d3162f249993882720d52b7e0c833978df229be20702b33d48d91de70f" + url: "https://pub.dev" + source: hosted + version: "2.0.4" + chopper: + dependency: transitive + description: + name: chopper + sha256: "55ca15ed4428cec4e6f20549782b8a64f9ea9cc494e6ae84b5c08760463c13b6" + url: "https://pub.dev" + source: hosted + version: "8.5.0" + chucker_flutter: + dependency: "direct main" + description: + name: chucker_flutter + sha256: "43d0a8a2fc1439cca7cde9df6e22c2ce3c9d5d20e1ee2b3677676b180b0642bc" + url: "https://pub.dev" + source: hosted + version: "1.9.1" + cli_config: + dependency: transitive + description: + name: cli_config + sha256: ac20a183a07002b700f0c25e61b7ee46b23c309d76ab7b7640a028f18e4d99ec + url: "https://pub.dev" + source: hosted + version: "0.2.0" + clipboard: + dependency: "direct main" + description: + name: clipboard + sha256: c0ba5e7214035b824549473fa134870bc544fff0d7b89170d4756c0ac2c0239d + url: "https://pub.dev" + source: hosted + version: "3.0.14" + clock: + dependency: transitive + description: + name: clock + sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b + url: "https://pub.dev" + source: hosted + version: "1.1.2" + code_assets: + dependency: transitive + description: + name: code_assets + sha256: ae0db647e668cbb295a3527f0938e4039e004c80099dce2f964102373f5ce0b5 + url: "https://pub.dev" + source: hosted + version: "0.19.10" + code_builder: + dependency: transitive + description: + name: code_builder + sha256: "6a6cab2ba4680d6423f34a9b972a4c9a94ebe1b62ecec4e1a1f2cba91fd1319d" + url: "https://pub.dev" + source: hosted + version: "4.11.1" + collection: + dependency: transitive + description: + name: collection + sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76" + url: "https://pub.dev" + source: hosted + version: "1.19.1" + connectivity_plus: + dependency: transitive + description: + name: connectivity_plus + sha256: b5e72753cf63becce2c61fd04dfe0f1c430cc5278b53a1342dc5ad839eab29ec + url: "https://pub.dev" + source: hosted + version: "6.1.5" + connectivity_plus_platform_interface: + dependency: transitive + description: + name: connectivity_plus_platform_interface + sha256: "42657c1715d48b167930d5f34d00222ac100475f73d10162ddf43e714932f204" + url: "https://pub.dev" + source: hosted + version: "2.0.1" + convert: + dependency: transitive + description: + name: convert + sha256: b30acd5944035672bc15c6b7a8b47d773e41e2f17de064350988c5d02adb1c68 + url: "https://pub.dev" + source: hosted + version: "3.1.2" + coverage: + dependency: transitive + description: + name: coverage + sha256: "5da775aa218eaf2151c721b16c01c7676fbfdd99cebba2bf64e8b807a28ff94d" + url: "https://pub.dev" + source: hosted + version: "1.15.0" + cross_file: + dependency: transitive + description: + name: cross_file + sha256: "701dcfc06da0882883a2657c445103380e53e647060ad8d9dfb710c100996608" + url: "https://pub.dev" + source: hosted + version: "0.3.5+1" + crypto: + dependency: "direct main" + description: + name: crypto + sha256: c8ea0233063ba03258fbcf2ca4d6dadfefe14f02fab57702265467a19f27fadf + url: "https://pub.dev" + source: hosted + version: "3.0.7" + csslib: + dependency: transitive + description: + name: csslib + sha256: "09bad715f418841f976c77db72d5398dc1253c21fb9c0c7f0b0b985860b2d58e" + url: "https://pub.dev" + source: hosted + version: "1.0.2" + custom_sliding_segmented_control: + dependency: "direct main" + description: + name: custom_sliding_segmented_control + sha256: bc747b1500284bff36fc8c61774c9a3ca35c1dca4d570141c8a2569b4f984bf3 + url: "https://pub.dev" + source: hosted + version: "1.8.5" + dart_jsonwebtoken: + dependency: transitive + description: + name: dart_jsonwebtoken + sha256: "0de65691c1d736e9459f22f654ddd6fd8368a271d4e41aa07e53e6301eff5075" + url: "https://pub.dev" + source: hosted + version: "3.3.1" + dart_style: + dependency: transitive + description: + name: dart_style + sha256: a9c30492da18ff84efe2422ba2d319a89942d93e58eb0b73d32abe822ef54b7b + url: "https://pub.dev" + source: hosted + version: "3.1.3" + dbus: + dependency: transitive + description: + name: dbus + sha256: "79e0c23480ff85dc68de79e2cd6334add97e48f7f4865d17686dd6ea81a47e8c" + url: "https://pub.dev" + source: hosted + version: "0.7.11" + device_info_plus: + dependency: transitive + description: + name: device_info_plus + sha256: b4fed1b2835da9d670d7bed7db79ae2a94b0f5ad6312268158a9b5479abbacdd + url: "https://pub.dev" + source: hosted + version: "12.4.0" + device_info_plus_platform_interface: + dependency: transitive + description: + name: device_info_plus_platform_interface + sha256: e1ea89119e34903dca74b883d0dd78eb762814f97fb6c76f35e9ff74d261a18f + url: "https://pub.dev" + source: hosted + version: "7.0.3" + diff_match_patch: + dependency: transitive + description: + name: diff_match_patch + sha256: "2efc9e6e8f449d0abe15be240e2c2a3bcd977c8d126cfd70598aee60af35c0a4" + url: "https://pub.dev" + source: hosted + version: "0.4.1" + dio: + dependency: "direct main" + description: + name: dio + sha256: d90ee57923d1828ac14e492ca49440f65477f4bb1263575900be731a3dac66a9 + url: "https://pub.dev" + source: hosted + version: "5.9.0" + dio_cache_interceptor: + dependency: "direct main" + description: + name: dio_cache_interceptor + sha256: ac9f312e5a81d79cbccb15f56b78aeae7343a981c1d7c169b11194fae806ec0b + url: "https://pub.dev" + source: hosted + version: "4.0.5" + dio_smart_retry: + dependency: "direct main" + description: + name: dio_smart_retry + sha256: c8e20da5f49289fa7dce5c9c6b5b120928e3661aefa0fa2d206ea6d93f580928 + url: "https://pub.dev" + source: hosted + version: "7.0.1" + dio_web_adapter: + dependency: transitive + description: + name: dio_web_adapter + sha256: "7586e476d70caecaf1686d21eee7247ea43ef5c345eab9e0cc3583ff13378d78" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + dotted_border: + dependency: "direct main" + description: + name: dotted_border + sha256: "99b091ec6891ba0c5331fdc2b502993c7c108f898995739a73c6845d71dad70c" + url: "https://pub.dev" + source: hosted + version: "3.1.0" + draw_text: + dependency: "direct main" + description: + name: draw_text + sha256: "47e8433cfb83d7bd95d5f17514b88ac677c6492e402b15ab1bb0e2ac0a2dc61c" + url: "https://pub.dev" + source: hosted + version: "0.0.2" + ed25519_edwards: + dependency: transitive + description: + name: ed25519_edwards + sha256: "6ce0112d131327ec6d42beede1e5dfd526069b18ad45dcf654f15074ad9276cd" + url: "https://pub.dev" + source: hosted + version: "0.3.1" + equatable: + dependency: "direct main" + description: + name: equatable + sha256: "3e0141505477fd8ad55d6eb4e7776d3fe8430be8e497ccb1521370c3f21a3e2b" + url: "https://pub.dev" + source: hosted + version: "2.0.8" + extended_image: + dependency: transitive + description: + name: extended_image + sha256: f6cbb1d798f51262ed1a3d93b4f1f2aa0d76128df39af18ecb77fa740f88b2e0 + url: "https://pub.dev" + source: hosted + version: "10.0.1" + extended_image_library: + dependency: transitive + description: + name: extended_image_library + sha256: "1f9a24d3a00c2633891c6a7b5cab2807999eb2d5b597e5133b63f49d113811fe" + url: "https://pub.dev" + source: hosted + version: "5.0.1" + fake_async: + dependency: transitive + description: + name: fake_async + sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44" + url: "https://pub.dev" + source: hosted + version: "1.3.3" + ffi: + dependency: transitive + description: + name: ffi + sha256: d07d37192dbf97461359c1518788f203b0c9102cfd2c35a716b823741219542c + url: "https://pub.dev" + source: hosted + version: "2.1.5" + file: + dependency: transitive + description: + name: file + sha256: a3b4f84adafef897088c160faf7dfffb7696046cb13ae90b508c2cbc95d3b8d4 + url: "https://pub.dev" + source: hosted + version: "7.0.1" + file_picker: + dependency: "direct main" + description: + name: file_picker + sha256: f13a03000d942e476bc1ff0a736d2e9de711d2f89a95cd4c1d88f861c3348387 + url: "https://pub.dev" + source: hosted + version: "11.0.2" + file_selector_linux: + dependency: transitive + description: + name: file_selector_linux + sha256: "2567f398e06ac72dcf2e98a0c95df2a9edd03c2c2e0cacd4780f20cdf56263a0" + url: "https://pub.dev" + source: hosted + version: "0.9.4" + file_selector_macos: + dependency: transitive + description: + name: file_selector_macos + sha256: "5e0bbe9c312416f1787a68259ea1505b52f258c587f12920422671807c4d618a" + url: "https://pub.dev" + source: hosted + version: "0.9.5" + file_selector_platform_interface: + dependency: transitive + description: + name: file_selector_platform_interface + sha256: "35e0bd61ebcdb91a3505813b055b09b79dfdc7d0aee9c09a7ba59ae4bb13dc85" + url: "https://pub.dev" + source: hosted + version: "2.7.0" + file_selector_windows: + dependency: transitive + description: + name: file_selector_windows + sha256: "62197474ae75893a62df75939c777763d39c2bc5f73ce5b88497208bc269abfd" + url: "https://pub.dev" + source: hosted + version: "0.9.3+5" + firebase_auth: + dependency: transitive + description: + name: firebase_auth + sha256: b20d1540460814c5984474c1e9dd833bdbcff6ecd8d6ad86cc9da8cfd581c172 + url: "https://pub.dev" + source: hosted + version: "6.1.4" + firebase_auth_mocks: + dependency: "direct main" + description: + name: firebase_auth_mocks + sha256: ee1076150ea51d181ae24d5f8e2686a1926b7cc54e25c0deaa8ac58705025551 + url: "https://pub.dev" + source: hosted + version: "0.15.1" + firebase_auth_platform_interface: + dependency: transitive + description: + name: firebase_auth_platform_interface + sha256: fd0225320b6bbc92460c86352d16b60aea15f9ef88292774cca97b0522ea9f72 + url: "https://pub.dev" + source: hosted + version: "8.1.6" + firebase_auth_web: + dependency: transitive + description: + name: firebase_auth_web + sha256: be7dccb263b89fbda2a564de9d8193118196e8481ffb937222a025cdfdf82c40 + url: "https://pub.dev" + source: hosted + version: "6.1.2" + firebase_core: + dependency: "direct main" + description: + name: firebase_core + sha256: "923085c881663ef685269b013e241b428e1fb03cdd0ebde265d9b40ff18abf80" + url: "https://pub.dev" + source: hosted + version: "4.4.0" + firebase_core_platform_interface: + dependency: transitive + description: + name: firebase_core_platform_interface + sha256: cccb4f572325dc14904c02fcc7db6323ad62ba02536833dddb5c02cac7341c64 + url: "https://pub.dev" + source: hosted + version: "6.0.2" + firebase_core_web: + dependency: transitive + description: + name: firebase_core_web + sha256: "83e7356c704131ca4d8d8dd57e360d8acecbca38b1a3705c7ae46cc34c708084" + url: "https://pub.dev" + source: hosted + version: "3.4.0" + firebase_crashlytics: + dependency: "direct main" + description: + name: firebase_crashlytics + sha256: a6e6cb8b2ea1214533a54e4c1b11b19c40f6a29333f3ab0854a479fdc3237c5b + url: "https://pub.dev" + source: hosted + version: "5.0.7" + firebase_crashlytics_platform_interface: + dependency: transitive + description: + name: firebase_crashlytics_platform_interface + sha256: fc6837c4c64c48fa94cab8a872a632b9194fa9208ca76a822f424b3da945584d + url: "https://pub.dev" + source: hosted + version: "3.8.17" + firebase_messaging: + dependency: "direct main" + description: + name: firebase_messaging + sha256: "06fad40ea14771e969a8f2bbce1944aa20ee2f4f57f4eca5b3ba346b65f3f644" + url: "https://pub.dev" + source: hosted + version: "16.1.1" + firebase_messaging_platform_interface: + dependency: transitive + description: + name: firebase_messaging_platform_interface + sha256: "6c49e901c77e6e10e86d98e32056a087eb1ca1b93acdf58524f1961e617657b7" + url: "https://pub.dev" + source: hosted + version: "4.7.6" + firebase_messaging_web: + dependency: transitive + description: + name: firebase_messaging_web + sha256: "2756f8fea583ffb9d294d15ddecb3a9ad429b023b70c9990c151fc92c54a32b3" + url: "https://pub.dev" + source: hosted + version: "4.1.2" + firebase_remote_config: + dependency: "direct main" + description: + name: firebase_remote_config + sha256: "6d7be334b726537b3aa3a3ef1db9782951cd93c2b996eebc33f64a9f140e0409" + url: "https://pub.dev" + source: hosted + version: "6.1.4" + firebase_remote_config_platform_interface: + dependency: transitive + description: + name: firebase_remote_config_platform_interface + sha256: f895915923bebb9e8b36a6387fac31a9dd36fbb63fa2ee1ea2cbe309634eecdf + url: "https://pub.dev" + source: hosted + version: "2.0.7" + firebase_remote_config_web: + dependency: transitive + description: + name: firebase_remote_config_web + sha256: a4de6b86e5eb0416a46948dcb1fa9fce6a71d41f80fa107f6e202ae579ec81b2 + url: "https://pub.dev" + source: hosted + version: "1.10.3" + fixnum: + dependency: transitive + description: + name: fixnum + sha256: b6dc7065e46c974bc7c5f143080a6764ec7a4be6da1285ececdc37be96de53be + url: "https://pub.dev" + source: hosted + version: "1.1.1" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_animate: + dependency: transitive + description: + name: flutter_animate + sha256: "7befe2d3252728afb77aecaaea1dec88a89d35b9b1d2eea6d04479e8af9117b5" + url: "https://pub.dev" + source: hosted + version: "4.5.2" + flutter_bloc: + dependency: "direct main" + description: + name: flutter_bloc + sha256: cf51747952201a455a1c840f8171d273be009b932c75093020f9af64f2123e38 + url: "https://pub.dev" + source: hosted + version: "9.1.1" + flutter_local_notifications: + dependency: "direct main" + description: + name: flutter_local_notifications + sha256: "76cd20bcfa72fabe50ea27eeaf165527f446f55d3033021462084b87805b4cac" + url: "https://pub.dev" + source: hosted + version: "20.0.0" + flutter_local_notifications_linux: + dependency: transitive + description: + name: flutter_local_notifications_linux + sha256: dce0116868cedd2cdf768af0365fc37ff1cbef7c02c4f51d0587482e625868d0 + url: "https://pub.dev" + source: hosted + version: "7.0.0" + flutter_local_notifications_platform_interface: + dependency: transitive + description: + name: flutter_local_notifications_platform_interface + sha256: "23de31678a48c084169d7ae95866df9de5c9d2a44be3e5915a2ff067aeeba899" + url: "https://pub.dev" + source: hosted + version: "10.0.0" + flutter_local_notifications_windows: + dependency: transitive + description: + name: flutter_local_notifications_windows + sha256: "7ddd964fa85b6a23e96956c5b63ef55cdb9e5947b71b95712204db42ad46da61" + url: "https://pub.dev" + source: hosted + version: "2.0.0" + flutter_localizations: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_native_splash: + dependency: "direct dev" + description: + name: flutter_native_splash + sha256: "4fb9f4113350d3a80841ce05ebf1976a36de622af7d19aca0ca9a9911c7ff002" + url: "https://pub.dev" + source: hosted + version: "2.4.7" + flutter_phosphor_icons: + dependency: "direct main" + description: + name: flutter_phosphor_icons + sha256: "60a970f5fb5b22c93cea61e96c2cd922612dd2d4a359fa441e4d31c2e3b3c664" + url: "https://pub.dev" + source: hosted + version: "0.0.1+6" + flutter_plugin_android_lifecycle: + dependency: transitive + description: + name: flutter_plugin_android_lifecycle + sha256: ee8068e0e1cd16c4a82714119918efdeed33b3ba7772c54b5d094ab53f9b7fd1 + url: "https://pub.dev" + source: hosted + version: "2.0.33" + flutter_screenutil: + dependency: "direct main" + description: + name: flutter_screenutil + sha256: "8239210dd68bee6b0577aa4a090890342d04a136ce1c81f98ee513fc0ce891de" + url: "https://pub.dev" + source: hosted + version: "5.9.3" + flutter_shaders: + dependency: transitive + description: + name: flutter_shaders + sha256: "34794acadd8275d971e02df03afee3dee0f98dbfb8c4837082ad0034f612a3e2" + url: "https://pub.dev" + source: hosted + version: "0.1.3" + flutter_svg: + dependency: "direct main" + description: + name: flutter_svg + sha256: "87fbd7c534435b6c5d9d98b01e1fd527812b82e68ddd8bd35fc45ed0fa8f0a95" + url: "https://pub.dev" + source: hosted + version: "2.2.3" + flutter_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + flutter_web_plugins: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + frontend_server_client: + dependency: transitive + description: + name: frontend_server_client + sha256: f64a0333a82f30b0cca061bc3d143813a486dc086b574bfb233b7c1372427694 + url: "https://pub.dev" + source: hosted + version: "4.0.0" + geocoding: + dependency: "direct main" + description: + name: geocoding + sha256: "606be036287842d779d7ec4e2f6c9435fc29bbbd3c6da6589710f981d8852895" + url: "https://pub.dev" + source: hosted + version: "4.0.0" + geocoding_android: + dependency: transitive + description: + name: geocoding_android + sha256: ba810da90d6633cbb82bbab630e5b4a3b7d23503263c00ae7f1ef0316dcae5b9 + url: "https://pub.dev" + source: hosted + version: "4.0.1" + geocoding_ios: + dependency: transitive + description: + name: geocoding_ios + sha256: "18ab1c8369e2b0dcb3a8ccc907319334f35ee8cf4cfef4d9c8e23b13c65cb825" + url: "https://pub.dev" + source: hosted + version: "3.1.0" + geocoding_platform_interface: + dependency: transitive + description: + name: geocoding_platform_interface + sha256: "8c2c8226e5c276594c2e18bfe88b19110ed770aeb7c1ab50ede570be8b92229b" + url: "https://pub.dev" + source: hosted + version: "3.2.0" + geolocator: + dependency: "direct main" + description: + name: geolocator + sha256: f62bcd90459e63210bbf9c35deb6a51c521f992a78de19a1fe5c11704f9530e2 + url: "https://pub.dev" + source: hosted + version: "13.0.4" + geolocator_android: + dependency: transitive + description: + name: geolocator_android + sha256: fcb1760a50d7500deca37c9a666785c047139b5f9ee15aa5469fae7dbbe3170d + url: "https://pub.dev" + source: hosted + version: "4.6.2" + geolocator_apple: + dependency: transitive + description: + name: geolocator_apple + sha256: dbdd8789d5aaf14cf69f74d4925ad1336b4433a6efdf2fce91e8955dc921bf22 + url: "https://pub.dev" + source: hosted + version: "2.3.13" + geolocator_platform_interface: + dependency: transitive + description: + name: geolocator_platform_interface + sha256: "30cb64f0b9adcc0fb36f628b4ebf4f731a2961a0ebd849f4b56200205056fe67" + url: "https://pub.dev" + source: hosted + version: "4.2.6" + geolocator_web: + dependency: transitive + description: + name: geolocator_web + sha256: b1ae9bdfd90f861fde8fd4f209c37b953d65e92823cb73c7dee1fa021b06f172 + url: "https://pub.dev" + source: hosted + version: "4.1.3" + geolocator_windows: + dependency: transitive + description: + name: geolocator_windows + sha256: "175435404d20278ffd220de83c2ca293b73db95eafbdc8131fe8609be1421eb6" + url: "https://pub.dev" + source: hosted + version: "0.2.5" + get_it: + dependency: "direct main" + description: + name: get_it + sha256: "568d62f0e68666fb5d95519743b3c24a34c7f19d834b0658c46e26d778461f66" + url: "https://pub.dev" + source: hosted + version: "9.2.1" + glob: + dependency: transitive + description: + name: glob + sha256: c3f1ee72c96f8f78935e18aa8cecced9ab132419e8625dc187e1c2408efc20de + url: "https://pub.dev" + source: hosted + version: "2.1.3" + go_router: + dependency: "direct main" + description: + name: go_router + sha256: "7974313e217a7771557add6ff2238acb63f635317c35fa590d348fb238f00896" + url: "https://pub.dev" + source: hosted + version: "17.1.0" + google_fonts: + dependency: "direct main" + description: + name: google_fonts + sha256: ba03d03bcaa2f6cb7bd920e3b5027181db75ab524f8891c8bc3aa603885b8055 + url: "https://pub.dev" + source: hosted + version: "6.3.3" + graphs: + dependency: transitive + description: + name: graphs + sha256: "741bbf84165310a68ff28fe9e727332eef1407342fca52759cb21ad8177bb8d0" + url: "https://pub.dev" + source: hosted + version: "2.3.2" + hexcolor: + dependency: "direct main" + description: + name: hexcolor + sha256: "0f237eed7db96ebacd8fda00d17f5ae262aaa84c213d53457c06b1dcbdfa81f2" + url: "https://pub.dev" + source: hosted + version: "3.0.2" + hive_ce: + dependency: transitive + description: + name: hive_ce + sha256: b01cb16fc79cd4f63344d63f197d921eeb6c5bf1b5db6a21d0c21db0ec021516 + url: "https://pub.dev" + source: hosted + version: "2.18.0" + hooks: + dependency: transitive + description: + name: hooks + sha256: "5410b9f4f6c9f01e8ff0eb81c9801ea13a3c3d39f8f0b1613cda08e27eab3c18" + url: "https://pub.dev" + source: hosted + version: "0.20.5" + html: + dependency: transitive + description: + name: html + sha256: "6d1264f2dffa1b1101c25a91dff0dc2daee4c18e87cd8538729773c073dbf602" + url: "https://pub.dev" + source: hosted + version: "0.15.6" + http: + dependency: transitive + description: + name: http + sha256: "87721a4a50b19c7f1d49001e51409bddc46303966ce89a65af4f4e6004896412" + url: "https://pub.dev" + source: hosted + version: "1.6.0" + http_cache_core: + dependency: transitive + description: + name: http_cache_core + sha256: ff0b6e6c3766d774d59b806f928b39e6a48f7b2c47ae1fe27410bfd792bee511 + url: "https://pub.dev" + source: hosted + version: "1.1.3" + http_cache_hive_store: + dependency: "direct main" + description: + name: http_cache_hive_store + sha256: "85847efdb18094961a66b74d3b856da093ddcbaf7739adecdc28149e871fb8fe" + url: "https://pub.dev" + source: hosted + version: "5.0.1" + http_client_helper: + dependency: transitive + description: + name: http_client_helper + sha256: "8a9127650734da86b5c73760de2b404494c968a3fd55602045ffec789dac3cb1" + url: "https://pub.dev" + source: hosted + version: "3.0.0" + http_multi_server: + dependency: transitive + description: + name: http_multi_server + sha256: aa6199f908078bb1c5efb8d8638d4ae191aac11b311132c3ef48ce352fb52ef8 + url: "https://pub.dev" + source: hosted + version: "3.2.2" + http_parser: + dependency: transitive + description: + name: http_parser + sha256: "178d74305e7866013777bab2c3d8726205dc5a4dd935297175b19a23a2e66571" + url: "https://pub.dev" + source: hosted + version: "4.1.2" + iconsax_flutter: + dependency: "direct main" + description: + name: iconsax_flutter + sha256: d14b4cec8586025ac15276bdd40f6eea308cb85748135965bb6255f14beb2564 + url: "https://pub.dev" + source: hosted + version: "1.0.1" + iconsax_plus: + dependency: "direct main" + description: + name: iconsax_plus + sha256: e9e51b0652a1d3ceea5fedbfc2c1bb4ad432c2ceb7be7de2e30caf085678933c + url: "https://pub.dev" + source: hosted + version: "1.0.0" + image: + dependency: "direct main" + description: + name: image + sha256: f9881ff4998044947ec38d098bc7c8316ae1186fa786eddffdb867b9bc94dfce + url: "https://pub.dev" + source: hosted + version: "4.8.0" + image_picker: + dependency: "direct main" + description: + name: image_picker + sha256: "784210112be18ea55f69d7076e2c656a4e24949fa9e76429fe53af0c0f4fa320" + url: "https://pub.dev" + source: hosted + version: "1.2.1" + image_picker_android: + dependency: transitive + description: + name: image_picker_android + sha256: "518a16108529fc18657a3e6dde4a043dc465d16596d20ab2abd49a4cac2e703d" + url: "https://pub.dev" + source: hosted + version: "0.8.13+13" + image_picker_for_web: + dependency: transitive + description: + name: image_picker_for_web + sha256: "66257a3191ab360d23a55c8241c91a6e329d31e94efa7be9cf7a212e65850214" + url: "https://pub.dev" + source: hosted + version: "3.1.1" + image_picker_ios: + dependency: transitive + description: + name: image_picker_ios + sha256: b9c4a438a9ff4f60808c9cf0039b93a42bb6c2211ef6ebb647394b2b3fa84588 + url: "https://pub.dev" + source: hosted + version: "0.8.13+6" + image_picker_linux: + dependency: transitive + description: + name: image_picker_linux + sha256: "1f81c5f2046b9ab724f85523e4af65be1d47b038160a8c8deed909762c308ed4" + url: "https://pub.dev" + source: hosted + version: "0.2.2" + image_picker_macos: + dependency: transitive + description: + name: image_picker_macos + sha256: "86f0f15a309de7e1a552c12df9ce5b59fe927e71385329355aec4776c6a8ec91" + url: "https://pub.dev" + source: hosted + version: "0.2.2+1" + image_picker_platform_interface: + dependency: transitive + description: + name: image_picker_platform_interface + sha256: "567e056716333a1647c64bb6bd873cff7622233a5c3f694be28a583d4715690c" + url: "https://pub.dev" + source: hosted + version: "2.11.1" + image_picker_windows: + dependency: transitive + description: + name: image_picker_windows + sha256: d248c86554a72b5495a31c56f060cf73a41c7ff541689327b1a7dbccc33adfae + url: "https://pub.dev" + source: hosted + version: "0.2.2" + injectable: + dependency: "direct main" + description: + name: injectable + sha256: "32b36a9d87f18662bee0b1951b81f47a01f2bf28cd6ea94f60bc5453c7bf598c" + url: "https://pub.dev" + source: hosted + version: "2.7.1+4" + injectable_generator: + dependency: "direct dev" + description: + name: injectable_generator + sha256: "309c3f3546160dd00b575f16b341a6a3025479950441bcc7fcb2f8404a40d326" + url: "https://pub.dev" + source: hosted + version: "2.9.1" + internet_connection_checker: + dependency: "direct main" + description: + name: internet_connection_checker + sha256: ee08f13d8b13b978affe226e9274ca3ba7a9bed07c9479e8ae245f785b7a488a + url: "https://pub.dev" + source: hosted + version: "3.0.1" + intl: + dependency: "direct main" + description: + name: intl + sha256: "3df61194eb431efc39c4ceba583b95633a403f46c9fd341e550ce0bfa50e9aa5" + url: "https://pub.dev" + source: hosted + version: "0.20.2" + io: + dependency: transitive + description: + name: io + sha256: dfd5a80599cf0165756e3181807ed3e77daf6dd4137caaad72d0b7931597650b + url: "https://pub.dev" + source: hosted + version: "1.0.5" + isolate_channel: + dependency: transitive + description: + name: isolate_channel + sha256: "68191008e3a219bc87cc8cddbcd1e29810bd9f3a0fdc2108b574ccbd9aafda08" + url: "https://pub.dev" + source: hosted + version: "0.3.0" + js: + dependency: transitive + description: + name: js + sha256: "53385261521cc4a0c4658fd0ad07a7d14591cf8fc33abbceae306ddb974888dc" + url: "https://pub.dev" + source: hosted + version: "0.7.2" + json_annotation: + dependency: transitive + description: + name: json_annotation + sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1" + url: "https://pub.dev" + source: hosted + version: "4.9.0" + leak_tracker: + dependency: transitive + description: + name: leak_tracker + sha256: "33e2e26bdd85a0112ec15400c8cbffea70d0f9c3407491f672a2fad47915e2de" + url: "https://pub.dev" + source: hosted + version: "11.0.2" + leak_tracker_flutter_testing: + dependency: transitive + description: + name: leak_tracker_flutter_testing + sha256: "1dbc140bb5a23c75ea9c4811222756104fbcd1a27173f0c34ca01e16bea473c1" + url: "https://pub.dev" + source: hosted + version: "3.0.10" + leak_tracker_testing: + dependency: transitive + description: + name: leak_tracker_testing + sha256: "8d5a2d49f4a66b49744b23b018848400d23e54caf9463f4eb20df3eb8acb2eb1" + url: "https://pub.dev" + source: hosted + version: "3.0.2" + logger: + dependency: "direct main" + description: + name: logger + sha256: a7967e31b703831a893bbc3c3dd11db08126fe5f369b5c648a36f821979f5be3 + url: "https://pub.dev" + source: hosted + version: "2.6.2" + logging: + dependency: transitive + description: + name: logging + sha256: c8245ada5f1717ed44271ed1c26b8ce85ca3228fd2ffdb75468ab01979309d61 + url: "https://pub.dev" + source: hosted + version: "1.3.0" + lottie: + dependency: "direct main" + description: + name: lottie + sha256: "8b6359a7422167014aa73ce763fa133fb832065dcc0ac4d1dec1f603a5cef7d0" + url: "https://pub.dev" + source: hosted + version: "3.3.3" + lucide_icons_flutter: + dependency: "direct main" + description: + name: lucide_icons_flutter + sha256: "67bc7cc05c3c03eee3405f88a0ca127efca03561db00e2e93cc0a46019c19a7b" + url: "https://pub.dev" + source: hosted + version: "3.1.9" + matcher: + dependency: transitive + description: + name: matcher + sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2 + url: "https://pub.dev" + source: hosted + version: "0.12.17" + material_color_utilities: + dependency: transitive + description: + name: material_color_utilities + sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec + url: "https://pub.dev" + source: hosted + version: "0.11.1" + meta: + dependency: transitive + description: + name: meta + sha256: "23f08335362185a5ea2ad3a4e597f1375e78bce8a040df5c600c8d3552ef2394" + url: "https://pub.dev" + source: hosted + version: "1.17.0" + mime: + dependency: transitive + description: + name: mime + sha256: "41a20518f0cb1256669420fdba0cd90d21561e560ac240f26ef8322e45bb7ed6" + url: "https://pub.dev" + source: hosted + version: "2.0.0" + mock_exceptions: + dependency: transitive + description: + name: mock_exceptions + sha256: "6e3e623712d2c6106ffe9e14732912522b565ddaa82a8dcee6cd4441b5984056" + url: "https://pub.dev" + source: hosted + version: "0.8.2" + mocktail: + dependency: "direct dev" + description: + name: mocktail + sha256: "890df3f9688106f25755f26b1c60589a92b3ab91a22b8b224947ad041bf172d8" + url: "https://pub.dev" + source: hosted + version: "1.0.4" + modal_bottom_sheet: + dependency: "direct main" + description: + name: modal_bottom_sheet + sha256: eac66ef8cb0461bf069a38c5eb0fa728cee525a531a8304bd3f7b2185407c67e + url: "https://pub.dev" + source: hosted + version: "3.0.0" + native_toolchain_c: + dependency: transitive + description: + name: native_toolchain_c + sha256: f8872ea6c7a50ce08db9ae280ca2b8efdd973157ce462826c82f3c3051d154ce + url: "https://pub.dev" + source: hosted + version: "0.17.2" + nested: + dependency: transitive + description: + name: nested + sha256: "03bac4c528c64c95c722ec99280375a6f2fc708eec17c7b3f07253b626cd2a20" + url: "https://pub.dev" + source: hosted + version: "1.0.0" + nm: + dependency: transitive + description: + name: nm + sha256: "2c9aae4127bdc8993206464fcc063611e0e36e72018696cd9631023a31b24254" + url: "https://pub.dev" + source: hosted + version: "0.5.0" + node_preamble: + dependency: transitive + description: + name: node_preamble + sha256: "6e7eac89047ab8a8d26cf16127b5ed26de65209847630400f9aefd7cd5c730db" + url: "https://pub.dev" + source: hosted + version: "2.0.2" + objective_c: + dependency: transitive + description: + name: objective_c + sha256: "55eb67ede1002d9771b3f9264d2c9d30bc364f0267bc1c6cc0883280d5f0c7cb" + url: "https://pub.dev" + source: hosted + version: "9.2.2" + open_filex: + dependency: "direct main" + description: + name: open_filex + sha256: "9976da61b6a72302cf3b1efbce259200cd40232643a467aac7370addf94d6900" + url: "https://pub.dev" + source: hosted + version: "4.7.0" + package_config: + dependency: transitive + description: + name: package_config + sha256: f096c55ebb7deb7e384101542bfba8c52696c1b56fca2eb62827989ef2353bbc + url: "https://pub.dev" + source: hosted + version: "2.2.0" + package_info_plus: + dependency: "direct main" + description: + name: package_info_plus + sha256: f69da0d3189a4b4ceaeb1a3defb0f329b3b352517f52bed4290f83d4f06bc08d + url: "https://pub.dev" + source: hosted + version: "9.0.0" + package_info_plus_platform_interface: + dependency: transitive + description: + name: package_info_plus_platform_interface + sha256: "202a487f08836a592a6bd4f901ac69b3a8f146af552bbd14407b6b41e1c3f086" + url: "https://pub.dev" + source: hosted + version: "3.2.1" + path: + dependency: transitive + description: + name: path + sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5" + url: "https://pub.dev" + source: hosted + version: "1.9.1" + path_parsing: + dependency: transitive + description: + name: path_parsing + sha256: "883402936929eac138ee0a45da5b0f2c80f89913e6dc3bf77eb65b84b409c6ca" + url: "https://pub.dev" + source: hosted + version: "1.1.0" + path_provider: + dependency: "direct main" + description: + name: path_provider + sha256: "50c5dd5b6e1aaf6fb3a78b33f6aa3afca52bf903a8a5298f53101fdaee55bbcd" + url: "https://pub.dev" + source: hosted + version: "2.1.5" + path_provider_android: + dependency: transitive + description: + name: path_provider_android + sha256: f2c65e21139ce2c3dad46922be8272bb5963516045659e71bb16e151c93b580e + url: "https://pub.dev" + source: hosted + version: "2.2.22" + path_provider_foundation: + dependency: transitive + description: + name: path_provider_foundation + sha256: "2a376b7d6392d80cd3705782d2caa734ca4727776db0b6ec36ef3f1855197699" + url: "https://pub.dev" + source: hosted + version: "2.6.0" + path_provider_linux: + dependency: transitive + description: + name: path_provider_linux + sha256: f7a1fe3a634fe7734c8d3f2766ad746ae2a2884abe22e241a8b301bf5cac3279 + url: "https://pub.dev" + source: hosted + version: "2.2.1" + path_provider_platform_interface: + dependency: transitive + description: + name: path_provider_platform_interface + sha256: "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334" + url: "https://pub.dev" + source: hosted + version: "2.1.2" + path_provider_windows: + dependency: transitive + description: + name: path_provider_windows + sha256: bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7 + url: "https://pub.dev" + source: hosted + version: "2.3.0" + permission_handler: + dependency: "direct main" + description: + name: permission_handler + sha256: "59adad729136f01ea9e35a48f5d1395e25cba6cea552249ddbe9cf950f5d7849" + url: "https://pub.dev" + source: hosted + version: "11.4.0" + permission_handler_android: + dependency: transitive + description: + name: permission_handler_android + sha256: d3971dcdd76182a0c198c096b5db2f0884b0d4196723d21a866fc4cdea057ebc + url: "https://pub.dev" + source: hosted + version: "12.1.0" + permission_handler_apple: + dependency: transitive + description: + name: permission_handler_apple + sha256: f000131e755c54cf4d84a5d8bd6e4149e262cc31c5a8b1d698de1ac85fa41023 + url: "https://pub.dev" + source: hosted + version: "9.4.7" + permission_handler_html: + dependency: transitive + description: + name: permission_handler_html + sha256: "38f000e83355abb3392140f6bc3030660cfaef189e1f87824facb76300b4ff24" + url: "https://pub.dev" + source: hosted + version: "0.1.3+5" + permission_handler_platform_interface: + dependency: transitive + description: + name: permission_handler_platform_interface + sha256: eb99b295153abce5d683cac8c02e22faab63e50679b937fa1bf67d58bb282878 + url: "https://pub.dev" + source: hosted + version: "4.3.0" + permission_handler_windows: + dependency: transitive + description: + name: permission_handler_windows + sha256: "1a790728016f79a41216d88672dbc5df30e686e811ad4e698bfc51f76ad91f1e" + url: "https://pub.dev" + source: hosted + version: "0.2.1" + petitparser: + dependency: transitive + description: + name: petitparser + sha256: "1a97266a94f7350d30ae522c0af07890c70b8e62c71e8e3920d1db4d23c057d1" + url: "https://pub.dev" + source: hosted + version: "7.0.1" + phosphor_flutter: + dependency: "direct main" + description: + name: phosphor_flutter + sha256: "8a14f238f28a0b54842c5a4dc20676598dd4811fcba284ed828bd5a262c11fde" + url: "https://pub.dev" + source: hosted + version: "2.1.0" + photo_view: + dependency: "direct main" + description: + name: photo_view + sha256: "1fc3d970a91295fbd1364296575f854c9863f225505c28c46e0a03e48960c75e" + url: "https://pub.dev" + source: hosted + version: "0.15.0" + platform: + dependency: transitive + description: + name: platform + sha256: "5d6b1b0036a5f331ebc77c850ebc8506cbc1e9416c27e59b439f917a902a4984" + url: "https://pub.dev" + source: hosted + version: "3.1.6" + plugin_platform_interface: + dependency: transitive + description: + name: plugin_platform_interface + sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02" + url: "https://pub.dev" + source: hosted + version: "2.1.8" + pointycastle: + dependency: transitive + description: + name: pointycastle + sha256: "92aa3841d083cc4b0f4709b5c74fd6409a3e6ba833ffc7dc6a8fee096366acf5" + url: "https://pub.dev" + source: hosted + version: "4.0.0" + pool: + dependency: transitive + description: + name: pool + sha256: "978783255c543aa3586a1b3c21f6e9d720eb315376a915872c61ef8b5c20177d" + url: "https://pub.dev" + source: hosted + version: "1.5.2" + posix: + dependency: transitive + description: + name: posix + sha256: "6323a5b0fa688b6a010df4905a56b00181479e6d10534cecfecede2aa55add61" + url: "https://pub.dev" + source: hosted + version: "6.0.3" + pretty_dio_logger: + dependency: "direct main" + description: + name: pretty_dio_logger + sha256: "36f2101299786d567869493e2f5731de61ce130faa14679473b26905a92b6407" + url: "https://pub.dev" + source: hosted + version: "1.4.0" + provider: + dependency: transitive + description: + name: provider + sha256: "4e82183fa20e5ca25703ead7e05de9e4cceed1fbd1eadc1ac3cb6f565a09f272" + url: "https://pub.dev" + source: hosted + version: "6.1.5+1" + pub_semver: + dependency: transitive + description: + name: pub_semver + sha256: "5bfcf68ca79ef689f8990d1160781b4bad40a3bd5e5218ad4076ddb7f4081585" + url: "https://pub.dev" + source: hosted + version: "2.2.0" + pubspec_parse: + dependency: transitive + description: + name: pubspec_parse + sha256: "0560ba233314abbed0a48a2956f7f022cce7c3e1e73df540277da7544cad4082" + url: "https://pub.dev" + source: hosted + version: "1.5.0" + pull_to_refresh_flutter3: + dependency: "direct main" + description: + name: pull_to_refresh_flutter3 + sha256: "37a88d901cca9a46dbdd46523de8e7b35a3e58634a0e775b1a5904981f69b353" + url: "https://pub.dev" + source: hosted + version: "2.0.2" + qs_dart: + dependency: transitive + description: + name: qs_dart + sha256: "65ef8d4321cf0183b2789aa73a78cbe1d6073120a0b73745752e3796951c90d4" + url: "https://pub.dev" + source: hosted + version: "1.6.1" + recase: + dependency: transitive + description: + name: recase + sha256: e4eb4ec2dcdee52dcf99cb4ceabaffc631d7424ee55e56f280bc039737f89213 + url: "https://pub.dev" + source: hosted + version: "4.1.0" + shadcn_ui: + dependency: "direct main" + description: + name: shadcn_ui + sha256: "46b1311e5759879762184e0ed34e82c6c77b04140350d5dafed651af0af091fc" + url: "https://pub.dev" + source: hosted + version: "0.45.1" + share_plus: + dependency: transitive + description: + name: share_plus + sha256: "14c8860d4de93d3a7e53af51bff479598c4e999605290756bbbe45cf65b37840" + url: "https://pub.dev" + source: hosted + version: "12.0.1" + share_plus_platform_interface: + dependency: transitive + description: + name: share_plus_platform_interface + sha256: "88023e53a13429bd65d8e85e11a9b484f49d4c190abbd96c7932b74d6927cc9a" + url: "https://pub.dev" + source: hosted + version: "6.1.0" + shared_preferences: + dependency: "direct main" + description: + name: shared_preferences + sha256: "2939ae520c9024cb197fc20dee269cd8cdbf564c8b5746374ec6cacdc5169e64" + url: "https://pub.dev" + source: hosted + version: "2.5.4" + shared_preferences_android: + dependency: transitive + description: + name: shared_preferences_android + sha256: "83af5c682796c0f7719c2bbf74792d113e40ae97981b8f266fa84574573556bc" + url: "https://pub.dev" + source: hosted + version: "2.4.18" + shared_preferences_foundation: + dependency: transitive + description: + name: shared_preferences_foundation + sha256: "4e7eaffc2b17ba398759f1151415869a34771ba11ebbccd1b0145472a619a64f" + url: "https://pub.dev" + source: hosted + version: "2.5.6" + shared_preferences_linux: + dependency: transitive + description: + name: shared_preferences_linux + sha256: "580abfd40f415611503cae30adf626e6656dfb2f0cee8f465ece7b6defb40f2f" + url: "https://pub.dev" + source: hosted + version: "2.4.1" + shared_preferences_platform_interface: + dependency: transitive + description: + name: shared_preferences_platform_interface + sha256: "57cbf196c486bc2cf1f02b85784932c6094376284b3ad5779d1b1c6c6a816b80" + url: "https://pub.dev" + source: hosted + version: "2.4.1" + shared_preferences_web: + dependency: transitive + description: + name: shared_preferences_web + sha256: c49bd060261c9a3f0ff445892695d6212ff603ef3115edbb448509d407600019 + url: "https://pub.dev" + source: hosted + version: "2.4.3" + shared_preferences_windows: + dependency: transitive + description: + name: shared_preferences_windows + sha256: "94ef0f72b2d71bc3e700e025db3710911bd51a71cefb65cc609dd0d9a982e3c1" + url: "https://pub.dev" + source: hosted + version: "2.4.1" + shelf: + dependency: transitive + description: + name: shelf + sha256: e7dd780a7ffb623c57850b33f43309312fc863fb6aa3d276a754bb299839ef12 + url: "https://pub.dev" + source: hosted + version: "1.4.2" + shelf_packages_handler: + dependency: transitive + description: + name: shelf_packages_handler + sha256: "89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e" + url: "https://pub.dev" + source: hosted + version: "3.0.2" + shelf_static: + dependency: transitive + description: + name: shelf_static + sha256: c87c3875f91262785dade62d135760c2c69cb217ac759485334c5857ad89f6e3 + url: "https://pub.dev" + source: hosted + version: "1.1.3" + shelf_web_socket: + dependency: transitive + description: + name: shelf_web_socket + sha256: "3632775c8e90d6c9712f883e633716432a27758216dfb61bd86a8321c0580925" + url: "https://pub.dev" + source: hosted + version: "3.0.0" + signature: + dependency: "direct main" + description: + name: signature + sha256: f3d14bd6dae46d3b4802c6a091d6d39c9c6080d999e8c5380581d3725c30e360 + url: "https://pub.dev" + source: hosted + version: "6.3.0" + skeleton_text: + dependency: "direct main" + description: + name: skeleton_text + sha256: bacd536bf0664efe1cae53bcbd78c3d4040a120f300f69dc85d83f358471cc6c + url: "https://pub.dev" + source: hosted + version: "3.0.1" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + source_gen: + dependency: transitive + description: + name: source_gen + sha256: "1d562a3c1f713904ebbed50d2760217fd8a51ca170ac4b05b0db490699dbac17" + url: "https://pub.dev" + source: hosted + version: "4.2.0" + source_map_stack_trace: + dependency: transitive + description: + name: source_map_stack_trace + sha256: c0713a43e323c3302c2abe2a1cc89aa057a387101ebd280371d6a6c9fa68516b + url: "https://pub.dev" + source: hosted + version: "2.1.2" + source_maps: + dependency: transitive + description: + name: source_maps + sha256: "190222579a448b03896e0ca6eca5998fa810fda630c1d65e2f78b3f638f54812" + url: "https://pub.dev" + source: hosted + version: "0.10.13" + source_span: + dependency: transitive + description: + name: source_span + sha256: "254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c" + url: "https://pub.dev" + source: hosted + version: "1.10.1" + stack_trace: + dependency: transitive + description: + name: stack_trace + sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1" + url: "https://pub.dev" + source: hosted + version: "1.12.1" + stream_channel: + dependency: transitive + description: + name: stream_channel + sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + stream_transform: + dependency: transitive + description: + name: stream_transform + sha256: ad47125e588cfd37a9a7f86c7d6356dde8dfe89d071d293f80ca9e9273a33871 + url: "https://pub.dev" + source: hosted + version: "2.1.1" + string_scanner: + dependency: transitive + description: + name: string_scanner + sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43" + url: "https://pub.dev" + source: hosted + version: "1.4.1" + svg_flutter: + dependency: "direct main" + description: + name: svg_flutter + sha256: "5d6b37ca069e5e0eaa987691dc61594674e687b5bec8fd9797877a5f331d43e1" + url: "https://pub.dev" + source: hosted + version: "0.0.1" + syncfusion_flutter_core: + dependency: transitive + description: + name: syncfusion_flutter_core + sha256: "799dd6683b0902491b4b194cfaa5b5a100f87205db083923dbb5f77ff6f509e4" + url: "https://pub.dev" + source: hosted + version: "33.2.3" + syncfusion_flutter_pdf: + dependency: transitive + description: + name: syncfusion_flutter_pdf + sha256: cd6e04012544d650483a8bc58841032e5cc5cb6f6a34a0cafdadcbbd99344ca1 + url: "https://pub.dev" + source: hosted + version: "33.2.3" + syncfusion_flutter_pdfviewer: + dependency: "direct main" + description: + name: syncfusion_flutter_pdfviewer + sha256: "43644cc98a39de5b988c6fa027b391da37205e58e4a174829dab53a35bb9bb7f" + url: "https://pub.dev" + source: hosted + version: "33.2.3" + syncfusion_flutter_signaturepad: + dependency: transitive + description: + name: syncfusion_flutter_signaturepad + sha256: "04171e48ffb5397a32ef69025ba4a4decf4046739a99ebfe71c406cbfb4749d0" + url: "https://pub.dev" + source: hosted + version: "33.2.3" + syncfusion_pdfviewer_linux: + dependency: transitive + description: + name: syncfusion_pdfviewer_linux + sha256: d5abe48849e99095c874878950ef4b0c2cd809c43a8d24ad82f7e8819290bb27 + url: "https://pub.dev" + source: hosted + version: "33.2.3" + syncfusion_pdfviewer_macos: + dependency: transitive + description: + name: syncfusion_pdfviewer_macos + sha256: "64691d164845bd565f8b93e75833ff012947225b7767c9b8e20d4de06468d1c8" + url: "https://pub.dev" + source: hosted + version: "33.2.3" + syncfusion_pdfviewer_platform_interface: + dependency: transitive + description: + name: syncfusion_pdfviewer_platform_interface + sha256: "7757a55d7d8f6be6b1c841bdcc2824b5d7fbd11b492c9941d8d7f96dea81aa78" + url: "https://pub.dev" + source: hosted + version: "33.2.3" + syncfusion_pdfviewer_web: + dependency: transitive + description: + name: syncfusion_pdfviewer_web + sha256: e7a6fb41dd26f570c08e5721d4fa8223b06cfcc5cbb0f338b33fcdce2207cc58 + url: "https://pub.dev" + source: hosted + version: "33.2.3" + syncfusion_pdfviewer_windows: + dependency: transitive + description: + name: syncfusion_pdfviewer_windows + sha256: "221d5006715793419a100bf7442a288a4106cbe40db35cd2eb50d3698a5b5787" + url: "https://pub.dev" + source: hosted + version: "33.2.3" + term_glyph: + dependency: transitive + description: + name: term_glyph + sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e" + url: "https://pub.dev" + source: hosted + version: "1.2.2" + test: + dependency: transitive + description: + name: test + sha256: "75906bf273541b676716d1ca7627a17e4c4070a3a16272b7a3dc7da3b9f3f6b7" + url: "https://pub.dev" + source: hosted + version: "1.26.3" + test_api: + dependency: transitive + description: + name: test_api + sha256: ab2726c1a94d3176a45960b6234466ec367179b87dd74f1611adb1f3b5fb9d55 + url: "https://pub.dev" + source: hosted + version: "0.7.7" + test_core: + dependency: transitive + description: + name: test_core + sha256: "0cc24b5ff94b38d2ae73e1eb43cc302b77964fbf67abad1e296025b78deb53d0" + url: "https://pub.dev" + source: hosted + version: "0.6.12" + theme_extensions_builder_annotation: + dependency: transitive + description: + name: theme_extensions_builder_annotation + sha256: e14648a3318842992f14b207cb811df48a1d6f0bd742b77bcbf1b74557493c00 + url: "https://pub.dev" + source: hosted + version: "7.1.0" + timezone: + dependency: transitive + description: + name: timezone + sha256: dd14a3b83cfd7cb19e7888f1cbc20f258b8d71b54c06f79ac585f14093a287d1 + url: "https://pub.dev" + source: hosted + version: "0.10.1" + two_dimensional_scrollables: + dependency: transitive + description: + name: two_dimensional_scrollables + sha256: e9397ae372839aecb3135d246bff5cce5e738604c9afd03d65d06c7a246ae958 + url: "https://pub.dev" + source: hosted + version: "0.3.8" + typed_data: + dependency: transitive + description: + name: typed_data + sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006 + url: "https://pub.dev" + source: hosted + version: "1.4.0" + universal_image: + dependency: transitive + description: + name: universal_image + sha256: ef47a4a002158cf0b36ed3b7605af132d2476cc42703e41b8067d3603705c40d + url: "https://pub.dev" + source: hosted + version: "1.0.11" + universal_io: + dependency: transitive + description: + name: universal_io + sha256: f63cbc48103236abf48e345e07a03ce5757ea86285ed313a6a032596ed9301e2 + url: "https://pub.dev" + source: hosted + version: "2.3.1" + url_launcher: + dependency: "direct main" + description: + name: url_launcher + sha256: f6a7e5c4835bb4e3026a04793a4199ca2d14c739ec378fdfe23fc8075d0439f8 + url: "https://pub.dev" + source: hosted + version: "6.3.2" + url_launcher_android: + dependency: transitive + description: + name: url_launcher_android + sha256: "767344bf3063897b5cf0db830e94f904528e6dd50a6dfaf839f0abf509009611" + url: "https://pub.dev" + source: hosted + version: "6.3.28" + url_launcher_ios: + dependency: transitive + description: + name: url_launcher_ios + sha256: cfde38aa257dae62ffe79c87fab20165dfdf6988c1d31b58ebf59b9106062aad + url: "https://pub.dev" + source: hosted + version: "6.3.6" + url_launcher_linux: + dependency: transitive + description: + name: url_launcher_linux + sha256: d5e14138b3bc193a0f63c10a53c94b91d399df0512b1f29b94a043db7482384a + url: "https://pub.dev" + source: hosted + version: "3.2.2" + url_launcher_macos: + dependency: transitive + description: + name: url_launcher_macos + sha256: "368adf46f71ad3c21b8f06614adb38346f193f3a59ba8fe9a2fd74133070ba18" + url: "https://pub.dev" + source: hosted + version: "3.2.5" + url_launcher_platform_interface: + dependency: transitive + description: + name: url_launcher_platform_interface + sha256: "552f8a1e663569be95a8190206a38187b531910283c3e982193e4f2733f01029" + url: "https://pub.dev" + source: hosted + version: "2.3.2" + url_launcher_web: + dependency: transitive + description: + name: url_launcher_web + sha256: d0412fcf4c6b31ecfdb7762359b7206ffba3bbffd396c6d9f9c4616ece476c1f + url: "https://pub.dev" + source: hosted + version: "2.4.2" + url_launcher_windows: + dependency: transitive + description: + name: url_launcher_windows + sha256: "712c70ab1b99744ff066053cbe3e80c73332b38d46e5e945c98689b2e66fc15f" + url: "https://pub.dev" + source: hosted + version: "3.1.5" + uuid: + dependency: "direct main" + description: + name: uuid + sha256: a11b666489b1954e01d992f3d601b1804a33937b5a8fe677bd26b8a9f96f96e8 + url: "https://pub.dev" + source: hosted + version: "4.5.2" + vector_graphics: + dependency: transitive + description: + name: vector_graphics + sha256: a4f059dc26fc8295b5921376600a194c4ec7d55e72f2fe4c7d2831e103d461e6 + url: "https://pub.dev" + source: hosted + version: "1.1.19" + vector_graphics_codec: + dependency: transitive + description: + name: vector_graphics_codec + sha256: "99fd9fbd34d9f9a32efd7b6a6aae14125d8237b10403b422a6a6dfeac2806146" + url: "https://pub.dev" + source: hosted + version: "1.1.13" + vector_graphics_compiler: + dependency: transitive + description: + name: vector_graphics_compiler + sha256: d354a7ec6931e6047785f4db12a1f61ec3d43b207fc0790f863818543f8ff0dc + url: "https://pub.dev" + source: hosted + version: "1.1.19" + vector_math: + dependency: transitive + description: + name: vector_math + sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b + url: "https://pub.dev" + source: hosted + version: "2.2.0" + very_good_analysis: + dependency: "direct dev" + description: + name: very_good_analysis + sha256: "96245839dbcc45dfab1af5fa551603b5c7a282028a64746c19c547d21a7f1e3a" + url: "https://pub.dev" + source: hosted + version: "10.0.0" + vm_service: + dependency: transitive + description: + name: vm_service + sha256: "45caa6c5917fa127b5dbcfbd1fa60b14e583afdc08bfc96dda38886ca252eb60" + url: "https://pub.dev" + source: hosted + version: "15.0.2" + watcher: + dependency: transitive + description: + name: watcher + sha256: "1398c9f081a753f9226febe8900fce8f7d0a67163334e1c94a2438339d79d635" + url: "https://pub.dev" + source: hosted + version: "1.2.1" + weak_map: + dependency: transitive + description: + name: weak_map + sha256: "5f8e5d5ce57dc624db5fae814dd689ccae1f17f92b426e52f0a7cbe7f6f4ab97" + url: "https://pub.dev" + source: hosted + version: "4.0.1" + web: + dependency: transitive + description: + name: web + sha256: "868d88a33d8a87b18ffc05f9f030ba328ffefba92d6c127917a2ba740f9cfe4a" + url: "https://pub.dev" + source: hosted + version: "1.1.1" + web_socket: + dependency: transitive + description: + name: web_socket + sha256: "34d64019aa8e36bf9842ac014bb5d2f5586ca73df5e4d9bf5c936975cae6982c" + url: "https://pub.dev" + source: hosted + version: "1.0.1" + web_socket_channel: + dependency: transitive + description: + name: web_socket_channel + sha256: d645757fb0f4773d602444000a8131ff5d48c9e47adfe9772652dd1a4f2d45c8 + url: "https://pub.dev" + source: hosted + version: "3.0.3" + webkit_inspection_protocol: + dependency: transitive + description: + name: webkit_inspection_protocol + sha256: "87d3f2333bb240704cd3f1c6b5b7acd8a10e7f0bc28c28dcf14e782014f4a572" + url: "https://pub.dev" + source: hosted + version: "1.2.1" + win32: + dependency: transitive + description: + name: win32 + sha256: d7cb55e04cd34096cd3a79b3330245f54cb96a370a1c27adb3c84b917de8b08e + url: "https://pub.dev" + source: hosted + version: "5.15.0" + win32_registry: + dependency: transitive + description: + name: win32_registry + sha256: "6f1b564492d0147b330dd794fee8f512cec4977957f310f9951b5f9d83618dae" + url: "https://pub.dev" + source: hosted + version: "2.1.0" + xdg_directories: + dependency: transitive + description: + name: xdg_directories + sha256: "7a3f37b05d989967cdddcbb571f1ea834867ae2faa29725fd085180e0883aa15" + url: "https://pub.dev" + source: hosted + version: "1.1.0" + xml: + dependency: transitive + description: + name: xml + sha256: "971043b3a0d3da28727e40ed3e0b5d18b742fa5a68665cca88e74b7876d5e025" + url: "https://pub.dev" + source: hosted + version: "6.6.1" + yaml: + dependency: transitive + description: + name: yaml + sha256: b9da305ac7c39faa3f030eccd175340f968459dae4af175130b3fc47e40d76ce + url: "https://pub.dev" + source: hosted + version: "3.1.3" +sdks: + dart: ">=3.10.3 <4.0.0" + flutter: ">=3.38.4 <4.0.0" diff --git a/pubspec.yaml b/pubspec.yaml new file mode 100644 index 0000000..fdf3752 --- /dev/null +++ b/pubspec.yaml @@ -0,0 +1,94 @@ +name: frontend_eccp_mobile +description: ECCP Mobile App +version: 1.0.0+1 +publish_to: none + +environment: + sdk: ^3.9.0 + flutter: ^3.35.0 + +dependencies: + android_intent_plus: ^6.0.0 + animated_custom_dropdown: ^3.1.1 + app_settings: ^6.1.1 + bloc: ^9.0.1 + chucker_flutter: ^1.9.1 + clipboard: ^3.0.14 + crypto: ^3.0.6 + custom_sliding_segmented_control: ^1.8.5 + dio: ^5.5.0+1 + dio_cache_interceptor: ^4.0.3 + dio_smart_retry: ^7.0.1 + dotted_border: ^3.1.0 + draw_text: ^0.0.2 + equatable: ^2.0.8 + file_picker: ^11.0.2 + firebase_auth_mocks: ^0.15.1 + firebase_core: ^4.4.0 + firebase_crashlytics: ^5.0.7 + firebase_messaging: ^16.1.1 + firebase_remote_config: ^6.1.4 + flutter: + sdk: flutter + flutter_bloc: ^9.1.1 + flutter_local_notifications: ^20.0.0 + flutter_localizations: + sdk: flutter + flutter_phosphor_icons: ^0.0.1+6 + flutter_screenutil: ^5.9.3 + flutter_svg: ^2.2.3 + geocoding: ^4.0.0 + geolocator: ^13.0.1 + get_it: ^9.2.1 + go_router: ^17.1.0 + google_fonts: ^6.2.0 + hexcolor: ^3.0.2 + http_cache_hive_store: ^5.0.1 + iconsax_flutter: ^1.0.1 + iconsax_plus: ^1.0.0 + image: ^4.8.0 + image_picker: ^1.2.1 + injectable: ^2.7.1+4 + internet_connection_checker: ^3.0.1 + intl: ^0.20.2 + logger: ^2.6.2 + lottie: ^3.3.3 + lucide_icons_flutter: ^3.1.9 + modal_bottom_sheet: ^3.0.0 + open_filex: ^4.7.0 + package_info_plus: ^9.0.0 + path_provider: ^2.1.5 + permission_handler: ^11.3.1 + phosphor_flutter: ^2.1.0 + photo_view: ^0.15.0 + pretty_dio_logger: ^1.4.0 + pull_to_refresh_flutter3: ^2.0.2 + shadcn_ui: ^0.45.1 + shared_preferences: ^2.3.1 + signature: ^6.3.0 + skeleton_text: ^3.0.1 + svg_flutter: ^0.0.1 + syncfusion_flutter_pdfviewer: ^33.2.3 + url_launcher: ^6.3.2 + uuid: ^4.5.1 + +dev_dependencies: + bloc_test: ^10.0.0 + build_runner: ^2.4.9 + flutter_native_splash: ^2.4.7 + flutter_test: + sdk: flutter + injectable_generator: ^2.6.1 + mocktail: ^1.0.4 + very_good_analysis: ^10.0.0 + +flutter: + generate: true + uses-material-design: true + assets: + - assets/svg/tabbar/ + - assets/svg/navigation/ + - assets/svg/ + - assets/json/ + - assets/images/ + - assets/webp/ diff --git a/test/app/view/app_test.dart b/test/app/view/app_test.dart new file mode 100644 index 0000000..430f3cb --- /dev/null +++ b/test/app/view/app_test.dart @@ -0,0 +1,15 @@ +// Ignore for testing purposes +// ignore_for_file: prefer_const_constructors + +import 'package:flutter_test/flutter_test.dart'; +import 'package:frontend_eccp_mobile/app/app.dart'; +import 'package:frontend_eccp_mobile/modules/auth/login/presentation/screen/login_page.dart'; + +void main() { + group('App', () { + testWidgets('renders CounterPage', (tester) async { + await tester.pumpWidget(App()); + expect(find.byType(LoginPage), findsOneWidget); + }); + }); +} diff --git a/test/helpers/helpers.dart b/test/helpers/helpers.dart new file mode 100644 index 0000000..b15fe65 --- /dev/null +++ b/test/helpers/helpers.dart @@ -0,0 +1 @@ +export 'pump_app.dart'; diff --git a/test/helpers/pump_app.dart b/test/helpers/pump_app.dart new file mode 100644 index 0000000..19b0321 --- /dev/null +++ b/test/helpers/pump_app.dart @@ -0,0 +1,15 @@ +import 'package:flutter/material.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:frontend_eccp_mobile/l10n/l10n.dart'; + +extension PumpApp on WidgetTester { + Future pumpApp(Widget widget) { + return pumpWidget( + MaterialApp( + localizationsDelegates: AppLocalizations.localizationsDelegates, + supportedLocales: AppLocalizations.supportedLocales, + home: widget, + ), + ); + } +} diff --git a/web/favicon.png b/web/favicon.png new file mode 100644 index 0000000..66a69cb Binary files /dev/null and b/web/favicon.png differ diff --git a/web/icons/Icon-192.png b/web/icons/Icon-192.png new file mode 100644 index 0000000..69c31fc Binary files /dev/null and b/web/icons/Icon-192.png differ diff --git a/web/icons/Icon-512.png b/web/icons/Icon-512.png new file mode 100644 index 0000000..d920815 Binary files /dev/null and b/web/icons/Icon-512.png differ diff --git a/web/icons/favicon.png b/web/icons/favicon.png new file mode 100644 index 0000000..66a69cb Binary files /dev/null and b/web/icons/favicon.png differ diff --git a/web/index.html b/web/index.html new file mode 100644 index 0000000..d27724d --- /dev/null +++ b/web/index.html @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + ECCP + + + + + + diff --git a/web/manifest.json b/web/manifest.json new file mode 100644 index 0000000..22979c9 --- /dev/null +++ b/web/manifest.json @@ -0,0 +1,23 @@ +{ + "name": "ECCP", + "short_name": "ECCP", + "start_url": ".", + "display": "standalone", + "background_color": "#0175C2", + "theme_color": "#0175C2", + "description": "ECCP", + "orientation": "portrait-primary", + "prefer_related_applications": false, + "icons": [ + { + "src": "icons/Icon-192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "icons/Icon-512.png", + "sizes": "512x512", + "type": "image/png" + } + ] +} diff --git a/windows/.gitignore b/windows/.gitignore new file mode 100644 index 0000000..d492d0d --- /dev/null +++ b/windows/.gitignore @@ -0,0 +1,17 @@ +flutter/ephemeral/ + +# Visual Studio user-specific files. +*.suo +*.user +*.userosscache +*.sln.docstates + +# Visual Studio build-related files. +x64/ +x86/ + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!*.[Cc]ache/ diff --git a/windows/CMakeLists.txt b/windows/CMakeLists.txt new file mode 100644 index 0000000..d9cf1f3 --- /dev/null +++ b/windows/CMakeLists.txt @@ -0,0 +1,95 @@ +cmake_minimum_required(VERSION 3.14) +project(frontend_eccp_mobile LANGUAGES CXX) + +set(BINARY_NAME "frontend_eccp_mobile") + +cmake_policy(SET CMP0063 NEW) + +set(CMAKE_INSTALL_RPATH "$ORIGIN/lib") + +# Configure build options. +get_property(IS_MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) +if(IS_MULTICONFIG) + set(CMAKE_CONFIGURATION_TYPES "Debug;Profile;Release" + CACHE STRING "" FORCE) +else() + if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) + set(CMAKE_BUILD_TYPE "Debug" CACHE + STRING "Flutter build mode" FORCE) + set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS + "Debug" "Profile" "Release") + endif() +endif() + +set(CMAKE_EXE_LINKER_FLAGS_PROFILE "${CMAKE_EXE_LINKER_FLAGS_RELEASE}") +set(CMAKE_SHARED_LINKER_FLAGS_PROFILE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE}") +set(CMAKE_C_FLAGS_PROFILE "${CMAKE_C_FLAGS_RELEASE}") +set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_RELEASE}") + +# Use Unicode for all projects. +add_definitions(-DUNICODE -D_UNICODE) + +# Compilation settings that should be applied to most targets. +function(APPLY_STANDARD_SETTINGS TARGET) + target_compile_features(${TARGET} PUBLIC cxx_std_17) + target_compile_options(${TARGET} PRIVATE /W4 /WX /wd"4100") + target_compile_options(${TARGET} PRIVATE /EHsc) + target_compile_definitions(${TARGET} PRIVATE "_HAS_EXCEPTIONS=0") + target_compile_definitions(${TARGET} PRIVATE "$<$:_DEBUG>") +endfunction() + +set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter") + +# Flutter library and tool build rules. +add_subdirectory(${FLUTTER_MANAGED_DIR}) + +# Application build +add_subdirectory("runner") + +# Generated plugin build rules, which manage building the plugins and adding +# them to the application. +include(flutter/generated_plugins.cmake) + + +# === Installation === +# Support files are copied into place next to the executable, so that it can +# run in place. This is done instead of making a separate bundle (as on Linux) +# so that building and running from within Visual Studio will work. +set(BUILD_BUNDLE_DIR "$") +# Make the "install" step default, as it's required to run. +set(CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1) +if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) + set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE) +endif() + +set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data") +set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}") + +install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}" + COMPONENT Runtime) + +install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" + COMPONENT Runtime) + +install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) + +if(PLUGIN_BUNDLED_LIBRARIES) + install(FILES "${PLUGIN_BUNDLED_LIBRARIES}" + DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) +endif() + +# Fully re-copy the assets directory on each build to avoid having stale files +# from a previous install. +set(FLUTTER_ASSET_DIR_NAME "flutter_assets") +install(CODE " + file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\") + " COMPONENT Runtime) +install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}" + DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) + +# Install the AOT library on non-Debug builds only. +install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" + CONFIGURATIONS Profile;Release + COMPONENT Runtime) diff --git a/windows/flutter/CMakeLists.txt b/windows/flutter/CMakeLists.txt new file mode 100644 index 0000000..b2e4bd8 --- /dev/null +++ b/windows/flutter/CMakeLists.txt @@ -0,0 +1,103 @@ +cmake_minimum_required(VERSION 3.14) + +set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") + +# Configuration provided via flutter tool. +include(${EPHEMERAL_DIR}/generated_config.cmake) + +# TODO: Move the rest of this into files in ephemeral. See +# https://github.com/flutter/flutter/issues/57146. +set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper") + +# === Flutter Library === +set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll") + +# Published to parent scope for install step. +set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) +set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) +set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) +set(AOT_LIBRARY "${PROJECT_DIR}/build/windows/app.so" PARENT_SCOPE) + +list(APPEND FLUTTER_LIBRARY_HEADERS + "flutter_export.h" + "flutter_windows.h" + "flutter_messenger.h" + "flutter_plugin_registrar.h" + "flutter_texture_registrar.h" +) +list(TRANSFORM FLUTTER_LIBRARY_HEADERS PREPEND "${EPHEMERAL_DIR}/") +add_library(flutter INTERFACE) +target_include_directories(flutter INTERFACE + "${EPHEMERAL_DIR}" +) +target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}.lib") +add_dependencies(flutter flutter_assemble) + +# === Wrapper === +list(APPEND CPP_WRAPPER_SOURCES_CORE + "core_implementations.cc" + "standard_codec.cc" +) +list(TRANSFORM CPP_WRAPPER_SOURCES_CORE PREPEND "${WRAPPER_ROOT}/") +list(APPEND CPP_WRAPPER_SOURCES_PLUGIN + "plugin_registrar.cc" +) +list(TRANSFORM CPP_WRAPPER_SOURCES_PLUGIN PREPEND "${WRAPPER_ROOT}/") +list(APPEND CPP_WRAPPER_SOURCES_APP + "flutter_engine.cc" + "flutter_view_controller.cc" +) +list(TRANSFORM CPP_WRAPPER_SOURCES_APP PREPEND "${WRAPPER_ROOT}/") + +# Wrapper sources needed for a plugin. +add_library(flutter_wrapper_plugin STATIC + ${CPP_WRAPPER_SOURCES_CORE} + ${CPP_WRAPPER_SOURCES_PLUGIN} +) +apply_standard_settings(flutter_wrapper_plugin) +set_target_properties(flutter_wrapper_plugin PROPERTIES + POSITION_INDEPENDENT_CODE ON) +set_target_properties(flutter_wrapper_plugin PROPERTIES + CXX_VISIBILITY_PRESET hidden) +target_link_libraries(flutter_wrapper_plugin PUBLIC flutter) +target_include_directories(flutter_wrapper_plugin PUBLIC + "${WRAPPER_ROOT}/include" +) +add_dependencies(flutter_wrapper_plugin flutter_assemble) + +# Wrapper sources needed for the runner. +add_library(flutter_wrapper_app STATIC + ${CPP_WRAPPER_SOURCES_CORE} + ${CPP_WRAPPER_SOURCES_APP} +) +apply_standard_settings(flutter_wrapper_app) +target_link_libraries(flutter_wrapper_app PUBLIC flutter) +target_include_directories(flutter_wrapper_app PUBLIC + "${WRAPPER_ROOT}/include" +) +add_dependencies(flutter_wrapper_app flutter_assemble) + +# === Flutter tool backend === +# _phony_ is a non-existent file to force this command to run every time, +# since currently there's no way to get a full input/output list from the +# flutter tool. +set(PHONY_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/_phony_") +set_source_files_properties("${PHONY_OUTPUT}" PROPERTIES SYMBOLIC TRUE) +add_custom_command( + OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} + ${CPP_WRAPPER_SOURCES_CORE} ${CPP_WRAPPER_SOURCES_PLUGIN} + ${CPP_WRAPPER_SOURCES_APP} + ${PHONY_OUTPUT} + COMMAND ${CMAKE_COMMAND} -E env + ${FLUTTER_TOOL_ENVIRONMENT} + "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat" + windows-x64 $ + VERBATIM +) +add_custom_target(flutter_assemble DEPENDS + "${FLUTTER_LIBRARY}" + ${FLUTTER_LIBRARY_HEADERS} + ${CPP_WRAPPER_SOURCES_CORE} + ${CPP_WRAPPER_SOURCES_PLUGIN} + ${CPP_WRAPPER_SOURCES_APP} +) diff --git a/windows/flutter/generated_plugin_registrant.cc b/windows/flutter/generated_plugin_registrant.cc new file mode 100644 index 0000000..9e7e5a2 --- /dev/null +++ b/windows/flutter/generated_plugin_registrant.cc @@ -0,0 +1,41 @@ +// +// Generated file. Do not edit. +// + +// clang-format off + +#include "generated_plugin_registrant.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +void RegisterPlugins(flutter::PluginRegistry* registry) { + ClipboardPluginRegisterWithRegistrar( + registry->GetRegistrarForPlugin("ClipboardPlugin")); + ConnectivityPlusWindowsPluginRegisterWithRegistrar( + registry->GetRegistrarForPlugin("ConnectivityPlusWindowsPlugin")); + FileSelectorWindowsRegisterWithRegistrar( + registry->GetRegistrarForPlugin("FileSelectorWindows")); + FirebaseAuthPluginCApiRegisterWithRegistrar( + registry->GetRegistrarForPlugin("FirebaseAuthPluginCApi")); + FirebaseCorePluginCApiRegisterWithRegistrar( + registry->GetRegistrarForPlugin("FirebaseCorePluginCApi")); + GeolocatorWindowsRegisterWithRegistrar( + registry->GetRegistrarForPlugin("GeolocatorWindows")); + PermissionHandlerWindowsPluginRegisterWithRegistrar( + registry->GetRegistrarForPlugin("PermissionHandlerWindowsPlugin")); + SharePlusWindowsPluginCApiRegisterWithRegistrar( + registry->GetRegistrarForPlugin("SharePlusWindowsPluginCApi")); + SyncfusionPdfviewerWindowsPluginRegisterWithRegistrar( + registry->GetRegistrarForPlugin("SyncfusionPdfviewerWindowsPlugin")); + UrlLauncherWindowsRegisterWithRegistrar( + registry->GetRegistrarForPlugin("UrlLauncherWindows")); +} diff --git a/windows/flutter/generated_plugin_registrant.h b/windows/flutter/generated_plugin_registrant.h new file mode 100644 index 0000000..dc139d8 --- /dev/null +++ b/windows/flutter/generated_plugin_registrant.h @@ -0,0 +1,15 @@ +// +// Generated file. Do not edit. +// + +// clang-format off + +#ifndef GENERATED_PLUGIN_REGISTRANT_ +#define GENERATED_PLUGIN_REGISTRANT_ + +#include + +// Registers Flutter plugins. +void RegisterPlugins(flutter::PluginRegistry* registry); + +#endif // GENERATED_PLUGIN_REGISTRANT_ diff --git a/windows/flutter/generated_plugins.cmake b/windows/flutter/generated_plugins.cmake new file mode 100644 index 0000000..572d24b --- /dev/null +++ b/windows/flutter/generated_plugins.cmake @@ -0,0 +1,34 @@ +# +# Generated file, do not edit. +# + +list(APPEND FLUTTER_PLUGIN_LIST + clipboard + connectivity_plus + file_selector_windows + firebase_auth + firebase_core + geolocator_windows + permission_handler_windows + share_plus + syncfusion_pdfviewer_windows + url_launcher_windows +) + +list(APPEND FLUTTER_FFI_PLUGIN_LIST + flutter_local_notifications_windows +) + +set(PLUGIN_BUNDLED_LIBRARIES) + +foreach(plugin ${FLUTTER_PLUGIN_LIST}) + add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/windows plugins/${plugin}) + target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) + list(APPEND PLUGIN_BUNDLED_LIBRARIES $) + list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) +endforeach(plugin) + +foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) + add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin}) + list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) +endforeach(ffi_plugin) diff --git a/windows/runner/CMakeLists.txt b/windows/runner/CMakeLists.txt new file mode 100644 index 0000000..de2d891 --- /dev/null +++ b/windows/runner/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.14) +project(runner LANGUAGES CXX) + +add_executable(${BINARY_NAME} WIN32 + "flutter_window.cpp" + "main.cpp" + "utils.cpp" + "win32_window.cpp" + "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" + "Runner.rc" + "runner.exe.manifest" +) +apply_standard_settings(${BINARY_NAME}) +target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX") +target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app) +target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}") +add_dependencies(${BINARY_NAME} flutter_assemble) diff --git a/windows/runner/Runner.rc b/windows/runner/Runner.rc new file mode 100644 index 0000000..a736653 --- /dev/null +++ b/windows/runner/Runner.rc @@ -0,0 +1,121 @@ +// Microsoft Visual C++ generated resource script. +// +#pragma code_page(65001) +#include "resource.h" + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#include "winres.h" + +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// English (United States) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE +BEGIN + "resource.h\0" +END + +2 TEXTINCLUDE +BEGIN + "#include ""winres.h""\r\n" + "\0" +END + +3 TEXTINCLUDE +BEGIN + "\r\n" + "\0" +END + +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// Icon +// + +// Icon with lowest ID value placed first to ensure application icon +// remains consistent on all systems. +IDI_APP_ICON ICON "resources\\app_icon.ico" + + +///////////////////////////////////////////////////////////////////////////// +// +// Version +// + +#ifdef FLUTTER_BUILD_NUMBER +#define VERSION_AS_NUMBER FLUTTER_BUILD_NUMBER +#else +#define VERSION_AS_NUMBER 1,0,0 +#endif + +#ifdef FLUTTER_BUILD_NAME +#define VERSION_AS_STRING #FLUTTER_BUILD_NAME +#else +#define VERSION_AS_STRING "1.0.0" +#endif + +VS_VERSION_INFO VERSIONINFO + FILEVERSION VERSION_AS_NUMBER + PRODUCTVERSION VERSION_AS_NUMBER + FILEFLAGSMASK VS_FFI_FILEFLAGSMASK +#ifdef _DEBUG + FILEFLAGS VS_FF_DEBUG +#else + FILEFLAGS 0x0L +#endif + FILEOS VOS__WINDOWS32 + FILETYPE VFT_APP + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904e4" + BEGIN + VALUE "CompanyName", "com.adhivasindo.eccp" "\0" + VALUE "FileDescription", "frontend_eccp_mobile" "\0" + VALUE "FileVersion", VERSION_AS_STRING "\0" + VALUE "InternalName", "frontend_eccp_mobile" "\0" + VALUE "LegalCopyright", "Copyright (C) 2026 com.adhivasindo.eccp. All rights reserved." "\0" + VALUE "OriginalFilename", "frontend_eccp_mobile.exe" "\0" + VALUE "ProductName", "ECCP" "\0" + VALUE "ProductVersion", VERSION_AS_STRING "\0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1252 + END +END + +#endif // English (United States) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED diff --git a/windows/runner/flutter_window.cpp b/windows/runner/flutter_window.cpp new file mode 100644 index 0000000..b43b909 --- /dev/null +++ b/windows/runner/flutter_window.cpp @@ -0,0 +1,61 @@ +#include "flutter_window.h" + +#include + +#include "flutter/generated_plugin_registrant.h" + +FlutterWindow::FlutterWindow(const flutter::DartProject& project) + : project_(project) {} + +FlutterWindow::~FlutterWindow() {} + +bool FlutterWindow::OnCreate() { + if (!Win32Window::OnCreate()) { + return false; + } + + RECT frame = GetClientArea(); + + // The size here must match the window dimensions to avoid unnecessary surface + // creation / destruction in the startup path. + flutter_controller_ = std::make_unique( + frame.right - frame.left, frame.bottom - frame.top, project_); + // Ensure that basic setup of the controller was successful. + if (!flutter_controller_->engine() || !flutter_controller_->view()) { + return false; + } + RegisterPlugins(flutter_controller_->engine()); + SetChildContent(flutter_controller_->view()->GetNativeWindow()); + return true; +} + +void FlutterWindow::OnDestroy() { + if (flutter_controller_) { + flutter_controller_ = nullptr; + } + + Win32Window::OnDestroy(); +} + +LRESULT +FlutterWindow::MessageHandler(HWND hwnd, UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept { + // Give Flutter, including plugins, an opportunity to handle window messages. + if (flutter_controller_) { + std::optional result = + flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam, + lparam); + if (result) { + return *result; + } + } + + switch (message) { + case WM_FONTCHANGE: + flutter_controller_->engine()->ReloadSystemFonts(); + break; + } + + return Win32Window::MessageHandler(hwnd, message, wparam, lparam); +} diff --git a/windows/runner/flutter_window.h b/windows/runner/flutter_window.h new file mode 100644 index 0000000..6da0652 --- /dev/null +++ b/windows/runner/flutter_window.h @@ -0,0 +1,33 @@ +#ifndef RUNNER_FLUTTER_WINDOW_H_ +#define RUNNER_FLUTTER_WINDOW_H_ + +#include +#include + +#include + +#include "win32_window.h" + +// A window that does nothing but host a Flutter view. +class FlutterWindow : public Win32Window { + public: + // Creates a new FlutterWindow hosting a Flutter view running |project|. + explicit FlutterWindow(const flutter::DartProject& project); + virtual ~FlutterWindow(); + + protected: + // Win32Window: + bool OnCreate() override; + void OnDestroy() override; + LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam, + LPARAM const lparam) noexcept override; + + private: + // The project to run. + flutter::DartProject project_; + + // The Flutter instance hosted by this window. + std::unique_ptr flutter_controller_; +}; + +#endif // RUNNER_FLUTTER_WINDOW_H_ diff --git a/windows/runner/main.cpp b/windows/runner/main.cpp new file mode 100644 index 0000000..139bede --- /dev/null +++ b/windows/runner/main.cpp @@ -0,0 +1,43 @@ +#include +#include +#include + +#include "flutter_window.h" +#include "utils.h" + +int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, + _In_ wchar_t *command_line, _In_ int show_command) { + // Attach to console when present (e.g., 'flutter run') or create a + // new console when running with a debugger. + if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) { + CreateAndAttachConsole(); + } + + // Initialize COM, so that it is available for use in the library and/or + // plugins. + ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED); + + flutter::DartProject project(L"data"); + + std::vector command_line_arguments = + GetCommandLineArguments(); + + project.set_dart_entrypoint_arguments(std::move(command_line_arguments)); + + FlutterWindow window(project); + Win32Window::Point origin(10, 10); + Win32Window::Size size(1280, 720); + if (!window.CreateAndShow(L"ECCP", origin, size)) { + return EXIT_FAILURE; + } + window.SetQuitOnClose(true); + + ::MSG msg; + while (::GetMessage(&msg, nullptr, 0, 0)) { + ::TranslateMessage(&msg); + ::DispatchMessage(&msg); + } + + ::CoUninitialize(); + return EXIT_SUCCESS; +} diff --git a/windows/runner/resource.h b/windows/runner/resource.h new file mode 100644 index 0000000..d7b448f --- /dev/null +++ b/windows/runner/resource.h @@ -0,0 +1,16 @@ +// +// Microsoft Visual C++ generated include file. +// Used by Runner.rc +// +#define IDI_APP_ICON 101 + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 102 +#define _APS_NEXT_COMMAND_VALUE 40001 +#define _APS_NEXT_CONTROL_VALUE 1001 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif diff --git a/windows/runner/resources/app_icon.ico b/windows/runner/resources/app_icon.ico new file mode 100644 index 0000000..c04e20c Binary files /dev/null and b/windows/runner/resources/app_icon.ico differ diff --git a/windows/runner/runner.exe.manifest b/windows/runner/runner.exe.manifest new file mode 100644 index 0000000..c977c4a --- /dev/null +++ b/windows/runner/runner.exe.manifest @@ -0,0 +1,20 @@ + + + + + PerMonitorV2 + + + + + + + + + + + + + + + diff --git a/windows/runner/utils.cpp b/windows/runner/utils.cpp new file mode 100644 index 0000000..d19bdbb --- /dev/null +++ b/windows/runner/utils.cpp @@ -0,0 +1,64 @@ +#include "utils.h" + +#include +#include +#include +#include + +#include + +void CreateAndAttachConsole() { + if (::AllocConsole()) { + FILE *unused; + if (freopen_s(&unused, "CONOUT$", "w", stdout)) { + _dup2(_fileno(stdout), 1); + } + if (freopen_s(&unused, "CONOUT$", "w", stderr)) { + _dup2(_fileno(stdout), 2); + } + std::ios::sync_with_stdio(); + FlutterDesktopResyncOutputStreams(); + } +} + +std::vector GetCommandLineArguments() { + // Convert the UTF-16 command line arguments to UTF-8 for the Engine to use. + int argc; + wchar_t** argv = ::CommandLineToArgvW(::GetCommandLineW(), &argc); + if (argv == nullptr) { + return std::vector(); + } + + std::vector command_line_arguments; + + // Skip the first argument as it's the binary name. + for (int i = 1; i < argc; i++) { + command_line_arguments.push_back(Utf8FromUtf16(argv[i])); + } + + ::LocalFree(argv); + + return command_line_arguments; +} + +std::string Utf8FromUtf16(const wchar_t* utf16_string) { + if (utf16_string == nullptr) { + return std::string(); + } + int target_length = ::WideCharToMultiByte( + CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, + -1, nullptr, 0, nullptr, nullptr); + if (target_length == 0) { + return std::string(); + } + std::string utf8_string; + utf8_string.resize(target_length); + int converted_length = ::WideCharToMultiByte( + CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, + -1, utf8_string.data(), + target_length, nullptr, nullptr); + if (converted_length == 0) { + return std::string(); + } + return utf8_string; +} diff --git a/windows/runner/utils.h b/windows/runner/utils.h new file mode 100644 index 0000000..3879d54 --- /dev/null +++ b/windows/runner/utils.h @@ -0,0 +1,19 @@ +#ifndef RUNNER_UTILS_H_ +#define RUNNER_UTILS_H_ + +#include +#include + +// Creates a console for the process, and redirects stdout and stderr to +// it for both the runner and the Flutter library. +void CreateAndAttachConsole(); + +// Takes a null-terminated wchar_t* encoded in UTF-16 and returns a std::string +// encoded in UTF-8. Returns an empty std::string on failure. +std::string Utf8FromUtf16(const wchar_t* utf16_string); + +// Gets the command line arguments passed in as a std::vector, +// encoded in UTF-8. Returns an empty std::vector on failure. +std::vector GetCommandLineArguments(); + +#endif // RUNNER_UTILS_H_ diff --git a/windows/runner/win32_window.cpp b/windows/runner/win32_window.cpp new file mode 100644 index 0000000..c10f08d --- /dev/null +++ b/windows/runner/win32_window.cpp @@ -0,0 +1,245 @@ +#include "win32_window.h" + +#include + +#include "resource.h" + +namespace { + +constexpr const wchar_t kWindowClassName[] = L"FLUTTER_RUNNER_WIN32_WINDOW"; + +// The number of Win32Window objects that currently exist. +static int g_active_window_count = 0; + +using EnableNonClientDpiScaling = BOOL __stdcall(HWND hwnd); + +// Scale helper to convert logical scaler values to physical using passed in +// scale factor +int Scale(int source, double scale_factor) { + return static_cast(source * scale_factor); +} + +// Dynamically loads the |EnableNonClientDpiScaling| from the User32 module. +// This API is only needed for PerMonitor V1 awareness mode. +void EnableFullDpiSupportIfAvailable(HWND hwnd) { + HMODULE user32_module = LoadLibraryA("User32.dll"); + if (!user32_module) { + return; + } + auto enable_non_client_dpi_scaling = + reinterpret_cast( + GetProcAddress(user32_module, "EnableNonClientDpiScaling")); + if (enable_non_client_dpi_scaling != nullptr) { + enable_non_client_dpi_scaling(hwnd); + FreeLibrary(user32_module); + } +} + +} // namespace + +// Manages the Win32Window's window class registration. +class WindowClassRegistrar { + public: + ~WindowClassRegistrar() = default; + + // Returns the singleton registar instance. + static WindowClassRegistrar* GetInstance() { + if (!instance_) { + instance_ = new WindowClassRegistrar(); + } + return instance_; + } + + // Returns the name of the window class, registering the class if it hasn't + // previously been registered. + const wchar_t* GetWindowClass(); + + // Unregisters the window class. Should only be called if there are no + // instances of the window. + void UnregisterWindowClass(); + + private: + WindowClassRegistrar() = default; + + static WindowClassRegistrar* instance_; + + bool class_registered_ = false; +}; + +WindowClassRegistrar* WindowClassRegistrar::instance_ = nullptr; + +const wchar_t* WindowClassRegistrar::GetWindowClass() { + if (!class_registered_) { + WNDCLASS window_class{}; + window_class.hCursor = LoadCursor(nullptr, IDC_ARROW); + window_class.lpszClassName = kWindowClassName; + window_class.style = CS_HREDRAW | CS_VREDRAW; + window_class.cbClsExtra = 0; + window_class.cbWndExtra = 0; + window_class.hInstance = GetModuleHandle(nullptr); + window_class.hIcon = + LoadIcon(window_class.hInstance, MAKEINTRESOURCE(IDI_APP_ICON)); + window_class.hbrBackground = 0; + window_class.lpszMenuName = nullptr; + window_class.lpfnWndProc = Win32Window::WndProc; + RegisterClass(&window_class); + class_registered_ = true; + } + return kWindowClassName; +} + +void WindowClassRegistrar::UnregisterWindowClass() { + UnregisterClass(kWindowClassName, nullptr); + class_registered_ = false; +} + +Win32Window::Win32Window() { + ++g_active_window_count; +} + +Win32Window::~Win32Window() { + --g_active_window_count; + Destroy(); +} + +bool Win32Window::CreateAndShow(const std::wstring& title, + const Point& origin, + const Size& size) { + Destroy(); + + const wchar_t* window_class = + WindowClassRegistrar::GetInstance()->GetWindowClass(); + + const POINT target_point = {static_cast(origin.x), + static_cast(origin.y)}; + HMONITOR monitor = MonitorFromPoint(target_point, MONITOR_DEFAULTTONEAREST); + UINT dpi = FlutterDesktopGetDpiForMonitor(monitor); + double scale_factor = dpi / 96.0; + + HWND window = CreateWindow( + window_class, title.c_str(), WS_OVERLAPPEDWINDOW | WS_VISIBLE, + Scale(origin.x, scale_factor), Scale(origin.y, scale_factor), + Scale(size.width, scale_factor), Scale(size.height, scale_factor), + nullptr, nullptr, GetModuleHandle(nullptr), this); + + if (!window) { + return false; + } + + return OnCreate(); +} + +// static +LRESULT CALLBACK Win32Window::WndProc(HWND const window, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept { + if (message == WM_NCCREATE) { + auto window_struct = reinterpret_cast(lparam); + SetWindowLongPtr(window, GWLP_USERDATA, + reinterpret_cast(window_struct->lpCreateParams)); + + auto that = static_cast(window_struct->lpCreateParams); + EnableFullDpiSupportIfAvailable(window); + that->window_handle_ = window; + } else if (Win32Window* that = GetThisFromHandle(window)) { + return that->MessageHandler(window, message, wparam, lparam); + } + + return DefWindowProc(window, message, wparam, lparam); +} + +LRESULT +Win32Window::MessageHandler(HWND hwnd, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept { + switch (message) { + case WM_DESTROY: + window_handle_ = nullptr; + Destroy(); + if (quit_on_close_) { + PostQuitMessage(0); + } + return 0; + + case WM_DPICHANGED: { + auto newRectSize = reinterpret_cast(lparam); + LONG newWidth = newRectSize->right - newRectSize->left; + LONG newHeight = newRectSize->bottom - newRectSize->top; + + SetWindowPos(hwnd, nullptr, newRectSize->left, newRectSize->top, newWidth, + newHeight, SWP_NOZORDER | SWP_NOACTIVATE); + + return 0; + } + case WM_SIZE: { + RECT rect = GetClientArea(); + if (child_content_ != nullptr) { + // Size and position the child window. + MoveWindow(child_content_, rect.left, rect.top, rect.right - rect.left, + rect.bottom - rect.top, TRUE); + } + return 0; + } + + case WM_ACTIVATE: + if (child_content_ != nullptr) { + SetFocus(child_content_); + } + return 0; + } + + return DefWindowProc(window_handle_, message, wparam, lparam); +} + +void Win32Window::Destroy() { + OnDestroy(); + + if (window_handle_) { + DestroyWindow(window_handle_); + window_handle_ = nullptr; + } + if (g_active_window_count == 0) { + WindowClassRegistrar::GetInstance()->UnregisterWindowClass(); + } +} + +Win32Window* Win32Window::GetThisFromHandle(HWND const window) noexcept { + return reinterpret_cast( + GetWindowLongPtr(window, GWLP_USERDATA)); +} + +void Win32Window::SetChildContent(HWND content) { + child_content_ = content; + SetParent(content, window_handle_); + RECT frame = GetClientArea(); + + MoveWindow(content, frame.left, frame.top, frame.right - frame.left, + frame.bottom - frame.top, true); + + SetFocus(child_content_); +} + +RECT Win32Window::GetClientArea() { + RECT frame; + GetClientRect(window_handle_, &frame); + return frame; +} + +HWND Win32Window::GetHandle() { + return window_handle_; +} + +void Win32Window::SetQuitOnClose(bool quit_on_close) { + quit_on_close_ = quit_on_close; +} + +bool Win32Window::OnCreate() { + // No-op; provided for subclasses. + return true; +} + +void Win32Window::OnDestroy() { + // No-op; provided for subclasses. +} diff --git a/windows/runner/win32_window.h b/windows/runner/win32_window.h new file mode 100644 index 0000000..17ba431 --- /dev/null +++ b/windows/runner/win32_window.h @@ -0,0 +1,98 @@ +#ifndef RUNNER_WIN32_WINDOW_H_ +#define RUNNER_WIN32_WINDOW_H_ + +#include + +#include +#include +#include + +// A class abstraction for a high DPI-aware Win32 Window. Intended to be +// inherited from by classes that wish to specialize with custom +// rendering and input handling +class Win32Window { + public: + struct Point { + unsigned int x; + unsigned int y; + Point(unsigned int x, unsigned int y) : x(x), y(y) {} + }; + + struct Size { + unsigned int width; + unsigned int height; + Size(unsigned int width, unsigned int height) + : width(width), height(height) {} + }; + + Win32Window(); + virtual ~Win32Window(); + + // Creates and shows a win32 window with |title| and position and size using + // |origin| and |size|. New windows are created on the default monitor. Window + // sizes are specified to the OS in physical pixels, hence to ensure a + // consistent size to will treat the width height passed in to this function + // as logical pixels and scale to appropriate for the default monitor. Returns + // true if the window was created successfully. + bool CreateAndShow(const std::wstring& title, + const Point& origin, + const Size& size); + + // Release OS resources associated with window. + void Destroy(); + + // Inserts |content| into the window tree. + void SetChildContent(HWND content); + + // Returns the backing Window handle to enable clients to set icon and other + // window properties. Returns nullptr if the window has been destroyed. + HWND GetHandle(); + + // If true, closing this window will quit the application. + void SetQuitOnClose(bool quit_on_close); + + // Return a RECT representing the bounds of the current client area. + RECT GetClientArea(); + + protected: + // Processes and route salient window messages for mouse handling, + // size change and DPI. Delegates handling of these to member overloads that + // inheriting classes can handle. + virtual LRESULT MessageHandler(HWND window, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept; + + // Called when CreateAndShow is called, allowing subclass window-related + // setup. Subclasses should return false if setup fails. + virtual bool OnCreate(); + + // Called when Destroy is called. + virtual void OnDestroy(); + + private: + friend class WindowClassRegistrar; + + // OS callback called by message pump. Handles the WM_NCCREATE message which + // is passed when the non-client area is being created and enables automatic + // non-client DPI scaling so that the non-client area automatically + // responsponds to changes in DPI. All other messages are handled by + // MessageHandler. + static LRESULT CALLBACK WndProc(HWND const window, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept; + + // Retrieves a class instance pointer for |window| + static Win32Window* GetThisFromHandle(HWND const window) noexcept; + + bool quit_on_close_ = false; + + // window handle for top level window. + HWND window_handle_ = nullptr; + + // window handle for hosted content. + HWND child_content_ = nullptr; +}; + +#endif // RUNNER_WIN32_WINDOW_H_