first commit
46
.gitignore
vendored
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
# Miscellaneous
|
||||||
|
*.class
|
||||||
|
*.log
|
||||||
|
*.pyc
|
||||||
|
*.swp
|
||||||
|
.DS_Store
|
||||||
|
.atom/
|
||||||
|
.buildlog/
|
||||||
|
.history
|
||||||
|
.svn/
|
||||||
|
migrate_working_dir/
|
||||||
|
|
||||||
|
# IntelliJ related
|
||||||
|
*.iml
|
||||||
|
*.ipr
|
||||||
|
*.iws
|
||||||
|
.idea/
|
||||||
|
|
||||||
|
# The .vscode folder contains launch configuration and tasks you configure in
|
||||||
|
# VS Code which you may wish to be included in version control, so this line
|
||||||
|
# is commented out by default.
|
||||||
|
#.vscode/
|
||||||
|
|
||||||
|
# Flutter/Dart/Pub related
|
||||||
|
**/doc/api/
|
||||||
|
**/ios/Flutter/.last_build_id
|
||||||
|
.dart_tool/
|
||||||
|
.flutter-plugins
|
||||||
|
.flutter-plugins-dependencies
|
||||||
|
.pub-cache/
|
||||||
|
.pub/
|
||||||
|
/build/
|
||||||
|
|
||||||
|
# Symbolication related
|
||||||
|
app.*.symbols
|
||||||
|
.env
|
||||||
|
|
||||||
|
lib/env/env.dart
|
||||||
|
lib/env/env.g.dart
|
||||||
|
# Obfuscation related
|
||||||
|
app.*.map.json
|
||||||
|
|
||||||
|
# Android Studio will place build artifacts here
|
||||||
|
/android/app/debug
|
||||||
|
/android/app/profile
|
||||||
|
/android/app/release
|
||||||
45
.metadata
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
# This file tracks properties of this Flutter project.
|
||||||
|
# Used by Flutter tool to assess capabilities and perform upgrades etc.
|
||||||
|
#
|
||||||
|
# This file should be version controlled and should not be manually edited.
|
||||||
|
|
||||||
|
version:
|
||||||
|
revision: "68bfaea224880b488c617afe30ab12091ea8fa4e"
|
||||||
|
channel: "stable"
|
||||||
|
|
||||||
|
project_type: app
|
||||||
|
|
||||||
|
# Tracks metadata for the flutter migrate command
|
||||||
|
migration:
|
||||||
|
platforms:
|
||||||
|
- platform: root
|
||||||
|
create_revision: 68bfaea224880b488c617afe30ab12091ea8fa4e
|
||||||
|
base_revision: 68bfaea224880b488c617afe30ab12091ea8fa4e
|
||||||
|
- platform: android
|
||||||
|
create_revision: 68bfaea224880b488c617afe30ab12091ea8fa4e
|
||||||
|
base_revision: 68bfaea224880b488c617afe30ab12091ea8fa4e
|
||||||
|
- platform: ios
|
||||||
|
create_revision: 68bfaea224880b488c617afe30ab12091ea8fa4e
|
||||||
|
base_revision: 68bfaea224880b488c617afe30ab12091ea8fa4e
|
||||||
|
- platform: linux
|
||||||
|
create_revision: 68bfaea224880b488c617afe30ab12091ea8fa4e
|
||||||
|
base_revision: 68bfaea224880b488c617afe30ab12091ea8fa4e
|
||||||
|
- platform: macos
|
||||||
|
create_revision: 68bfaea224880b488c617afe30ab12091ea8fa4e
|
||||||
|
base_revision: 68bfaea224880b488c617afe30ab12091ea8fa4e
|
||||||
|
- platform: web
|
||||||
|
create_revision: 68bfaea224880b488c617afe30ab12091ea8fa4e
|
||||||
|
base_revision: 68bfaea224880b488c617afe30ab12091ea8fa4e
|
||||||
|
- platform: windows
|
||||||
|
create_revision: 68bfaea224880b488c617afe30ab12091ea8fa4e
|
||||||
|
base_revision: 68bfaea224880b488c617afe30ab12091ea8fa4e
|
||||||
|
|
||||||
|
# User provided section
|
||||||
|
|
||||||
|
# List of Local paths (relative to this file) that should be
|
||||||
|
# ignored by the migrate tool.
|
||||||
|
#
|
||||||
|
# Files that are not part of the templates will be ignored by default.
|
||||||
|
unmanaged_files:
|
||||||
|
- 'lib/main.dart'
|
||||||
|
- 'ios/Runner.xcodeproj/project.pbxproj'
|
||||||
17
README.md
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
# sefer_admin1
|
||||||
|
|
||||||
|
A new Flutter project.
|
||||||
|
|
||||||
|
## Getting Started
|
||||||
|
|
||||||
|
This project is a starting point for a Flutter application.
|
||||||
|
|
||||||
|
A few resources to get you started if this is your first Flutter project:
|
||||||
|
|
||||||
|
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
|
||||||
|
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
|
||||||
|
|
||||||
|
For help getting started with Flutter development, view the
|
||||||
|
[online documentation](https://docs.flutter.dev/), which offers tutorials,
|
||||||
|
samples, guidance on mobile development, and a full API reference.
|
||||||
|
# seferAdmin
|
||||||
28
analysis_options.yaml
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
# This file configures the analyzer, which statically analyzes Dart code to
|
||||||
|
# check for errors, warnings, and lints.
|
||||||
|
#
|
||||||
|
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
|
||||||
|
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
|
||||||
|
# invoked from the command line by running `flutter analyze`.
|
||||||
|
|
||||||
|
# The following line activates a set of recommended lints for Flutter apps,
|
||||||
|
# packages, and plugins designed to encourage good coding practices.
|
||||||
|
include: package:flutter_lints/flutter.yaml
|
||||||
|
|
||||||
|
linter:
|
||||||
|
# The lint rules applied to this project can be customized in the
|
||||||
|
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
|
||||||
|
# included above or to enable additional rules. A list of all available lints
|
||||||
|
# and their documentation is published at https://dart.dev/lints.
|
||||||
|
#
|
||||||
|
# Instead of disabling a lint rule for the entire project in the
|
||||||
|
# section below, it can also be suppressed for a single line of code
|
||||||
|
# or a specific dart file by using the `// ignore: name_of_lint` and
|
||||||
|
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
|
||||||
|
# producing the lint.
|
||||||
|
rules:
|
||||||
|
# avoid_print: false # Uncomment to disable the `avoid_print` rule
|
||||||
|
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
|
||||||
|
|
||||||
|
# Additional information about this file can be found at
|
||||||
|
# https://dart.dev/guides/language/analysis-options
|
||||||
13
android/.gitignore
vendored
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
gradle-wrapper.jar
|
||||||
|
/.gradle
|
||||||
|
/captures/
|
||||||
|
/gradlew
|
||||||
|
/gradlew.bat
|
||||||
|
/local.properties
|
||||||
|
GeneratedPluginRegistrant.java
|
||||||
|
|
||||||
|
# Remember to never publicly share your keystore.
|
||||||
|
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
|
||||||
|
key.properties
|
||||||
|
**/*.keystore
|
||||||
|
**/*.jks
|
||||||
70
android/app/build.gradle
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
plugins {
|
||||||
|
id "com.android.application"
|
||||||
|
// START: FlutterFire Configuration
|
||||||
|
id 'com.google.gms.google-services'
|
||||||
|
// END: FlutterFire Configuration
|
||||||
|
id "kotlin-android"
|
||||||
|
id "dev.flutter.flutter-gradle-plugin"
|
||||||
|
}
|
||||||
|
|
||||||
|
def localProperties = new Properties()
|
||||||
|
def localPropertiesFile = rootProject.file('local.properties')
|
||||||
|
if (localPropertiesFile.exists()) {
|
||||||
|
localPropertiesFile.withReader('UTF-8') { reader ->
|
||||||
|
localProperties.load(reader)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
|
||||||
|
if (flutterVersionCode == null) {
|
||||||
|
flutterVersionCode = '1'
|
||||||
|
}
|
||||||
|
|
||||||
|
def flutterVersionName = localProperties.getProperty('flutter.versionName')
|
||||||
|
if (flutterVersionName == null) {
|
||||||
|
flutterVersionName = '1.0'
|
||||||
|
}
|
||||||
|
|
||||||
|
android {
|
||||||
|
namespace "com.example.sefer_admin1"
|
||||||
|
compileSdk flutter.compileSdkVersion
|
||||||
|
ndkVersion flutter.ndkVersion
|
||||||
|
|
||||||
|
compileOptions {
|
||||||
|
sourceCompatibility JavaVersion.VERSION_1_8
|
||||||
|
targetCompatibility JavaVersion.VERSION_1_8
|
||||||
|
}
|
||||||
|
|
||||||
|
kotlinOptions {
|
||||||
|
jvmTarget = '1.8'
|
||||||
|
}
|
||||||
|
|
||||||
|
sourceSets {
|
||||||
|
main.java.srcDirs += 'src/main/kotlin'
|
||||||
|
}
|
||||||
|
|
||||||
|
defaultConfig {
|
||||||
|
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
||||||
|
applicationId "com.example.sefer_admin1"
|
||||||
|
// You can update the following values to match your application needs.
|
||||||
|
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
|
||||||
|
minSdkVersion 23
|
||||||
|
targetSdkVersion flutter.targetSdkVersion
|
||||||
|
versionCode flutterVersionCode.toInteger()
|
||||||
|
versionName flutterVersionName
|
||||||
|
}
|
||||||
|
|
||||||
|
buildTypes {
|
||||||
|
release {
|
||||||
|
// TODO: Add your own signing config for the release build.
|
||||||
|
// Signing with the debug keys for now, so `flutter run --release` works.
|
||||||
|
signingConfig signingConfigs.debug
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
flutter {
|
||||||
|
source '../..'
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {}
|
||||||
150
android/app/google-services.json
Normal file
@@ -0,0 +1,150 @@
|
|||||||
|
{
|
||||||
|
"project_info": {
|
||||||
|
"project_number": "594687661098",
|
||||||
|
"project_id": "ride-b1bd8",
|
||||||
|
"storage_bucket": "ride-b1bd8.appspot.com"
|
||||||
|
},
|
||||||
|
"client": [
|
||||||
|
{
|
||||||
|
"client_info": {
|
||||||
|
"mobilesdk_app_id": "1:594687661098:android:8ec72f5f8b0b0ab8595f53",
|
||||||
|
"android_client_info": {
|
||||||
|
"package_name": "com.example.sefer_admin1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"oauth_client": [
|
||||||
|
{
|
||||||
|
"client_id": "594687661098-2u640akrb3k7sak5t0nqki6f4v6hq1bq.apps.googleusercontent.com",
|
||||||
|
"client_type": 3
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"api_key": [
|
||||||
|
{
|
||||||
|
"current_key": "AIzaSyCyfwRXTwSTLOFQSQgN5p7QZgGJVZnEKq0"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"services": {
|
||||||
|
"appinvite_service": {
|
||||||
|
"other_platform_oauth_client": [
|
||||||
|
{
|
||||||
|
"client_id": "594687661098-2hfb9gumub3j60vb7mqtq794k8spihuh.apps.googleusercontent.com",
|
||||||
|
"client_type": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"client_id": "594687661098-8e26699cris2k3nj5msj1osi59it9kpf.apps.googleusercontent.com",
|
||||||
|
"client_type": 2,
|
||||||
|
"ios_info": {
|
||||||
|
"bundle_id": "com.mobileapp.store.ride"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"client_info": {
|
||||||
|
"mobilesdk_app_id": "1:594687661098:android:683982cbf71fa423595f53",
|
||||||
|
"android_client_info": {
|
||||||
|
"package_name": "com.mobileapp.store.ride"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"oauth_client": [
|
||||||
|
{
|
||||||
|
"client_id": "594687661098-2dhoogl7be9phobfbu8bbg1sj567iv88.apps.googleusercontent.com",
|
||||||
|
"client_type": 1,
|
||||||
|
"android_info": {
|
||||||
|
"package_name": "com.mobileapp.store.ride",
|
||||||
|
"certificate_hash": "9bf3876c66e490f30cd7982fa972d8e52e0edbb6"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"client_id": "594687661098-4f8qbb4r223su1pphor33l3oe0ie2v46.apps.googleusercontent.com",
|
||||||
|
"client_type": 1,
|
||||||
|
"android_info": {
|
||||||
|
"package_name": "com.mobileapp.store.ride",
|
||||||
|
"certificate_hash": "765bbb7c5d30bc58a7ba44372db614d6bbe6e34d"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"client_id": "594687661098-2u640akrb3k7sak5t0nqki6f4v6hq1bq.apps.googleusercontent.com",
|
||||||
|
"client_type": 3
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"api_key": [
|
||||||
|
{
|
||||||
|
"current_key": "AIzaSyCyfwRXTwSTLOFQSQgN5p7QZgGJVZnEKq0"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"services": {
|
||||||
|
"appinvite_service": {
|
||||||
|
"other_platform_oauth_client": [
|
||||||
|
{
|
||||||
|
"client_id": "594687661098-2hfb9gumub3j60vb7mqtq794k8spihuh.apps.googleusercontent.com",
|
||||||
|
"client_type": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"client_id": "594687661098-8e26699cris2k3nj5msj1osi59it9kpf.apps.googleusercontent.com",
|
||||||
|
"client_type": 2,
|
||||||
|
"ios_info": {
|
||||||
|
"bundle_id": "com.mobileapp.store.ride"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"client_info": {
|
||||||
|
"mobilesdk_app_id": "1:594687661098:android:46557bd4f534b5bb595f53",
|
||||||
|
"android_client_info": {
|
||||||
|
"package_name": "com.sefer_driver"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"oauth_client": [
|
||||||
|
{
|
||||||
|
"client_id": "594687661098-7mj1ngkp5aodosos3gsr4252qfemuvan.apps.googleusercontent.com",
|
||||||
|
"client_type": 1,
|
||||||
|
"android_info": {
|
||||||
|
"package_name": "com.sefer_driver",
|
||||||
|
"certificate_hash": "765bbb7c5d30bc58a7ba44372db614d6bbe6e34d"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"client_id": "594687661098-op7a9cpgm9dilgh8nl48bu6aor55f7qj.apps.googleusercontent.com",
|
||||||
|
"client_type": 1,
|
||||||
|
"android_info": {
|
||||||
|
"package_name": "com.sefer_driver",
|
||||||
|
"certificate_hash": "6f83a0b80b7e1b30b3dd42811cbc2c60ee931a3b"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"client_id": "594687661098-2u640akrb3k7sak5t0nqki6f4v6hq1bq.apps.googleusercontent.com",
|
||||||
|
"client_type": 3
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"api_key": [
|
||||||
|
{
|
||||||
|
"current_key": "AIzaSyCyfwRXTwSTLOFQSQgN5p7QZgGJVZnEKq0"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"services": {
|
||||||
|
"appinvite_service": {
|
||||||
|
"other_platform_oauth_client": [
|
||||||
|
{
|
||||||
|
"client_id": "594687661098-2hfb9gumub3j60vb7mqtq794k8spihuh.apps.googleusercontent.com",
|
||||||
|
"client_type": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"client_id": "594687661098-8e26699cris2k3nj5msj1osi59it9kpf.apps.googleusercontent.com",
|
||||||
|
"client_type": 2,
|
||||||
|
"ios_info": {
|
||||||
|
"bundle_id": "com.mobileapp.store.ride"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"configuration_version": "1"
|
||||||
|
}
|
||||||
7
android/app/src/debug/AndroidManifest.xml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<!-- The INTERNET permission is required for development. Specifically,
|
||||||
|
the Flutter tool needs it to communicate with the running application
|
||||||
|
to allow setting breakpoints, to provide hot reload, etc.
|
||||||
|
-->
|
||||||
|
<uses-permission android:name="android.permission.INTERNET"/>
|
||||||
|
</manifest>
|
||||||
44
android/app/src/main/AndroidManifest.xml
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<application
|
||||||
|
android:label="sefer_admin1"
|
||||||
|
android:name="${applicationName}"
|
||||||
|
android:icon="@mipmap/ic_launcher">
|
||||||
|
<activity
|
||||||
|
android:name=".MainActivity"
|
||||||
|
android:exported="true"
|
||||||
|
android:launchMode="singleTop"
|
||||||
|
android:theme="@style/LaunchTheme"
|
||||||
|
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
|
||||||
|
android:hardwareAccelerated="true"
|
||||||
|
android:windowSoftInputMode="adjustResize">
|
||||||
|
<!-- Specifies an Android theme to apply to this Activity as soon as
|
||||||
|
the Android process has started. This theme is visible to the user
|
||||||
|
while the Flutter UI initializes. After that, this theme continues
|
||||||
|
to determine the Window background behind the Flutter UI. -->
|
||||||
|
<meta-data
|
||||||
|
android:name="io.flutter.embedding.android.NormalTheme"
|
||||||
|
android:resource="@style/NormalTheme"
|
||||||
|
/>
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="android.intent.action.MAIN"/>
|
||||||
|
<category android:name="android.intent.category.LAUNCHER"/>
|
||||||
|
</intent-filter>
|
||||||
|
</activity>
|
||||||
|
<!-- Don't delete the meta-data below.
|
||||||
|
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
|
||||||
|
<meta-data
|
||||||
|
android:name="flutterEmbedding"
|
||||||
|
android:value="2" />
|
||||||
|
</application>
|
||||||
|
<!-- Required to query activities that can process text, see:
|
||||||
|
https://developer.android.com/training/package-visibility?hl=en and
|
||||||
|
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
|
||||||
|
|
||||||
|
In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
|
||||||
|
<queries>
|
||||||
|
<intent>
|
||||||
|
<action android:name="android.intent.action.PROCESS_TEXT"/>
|
||||||
|
<data android:mimeType="text/plain"/>
|
||||||
|
</intent>
|
||||||
|
</queries>
|
||||||
|
</manifest>
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
package com.example.sefer_admin1
|
||||||
|
|
||||||
|
import io.flutter.embedding.android.FlutterActivity
|
||||||
|
|
||||||
|
class MainActivity: FlutterActivity()
|
||||||
12
android/app/src/main/res/drawable-v21/launch_background.xml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Modify this file to customize your launch splash screen -->
|
||||||
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:drawable="?android:colorBackground" />
|
||||||
|
|
||||||
|
<!-- You can insert your own image assets here -->
|
||||||
|
<!-- <item>
|
||||||
|
<bitmap
|
||||||
|
android:gravity="center"
|
||||||
|
android:src="@mipmap/launch_image" />
|
||||||
|
</item> -->
|
||||||
|
</layer-list>
|
||||||
12
android/app/src/main/res/drawable/launch_background.xml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Modify this file to customize your launch splash screen -->
|
||||||
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:drawable="@android:color/white" />
|
||||||
|
|
||||||
|
<!-- You can insert your own image assets here -->
|
||||||
|
<!-- <item>
|
||||||
|
<bitmap
|
||||||
|
android:gravity="center"
|
||||||
|
android:src="@mipmap/launch_image" />
|
||||||
|
</item> -->
|
||||||
|
</layer-list>
|
||||||
BIN
android/app/src/main/res/mipmap-hdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 544 B |
BIN
android/app/src/main/res/mipmap-hdpi/launcher_icon.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
android/app/src/main/res/mipmap-mdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 442 B |
BIN
android/app/src/main/res/mipmap-mdpi/launcher_icon.png
Normal file
|
After Width: | Height: | Size: 927 B |
BIN
android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 721 B |
BIN
android/app/src/main/res/mipmap-xhdpi/launcher_icon.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png
Normal file
|
After Width: | Height: | Size: 3.9 KiB |
18
android/app/src/main/res/values-night/styles.xml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
|
||||||
|
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
|
||||||
|
<!-- Show a splash screen on the activity. Automatically removed when
|
||||||
|
the Flutter engine draws its first frame -->
|
||||||
|
<item name="android:windowBackground">@drawable/launch_background</item>
|
||||||
|
</style>
|
||||||
|
<!-- Theme applied to the Android Window as soon as the process has started.
|
||||||
|
This theme determines the color of the Android Window while your
|
||||||
|
Flutter UI initializes, as well as behind your Flutter UI while its
|
||||||
|
running.
|
||||||
|
|
||||||
|
This Theme is only used starting with V2 of Flutter's Android embedding. -->
|
||||||
|
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
|
||||||
|
<item name="android:windowBackground">?android:colorBackground</item>
|
||||||
|
</style>
|
||||||
|
</resources>
|
||||||
18
android/app/src/main/res/values/styles.xml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
|
||||||
|
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
|
||||||
|
<!-- Show a splash screen on the activity. Automatically removed when
|
||||||
|
the Flutter engine draws its first frame -->
|
||||||
|
<item name="android:windowBackground">@drawable/launch_background</item>
|
||||||
|
</style>
|
||||||
|
<!-- Theme applied to the Android Window as soon as the process has started.
|
||||||
|
This theme determines the color of the Android Window while your
|
||||||
|
Flutter UI initializes, as well as behind your Flutter UI while its
|
||||||
|
running.
|
||||||
|
|
||||||
|
This Theme is only used starting with V2 of Flutter's Android embedding. -->
|
||||||
|
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
|
||||||
|
<item name="android:windowBackground">?android:colorBackground</item>
|
||||||
|
</style>
|
||||||
|
</resources>
|
||||||
7
android/app/src/profile/AndroidManifest.xml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<!-- The INTERNET permission is required for development. Specifically,
|
||||||
|
the Flutter tool needs it to communicate with the running application
|
||||||
|
to allow setting breakpoints, to provide hot reload, etc.
|
||||||
|
-->
|
||||||
|
<uses-permission android:name="android.permission.INTERNET"/>
|
||||||
|
</manifest>
|
||||||
32
android/build.gradle
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
buildscript {
|
||||||
|
ext.kotlin_version = '2.0.0' // Update to the latest version
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
google()
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
classpath "com.android.tools.build:gradle:8.1.4"
|
||||||
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
allprojects {
|
||||||
|
repositories {
|
||||||
|
google()
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
rootProject.buildDir = '../build'
|
||||||
|
subprojects {
|
||||||
|
project.buildDir = "${rootProject.buildDir}/${project.name}"
|
||||||
|
}
|
||||||
|
subprojects {
|
||||||
|
project.evaluationDependsOn(':app')
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.register("clean", Delete) {
|
||||||
|
delete rootProject.buildDir
|
||||||
|
}
|
||||||
3
android/gradle.properties
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
org.gradle.jvmargs=-Xmx4G
|
||||||
|
android.useAndroidX=true
|
||||||
|
android.enableJetifier=true
|
||||||
5
android/gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
@@ -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-8.1-bin.zip
|
||||||
29
android/settings.gradle
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
pluginManagement {
|
||||||
|
def flutterSdkPath = {
|
||||||
|
def properties = new Properties()
|
||||||
|
file("local.properties").withInputStream { properties.load(it) }
|
||||||
|
def flutterSdkPath = properties.getProperty("flutter.sdk")
|
||||||
|
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
|
||||||
|
return flutterSdkPath
|
||||||
|
}
|
||||||
|
settings.ext.flutterSdkPath = flutterSdkPath()
|
||||||
|
|
||||||
|
includeBuild("${settings.ext.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 "7.3.0" apply false
|
||||||
|
// START: FlutterFire Configuration
|
||||||
|
id "com.google.gms.google-services" version "4.3.15" apply false
|
||||||
|
// END: FlutterFire Configuration
|
||||||
|
id "org.jetbrains.kotlin.android" version "1.7.10" apply false
|
||||||
|
}
|
||||||
|
|
||||||
|
include ":app"
|
||||||
BIN
assets/images/logo.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
assets/notify.mp3
Normal file
1
firebase.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"flutter":{"platforms":{"android":{"default":{"projectId":"ride-b1bd8","appId":"1:594687661098:android:8ec72f5f8b0b0ab8595f53","fileOutput":"android/app/google-services.json"}},"ios":{"default":{"projectId":"ride-b1bd8","appId":"1:594687661098:ios:9f46a169fad13752595f53","uploadDebugSymbols":false,"fileOutput":"ios/Runner/GoogleService-Info.plist"}},"dart":{"lib/firebase_options.dart":{"projectId":"ride-b1bd8","configurations":{"android":"1:594687661098:android:8ec72f5f8b0b0ab8595f53","ios":"1:594687661098:ios:9f46a169fad13752595f53"}}}}}}
|
||||||
34
ios/.gitignore
vendored
Normal file
@@ -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
|
||||||
26
ios/Flutter/AppFrameworkInfo.plist
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
|
<string>en</string>
|
||||||
|
<key>CFBundleExecutable</key>
|
||||||
|
<string>App</string>
|
||||||
|
<key>CFBundleIdentifier</key>
|
||||||
|
<string>io.flutter.flutter.app</string>
|
||||||
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
|
<string>6.0</string>
|
||||||
|
<key>CFBundleName</key>
|
||||||
|
<string>App</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>FMWK</string>
|
||||||
|
<key>CFBundleShortVersionString</key>
|
||||||
|
<string>1.0</string>
|
||||||
|
<key>CFBundleSignature</key>
|
||||||
|
<string>????</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>1.0</string>
|
||||||
|
<key>MinimumOSVersion</key>
|
||||||
|
<string>12.0</string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
2
ios/Flutter/Debug.xcconfig
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
|
||||||
|
#include "Generated.xcconfig"
|
||||||
2
ios/Flutter/Release.xcconfig
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
|
||||||
|
#include "Generated.xcconfig"
|
||||||
44
ios/Podfile
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
# Uncomment this line to define a global platform for your project
|
||||||
|
platform :ios, '14.0'
|
||||||
|
|
||||||
|
# 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!
|
||||||
|
use_modular_headers!
|
||||||
|
|
||||||
|
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
|
||||||
192
ios/Podfile.lock
Normal file
@@ -0,0 +1,192 @@
|
|||||||
|
PODS:
|
||||||
|
- AppAuth (1.7.5):
|
||||||
|
- AppAuth/Core (= 1.7.5)
|
||||||
|
- AppAuth/ExternalUserAgent (= 1.7.5)
|
||||||
|
- AppAuth/Core (1.7.5)
|
||||||
|
- AppAuth/ExternalUserAgent (1.7.5):
|
||||||
|
- AppAuth/Core
|
||||||
|
- Firebase/CoreOnly (10.25.0):
|
||||||
|
- FirebaseCore (= 10.25.0)
|
||||||
|
- Firebase/Messaging (10.25.0):
|
||||||
|
- Firebase/CoreOnly
|
||||||
|
- FirebaseMessaging (~> 10.25.0)
|
||||||
|
- firebase_core (2.32.0):
|
||||||
|
- Firebase/CoreOnly (= 10.25.0)
|
||||||
|
- Flutter
|
||||||
|
- firebase_messaging (14.9.4):
|
||||||
|
- Firebase/Messaging (= 10.25.0)
|
||||||
|
- firebase_core
|
||||||
|
- Flutter
|
||||||
|
- FirebaseCore (10.25.0):
|
||||||
|
- FirebaseCoreInternal (~> 10.0)
|
||||||
|
- GoogleUtilities/Environment (~> 7.12)
|
||||||
|
- GoogleUtilities/Logger (~> 7.12)
|
||||||
|
- FirebaseCoreInternal (10.27.0):
|
||||||
|
- "GoogleUtilities/NSData+zlib (~> 7.8)"
|
||||||
|
- FirebaseInstallations (10.27.0):
|
||||||
|
- FirebaseCore (~> 10.0)
|
||||||
|
- GoogleUtilities/Environment (~> 7.8)
|
||||||
|
- GoogleUtilities/UserDefaults (~> 7.8)
|
||||||
|
- PromisesObjC (~> 2.1)
|
||||||
|
- FirebaseMessaging (10.25.0):
|
||||||
|
- FirebaseCore (~> 10.0)
|
||||||
|
- FirebaseInstallations (~> 10.0)
|
||||||
|
- GoogleDataTransport (~> 9.3)
|
||||||
|
- GoogleUtilities/AppDelegateSwizzler (~> 7.8)
|
||||||
|
- GoogleUtilities/Environment (~> 7.8)
|
||||||
|
- GoogleUtilities/Reachability (~> 7.8)
|
||||||
|
- GoogleUtilities/UserDefaults (~> 7.8)
|
||||||
|
- nanopb (< 2.30911.0, >= 2.30908.0)
|
||||||
|
- Flutter (1.0.0)
|
||||||
|
- flutter_secure_storage (6.0.0):
|
||||||
|
- Flutter
|
||||||
|
- google_sign_in_ios (0.0.1):
|
||||||
|
- AppAuth (>= 1.7.4)
|
||||||
|
- Flutter
|
||||||
|
- FlutterMacOS
|
||||||
|
- GoogleSignIn (~> 7.1)
|
||||||
|
- GTMSessionFetcher (>= 3.4.0)
|
||||||
|
- GoogleDataTransport (9.4.1):
|
||||||
|
- GoogleUtilities/Environment (~> 7.7)
|
||||||
|
- nanopb (< 2.30911.0, >= 2.30908.0)
|
||||||
|
- PromisesObjC (< 3.0, >= 1.2)
|
||||||
|
- GoogleSignIn (7.1.0):
|
||||||
|
- AppAuth (< 2.0, >= 1.7.3)
|
||||||
|
- GTMAppAuth (< 5.0, >= 4.1.1)
|
||||||
|
- GTMSessionFetcher/Core (~> 3.3)
|
||||||
|
- GoogleUtilities/AppDelegateSwizzler (7.13.3):
|
||||||
|
- GoogleUtilities/Environment
|
||||||
|
- GoogleUtilities/Logger
|
||||||
|
- GoogleUtilities/Network
|
||||||
|
- GoogleUtilities/Privacy
|
||||||
|
- GoogleUtilities/Environment (7.13.3):
|
||||||
|
- GoogleUtilities/Privacy
|
||||||
|
- PromisesObjC (< 3.0, >= 1.2)
|
||||||
|
- GoogleUtilities/Logger (7.13.3):
|
||||||
|
- GoogleUtilities/Environment
|
||||||
|
- GoogleUtilities/Privacy
|
||||||
|
- GoogleUtilities/Network (7.13.3):
|
||||||
|
- GoogleUtilities/Logger
|
||||||
|
- "GoogleUtilities/NSData+zlib"
|
||||||
|
- GoogleUtilities/Privacy
|
||||||
|
- GoogleUtilities/Reachability
|
||||||
|
- "GoogleUtilities/NSData+zlib (7.13.3)":
|
||||||
|
- GoogleUtilities/Privacy
|
||||||
|
- GoogleUtilities/Privacy (7.13.3)
|
||||||
|
- GoogleUtilities/Reachability (7.13.3):
|
||||||
|
- GoogleUtilities/Logger
|
||||||
|
- GoogleUtilities/Privacy
|
||||||
|
- GoogleUtilities/UserDefaults (7.13.3):
|
||||||
|
- GoogleUtilities/Logger
|
||||||
|
- GoogleUtilities/Privacy
|
||||||
|
- GTMAppAuth (4.1.1):
|
||||||
|
- AppAuth/Core (~> 1.7)
|
||||||
|
- GTMSessionFetcher/Core (< 4.0, >= 3.3)
|
||||||
|
- GTMSessionFetcher (3.4.1):
|
||||||
|
- GTMSessionFetcher/Full (= 3.4.1)
|
||||||
|
- GTMSessionFetcher/Core (3.4.1)
|
||||||
|
- GTMSessionFetcher/Full (3.4.1):
|
||||||
|
- GTMSessionFetcher/Core
|
||||||
|
- local_auth_darwin (0.0.1):
|
||||||
|
- Flutter
|
||||||
|
- location (0.0.1):
|
||||||
|
- Flutter
|
||||||
|
- nanopb (2.30910.0):
|
||||||
|
- nanopb/decode (= 2.30910.0)
|
||||||
|
- nanopb/encode (= 2.30910.0)
|
||||||
|
- nanopb/decode (2.30910.0)
|
||||||
|
- nanopb/encode (2.30910.0)
|
||||||
|
- path_provider_foundation (0.0.1):
|
||||||
|
- Flutter
|
||||||
|
- FlutterMacOS
|
||||||
|
- PromisesObjC (2.4.0)
|
||||||
|
- sqflite (0.0.3):
|
||||||
|
- Flutter
|
||||||
|
- FlutterMacOS
|
||||||
|
- url_launcher_ios (0.0.1):
|
||||||
|
- Flutter
|
||||||
|
- webview_flutter_wkwebview (0.0.1):
|
||||||
|
- Flutter
|
||||||
|
|
||||||
|
DEPENDENCIES:
|
||||||
|
- firebase_core (from `.symlinks/plugins/firebase_core/ios`)
|
||||||
|
- firebase_messaging (from `.symlinks/plugins/firebase_messaging/ios`)
|
||||||
|
- Flutter (from `Flutter`)
|
||||||
|
- flutter_secure_storage (from `.symlinks/plugins/flutter_secure_storage/ios`)
|
||||||
|
- google_sign_in_ios (from `.symlinks/plugins/google_sign_in_ios/darwin`)
|
||||||
|
- local_auth_darwin (from `.symlinks/plugins/local_auth_darwin/darwin`)
|
||||||
|
- location (from `.symlinks/plugins/location/ios`)
|
||||||
|
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
|
||||||
|
- sqflite (from `.symlinks/plugins/sqflite/darwin`)
|
||||||
|
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
|
||||||
|
- webview_flutter_wkwebview (from `.symlinks/plugins/webview_flutter_wkwebview/ios`)
|
||||||
|
|
||||||
|
SPEC REPOS:
|
||||||
|
trunk:
|
||||||
|
- AppAuth
|
||||||
|
- Firebase
|
||||||
|
- FirebaseCore
|
||||||
|
- FirebaseCoreInternal
|
||||||
|
- FirebaseInstallations
|
||||||
|
- FirebaseMessaging
|
||||||
|
- GoogleDataTransport
|
||||||
|
- GoogleSignIn
|
||||||
|
- GoogleUtilities
|
||||||
|
- GTMAppAuth
|
||||||
|
- GTMSessionFetcher
|
||||||
|
- nanopb
|
||||||
|
- PromisesObjC
|
||||||
|
|
||||||
|
EXTERNAL SOURCES:
|
||||||
|
firebase_core:
|
||||||
|
:path: ".symlinks/plugins/firebase_core/ios"
|
||||||
|
firebase_messaging:
|
||||||
|
:path: ".symlinks/plugins/firebase_messaging/ios"
|
||||||
|
Flutter:
|
||||||
|
:path: Flutter
|
||||||
|
flutter_secure_storage:
|
||||||
|
:path: ".symlinks/plugins/flutter_secure_storage/ios"
|
||||||
|
google_sign_in_ios:
|
||||||
|
:path: ".symlinks/plugins/google_sign_in_ios/darwin"
|
||||||
|
local_auth_darwin:
|
||||||
|
:path: ".symlinks/plugins/local_auth_darwin/darwin"
|
||||||
|
location:
|
||||||
|
:path: ".symlinks/plugins/location/ios"
|
||||||
|
path_provider_foundation:
|
||||||
|
:path: ".symlinks/plugins/path_provider_foundation/darwin"
|
||||||
|
sqflite:
|
||||||
|
:path: ".symlinks/plugins/sqflite/darwin"
|
||||||
|
url_launcher_ios:
|
||||||
|
:path: ".symlinks/plugins/url_launcher_ios/ios"
|
||||||
|
webview_flutter_wkwebview:
|
||||||
|
:path: ".symlinks/plugins/webview_flutter_wkwebview/ios"
|
||||||
|
|
||||||
|
SPEC CHECKSUMS:
|
||||||
|
AppAuth: 501c04eda8a8d11f179dbe8637b7a91bb7e5d2fa
|
||||||
|
Firebase: 0312a2352584f782ea56f66d91606891d4607f06
|
||||||
|
firebase_core: a626d00494efa398e7c54f25f1454a64c8abf197
|
||||||
|
firebase_messaging: 06391e8f35dc65a00c56580266285263d2861f10
|
||||||
|
FirebaseCore: 7ec4d0484817f12c3373955bc87762d96842d483
|
||||||
|
FirebaseCoreInternal: 4b297a2d56063dbea2c1d0d04222d44a8d058862
|
||||||
|
FirebaseInstallations: 766dabca09fd94aef922538aaf144cc4a6fb6869
|
||||||
|
FirebaseMessaging: 88950ba9485052891ebe26f6c43a52bb62248952
|
||||||
|
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
|
||||||
|
flutter_secure_storage: d33dac7ae2ea08509be337e775f6b59f1ff45f12
|
||||||
|
google_sign_in_ios: 07375bfbf2620bc93a602c0e27160d6afc6ead38
|
||||||
|
GoogleDataTransport: 6c09b596d841063d76d4288cc2d2f42cc36e1e2a
|
||||||
|
GoogleSignIn: d4281ab6cf21542b1cfaff85c191f230b399d2db
|
||||||
|
GoogleUtilities: ea963c370a38a8069cc5f7ba4ca849a60b6d7d15
|
||||||
|
GTMAppAuth: f69bd07d68cd3b766125f7e072c45d7340dea0de
|
||||||
|
GTMSessionFetcher: 8000756fc1c19d2e5697b90311f7832d2e33f6cd
|
||||||
|
local_auth_darwin: 4d56c90c2683319835a61274b57620df9c4520ab
|
||||||
|
location: d5cf8598915965547c3f36761ae9cc4f4e87d22e
|
||||||
|
nanopb: 438bc412db1928dac798aa6fd75726007be04262
|
||||||
|
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
|
||||||
|
PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
|
||||||
|
sqflite: 673a0e54cc04b7d6dba8d24fb8095b31c3a99eec
|
||||||
|
url_launcher_ios: 5334b05cef931de560670eeae103fd3e431ac3fe
|
||||||
|
webview_flutter_wkwebview: be0f0d33777f1bfd0c9fdcb594786704dbf65f36
|
||||||
|
|
||||||
|
PODFILE CHECKSUM: 1959d098c91d8a792531a723c4a9d7e9f6a01e38
|
||||||
|
|
||||||
|
COCOAPODS: 1.15.2
|
||||||
757
ios/Runner.xcodeproj/project.pbxproj
Normal file
@@ -0,0 +1,757 @@
|
|||||||
|
// !$*UTF8*$!
|
||||||
|
{
|
||||||
|
archiveVersion = 1;
|
||||||
|
classes = {
|
||||||
|
};
|
||||||
|
objectVersion = 54;
|
||||||
|
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 */; };
|
||||||
|
536131ECA2F90A36243E82F1 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 51EDD0F6DE0C2DD1B481E60C /* GoogleService-Info.plist */; };
|
||||||
|
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 */; };
|
||||||
|
AE788943CA93312FDB0A3D6C /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8B7E216D92402E89BBF0C8A6 /* Pods_RunnerTests.framework */; };
|
||||||
|
B5D96EA9C34A11D9DC922EB4 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A9AC52F9E7303DD2AADC56F7 /* Pods_Runner.framework */; };
|
||||||
|
/* 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 */
|
||||||
|
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
|
||||||
|
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
|
||||||
|
331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; };
|
||||||
|
331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
|
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
|
||||||
|
3DD7F287CDCC3C5A3FC9B074 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
|
||||||
|
51EDD0F6DE0C2DD1B481E60C /* GoogleService-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; name = "GoogleService-Info.plist"; path = "Runner/GoogleService-Info.plist"; sourceTree = "<group>"; };
|
||||||
|
5BACD61BA97701EA585BB32D /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
|
||||||
|
69F3204B769FEC2193D583DD /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
|
||||||
|
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
|
||||||
|
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
|
||||||
|
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
|
||||||
|
7B365EAF9143E50C184FBF9C /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = "<group>"; };
|
||||||
|
8B7E216D92402E89BBF0C8A6 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
|
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
|
||||||
|
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
|
||||||
|
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 = "<group>"; };
|
||||||
|
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
||||||
|
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
||||||
|
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||||
|
A9AC52F9E7303DD2AADC56F7 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
|
C66754E42C263D38002C21AF /* Runner.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Runner.entitlements; sourceTree = "<group>"; };
|
||||||
|
D3C7EF4530833ECC59D933EB /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = "<group>"; };
|
||||||
|
EE8DDDC671B36FB3C0532FA2 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = "<group>"; };
|
||||||
|
/* End PBXFileReference section */
|
||||||
|
|
||||||
|
/* Begin PBXFrameworksBuildPhase section */
|
||||||
|
97C146EB1CF9000F007C117D /* Frameworks */ = {
|
||||||
|
isa = PBXFrameworksBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
B5D96EA9C34A11D9DC922EB4 /* Pods_Runner.framework in Frameworks */,
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
AEAB95EFF3B3BF7F893B510B /* Frameworks */ = {
|
||||||
|
isa = PBXFrameworksBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
AE788943CA93312FDB0A3D6C /* Pods_RunnerTests.framework in Frameworks */,
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
/* End PBXFrameworksBuildPhase section */
|
||||||
|
|
||||||
|
/* Begin PBXGroup section */
|
||||||
|
2547B9228653078BD5BC8D85 /* Frameworks */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
A9AC52F9E7303DD2AADC56F7 /* Pods_Runner.framework */,
|
||||||
|
8B7E216D92402E89BBF0C8A6 /* Pods_RunnerTests.framework */,
|
||||||
|
);
|
||||||
|
name = Frameworks;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
331C8082294A63A400263BE5 /* RunnerTests */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
331C807B294A618700263BE5 /* RunnerTests.swift */,
|
||||||
|
);
|
||||||
|
path = RunnerTests;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
89895ABD55CE43E236B6CAF3 /* Pods */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
3DD7F287CDCC3C5A3FC9B074 /* Pods-Runner.debug.xcconfig */,
|
||||||
|
69F3204B769FEC2193D583DD /* Pods-Runner.release.xcconfig */,
|
||||||
|
5BACD61BA97701EA585BB32D /* Pods-Runner.profile.xcconfig */,
|
||||||
|
7B365EAF9143E50C184FBF9C /* Pods-RunnerTests.debug.xcconfig */,
|
||||||
|
EE8DDDC671B36FB3C0532FA2 /* Pods-RunnerTests.release.xcconfig */,
|
||||||
|
D3C7EF4530833ECC59D933EB /* Pods-RunnerTests.profile.xcconfig */,
|
||||||
|
);
|
||||||
|
path = Pods;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
9740EEB11CF90186004384FC /* Flutter */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
|
||||||
|
9740EEB21CF90195004384FC /* Debug.xcconfig */,
|
||||||
|
7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
|
||||||
|
9740EEB31CF90195004384FC /* Generated.xcconfig */,
|
||||||
|
);
|
||||||
|
name = Flutter;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
97C146E51CF9000F007C117D = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
9740EEB11CF90186004384FC /* Flutter */,
|
||||||
|
97C146F01CF9000F007C117D /* Runner */,
|
||||||
|
97C146EF1CF9000F007C117D /* Products */,
|
||||||
|
331C8082294A63A400263BE5 /* RunnerTests */,
|
||||||
|
89895ABD55CE43E236B6CAF3 /* Pods */,
|
||||||
|
2547B9228653078BD5BC8D85 /* Frameworks */,
|
||||||
|
51EDD0F6DE0C2DD1B481E60C /* GoogleService-Info.plist */,
|
||||||
|
);
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
97C146EF1CF9000F007C117D /* Products */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
97C146EE1CF9000F007C117D /* Runner.app */,
|
||||||
|
331C8081294A63A400263BE5 /* RunnerTests.xctest */,
|
||||||
|
);
|
||||||
|
name = Products;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
97C146F01CF9000F007C117D /* Runner */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
C66754E42C263D38002C21AF /* Runner.entitlements */,
|
||||||
|
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 = "<group>";
|
||||||
|
};
|
||||||
|
/* End PBXGroup section */
|
||||||
|
|
||||||
|
/* Begin PBXNativeTarget section */
|
||||||
|
331C8080294A63A400263BE5 /* RunnerTests */ = {
|
||||||
|
isa = PBXNativeTarget;
|
||||||
|
buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
|
||||||
|
buildPhases = (
|
||||||
|
B9EB5DEA5F772729C796DD11 /* [CP] Check Pods Manifest.lock */,
|
||||||
|
331C807D294A63A400263BE5 /* Sources */,
|
||||||
|
331C807F294A63A400263BE5 /* Resources */,
|
||||||
|
AEAB95EFF3B3BF7F893B510B /* 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 = (
|
||||||
|
F30F6A7446087F285F80AA2C /* [CP] Check Pods Manifest.lock */,
|
||||||
|
9740EEB61CF901F6004384FC /* Run Script */,
|
||||||
|
97C146EA1CF9000F007C117D /* Sources */,
|
||||||
|
97C146EB1CF9000F007C117D /* Frameworks */,
|
||||||
|
97C146EC1CF9000F007C117D /* Resources */,
|
||||||
|
9705A1C41CF9048500538489 /* Embed Frameworks */,
|
||||||
|
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
|
||||||
|
E9260FFCE0F15D904C6E7C16 /* [CP] Embed Pods Frameworks */,
|
||||||
|
6A69BFBF5DAB5F688C4AF4E3 /* [CP] Copy Pods Resources */,
|
||||||
|
);
|
||||||
|
buildRules = (
|
||||||
|
);
|
||||||
|
dependencies = (
|
||||||
|
);
|
||||||
|
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 = YES;
|
||||||
|
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 */,
|
||||||
|
536131ECA2F90A36243E82F1 /* GoogleService-Info.plist in Resources */,
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
/* End PBXResourcesBuildPhase section */
|
||||||
|
|
||||||
|
/* Begin PBXShellScriptBuildPhase section */
|
||||||
|
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";
|
||||||
|
};
|
||||||
|
6A69BFBF5DAB5F688C4AF4E3 /* [CP] Copy Pods Resources */ = {
|
||||||
|
isa = PBXShellScriptBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
inputFileListPaths = (
|
||||||
|
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
|
||||||
|
);
|
||||||
|
name = "[CP] Copy Pods Resources";
|
||||||
|
outputFileListPaths = (
|
||||||
|
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
shellPath = /bin/sh;
|
||||||
|
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
|
||||||
|
showEnvVarsInLog = 0;
|
||||||
|
};
|
||||||
|
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";
|
||||||
|
};
|
||||||
|
B9EB5DEA5F772729C796DD11 /* [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;
|
||||||
|
};
|
||||||
|
E9260FFCE0F15D904C6E7C16 /* [CP] Embed Pods Frameworks */ = {
|
||||||
|
isa = PBXShellScriptBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
inputFileListPaths = (
|
||||||
|
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
|
||||||
|
);
|
||||||
|
name = "[CP] Embed Pods Frameworks";
|
||||||
|
outputFileListPaths = (
|
||||||
|
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
shellPath = /bin/sh;
|
||||||
|
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
|
||||||
|
showEnvVarsInLog = 0;
|
||||||
|
};
|
||||||
|
F30F6A7446087F285F80AA2C /* [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;
|
||||||
|
};
|
||||||
|
/* 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 = "<group>";
|
||||||
|
};
|
||||||
|
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
|
||||||
|
isa = PBXVariantGroup;
|
||||||
|
children = (
|
||||||
|
97C147001CF9000F007C117D /* Base */,
|
||||||
|
);
|
||||||
|
name = LaunchScreen.storyboard;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
/* End PBXVariantGroup section */
|
||||||
|
|
||||||
|
/* Begin XCBuildConfiguration section */
|
||||||
|
249021D3217E4FDB00AE95B9 /* Profile */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
|
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
|
||||||
|
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;
|
||||||
|
ENABLE_USER_SCRIPT_SANDBOXING = NO;
|
||||||
|
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 = 12.0;
|
||||||
|
MTL_ENABLE_DEBUG_INFO = NO;
|
||||||
|
SDKROOT = iphoneos;
|
||||||
|
SUPPORTED_PLATFORMS = iphoneos;
|
||||||
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
|
VALIDATE_PRODUCT = YES;
|
||||||
|
};
|
||||||
|
name = Profile;
|
||||||
|
};
|
||||||
|
249021D4217E4FDB00AE95B9 /* Profile */ = {
|
||||||
|
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 = 63CVT8G5P8;
|
||||||
|
ENABLE_BITCODE = NO;
|
||||||
|
INFOPLIST_FILE = Runner/Info.plist;
|
||||||
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
|
"$(inherited)",
|
||||||
|
"@executable_path/Frameworks",
|
||||||
|
);
|
||||||
|
PRODUCT_BUNDLE_IDENTIFIER = com.example.seferAdmin1;
|
||||||
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
|
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
|
||||||
|
SWIFT_VERSION = 5.0;
|
||||||
|
VERSIONING_SYSTEM = "apple-generic";
|
||||||
|
};
|
||||||
|
name = Profile;
|
||||||
|
};
|
||||||
|
331C8088294A63A400263BE5 /* Debug */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
baseConfigurationReference = 7B365EAF9143E50C184FBF9C /* Pods-RunnerTests.debug.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.example.seferAdmin1.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;
|
||||||
|
};
|
||||||
|
331C8089294A63A400263BE5 /* Release */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
baseConfigurationReference = EE8DDDC671B36FB3C0532FA2 /* Pods-RunnerTests.release.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.example.seferAdmin1.RunnerTests;
|
||||||
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
|
SWIFT_VERSION = 5.0;
|
||||||
|
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
|
||||||
|
};
|
||||||
|
name = Release;
|
||||||
|
};
|
||||||
|
331C808A294A63A400263BE5 /* Profile */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
baseConfigurationReference = D3C7EF4530833ECC59D933EB /* Pods-RunnerTests.profile.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.example.seferAdmin1.RunnerTests;
|
||||||
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
|
SWIFT_VERSION = 5.0;
|
||||||
|
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
|
||||||
|
};
|
||||||
|
name = Profile;
|
||||||
|
};
|
||||||
|
97C147031CF9000F007C117D /* Debug */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
|
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
|
||||||
|
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;
|
||||||
|
ENABLE_USER_SCRIPT_SANDBOXING = NO;
|
||||||
|
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 = 12.0;
|
||||||
|
MTL_ENABLE_DEBUG_INFO = YES;
|
||||||
|
ONLY_ACTIVE_ARCH = YES;
|
||||||
|
SDKROOT = iphoneos;
|
||||||
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
|
};
|
||||||
|
name = Debug;
|
||||||
|
};
|
||||||
|
97C147041CF9000F007C117D /* Release */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
|
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
|
||||||
|
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;
|
||||||
|
ENABLE_USER_SCRIPT_SANDBOXING = NO;
|
||||||
|
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 = 12.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;
|
||||||
|
};
|
||||||
|
97C147061CF9000F007C117D /* Debug */ = {
|
||||||
|
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 = 63CVT8G5P8;
|
||||||
|
ENABLE_BITCODE = NO;
|
||||||
|
INFOPLIST_FILE = Runner/Info.plist;
|
||||||
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
|
"$(inherited)",
|
||||||
|
"@executable_path/Frameworks",
|
||||||
|
);
|
||||||
|
PRODUCT_BUNDLE_IDENTIFIER = com.example.seferAdmin1;
|
||||||
|
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;
|
||||||
|
};
|
||||||
|
97C147071CF9000F007C117D /* Release */ = {
|
||||||
|
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 = 63CVT8G5P8;
|
||||||
|
ENABLE_BITCODE = NO;
|
||||||
|
INFOPLIST_FILE = Runner/Info.plist;
|
||||||
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
|
"$(inherited)",
|
||||||
|
"@executable_path/Frameworks",
|
||||||
|
);
|
||||||
|
PRODUCT_BUNDLE_IDENTIFIER = com.example.seferAdmin1;
|
||||||
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
|
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
|
||||||
|
SWIFT_VERSION = 5.0;
|
||||||
|
VERSIONING_SYSTEM = "apple-generic";
|
||||||
|
};
|
||||||
|
name = Release;
|
||||||
|
};
|
||||||
|
/* End XCBuildConfiguration section */
|
||||||
|
|
||||||
|
/* Begin XCConfigurationList section */
|
||||||
|
331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = {
|
||||||
|
isa = XCConfigurationList;
|
||||||
|
buildConfigurations = (
|
||||||
|
331C8088294A63A400263BE5 /* Debug */,
|
||||||
|
331C8089294A63A400263BE5 /* Release */,
|
||||||
|
331C808A294A63A400263BE5 /* Profile */,
|
||||||
|
);
|
||||||
|
defaultConfigurationIsVisible = 0;
|
||||||
|
defaultConfigurationName = Release;
|
||||||
|
};
|
||||||
|
97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
|
||||||
|
isa = XCConfigurationList;
|
||||||
|
buildConfigurations = (
|
||||||
|
97C147031CF9000F007C117D /* Debug */,
|
||||||
|
97C147041CF9000F007C117D /* Release */,
|
||||||
|
249021D3217E4FDB00AE95B9 /* Profile */,
|
||||||
|
);
|
||||||
|
defaultConfigurationIsVisible = 0;
|
||||||
|
defaultConfigurationName = Release;
|
||||||
|
};
|
||||||
|
97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
|
||||||
|
isa = XCConfigurationList;
|
||||||
|
buildConfigurations = (
|
||||||
|
97C147061CF9000F007C117D /* Debug */,
|
||||||
|
97C147071CF9000F007C117D /* Release */,
|
||||||
|
249021D4217E4FDB00AE95B9 /* Profile */,
|
||||||
|
);
|
||||||
|
defaultConfigurationIsVisible = 0;
|
||||||
|
defaultConfigurationName = Release;
|
||||||
|
};
|
||||||
|
/* End XCConfigurationList section */
|
||||||
|
};
|
||||||
|
rootObject = 97C146E61CF9000F007C117D /* Project object */;
|
||||||
|
}
|
||||||
7
ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
generated
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Workspace
|
||||||
|
version = "1.0">
|
||||||
|
<FileRef
|
||||||
|
location = "self:">
|
||||||
|
</FileRef>
|
||||||
|
</Workspace>
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>IDEDidComputeMac32BitWarning</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>PreviewsEnabled</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
98
ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
Normal file
@@ -0,0 +1,98 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Scheme
|
||||||
|
LastUpgradeVersion = "1510"
|
||||||
|
version = "1.3">
|
||||||
|
<BuildAction
|
||||||
|
parallelizeBuildables = "YES"
|
||||||
|
buildImplicitDependencies = "YES">
|
||||||
|
<BuildActionEntries>
|
||||||
|
<BuildActionEntry
|
||||||
|
buildForTesting = "YES"
|
||||||
|
buildForRunning = "YES"
|
||||||
|
buildForProfiling = "YES"
|
||||||
|
buildForArchiving = "YES"
|
||||||
|
buildForAnalyzing = "YES">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
|
||||||
|
BuildableName = "Runner.app"
|
||||||
|
BlueprintName = "Runner"
|
||||||
|
ReferencedContainer = "container:Runner.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildActionEntry>
|
||||||
|
</BuildActionEntries>
|
||||||
|
</BuildAction>
|
||||||
|
<TestAction
|
||||||
|
buildConfiguration = "Debug"
|
||||||
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES">
|
||||||
|
<MacroExpansion>
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
|
||||||
|
BuildableName = "Runner.app"
|
||||||
|
BlueprintName = "Runner"
|
||||||
|
ReferencedContainer = "container:Runner.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</MacroExpansion>
|
||||||
|
<Testables>
|
||||||
|
<TestableReference
|
||||||
|
skipped = "NO"
|
||||||
|
parallelizable = "YES">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "331C8080294A63A400263BE5"
|
||||||
|
BuildableName = "RunnerTests.xctest"
|
||||||
|
BlueprintName = "RunnerTests"
|
||||||
|
ReferencedContainer = "container:Runner.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</TestableReference>
|
||||||
|
</Testables>
|
||||||
|
</TestAction>
|
||||||
|
<LaunchAction
|
||||||
|
buildConfiguration = "Debug"
|
||||||
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
|
launchStyle = "0"
|
||||||
|
useCustomWorkingDirectory = "NO"
|
||||||
|
ignoresPersistentStateOnLaunch = "NO"
|
||||||
|
debugDocumentVersioning = "YES"
|
||||||
|
debugServiceExtension = "internal"
|
||||||
|
allowLocationSimulation = "YES">
|
||||||
|
<BuildableProductRunnable
|
||||||
|
runnableDebuggingMode = "0">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
|
||||||
|
BuildableName = "Runner.app"
|
||||||
|
BlueprintName = "Runner"
|
||||||
|
ReferencedContainer = "container:Runner.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildableProductRunnable>
|
||||||
|
</LaunchAction>
|
||||||
|
<ProfileAction
|
||||||
|
buildConfiguration = "Profile"
|
||||||
|
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||||
|
savedToolIdentifier = ""
|
||||||
|
useCustomWorkingDirectory = "NO"
|
||||||
|
debugDocumentVersioning = "YES">
|
||||||
|
<BuildableProductRunnable
|
||||||
|
runnableDebuggingMode = "0">
|
||||||
|
<BuildableReference
|
||||||
|
BuildableIdentifier = "primary"
|
||||||
|
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
|
||||||
|
BuildableName = "Runner.app"
|
||||||
|
BlueprintName = "Runner"
|
||||||
|
ReferencedContainer = "container:Runner.xcodeproj">
|
||||||
|
</BuildableReference>
|
||||||
|
</BuildableProductRunnable>
|
||||||
|
</ProfileAction>
|
||||||
|
<AnalyzeAction
|
||||||
|
buildConfiguration = "Debug">
|
||||||
|
</AnalyzeAction>
|
||||||
|
<ArchiveAction
|
||||||
|
buildConfiguration = "Release"
|
||||||
|
revealArchiveInOrganizer = "YES">
|
||||||
|
</ArchiveAction>
|
||||||
|
</Scheme>
|
||||||
10
ios/Runner.xcworkspace/contents.xcworkspacedata
generated
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Workspace
|
||||||
|
version = "1.0">
|
||||||
|
<FileRef
|
||||||
|
location = "group:Runner.xcodeproj">
|
||||||
|
</FileRef>
|
||||||
|
<FileRef
|
||||||
|
location = "group:Pods/Pods.xcodeproj">
|
||||||
|
</FileRef>
|
||||||
|
</Workspace>
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>IDEDidComputeMac32BitWarning</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>PreviewsEnabled</key>
|
||||||
|
<false/>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
31
ios/Runner/AppDelegate.swift
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
// import UIKit
|
||||||
|
// import Flutter
|
||||||
|
|
||||||
|
// @UIApplicationMain
|
||||||
|
// @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)
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
import UIKit
|
||||||
|
import Flutter
|
||||||
|
import FirebaseCore
|
||||||
|
|
||||||
|
@UIApplicationMain
|
||||||
|
@objc class AppDelegate: FlutterAppDelegate {
|
||||||
|
|
||||||
|
override func application(
|
||||||
|
_ application: UIApplication,
|
||||||
|
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
|
||||||
|
) -> Bool {
|
||||||
|
// GMSServices.provideAPIKey("AIzaSyCyfwRXTwSTLOFQSQgN5p7QZgGJVZnEKq0")
|
||||||
|
FirebaseApp.configure()
|
||||||
|
GeneratedPluginRegistrant.register(with: self)
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
}
|
||||||
122
ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
Normal file
@@ -0,0 +1,122 @@
|
|||||||
|
{
|
||||||
|
"images" : [
|
||||||
|
{
|
||||||
|
"size" : "20x20",
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"filename" : "Icon-App-20x20@2x.png",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "20x20",
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"filename" : "Icon-App-20x20@3x.png",
|
||||||
|
"scale" : "3x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "29x29",
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"filename" : "Icon-App-29x29@1x.png",
|
||||||
|
"scale" : "1x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "29x29",
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"filename" : "Icon-App-29x29@2x.png",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "29x29",
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"filename" : "Icon-App-29x29@3x.png",
|
||||||
|
"scale" : "3x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "40x40",
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"filename" : "Icon-App-40x40@2x.png",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "40x40",
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"filename" : "Icon-App-40x40@3x.png",
|
||||||
|
"scale" : "3x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "60x60",
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"filename" : "Icon-App-60x60@2x.png",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "60x60",
|
||||||
|
"idiom" : "iphone",
|
||||||
|
"filename" : "Icon-App-60x60@3x.png",
|
||||||
|
"scale" : "3x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "20x20",
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"filename" : "Icon-App-20x20@1x.png",
|
||||||
|
"scale" : "1x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "20x20",
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"filename" : "Icon-App-20x20@2x.png",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "29x29",
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"filename" : "Icon-App-29x29@1x.png",
|
||||||
|
"scale" : "1x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "29x29",
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"filename" : "Icon-App-29x29@2x.png",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "40x40",
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"filename" : "Icon-App-40x40@1x.png",
|
||||||
|
"scale" : "1x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "40x40",
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"filename" : "Icon-App-40x40@2x.png",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "76x76",
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"filename" : "Icon-App-76x76@1x.png",
|
||||||
|
"scale" : "1x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "76x76",
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"filename" : "Icon-App-76x76@2x.png",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "83.5x83.5",
|
||||||
|
"idiom" : "ipad",
|
||||||
|
"filename" : "Icon-App-83.5x83.5@2x.png",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size" : "1024x1024",
|
||||||
|
"idiom" : "ios-marketing",
|
||||||
|
"filename" : "Icon-App-1024x1024@1x.png",
|
||||||
|
"scale" : "1x"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info" : {
|
||||||
|
"version" : 1,
|
||||||
|
"author" : "xcode"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 358 B |
|
After Width: | Height: | Size: 789 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 507 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 789 B |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 987 B |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
23
ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"images" : [
|
||||||
|
{
|
||||||
|
"idiom" : "universal",
|
||||||
|
"filename" : "LaunchImage.png",
|
||||||
|
"scale" : "1x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "universal",
|
||||||
|
"filename" : "LaunchImage@2x.png",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "universal",
|
||||||
|
"filename" : "LaunchImage@3x.png",
|
||||||
|
"scale" : "3x"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info" : {
|
||||||
|
"version" : 1,
|
||||||
|
"author" : "xcode"
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
vendored
Normal file
|
After Width: | Height: | Size: 68 B |
BIN
ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
vendored
Normal file
|
After Width: | Height: | Size: 68 B |
BIN
ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
vendored
Normal file
|
After Width: | Height: | Size: 68 B |
5
ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
vendored
Normal file
@@ -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.
|
||||||
37
ios/Runner/Base.lproj/LaunchScreen.storyboard
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12121" systemVersion="16G29" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
|
||||||
|
<dependencies>
|
||||||
|
<deployment identifier="iOS"/>
|
||||||
|
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12089"/>
|
||||||
|
</dependencies>
|
||||||
|
<scenes>
|
||||||
|
<!--View Controller-->
|
||||||
|
<scene sceneID="EHf-IW-A2E">
|
||||||
|
<objects>
|
||||||
|
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
|
||||||
|
<layoutGuides>
|
||||||
|
<viewControllerLayoutGuide type="top" id="Ydg-fD-yQy"/>
|
||||||
|
<viewControllerLayoutGuide type="bottom" id="xbc-2k-c8Z"/>
|
||||||
|
</layoutGuides>
|
||||||
|
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
|
||||||
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
|
<subviews>
|
||||||
|
<imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4">
|
||||||
|
</imageView>
|
||||||
|
</subviews>
|
||||||
|
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||||
|
<constraints>
|
||||||
|
<constraint firstItem="YRO-k0-Ey4" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="1a2-6s-vTC"/>
|
||||||
|
<constraint firstItem="YRO-k0-Ey4" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="4X2-HB-R7a"/>
|
||||||
|
</constraints>
|
||||||
|
</view>
|
||||||
|
</viewController>
|
||||||
|
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||||
|
</objects>
|
||||||
|
<point key="canvasLocation" x="53" y="375"/>
|
||||||
|
</scene>
|
||||||
|
</scenes>
|
||||||
|
<resources>
|
||||||
|
<image name="LaunchImage" width="168" height="185"/>
|
||||||
|
</resources>
|
||||||
|
</document>
|
||||||
26
ios/Runner/Base.lproj/Main.storyboard
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
|
||||||
|
<dependencies>
|
||||||
|
<deployment identifier="iOS"/>
|
||||||
|
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
|
||||||
|
</dependencies>
|
||||||
|
<scenes>
|
||||||
|
<!--Flutter View Controller-->
|
||||||
|
<scene sceneID="tne-QT-ifu">
|
||||||
|
<objects>
|
||||||
|
<viewController id="BYZ-38-t0r" customClass="FlutterViewController" sceneMemberID="viewController">
|
||||||
|
<layoutGuides>
|
||||||
|
<viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
|
||||||
|
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
|
||||||
|
</layoutGuides>
|
||||||
|
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
|
||||||
|
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
|
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
||||||
|
</view>
|
||||||
|
</viewController>
|
||||||
|
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
|
||||||
|
</objects>
|
||||||
|
</scene>
|
||||||
|
</scenes>
|
||||||
|
</document>
|
||||||
36
ios/Runner/GoogleService-Info.plist
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>CLIENT_ID</key>
|
||||||
|
<string>594687661098-aj48k038fjst4k8jiprfbq8895b11cci.apps.googleusercontent.com</string>
|
||||||
|
<key>REVERSED_CLIENT_ID</key>
|
||||||
|
<string>com.googleusercontent.apps.594687661098-aj48k038fjst4k8jiprfbq8895b11cci</string>
|
||||||
|
<key>ANDROID_CLIENT_ID</key>
|
||||||
|
<string>594687661098-2dhoogl7be9phobfbu8bbg1sj567iv88.apps.googleusercontent.com</string>
|
||||||
|
<key>API_KEY</key>
|
||||||
|
<string>AIzaSyCf2mW2h0HD8ZYjwh4VOa2ladw6MJkCDTM</string>
|
||||||
|
<key>GCM_SENDER_ID</key>
|
||||||
|
<string>594687661098</string>
|
||||||
|
<key>PLIST_VERSION</key>
|
||||||
|
<string>1</string>
|
||||||
|
<key>BUNDLE_ID</key>
|
||||||
|
<string>com.example.seferAdmin1</string>
|
||||||
|
<key>PROJECT_ID</key>
|
||||||
|
<string>ride-b1bd8</string>
|
||||||
|
<key>STORAGE_BUCKET</key>
|
||||||
|
<string>ride-b1bd8.appspot.com</string>
|
||||||
|
<key>IS_ADS_ENABLED</key>
|
||||||
|
<false></false>
|
||||||
|
<key>IS_ANALYTICS_ENABLED</key>
|
||||||
|
<false></false>
|
||||||
|
<key>IS_APPINVITE_ENABLED</key>
|
||||||
|
<true></true>
|
||||||
|
<key>IS_GCM_ENABLED</key>
|
||||||
|
<true></true>
|
||||||
|
<key>IS_SIGNIN_ENABLED</key>
|
||||||
|
<true></true>
|
||||||
|
<key>GOOGLE_APP_ID</key>
|
||||||
|
<string>1:594687661098:ios:9f46a169fad13752595f53</string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
49
ios/Runner/Info.plist
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
|
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
||||||
|
<key>CFBundleDisplayName</key>
|
||||||
|
<string>Sefer Admin1</string>
|
||||||
|
<key>CFBundleExecutable</key>
|
||||||
|
<string>$(EXECUTABLE_NAME)</string>
|
||||||
|
<key>CFBundleIdentifier</key>
|
||||||
|
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
||||||
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
|
<string>6.0</string>
|
||||||
|
<key>CFBundleName</key>
|
||||||
|
<string>sefer_admin1</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>APPL</string>
|
||||||
|
<key>CFBundleShortVersionString</key>
|
||||||
|
<string>$(FLUTTER_BUILD_NAME)</string>
|
||||||
|
<key>CFBundleSignature</key>
|
||||||
|
<string>????</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>$(FLUTTER_BUILD_NUMBER)</string>
|
||||||
|
<key>LSRequiresIPhoneOS</key>
|
||||||
|
<true/>
|
||||||
|
<key>UILaunchStoryboardName</key>
|
||||||
|
<string>LaunchScreen</string>
|
||||||
|
<key>UIMainStoryboardFile</key>
|
||||||
|
<string>Main</string>
|
||||||
|
<key>UISupportedInterfaceOrientations</key>
|
||||||
|
<array>
|
||||||
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
|
</array>
|
||||||
|
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||||
|
<array>
|
||||||
|
<string>UIInterfaceOrientationPortrait</string>
|
||||||
|
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
|
</array>
|
||||||
|
<key>CADisableMinimumFrameDurationOnPhone</key>
|
||||||
|
<true/>
|
||||||
|
<key>UIApplicationSupportsIndirectInputEvents</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
1
ios/Runner/Runner-Bridging-Header.h
Normal file
@@ -0,0 +1 @@
|
|||||||
|
#import "GeneratedPluginRegistrant.h"
|
||||||
8
ios/Runner/Runner.entitlements
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>aps-environment</key>
|
||||||
|
<string>development</string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
12
ios/RunnerTests/RunnerTests.swift
Normal file
@@ -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.
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
72
lib/constant/api_key.dart
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
import '../env/env.dart';
|
||||||
|
import 'char_map.dart';
|
||||||
|
import 'credential.dart';
|
||||||
|
|
||||||
|
class AK {
|
||||||
|
static final AC a = AC();
|
||||||
|
|
||||||
|
static final String publishableKey =
|
||||||
|
AC().r(AC().r(AC().r(Env.stripePublishableKe, cn), cC), cs);
|
||||||
|
static final String secretKey = a.r(a.r(a.r(Env.secretKey, cn), cC), cs);
|
||||||
|
static final String basicAuthCredentials =
|
||||||
|
a.r(a.r(a.r(Env.basicAuthCredentials, cn), cC), cs);
|
||||||
|
static final String accountSIDTwillo =
|
||||||
|
a.r(a.r(a.r(Env.accountSIDTwillo, cn), cC), cs);
|
||||||
|
static final String serverAPI = a.r(a.r(a.r(Env.serverAPI, cn), cC), cs);
|
||||||
|
static final String mapAPIKEY = a.r(a.r(a.r(Env.mapAPIKEY, cn), cC), cs);
|
||||||
|
static final String twilloRecoveryCode =
|
||||||
|
a.r(a.r(a.r(Env.twilloRecoveryCode, cn), cC), cs);
|
||||||
|
static final String authTokenTwillo =
|
||||||
|
a.r(a.r(a.r(Env.authTokenTwillo, cn), cC), cs);
|
||||||
|
static final String chatGPTkey = a.r(a.r(a.r(Env.chatGPTkey, cn), cC), cs);
|
||||||
|
static final String transactionCloude =
|
||||||
|
a.r(a.r(a.r(Env.transactionCloude, cn), cC), cs);
|
||||||
|
static final String visionApi = a.r(a.r(a.r(Env.visionApi, cn), cC), cs);
|
||||||
|
static final String chatGPTkeySefer =
|
||||||
|
a.r(a.r(a.r(Env.chatGPTkeySefer, cn), cC), cs);
|
||||||
|
static final String chatGPTkeySeferNew =
|
||||||
|
a.r(a.r(a.r(Env.chatGPTkeySeferNew, cn), cC), cs);
|
||||||
|
static final String serverPHP = Env.serverPHP;
|
||||||
|
static final String llamaKey = a.r(a.r(a.r(Env.llamaKey, cn), cC), cs);
|
||||||
|
static final String cohere = a.r(a.r(a.r(Env.cohere, cn), cC), cs);
|
||||||
|
static final String claudeAiAPI = a.r(a.r(a.r(Env.claudeAiAPI, cn), cC), cs);
|
||||||
|
static final String payPalClientId =
|
||||||
|
a.r(a.r(a.r(Env.payPalClientId, cn), cC), cs);
|
||||||
|
static final String payPalSecret =
|
||||||
|
a.r(a.r(a.r(Env.payPalSecret, cn), cC), cs);
|
||||||
|
static final String geminiApi = a.r(a.r(a.r(Env.geminiApi, cn), cC), cs);
|
||||||
|
static final String agoraAppId = a.r(a.r(a.r(Env.agoraAppId, cn), cC), cs);
|
||||||
|
static final String agoraAppCertificate =
|
||||||
|
a.r(a.r(a.r(Env.agoraAppCertificate, cn), cC), cs);
|
||||||
|
static final String payPalClientIdLive =
|
||||||
|
a.r(a.r(a.r(Env.payPalClientIdLive, cn), cC), cs);
|
||||||
|
static final String payPalSecretLive =
|
||||||
|
a.r(a.r(a.r(Env.payPalSecretLive, cn), cC), cs);
|
||||||
|
static final String integrationIdPayMob =
|
||||||
|
a.r(a.r(a.r(Env.integrationIdPayMob, cn), cC), cs);
|
||||||
|
static final String passwordPayMob =
|
||||||
|
a.r(a.r(a.r(Env.passwordPayMob, cn), cC), cs);
|
||||||
|
static final String usernamePayMob =
|
||||||
|
a.r(a.r(a.r(Env.usernamePayMob, cn), cC), cs);
|
||||||
|
static final String payMobApikey =
|
||||||
|
a.r(a.r(a.r(Env.payMobApikey, cn), cC), cs);
|
||||||
|
static final String integrationIdPayMobWallet =
|
||||||
|
a.r(a.r(a.r(Env.integrationIdPayMobWallet, cn), cC), cs);
|
||||||
|
static final String smsPasswordEgypt =
|
||||||
|
a.r(a.r(a.r(Env.smsPasswordEgypt, cn), cC), cs);
|
||||||
|
static final String ocpApimSubscriptionKey =
|
||||||
|
a.r(a.r(a.r(Env.ocpApimSubscriptionKey, cn), cC), cs);
|
||||||
|
static final String chatGPTkeySeferNew4 =
|
||||||
|
a.r(a.r(a.r(Env.chatGPTkeySeferNew4, cn), cC), cs);
|
||||||
|
static final String anthropicAIkeySeferNew =
|
||||||
|
a.r(a.r(a.r(Env.anthropicAIkeySeferNew, cn), cC), cs);
|
||||||
|
static final String llama3Key = a.r(a.r(a.r(Env.llama3Key, cn), cC), cs);
|
||||||
|
static final String payMobOutClientSecrret =
|
||||||
|
a.r(a.r(a.r(Env.payMobOutClientSecrret, cn), cC), cs);
|
||||||
|
static final String payMobOutClient_id =
|
||||||
|
a.r(a.r(a.r(Env.payMobOutClient_id, cn), cC), cs);
|
||||||
|
static final String payMobOutPassword =
|
||||||
|
a.r(a.r(a.r(Env.payMobOutPassword, cn), cC), cs);
|
||||||
|
static final String payMobOutUserName =
|
||||||
|
a.r(a.r(a.r(Env.payMobOutUserName, cn), cC), cs);
|
||||||
|
}
|
||||||
73
lib/constant/box_name.dart
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
class BoxName {
|
||||||
|
static const String driverID = "driverID";
|
||||||
|
static const String countryCode = "countryCode";
|
||||||
|
static const String googlaMapApp = "googlaMapApp";
|
||||||
|
|
||||||
|
static const String lang = "lang";
|
||||||
|
static const String carType = "carType";
|
||||||
|
static const String carPlate = "carPlate";
|
||||||
|
static const String statusDriverLocation = "statusDriverLocation";
|
||||||
|
static const String password = "password";
|
||||||
|
static const String arrivalTime = "arrivalTime";
|
||||||
|
static const String passwordDriver = "passwordDriver";
|
||||||
|
static const String agreeTerms = "agreeTerms";
|
||||||
|
static const String addWork = 'addWork';
|
||||||
|
static const String addHome = 'addHome';
|
||||||
|
static const String tipPercentage = 'tipPercentage';
|
||||||
|
static const String accountIdStripeConnect = "accountIdStripeConnect";
|
||||||
|
static const String faceDetectTimes = "faceDetectTimes";
|
||||||
|
static const String sosPhonePassenger = "sosPhonePassenger";
|
||||||
|
static const String sosPhoneDriver = "sosPhoneDriver";
|
||||||
|
static const String passengerID = "pasengerID";
|
||||||
|
static const String phone = "phone";
|
||||||
|
static const String phoneDriver = "phoneDriver";
|
||||||
|
static const String dobDriver = "dobDriver";
|
||||||
|
static const String sexDriver = "sexDriver";
|
||||||
|
static const String lastNameDriver = "lastNameDriver";
|
||||||
|
static const String name = "name";
|
||||||
|
static const String nameDriver = "nameDriver";
|
||||||
|
static const String driverPhotoUrl = "driverPhotoUrl";
|
||||||
|
static const String email = "email";
|
||||||
|
static const String emailDriver = "emailDriver";
|
||||||
|
static const String tokens = "tokens";
|
||||||
|
static const String tokensDrivers = "tokensDrivers";
|
||||||
|
static const String tokensPassengers = "tokensPassengers";
|
||||||
|
static const String tokenFCM = "tokenFCM";
|
||||||
|
static const String tokenDriver = "tokenDriver";
|
||||||
|
static const String cardNumber = "cardNumber";
|
||||||
|
static const String cardNumberDriver = "cardNumberDriver";
|
||||||
|
static const String cardHolderName = "cardHolderName";
|
||||||
|
static const String cardHolderNameDriver = "cardHolderNameDriver";
|
||||||
|
static const String expiryDate = "expiryDate";
|
||||||
|
static const String expiryDateDriver = "expiryDateDriver";
|
||||||
|
static const String cvvCode = "cvvCode";
|
||||||
|
static const String cvvCodeDriver = "cvvCodeDriver";
|
||||||
|
static const String passengerWalletDetails = "passengerWalletDetails";
|
||||||
|
static const String passengerWalletTotal = "passengerWalletTotal";
|
||||||
|
static const String passengerWalletFound = "passengerWalletFound";
|
||||||
|
static const String periods = 'periods';
|
||||||
|
static const String onBoarding = 'onBoarding';
|
||||||
|
static const String stripePublishableKey = 'stripe_publishableKe';
|
||||||
|
static const String apiKeyRun = 'apiKeyRun';
|
||||||
|
static const String serverAPI = 'serverAPI';
|
||||||
|
static const String secretKey = 'secretKey';
|
||||||
|
static const String basicAuthCredentials = 'basicAuthCredentials';
|
||||||
|
static const String mapAPIKEY = 'mapAPIKEY';
|
||||||
|
static const String twilloRecoveryCode = 'twilloRecoveryCode';
|
||||||
|
static const String accountSIDTwillo = 'accountSIDTwillo';
|
||||||
|
static const String authTokenTwillo = 'authTokenTwillo';
|
||||||
|
static const String chatGPTkey = 'chatGPTkey';
|
||||||
|
static const String chatGPTkeySefer = 'chatGPTkeySefer';
|
||||||
|
static const String transactionCloude = 'transactionCloude';
|
||||||
|
static const String visionApi = 'visionApi';
|
||||||
|
static const String vin = "vin";
|
||||||
|
static const String make = "make";
|
||||||
|
static const String model = "model";
|
||||||
|
static const String year = "year";
|
||||||
|
static const String expirationDate = "expirationDate";
|
||||||
|
static const String color = "color";
|
||||||
|
static const String owner = "owner";
|
||||||
|
static const String registrationDate = "registrationDate";
|
||||||
|
static const String recentLocations = 'recentLocations';
|
||||||
|
static const String tripData = 'tripData';
|
||||||
|
}
|
||||||
68
lib/constant/char_map.dart
Normal file
@@ -0,0 +1,68 @@
|
|||||||
|
Map<String, String> cn = {
|
||||||
|
"0": "3",
|
||||||
|
"1": "7",
|
||||||
|
"2": "1",
|
||||||
|
"3": "9",
|
||||||
|
"4": "0",
|
||||||
|
"5": "5",
|
||||||
|
"6": "2",
|
||||||
|
"7": "6",
|
||||||
|
"8": "4",
|
||||||
|
"9": "8"
|
||||||
|
};
|
||||||
|
Map<String, String> cs = {
|
||||||
|
"a": "q",
|
||||||
|
"b": "x",
|
||||||
|
"c": "f",
|
||||||
|
"d": "y",
|
||||||
|
"e": "j",
|
||||||
|
"f": "u",
|
||||||
|
"g": "k",
|
||||||
|
"h": "w",
|
||||||
|
"i": "o",
|
||||||
|
"j": "e",
|
||||||
|
"k": "g",
|
||||||
|
"l": "r",
|
||||||
|
"m": "n",
|
||||||
|
"n": "b",
|
||||||
|
"o": "i",
|
||||||
|
"p": "v",
|
||||||
|
"q": "a",
|
||||||
|
"r": "l",
|
||||||
|
"s": "z",
|
||||||
|
"t": "c",
|
||||||
|
"u": "h",
|
||||||
|
"v": "p",
|
||||||
|
"w": "t",
|
||||||
|
"x": "d",
|
||||||
|
"y": "s",
|
||||||
|
"z": "m"
|
||||||
|
};
|
||||||
|
Map<String, String> cC = {
|
||||||
|
"A": "Q",
|
||||||
|
"B": "X",
|
||||||
|
"C": "F",
|
||||||
|
"D": "Y",
|
||||||
|
"E": "J",
|
||||||
|
"F": "U",
|
||||||
|
"G": "K",
|
||||||
|
"H": "W",
|
||||||
|
"I": "O",
|
||||||
|
"J": "E",
|
||||||
|
"K": "G",
|
||||||
|
"L": "R",
|
||||||
|
"M": "N",
|
||||||
|
"N": "B",
|
||||||
|
"O": "I",
|
||||||
|
"P": "V",
|
||||||
|
"Q": "A",
|
||||||
|
"R": "L",
|
||||||
|
"S": "Z",
|
||||||
|
"T": "C",
|
||||||
|
"U": "H",
|
||||||
|
"V": "P",
|
||||||
|
"W": "T",
|
||||||
|
"X": "D",
|
||||||
|
"Y": "S",
|
||||||
|
"Z": "M"
|
||||||
|
};
|
||||||
14
lib/constant/colors.dart
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
class AppColor {
|
||||||
|
static const Color primaryColor = Colors.black;
|
||||||
|
static const Color secondaryColor = Colors.white;
|
||||||
|
static const Color accentColor = Colors.grey;
|
||||||
|
static const Color redColor = Color(0xFFEA4335); // Google Red
|
||||||
|
static const Color greenColor = Color(0xFF34A853); // Google Green
|
||||||
|
static const Color blueColor =
|
||||||
|
Color.fromARGB(255, 66, 135, 246); // Google Blue
|
||||||
|
static const Color yellowColor = Color(0xFFFBBC05); // Google Yellow
|
||||||
|
static Color deepPurpleAccent =
|
||||||
|
const Color.fromARGB(255, 123, 76, 254).withOpacity(0.3);
|
||||||
|
}
|
||||||
144
lib/constant/credential.dart
Normal file
@@ -0,0 +1,144 @@
|
|||||||
|
import 'dart:convert';
|
||||||
|
import 'package:crypto/crypto.dart';
|
||||||
|
|
||||||
|
import '../controller/functions/crud.dart';
|
||||||
|
import '../main.dart';
|
||||||
|
import 'box_name.dart';
|
||||||
|
import 'char_map.dart';
|
||||||
|
import 'links.dart';
|
||||||
|
|
||||||
|
class AC {
|
||||||
|
gAK() async {
|
||||||
|
if (box.read(BoxName.apiKeyRun).toString() != 'run') {
|
||||||
|
var res = await CRUD().get(link: AppLink.getApiKey, payload: {});
|
||||||
|
var decod = jsonDecode(res);
|
||||||
|
print(decod);
|
||||||
|
Map<String, dynamic> jsonData = {};
|
||||||
|
for (var i = 0; i < decod['message'].length; i++) {
|
||||||
|
String h = decod['message'][i]['hashed_key'].toString();
|
||||||
|
String retrievedString = r(r(r(h, cn), cC), cs);
|
||||||
|
|
||||||
|
await storage.write(
|
||||||
|
key: decod['message'][i]['name'].toString(),
|
||||||
|
value: retrievedString.toString(),
|
||||||
|
);
|
||||||
|
//
|
||||||
|
String name = decod['message'][i]['name'].toString();
|
||||||
|
String value = decod['message'][i]['hashed_key'].toString();
|
||||||
|
|
||||||
|
jsonData[name] = value;
|
||||||
|
}
|
||||||
|
String jsonString = json.encode(jsonData);
|
||||||
|
print(jsonString);
|
||||||
|
box.write(BoxName.apiKeyRun, 'run');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
String q(String b, String c) {
|
||||||
|
final d = utf8.encode(c);
|
||||||
|
final e = utf8.encode(b);
|
||||||
|
|
||||||
|
final f = Hmac(sha256, d);
|
||||||
|
final g = f.convert(e);
|
||||||
|
|
||||||
|
final h = g.bytes;
|
||||||
|
final i = base64Url.encode(h);
|
||||||
|
return i;
|
||||||
|
}
|
||||||
|
|
||||||
|
String j(String k, String l) {
|
||||||
|
final m = utf8.encode(l);
|
||||||
|
final n = base64Url.decode(k);
|
||||||
|
|
||||||
|
final o = Hmac(sha256, m);
|
||||||
|
final p = o.convert(n);
|
||||||
|
|
||||||
|
final q = utf8.decode(p.bytes);
|
||||||
|
return q;
|
||||||
|
}
|
||||||
|
|
||||||
|
String a(String b, String c) {
|
||||||
|
int d = b.length;
|
||||||
|
int e = d ~/ 4;
|
||||||
|
|
||||||
|
List<String> f = [];
|
||||||
|
for (int g = 0; g < d; g += e) {
|
||||||
|
int h = g + e;
|
||||||
|
if (h > d) {
|
||||||
|
h = d;
|
||||||
|
}
|
||||||
|
String i = b.substring(g, h);
|
||||||
|
f.add(i);
|
||||||
|
}
|
||||||
|
|
||||||
|
print(f);
|
||||||
|
Map<String, String> j = {};
|
||||||
|
j['birinci'] = f[4];
|
||||||
|
j['ikinci'] = f[2];
|
||||||
|
j['üçüncü'] = c + f[1];
|
||||||
|
j['dördüncü'] = f[0];
|
||||||
|
j['beş'] = f[3];
|
||||||
|
|
||||||
|
String k = '';
|
||||||
|
j.forEach((l, m) {
|
||||||
|
k += m;
|
||||||
|
});
|
||||||
|
|
||||||
|
return k;
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, String> n(String o, String c) {
|
||||||
|
String p = o.replaceAll(c, '');
|
||||||
|
|
||||||
|
Map<String, String> q = {};
|
||||||
|
q['birinci'] = p[p.length - 5] + p[p.length - 3];
|
||||||
|
q['ikinci'] = p[p.length - 1] + p[p.length - 15];
|
||||||
|
q['üçüncü'] = p[p.length - 9] + p[p.length - 12];
|
||||||
|
q['dördüncü'] = p[p.length - 11] + p[p.length - 6];
|
||||||
|
q['beş'] = p[p.length - 2] + p[p.length - 8];
|
||||||
|
|
||||||
|
return q;
|
||||||
|
}
|
||||||
|
|
||||||
|
String c(String a, Map<String, String> b) {
|
||||||
|
StringBuffer c = StringBuffer();
|
||||||
|
c.write(a);
|
||||||
|
|
||||||
|
String d = "Bl";
|
||||||
|
c.write(b[d] ?? d);
|
||||||
|
|
||||||
|
StringBuffer e = StringBuffer();
|
||||||
|
String f = c.toString();
|
||||||
|
|
||||||
|
for (int g = 0; g < f.length; g++) {
|
||||||
|
String h = f[g];
|
||||||
|
e.write(b[h] ?? h);
|
||||||
|
}
|
||||||
|
|
||||||
|
return e.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
String r(String a, Map<String, String> b) {
|
||||||
|
StringBuffer c = StringBuffer();
|
||||||
|
String d = "Bl";
|
||||||
|
int e = d.length;
|
||||||
|
|
||||||
|
for (int f = 0; f < a.length; f++) {
|
||||||
|
String g = a[f];
|
||||||
|
String h = b.keys.firstWhere(
|
||||||
|
(i) => b[i] == g,
|
||||||
|
orElse: () => g,
|
||||||
|
);
|
||||||
|
|
||||||
|
c.write(h);
|
||||||
|
}
|
||||||
|
|
||||||
|
String j = c.toString();
|
||||||
|
|
||||||
|
if (j.endsWith(d)) {
|
||||||
|
j = j.substring(0, j.length - e);
|
||||||
|
}
|
||||||
|
|
||||||
|
return j;
|
||||||
|
}
|
||||||
|
}
|
||||||
4469
lib/constant/info.dart
Normal file
225
lib/constant/links.dart
Normal file
@@ -0,0 +1,225 @@
|
|||||||
|
import '../env/env.dart';
|
||||||
|
|
||||||
|
class AppLink {
|
||||||
|
static final String server = Env.serverPHP;
|
||||||
|
static String googleMapsLink = 'https://maps.googleapis.com/maps/api/';
|
||||||
|
static String llama = 'https://api.llama-api.com/chat/completions';
|
||||||
|
static String gemini =
|
||||||
|
'https://generativelanguage.googleapis.com/v1beta3/models/text-bison-001:generateText';
|
||||||
|
|
||||||
|
static String test = "$server/test.php";
|
||||||
|
//===============firebase==========================
|
||||||
|
static String getTokens = "$server/ride/firebase/get.php";
|
||||||
|
static String getAllTokenDrivers =
|
||||||
|
"$server/ride/firebase/getALlTokenDrivers.php";
|
||||||
|
static String getAllTokenPassengers =
|
||||||
|
"$server/ride/firebase/getAllTokenPassengers.php";
|
||||||
|
static String addTokens = "$server/ride/firebase/add.php";
|
||||||
|
static String addTokensDriver = "$server/ride/firebase/addDriver.php";
|
||||||
|
|
||||||
|
//=======================Wallet===================
|
||||||
|
static String addPaymentTokenDriver =
|
||||||
|
"$ride/driverWallet/addPaymentToken.php";
|
||||||
|
static String addSeferWallet = "$ride/seferWallet/add.php";
|
||||||
|
static String getSeferWallet = "$ride/seferWallet/get.php";
|
||||||
|
static String addDrivePayment = "$ride/payment/add.php";
|
||||||
|
static String updatePaymetToPaid = "$ride/payment/updatePaymetToPaid.php";
|
||||||
|
static String wallet = '$server/ride/passengerWallet';
|
||||||
|
static String walletDriver = '$server/ride/driverWallet';
|
||||||
|
static String getAllPassengerTransaction =
|
||||||
|
"$wallet/getAllPassengerTransaction.php";
|
||||||
|
static String getWalletByPassenger = "$wallet/getWalletByPassenger.php";
|
||||||
|
static String getPassengersWallet = "$wallet/get.php";
|
||||||
|
static String getPassengerWalletArchive =
|
||||||
|
"$wallet/getPassengerWalletArchive.php";
|
||||||
|
static String addPassengersWallet = "$wallet/add.php";
|
||||||
|
static String deletePassengersWallet = "$wallet/delete.php";
|
||||||
|
static String updatePassengersWallet = "$wallet/update.php";
|
||||||
|
|
||||||
|
static String getWalletByDriver = "$walletDriver/getWalletByDriver.php";
|
||||||
|
static String getDriversWallet = "$walletDriver/get.php";
|
||||||
|
static String addDriversWalletPoints = "$walletDriver/add.php";
|
||||||
|
static String deleteDriversWallet = "$walletDriver/delete.php";
|
||||||
|
static String updateDriversWallet = "$walletDriver/update.php";
|
||||||
|
|
||||||
|
//=======================promo===================ride.mobile-app.store/ride/promo/get.php
|
||||||
|
static String promo = '$server/ride/promo';
|
||||||
|
static String getPassengersPromo = "$promo/get.php";
|
||||||
|
static String getPromoBytody = "$promo/getPromoBytody.php";
|
||||||
|
static String addPassengersPromo = "$promo/add.php";
|
||||||
|
static String deletePassengersPromo = "$promo/delete.php";
|
||||||
|
static String updatePassengersPromo = "$promo/update.php";
|
||||||
|
|
||||||
|
////=======================cancelRide===================
|
||||||
|
static String ride = '$server/ride';
|
||||||
|
static String addCancelRideFromPassenger = "$server/ride/cancelRide/add.php";
|
||||||
|
static String cancelRide = "$server/ride/cancelRide/get.php";
|
||||||
|
//-----------------ridessss------------------
|
||||||
|
static String addRides = "$ride/rides/add.php";
|
||||||
|
static String getRides = "$ride/rides/get.php";
|
||||||
|
static String getRideOrderID = "$ride/rides/getRideOrderID.php";
|
||||||
|
static String getRideStatus = "$ride/rides/getRideStatus.php";
|
||||||
|
static String getRideStatusBegin = "$ride/rides/getRideStatusBegin.php";
|
||||||
|
static String getRideStatusFromStartApp =
|
||||||
|
"$ride/rides/getRideStatusFromStartApp.php";
|
||||||
|
static String updateRides = "$ride/rides/update.php";
|
||||||
|
static String updateStausFromSpeed = "$ride/rides/updateStausFromSpeed.php";
|
||||||
|
static String deleteRides = "$ride/rides/delete.php";
|
||||||
|
|
||||||
|
//-----------------DriverPayment------------------
|
||||||
|
static String adddriverScam = "$ride/driver_scam/add.php";
|
||||||
|
static String getdriverScam = "$ride/driver_scam/get.php";
|
||||||
|
|
||||||
|
/////////---getKazanPercent===////////////
|
||||||
|
static String getKazanPercent = "$ride/kazan/get.php";
|
||||||
|
static String addKazanPercent = "$ride/kazan/add.php";
|
||||||
|
|
||||||
|
////-----------------DriverPayment------------------
|
||||||
|
static String addDriverpayment = "$ride/payment/add.php";
|
||||||
|
static String addDriverPaymentPoints = "$ride/driverPayment/add.php";
|
||||||
|
static String getDriverPaymentPoints = "$ride/driverWallet/get.php";
|
||||||
|
static String getDriverpaymentToday = "$ride/payment/get.php";
|
||||||
|
static String getCountRide = "$ride/payment/getCountRide.php";
|
||||||
|
static String getAllPaymentFromRide = "$ride/payment/getAllPayment.php";
|
||||||
|
static String getAllPaymentVisa = "$ride/payment/getAllPaymentVisa.php";
|
||||||
|
|
||||||
|
//-----------------Passenger NotificationCaptain------------------
|
||||||
|
static String addNotificationPassenger =
|
||||||
|
"$ride/notificationPassenger/add.php";
|
||||||
|
static String getNotificationPassenger =
|
||||||
|
"$ride/notificationPassenger/get.php";
|
||||||
|
static String updateNotificationPassenger =
|
||||||
|
"$ride/notificationPassenger/update.php";
|
||||||
|
//-----------------Driver NotificationCaptain------------------
|
||||||
|
static String addNotificationCaptain = "$ride/notificationCaptain/add.php";
|
||||||
|
static String addWaitingRide = "$ride/notificationCaptain/addWaitingRide.php";
|
||||||
|
static String getRideWaiting = "$ride/notificationCaptain/getRideWaiting.php";
|
||||||
|
static String getNotificationCaptain = "$ride/notificationCaptain/get.php";
|
||||||
|
static String updateNotificationCaptain =
|
||||||
|
"$ride/notificationCaptain/update.php";
|
||||||
|
static String deleteNotificationCaptain =
|
||||||
|
"$ride/notificationCaptain/delete.php";
|
||||||
|
//-----------------Api Key------------------
|
||||||
|
static String addApiKey = "$ride/apiKey/add.php";
|
||||||
|
static String getApiKey = "$ride/apiKey/get.php";
|
||||||
|
static String getCnMap = "$server/auth/cnMap.php";
|
||||||
|
static String updateApiKey = "$ride/apiKey/update.php";
|
||||||
|
static String deleteApiKey = "$ride/apiKey/delete.php";
|
||||||
|
|
||||||
|
//-----------------Feed Back------------------
|
||||||
|
static String addFeedBack = "$ride/feedBack/add.php";
|
||||||
|
static String getFeedBack = "$ride/feedBack/get.php";
|
||||||
|
static String updateFeedBack = "$ride/feedBack/updateFeedBack.php";
|
||||||
|
|
||||||
|
//-----------------Tips------------------
|
||||||
|
static String addTips = "$ride/tips/add.php";
|
||||||
|
static String getTips = "$ride/tips/get.php";
|
||||||
|
static String updateTips = "$ride/tips/update.php";
|
||||||
|
|
||||||
|
//-----------------Help Center------------------
|
||||||
|
static String addhelpCenter = "$ride/helpCenter/add.php";
|
||||||
|
static String gethelpCenter = "$ride/helpCenter/get.php";
|
||||||
|
static String getByIdhelpCenter = "$ride/helpCenter/getById.php";
|
||||||
|
static String updatehelpCenter = "$ride/helpCenter/update.php";
|
||||||
|
static String deletehelpCenter = "$ride/helpCenter/delete.php";
|
||||||
|
|
||||||
|
//-----------------license------------------
|
||||||
|
static String addLicense = "$ride/license/add.php";
|
||||||
|
static String getLicense = "$ride/license/get.php";
|
||||||
|
static String updateLicense = "$ride/license/updateFeedBack.php";
|
||||||
|
//-----------------RegisrationCar------------------
|
||||||
|
static String addRegisrationCar = "$ride/RegisrationCar/add.php";
|
||||||
|
static String getRegisrationCar = "$ride/RegisrationCar/get.php";
|
||||||
|
static String updateRegisrationCar = "$ride/RegisrationCar/update.php";
|
||||||
|
|
||||||
|
//-----------------DriverOrder------------------
|
||||||
|
|
||||||
|
static String addDriverOrder = "$ride/driver_order/add.php";
|
||||||
|
static String getDriverOrder = "$ride/driver_order/get.php";
|
||||||
|
static String getOrderCancelStatus =
|
||||||
|
"$ride/driver_order/getOrderCancelStatus.php";
|
||||||
|
static String updateDriverOrder = "$ride/driver_order/update.php";
|
||||||
|
static String deleteDriverOrder = "$ride/driver_order/delete.php";
|
||||||
|
|
||||||
|
// =====================================
|
||||||
|
static String addRateToPassenger = "$ride/rate/add.php";
|
||||||
|
static String addRateToDriver = "$ride/rate/addRateToDriver.php";
|
||||||
|
static String getDriverRate = "$ride/rate/getDriverRate.php";
|
||||||
|
static String getPassengerRate = "$ride/rate/getPassengerRate.php";
|
||||||
|
|
||||||
|
////////////////emails ============//
|
||||||
|
static String sendEmailToPassengerForTripDetails =
|
||||||
|
"$ride/rides/emailToPassengerTripDetail.php";
|
||||||
|
static String sendEmailToDrivertransaction =
|
||||||
|
"https://api.sefer.live/sefer/Admin/sendEmailToDrivertransaction.php";
|
||||||
|
|
||||||
|
// ===========================================
|
||||||
|
static String pathImage = "$server/upload/types/";
|
||||||
|
static String uploadImage = "$server/uploadImage.php";
|
||||||
|
static String uploadImage1 = "$server/uploadImage1.php";
|
||||||
|
static String uploadImagePortrate = "$server/uploadImagePortrate.php";
|
||||||
|
static String uploadImageType = "$server/uploadImageType.php";
|
||||||
|
//=============egypt documents ==============
|
||||||
|
static String uploadEgyptidFront =
|
||||||
|
"$server/EgyptDocuments/uploadEgyptidFront.php";
|
||||||
|
static String uploadEgypt = "$server/uploadEgypt.php";
|
||||||
|
|
||||||
|
//==================certifcate==========
|
||||||
|
static String location = '$server/ride/location';
|
||||||
|
static String getCarsLocationByPassenger = "$location/get.php";
|
||||||
|
static String getFemalDriverLocationByPassenger =
|
||||||
|
"$location/getFemalDriver.php";
|
||||||
|
static String getDriverCarsLocationToPassengerAfterApplied =
|
||||||
|
"$location/getDriverCarsLocationToPassengerAfterApplied.php";
|
||||||
|
static String addCarsLocationByPassenger = "$location/add.php";
|
||||||
|
static String deleteCarsLocationByPassenger = "$location/delete.php";
|
||||||
|
static String updateCarsLocationByPassenger = "$location/update.php";
|
||||||
|
static String getTotalDriverDuration = "$location/getTotalDriverDuration.php";
|
||||||
|
static String getTotalDriverDurationToday =
|
||||||
|
"$location/getTotalDriverDurationToday.php";
|
||||||
|
|
||||||
|
//==================Blog=============
|
||||||
|
static String profile = '$server/ride/profile';
|
||||||
|
static String getprofile = "$profile/get.php";
|
||||||
|
static String getCaptainProfile = "$profile/getCaptainProfile.php";
|
||||||
|
static String addprofile = "$profile/add.php";
|
||||||
|
static String deleteprofile = "$profile/delete.php";
|
||||||
|
static String updateprofile = "$profile/update.php";
|
||||||
|
|
||||||
|
//===================Auth============
|
||||||
|
|
||||||
|
static String auth = '$server/auth';
|
||||||
|
static String login = "$auth/login.php";
|
||||||
|
static String signUp = "$auth/signup.php";
|
||||||
|
static String sendVerifyEmail = "$auth/sendVerifyEmail.php";
|
||||||
|
static String passengerRemovedAccountEmail =
|
||||||
|
"$auth/passengerRemovedAccountEmail.php";
|
||||||
|
static String verifyEmail = "$auth/verifyEmail.php";
|
||||||
|
//===================Auth Captin============
|
||||||
|
static String authCaptin = '$server/auth/captin';
|
||||||
|
static String loginCaptin = "$authCaptin/login.php";
|
||||||
|
static String signUpCaptin = "$authCaptin/register.php";
|
||||||
|
static String sendVerifyEmailCaptin = "$authCaptin/sendVerifyEmail.php";
|
||||||
|
static String verifyEmailCaptin = "$authCaptin/verifyEmail.php";
|
||||||
|
static String removeUser = "$authCaptin/removeAccount.php";
|
||||||
|
static String deletecaptainAccounr = "$authCaptin/deletecaptainAccounr.php";
|
||||||
|
static String updateAccountBank = "$authCaptin/updateAccountBank.php";
|
||||||
|
static String getAccount = "$authCaptin/getAccount.php";
|
||||||
|
|
||||||
|
//===================Admin Captin============
|
||||||
|
|
||||||
|
static String getPassengerDetailsByPassengerID =
|
||||||
|
"$server/Admin/getPassengerDetailsByPassengerID.php";
|
||||||
|
static String getPassengerDetails = "$server/Admin/getPassengerDetails.php";
|
||||||
|
static String getPassengerbyEmail = "$server/Admin/getPassengerbyEmail.php";
|
||||||
|
static String addAdminUser = "$server/Admin/adminUser/add.php";
|
||||||
|
static String getdashbord = "$server/Admin/dashbord.php";
|
||||||
|
static String getAdminUser = "$server/Admin/adminUser/get.php";
|
||||||
|
static String getCaptainDetailsByEmailOrIDOrPhone =
|
||||||
|
"$server/Admin/AdminCaptain/getCaptainDetailsByEmailOrIDOrPhone.php";
|
||||||
|
static String getCaptainDetails = "$server/Admin/AdminCaptain/get.php";
|
||||||
|
static String getVisaForEachDriver = "$server/Admin/getVisaForEachDriver.php";
|
||||||
|
static String getRidesPerMonth =
|
||||||
|
"$server/Admin/AdminRide/getRidesPerMonth.php";
|
||||||
|
static String getRidesDetails = "$server/Admin/AdminRide/get.php";
|
||||||
|
}
|
||||||
80
lib/constant/style.dart
Normal file
@@ -0,0 +1,80 @@
|
|||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:google_fonts/google_fonts.dart';
|
||||||
|
|
||||||
|
import '../main.dart';
|
||||||
|
import 'box_name.dart';
|
||||||
|
import 'colors.dart';
|
||||||
|
|
||||||
|
class AppStyle {
|
||||||
|
static TextStyle headTitle = TextStyle(
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
fontSize: 40,
|
||||||
|
color: AppColor.accentColor,
|
||||||
|
fontFamily: box.read(BoxName.lang) == 'en'
|
||||||
|
? GoogleFonts.josefinSans().fontFamily
|
||||||
|
: box.read(BoxName.lang) == 'ar'
|
||||||
|
? GoogleFonts.habibi().fontFamily
|
||||||
|
: GoogleFonts.josefinSans().fontFamily);
|
||||||
|
static TextStyle headTitle2 = TextStyle(
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
fontSize: 26,
|
||||||
|
color: AppColor.primaryColor,
|
||||||
|
fontFamily: box.read(BoxName.lang) == 'en'
|
||||||
|
? GoogleFonts.josefinSans().fontFamily
|
||||||
|
: box.read(BoxName.lang) == 'ar'
|
||||||
|
? GoogleFonts.amiri().fontFamily
|
||||||
|
: GoogleFonts.josefinSans().fontFamily);
|
||||||
|
static TextStyle title = TextStyle(
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
fontSize: 16,
|
||||||
|
color: AppColor.primaryColor,
|
||||||
|
fontFamily: box.read(BoxName.lang) == 'en'
|
||||||
|
? GoogleFonts.josefinSans().fontFamily
|
||||||
|
: box.read(BoxName.lang) == 'ar'
|
||||||
|
? GoogleFonts.amiri().fontFamily
|
||||||
|
: GoogleFonts.josefinSans().fontFamily);
|
||||||
|
static TextStyle subtitle = TextStyle(
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
fontSize: 13,
|
||||||
|
color: AppColor.primaryColor,
|
||||||
|
fontFamily: box.read(BoxName.lang) == 'en'
|
||||||
|
? GoogleFonts.josefinSans().fontFamily
|
||||||
|
: box.read(BoxName.lang) == 'ar'
|
||||||
|
? GoogleFonts.amiri().fontFamily
|
||||||
|
: GoogleFonts.josefinSans().fontFamily);
|
||||||
|
static TextStyle number = TextStyle(
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
fontSize: 14,
|
||||||
|
color: AppColor.primaryColor,
|
||||||
|
fontFamily: GoogleFonts.averiaSansLibre().fontFamily);
|
||||||
|
|
||||||
|
static BoxDecoration boxDecoration = const BoxDecoration(
|
||||||
|
borderRadius: BorderRadius.all(Radius.circular(12)),
|
||||||
|
color: AppColor.secondaryColor,
|
||||||
|
boxShadow: [
|
||||||
|
BoxShadow(
|
||||||
|
color: AppColor.accentColor,
|
||||||
|
offset: Offset(-3, -3),
|
||||||
|
blurRadius: 0,
|
||||||
|
spreadRadius: 0,
|
||||||
|
blurStyle: BlurStyle.outer),
|
||||||
|
BoxShadow(
|
||||||
|
color: AppColor.accentColor,
|
||||||
|
offset: Offset(3, 3),
|
||||||
|
blurRadius: 0,
|
||||||
|
spreadRadius: 0,
|
||||||
|
blurStyle: BlurStyle.outer)
|
||||||
|
]);
|
||||||
|
static BoxDecoration boxDecoration1 = const BoxDecoration(
|
||||||
|
boxShadow: [
|
||||||
|
BoxShadow(
|
||||||
|
color: AppColor.accentColor, blurRadius: 5, offset: Offset(2, 4)),
|
||||||
|
BoxShadow(
|
||||||
|
color: AppColor.accentColor, blurRadius: 5, offset: Offset(-2, -2))
|
||||||
|
],
|
||||||
|
color: AppColor.secondaryColor,
|
||||||
|
borderRadius: BorderRadius.all(
|
||||||
|
Radius.elliptical(15, 30),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
9
lib/constant/table_names.dart
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
class TableName {
|
||||||
|
static const String placesFavorite = "placesFavorite";
|
||||||
|
static const String recentLocations = "recentLocations";
|
||||||
|
static const String carLocations = "carLocations";
|
||||||
|
static const String driverOrdersRefuse = "driverOrdersRefuse";
|
||||||
|
static const String rideLocation = "rideLocation";
|
||||||
|
static const String faceDetectTimes = "faceDetectTimes";
|
||||||
|
static const String captainNotification = "captainNotification";
|
||||||
|
}
|
||||||
105
lib/controller/admin/captain_admin_controller.dart
Normal file
@@ -0,0 +1,105 @@
|
|||||||
|
import 'dart:convert';
|
||||||
|
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:get/get.dart';
|
||||||
|
import 'package:local_auth/local_auth.dart';
|
||||||
|
|
||||||
|
import '../../constant/colors.dart';
|
||||||
|
import '../../constant/links.dart';
|
||||||
|
import '../functions/crud.dart';
|
||||||
|
|
||||||
|
class CaptainAdminController extends GetxController {
|
||||||
|
bool isLoading = false;
|
||||||
|
Map captainData = {};
|
||||||
|
Map captain = {};
|
||||||
|
final captainController = TextEditingController();
|
||||||
|
final captainPrizeController = TextEditingController();
|
||||||
|
final titleNotify = TextEditingController();
|
||||||
|
final bodyNotify = TextEditingController();
|
||||||
|
final formCaptainKey = GlobalKey<FormState>();
|
||||||
|
final formCaptainPrizeKey = GlobalKey<FormState>();
|
||||||
|
|
||||||
|
Future getCaptainCount() async {
|
||||||
|
isLoading = true;
|
||||||
|
update();
|
||||||
|
var res = await CRUD().get(link: AppLink.getCaptainDetails, payload: {});
|
||||||
|
var d = jsonDecode(res);
|
||||||
|
if (d['status'] == 'success') {
|
||||||
|
captainData = d;
|
||||||
|
}
|
||||||
|
|
||||||
|
isLoading = false;
|
||||||
|
update();
|
||||||
|
}
|
||||||
|
|
||||||
|
Future addCaptainPrizeToWallet() async {
|
||||||
|
String? paymentId;
|
||||||
|
//todo link to add wallet to captain
|
||||||
|
for (var i = 0; i < captainData['message'].length; i++) {
|
||||||
|
await CRUD().post(link: AppLink.addDriverPaymentPoints, payload: {
|
||||||
|
'driverID': captainData['message'][i]['id'],
|
||||||
|
'amount': captainPrizeController.text,
|
||||||
|
'paymentMethod': 'Prize',
|
||||||
|
}).then((value) {
|
||||||
|
paymentId = value['message'].toString();
|
||||||
|
});
|
||||||
|
await CRUD().post(link: AppLink.addPassengersWallet, payload: {
|
||||||
|
'driverID': captainData['message'][i]['id'],
|
||||||
|
'amount': captainPrizeController.text,
|
||||||
|
'paymentMethod': 'Prize',
|
||||||
|
'paymentID': paymentId.toString(),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
Get.back();
|
||||||
|
}
|
||||||
|
|
||||||
|
void addCaptainsPrizeToWalletSecure() async {
|
||||||
|
try {
|
||||||
|
// Check if local authentication is available
|
||||||
|
bool isAvailable = await LocalAuthentication().isDeviceSupported();
|
||||||
|
if (isAvailable) {
|
||||||
|
// Authenticate the user
|
||||||
|
bool didAuthenticate = await LocalAuthentication().authenticate(
|
||||||
|
localizedReason: 'Use Touch ID or Face ID to confirm payment',
|
||||||
|
);
|
||||||
|
if (didAuthenticate) {
|
||||||
|
// User authenticated successfully, proceed with payment
|
||||||
|
await addCaptainPrizeToWallet();
|
||||||
|
Get.snackbar('Prize Added', '', backgroundColor: AppColor.greenColor);
|
||||||
|
} else {
|
||||||
|
// Authentication failed, handle accordingly
|
||||||
|
Get.snackbar('Authentication failed', '',
|
||||||
|
backgroundColor: AppColor.redColor);
|
||||||
|
// 'Authentication failed');
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// Local authentication not available, proceed with payment without authentication
|
||||||
|
await addCaptainPrizeToWallet();
|
||||||
|
Get.snackbar('Prize Added', '', backgroundColor: AppColor.greenColor);
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
rethrow;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Future getCaptains() async {
|
||||||
|
var res = await CRUD()
|
||||||
|
.get(link: AppLink.getCaptainDetailsByEmailOrIDOrPhone, payload: {
|
||||||
|
'driver_id': captainController.text,
|
||||||
|
'driverEmail': captainController.text,
|
||||||
|
'driverPhone': captainController.text,
|
||||||
|
});
|
||||||
|
var d = jsonDecode(res);
|
||||||
|
if (d['status'] == 'success') {
|
||||||
|
captain = d;
|
||||||
|
}
|
||||||
|
update();
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void onInit() {
|
||||||
|
getCaptainCount();
|
||||||
|
super.onInit();
|
||||||
|
}
|
||||||
|
}
|
||||||
38
lib/controller/admin/dashboard_controller.dart
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
import 'dart:convert';
|
||||||
|
|
||||||
|
import 'package:get/get.dart';
|
||||||
|
import 'package:sefer_admin1/constant/links.dart';
|
||||||
|
import 'package:sefer_admin1/controller/functions/crud.dart';
|
||||||
|
|
||||||
|
import '../../constant/api_key.dart';
|
||||||
|
|
||||||
|
class DashboardController extends GetxController {
|
||||||
|
bool isLoading = false;
|
||||||
|
List dashbord = [];
|
||||||
|
int creditSMS = 0;
|
||||||
|
Future getDashBoard() async {
|
||||||
|
isLoading = true;
|
||||||
|
update();
|
||||||
|
var res = await CRUD().get(link: AppLink.getdashbord, payload: {});
|
||||||
|
if (res != 'failure') {
|
||||||
|
var d = jsonDecode(res);
|
||||||
|
dashbord = d['message'];
|
||||||
|
isLoading = false;
|
||||||
|
update();
|
||||||
|
}
|
||||||
|
var res2 = await CRUD().kazumiSMS(
|
||||||
|
link: 'https://sms.kazumi.me/api/sms/check-credit',
|
||||||
|
payload: {"username": "Sefer", "password": AK.smsPasswordEgypt},
|
||||||
|
);
|
||||||
|
|
||||||
|
creditSMS = res2['credit'];
|
||||||
|
|
||||||
|
update();
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void onInit() {
|
||||||
|
getDashBoard();
|
||||||
|
super.onInit();
|
||||||
|
}
|
||||||
|
}
|
||||||
108
lib/controller/admin/passenger_admin_controller.dart
Normal file
@@ -0,0 +1,108 @@
|
|||||||
|
import 'dart:convert';
|
||||||
|
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:get/get.dart';
|
||||||
|
import 'package:local_auth/local_auth.dart';
|
||||||
|
|
||||||
|
import '../../constant/colors.dart';
|
||||||
|
import '../../constant/links.dart';
|
||||||
|
import '../functions/crud.dart';
|
||||||
|
|
||||||
|
class PassengerAdminController extends GetxController {
|
||||||
|
bool isLoading = false;
|
||||||
|
Map passengersData = {};
|
||||||
|
Map passengers = {};
|
||||||
|
double height = 150;
|
||||||
|
final formPassKey = GlobalKey<FormState>();
|
||||||
|
final formPrizeKey = GlobalKey<FormState>();
|
||||||
|
final titleNotify = TextEditingController();
|
||||||
|
final bodyNotify = TextEditingController();
|
||||||
|
final passengerController = TextEditingController();
|
||||||
|
final passengerPrizeController = TextEditingController();
|
||||||
|
|
||||||
|
Future getPassengerCount() async {
|
||||||
|
isLoading = true;
|
||||||
|
update();
|
||||||
|
var res = await CRUD().get(link: AppLink.getPassengerDetails, payload: {});
|
||||||
|
var d = jsonDecode(res);
|
||||||
|
if (d['status'] == 'success') {
|
||||||
|
passengersData = d;
|
||||||
|
}
|
||||||
|
|
||||||
|
isLoading = false;
|
||||||
|
update();
|
||||||
|
}
|
||||||
|
|
||||||
|
Future addPassengerPrizeToWallet() async {
|
||||||
|
for (var i = 0; i < passengersData['message'].length; i++) {
|
||||||
|
await CRUD().post(link: AppLink.addPassengersWallet, payload: {
|
||||||
|
'passenger_id': passengersData['message'][i]['id'],
|
||||||
|
'balance': passengerPrizeController.text,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
Get.back();
|
||||||
|
}
|
||||||
|
|
||||||
|
void addPassengerPrizeToWalletSecure() async {
|
||||||
|
try {
|
||||||
|
// Check if local authentication is available
|
||||||
|
bool isAvailable = await LocalAuthentication().isDeviceSupported();
|
||||||
|
if (isAvailable) {
|
||||||
|
// Authenticate the user
|
||||||
|
bool didAuthenticate = await LocalAuthentication().authenticate(
|
||||||
|
localizedReason: 'Use Touch ID or Face ID to confirm payment',
|
||||||
|
);
|
||||||
|
if (didAuthenticate) {
|
||||||
|
// User authenticated successfully, proceed with payment
|
||||||
|
await addPassengerPrizeToWallet();
|
||||||
|
Get.snackbar('Prize Added', '', backgroundColor: AppColor.greenColor);
|
||||||
|
} else {
|
||||||
|
// Authentication failed, handle accordingly
|
||||||
|
Get.snackbar('Authentication failed', '',
|
||||||
|
backgroundColor: AppColor.redColor);
|
||||||
|
// 'Authentication failed');
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// Local authentication not available, proceed with payment without authentication
|
||||||
|
await addPassengerPrizeToWallet();
|
||||||
|
Get.snackbar('Prize Added', '', backgroundColor: AppColor.greenColor);
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
rethrow;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Future getPassengers() async {
|
||||||
|
var res = await CRUD().get(link: AppLink.getPassengerbyEmail, payload: {
|
||||||
|
'passengerEmail': passengerController.text,
|
||||||
|
'passengerId': passengerController.text,
|
||||||
|
'passengerphone': passengerController.text,
|
||||||
|
});
|
||||||
|
var d = jsonDecode(res);
|
||||||
|
if (d['status'] == 'success') {
|
||||||
|
passengers = d;
|
||||||
|
}
|
||||||
|
update();
|
||||||
|
}
|
||||||
|
|
||||||
|
changeHeight() {
|
||||||
|
if (passengers.isEmpty) {
|
||||||
|
height = 0;
|
||||||
|
update();
|
||||||
|
}
|
||||||
|
height = 150;
|
||||||
|
update();
|
||||||
|
}
|
||||||
|
|
||||||
|
void clearPlaces() {
|
||||||
|
passengers = {};
|
||||||
|
update();
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void onInit() {
|
||||||
|
getPassengerCount();
|
||||||
|
super.onInit();
|
||||||
|
}
|
||||||
|
}
|
||||||
73
lib/controller/admin/ride_admin_controller.dart
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
import 'dart:convert';
|
||||||
|
|
||||||
|
import 'package:fl_chart/fl_chart.dart';
|
||||||
|
import 'package:get/get.dart';
|
||||||
|
|
||||||
|
import '../../constant/links.dart';
|
||||||
|
import '../../models/model/admin/monthly_ride.dart';
|
||||||
|
import '../functions/crud.dart';
|
||||||
|
|
||||||
|
class RideAdminController extends GetxController {
|
||||||
|
bool isLoading = false;
|
||||||
|
late List<MonthlyDataModel> rideData;
|
||||||
|
late Map<String, dynamic> jsonResponse;
|
||||||
|
List<dynamic> ridesDetails = [];
|
||||||
|
var chartData;
|
||||||
|
// late List<ChartDataS> chartDatasync;
|
||||||
|
Future getRidesAdminDash() async {
|
||||||
|
isLoading = true;
|
||||||
|
update();
|
||||||
|
var res = await CRUD().get(link: AppLink.getRidesPerMonth, payload: {});
|
||||||
|
jsonResponse = jsonDecode(res);
|
||||||
|
rideData = (jsonResponse['message'] as List)
|
||||||
|
.map((item) => MonthlyDataModel.fromJson(item))
|
||||||
|
.toList();
|
||||||
|
|
||||||
|
chartData = rideData
|
||||||
|
.map((data) => FlSpot(data.day.toDouble(), data.ridesCount.toDouble()))
|
||||||
|
.toList();
|
||||||
|
|
||||||
|
// chartDatasync = (jsonResponse['message'] as List)
|
||||||
|
// .map((item) => ChartDataS(
|
||||||
|
// item['year'],
|
||||||
|
// item['month'],
|
||||||
|
// item['day'],
|
||||||
|
// item['rides_count'],
|
||||||
|
// ))
|
||||||
|
// .toList();
|
||||||
|
isLoading = false;
|
||||||
|
update();
|
||||||
|
}
|
||||||
|
|
||||||
|
Future getRidesDetails() async {
|
||||||
|
// isLoading = true;
|
||||||
|
// update();
|
||||||
|
var res = await CRUD().get(link: AppLink.getRidesDetails, payload: {});
|
||||||
|
|
||||||
|
var d = jsonDecode(res);
|
||||||
|
ridesDetails = d['message'];
|
||||||
|
|
||||||
|
// isLoading = false;
|
||||||
|
// update();
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void onInit() async {
|
||||||
|
List<Future> initializationTasks = [
|
||||||
|
getRidesAdminDash(),
|
||||||
|
getRidesDetails(),
|
||||||
|
];
|
||||||
|
// cameras = await availableCameras();
|
||||||
|
await Future.wait(initializationTasks);
|
||||||
|
super.onInit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// class ChartDataS {
|
||||||
|
// ChartDataS(this.year, this.month, this.day, this.ridesCount);
|
||||||
|
|
||||||
|
// final int year;
|
||||||
|
// final int month;
|
||||||
|
// final int day;
|
||||||
|
// final int ridesCount;
|
||||||
|
// }
|
||||||
189
lib/controller/admin/wallet_admin_controller.dart
Normal file
@@ -0,0 +1,189 @@
|
|||||||
|
import 'dart:async';
|
||||||
|
import 'dart:convert';
|
||||||
|
|
||||||
|
import 'package:get/get.dart';
|
||||||
|
import 'package:http/http.dart' as http;
|
||||||
|
import '../../constant/api_key.dart';
|
||||||
|
import '../../constant/box_name.dart';
|
||||||
|
import '../../constant/links.dart';
|
||||||
|
import '../../main.dart';
|
||||||
|
import '../../print.dart';
|
||||||
|
import '../functions/crud.dart';
|
||||||
|
|
||||||
|
class WalletAdminController extends GetxController {
|
||||||
|
bool isLoading = false;
|
||||||
|
|
||||||
|
late Map<String, dynamic> jsonResponse;
|
||||||
|
List<dynamic> walletDetails = [];
|
||||||
|
List driversWalletPoints = [];
|
||||||
|
|
||||||
|
@override
|
||||||
|
void onInit() {
|
||||||
|
getWalletForEachDriverToPay();
|
||||||
|
super.onInit();
|
||||||
|
}
|
||||||
|
|
||||||
|
Future getWalletAdminDash() async {
|
||||||
|
isLoading = true;
|
||||||
|
update();
|
||||||
|
var res = await CRUD().get(link: AppLink.getRidesPerMonth, payload: {});
|
||||||
|
jsonResponse = jsonDecode(res);
|
||||||
|
}
|
||||||
|
|
||||||
|
Future payToBankDriverAll() async {
|
||||||
|
for (var i = 0; i < driversWalletPoints.length; i++) {
|
||||||
|
String token = await getToken();
|
||||||
|
await Future.delayed(const Duration(seconds: 1));
|
||||||
|
try {
|
||||||
|
await payToDriverBankAccount(
|
||||||
|
token,
|
||||||
|
driversWalletPoints[i]['total_amount'].toString(),
|
||||||
|
driversWalletPoints[i]['accountBank'].toString(),
|
||||||
|
driversWalletPoints[i]['bankCode'].toString(),
|
||||||
|
driversWalletPoints[i]['name_arabic'].toString(),
|
||||||
|
driversWalletPoints[i]['driverID'].toString(),
|
||||||
|
driversWalletPoints[i]['phone'].toString(),
|
||||||
|
driversWalletPoints[i]['email'].toString(),
|
||||||
|
);
|
||||||
|
await Future.delayed(const Duration(seconds: 3));
|
||||||
|
} on FormatException catch (e) {
|
||||||
|
// Handle the error or rethrow the exception as needed
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<void> payToDriverBankAccount(
|
||||||
|
String token,
|
||||||
|
String amount,
|
||||||
|
String bankCardNumber,
|
||||||
|
String bankCode,
|
||||||
|
String name,
|
||||||
|
String driverId,
|
||||||
|
String phone,
|
||||||
|
String email) async {
|
||||||
|
var headers = {
|
||||||
|
'Authorization': 'Bearer $token',
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
};
|
||||||
|
|
||||||
|
var body = jsonEncode({
|
||||||
|
"issuer": "bank_card",
|
||||||
|
"amount": amount,
|
||||||
|
"full_name": name,
|
||||||
|
"bank_card_number": bankCardNumber,
|
||||||
|
"bank_code": bankCode,
|
||||||
|
"bank_transaction_type": "cash_transfer"
|
||||||
|
});
|
||||||
|
|
||||||
|
var response = await http.post(
|
||||||
|
Uri.parse(
|
||||||
|
'https://stagingpayouts.paymobsolutions.com/api/secure/disburse/'),
|
||||||
|
headers: headers,
|
||||||
|
body: body);
|
||||||
|
|
||||||
|
if (response.statusCode == 200) {
|
||||||
|
var d = jsonDecode(response.body);
|
||||||
|
|
||||||
|
if (d['status_description'] ==
|
||||||
|
"Transaction received and validated successfully. Dispatched for being processed by the bank") {
|
||||||
|
await addPayment('payFromSeferToDriver', driverId,
|
||||||
|
((-1) * double.parse(amount)).toString());
|
||||||
|
await addSeferWallet('payFromSeferToDriver', driverId,
|
||||||
|
((-1) * double.parse(amount)).toString());
|
||||||
|
await updatePaymentToPaid(driverId);
|
||||||
|
await sendEmail(driverId, amount, phone, name, bankCardNumber, email);
|
||||||
|
}
|
||||||
|
} else {}
|
||||||
|
}
|
||||||
|
|
||||||
|
// String paymentToken = '';
|
||||||
|
Future<String> generateToken(String amount) async {
|
||||||
|
var res = await CRUD().post(link: AppLink.addPaymentTokenDriver, payload: {
|
||||||
|
'driverID': box.read(BoxName.driverID).toString(),
|
||||||
|
'amount': amount.toString(),
|
||||||
|
});
|
||||||
|
var d = jsonDecode(res);
|
||||||
|
return d['message'];
|
||||||
|
}
|
||||||
|
|
||||||
|
Future sendEmail(
|
||||||
|
String driverId, amount, phone, name, bankCardNumber, email) async {
|
||||||
|
await CRUD().sendEmail(AppLink.sendEmailToDrivertransaction, {
|
||||||
|
"driverID": driverId,
|
||||||
|
"total_amount": amount,
|
||||||
|
"phone": phone,
|
||||||
|
"name_arabic": name,
|
||||||
|
"accountBank": bankCardNumber,
|
||||||
|
"email": email
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
Future addSeferWallet(
|
||||||
|
String paymentMethod, String driverID, String point) async {
|
||||||
|
var seferToken = await generateToken(point.toString());
|
||||||
|
await CRUD().post(link: AppLink.addSeferWallet, payload: {
|
||||||
|
'amount': point.toString(),
|
||||||
|
'paymentMethod': paymentMethod,
|
||||||
|
'passengerId': 'driver',
|
||||||
|
'token': seferToken,
|
||||||
|
'driverId': driverID.toString(),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
Future addPayment(
|
||||||
|
String paymentMethod, String driverID, String amount) async {
|
||||||
|
var paymentToken =
|
||||||
|
await generateToken(((double.parse(amount))).toStringAsFixed(0));
|
||||||
|
await CRUD().post(link: AppLink.addDrivePayment, payload: {
|
||||||
|
'rideId': DateTime.now().toIso8601String(),
|
||||||
|
'amount': ((double.parse(amount))).toStringAsFixed(0),
|
||||||
|
'payment_method': paymentMethod,
|
||||||
|
'passengerID': 'myself',
|
||||||
|
'token': paymentToken,
|
||||||
|
'driverID': driverID.toString(),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
Future updatePaymentToPaid(String driverID) async {
|
||||||
|
await CRUD().post(link: AppLink.updatePaymetToPaid, payload: {
|
||||||
|
'driverID': driverID.toString(),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<String> getToken() async {
|
||||||
|
var headers = {
|
||||||
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
|
// 'Cookie':
|
||||||
|
// 'csrftoken=74iZJ8XYyuTm5WRq2W4tpWX5eqoJLZVK5QhuDrChWpDtzpgGA269bbCWuEcW85t4'
|
||||||
|
};
|
||||||
|
var body = {
|
||||||
|
'grant_type': 'password',
|
||||||
|
'username': AK.payMobOutUserName,
|
||||||
|
'password': AK.payMobOutPassword,
|
||||||
|
'client_id': AK.payMobOutClient_id,
|
||||||
|
'client_secret': AK.payMobOutClientSecrret
|
||||||
|
};
|
||||||
|
var res = await http.post(
|
||||||
|
Uri.parse(
|
||||||
|
'https://stagingpayouts.paymobsolutions.com/api/secure/o/token/'),
|
||||||
|
headers: headers,
|
||||||
|
body: body,
|
||||||
|
);
|
||||||
|
String token = '';
|
||||||
|
if (res.statusCode == 200) {
|
||||||
|
var decode = jsonDecode(res.body);
|
||||||
|
token = decode['access_token'];
|
||||||
|
}
|
||||||
|
return token;
|
||||||
|
}
|
||||||
|
|
||||||
|
Future getWalletForEachDriverToPay() async {
|
||||||
|
isLoading = true;
|
||||||
|
update();
|
||||||
|
var res = await CRUD().get(link: AppLink.getVisaForEachDriver, payload: {});
|
||||||
|
var d = jsonDecode(res);
|
||||||
|
driversWalletPoints = d['message'];
|
||||||
|
isLoading = false;
|
||||||
|
update();
|
||||||
|
}
|
||||||
|
}
|
||||||
116
lib/controller/bank_account/payout.dart
Normal file
@@ -0,0 +1,116 @@
|
|||||||
|
import 'dart:convert';
|
||||||
|
|
||||||
|
import 'package:get/get.dart';
|
||||||
|
import 'package:http/http.dart' as http;
|
||||||
|
|
||||||
|
import '../../../constant/links.dart';
|
||||||
|
import '../../constant/box_name.dart';
|
||||||
|
import '../../constant/colors.dart';
|
||||||
|
import '../../main.dart';
|
||||||
|
import '../functions/crud.dart';
|
||||||
|
|
||||||
|
class PaymobPayout extends GetxController {
|
||||||
|
bool isLoading = false;
|
||||||
|
String dropdownValue = 'etisalat';
|
||||||
|
|
||||||
|
Future<String> getToken() async {
|
||||||
|
var headers = {
|
||||||
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
|
// 'Cookie':
|
||||||
|
// 'csrftoken=74iZJ8XYyuTm5WRq2W4tpWX5eqoJLZVK5QhuDrChWpDtzpgGA269bbCWuEcW85t4'
|
||||||
|
};
|
||||||
|
var body = {
|
||||||
|
'grant_type': 'password',
|
||||||
|
'username': 'sefer_api_checker',
|
||||||
|
'password': '#c3pSwbUxOKpQnr5hHZAgpkSW',
|
||||||
|
'client_id': 'kmNWU5gKsL8LKVhsJFbOGTEb3YQ5sQhvBoB8pqoW',
|
||||||
|
'client_secret':
|
||||||
|
'htV6nFANLDd658ueTEuMrIqwjcXsocMXmBLAYof7FuutBcSxdTdoNqFl3EAvO6zrOgGPLdiMrofNp2V9ASVRpjoSlFjDNRzY7hfPunAJEgf2N5ZUuknN4QniaqIZvaNt'
|
||||||
|
};
|
||||||
|
var res = await http.post(
|
||||||
|
Uri.parse(
|
||||||
|
'https://stagingpayouts.paymobsolutions.com/api/secure/o/token/'),
|
||||||
|
headers: headers,
|
||||||
|
body: body,
|
||||||
|
);
|
||||||
|
String token = '';
|
||||||
|
if (res.statusCode == 200) {
|
||||||
|
var decode = jsonDecode(res.body);
|
||||||
|
token = decode['access_token'];
|
||||||
|
}
|
||||||
|
return token;
|
||||||
|
}
|
||||||
|
|
||||||
|
payToDriverWallet(
|
||||||
|
String token, String amount, String issuer, String msisdn) async {
|
||||||
|
var headers = {
|
||||||
|
'Authorization': 'Bearer $token',
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
};
|
||||||
|
var body = json.encode({
|
||||||
|
"amount": amount, //"10.00",
|
||||||
|
"issuer": issuer, //"vodafone",
|
||||||
|
"msisdn": msisdn, // "01023456789"
|
||||||
|
});
|
||||||
|
var res = await http.post(
|
||||||
|
Uri.parse(
|
||||||
|
'https://stagingpayouts.paymobsolutions.com/api/secure/disburse/'),
|
||||||
|
headers: headers,
|
||||||
|
body: body,
|
||||||
|
);
|
||||||
|
var dec = jsonDecode(res.body);
|
||||||
|
if (dec['disbursement_status'] == 'successful') {
|
||||||
|
await CRUD().post(link: AppLink.addDriverpayment, payload: {
|
||||||
|
'rideId': DateTime.now().toIso8601String(),
|
||||||
|
'amount': ((-1) * (double.parse(dec['amount'])) + 5).toStringAsFixed(0),
|
||||||
|
'payment_method': 'payout',
|
||||||
|
'passengerID': 'myself',
|
||||||
|
'driverID': box.read(BoxName.driverID).toString(),
|
||||||
|
});
|
||||||
|
Get.snackbar('Transaction successful'.tr,
|
||||||
|
'${'Transaction successful'.tr} ${dec['amount']}',
|
||||||
|
backgroundColor: AppColor.greenColor);
|
||||||
|
// Get.find<CaptainWalletController>().getCaptainWalletFromRide();
|
||||||
|
} else if (dec['disbursement_status'] == 'failed') {
|
||||||
|
Get.snackbar('Transaction failed'.tr, 'Transaction failed'.tr,
|
||||||
|
backgroundColor: AppColor.redColor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
payToDriverBankAccount(String token, String amount, String bankCardNumber,
|
||||||
|
String bankCode) async {
|
||||||
|
var headers = {
|
||||||
|
'Authorization': 'Bearer $token',
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
};
|
||||||
|
var body = {
|
||||||
|
"issuer": "bank_card",
|
||||||
|
"amount": amount, //9.0,
|
||||||
|
"full_name":
|
||||||
|
'${box.read(BoxName.nameDriver)} ${box.read(BoxName.lastNameDriver)}',
|
||||||
|
"bank_card_number": bankCardNumber, //"1111-2222-3333-4444",
|
||||||
|
"bank_code": bankCode, //"CIB",
|
||||||
|
"bank_transaction_type": "cash_transfer"
|
||||||
|
};
|
||||||
|
var res = await http
|
||||||
|
.post(
|
||||||
|
Uri.parse(
|
||||||
|
'https://stagingpayouts.paymobsolutions.com/api/secure/disburse/'),
|
||||||
|
headers: headers,
|
||||||
|
body: body,
|
||||||
|
)
|
||||||
|
.then((value) {});
|
||||||
|
}
|
||||||
|
|
||||||
|
Future payToWalletDriverAll(
|
||||||
|
String amount, String issuer, String msisdn) async {
|
||||||
|
String token = await getToken();
|
||||||
|
await payToDriverWallet(token, amount, issuer, msisdn);
|
||||||
|
}
|
||||||
|
|
||||||
|
Future payToBankDriverAll(
|
||||||
|
String amount, String bankCardNumber, String bankCode) async {
|
||||||
|
String token = await getToken();
|
||||||
|
await payToDriverBankAccount(token, amount, bankCardNumber, bankCode);
|
||||||
|
}
|
||||||
|
}
|
||||||
461
lib/controller/firebase/firbase_messge.dart
Normal file
@@ -0,0 +1,461 @@
|
|||||||
|
import 'dart:convert';
|
||||||
|
import 'dart:io';
|
||||||
|
import 'package:firebase_messaging/firebase_messaging.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:get/get.dart';
|
||||||
|
import 'package:http/http.dart' as http;
|
||||||
|
|
||||||
|
import '../../constant/api_key.dart';
|
||||||
|
import '../../constant/box_name.dart';
|
||||||
|
import '../../constant/colors.dart';
|
||||||
|
import '../../constant/links.dart';
|
||||||
|
import '../../constant/style.dart';
|
||||||
|
import '../../main.dart';
|
||||||
|
import '../../views/widgets/elevated_btn.dart';
|
||||||
|
import 'local_notification.dart';
|
||||||
|
|
||||||
|
class FirebaseMessagesController extends GetxController {
|
||||||
|
final fcmToken = FirebaseMessaging.instance;
|
||||||
|
|
||||||
|
List<String> tokens = [];
|
||||||
|
List<String> tokensPassengers = [];
|
||||||
|
List dataTokens = [];
|
||||||
|
late String driverID;
|
||||||
|
late String driverToken;
|
||||||
|
NotificationSettings? notificationSettings;
|
||||||
|
|
||||||
|
Future<void> getNotificationSettings() async {
|
||||||
|
// Get the current notification settings
|
||||||
|
NotificationSettings? notificationSettings =
|
||||||
|
await FirebaseMessaging.instance.getNotificationSettings();
|
||||||
|
'Notification authorization status: ${notificationSettings.authorizationStatus}';
|
||||||
|
|
||||||
|
// Call the update function if needed
|
||||||
|
update();
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<void> requestFirebaseMessagingPermission() async {
|
||||||
|
FirebaseMessaging messaging = FirebaseMessaging.instance;
|
||||||
|
|
||||||
|
// Check if the platform is Android
|
||||||
|
if (Platform.isAndroid) {
|
||||||
|
// Request permission for Android
|
||||||
|
await messaging.requestPermission();
|
||||||
|
} else if (Platform.isIOS) {
|
||||||
|
// Request permission for iOS
|
||||||
|
NotificationSettings settings = await messaging.requestPermission(
|
||||||
|
alert: true,
|
||||||
|
announcement: true,
|
||||||
|
badge: true,
|
||||||
|
carPlay: true,
|
||||||
|
criticalAlert: true,
|
||||||
|
provisional: false,
|
||||||
|
sound: true,
|
||||||
|
);
|
||||||
|
messaging.setForegroundNotificationPresentationOptions(
|
||||||
|
alert: true, badge: true, sound: true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Future getTokens() async {
|
||||||
|
var res = await http.post(
|
||||||
|
Uri.parse(AppLink.getTokens),
|
||||||
|
headers: {
|
||||||
|
'Authorization':
|
||||||
|
'Basic ${base64Encode(utf8.encode(AK.basicAuthCredentials))}',
|
||||||
|
},
|
||||||
|
body: {},
|
||||||
|
);
|
||||||
|
var jsonResponse = jsonDecode(res.body);
|
||||||
|
if (jsonResponse['status'] == 'success') {
|
||||||
|
dataTokens = jsonResponse['data'];
|
||||||
|
for (var i = 0; i < dataTokens.length; i++) {
|
||||||
|
tokens.add(jsonResponse['data'][i]['token']);
|
||||||
|
}
|
||||||
|
box.write(BoxName.tokens, tokens);
|
||||||
|
} else {
|
||||||
|
Get.defaultDialog(title: "Warning", middleText: "Server Error");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Future getAllTokenDrivers() async {
|
||||||
|
var res = await http.post(
|
||||||
|
Uri.parse(AppLink.getAllTokenDrivers),
|
||||||
|
headers: {
|
||||||
|
'Authorization':
|
||||||
|
'Basic ${base64Encode(utf8.encode(AK.basicAuthCredentials))}',
|
||||||
|
},
|
||||||
|
body: {},
|
||||||
|
);
|
||||||
|
var jsonResponse = jsonDecode(res.body);
|
||||||
|
if (jsonResponse['status'] == 'success') {
|
||||||
|
dataTokens = jsonResponse['data'];
|
||||||
|
for (var i = 0; i < dataTokens.length; i++) {
|
||||||
|
tokens.add(jsonResponse['data'][i]['token']);
|
||||||
|
}
|
||||||
|
box.write(BoxName.tokensDrivers, tokens);
|
||||||
|
} else {
|
||||||
|
Get.defaultDialog(title: "Warning", middleText: "Server Error");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Future getAllTokenPassengers() async {
|
||||||
|
var res = await http.post(
|
||||||
|
Uri.parse(AppLink.getAllTokenPassengers),
|
||||||
|
headers: {
|
||||||
|
'Authorization':
|
||||||
|
'Basic ${base64Encode(utf8.encode(AK.basicAuthCredentials))}',
|
||||||
|
},
|
||||||
|
body: {},
|
||||||
|
);
|
||||||
|
var jsonResponse = jsonDecode(res.body);
|
||||||
|
if (jsonResponse['status'] == 'success') {
|
||||||
|
dataTokens = jsonResponse['data'];
|
||||||
|
for (var i = 0; i < dataTokens.length; i++) {
|
||||||
|
tokensPassengers.add(jsonResponse['data'][i]['token']);
|
||||||
|
}
|
||||||
|
box.write(BoxName.tokensPassengers, tokensPassengers);
|
||||||
|
} else {
|
||||||
|
Get.defaultDialog(title: "Warning", middleText: "Server Error");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Future getToken() async {
|
||||||
|
fcmToken.getToken().then((token) {
|
||||||
|
if (box.read(BoxName.email) == null) {
|
||||||
|
box.write(BoxName.tokenDriver, token);
|
||||||
|
} else {
|
||||||
|
box.write(BoxName.tokenFCM, token);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
FirebaseMessaging.onMessage.listen((RemoteMessage message) {
|
||||||
|
// If the app is in the background or terminated, show a system tray message
|
||||||
|
RemoteNotification? notification = message.notification;
|
||||||
|
AndroidNotification? android = notification?.android;
|
||||||
|
// if (notification != null && android != null) {
|
||||||
|
if (message.data.isNotEmpty && message.notification != null) {
|
||||||
|
fireBaseTitles(message);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
void fireBaseTitles(RemoteMessage message) {
|
||||||
|
if (message.notification!.title! == 'Order') {
|
||||||
|
if (Platform.isAndroid) {
|
||||||
|
// NotificationController().showNotification('Order', '', 'order');
|
||||||
|
}
|
||||||
|
var myListString = message.data['DriverList'];
|
||||||
|
// var points = message.data['PolylineJson'];
|
||||||
|
|
||||||
|
var myList = jsonDecode(myListString) as List<dynamic>;
|
||||||
|
// var myPoints = jsonDecode(points) as List<dynamic>;
|
||||||
|
driverToken = myList[14].toString();
|
||||||
|
// This is for location using and uploading status
|
||||||
|
|
||||||
|
update();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
SnackbarController driverAppliedTripSnakBar() {
|
||||||
|
return Get.snackbar(
|
||||||
|
'Driver Applied the Ride for You'.tr,
|
||||||
|
'',
|
||||||
|
colorText: AppColor.greenColor,
|
||||||
|
duration: const Duration(seconds: 3),
|
||||||
|
snackPosition: SnackPosition.TOP,
|
||||||
|
titleText: Text(
|
||||||
|
'Applied'.tr,
|
||||||
|
style: const TextStyle(color: AppColor.redColor),
|
||||||
|
),
|
||||||
|
messageText: Text(
|
||||||
|
'Driver Applied the Ride for You'.tr,
|
||||||
|
style: AppStyle.title,
|
||||||
|
),
|
||||||
|
icon: const Icon(Icons.approval),
|
||||||
|
shouldIconPulse: true,
|
||||||
|
margin: const EdgeInsets.all(16),
|
||||||
|
padding: const EdgeInsets.all(16),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<dynamic> passengerDialog(String message) {
|
||||||
|
return Get.defaultDialog(
|
||||||
|
barrierDismissible: false,
|
||||||
|
title: 'message From passenger'.tr,
|
||||||
|
titleStyle: AppStyle.title,
|
||||||
|
middleTextStyle: AppStyle.title,
|
||||||
|
middleText: message.tr,
|
||||||
|
confirm: MyElevatedButton(
|
||||||
|
title: 'Ok'.tr,
|
||||||
|
onPressed: () {
|
||||||
|
// FirebaseMessagesController().sendNotificationToPassengerToken(
|
||||||
|
// 'Hi ,I will go now'.tr,
|
||||||
|
// 'I will go now'.tr,
|
||||||
|
// Get.find<MapPassengerController>().driverToken, []);
|
||||||
|
// Get.find<MapPassengerController>()
|
||||||
|
// .startTimerDriverWaitPassenger5Minute();
|
||||||
|
|
||||||
|
Get.back();
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
|
// Future<dynamic> driverFinishTripDialoge(List<dynamic> driverList) {
|
||||||
|
// return Get.defaultDialog(
|
||||||
|
// title: 'Driver Finish Trip'.tr,
|
||||||
|
// content: const DriverTipWidget(),
|
||||||
|
// confirm: MyElevatedButton(
|
||||||
|
// title: 'Yes'.tr,
|
||||||
|
// onPressed: () async {
|
||||||
|
// var tip = (Get.find<MapPassengerController>().totalPassenger) *
|
||||||
|
// (double.parse(box.read(BoxName.tipPercentage.toString())));
|
||||||
|
// var res = await CRUD().post(link: AppLink.addTips, payload: {
|
||||||
|
// 'passengerID': box.read(BoxName.passengerID),
|
||||||
|
// 'driverID': driverList[0].toString(),
|
||||||
|
// 'rideID': driverList[1].toString(),
|
||||||
|
// 'tipAmount': tip.toString(),
|
||||||
|
// });
|
||||||
|
// await CRUD().post(link: AppLink.addPassengersWallet, payload: {
|
||||||
|
// 'passenger_id': box.read(BoxName.passengerID).toString(),
|
||||||
|
// 'balance': ((-1) * tip).toString()
|
||||||
|
// });
|
||||||
|
|
||||||
|
// await CRUD().post(link: AppLink.addDriversWalletPoints, payload: {
|
||||||
|
// 'driverID': driverList[0].toString(),
|
||||||
|
// 'paymentID': '${Get.find<MapPassengerController>().rideId}tip',
|
||||||
|
// 'amount': (tip * 100).toString(),
|
||||||
|
// 'paymentMethod': 'visa-tip',
|
||||||
|
// });
|
||||||
|
|
||||||
|
// if (res != 'failure') {
|
||||||
|
// FirebaseMessagesController().sendNotificationToAnyWithoutData(
|
||||||
|
// 'You Have Tips',
|
||||||
|
// '${'${tip.toString()}\$${' tips\nTotal is'.tr}'} ${tip + (Get.find<MapPassengerController>().totalPassenger)}',
|
||||||
|
// driverList[2].toString(),
|
||||||
|
// );
|
||||||
|
// }
|
||||||
|
// Get.to(() => RateDriverFromPassenger(), arguments: {
|
||||||
|
// 'driverId': driverList[0].toString(),
|
||||||
|
// 'rideId': driverList[1].toString(),
|
||||||
|
// 'price': driverList[3].toString()
|
||||||
|
// });
|
||||||
|
// },
|
||||||
|
// kolor: AppColor.greenColor,
|
||||||
|
// ),
|
||||||
|
// cancel: MyElevatedButton(
|
||||||
|
// title: 'No,I want'.tr,
|
||||||
|
// onPressed: () {
|
||||||
|
// Get.to(() => RateDriverFromPassenger(), arguments: {
|
||||||
|
// 'driverId': driverList[0].toString(),
|
||||||
|
// 'rideId': driverList[1].toString(),
|
||||||
|
// 'price': driverList[3].toString()
|
||||||
|
// });
|
||||||
|
// },
|
||||||
|
// kolor: AppColor.redColor,
|
||||||
|
// ));
|
||||||
|
// }
|
||||||
|
|
||||||
|
void sendNotificationAll(String title, body) async {
|
||||||
|
// Get the token you want to subtract.
|
||||||
|
String token = box.read(BoxName.tokenFCM);
|
||||||
|
tokens = box.read(BoxName.tokensDrivers);
|
||||||
|
// Subtract the token from the list of tokens.
|
||||||
|
tokens.remove(token);
|
||||||
|
|
||||||
|
// Save the list of tokens back to the box.
|
||||||
|
// box.write(BoxName.tokens, tokens);
|
||||||
|
// tokens = box.read(BoxName.tokens);
|
||||||
|
for (var i = 0; i < tokens.length; i++) {
|
||||||
|
http
|
||||||
|
.post(Uri.parse('https://fcm.googleapis.com/fcm/send'),
|
||||||
|
headers: <String, String>{
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
'Authorization': 'key=${AK.serverAPI}'
|
||||||
|
},
|
||||||
|
body: jsonEncode({
|
||||||
|
'notification': <String, dynamic>{
|
||||||
|
'title': title,
|
||||||
|
'body': body,
|
||||||
|
'sound': 'start.wav'
|
||||||
|
},
|
||||||
|
'priority': 'high',
|
||||||
|
'data': <String, dynamic>{
|
||||||
|
'click_action': 'FLUTTER_NOTIFICATION_CLICK',
|
||||||
|
'id': '1',
|
||||||
|
'status': 'done'
|
||||||
|
},
|
||||||
|
'to': tokens[i],
|
||||||
|
}))
|
||||||
|
.whenComplete(() {})
|
||||||
|
.catchError((e) {});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// for (var i = 0; i < tokens.length; i++) {
|
||||||
|
// http
|
||||||
|
// .post(Uri.parse('https://fcm.googleapis.com/fcm/send'),
|
||||||
|
// headers: <String, String>{
|
||||||
|
// 'Content-Type': 'application/json',
|
||||||
|
// 'Authorization': 'key=${storage.read(key: BoxName.serverAPI}'
|
||||||
|
// },
|
||||||
|
// body: jsonEncode({
|
||||||
|
// 'notification': <String, dynamic>{
|
||||||
|
// 'title': title,
|
||||||
|
// 'body': body,
|
||||||
|
// 'sound': 'true'
|
||||||
|
// },
|
||||||
|
// 'priority': 'high',
|
||||||
|
// 'data': <String, dynamic>{
|
||||||
|
// 'click_action': 'FLUTTER_NOTIFICATION_CLICK',
|
||||||
|
// 'id': '1',
|
||||||
|
// 'status': 'done'
|
||||||
|
// },
|
||||||
|
// 'to': tokens[i],
|
||||||
|
// }))
|
||||||
|
// .whenComplete(() {})
|
||||||
|
// .catchError((e) {
|
||||||
|
// });
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
void sendNotificationToPassengerToken(
|
||||||
|
String title, body, token, List<String> map) async {
|
||||||
|
try {
|
||||||
|
final response = await http.post(
|
||||||
|
Uri.parse('https://fcm.googleapis.com/fcm/send'),
|
||||||
|
headers: <String, String>{
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
'Authorization': 'key=${AK.serverAPI}'
|
||||||
|
},
|
||||||
|
body: jsonEncode({
|
||||||
|
'notification': <String, dynamic>{
|
||||||
|
'title': title,
|
||||||
|
'body': body,
|
||||||
|
'sound': 'tone2.wav'
|
||||||
|
},
|
||||||
|
'data': {
|
||||||
|
'passengerList': map,
|
||||||
|
},
|
||||||
|
'priority': 'high',
|
||||||
|
'to': token,
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
|
||||||
|
if (response.statusCode == 200) {
|
||||||
|
// Notification sent successfully
|
||||||
|
} else {
|
||||||
|
// Handle error response
|
||||||
|
'Failed to send notification. Status code: ${response.statusCode}';
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
// Handle other exceptions
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void sendNotificationToAnyWithoutData(
|
||||||
|
String title, String body, String token) async {
|
||||||
|
try {
|
||||||
|
final response = await http.post(
|
||||||
|
Uri.parse('https://fcm.googleapis.com/fcm/send'),
|
||||||
|
headers: <String, String>{
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
'Authorization': 'key=${AK.serverAPI}'
|
||||||
|
},
|
||||||
|
body: jsonEncode({
|
||||||
|
'notification': <String, dynamic>{
|
||||||
|
'title': title,
|
||||||
|
'body': body,
|
||||||
|
'sound': 'notify.wav'
|
||||||
|
},
|
||||||
|
'data': <String, dynamic>{
|
||||||
|
'click_action': 'FLUTTER_NOTIFICATION_CLICK',
|
||||||
|
'id': '1',
|
||||||
|
'status': 'done'
|
||||||
|
},
|
||||||
|
'priority': 'high',
|
||||||
|
'to': token,
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
|
||||||
|
if (response.statusCode == 200) {
|
||||||
|
// Notification sent successfully
|
||||||
|
} else {
|
||||||
|
// Handle error response
|
||||||
|
'Failed to send notification. Status code: ${response.statusCode}';
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
// Handle other exceptions
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void sendNotificationToDriverMAP(
|
||||||
|
String title, String body, String token, List<String> data) async {
|
||||||
|
try {
|
||||||
|
final response = await http.post(
|
||||||
|
Uri.parse('https://fcm.googleapis.com/fcm/send'),
|
||||||
|
headers: <String, String>{
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
'Authorization': 'key=${AK.serverAPI}'
|
||||||
|
},
|
||||||
|
body: jsonEncode({
|
||||||
|
'notification': <String, dynamic>{
|
||||||
|
'title': title,
|
||||||
|
'body': body,
|
||||||
|
// 'sound': 'tone2.wav',
|
||||||
|
'sound': 'order.wav'
|
||||||
|
},
|
||||||
|
'data': {
|
||||||
|
'DriverList': data,
|
||||||
|
},
|
||||||
|
'priority': 'high',
|
||||||
|
'to': token,
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
|
||||||
|
if (response.statusCode == 200) {
|
||||||
|
// Notification sent successfully
|
||||||
|
} else {
|
||||||
|
// Handle error response
|
||||||
|
'Failed to send notification. Status code: ${response.statusCode}';
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
// Handle other exceptions
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void sendNotificationToDriverMapPolyline(String title, String body,
|
||||||
|
String token, List<String> data, String polylineJson) async {
|
||||||
|
try {
|
||||||
|
final response = await http.post(
|
||||||
|
Uri.parse('https://fcm.googleapis.com/fcm/send'),
|
||||||
|
headers: <String, String>{
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
'Authorization': 'key=${AK.serverAPI}'
|
||||||
|
},
|
||||||
|
body: jsonEncode({
|
||||||
|
'notification': <String, dynamic>{
|
||||||
|
'title': title,
|
||||||
|
'body': body,
|
||||||
|
// 'sound': 'tone2.wav',
|
||||||
|
'sound': 'order.wav'
|
||||||
|
},
|
||||||
|
'data': {
|
||||||
|
'DriverList': data,
|
||||||
|
'PolylineJson': polylineJson,
|
||||||
|
},
|
||||||
|
'priority': 'high',
|
||||||
|
'to': token,
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
|
||||||
|
if (response.statusCode == 200) {
|
||||||
|
// Notification sent successfully
|
||||||
|
} else {
|
||||||
|
// Handle error response
|
||||||
|
'Failed to send notification. Status code: ${response.statusCode}';
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
// Handle other exceptions
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
29
lib/controller/firebase/local_notification.dart
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
// import 'package:flutter_local_notifications/flutter_local_notifications.dart';
|
||||||
|
// import 'package:get/get.dart';
|
||||||
|
|
||||||
|
// class NotificationController extends GetxController {
|
||||||
|
// final FlutterLocalNotificationsPlugin _flutterLocalNotificationsPlugin =
|
||||||
|
// FlutterLocalNotificationsPlugin();
|
||||||
|
|
||||||
|
// // Initializes the local notifications plugin
|
||||||
|
// Future<void> initNotifications() async {
|
||||||
|
// const AndroidInitializationSettings android =
|
||||||
|
// AndroidInitializationSettings('@mipmap/launcher_icon');
|
||||||
|
// const InitializationSettings initializationSettings =
|
||||||
|
// InitializationSettings(android: android);
|
||||||
|
// await _flutterLocalNotificationsPlugin.initialize(initializationSettings);
|
||||||
|
// }
|
||||||
|
|
||||||
|
// // Displays a notification with the given title and message
|
||||||
|
// void showNotification(String title, String message, String tone) async {
|
||||||
|
// AndroidNotificationDetails android = AndroidNotificationDetails(
|
||||||
|
// 'your channel id', 'your channel name',
|
||||||
|
// importance: Importance.max,
|
||||||
|
// priority: Priority.high,
|
||||||
|
// showWhen: false,
|
||||||
|
// sound: RawResourceAndroidNotificationSound(tone));
|
||||||
|
|
||||||
|
// NotificationDetails details = NotificationDetails(android: android);
|
||||||
|
// await _flutterLocalNotificationsPlugin.show(0, title, message, details);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
484
lib/controller/functions/crud.dart
Normal file
@@ -0,0 +1,484 @@
|
|||||||
|
import 'dart:convert';
|
||||||
|
|
||||||
|
import 'package:get/get.dart';
|
||||||
|
import 'package:http/http.dart' as http;
|
||||||
|
|
||||||
|
import '../../constant/api_key.dart';
|
||||||
|
import '../../constant/box_name.dart';
|
||||||
|
import '../../constant/links.dart';
|
||||||
|
import '../../env/env.dart';
|
||||||
|
import '../../main.dart';
|
||||||
|
import 'gemeni.dart';
|
||||||
|
import 'llama_ai.dart';
|
||||||
|
import 'upload_image.dart';
|
||||||
|
|
||||||
|
class CRUD {
|
||||||
|
Future<dynamic> get({
|
||||||
|
required String link,
|
||||||
|
Map<String, dynamic>? payload,
|
||||||
|
}) async {
|
||||||
|
var url = Uri.parse(
|
||||||
|
link,
|
||||||
|
);
|
||||||
|
var response = await http.post(
|
||||||
|
url,
|
||||||
|
body: payload,
|
||||||
|
headers: {
|
||||||
|
"Content-Type": "application/x-www-form-urlencoded",
|
||||||
|
'Authorization':
|
||||||
|
'Basic ${base64Encode(utf8.encode(AK.basicAuthCredentials.toString()))}',
|
||||||
|
},
|
||||||
|
);
|
||||||
|
// if (response.statusCode == 200) {
|
||||||
|
var jsonData = jsonDecode(response.body);
|
||||||
|
if (jsonData['status'] == 'success') {
|
||||||
|
return response.body;
|
||||||
|
}
|
||||||
|
|
||||||
|
return jsonData['status'];
|
||||||
|
}
|
||||||
|
// }
|
||||||
|
|
||||||
|
Future<dynamic> getAgoraToken({
|
||||||
|
required String channelName,
|
||||||
|
required String uid,
|
||||||
|
}) async {
|
||||||
|
var uid = box.read(BoxName.phone) ?? box.read(BoxName.phoneDriver);
|
||||||
|
var res = await http.get(
|
||||||
|
Uri.parse(
|
||||||
|
'https://repulsive-pig-rugby-shirt.cyclic.app/token?channelName=$channelName'),
|
||||||
|
headers: {'Authorization': 'Bearer ${AK.agoraAppCertificate}'});
|
||||||
|
|
||||||
|
if (res.statusCode == 200) {
|
||||||
|
var response = jsonDecode(res.body);
|
||||||
|
return response['token'];
|
||||||
|
} else {}
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<dynamic> getLlama({
|
||||||
|
required String link,
|
||||||
|
required String payload,
|
||||||
|
required String prompt,
|
||||||
|
}) async {
|
||||||
|
var url = Uri.parse(
|
||||||
|
link,
|
||||||
|
);
|
||||||
|
var headers = {
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
'Authorization':
|
||||||
|
'Bearer LL-X5lJ0Px9CzKK0HTuVZ3u2u4v3tGWkImLTG7okGRk4t25zrsLqJ0qNoUzZ2x4ciPy'
|
||||||
|
// 'Authorization': 'Bearer ${Env.llamaKey}'
|
||||||
|
};
|
||||||
|
var data = json.encode({
|
||||||
|
"model": "Llama-3-70b-Inst-FW",
|
||||||
|
// "model": "llama-13b-chat",
|
||||||
|
"messages": [
|
||||||
|
{
|
||||||
|
"role": "user",
|
||||||
|
"content":
|
||||||
|
"Extract the desired information from the following passage as json decoded like $prompt just in this:\n\n$payload"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"temperature": 0.9
|
||||||
|
});
|
||||||
|
var response = await http.post(
|
||||||
|
url,
|
||||||
|
body: data,
|
||||||
|
headers: headers,
|
||||||
|
);
|
||||||
|
|
||||||
|
if (response.statusCode == 200) {
|
||||||
|
return response.body;
|
||||||
|
}
|
||||||
|
return response.statusCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
Future allMethodForAI(String prompt, linkPHP, imagePath) async {
|
||||||
|
// await ImageController().choosImage(linkPHP, imagePath);
|
||||||
|
Future.delayed(const Duration(seconds: 2));
|
||||||
|
var extractedString =
|
||||||
|
await arabicTextExtractByVisionAndAI(imagePath: imagePath);
|
||||||
|
var json = jsonDecode(extractedString);
|
||||||
|
var textValues = getAllTextValuesWithLineNumbers(json);
|
||||||
|
// List<String> textValues = getAllTextValues(json);
|
||||||
|
|
||||||
|
// await AI().geminiAiExtraction(prompt, textValues);
|
||||||
|
}
|
||||||
|
|
||||||
|
Map<String, List<Map<String, String>>> getAllTextValuesWithLineNumbers(
|
||||||
|
Map json) {
|
||||||
|
Map<String, List<Map<String, String>>> output = {};
|
||||||
|
int lineNumber = 1;
|
||||||
|
|
||||||
|
if (json.containsKey('regions')) {
|
||||||
|
List<dynamic> regions = json['regions'];
|
||||||
|
for (Map<String, dynamic> region in regions) {
|
||||||
|
if (region.containsKey('lines')) {
|
||||||
|
List<dynamic> lines = region['lines'];
|
||||||
|
List<Map<String, String>> linesWithText = [];
|
||||||
|
for (Map<String, dynamic> line in lines) {
|
||||||
|
if (line.containsKey('words')) {
|
||||||
|
List<dynamic> words = line['words'];
|
||||||
|
String lineText = "";
|
||||||
|
for (Map<String, dynamic> word in words) {
|
||||||
|
if (word.containsKey('text')) {
|
||||||
|
lineText += word['text'] + " ";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
lineText = lineText.trim();
|
||||||
|
linesWithText.add(
|
||||||
|
{"line_number": lineNumber.toString(), "text": lineText});
|
||||||
|
lineNumber++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
output["region_${region.hashCode}"] = linesWithText;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return output;
|
||||||
|
}
|
||||||
|
|
||||||
|
// List<String> getAllTextValues(Map json) {
|
||||||
|
// List<String> textValues = [];
|
||||||
|
|
||||||
|
// if (json.containsKey('regions')) {
|
||||||
|
// List<dynamic> regions = json['regions'];
|
||||||
|
// for (Map<String, dynamic> region in regions) {
|
||||||
|
// if (region.containsKey('lines')) {
|
||||||
|
// List<dynamic> lines = region['lines'];
|
||||||
|
// for (Map<String, dynamic> line in lines) {
|
||||||
|
// if (line.containsKey('words')) {
|
||||||
|
// List<dynamic> words = line['words'];
|
||||||
|
// for (Map<String, dynamic> word in words) {
|
||||||
|
// if (word.containsKey('text')) {
|
||||||
|
// textValues.add(word['text']);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
// return textValues;
|
||||||
|
// }
|
||||||
|
|
||||||
|
Future<dynamic> arabicTextExtractByVisionAndAI({
|
||||||
|
required String imagePath,
|
||||||
|
}) async {
|
||||||
|
var headers = {
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
'Ocp-Apim-Subscription-Key': '21010e54b50f41a4904708c526e102df'
|
||||||
|
};
|
||||||
|
// var url = Uri.parse(
|
||||||
|
// 'https://ocrhamza.cognitiveservices.azure.com/vision/v2.1/ocr?language=ar',
|
||||||
|
// );
|
||||||
|
String imagePathFull =
|
||||||
|
'${AppLink.server}card_image/$imagePath-${box.read(BoxName.driverID)}.jpg';
|
||||||
|
|
||||||
|
var request = http.Request(
|
||||||
|
'POST',
|
||||||
|
Uri.parse(
|
||||||
|
'https://ocrhamza.cognitiveservices.azure.com/vision/v2.1/ocr?language=ar'));
|
||||||
|
request.body = json.encode({"url": imagePathFull});
|
||||||
|
request.headers.addAll(headers);
|
||||||
|
|
||||||
|
http.StreamedResponse response = await request.send();
|
||||||
|
|
||||||
|
if (response.statusCode == 200) {
|
||||||
|
return await response.stream.bytesToString();
|
||||||
|
} else {}
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<dynamic> getChatGPT({
|
||||||
|
required String link,
|
||||||
|
required String payload,
|
||||||
|
}) async {
|
||||||
|
var url = Uri.parse(
|
||||||
|
link,
|
||||||
|
);
|
||||||
|
var headers = {
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
'Authorization': 'Bearer ${Env.chatGPTkeySeferNew}'
|
||||||
|
};
|
||||||
|
var data = json.encode({
|
||||||
|
"model": "gpt-3.5-turbo",
|
||||||
|
"messages": [
|
||||||
|
{
|
||||||
|
"role": "user",
|
||||||
|
"content":
|
||||||
|
"Extract the desired information from the following passage as json decoded like vin,make,made,year,expiration_date,color,owner,registration_date just in this:\n\n$payload"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"temperature": 0.9
|
||||||
|
});
|
||||||
|
var response = await http.post(
|
||||||
|
url,
|
||||||
|
body: data,
|
||||||
|
headers: headers,
|
||||||
|
);
|
||||||
|
|
||||||
|
if (response.statusCode == 200) {
|
||||||
|
return response.body;
|
||||||
|
}
|
||||||
|
return response.statusCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<dynamic> postStripe({
|
||||||
|
required String link,
|
||||||
|
Map<String, dynamic>? payload,
|
||||||
|
}) async {
|
||||||
|
// String? secretKey = await storage.read(key: BoxName.secretKey);
|
||||||
|
var url = Uri.parse(
|
||||||
|
link,
|
||||||
|
);
|
||||||
|
var response = await http.post(
|
||||||
|
url,
|
||||||
|
body: payload,
|
||||||
|
headers: {
|
||||||
|
"Content-Type": "application/x-www-form-urlencoded",
|
||||||
|
'Authorization': 'Bearer ${AK.secretKey}',
|
||||||
|
},
|
||||||
|
);
|
||||||
|
if (response.statusCode == 200) {
|
||||||
|
return response.body;
|
||||||
|
} else {}
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<dynamic> post({
|
||||||
|
required String link,
|
||||||
|
Map<String, dynamic>? payload,
|
||||||
|
}) async {
|
||||||
|
// String? basicAuthCredentials =
|
||||||
|
// await storage.read(key: BoxName.basicAuthCredentials);
|
||||||
|
var url = Uri.parse(
|
||||||
|
link,
|
||||||
|
);
|
||||||
|
var response = await http.post(
|
||||||
|
url,
|
||||||
|
body: payload,
|
||||||
|
headers: {
|
||||||
|
"Content-Type": "application/x-www-form-urlencoded",
|
||||||
|
'Authorization':
|
||||||
|
'Basic ${base64Encode(utf8.encode(AK.basicAuthCredentials))}',
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
|
var jsonData = jsonDecode(response.body);
|
||||||
|
if (response.statusCode == 200) {
|
||||||
|
if (jsonData['status'] == 'success') {
|
||||||
|
return response.body;
|
||||||
|
} else {
|
||||||
|
return (jsonData['status']);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return response.statusCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<dynamic> kazumiSMS({
|
||||||
|
required String link,
|
||||||
|
Map<String, dynamic>? payload,
|
||||||
|
}) async {
|
||||||
|
var url = Uri.parse(
|
||||||
|
link,
|
||||||
|
);
|
||||||
|
var headers = {'Content-Type': 'application/json'};
|
||||||
|
var request = http.Request('POST', url);
|
||||||
|
request.body = json.encode({
|
||||||
|
"username": "Sefer",
|
||||||
|
"password": AK.smsPasswordEgypt,
|
||||||
|
});
|
||||||
|
request.headers.addAll(headers);
|
||||||
|
|
||||||
|
http.StreamedResponse response = await request.send();
|
||||||
|
|
||||||
|
if (response.statusCode == 200) {
|
||||||
|
var responseBody = await response.stream.bytesToString();
|
||||||
|
var data = json.decode(responseBody);
|
||||||
|
return data;
|
||||||
|
} else {}
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<dynamic> postPayMob({
|
||||||
|
required String link,
|
||||||
|
Map<String, dynamic>? payload,
|
||||||
|
}) async {
|
||||||
|
// String? basicAuthCredentials =
|
||||||
|
// await storage.read(key: BoxName.basicAuthCredentials);
|
||||||
|
var url = Uri.parse(
|
||||||
|
link,
|
||||||
|
);
|
||||||
|
var response = await http.post(url,
|
||||||
|
body: payload, headers: {'Content-Type': 'application/json'});
|
||||||
|
|
||||||
|
var jsonData = jsonDecode(response.body);
|
||||||
|
if (response.statusCode == 200) {
|
||||||
|
if (jsonData['status'] == 'success') {
|
||||||
|
return response.body;
|
||||||
|
} else {
|
||||||
|
return (jsonData['status']);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return response.statusCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
sendEmail(
|
||||||
|
String link,
|
||||||
|
Map<String, String>? payload,
|
||||||
|
) async {
|
||||||
|
var headers = {
|
||||||
|
"Content-Type": "application/x-www-form-urlencoded",
|
||||||
|
'Authorization':
|
||||||
|
'Basic ${base64Encode(utf8.encode(AK.basicAuthCredentials))}',
|
||||||
|
};
|
||||||
|
var request = http.Request('POST', Uri.parse(link));
|
||||||
|
request.bodyFields = payload!;
|
||||||
|
request.headers.addAll(headers);
|
||||||
|
|
||||||
|
http.StreamedResponse response = await request.send();
|
||||||
|
if (response.statusCode == 200) {
|
||||||
|
} else {}
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<dynamic> postFromDialogue({
|
||||||
|
required String link,
|
||||||
|
Map<String, dynamic>? payload,
|
||||||
|
}) async {
|
||||||
|
// String? basicAuthCredentials =
|
||||||
|
// await storage.read(key: BoxName.basicAuthCredentials);
|
||||||
|
var url = Uri.parse(
|
||||||
|
link,
|
||||||
|
);
|
||||||
|
var response = await http.post(
|
||||||
|
url,
|
||||||
|
body: payload,
|
||||||
|
headers: {
|
||||||
|
"Content-Type": "application/x-www-form-urlencoded",
|
||||||
|
'Authorization':
|
||||||
|
'Basic ${base64Encode(utf8.encode(AK.basicAuthCredentials))}',
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
|
if (response.body.isNotEmpty) {
|
||||||
|
var jsonData = jsonDecode(response.body);
|
||||||
|
if (response.statusCode == 200) {
|
||||||
|
if (jsonData['status'] == 'success') {
|
||||||
|
Get.back();
|
||||||
|
// Get.snackbar(
|
||||||
|
// jsonData['status'],
|
||||||
|
// jsonData['message'],
|
||||||
|
// );
|
||||||
|
|
||||||
|
return response.body;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return (jsonData['status']);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<void> sendVerificationRequest(String phoneNumber) async {
|
||||||
|
final accountSid = AK.accountSIDTwillo;
|
||||||
|
final authToken = AK.authTokenTwillo;
|
||||||
|
final verifySid = AK.twilloRecoveryCode;
|
||||||
|
|
||||||
|
final Uri verificationUri = Uri.parse(
|
||||||
|
'https://verify.twilio.com/v2/Services/$verifySid/Verifications');
|
||||||
|
|
||||||
|
// Send the verification request
|
||||||
|
final response = await http.post(
|
||||||
|
verificationUri,
|
||||||
|
headers: {
|
||||||
|
'Authorization':
|
||||||
|
'Basic ${base64Encode(utf8.encode('$accountSid:$authToken'))}',
|
||||||
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
|
},
|
||||||
|
body: {
|
||||||
|
'To': phoneNumber,
|
||||||
|
'Channel': 'sms',
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
|
if (response.statusCode == 201) {
|
||||||
|
} else {}
|
||||||
|
|
||||||
|
// Prompt the user to enter the OTP
|
||||||
|
const otpCode = "123456"; // Replace with user input
|
||||||
|
|
||||||
|
// Check the verification code
|
||||||
|
final checkUri = Uri.parse(
|
||||||
|
'https://verify.twilio.com/v2/Services/$verifySid/VerificationCheck');
|
||||||
|
|
||||||
|
final checkResponse = await http.post(
|
||||||
|
checkUri,
|
||||||
|
headers: {
|
||||||
|
'Authorization':
|
||||||
|
'Basic ${base64Encode(utf8.encode('$accountSid:$authToken'))}',
|
||||||
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
|
},
|
||||||
|
body: {
|
||||||
|
'To': phoneNumber,
|
||||||
|
'Code': otpCode,
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
|
if (checkResponse.statusCode == 201) {
|
||||||
|
} else {}
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<dynamic> getGoogleApi({
|
||||||
|
required String link,
|
||||||
|
Map<String, dynamic>? payload,
|
||||||
|
}) async {
|
||||||
|
var url = Uri.parse(
|
||||||
|
link,
|
||||||
|
);
|
||||||
|
var response = await http.post(
|
||||||
|
url,
|
||||||
|
body: payload,
|
||||||
|
);
|
||||||
|
var jsonData = jsonDecode(response.body);
|
||||||
|
if (jsonData['status'] == 'OK') {
|
||||||
|
return jsonData;
|
||||||
|
}
|
||||||
|
return (jsonData['status']);
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<dynamic> update({
|
||||||
|
required String endpoint,
|
||||||
|
required Map<String, dynamic> data,
|
||||||
|
required String id,
|
||||||
|
}) async {
|
||||||
|
// String? basicAuthCredentials =
|
||||||
|
// await storage.read(key: BoxName.basicAuthCredentials);
|
||||||
|
var url = Uri.parse('$endpoint/$id');
|
||||||
|
var response = await http.put(
|
||||||
|
url,
|
||||||
|
body: json.encode(data),
|
||||||
|
headers: {
|
||||||
|
'Authorization':
|
||||||
|
'Basic ${base64Encode(utf8.encode(AK.basicAuthCredentials))}',
|
||||||
|
},
|
||||||
|
);
|
||||||
|
return json.decode(response.body);
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<dynamic> delete({
|
||||||
|
required String endpoint,
|
||||||
|
required String id,
|
||||||
|
}) async {
|
||||||
|
// String? basicAuthCredentials =
|
||||||
|
// await storage.read(key: BoxName.basicAuthCredentials);
|
||||||
|
var url = Uri.parse('$endpoint/$id');
|
||||||
|
var response = await http.delete(
|
||||||
|
url,
|
||||||
|
headers: {
|
||||||
|
'Authorization':
|
||||||
|
'Basic ${base64Encode(utf8.encode(AK.basicAuthCredentials))}',
|
||||||
|
},
|
||||||
|
);
|
||||||
|
return json.decode(response.body);
|
||||||
|
}
|
||||||
|
}
|
||||||
26
lib/controller/functions/custom_pant.dart
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
class LineChartPainter extends CustomPainter {
|
||||||
|
final List<double> data;
|
||||||
|
|
||||||
|
LineChartPainter(this.data);
|
||||||
|
|
||||||
|
@override
|
||||||
|
void paint(Canvas canvas, Size size) {
|
||||||
|
// Calculate the scale factor.
|
||||||
|
final scaleFactor = size.height / 240;
|
||||||
|
|
||||||
|
// Draw the line chart.
|
||||||
|
for (var i = 0; i < data.length - 1; i++) {
|
||||||
|
final x1 = i * size.width / data.length;
|
||||||
|
final y1 = data[i] * scaleFactor;
|
||||||
|
final x2 = (i + 1) * size.width / data.length;
|
||||||
|
final y2 = data[i + 1] * scaleFactor;
|
||||||
|
|
||||||
|
canvas.drawLine(Offset(x1, y1), Offset(x2, y2), Paint());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
bool shouldRepaint(LineChartPainter oldDelegate) => false;
|
||||||
|
}
|
||||||