├── .fvmrc
├── .gitignore
├── .metadata
├── LICENSE
├── README.md
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── soushin
│ │ │ │ └── tin_flutter
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable-v21
│ │ │ └── launch_background.xml
│ │ │ ├── drawable
│ │ │ └── launch_background.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── values-night
│ │ │ └── styles.xml
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── settings.gradle
└── tin_flutter.jks
├── assets
├── color
│ └── colors.xml
└── images
│ └── icon.png
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Podfile
├── Podfile.lock
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ └── WorkspaceSettings.xcsettings
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── IDEWorkspaceChecks.plist
│ │ └── WorkspaceSettings.xcsettings
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-App-1024x1024@1x.png
│ │ ├── Icon-App-20x20@1x.png
│ │ ├── Icon-App-20x20@2x.png
│ │ ├── Icon-App-20x20@3x.png
│ │ ├── Icon-App-29x29@1x.png
│ │ ├── Icon-App-29x29@2x.png
│ │ ├── Icon-App-29x29@3x.png
│ │ ├── Icon-App-40x40@1x.png
│ │ ├── Icon-App-40x40@2x.png
│ │ ├── Icon-App-40x40@3x.png
│ │ ├── Icon-App-60x60@2x.png
│ │ ├── Icon-App-60x60@3x.png
│ │ ├── Icon-App-76x76@1x.png
│ │ ├── Icon-App-76x76@2x.png
│ │ └── Icon-App-83.5x83.5@2x.png
│ └── LaunchImage.imageset
│ │ ├── Contents.json
│ │ ├── LaunchImage.png
│ │ ├── LaunchImage@2x.png
│ │ ├── LaunchImage@3x.png
│ │ └── README.md
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── Info.plist
│ └── Runner-Bridging-Header.h
├── lib
├── app
│ ├── app_data.dart
│ ├── global.dart
│ ├── logger.dart
│ ├── network
│ │ ├── app_connect.dart
│ │ ├── dio_client.dart
│ │ ├── error_response_handler.dart
│ │ ├── http_service.dart
│ │ ├── retrofit_client.dart
│ │ └── retrofit_client.g.dart
│ ├── res
│ │ └── intl.dart
│ ├── route_observers.dart
│ ├── routes.dart
│ └── widget
│ │ └── header_bar.dart
├── generated
│ ├── gen
│ │ ├── assets.gen.dart
│ │ └── colors.gen.dart
│ └── json
│ │ ├── base
│ │ ├── json_convert_content.dart
│ │ └── json_field.dart
│ │ └── chapter_info_entity.g.dart
├── main.dart
└── ui
│ ├── bean
│ ├── base_response_entity.dart
│ ├── chapter_info_entity.dart
│ └── event_task_bean.dart
│ └── demo
│ ├── connect
│ ├── connect_binding.dart
│ ├── connect_logic.dart
│ ├── connect_page.dart
│ └── connect_state.dart
│ ├── count
│ ├── count_binding.dart
│ ├── count_logic.dart
│ ├── count_page.dart
│ └── count_state.dart
│ ├── dynamic
│ └── dynamic_state.dart
│ ├── home
│ └── home_state.dart
│ ├── main
│ ├── dynamic_page.dart
│ ├── home_page.dart
│ ├── main_binding.dart
│ ├── main_logic.dart
│ ├── main_page.dart
│ ├── main_state.dart
│ └── mine_page.dart
│ ├── mine
│ ├── mine_page.dart
│ └── mine_state.dart
│ ├── multiplex
│ ├── multiplex_binding.dart
│ ├── multiplex_logic.dart
│ ├── multiplex_page.dart
│ └── multiplex_state.dart
│ ├── rx_dart
│ ├── rx_dart_binding.dart
│ ├── rx_dart_logic.dart
│ ├── rx_dart_page.dart
│ └── rx_dart_state.dart
│ ├── storage
│ ├── storage_binding.dart
│ ├── storage_logic.dart
│ ├── storage_page.dart
│ └── storage_state.dart
│ └── web
│ ├── web_binding.dart
│ ├── web_logic.dart
│ ├── web_page.dart
│ └── web_state.dart
├── pubspec.lock
├── pubspec.yaml
├── test
└── widget_test.dart
└── web
├── favicon.png
├── icons
├── Icon-192.png
└── Icon-512.png
├── index.html
└── manifest.json
/.fvmrc:
--------------------------------------------------------------------------------
1 | {
2 | "flutter": "3.27.4"
3 | }
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
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 | **/ios/Flutter/.last_build_id
26 | .dart_tool/
27 | .flutter-plugins
28 | .flutter-plugins-dependencies
29 | .packages
30 | .pub-cache/
31 | .pub/
32 | /build/
33 |
34 | # Web related
35 | lib/generated_plugin_registrant.dart
36 |
37 | # Symbolication related
38 | app.*.symbols
39 |
40 | # Obfuscation related
41 | app.*.map.json
42 |
43 | # Android Studio will place build artifacts here
44 | /android/app/debug
45 | /android/app/profile
46 | /android/app/release
47 |
48 | # FVM Version Cache
49 | .fvm/
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
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: b1395592de68cc8ac4522094ae59956dd21a91db
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "[]"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright [yyyy] [name of copyright owner]
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # TinFlutter
2 |
3 | ## 环境配置要求
4 |
5 | 基于Flutter3.27.1、Dart3.6.0版本开发,使用的三方库都适配了空安全。
6 | 目前可运行于Android iOS Web三种平台,去掉不支持的依赖库依然适用于windows/linux/macos平台
7 |
8 | ### 需要安装的Plugin:
9 | - 基本配置插件: Dart、Kotlin、Flutter
10 | - Flutter Intl 国际化插件,用于生成国际化相关代码
11 | - Json to Dart 对象bean生成插件
12 | - GetX GetX框架插件,用于生成GetX框架相关类和代码
13 |
14 |
15 | 2025-02-16
16 | - 新增依赖插件[flutter_gen](https://pub.dev/packages/flutter_gen)处理资源文件(image/flutter_svg/rive/lottie/color/font)的快速配置
17 | - 升级Flutter版本到3.27.1
18 |
19 | 2024-09-18
20 | - 更新依赖插件
21 |
22 | 2024-01-18
23 | 新增
24 | - 更新依赖插件
25 | - 废弃之前使用的intl插件,使用getX自带的国际化
26 | - 废弃日志打印(logger太花哨,缺少实用),改用自己封装的logger
27 | - 使用FlutterJsonBeanFactory工具,转化json为bean,很适合处理网络请求返回数据
28 | - 使用[retrofit](https://pub.dev/packages/retrofit)接管dio的请求处理
29 | - 包含上述框架的简单演示源码
30 |
31 | 2022-08-20
32 | 新增
33 | - 更新依赖插件
34 | - 废弃之前使用的intl插件,使用getX自带的国际化
35 | - 废弃日志打印(logger太花哨,缺少实用),改用自己封装的logger
36 | - 使用FlutterJsonBeanFactory工具,转化json为bean,很适合处理网络请求返回数据
37 | - 包含上述框架的简单演示源码
38 |
39 | 2021-08-08
40 | 新增
41 | ****注意 此次更新涉及空安全升级 项目所依赖的三方库需要支持空安全
42 | - Flutter项目框架[GetX](https://github.com/jonataslaw/getx)
43 | - 轻量级存储框架[Shared preferences plugin](https://pub.dev/packages/shared_preferences)
44 | - 屏幕适配框架[flutter_screenutil](https://pub.dev/packages/flutter_screenutil)
45 | - 包含上述框架的简单演示源码
46 |
47 | 2021-05-02
48 | 新增
49 | - 刷新加载框架[EasyRefresh](https://github.com/xuelongqy/flutter_easyrefresh)
50 | - Toast框架[FlutterToast](https://github.com/ponnamkarthik/FlutterToast)
51 | - 事件总线[EventBus](https://github.com/marcojakob/dart-event-bushttps://github.com/marcojakob/dart-event-bus)
52 | - 异步处理[RxDart](https://github.com/ReactiveX/rxdart)
53 | - 权限申请[permission_handler](https://github.com/Baseflow/flutter-permission-handler)
54 | - 包含上述框架的简单演示源码
55 |
56 |
57 |
58 |
59 |
60 | ### 参考文档
61 |
62 | - [Flutter GetX使用---简洁的魅力!](https://juejin.cn/post/6924104248275763208)
63 | - [FlutterJsonBeanFactory](https://github.com/fluttercandies/FlutterJsonBeanFactory)
64 |
65 |
66 | ### 其他常用框架
67 | - [Flutter(十七) 实现国际化](https://blog.csdn.net/zhongad007/article/details/106470787/)
68 | - [dio使用文档](https://github.com/flutterchina/dio/blob/master/README-ZH.md)
69 | - [网络框架Dio](https://github.com/flutterchina/dio)
70 | - [Retrofit.dart网络框架](https://github.com/trevorwang/retrofit.dart/)
71 | - [Get框架的快速、超轻量和同步键值存储](https://github.com/jonataslaw/get_storage)
72 | - [fish-redux闲鱼Flutter跨平台解决方案](https://github.com/alibaba/fish-redux)
73 | - [轻量存储库Hive](https://github.com/hivedb/hive)
74 | - [ImagePicker图片选择框架](https://pub.dev/packages/image_picker)
75 | - [json2dart工具网址](https://caijinglong.github.io/json2dart/index_ch.html)
76 |
77 |
78 | ### 问题
79 |
80 | - flutter for web中的跨域问题[flutter for web跨域解决方案](https://www.cnblogs.com/lcosima/p/14504254.html)
81 | - fluttergen 和 fvm冲突导致无法使用时,可编辑$HOME/.pub-cache/bin/fluttergen增加fvm
82 |
83 | ### retrofit适用命令
84 |
85 | # dart
86 | - dart pub run build_runner build
87 |
88 | # flutter
89 | - flutter pub run build_runner build
90 | - flutter pub run build_runner build --delete-conflicting-outputs
91 |
92 |
93 |
94 |
95 |
96 |
97 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 | /gradle/
13 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
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 | android {
29 | compileSdk 34
30 | namespace 'com.soushin.tin_flutter'
31 |
32 | sourceSets {
33 | main.java.srcDirs += 'src/main/kotlin'
34 | }
35 |
36 | defaultConfig {
37 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
38 | applicationId "com.soushin.tin_flutter"
39 | minSdkVersion 21
40 | targetSdkVersion 34
41 | versionCode flutterVersionCode.toInteger()
42 | versionName flutterVersionName
43 | multiDexEnabled true
44 | }
45 | signingConfigs {
46 | config {
47 | keyAlias 'tin_flutter'
48 | keyPassword '123456'
49 | storeFile file('../tin_flutter.jks')
50 | storePassword '123456'
51 | }
52 | }
53 | buildTypes {
54 | release {
55 | signingConfig signingConfigs.config
56 | }
57 | debug {
58 | signingConfig signingConfigs.config
59 | }
60 | }
61 | android.applicationVariants.all { variant ->
62 | variant.outputs.all {
63 | // 自定义文件名{示例:AppName-Flavor-debug-v1.0.0_201807301409}
64 | outputFileName = "flutter${variant.flavorName}_${variant.buildType.name}_${variant.versionName}.apk"
65 | }
66 | }
67 | }
68 |
69 | flutter {
70 | source '../..'
71 | }
72 |
73 | dependencies {
74 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
75 | }
76 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
18 |
26 |
30 |
33 |
38 |
41 |
42 |
43 |
44 |
45 |
46 |
48 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/soushin/tin_flutter/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.soushin.tin_flutter
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | -
8 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | -
8 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/932707629/TinFlutter/1a03ab72d092132bc46560f3e39487770fcb8457/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/932707629/TinFlutter/1a03ab72d092132bc46560f3e39487770fcb8457/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/932707629/TinFlutter/1a03ab72d092132bc46560f3e39487770fcb8457/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/932707629/TinFlutter/1a03ab72d092132bc46560f3e39487770fcb8457/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/932707629/TinFlutter/1a03ab72d092132bc46560f3e39487770fcb8457/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
16 |
19 |
20 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.7.10'
3 | repositories {
4 | //阿里云仓库总览 https://developer.aliyun.com/mvn/guide
5 | maven { url 'https://maven.aliyun.com/repository/google' }
6 | maven { url 'https://maven.aliyun.com/repository/central' }
7 | maven { url 'https://maven.aliyun.com/repository/public' }
8 | maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
9 | maven { url 'https://maven.aliyun.com/repository/spring' }
10 | maven { url 'https://maven.aliyun.com/repository/spring-plugin' }
11 | maven { url 'https://maven.aliyun.com/repository/grails-core' }
12 | maven { url 'https://maven.aliyun.com/repository/apache-snapshots' }
13 | google()
14 | mavenCentral()
15 | maven { url "https://www.jitpack.io" }
16 | }
17 |
18 | dependencies {
19 | classpath 'com.android.tools.build:gradle:8.0.2'
20 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
21 | }
22 | }
23 |
24 | allprojects {
25 | repositories {
26 | //阿里云仓库总览 https://developer.aliyun.com/mvn/guide
27 | maven { url 'https://maven.aliyun.com/repository/google' }
28 | maven { url 'https://maven.aliyun.com/repository/central' }
29 | maven { url 'https://maven.aliyun.com/repository/public' }
30 | maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
31 | maven { url 'https://maven.aliyun.com/repository/spring' }
32 | maven { url 'https://maven.aliyun.com/repository/spring-plugin' }
33 | maven { url 'https://maven.aliyun.com/repository/grails-core' }
34 | maven { url 'https://maven.aliyun.com/repository/apache-snapshots' }
35 | google()
36 | mavenCentral()
37 | maven { url "https://www.jitpack.io" }
38 | }
39 | }
40 |
41 | rootProject.buildDir = '../build'
42 | subprojects {
43 | project.buildDir = "${rootProject.buildDir}/${project.name}"
44 | }
45 | subprojects {
46 | project.evaluationDependsOn(':app')
47 | }
48 |
49 | tasks.register("clean", Delete) {
50 | delete rootProject.buildDir
51 | }
52 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/android/tin_flutter.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/932707629/TinFlutter/1a03ab72d092132bc46560f3e39487770fcb8457/android/tin_flutter.jks
--------------------------------------------------------------------------------
/assets/color/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFFFFF
4 | #000000
5 | #EEEEEE
6 | #979797
7 | #CF2A2A
8 | #DF9527
9 |
10 |
11 |
--------------------------------------------------------------------------------
/assets/images/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/932707629/TinFlutter/1a03ab72d092132bc46560f3e39487770fcb8457/assets/images/icon.png
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
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
33 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 12.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment this line to define a global platform for your project
2 | platform :ios, '12.0'
3 |
4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6 |
7 | project 'Runner', {
8 | 'Debug' => :debug,
9 | 'Profile' => :release,
10 | 'Release' => :release,
11 | }
12 |
13 | def flutter_root
14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
15 | unless File.exist?(generated_xcode_build_settings_path)
16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
17 | end
18 |
19 | File.foreach(generated_xcode_build_settings_path) do |line|
20 | matches = line.match(/FLUTTER_ROOT\=(.*)/)
21 | return matches[1].strip if matches
22 | end
23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
24 | end
25 |
26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
27 |
28 | flutter_ios_podfile_setup
29 |
30 | target 'Runner' do
31 | use_frameworks!
32 | use_modular_headers!
33 |
34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
35 | end
36 |
37 | post_install do |installer|
38 | installer.pods_project.targets.each do |target|
39 | flutter_additional_ios_build_settings(target)
40 | end
41 | end
42 |
--------------------------------------------------------------------------------
/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - Flutter (1.0.0)
3 | - flutter_inappwebview_ios (0.0.1):
4 | - Flutter
5 | - flutter_inappwebview_ios/Core (= 0.0.1)
6 | - OrderedSet (~> 6.0.3)
7 | - flutter_inappwebview_ios/Core (0.0.1):
8 | - Flutter
9 | - OrderedSet (~> 6.0.3)
10 | - fluttertoast (0.0.2):
11 | - Flutter
12 | - OrderedSet (6.0.3)
13 | - path_provider_foundation (0.0.1):
14 | - Flutter
15 | - FlutterMacOS
16 | - permission_handler_apple (9.3.0):
17 | - Flutter
18 | - shared_preferences_foundation (0.0.1):
19 | - Flutter
20 | - FlutterMacOS
21 |
22 | DEPENDENCIES:
23 | - Flutter (from `Flutter`)
24 | - flutter_inappwebview_ios (from `.symlinks/plugins/flutter_inappwebview_ios/ios`)
25 | - fluttertoast (from `.symlinks/plugins/fluttertoast/ios`)
26 | - path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
27 | - permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`)
28 | - shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
29 |
30 | SPEC REPOS:
31 | trunk:
32 | - OrderedSet
33 |
34 | EXTERNAL SOURCES:
35 | Flutter:
36 | :path: Flutter
37 | flutter_inappwebview_ios:
38 | :path: ".symlinks/plugins/flutter_inappwebview_ios/ios"
39 | fluttertoast:
40 | :path: ".symlinks/plugins/fluttertoast/ios"
41 | path_provider_foundation:
42 | :path: ".symlinks/plugins/path_provider_foundation/darwin"
43 | permission_handler_apple:
44 | :path: ".symlinks/plugins/permission_handler_apple/ios"
45 | shared_preferences_foundation:
46 | :path: ".symlinks/plugins/shared_preferences_foundation/darwin"
47 |
48 | SPEC CHECKSUMS:
49 | Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
50 | flutter_inappwebview_ios: 6f63631e2c62a7c350263b13fa5427aedefe81d4
51 | fluttertoast: 21eecd6935e7064cc1fcb733a4c5a428f3f24f0f
52 | OrderedSet: e539b66b644ff081c73a262d24ad552a69be3a94
53 | path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
54 | permission_handler_apple: 9878588469a2b0d0fc1e048d9f43605f92e6cec2
55 | shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78
56 |
57 | PODFILE CHECKSUM: 4e8f8b2be68aeea4c0d5beb6ff1e79fface1d048
58 |
59 | COCOAPODS: 1.15.2
60 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 54;
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 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
16 | BF668365544FD33A471FDAEF /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CFB6C08A3E5F0D45D72CCD05 /* Pods_Runner.framework */; };
17 | /* End PBXBuildFile section */
18 |
19 | /* Begin PBXCopyFilesBuildPhase section */
20 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
21 | isa = PBXCopyFilesBuildPhase;
22 | buildActionMask = 2147483647;
23 | dstPath = "";
24 | dstSubfolderSpec = 10;
25 | files = (
26 | );
27 | name = "Embed Frameworks";
28 | runOnlyForDeploymentPostprocessing = 0;
29 | };
30 | /* End PBXCopyFilesBuildPhase section */
31 |
32 | /* Begin PBXFileReference section */
33 | 061A2BD17203F8EBD76E761B /* 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 = ""; };
34 | 061D81E5FFAB2DD24F45180D /* 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 = ""; };
35 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
36 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
37 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
38 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
39 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
40 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
41 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
42 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
43 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
44 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
45 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
46 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
47 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
48 | CF7FC19D72B8995CC6054EB1 /* 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 = ""; };
49 | CFB6C08A3E5F0D45D72CCD05 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
50 | /* End PBXFileReference section */
51 |
52 | /* Begin PBXFrameworksBuildPhase section */
53 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
54 | isa = PBXFrameworksBuildPhase;
55 | buildActionMask = 2147483647;
56 | files = (
57 | BF668365544FD33A471FDAEF /* Pods_Runner.framework in Frameworks */,
58 | );
59 | runOnlyForDeploymentPostprocessing = 0;
60 | };
61 | /* End PBXFrameworksBuildPhase section */
62 |
63 | /* Begin PBXGroup section */
64 | 184A5AF3F647E109EC2F74FB /* Frameworks */ = {
65 | isa = PBXGroup;
66 | children = (
67 | CFB6C08A3E5F0D45D72CCD05 /* Pods_Runner.framework */,
68 | );
69 | name = Frameworks;
70 | sourceTree = "";
71 | };
72 | 9740EEB11CF90186004384FC /* Flutter */ = {
73 | isa = PBXGroup;
74 | children = (
75 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
76 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
77 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
78 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
79 | );
80 | name = Flutter;
81 | sourceTree = "";
82 | };
83 | 97C146E51CF9000F007C117D = {
84 | isa = PBXGroup;
85 | children = (
86 | 9740EEB11CF90186004384FC /* Flutter */,
87 | 97C146F01CF9000F007C117D /* Runner */,
88 | 97C146EF1CF9000F007C117D /* Products */,
89 | F576E1FBB2303BFF8A860B23 /* Pods */,
90 | 184A5AF3F647E109EC2F74FB /* Frameworks */,
91 | );
92 | sourceTree = "";
93 | };
94 | 97C146EF1CF9000F007C117D /* Products */ = {
95 | isa = PBXGroup;
96 | children = (
97 | 97C146EE1CF9000F007C117D /* Runner.app */,
98 | );
99 | name = Products;
100 | sourceTree = "";
101 | };
102 | 97C146F01CF9000F007C117D /* Runner */ = {
103 | isa = PBXGroup;
104 | children = (
105 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
106 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
107 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
108 | 97C147021CF9000F007C117D /* Info.plist */,
109 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
110 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
111 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
112 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
113 | );
114 | path = Runner;
115 | sourceTree = "";
116 | };
117 | F576E1FBB2303BFF8A860B23 /* Pods */ = {
118 | isa = PBXGroup;
119 | children = (
120 | 061D81E5FFAB2DD24F45180D /* Pods-Runner.debug.xcconfig */,
121 | CF7FC19D72B8995CC6054EB1 /* Pods-Runner.release.xcconfig */,
122 | 061A2BD17203F8EBD76E761B /* Pods-Runner.profile.xcconfig */,
123 | );
124 | path = Pods;
125 | sourceTree = "";
126 | };
127 | /* End PBXGroup section */
128 |
129 | /* Begin PBXNativeTarget section */
130 | 97C146ED1CF9000F007C117D /* Runner */ = {
131 | isa = PBXNativeTarget;
132 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
133 | buildPhases = (
134 | 7BBC87962C7FAAF5A5CE8ABE /* [CP] Check Pods Manifest.lock */,
135 | 9740EEB61CF901F6004384FC /* Run Script */,
136 | 97C146EA1CF9000F007C117D /* Sources */,
137 | 97C146EB1CF9000F007C117D /* Frameworks */,
138 | 97C146EC1CF9000F007C117D /* Resources */,
139 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
140 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
141 | 40427C318246069F1A8EBF47 /* [CP] Embed Pods Frameworks */,
142 | 8705A3F9758766C384716A72 /* [CP] Copy Pods Resources */,
143 | );
144 | buildRules = (
145 | );
146 | dependencies = (
147 | );
148 | name = Runner;
149 | productName = Runner;
150 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
151 | productType = "com.apple.product-type.application";
152 | };
153 | /* End PBXNativeTarget section */
154 |
155 | /* Begin PBXProject section */
156 | 97C146E61CF9000F007C117D /* Project object */ = {
157 | isa = PBXProject;
158 | attributes = {
159 | LastUpgradeCheck = 1510;
160 | ORGANIZATIONNAME = "";
161 | TargetAttributes = {
162 | 97C146ED1CF9000F007C117D = {
163 | CreatedOnToolsVersion = 7.3.1;
164 | LastSwiftMigration = 1100;
165 | };
166 | };
167 | };
168 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
169 | compatibilityVersion = "Xcode 9.3";
170 | developmentRegion = en;
171 | hasScannedForEncodings = 0;
172 | knownRegions = (
173 | en,
174 | Base,
175 | );
176 | mainGroup = 97C146E51CF9000F007C117D;
177 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
178 | projectDirPath = "";
179 | projectRoot = "";
180 | targets = (
181 | 97C146ED1CF9000F007C117D /* Runner */,
182 | );
183 | };
184 | /* End PBXProject section */
185 |
186 | /* Begin PBXResourcesBuildPhase section */
187 | 97C146EC1CF9000F007C117D /* Resources */ = {
188 | isa = PBXResourcesBuildPhase;
189 | buildActionMask = 2147483647;
190 | files = (
191 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
192 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
193 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
194 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
195 | );
196 | runOnlyForDeploymentPostprocessing = 0;
197 | };
198 | /* End PBXResourcesBuildPhase section */
199 |
200 | /* Begin PBXShellScriptBuildPhase section */
201 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
202 | isa = PBXShellScriptBuildPhase;
203 | alwaysOutOfDate = 1;
204 | buildActionMask = 2147483647;
205 | files = (
206 | );
207 | inputPaths = (
208 | "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
209 | );
210 | name = "Thin Binary";
211 | outputPaths = (
212 | );
213 | runOnlyForDeploymentPostprocessing = 0;
214 | shellPath = /bin/sh;
215 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
216 | };
217 | 40427C318246069F1A8EBF47 /* [CP] Embed Pods Frameworks */ = {
218 | isa = PBXShellScriptBuildPhase;
219 | buildActionMask = 2147483647;
220 | files = (
221 | );
222 | inputFileListPaths = (
223 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
224 | );
225 | name = "[CP] Embed Pods Frameworks";
226 | outputFileListPaths = (
227 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
228 | );
229 | runOnlyForDeploymentPostprocessing = 0;
230 | shellPath = /bin/sh;
231 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
232 | showEnvVarsInLog = 0;
233 | };
234 | 7BBC87962C7FAAF5A5CE8ABE /* [CP] Check Pods Manifest.lock */ = {
235 | isa = PBXShellScriptBuildPhase;
236 | buildActionMask = 2147483647;
237 | files = (
238 | );
239 | inputFileListPaths = (
240 | );
241 | inputPaths = (
242 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
243 | "${PODS_ROOT}/Manifest.lock",
244 | );
245 | name = "[CP] Check Pods Manifest.lock";
246 | outputFileListPaths = (
247 | );
248 | outputPaths = (
249 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
250 | );
251 | runOnlyForDeploymentPostprocessing = 0;
252 | shellPath = /bin/sh;
253 | 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";
254 | showEnvVarsInLog = 0;
255 | };
256 | 8705A3F9758766C384716A72 /* [CP] Copy Pods Resources */ = {
257 | isa = PBXShellScriptBuildPhase;
258 | buildActionMask = 2147483647;
259 | files = (
260 | );
261 | inputFileListPaths = (
262 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
263 | );
264 | name = "[CP] Copy Pods Resources";
265 | outputFileListPaths = (
266 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
267 | );
268 | runOnlyForDeploymentPostprocessing = 0;
269 | shellPath = /bin/sh;
270 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
271 | showEnvVarsInLog = 0;
272 | };
273 | 9740EEB61CF901F6004384FC /* Run Script */ = {
274 | isa = PBXShellScriptBuildPhase;
275 | alwaysOutOfDate = 1;
276 | buildActionMask = 2147483647;
277 | files = (
278 | );
279 | inputPaths = (
280 | );
281 | name = "Run Script";
282 | outputPaths = (
283 | );
284 | runOnlyForDeploymentPostprocessing = 0;
285 | shellPath = /bin/sh;
286 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
287 | };
288 | /* End PBXShellScriptBuildPhase section */
289 |
290 | /* Begin PBXSourcesBuildPhase section */
291 | 97C146EA1CF9000F007C117D /* Sources */ = {
292 | isa = PBXSourcesBuildPhase;
293 | buildActionMask = 2147483647;
294 | files = (
295 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
296 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
297 | );
298 | runOnlyForDeploymentPostprocessing = 0;
299 | };
300 | /* End PBXSourcesBuildPhase section */
301 |
302 | /* Begin PBXVariantGroup section */
303 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
304 | isa = PBXVariantGroup;
305 | children = (
306 | 97C146FB1CF9000F007C117D /* Base */,
307 | );
308 | name = Main.storyboard;
309 | sourceTree = "";
310 | };
311 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
312 | isa = PBXVariantGroup;
313 | children = (
314 | 97C147001CF9000F007C117D /* Base */,
315 | );
316 | name = LaunchScreen.storyboard;
317 | sourceTree = "";
318 | };
319 | /* End PBXVariantGroup section */
320 |
321 | /* Begin XCBuildConfiguration section */
322 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
323 | isa = XCBuildConfiguration;
324 | buildSettings = {
325 | ALWAYS_SEARCH_USER_PATHS = NO;
326 | CLANG_ANALYZER_NONNULL = YES;
327 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
328 | CLANG_CXX_LIBRARY = "libc++";
329 | CLANG_ENABLE_MODULES = YES;
330 | CLANG_ENABLE_OBJC_ARC = YES;
331 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
332 | CLANG_WARN_BOOL_CONVERSION = YES;
333 | CLANG_WARN_COMMA = YES;
334 | CLANG_WARN_CONSTANT_CONVERSION = YES;
335 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
336 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
337 | CLANG_WARN_EMPTY_BODY = YES;
338 | CLANG_WARN_ENUM_CONVERSION = YES;
339 | CLANG_WARN_INFINITE_RECURSION = YES;
340 | CLANG_WARN_INT_CONVERSION = YES;
341 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
342 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
343 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
344 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
345 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
346 | CLANG_WARN_STRICT_PROTOTYPES = YES;
347 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
348 | CLANG_WARN_UNREACHABLE_CODE = YES;
349 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
350 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
351 | COPY_PHASE_STRIP = NO;
352 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
353 | ENABLE_NS_ASSERTIONS = NO;
354 | ENABLE_STRICT_OBJC_MSGSEND = YES;
355 | GCC_C_LANGUAGE_STANDARD = gnu99;
356 | GCC_NO_COMMON_BLOCKS = YES;
357 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
358 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
359 | GCC_WARN_UNDECLARED_SELECTOR = YES;
360 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
361 | GCC_WARN_UNUSED_FUNCTION = YES;
362 | GCC_WARN_UNUSED_VARIABLE = YES;
363 | IPHONEOS_DEPLOYMENT_TARGET = 12.0;
364 | MTL_ENABLE_DEBUG_INFO = NO;
365 | SDKROOT = iphoneos;
366 | SUPPORTED_PLATFORMS = iphoneos;
367 | TARGETED_DEVICE_FAMILY = "1,2";
368 | VALIDATE_PRODUCT = YES;
369 | };
370 | name = Profile;
371 | };
372 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
373 | isa = XCBuildConfiguration;
374 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
375 | buildSettings = {
376 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
377 | CLANG_ENABLE_MODULES = YES;
378 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
379 | DEVELOPMENT_TEAM = 85T97ATLCB;
380 | ENABLE_BITCODE = NO;
381 | INFOPLIST_FILE = Runner/Info.plist;
382 | LD_RUNPATH_SEARCH_PATHS = (
383 | "$(inherited)",
384 | "@executable_path/Frameworks",
385 | );
386 | PRODUCT_BUNDLE_IDENTIFIER = com.soushin.tin_flutter;
387 | PRODUCT_NAME = "$(TARGET_NAME)";
388 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
389 | SWIFT_VERSION = 5.0;
390 | VERSIONING_SYSTEM = "apple-generic";
391 | };
392 | name = Profile;
393 | };
394 | 97C147031CF9000F007C117D /* Debug */ = {
395 | isa = XCBuildConfiguration;
396 | buildSettings = {
397 | ALWAYS_SEARCH_USER_PATHS = NO;
398 | CLANG_ANALYZER_NONNULL = YES;
399 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
400 | CLANG_CXX_LIBRARY = "libc++";
401 | CLANG_ENABLE_MODULES = YES;
402 | CLANG_ENABLE_OBJC_ARC = YES;
403 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
404 | CLANG_WARN_BOOL_CONVERSION = YES;
405 | CLANG_WARN_COMMA = YES;
406 | CLANG_WARN_CONSTANT_CONVERSION = YES;
407 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
408 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
409 | CLANG_WARN_EMPTY_BODY = YES;
410 | CLANG_WARN_ENUM_CONVERSION = YES;
411 | CLANG_WARN_INFINITE_RECURSION = YES;
412 | CLANG_WARN_INT_CONVERSION = YES;
413 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
414 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
415 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
416 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
417 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
418 | CLANG_WARN_STRICT_PROTOTYPES = YES;
419 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
420 | CLANG_WARN_UNREACHABLE_CODE = YES;
421 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
422 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
423 | COPY_PHASE_STRIP = NO;
424 | DEBUG_INFORMATION_FORMAT = dwarf;
425 | ENABLE_STRICT_OBJC_MSGSEND = YES;
426 | ENABLE_TESTABILITY = YES;
427 | GCC_C_LANGUAGE_STANDARD = gnu99;
428 | GCC_DYNAMIC_NO_PIC = NO;
429 | GCC_NO_COMMON_BLOCKS = YES;
430 | GCC_OPTIMIZATION_LEVEL = 0;
431 | GCC_PREPROCESSOR_DEFINITIONS = (
432 | "DEBUG=1",
433 | "$(inherited)",
434 | );
435 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
436 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
437 | GCC_WARN_UNDECLARED_SELECTOR = YES;
438 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
439 | GCC_WARN_UNUSED_FUNCTION = YES;
440 | GCC_WARN_UNUSED_VARIABLE = YES;
441 | IPHONEOS_DEPLOYMENT_TARGET = 12.0;
442 | MTL_ENABLE_DEBUG_INFO = YES;
443 | ONLY_ACTIVE_ARCH = YES;
444 | SDKROOT = iphoneos;
445 | TARGETED_DEVICE_FAMILY = "1,2";
446 | };
447 | name = Debug;
448 | };
449 | 97C147041CF9000F007C117D /* Release */ = {
450 | isa = XCBuildConfiguration;
451 | buildSettings = {
452 | ALWAYS_SEARCH_USER_PATHS = NO;
453 | CLANG_ANALYZER_NONNULL = YES;
454 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
455 | CLANG_CXX_LIBRARY = "libc++";
456 | CLANG_ENABLE_MODULES = YES;
457 | CLANG_ENABLE_OBJC_ARC = YES;
458 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
459 | CLANG_WARN_BOOL_CONVERSION = YES;
460 | CLANG_WARN_COMMA = YES;
461 | CLANG_WARN_CONSTANT_CONVERSION = YES;
462 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
463 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
464 | CLANG_WARN_EMPTY_BODY = YES;
465 | CLANG_WARN_ENUM_CONVERSION = YES;
466 | CLANG_WARN_INFINITE_RECURSION = YES;
467 | CLANG_WARN_INT_CONVERSION = YES;
468 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
469 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
470 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
471 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
472 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
473 | CLANG_WARN_STRICT_PROTOTYPES = YES;
474 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
475 | CLANG_WARN_UNREACHABLE_CODE = YES;
476 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
477 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
478 | COPY_PHASE_STRIP = NO;
479 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
480 | ENABLE_NS_ASSERTIONS = NO;
481 | ENABLE_STRICT_OBJC_MSGSEND = YES;
482 | GCC_C_LANGUAGE_STANDARD = gnu99;
483 | GCC_NO_COMMON_BLOCKS = YES;
484 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
485 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
486 | GCC_WARN_UNDECLARED_SELECTOR = YES;
487 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
488 | GCC_WARN_UNUSED_FUNCTION = YES;
489 | GCC_WARN_UNUSED_VARIABLE = YES;
490 | IPHONEOS_DEPLOYMENT_TARGET = 12.0;
491 | MTL_ENABLE_DEBUG_INFO = NO;
492 | SDKROOT = iphoneos;
493 | SUPPORTED_PLATFORMS = iphoneos;
494 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
495 | TARGETED_DEVICE_FAMILY = "1,2";
496 | VALIDATE_PRODUCT = YES;
497 | };
498 | name = Release;
499 | };
500 | 97C147061CF9000F007C117D /* Debug */ = {
501 | isa = XCBuildConfiguration;
502 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
503 | buildSettings = {
504 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
505 | CLANG_ENABLE_MODULES = YES;
506 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
507 | DEVELOPMENT_TEAM = 85T97ATLCB;
508 | ENABLE_BITCODE = NO;
509 | INFOPLIST_FILE = Runner/Info.plist;
510 | LD_RUNPATH_SEARCH_PATHS = (
511 | "$(inherited)",
512 | "@executable_path/Frameworks",
513 | );
514 | PRODUCT_BUNDLE_IDENTIFIER = com.soushin.tin_flutter;
515 | PRODUCT_NAME = "$(TARGET_NAME)";
516 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
517 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
518 | SWIFT_VERSION = 5.0;
519 | VERSIONING_SYSTEM = "apple-generic";
520 | };
521 | name = Debug;
522 | };
523 | 97C147071CF9000F007C117D /* Release */ = {
524 | isa = XCBuildConfiguration;
525 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
526 | buildSettings = {
527 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
528 | CLANG_ENABLE_MODULES = YES;
529 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
530 | DEVELOPMENT_TEAM = 85T97ATLCB;
531 | ENABLE_BITCODE = NO;
532 | INFOPLIST_FILE = Runner/Info.plist;
533 | LD_RUNPATH_SEARCH_PATHS = (
534 | "$(inherited)",
535 | "@executable_path/Frameworks",
536 | );
537 | PRODUCT_BUNDLE_IDENTIFIER = com.soushin.tin_flutter;
538 | PRODUCT_NAME = "$(TARGET_NAME)";
539 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
540 | SWIFT_VERSION = 5.0;
541 | VERSIONING_SYSTEM = "apple-generic";
542 | };
543 | name = Release;
544 | };
545 | /* End XCBuildConfiguration section */
546 |
547 | /* Begin XCConfigurationList section */
548 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
549 | isa = XCConfigurationList;
550 | buildConfigurations = (
551 | 97C147031CF9000F007C117D /* Debug */,
552 | 97C147041CF9000F007C117D /* Release */,
553 | 249021D3217E4FDB00AE95B9 /* Profile */,
554 | );
555 | defaultConfigurationIsVisible = 0;
556 | defaultConfigurationName = Release;
557 | };
558 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
559 | isa = XCConfigurationList;
560 | buildConfigurations = (
561 | 97C147061CF9000F007C117D /* Debug */,
562 | 97C147071CF9000F007C117D /* Release */,
563 | 249021D4217E4FDB00AE95B9 /* Profile */,
564 | );
565 | defaultConfigurationIsVisible = 0;
566 | defaultConfigurationName = Release;
567 | };
568 | /* End XCConfigurationList section */
569 | };
570 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
571 | }
572 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @main
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 | }
14 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
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 | }
123 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/932707629/TinFlutter/1a03ab72d092132bc46560f3e39487770fcb8457/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/932707629/TinFlutter/1a03ab72d092132bc46560f3e39487770fcb8457/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/932707629/TinFlutter/1a03ab72d092132bc46560f3e39487770fcb8457/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/932707629/TinFlutter/1a03ab72d092132bc46560f3e39487770fcb8457/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/932707629/TinFlutter/1a03ab72d092132bc46560f3e39487770fcb8457/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/932707629/TinFlutter/1a03ab72d092132bc46560f3e39487770fcb8457/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/932707629/TinFlutter/1a03ab72d092132bc46560f3e39487770fcb8457/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/932707629/TinFlutter/1a03ab72d092132bc46560f3e39487770fcb8457/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/932707629/TinFlutter/1a03ab72d092132bc46560f3e39487770fcb8457/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/932707629/TinFlutter/1a03ab72d092132bc46560f3e39487770fcb8457/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/932707629/TinFlutter/1a03ab72d092132bc46560f3e39487770fcb8457/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/932707629/TinFlutter/1a03ab72d092132bc46560f3e39487770fcb8457/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/932707629/TinFlutter/1a03ab72d092132bc46560f3e39487770fcb8457/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/932707629/TinFlutter/1a03ab72d092132bc46560f3e39487770fcb8457/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/932707629/TinFlutter/1a03ab72d092132bc46560f3e39487770fcb8457/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
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 | }
24 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/932707629/TinFlutter/1a03ab72d092132bc46560f3e39487770fcb8457/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/932707629/TinFlutter/1a03ab72d092132bc46560f3e39487770fcb8457/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/932707629/TinFlutter/1a03ab72d092132bc46560f3e39487770fcb8457/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | tin_flutter
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | $(FLUTTER_BUILD_NAME)
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSRequiresIPhoneOS
24 |
25 | NSAppTransportSecurity
26 |
27 | NSAllowsArbitraryLoads
28 |
29 |
30 | NSCameraUsageDescription
31 | 需要使用摄像头权限用于用户头像
32 | NSPhotoLibraryUsageDescription
33 | 需要使用图库权限用于用户头像
34 | UILaunchStoryboardName
35 | LaunchScreen
36 | UIMainStoryboardFile
37 | Main
38 | UISupportedInterfaceOrientations
39 |
40 | UIInterfaceOrientationPortrait
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 | UISupportedInterfaceOrientations~ipad
45 |
46 | UIInterfaceOrientationPortrait
47 | UIInterfaceOrientationPortraitUpsideDown
48 | UIInterfaceOrientationLandscapeLeft
49 | UIInterfaceOrientationLandscapeRight
50 |
51 | UIViewControllerBasedStatusBarAppearance
52 |
53 | CADisableMinimumFrameDurationOnPhone
54 |
55 | UIApplicationSupportsIndirectInputEvents
56 |
57 |
58 |
59 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/lib/app/app_data.dart:
--------------------------------------------------------------------------------
1 | import 'package:shared_preferences/shared_preferences.dart';
2 | import 'package:tin_flutter/app/global.dart';
3 |
4 | /// 应用内数据缓存处理
5 | /// @author SouShin
6 | /// @time 2021/8/10 10:22
7 | class AppData {
8 | // static Box? box;
9 | static SharedPreferences? prefs;
10 |
11 | static Future initData() async {
12 | prefs = await SharedPreferences.getInstance();
13 | print("初始化完成${new DateTime.now().toString()} ${prefs!=null}");
14 | return Future.value(prefs!=null);
15 | }
16 |
17 | static void saveLocaleIndex(int index) async {
18 | prefs?.setInt("locale_index", index);
19 | }
20 |
21 | static int queryLocaleIndex() {
22 | // SharedPreferences prefs = await SharedPreferences.getInstance();
23 | return prefs?.getInt("locale_index") == null ? 1 : prefs!.getInt("locale_index")!;
24 | }
25 |
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/lib/app/global.dart:
--------------------------------------------------------------------------------
1 |
2 | import 'package:event_bus/event_bus.dart';
3 | import 'package:fluttertoast/fluttertoast.dart';
4 | import 'package:rxdart/rxdart.dart';
5 |
6 |
7 | ///普通事件
8 | EventBus eventBus=new EventBus();
9 | ///可用于黏性事件
10 | EventBus behaviorBus = EventBus.customController(BehaviorSubject());
11 |
12 | ///显示Toast消息
13 | void showToast(String message){
14 | Fluttertoast.showToast(msg: message,gravity: ToastGravity.CENTER);
15 | }
16 |
17 | ///是否debug环境
18 | final isDebug = !inProduct();
19 |
20 | ///判断程序当前的运行环境
21 | bool inProduct(){
22 | return const bool.fromEnvironment("dart.vm.product");
23 | }
24 |
25 |
26 | class Global{
27 |
28 | static const base_url = "https://www.wanandroid.com/";//:8860
29 |
30 |
31 |
32 | }
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/lib/app/logger.dart:
--------------------------------------------------------------------------------
1 |
2 |
3 | import 'dart:developer';
4 |
5 | import 'package:common_utils/common_utils.dart';
6 | import 'package:tin_flutter/app/global.dart';
7 |
8 |
9 | class Logger{
10 |
11 | static void init({
12 | String tag = 'TinFlutter',
13 | bool isDebug = false,
14 | int maxLen = 128,
15 | }) {
16 | LogUtil.init(tag: tag,isDebug: isDebug,maxLen: maxLen);
17 | }
18 |
19 | }
20 |
21 |
22 | void logger(dynamic message,{String name = ''}){
23 | if(isDebug) {
24 | log(dynamicToString(message),time: DateTime.now(),name: name);
25 | }
26 | }
27 |
28 | void loggerArray(Iterable iterable,{String name = ''}){
29 | if(isDebug) {
30 | logger(StringBuffer(iterable),name: name);
31 | }
32 | }
33 |
34 | void loggerV(Object? object, {String? tag}){
35 | LogUtil.v(object,tag: tag);
36 | }
37 |
38 | void loggerD(Object? object, {String? tag}){
39 | LogUtil.d(object,tag: tag);
40 | }
41 |
42 | void loggerE(Object? object, {String? tag}){
43 | LogUtil.e(object,tag: tag);
44 | }
45 |
46 |
47 | String dynamicToString(dynamic message){
48 | if(message == null){
49 | return 'null';
50 | }else if(message is String){
51 | return message;
52 | }else if(message is Map){
53 | return JsonUtil.encodeObj(message) ?? '';
54 | }else if(message is List){
55 | return message.map((e) => dynamicToString(e)).toList().toString();
56 | }else{
57 | return message.toString();
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/lib/app/network/app_connect.dart:
--------------------------------------------------------------------------------
1 |
2 | import 'package:get/get.dart';
3 | import 'package:get/get_connect/connect.dart';
4 | import 'package:tin_flutter/app/logger.dart';
5 |
6 | class AppConnect extends GetConnect{
7 |
8 | @override
9 | void onInit() {
10 | super.onInit();
11 | // All request will pass to jsonEncode so CasesModel.fromJson()
12 | // httpClient.defaultDecoder
13 | httpClient.baseUrl = 'https://www.wanandroid.com';
14 | //Autenticator will be called 3 times if HttpStatus is
15 | //HttpStatus.unauthorized
16 | httpClient.maxAuthRetries = 3;
17 | httpClient.timeout = Duration(seconds: 60);
18 | // baseUrl = 'https://api.covid19api.com'; // It define baseUrl to
19 | // Http and websockets if used with no [httpClient] instance
20 | // It's will attach 'apikey' property on header from all requests
21 | // httpClient.addRequestModifier((Request request){
22 | // var requestLog = 'REQUEST#################\n'+
23 | // 'HEADERS=${request.headers}\n'+
24 | // 'URL=${request.url}\n'+
25 | // 'METHOD=${request.method}\n'+
26 | // 'CONTENT_LENGTH=${request.contentLength}';
27 | // return request;
28 | // });
29 | // Even if the server sends data from the country "Brazil",
30 | // it will never be displayed to users, because you remove
31 | // that data from the response, even before the response is delivered
32 | httpClient.addResponseModifier((request, response) {
33 | loggerArray([response.statusCode,request.url.toString(),response.bodyString], name: "RESPONSE" );
34 | return response;
35 | });
36 |
37 | /*httpClient.addAuthenticator((Request request) async {
38 | final response = await get("http://yourapi/token");
39 | final token = response.body['token'];
40 | // Set the header
41 | request.headers['Authorization'] = "$token";
42 | return request;
43 | });*/
44 |
45 | }
46 |
47 | AppConnect._internal();
48 |
49 | static AppConnect? instance;
50 |
51 | static getInstance() {
52 | if (instance == null) {
53 | instance = AppConnect._internal();
54 | instance?.onInit();
55 | }
56 | return instance;
57 | }
58 |
59 | factory AppConnect() => getInstance();
60 |
61 |
62 | Stream> getStream(String url, {Map? headers, String? contentType, Map? query, Decoder? decoder}) {
63 | Future> future = get(url, headers:headers, contentType:contentType, query:query, decoder:decoder);
64 | return future.asStream();
65 | }
66 |
67 |
68 | @override
69 | Future> get(String url, {Map? headers, String? contentType, Map? query, Decoder? decoder}) {
70 | loggerArray(['GET请求参数',url,headers,contentType,query]);
71 | return super.get(url, headers:headers, contentType:contentType, query:query, decoder:decoder);
72 | }
73 |
74 |
75 | @override
76 | Future> post(String? url, body, {String? contentType, Map? headers, Map? query, Decoder? decoder, Progress? uploadProgress}) {
77 | final bodyData = (body != null && body is FormData) ? body.fields.map((e) => '${e.key}:${e.value}').toList() : body;
78 | loggerArray(['POST请求参数',url,bodyData,contentType,headers,query]);
79 | return super.post(url, body, contentType: contentType, headers:headers, query:query, decoder:decoder, uploadProgress:uploadProgress);
80 | }
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 | }
--------------------------------------------------------------------------------
/lib/app/network/dio_client.dart:
--------------------------------------------------------------------------------
1 |
2 | import 'package:dio/dio.dart';
3 |
4 | /// 网络访问 替换getx自带的appConnect
5 | ///author: Soushin
6 | ///2023/6/20 20:12
7 | class DioClient {
8 |
9 | DioClient._internal();
10 |
11 | static DioClient? instance;
12 |
13 | static getInstance() {
14 | if (instance == null) {
15 | instance = DioClient._internal();
16 | instance?.onInit();
17 | }
18 | return instance;
19 | }
20 |
21 | factory DioClient() => getInstance();
22 |
23 | final dio = Dio();
24 |
25 | void onInit(){
26 | dio.options.baseUrl = "https://www.wanandroid.com";
27 | dio.options.connectTimeout = Duration(seconds: 60);
28 | dio.options.receiveTimeout = Duration(seconds: 60);
29 | dio.options.sendTimeout = Duration(seconds: 60);
30 |
31 |
32 | }
33 |
34 |
35 |
36 |
37 |
38 | }
39 |
40 |
41 |
--------------------------------------------------------------------------------
/lib/app/network/error_response_handler.dart:
--------------------------------------------------------------------------------
1 |
2 | import 'package:tin_flutter/app/global.dart';
3 | import 'package:tin_flutter/app/logger.dart';
4 |
5 | ///app全局错误监听处理
6 | class ErrorResponseHandler {
7 | ErrorResponseHandler._internal();
8 |
9 | static ErrorResponseHandler? instance;
10 |
11 | static ErrorResponseHandler getInstance() {
12 | instance ??= ErrorResponseHandler._internal();
13 | return instance!;
14 | }
15 |
16 | factory ErrorResponseHandler() => getInstance();
17 |
18 | ///记录一下最后显示吐司的时间
19 | var lastTime = 0;
20 | ///记录最后一次吐司的内容
21 | var lastToast = "";
22 |
23 | void onErrorHandle(dynamic error, {dynamic stackTrace}) {
24 | loggerArray(['onErrorHandle',lastTime, error, stackTrace]);
25 | ///控制连续多次弹出同样内容的吐司
26 | var current = DateTime.now().millisecondsSinceEpoch;
27 | if(error is Map){
28 | responseHandler(error);
29 | } else {
30 | var toast= error.toString();
31 | if(toast != lastToast || (current - lastTime) >= 5000){
32 | lastTime = current;
33 | lastToast = toast;
34 | showToast(toast);
35 | }
36 | }
37 | }
38 |
39 | ///服务返回异常处理
40 | void responseHandler(Map error) {
41 | var toast= error["message"];
42 | var current = DateTime.now().millisecondsSinceEpoch;
43 | if(toast != lastToast || (current - lastTime) >= 5000){
44 | lastTime = current;
45 | lastToast = toast;
46 | switch(error["code"]){
47 | case 401://Unauthorized
48 | showToast(toast);
49 | break;
50 | case 403://Forbidden
51 | showToast(toast);
52 | break;
53 | case 404://Not Found
54 | showToast(toast);
55 | break;
56 | case 900000://系统异常
57 | showToast(toast);
58 | break;
59 | case 900004://整站维护中
60 | showToast(toast);
61 | break;
62 | case 900072://请求参数不合法
63 | showToast(toast);
64 | break;
65 | case 900403://鉴权失败
66 | // ///登录权限已过期,或退出登录
67 | // Get.until((ModalRoute.withName(Routes.main)));
68 | // ///刷新各页面数据
69 | // eventBus.fire(LoginRefreshEvent(show_notice: false));
70 | // ///页面切换到首页
71 | // eventBus.fire(ChangeMainPageEvent(0));
72 | // ///清除用户登录信息
73 | // AppData.clear();
74 | // showToast(toast);
75 | break;
76 | case 900078://无效的请求方式
77 | showToast(toast);
78 | break;
79 | default:
80 | showToast(toast);
81 | break;
82 | }
83 |
84 | }
85 | }
86 |
87 |
88 |
89 | }
90 |
--------------------------------------------------------------------------------
/lib/app/network/http_service.dart:
--------------------------------------------------------------------------------
1 |
2 | import 'dart:convert';
3 |
4 | import 'package:dio/dio.dart';
5 | import 'package:tin_flutter/app/logger.dart';
6 | import 'package:tin_flutter/app/network/error_response_handler.dart';
7 | import 'package:tin_flutter/app/network/retrofit_client.dart';
8 | import 'package:tin_flutter/ui/bean/base_response_entity.dart';
9 | import 'package:tin_flutter/ui/bean/chapter_info_entity.dart';
10 | class HttpService{
11 |
12 | static late RetrofitClient _client;
13 |
14 | static void doInit(){
15 | var dio = Dio();
16 | dio.interceptors.add(InterceptorsWrapper(
17 | onRequest: (options, handler){
18 | options.headers["Content-Type"] = "application/x-www-form-urlencoded";
19 | // options.headers["Accept-Language"] = Intr().currentLocale().languageCode;
20 |
21 | //设备信息【PC:PC网页端,MP:移动端,APP:原生APP】
22 | //网站ID
23 | //机器型号
24 | //系统版本号【APP强制使用】
25 | // var commonParams = {"machineModel":Constants.model(),"siteId":"9000","siteType":"1","terminal":"APP","version":Constants.version()};
26 | // options.queryParameters.addAll(commonParams);
27 | loggerArray(["发起请求","${options.baseUrl}${options.path}\n","${options.method}\n","${options.headers}\n",options.data ?? options.queryParameters]);
28 | handler.next(options);
29 | },
30 | onResponse: (response, handler){
31 | loggerArray(["返回响应",response.requestOptions.path,response.statusCode,"${response.statusMessage}\n",jsonEncode(response.data)]);
32 | if(response.statusCode == 200){
33 | handler.next(response);
34 | }else {
35 | ErrorResponseHandler().onErrorHandle({"code": response.statusCode,"message": response.statusMessage});
36 | }
37 | },
38 | onError: (DioException e, handler){
39 | loggerArray(["异常响应",e.toString()]);
40 | handler.next(e);
41 | }
42 | ));
43 | _client = RetrofitClient(dio);
44 | }
45 |
46 |
47 |
48 | ///游戏返回体
49 | ///封装请求体,自动处理各种异常问题
50 | static Future buildFuture(RequestCallback callback,{bool loading = true,bool needMsg = false,bool errorHandler = true}) async {
51 | // if(loading){ EasyLoading.show(maskType: EasyLoadingMaskType.black,status: Intr().jiazaizhong); }
52 | try{
53 | var value = await callback.call();
54 | // if(loading){ EasyLoading.dismiss(); }
55 | if(value.isOk()){
56 | ///data为null时处理
57 | return Future.value(value.data ?? (needMsg ? value.errorMsg.toString():""));
58 | } else {
59 | if(errorHandler){ ErrorResponseHandler().onErrorHandle({"code": value.errorCode,"message": value.errorMsg.toString()}); }
60 | return Future.error(value.errorMsg.toString());
61 | }
62 | }catch(error){
63 | loggerArray(["请求异常信息",error]);
64 | // if(loading){ EasyLoading.dismiss(); }
65 | if(errorHandler){ ErrorResponseHandler().onErrorHandle(error); }
66 | return Future.error(error);
67 | }
68 | }
69 |
70 |
71 | static Future> getChapters(){
72 | return buildFuture>(()=> _client.getChapters(),loading: false);
73 | }
74 |
75 | static Future queryArticle(Map params,){
76 | return buildFuture(()=> _client.queryArticle(params),loading: false);
77 | }
78 |
79 |
80 |
81 |
82 |
83 | }
84 |
85 |
86 | typedef RequestCallback = Future> Function();
87 |
--------------------------------------------------------------------------------
/lib/app/network/retrofit_client.dart:
--------------------------------------------------------------------------------
1 |
2 | import 'package:dio/dio.dart' hide Headers;
3 | import 'package:retrofit/retrofit.dart';
4 | import 'package:tin_flutter/app/global.dart';
5 | import 'package:tin_flutter/ui/bean/base_response_entity.dart';
6 | import 'package:tin_flutter/ui/bean/chapter_info_entity.dart';
7 |
8 | part 'retrofit_client.g.dart';
9 |
10 | @RestApi(baseUrl: Global.base_url,parser: Parser.JsonSerializable)
11 | abstract class RetrofitClient{
12 |
13 | factory RetrofitClient(Dio dio, {String? baseUrl}) = _RetrofitClient;
14 |
15 |
16 | @GET('/wxarticle/chapters/json')
17 | Future>> getChapters();
18 |
19 | @POST('/article/query/0/json')
20 | Future> queryArticle(@Body() Map params,);
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 | }
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/lib/app/network/retrofit_client.g.dart:
--------------------------------------------------------------------------------
1 | // GENERATED CODE - DO NOT MODIFY BY HAND
2 |
3 | part of 'retrofit_client.dart';
4 |
5 | // **************************************************************************
6 | // RetrofitGenerator
7 | // **************************************************************************
8 |
9 | // ignore_for_file: unnecessary_brace_in_string_interps,no_leading_underscores_for_local_identifiers,unused_element,unnecessary_string_interpolations
10 |
11 | class _RetrofitClient implements RetrofitClient {
12 | _RetrofitClient(
13 | this._dio, {
14 | this.baseUrl,
15 | this.errorLogger,
16 | }) {
17 | baseUrl ??= 'https://www.wanandroid.com/';
18 | }
19 |
20 | final Dio _dio;
21 |
22 | String? baseUrl;
23 |
24 | final ParseErrorLogger? errorLogger;
25 |
26 | @override
27 | Future>> getChapters() async {
28 | final _extra = {};
29 | final queryParameters = {};
30 | final _headers = {};
31 | const Map? _data = null;
32 | final _options =
33 | _setStreamType>>(Options(
34 | method: 'GET',
35 | headers: _headers,
36 | extra: _extra,
37 | )
38 | .compose(
39 | _dio.options,
40 | '/wxarticle/chapters/json',
41 | queryParameters: queryParameters,
42 | data: _data,
43 | )
44 | .copyWith(
45 | baseUrl: _combineBaseUrls(
46 | _dio.options.baseUrl,
47 | baseUrl,
48 | )));
49 | final _result = await _dio.fetch