Commit db777d3082c5a3ed041c09986583542ff55c47f6

Authored by gaiyaguang
0 parents

OneKey-debug-v1.0.2

Showing 100 changed files with 1613 additions and 0 deletions

Too many changes to show.

To preserve performance only 100 of 100+ files are displayed.

  1 +# Miscellaneous
  2 +*.class
  3 +*.log
  4 +*.pyc
  5 +*.swp
  6 +.DS_Store
  7 +.atom/
  8 +.buildlog/
  9 +.history
  10 +.svn/
  11 +
  12 +# IntelliJ related
  13 +*.iml
  14 +*.ipr
  15 +*.iws
  16 +.idea/
  17 +
  18 +# The .vscode folder contains launch configuration and tasks you configure in
  19 +# VS Code which you may wish to be included in version control, so this line
  20 +# is commented out by default.
  21 +#.vscode/
  22 +
  23 +# Flutter/Dart/Pub related
  24 +**/doc/api/
  25 +.dart_tool/
  26 +.flutter-plugins
  27 +.flutter-plugins-dependencies
  28 +.packages
  29 +.pub-cache/
  30 +.pub/
  31 +/build/
  32 +
  33 +# Web related
  34 +lib/generated_plugin_registrant.dart
  35 +
  36 +# Exceptions to above rules.
  37 +!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
  1 +# This file tracks properties of this Flutter project.
  2 +# Used by Flutter tool to assess capabilities and perform upgrades etc.
  3 +#
  4 +# This file should be version controlled and should not be manually edited.
  5 +
  6 +version:
  7 + revision: 27321ebbad34b0a3fafe99fac037102196d655ff
  8 + channel: stable
  9 +
  10 +project_type: app
  1 +# one_key
  2 +
  3 +A new Flutter application.
  4 +
  5 +## Getting Started
  6 +
  7 +This project is a starting point for a Flutter application.
  8 +
  9 +A few resources to get you started if this is your first Flutter project:
  10 +
  11 +- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
  12 +- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
  13 +
  14 +For help getting started with Flutter, view our
  15 +[online documentation](https://flutter.dev/docs), which offers tutorials,
  16 +samples, guidance on mobile development, and a full API reference.
  1 +gradle-wrapper.jar
  2 +/.gradle
  3 +/captures/
  4 +/gradlew
  5 +/gradlew.bat
  6 +/local.properties
  7 +GeneratedPluginRegistrant.java
  1 +{
  2 + "client":{
  3 + "cp_id":"260086000252264275",
  4 + "product_id":"9105385871708598142",
  5 + "client_id":"326681575729136832",
  6 + "client_secret":"A8D20078A192C1BD87C6B3EB5B597EF654901AE981E64701D66131A4E56A3AE9",
  7 + "app_id":"101934783",
  8 + "package_name":"com.naji.one_key",
  9 + "api_key":"CV6kBSEh4lAr9VF9v+geTdQebNtGEGQ4HcgN1igodItOCuGghaF1do+cxeVplpcEpe3pf3nwbkChLzCvkxtHvQOaPkTs"
  10 + },
  11 + "configuration_version":"1.0"
  12 +}
  1 +def localProperties = new Properties()
  2 +def localPropertiesFile = rootProject.file('local.properties')
  3 +if (localPropertiesFile.exists()) {
  4 + localPropertiesFile.withReader('UTF-8') { reader ->
  5 + localProperties.load(reader)
  6 + }
  7 +}
  8 +
  9 +def flutterRoot = localProperties.getProperty('flutter.sdk')
  10 +if (flutterRoot == null) {
  11 + throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
  12 +}
  13 +
  14 +def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
  15 +if (flutterVersionCode == null) {
  16 + flutterVersionCode = '1'
  17 +}
  18 +
  19 +def flutterVersionName = localProperties.getProperty('flutter.versionName')
  20 +if (flutterVersionName == null) {
  21 + flutterVersionName = '1.0'
  22 +}
  23 +
  24 +apply plugin: 'com.android.application'
  25 +apply plugin: 'kotlin-android'
  26 +apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
  27 +
  28 +apply plugin: 'com.huawei.agconnect'
  29 +
  30 +android {
  31 + compileSdkVersion 28
  32 +
  33 + sourceSets {
  34 + main.java.srcDirs += 'src/main/kotlin'
  35 + }
  36 +
  37 + lintOptions {
  38 + disable 'InvalidPackage'
  39 + }
  40 +
  41 + defaultConfig {
  42 + // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
  43 + applicationId "com.naji.one_key"
  44 + minSdkVersion 17
  45 + targetSdkVersion 28
  46 + versionCode flutterVersionCode.toInteger()
  47 + versionName flutterVersionName
  48 + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  49 +
  50 + ndk {
  51 + //选择要添加的对应 cpu 类型的 .so 库。
  52 + abiFilters 'armeabi', 'armeabi-v7a', 'x86', 'x86_64', 'mips', 'mips64', 'arm64-v8a'
  53 + }
  54 +
  55 + manifestPlaceholders = [
  56 + JPUSH_PKGNAME : applicationId,
  57 + JPUSH_APPKEY : "27ceb79c44af41ad99202f7a", // NOTE: JPush 上注册的包名对应的 Appkey.
  58 + JPUSH_CHANNEL : "developer-default", //暂时填写默认值即可.
  59 + HUAWEI_APPID:"101934783",//华为平台注册的appid
  60 + XIAOMI_APPKEY : "5811835841457", // 小米平台注册的appkey
  61 + XIAOMI_APPID : "2882303761518358457", // 小米平台注册的appid
  62 + OPPO_APPKEY : "94d77d10e7bb4c60bcf18a84c8ca8bdd", // OPPO平台注册的appkey
  63 + OPPO_APPID : "30260281", // OPPO平台注册的appid
  64 + OPPO_APPSECRET: "9b7e372f93794593953f93f118619570",//OPPO平台注册的appsecret
  65 +// VIVO_APPKEY : "5811835841457", // VIVO平台注册的appkey
  66 +// VIVO_APPID : "2882303761518358457", // VIVO平台注册的appid
  67 + ]
  68 + }
  69 +
  70 + signingConfigs {
  71 + release {
  72 + storeFile file("./src/main/assets/xiaotao.jks")
  73 + storePassword "xt123456"
  74 + keyAlias "key0"
  75 + keyPassword "xt123456"
  76 + }
  77 +
  78 + debug {
  79 + storeFile file("./src/main/assets/xiaotao.jks")
  80 + storePassword "xt123456"
  81 + keyAlias "key0"
  82 + keyPassword "xt123456"
  83 + }
  84 + }
  85 +
  86 + buildTypes {
  87 + release {
  88 + minifyEnabled true
  89 + proguardFiles 'proguard-rules.pro'
  90 + signingConfig signingConfigs.release
  91 + }
  92 + debug{
  93 + minifyEnabled false
  94 + signingConfig signingConfigs.debug
  95 + }
  96 + }
  97 +}
  98 +
  99 +flutter {
  100 + source '../..'
  101 +}
  102 +
  103 +dependencies {
  104 + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  105 + testImplementation 'junit:junit:4.12'
  106 + androidTestImplementation 'androidx.test:runner:1.1.1'
  107 + androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
  108 +
  109 + //华为推送
  110 + implementation 'cn.jiguang.sdk.plugin:huawei:3.5.4'
  111 + implementation 'com.huawei.hms:push:3.0.3.301'
  112 +
  113 + //小米推送
  114 + implementation 'cn.jiguang.sdk.plugin:xiaomi:3.5.4'
  115 +
  116 +// //OPPO推送
  117 +// implementation 'cn.jiguang.sdk.plugin:oppo:3.4.0'
  118 +//
  119 +// //vivo推送
  120 +// implementation 'cn.jiguang.sdk.plugin:vivo:3.5.4'
  121 +}
  1 +<manifest xmlns:android="http://schemas.android.com/apk/res/android"
  2 + package="com.naji.one_key">
  3 + <!-- Flutter needs it to communicate with the running application
  4 + to allow setting breakpoints, to provide hot reload, etc.
  5 + -->
  6 + <uses-permission android:name="android.permission.INTERNET"/>
  7 +</manifest>
  1 +<manifest xmlns:android="http://schemas.android.com/apk/res/android"
  2 + package="com.naji.one_key">
  3 + <!-- io.flutter.app.FlutterApplication is an android.app.Application that
  4 + calls FlutterMain.startInitialization(this); in its onCreate method.
  5 + In most cases you can leave this as-is, but you if you want to provide
  6 + additional functionality it is fine to subclass or reimplement
  7 + FlutterApplication and put your custom class here. -->
  8 + <application
  9 + android:name="io.flutter.app.FlutterApplication"
  10 + android:label="一键订"
  11 + android:icon="@mipmap/ic_launcher">
  12 + <activity
  13 + android:name=".MainActivity"
  14 + android:launchMode="singleTop"
  15 + android:theme="@style/LaunchTheme"
  16 + android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
  17 + android:hardwareAccelerated="true"
  18 + android:windowSoftInputMode="adjustResize"
  19 + android:exported="true"
  20 + >
  21 + <intent-filter>
  22 + <action android:name="android.intent.action.MAIN"/>
  23 + <category android:name="android.intent.category.LAUNCHER"/>
  24 + <action android:name="android.intent.action.VIEW"/>
  25 + <category android:name="android.intent.category.DEFAULT"/>
  26 + </intent-filter>
  27 + </activity>
  28 +
  29 + <service
  30 + android:name="cn.jpush.android.service.PluginHuaweiPlatformsService"
  31 + android:exported="false">
  32 + <intent-filter>
  33 + <action android:name="com.huawei.push.action.MESSAGING_EVENT" />
  34 + </intent-filter>
  35 + </service>
  36 + <!-- Don't delete the meta-data below.
  37 + This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
  38 + <meta-data
  39 + android:name="flutterEmbedding"
  40 + android:value="2" />
  41 + </application>
  42 +</manifest>
No preview for this file type
  1 +package com.naji.one_key
  2 +
  3 +import android.os.Bundle
  4 +import android.os.PersistableBundle
  5 +import android.util.Log
  6 +import androidx.annotation.NonNull;
  7 +import io.flutter.embedding.android.FlutterActivity
  8 +import io.flutter.embedding.engine.FlutterEngine
  9 +import io.flutter.plugins.GeneratedPluginRegistrant
  10 +
  11 +class MainActivity: FlutterActivity() {
  12 +
  13 + override fun onCreate(savedInstanceState: Bundle?, persistentState: PersistableBundle?) {
  14 + super.onCreate(savedInstanceState, persistentState)
  15 + Log.d("Push-Data",this.intent.data.toString());
  16 + }
  17 +
  18 + override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) {
  19 + GeneratedPluginRegistrant.registerWith(flutterEngine);
  20 + }
  21 +}
  1 +<?xml version="1.0" encoding="utf-8"?>
  2 +<!-- Modify this file to customize your launch splash screen -->
  3 +<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
  4 + <item android:drawable="@android:color/white" />
  5 +
  6 + <!-- You can insert your own image assets here -->
  7 + <!-- <item>
  8 + <bitmap
  9 + android:gravity="center"
  10 + android:src="@mipmap/launch_image" />
  11 + </item> -->
  12 +</layer-list>
No preview for this file type
  1 +<?xml version="1.0" encoding="utf-8"?>
  2 +<resources>
  3 + <style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
  4 + <!-- Show a splash screen on the activity. Automatically removed when
  5 + Flutter draws its first frame -->
  6 + <item name="android:windowBackground">@drawable/launch_background</item>
  7 + </style>
  8 +</resources>
  1 +<manifest xmlns:android="http://schemas.android.com/apk/res/android"
  2 + package="com.naji.one_key">
  3 + <!-- Flutter needs it to communicate with the running application
  4 + to allow setting breakpoints, to provide hot reload, etc.
  5 + -->
  6 + <uses-permission android:name="android.permission.INTERNET"/>
  7 +</manifest>
  1 +buildscript {
  2 + ext.kotlin_version = '1.3.50'
  3 + repositories {
  4 + google()
  5 + jcenter()
  6 + maven {url 'http://developer.huawei.com/repo/'}
  7 + }
  8 +
  9 + dependencies {
  10 + classpath 'com.android.tools.build:gradle:3.5.0'
  11 + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  12 + classpath 'com.huawei.agconnect:agcp:1.0.0.300'
  13 + }
  14 +}
  15 +
  16 +allprojects {
  17 + repositories {
  18 + google()
  19 + jcenter()
  20 + maven {url 'http://developer.huawei.com/repo/'}
  21 + }
  22 +}
  23 +
  24 +rootProject.buildDir = '../build'
  25 +subprojects {
  26 + project.buildDir = "${rootProject.buildDir}/${project.name}"
  27 +}
  28 +subprojects {
  29 + project.evaluationDependsOn(':app')
  30 +}
  31 +
  32 +task clean(type: Delete) {
  33 + delete rootProject.buildDir
  34 +}
  1 +org.gradle.jvmargs=-Xmx1536M
  2 +android.enableR8=true
  3 +android.useAndroidX=true
  4 +android.enableJetifier=true
  1 +#Fri Jun 23 08:50:38 CEST 2017
  2 +distributionBase=GRADLE_USER_HOME
  3 +distributionPath=wrapper/dists
  4 +zipStoreBase=GRADLE_USER_HOME
  5 +zipStorePath=wrapper/dists
  6 +distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
  1 +include ':app'
  2 +
  3 +def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
  4 +
  5 +def plugins = new Properties()
  6 +def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
  7 +if (pluginsFile.exists()) {
  8 + pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
  9 +}
  10 +
  11 +plugins.each { name, path ->
  12 + def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
  13 + include ":$name"
  14 + project(":$name").projectDir = pluginDirectory
  15 +}
No preview for this file type
  1 +*.mode1v3
  2 +*.mode2v3
  3 +*.moved-aside
  4 +*.pbxuser
  5 +*.perspectivev3
  6 +**/*sync/
  7 +.sconsign.dblite
  8 +.tags*
  9 +**/.vagrant/
  10 +**/DerivedData/
  11 +Icon?
  12 +**/Pods/
  13 +**/.symlinks/
  14 +profile
  15 +xcuserdata
  16 +**/.generated/
  17 +Flutter/App.framework
  18 +Flutter/Flutter.framework
  19 +Flutter/Flutter.podspec
  20 +Flutter/Generated.xcconfig
  21 +Flutter/app.flx
  22 +Flutter/app.zip
  23 +Flutter/flutter_assets/
  24 +Flutter/flutter_export_environment.sh
  25 +ServiceDefinitions.json
  26 +Runner/GeneratedPluginRegistrant.*
  27 +
  28 +# Exceptions to above rules.
  29 +!default.mode1v3
  30 +!default.mode2v3
  31 +!default.pbxuser
  32 +!default.perspectivev3
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>CFBundleDevelopmentRegion</key>
  6 + <string>$(DEVELOPMENT_LANGUAGE)</string>
  7 + <key>CFBundleExecutable</key>
  8 + <string>App</string>
  9 + <key>CFBundleIdentifier</key>
  10 + <string>io.flutter.flutter.app</string>
  11 + <key>CFBundleInfoDictionaryVersion</key>
  12 + <string>6.0</string>
  13 + <key>CFBundleName</key>
  14 + <string>App</string>
  15 + <key>CFBundlePackageType</key>
  16 + <string>FMWK</string>
  17 + <key>CFBundleShortVersionString</key>
  18 + <string>1.0</string>
  19 + <key>CFBundleSignature</key>
  20 + <string>????</string>
  21 + <key>CFBundleVersion</key>
  22 + <string>1.0</string>
  23 + <key>MinimumOSVersion</key>
  24 + <string>8.0</string>
  25 +</dict>
  26 +</plist>
  1 +#include "Generated.xcconfig"
  1 +#include "Generated.xcconfig"
  1 +// !$*UTF8*$!
  2 +{
  3 + archiveVersion = 1;
  4 + classes = {
  5 + };
  6 + objectVersion = 46;
  7 + objects = {
  8 +
  9 +/* Begin PBXBuildFile section */
  10 + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
  11 + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
  12 + 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
  13 + 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
  14 + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
  15 + 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };
  16 + 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
  17 + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
  18 + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
  19 + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
  20 +/* End PBXBuildFile section */
  21 +
  22 +/* Begin PBXCopyFilesBuildPhase section */
  23 + 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
  24 + isa = PBXCopyFilesBuildPhase;
  25 + buildActionMask = 2147483647;
  26 + dstPath = "";
  27 + dstSubfolderSpec = 10;
  28 + files = (
  29 + 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */,
  30 + 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */,
  31 + );
  32 + name = "Embed Frameworks";
  33 + runOnlyForDeploymentPostprocessing = 0;
  34 + };
  35 +/* End PBXCopyFilesBuildPhase section */
  36 +
  37 +/* Begin PBXFileReference section */
  38 + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
  39 + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
  40 + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
  41 + 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = "<group>"; };
  42 + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
  43 + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
  44 + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
  45 + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
  46 + 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
  47 + 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = "<group>"; };
  48 + 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
  49 + 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
  50 + 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
  51 + 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
  52 + 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
  53 +/* End PBXFileReference section */
  54 +
  55 +/* Begin PBXFrameworksBuildPhase section */
  56 + 97C146EB1CF9000F007C117D /* Frameworks */ = {
  57 + isa = PBXFrameworksBuildPhase;
  58 + buildActionMask = 2147483647;
  59 + files = (
  60 + 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,
  61 + 3B80C3941E831B6300D905FE /* App.framework in Frameworks */,
  62 + );
  63 + runOnlyForDeploymentPostprocessing = 0;
  64 + };
  65 +/* End PBXFrameworksBuildPhase section */
  66 +
  67 +/* Begin PBXGroup section */
  68 + 9740EEB11CF90186004384FC /* Flutter */ = {
  69 + isa = PBXGroup;
  70 + children = (
  71 + 3B80C3931E831B6300D905FE /* App.framework */,
  72 + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
  73 + 9740EEBA1CF902C7004384FC /* Flutter.framework */,
  74 + 9740EEB21CF90195004384FC /* Debug.xcconfig */,
  75 + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
  76 + 9740EEB31CF90195004384FC /* Generated.xcconfig */,
  77 + );
  78 + name = Flutter;
  79 + sourceTree = "<group>";
  80 + };
  81 + 97C146E51CF9000F007C117D = {
  82 + isa = PBXGroup;
  83 + children = (
  84 + 9740EEB11CF90186004384FC /* Flutter */,
  85 + 97C146F01CF9000F007C117D /* Runner */,
  86 + 97C146EF1CF9000F007C117D /* Products */,
  87 + );
  88 + sourceTree = "<group>";
  89 + };
  90 + 97C146EF1CF9000F007C117D /* Products */ = {
  91 + isa = PBXGroup;
  92 + children = (
  93 + 97C146EE1CF9000F007C117D /* Runner.app */,
  94 + );
  95 + name = Products;
  96 + sourceTree = "<group>";
  97 + };
  98 + 97C146F01CF9000F007C117D /* Runner */ = {
  99 + isa = PBXGroup;
  100 + children = (
  101 + 97C146FA1CF9000F007C117D /* Main.storyboard */,
  102 + 97C146FD1CF9000F007C117D /* Assets.xcassets */,
  103 + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
  104 + 97C147021CF9000F007C117D /* Info.plist */,
  105 + 97C146F11CF9000F007C117D /* Supporting Files */,
  106 + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
  107 + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
  108 + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
  109 + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
  110 + );
  111 + path = Runner;
  112 + sourceTree = "<group>";
  113 + };
  114 + 97C146F11CF9000F007C117D /* Supporting Files */ = {
  115 + isa = PBXGroup;
  116 + children = (
  117 + );
  118 + name = "Supporting Files";
  119 + sourceTree = "<group>";
  120 + };
  121 +/* End PBXGroup section */
  122 +
  123 +/* Begin PBXNativeTarget section */
  124 + 97C146ED1CF9000F007C117D /* Runner */ = {
  125 + isa = PBXNativeTarget;
  126 + buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
  127 + buildPhases = (
  128 + 9740EEB61CF901F6004384FC /* Run Script */,
  129 + 97C146EA1CF9000F007C117D /* Sources */,
  130 + 97C146EB1CF9000F007C117D /* Frameworks */,
  131 + 97C146EC1CF9000F007C117D /* Resources */,
  132 + 9705A1C41CF9048500538489 /* Embed Frameworks */,
  133 + 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
  134 + );
  135 + buildRules = (
  136 + );
  137 + dependencies = (
  138 + );
  139 + name = Runner;
  140 + productName = Runner;
  141 + productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
  142 + productType = "com.apple.product-type.application";
  143 + };
  144 +/* End PBXNativeTarget section */
  145 +
  146 +/* Begin PBXProject section */
  147 + 97C146E61CF9000F007C117D /* Project object */ = {
  148 + isa = PBXProject;
  149 + attributes = {
  150 + LastUpgradeCheck = 1020;
  151 + ORGANIZATIONNAME = "The Chromium Authors";
  152 + TargetAttributes = {
  153 + 97C146ED1CF9000F007C117D = {
  154 + CreatedOnToolsVersion = 7.3.1;
  155 + LastSwiftMigration = 1100;
  156 + };
  157 + };
  158 + };
  159 + buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
  160 + compatibilityVersion = "Xcode 3.2";
  161 + developmentRegion = en;
  162 + hasScannedForEncodings = 0;
  163 + knownRegions = (
  164 + en,
  165 + Base,
  166 + );
  167 + mainGroup = 97C146E51CF9000F007C117D;
  168 + productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
  169 + projectDirPath = "";
  170 + projectRoot = "";
  171 + targets = (
  172 + 97C146ED1CF9000F007C117D /* Runner */,
  173 + );
  174 + };
  175 +/* End PBXProject section */
  176 +
  177 +/* Begin PBXResourcesBuildPhase section */
  178 + 97C146EC1CF9000F007C117D /* Resources */ = {
  179 + isa = PBXResourcesBuildPhase;
  180 + buildActionMask = 2147483647;
  181 + files = (
  182 + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
  183 + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
  184 + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
  185 + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
  186 + );
  187 + runOnlyForDeploymentPostprocessing = 0;
  188 + };
  189 +/* End PBXResourcesBuildPhase section */
  190 +
  191 +/* Begin PBXShellScriptBuildPhase section */
  192 + 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
  193 + isa = PBXShellScriptBuildPhase;
  194 + buildActionMask = 2147483647;
  195 + files = (
  196 + );
  197 + inputPaths = (
  198 + );
  199 + name = "Thin Binary";
  200 + outputPaths = (
  201 + );
  202 + runOnlyForDeploymentPostprocessing = 0;
  203 + shellPath = /bin/sh;
  204 + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin";
  205 + };
  206 + 9740EEB61CF901F6004384FC /* Run Script */ = {
  207 + isa = PBXShellScriptBuildPhase;
  208 + buildActionMask = 2147483647;
  209 + files = (
  210 + );
  211 + inputPaths = (
  212 + );
  213 + name = "Run Script";
  214 + outputPaths = (
  215 + );
  216 + runOnlyForDeploymentPostprocessing = 0;
  217 + shellPath = /bin/sh;
  218 + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
  219 + };
  220 +/* End PBXShellScriptBuildPhase section */
  221 +
  222 +/* Begin PBXSourcesBuildPhase section */
  223 + 97C146EA1CF9000F007C117D /* Sources */ = {
  224 + isa = PBXSourcesBuildPhase;
  225 + buildActionMask = 2147483647;
  226 + files = (
  227 + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
  228 + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
  229 + );
  230 + runOnlyForDeploymentPostprocessing = 0;
  231 + };
  232 +/* End PBXSourcesBuildPhase section */
  233 +
  234 +/* Begin PBXVariantGroup section */
  235 + 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
  236 + isa = PBXVariantGroup;
  237 + children = (
  238 + 97C146FB1CF9000F007C117D /* Base */,
  239 + );
  240 + name = Main.storyboard;
  241 + sourceTree = "<group>";
  242 + };
  243 + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
  244 + isa = PBXVariantGroup;
  245 + children = (
  246 + 97C147001CF9000F007C117D /* Base */,
  247 + );
  248 + name = LaunchScreen.storyboard;
  249 + sourceTree = "<group>";
  250 + };
  251 +/* End PBXVariantGroup section */
  252 +
  253 +/* Begin XCBuildConfiguration section */
  254 + 249021D3217E4FDB00AE95B9 /* Profile */ = {
  255 + isa = XCBuildConfiguration;
  256 + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
  257 + buildSettings = {
  258 + ALWAYS_SEARCH_USER_PATHS = NO;
  259 + CLANG_ANALYZER_NONNULL = YES;
  260 + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
  261 + CLANG_CXX_LIBRARY = "libc++";
  262 + CLANG_ENABLE_MODULES = YES;
  263 + CLANG_ENABLE_OBJC_ARC = YES;
  264 + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
  265 + CLANG_WARN_BOOL_CONVERSION = YES;
  266 + CLANG_WARN_COMMA = YES;
  267 + CLANG_WARN_CONSTANT_CONVERSION = YES;
  268 + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
  269 + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
  270 + CLANG_WARN_EMPTY_BODY = YES;
  271 + CLANG_WARN_ENUM_CONVERSION = YES;
  272 + CLANG_WARN_INFINITE_RECURSION = YES;
  273 + CLANG_WARN_INT_CONVERSION = YES;
  274 + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
  275 + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
  276 + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
  277 + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
  278 + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
  279 + CLANG_WARN_STRICT_PROTOTYPES = YES;
  280 + CLANG_WARN_SUSPICIOUS_MOVE = YES;
  281 + CLANG_WARN_UNREACHABLE_CODE = YES;
  282 + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
  283 + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
  284 + COPY_PHASE_STRIP = NO;
  285 + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
  286 + ENABLE_NS_ASSERTIONS = NO;
  287 + ENABLE_STRICT_OBJC_MSGSEND = YES;
  288 + GCC_C_LANGUAGE_STANDARD = gnu99;
  289 + GCC_NO_COMMON_BLOCKS = YES;
  290 + GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
  291 + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
  292 + GCC_WARN_UNDECLARED_SELECTOR = YES;
  293 + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
  294 + GCC_WARN_UNUSED_FUNCTION = YES;
  295 + GCC_WARN_UNUSED_VARIABLE = YES;
  296 + IPHONEOS_DEPLOYMENT_TARGET = 8.0;
  297 + MTL_ENABLE_DEBUG_INFO = NO;
  298 + SDKROOT = iphoneos;
  299 + SUPPORTED_PLATFORMS = iphoneos;
  300 + TARGETED_DEVICE_FAMILY = "1,2";
  301 + VALIDATE_PRODUCT = YES;
  302 + };
  303 + name = Profile;
  304 + };
  305 + 249021D4217E4FDB00AE95B9 /* Profile */ = {
  306 + isa = XCBuildConfiguration;
  307 + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
  308 + buildSettings = {
  309 + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
  310 + CLANG_ENABLE_MODULES = YES;
  311 + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
  312 + ENABLE_BITCODE = NO;
  313 + FRAMEWORK_SEARCH_PATHS = (
  314 + "$(inherited)",
  315 + "$(PROJECT_DIR)/Flutter",
  316 + );
  317 + INFOPLIST_FILE = Runner/Info.plist;
  318 + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
  319 + LIBRARY_SEARCH_PATHS = (
  320 + "$(inherited)",
  321 + "$(PROJECT_DIR)/Flutter",
  322 + );
  323 + PRODUCT_BUNDLE_IDENTIFIER = com.naji.oneKey;
  324 + PRODUCT_NAME = "$(TARGET_NAME)";
  325 + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
  326 + SWIFT_VERSION = 5.0;
  327 + VERSIONING_SYSTEM = "apple-generic";
  328 + };
  329 + name = Profile;
  330 + };
  331 + 97C147031CF9000F007C117D /* Debug */ = {
  332 + isa = XCBuildConfiguration;
  333 + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
  334 + buildSettings = {
  335 + ALWAYS_SEARCH_USER_PATHS = NO;
  336 + CLANG_ANALYZER_NONNULL = YES;
  337 + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
  338 + CLANG_CXX_LIBRARY = "libc++";
  339 + CLANG_ENABLE_MODULES = YES;
  340 + CLANG_ENABLE_OBJC_ARC = YES;
  341 + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
  342 + CLANG_WARN_BOOL_CONVERSION = YES;
  343 + CLANG_WARN_COMMA = YES;
  344 + CLANG_WARN_CONSTANT_CONVERSION = YES;
  345 + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
  346 + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
  347 + CLANG_WARN_EMPTY_BODY = YES;
  348 + CLANG_WARN_ENUM_CONVERSION = YES;
  349 + CLANG_WARN_INFINITE_RECURSION = YES;
  350 + CLANG_WARN_INT_CONVERSION = YES;
  351 + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
  352 + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
  353 + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
  354 + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
  355 + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
  356 + CLANG_WARN_STRICT_PROTOTYPES = YES;
  357 + CLANG_WARN_SUSPICIOUS_MOVE = YES;
  358 + CLANG_WARN_UNREACHABLE_CODE = YES;
  359 + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
  360 + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
  361 + COPY_PHASE_STRIP = NO;
  362 + DEBUG_INFORMATION_FORMAT = dwarf;
  363 + ENABLE_STRICT_OBJC_MSGSEND = YES;
  364 + ENABLE_TESTABILITY = YES;
  365 + GCC_C_LANGUAGE_STANDARD = gnu99;
  366 + GCC_DYNAMIC_NO_PIC = NO;
  367 + GCC_NO_COMMON_BLOCKS = YES;
  368 + GCC_OPTIMIZATION_LEVEL = 0;
  369 + GCC_PREPROCESSOR_DEFINITIONS = (
  370 + "DEBUG=1",
  371 + "$(inherited)",
  372 + );
  373 + GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
  374 + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
  375 + GCC_WARN_UNDECLARED_SELECTOR = YES;
  376 + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
  377 + GCC_WARN_UNUSED_FUNCTION = YES;
  378 + GCC_WARN_UNUSED_VARIABLE = YES;
  379 + IPHONEOS_DEPLOYMENT_TARGET = 8.0;
  380 + MTL_ENABLE_DEBUG_INFO = YES;
  381 + ONLY_ACTIVE_ARCH = YES;
  382 + SDKROOT = iphoneos;
  383 + TARGETED_DEVICE_FAMILY = "1,2";
  384 + };
  385 + name = Debug;
  386 + };
  387 + 97C147041CF9000F007C117D /* Release */ = {
  388 + isa = XCBuildConfiguration;
  389 + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
  390 + buildSettings = {
  391 + ALWAYS_SEARCH_USER_PATHS = NO;
  392 + CLANG_ANALYZER_NONNULL = YES;
  393 + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
  394 + CLANG_CXX_LIBRARY = "libc++";
  395 + CLANG_ENABLE_MODULES = YES;
  396 + CLANG_ENABLE_OBJC_ARC = YES;
  397 + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
  398 + CLANG_WARN_BOOL_CONVERSION = YES;
  399 + CLANG_WARN_COMMA = YES;
  400 + CLANG_WARN_CONSTANT_CONVERSION = YES;
  401 + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
  402 + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
  403 + CLANG_WARN_EMPTY_BODY = YES;
  404 + CLANG_WARN_ENUM_CONVERSION = YES;
  405 + CLANG_WARN_INFINITE_RECURSION = YES;
  406 + CLANG_WARN_INT_CONVERSION = YES;
  407 + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
  408 + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
  409 + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
  410 + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
  411 + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
  412 + CLANG_WARN_STRICT_PROTOTYPES = YES;
  413 + CLANG_WARN_SUSPICIOUS_MOVE = YES;
  414 + CLANG_WARN_UNREACHABLE_CODE = YES;
  415 + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
  416 + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
  417 + COPY_PHASE_STRIP = NO;
  418 + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
  419 + ENABLE_NS_ASSERTIONS = NO;
  420 + ENABLE_STRICT_OBJC_MSGSEND = YES;
  421 + GCC_C_LANGUAGE_STANDARD = gnu99;
  422 + GCC_NO_COMMON_BLOCKS = YES;
  423 + GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
  424 + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
  425 + GCC_WARN_UNDECLARED_SELECTOR = YES;
  426 + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
  427 + GCC_WARN_UNUSED_FUNCTION = YES;
  428 + GCC_WARN_UNUSED_VARIABLE = YES;
  429 + IPHONEOS_DEPLOYMENT_TARGET = 8.0;
  430 + MTL_ENABLE_DEBUG_INFO = NO;
  431 + SDKROOT = iphoneos;
  432 + SUPPORTED_PLATFORMS = iphoneos;
  433 + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
  434 + TARGETED_DEVICE_FAMILY = "1,2";
  435 + VALIDATE_PRODUCT = YES;
  436 + };
  437 + name = Release;
  438 + };
  439 + 97C147061CF9000F007C117D /* Debug */ = {
  440 + isa = XCBuildConfiguration;
  441 + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
  442 + buildSettings = {
  443 + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
  444 + CLANG_ENABLE_MODULES = YES;
  445 + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
  446 + ENABLE_BITCODE = NO;
  447 + FRAMEWORK_SEARCH_PATHS = (
  448 + "$(inherited)",
  449 + "$(PROJECT_DIR)/Flutter",
  450 + );
  451 + INFOPLIST_FILE = Runner/Info.plist;
  452 + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
  453 + LIBRARY_SEARCH_PATHS = (
  454 + "$(inherited)",
  455 + "$(PROJECT_DIR)/Flutter",
  456 + );
  457 + PRODUCT_BUNDLE_IDENTIFIER = com.naji.oneKey;
  458 + PRODUCT_NAME = "$(TARGET_NAME)";
  459 + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
  460 + SWIFT_OPTIMIZATION_LEVEL = "-Onone";
  461 + SWIFT_VERSION = 5.0;
  462 + VERSIONING_SYSTEM = "apple-generic";
  463 + };
  464 + name = Debug;
  465 + };
  466 + 97C147071CF9000F007C117D /* Release */ = {
  467 + isa = XCBuildConfiguration;
  468 + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
  469 + buildSettings = {
  470 + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
  471 + CLANG_ENABLE_MODULES = YES;
  472 + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
  473 + ENABLE_BITCODE = NO;
  474 + FRAMEWORK_SEARCH_PATHS = (
  475 + "$(inherited)",
  476 + "$(PROJECT_DIR)/Flutter",
  477 + );
  478 + INFOPLIST_FILE = Runner/Info.plist;
  479 + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
  480 + LIBRARY_SEARCH_PATHS = (
  481 + "$(inherited)",
  482 + "$(PROJECT_DIR)/Flutter",
  483 + );
  484 + PRODUCT_BUNDLE_IDENTIFIER = com.naji.oneKey;
  485 + PRODUCT_NAME = "$(TARGET_NAME)";
  486 + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
  487 + SWIFT_VERSION = 5.0;
  488 + VERSIONING_SYSTEM = "apple-generic";
  489 + };
  490 + name = Release;
  491 + };
  492 +/* End XCBuildConfiguration section */
  493 +
  494 +/* Begin XCConfigurationList section */
  495 + 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
  496 + isa = XCConfigurationList;
  497 + buildConfigurations = (
  498 + 97C147031CF9000F007C117D /* Debug */,
  499 + 97C147041CF9000F007C117D /* Release */,
  500 + 249021D3217E4FDB00AE95B9 /* Profile */,
  501 + );
  502 + defaultConfigurationIsVisible = 0;
  503 + defaultConfigurationName = Release;
  504 + };
  505 + 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
  506 + isa = XCConfigurationList;
  507 + buildConfigurations = (
  508 + 97C147061CF9000F007C117D /* Debug */,
  509 + 97C147071CF9000F007C117D /* Release */,
  510 + 249021D4217E4FDB00AE95B9 /* Profile */,
  511 + );
  512 + defaultConfigurationIsVisible = 0;
  513 + defaultConfigurationName = Release;
  514 + };
  515 +/* End XCConfigurationList section */
  516 + };
  517 + rootObject = 97C146E61CF9000F007C117D /* Project object */;
  518 +}
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<Workspace
  3 + version = "1.0">
  4 + <FileRef
  5 + location = "group:Runner.xcodeproj">
  6 + </FileRef>
  7 +</Workspace>
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<Scheme
  3 + LastUpgradeVersion = "1020"
  4 + version = "1.3">
  5 + <BuildAction
  6 + parallelizeBuildables = "YES"
  7 + buildImplicitDependencies = "YES">
  8 + <BuildActionEntries>
  9 + <BuildActionEntry
  10 + buildForTesting = "YES"
  11 + buildForRunning = "YES"
  12 + buildForProfiling = "YES"
  13 + buildForArchiving = "YES"
  14 + buildForAnalyzing = "YES">
  15 + <BuildableReference
  16 + BuildableIdentifier = "primary"
  17 + BlueprintIdentifier = "97C146ED1CF9000F007C117D"
  18 + BuildableName = "Runner.app"
  19 + BlueprintName = "Runner"
  20 + ReferencedContainer = "container:Runner.xcodeproj">
  21 + </BuildableReference>
  22 + </BuildActionEntry>
  23 + </BuildActionEntries>
  24 + </BuildAction>
  25 + <TestAction
  26 + buildConfiguration = "Debug"
  27 + selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
  28 + selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
  29 + shouldUseLaunchSchemeArgsEnv = "YES">
  30 + <Testables>
  31 + </Testables>
  32 + <MacroExpansion>
  33 + <BuildableReference
  34 + BuildableIdentifier = "primary"
  35 + BlueprintIdentifier = "97C146ED1CF9000F007C117D"
  36 + BuildableName = "Runner.app"
  37 + BlueprintName = "Runner"
  38 + ReferencedContainer = "container:Runner.xcodeproj">
  39 + </BuildableReference>
  40 + </MacroExpansion>
  41 + <AdditionalOptions>
  42 + </AdditionalOptions>
  43 + </TestAction>
  44 + <LaunchAction
  45 + buildConfiguration = "Debug"
  46 + selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
  47 + selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
  48 + launchStyle = "0"
  49 + useCustomWorkingDirectory = "NO"
  50 + ignoresPersistentStateOnLaunch = "NO"
  51 + debugDocumentVersioning = "YES"
  52 + debugServiceExtension = "internal"
  53 + allowLocationSimulation = "YES">
  54 + <BuildableProductRunnable
  55 + runnableDebuggingMode = "0">
  56 + <BuildableReference
  57 + BuildableIdentifier = "primary"
  58 + BlueprintIdentifier = "97C146ED1CF9000F007C117D"
  59 + BuildableName = "Runner.app"
  60 + BlueprintName = "Runner"
  61 + ReferencedContainer = "container:Runner.xcodeproj">
  62 + </BuildableReference>
  63 + </BuildableProductRunnable>
  64 + <AdditionalOptions>
  65 + </AdditionalOptions>
  66 + </LaunchAction>
  67 + <ProfileAction
  68 + buildConfiguration = "Profile"
  69 + shouldUseLaunchSchemeArgsEnv = "YES"
  70 + savedToolIdentifier = ""
  71 + useCustomWorkingDirectory = "NO"
  72 + debugDocumentVersioning = "YES">
  73 + <BuildableProductRunnable
  74 + runnableDebuggingMode = "0">
  75 + <BuildableReference
  76 + BuildableIdentifier = "primary"
  77 + BlueprintIdentifier = "97C146ED1CF9000F007C117D"
  78 + BuildableName = "Runner.app"
  79 + BlueprintName = "Runner"
  80 + ReferencedContainer = "container:Runner.xcodeproj">
  81 + </BuildableReference>
  82 + </BuildableProductRunnable>
  83 + </ProfileAction>
  84 + <AnalyzeAction
  85 + buildConfiguration = "Debug">
  86 + </AnalyzeAction>
  87 + <ArchiveAction
  88 + buildConfiguration = "Release"
  89 + revealArchiveInOrganizer = "YES">
  90 + </ArchiveAction>
  91 +</Scheme>
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<Workspace
  3 + version = "1.0">
  4 + <FileRef
  5 + location = "group:Runner.xcodeproj">
  6 + </FileRef>
  7 +</Workspace>
  1 +import UIKit
  2 +import Flutter
  3 +
  4 +@UIApplicationMain
  5 +@objc class AppDelegate: FlutterAppDelegate {
  6 + override func application(
  7 + _ application: UIApplication,
  8 + didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
  9 + ) -> Bool {
  10 + GeneratedPluginRegistrant.register(with: self)
  11 + return super.application(application, didFinishLaunchingWithOptions: launchOptions)
  12 + }
  13 +}
  1 +{
  2 + "images" : [
  3 + {
  4 + "size" : "20x20",
  5 + "idiom" : "iphone",
  6 + "filename" : "Icon-App-20x20@2x.png",
  7 + "scale" : "2x"
  8 + },
  9 + {
  10 + "size" : "20x20",
  11 + "idiom" : "iphone",
  12 + "filename" : "Icon-App-20x20@3x.png",
  13 + "scale" : "3x"
  14 + },
  15 + {
  16 + "size" : "29x29",
  17 + "idiom" : "iphone",
  18 + "filename" : "Icon-App-29x29@1x.png",
  19 + "scale" : "1x"
  20 + },
  21 + {
  22 + "size" : "29x29",
  23 + "idiom" : "iphone",
  24 + "filename" : "Icon-App-29x29@2x.png",
  25 + "scale" : "2x"
  26 + },
  27 + {
  28 + "size" : "29x29",
  29 + "idiom" : "iphone",
  30 + "filename" : "Icon-App-29x29@3x.png",
  31 + "scale" : "3x"
  32 + },
  33 + {
  34 + "size" : "40x40",
  35 + "idiom" : "iphone",
  36 + "filename" : "Icon-App-40x40@2x.png",
  37 + "scale" : "2x"
  38 + },
  39 + {
  40 + "size" : "40x40",
  41 + "idiom" : "iphone",
  42 + "filename" : "Icon-App-40x40@3x.png",
  43 + "scale" : "3x"
  44 + },
  45 + {
  46 + "size" : "60x60",
  47 + "idiom" : "iphone",
  48 + "filename" : "Icon-App-60x60@2x.png",
  49 + "scale" : "2x"
  50 + },
  51 + {
  52 + "size" : "60x60",
  53 + "idiom" : "iphone",
  54 + "filename" : "Icon-App-60x60@3x.png",
  55 + "scale" : "3x"
  56 + },
  57 + {
  58 + "size" : "20x20",
  59 + "idiom" : "ipad",
  60 + "filename" : "Icon-App-20x20@1x.png",
  61 + "scale" : "1x"
  62 + },
  63 + {
  64 + "size" : "20x20",
  65 + "idiom" : "ipad",
  66 + "filename" : "Icon-App-20x20@2x.png",
  67 + "scale" : "2x"
  68 + },
  69 + {
  70 + "size" : "29x29",
  71 + "idiom" : "ipad",
  72 + "filename" : "Icon-App-29x29@1x.png",
  73 + "scale" : "1x"
  74 + },
  75 + {
  76 + "size" : "29x29",
  77 + "idiom" : "ipad",
  78 + "filename" : "Icon-App-29x29@2x.png",
  79 + "scale" : "2x"
  80 + },
  81 + {
  82 + "size" : "40x40",
  83 + "idiom" : "ipad",
  84 + "filename" : "Icon-App-40x40@1x.png",
  85 + "scale" : "1x"
  86 + },
  87 + {
  88 + "size" : "40x40",
  89 + "idiom" : "ipad",
  90 + "filename" : "Icon-App-40x40@2x.png",
  91 + "scale" : "2x"
  92 + },
  93 + {
  94 + "size" : "76x76",
  95 + "idiom" : "ipad",
  96 + "filename" : "Icon-App-76x76@1x.png",
  97 + "scale" : "1x"
  98 + },
  99 + {
  100 + "size" : "76x76",
  101 + "idiom" : "ipad",
  102 + "filename" : "Icon-App-76x76@2x.png",
  103 + "scale" : "2x"
  104 + },
  105 + {
  106 + "size" : "83.5x83.5",
  107 + "idiom" : "ipad",
  108 + "filename" : "Icon-App-83.5x83.5@2x.png",
  109 + "scale" : "2x"
  110 + },
  111 + {
  112 + "size" : "1024x1024",
  113 + "idiom" : "ios-marketing",
  114 + "filename" : "Icon-App-1024x1024@1x.png",
  115 + "scale" : "1x"
  116 + }
  117 + ],
  118 + "info" : {
  119 + "version" : 1,
  120 + "author" : "xcode"
  121 + }
  122 +}
  1 +{
  2 + "images" : [
  3 + {
  4 + "idiom" : "universal",
  5 + "filename" : "LaunchImage.png",
  6 + "scale" : "1x"
  7 + },
  8 + {
  9 + "idiom" : "universal",
  10 + "filename" : "LaunchImage@2x.png",
  11 + "scale" : "2x"
  12 + },
  13 + {
  14 + "idiom" : "universal",
  15 + "filename" : "LaunchImage@3x.png",
  16 + "scale" : "3x"
  17 + }
  18 + ],
  19 + "info" : {
  20 + "version" : 1,
  21 + "author" : "xcode"
  22 + }
  23 +}
  1 +# Launch Screen Assets
  2 +
  3 +You can customize the launch screen with your own desired assets by replacing the image files in this directory.
  4 +
  5 +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.
  1 +<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2 +<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">
  3 + <dependencies>
  4 + <deployment identifier="iOS"/>
  5 + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12089"/>
  6 + </dependencies>
  7 + <scenes>
  8 + <!--View Controller-->
  9 + <scene sceneID="EHf-IW-A2E">
  10 + <objects>
  11 + <viewController id="01J-lp-oVM" sceneMemberID="viewController">
  12 + <layoutGuides>
  13 + <viewControllerLayoutGuide type="top" id="Ydg-fD-yQy"/>
  14 + <viewControllerLayoutGuide type="bottom" id="xbc-2k-c8Z"/>
  15 + </layoutGuides>
  16 + <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
  17 + <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  18 + <subviews>
  19 + <imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4">
  20 + </imageView>
  21 + </subviews>
  22 + <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  23 + <constraints>
  24 + <constraint firstItem="YRO-k0-Ey4" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="1a2-6s-vTC"/>
  25 + <constraint firstItem="YRO-k0-Ey4" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="4X2-HB-R7a"/>
  26 + </constraints>
  27 + </view>
  28 + </viewController>
  29 + <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
  30 + </objects>
  31 + <point key="canvasLocation" x="53" y="375"/>
  32 + </scene>
  33 + </scenes>
  34 + <resources>
  35 + <image name="LaunchImage" width="168" height="185"/>
  36 + </resources>
  37 +</document>
  1 +<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2 +<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">
  3 + <dependencies>
  4 + <deployment identifier="iOS"/>
  5 + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
  6 + </dependencies>
  7 + <scenes>
  8 + <!--Flutter View Controller-->
  9 + <scene sceneID="tne-QT-ifu">
  10 + <objects>
  11 + <viewController id="BYZ-38-t0r" customClass="FlutterViewController" sceneMemberID="viewController">
  12 + <layoutGuides>
  13 + <viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
  14 + <viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
  15 + </layoutGuides>
  16 + <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
  17 + <rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
  18 + <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  19 + <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
  20 + </view>
  21 + </viewController>
  22 + <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
  23 + </objects>
  24 + </scene>
  25 + </scenes>
  26 +</document>
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>CFBundleDevelopmentRegion</key>
  6 + <string>$(DEVELOPMENT_LANGUAGE)</string>
  7 + <key>CFBundleExecutable</key>
  8 + <string>$(EXECUTABLE_NAME)</string>
  9 + <key>CFBundleIdentifier</key>
  10 + <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
  11 + <key>CFBundleInfoDictionaryVersion</key>
  12 + <string>6.0</string>
  13 + <key>CFBundleName</key>
  14 + <string>一键订</string>
  15 + <key>CFBundlePackageType</key>
  16 + <string>APPL</string>
  17 + <key>CFBundleShortVersionString</key>
  18 + <string>$(FLUTTER_BUILD_NAME)</string>
  19 + <key>CFBundleSignature</key>
  20 + <string>????</string>
  21 + <key>CFBundleVersion</key>
  22 + <string>$(FLUTTER_BUILD_NUMBER)</string>
  23 + <key>LSRequiresIPhoneOS</key>
  24 + <true/>
  25 + <key>UILaunchStoryboardName</key>
  26 + <string>LaunchScreen</string>
  27 + <key>UIMainStoryboardFile</key>
  28 + <string>Main</string>
  29 + <key>UISupportedInterfaceOrientations</key>
  30 + <array>
  31 + <string>UIInterfaceOrientationPortrait</string>
  32 + <string>UIInterfaceOrientationLandscapeLeft</string>
  33 + <string>UIInterfaceOrientationLandscapeRight</string>
  34 + </array>
  35 + <key>UISupportedInterfaceOrientations~ipad</key>
  36 + <array>
  37 + <string>UIInterfaceOrientationPortrait</string>
  38 + <string>UIInterfaceOrientationPortraitUpsideDown</string>
  39 + <string>UIInterfaceOrientationLandscapeLeft</string>
  40 + <string>UIInterfaceOrientationLandscapeRight</string>
  41 + </array>
  42 + <key>UIViewControllerBasedStatusBarAppearance</key>
  43 + <false/>
  44 +</dict>
  45 +</plist>
  1 +#import "GeneratedPluginRegistrant.h"
  1 +{
  2 + "role_name":"无",
  3 + "id":0,
  4 + "sellerid":0,
  5 + "openid":"",
  6 + "receipt_code":"",
  7 + "user_name":"无",
  8 + "user_phone":null,
  9 + "user_wechat":null,
  10 + "photo":null,
  11 + "cdate":"",
  12 + "status":0,
  13 + "qrcode":null,
  14 + "is_first":0,
  15 + "disting":0,
  16 + "add_soucre":null,
  17 + "code":0,
  18 + "uid":0,
  19 + "seat_openid":null,
  20 + "nick_name":"无"
  21 +}
  1 +import 'package:fluro/fluro.dart';
  2 +import 'package:flutter/material.dart';
  3 +import 'package:get_it/get_it.dart';
  4 +import 'package:shared_preferences/shared_preferences.dart';
  5 +
  6 +import 'route/navigate_service.dart';
  7 +
  8 +class App{
  9 + static Router router;
  10 + static GlobalKey<NavigatorState> key = GlobalKey();
  11 + static SharedPreferences sp;
  12 + static double screenWidth;
  13 + static double screenHeight;
  14 + static double statusBarHeight;
  15 + static double bottomBarHeight;
  16 + static GetIt getIt = GetIt.instance;
  17 +
  18 + static initSp() async{
  19 + sp = await SharedPreferences.getInstance();
  20 + }
  21 +
  22 + static setupLocator(){
  23 + getIt.registerSingleton(NavigateService());
  24 + }
  25 +
  26 +}
  1 +//基本常量
  2 +class Constant{
  3 + static const int status_success = 200;//服务器返回成功
  4 +}
  1 +
  2 +import 'package:dio/dio.dart';
  3 +import 'package:fluro/fluro.dart';
  4 +import 'package:flutter/material.dart';
  5 +import 'package:flutter_easyrefresh/ball_pulse_footer.dart';
  6 +import 'package:flutter_easyrefresh/easy_refresh.dart';
  7 +import 'package:flutter_easyrefresh/material_header.dart';
  8 +import 'package:fluwx/fluwx.dart';
  9 +import 'package:one_key/provider/message_dialog_model.dart';
  10 +import 'package:intl/date_symbol_data_local.dart';
  11 +import 'package:one_key/utils/utils.dart';
  12 +import 'package:provider/provider.dart';
  13 +
  14 +import 'app.dart';
  15 +import 'net/dio_util.dart';
  16 +import 'net/http_url.dart';
  17 +import 'pages/login/login_page.dart';
  18 +import 'provider/user_model.dart';
  19 +import 'route/navigate_service.dart';
  20 +import 'route/routes.dart';
  21 +import 'utils/log_util.dart';
  22 +import 'package:flutter/services.dart';
  23 +
  24 +Future<void> main() async {
  25 + Router router = Router();
  26 + Routes.configureRoutes(router);
  27 + App.router = router;
  28 + App.setupLocator();
  29 + LogUtil.init(isDebug: true, tag: 'ONE_KEY');
  30 + Provider.debugCheckInvalidValueType = null;
  31 + await initializeDateFormatting();
  32 + runApp(MultiProvider(
  33 + providers: [
  34 + ChangeNotifierProvider<UserModel>(
  35 + create: (_) => UserModel(),
  36 + ),
  37 + ChangeNotifierProvider<MessageDialogModel>(
  38 + create: (_) => MessageDialogModel()..init(),
  39 + )
  40 + ],
  41 + child: MyApp(),
  42 + ));
  43 +}
  44 +
  45 +class MyApp extends StatefulWidget {
  46 + @override
  47 + State<StatefulWidget> createState() {
  48 + // TODO: implement createState
  49 + return new MyAppState();
  50 + }
  51 +}
  52 +
  53 +class MyAppState extends State<MyApp>{
  54 +
  55 + @override
  56 + void initState() {
  57 + // TODO: implement initState
  58 + super.initState();
  59 + initDio();
  60 + _initFluwx();
  61 + Utils.changeStatusColor();
  62 + // 设置EasyRefresh的默认样式
  63 + EasyRefresh.defaultHeader = MaterialHeader();
  64 + EasyRefresh.defaultFooter = BallPulseFooter();
  65 + }
  66 +
  67 + //初始化微信SDK
  68 + _initFluwx() async {
  69 + await registerWxApi(
  70 + appId: "wx85aa3cdd0f791e65",
  71 + doOnAndroid: true,
  72 + doOnIOS: true,
  73 + universalLink: "https://your.univerallink.com/link/");
  74 + var result = await isWeChatInstalled;
  75 + LogUtil.v("is installed $result");
  76 + }
  77 +
  78 + initDio() {
  79 + DioUtil.openDebug();
  80 + Options options = DioUtil.getDefOptions();
  81 + options.baseUrl = HttpUrl.server_address;
  82 + HttpConfig config = new HttpConfig(
  83 + options: options, status: "ret", code: "ret", msg: "msg", data: "data");
  84 + DioUtil().setConfig(config);
  85 + }
  86 +
  87 +
  88 + @override
  89 + Widget build(BuildContext context) {
  90 + // TODO: implement build
  91 + return MaterialApp(
  92 + debugShowCheckedModeBanner: false,
  93 + title: '一键订',
  94 + navigatorKey: App.getIt<NavigateService>().key,
  95 + theme: ThemeData(
  96 + brightness: Brightness.light,
  97 + primaryColor: Colors.white,
  98 + splashColor: Colors.transparent,
  99 + textTheme: TextTheme(overline: TextStyle(decoration: TextDecoration.none)),
  100 + tooltipTheme: TooltipThemeData(verticalOffset: -100000)),
  101 + home: LoginPage(),
  102 + onGenerateRoute: App.router.generator,
  103 + );
  104 + }
  105 +}
  1 +///桌位区域
  2 +class Area{
  3 +
  4 + String name;
  5 + int count;
  6 +
  7 + Area();
  8 +
  9 + factory Area.fromJson(Map<String,dynamic> json)=>Area()..name=json["name"]..count=json["count"];
  10 +
  11 + Map<String,dynamic> toJson()=><String,dynamic>{"name":name,"count":count};
  12 +}
  1 +class Manager{
  2 + dynamic id;
  3 + String role_name;
  4 + String user_name;
  5 + String nick_name;
  6 + String user_phone;
  7 + String user_wechat;
  8 +
  9 + Manager();
  10 +
  11 + String get roleUserName{
  12 + return "[$role_name]--$userName";
  13 + }
  14 +
  15 + String get userName{
  16 + return nick_name.isEmpty?user_name:nick_name;
  17 + }
  18 +
  19 + factory Manager.fromJson(Map<String,dynamic> json)=>
  20 + Manager()
  21 + ..id=json["id"]
  22 + ..role_name=json["role_name"]
  23 + ..user_name=json["user_name"]
  24 + ..nick_name=json["nick_name"]
  25 + ..user_phone=json["user_phone"]
  26 + ..user_wechat=json["user_wechat"];
  27 +
  28 + Map<String,dynamic> toJson()=><String,dynamic>
  29 + {
  30 + "id":id,
  31 + "role_name":role_name,
  32 + "user_name":user_name,
  33 + "nick_name":nick_name,
  34 + "user_phone":user_phone,
  35 + "user_wechat":user_wechat,
  36 + };
  37 +}
  1 +import 'package:json_annotation/json_annotation.dart';
  2 +
  3 +part 'message.g.dart';
  4 +
  5 +@JsonSerializable()
  6 +class Message {
  7 + Message();
  8 +
  9 + String id;
  10 + String message_type;
  11 + String handle_time;//10在线预订 11取消预订
  12 + String read_time;
  13 + String is_read;
  14 + String is_handle;
  15 + String ddate;
  16 + String rname;
  17 + dynamic sex;
  18 + dynamic cdate;
  19 + dynamic rid;
  20 + String room_demand;
  21 + String ddate_solt;
  22 + dynamic ddate_long;
  23 + String status;
  24 + String room_info;
  25 +
  26 + String get rnameStr{
  27 + switch(sex.toString()){
  28 + case "1"://先生
  29 + return rname+"先生";
  30 + case "2"://女士
  31 + return rname+"女士";
  32 + case "3"://公司
  33 + return rname+"公司";
  34 + }
  35 + }
  36 +
  37 + String get cdateStr{
  38 + DateTime dateTime=DateTime.fromMillisecondsSinceEpoch(int.parse(cdate.toString())*1000);
  39 + if((DateTime.now().difference(dateTime)).inMilliseconds<60000){
  40 + return "刚刚";
  41 + }else{
  42 + return dateTime.year.toString()+"/"+(dateTime.month<10?"0"+dateTime.month.toString():dateTime.month.toString())+"/"+(dateTime.day<10?"0"+dateTime.day.toString():dateTime.day.toString());
  43 + }
  44 + }
  45 +
  46 + factory Message.fromJson(Map<String,dynamic> json) => _$MessageFromJson(json);
  47 + Map<String, dynamic> toJson() => _$MessageToJson(this);
  48 +}
  1 +// GENERATED CODE - DO NOT MODIFY BY HAND
  2 +
  3 +part of 'message.dart';
  4 +
  5 +// **************************************************************************
  6 +// JsonSerializableGenerator
  7 +// **************************************************************************
  8 +
  9 +Message _$MessageFromJson(Map<String, dynamic> json) {
  10 + return Message()
  11 + ..id = json['id'] as String
  12 + ..message_type = json['message_type'] as String
  13 + ..handle_time = json['handle_time'] as String
  14 + ..read_time = json['read_time'] as String
  15 + ..is_read = json['is_read'] as String
  16 + ..is_handle = json['is_handle'] as String
  17 + ..ddate = json['ddate'] as String
  18 + ..rname = json['rname'] as String
  19 + ..sex = json['sex']
  20 + ..cdate = json['cdate']
  21 + ..rid = json['rid']
  22 + ..room_demand = json['room_demand'] as String
  23 + ..ddate_solt = json['ddate_solt'] as String
  24 + ..ddate_long = json['ddate_long']
  25 + ..status = json['status'] as String
  26 + ..room_info = json['room_info'] as String;
  27 +}
  28 +
  29 +Map<String, dynamic> _$MessageToJson(Message instance) => <String, dynamic>{
  30 + 'id': instance.id,
  31 + 'message_type': instance.message_type,
  32 + 'handle_time': instance.handle_time,
  33 + 'read_time': instance.read_time,
  34 + 'is_read': instance.is_read,
  35 + 'is_handle': instance.is_handle,
  36 + 'ddate': instance.ddate,
  37 + 'rname': instance.rname,
  38 + 'sex': instance.sex,
  39 + 'cdate': instance.cdate,
  40 + 'rid': instance.rid,
  41 + 'room_demand': instance.room_demand,
  42 + 'ddate_solt': instance.ddate_solt,
  43 + 'ddate_long': instance.ddate_long,
  44 + 'status': instance.status,
  45 + 'room_info': instance.room_info
  46 + };