├── .DS_Store
├── .gitignore
├── .metadata
├── README.md
├── analysis_options.yaml
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── jniLibs
│ │ │ ├── arm64-v8a
│ │ │ │ └── libterm.so
│ │ │ ├── armeabi-v7a
│ │ │ │ └── libterm.so
│ │ │ ├── x86
│ │ │ │ └── libterm.so
│ │ │ └── x86_64
│ │ │ │ └── libterm.so
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── nightmare
│ │ │ │ └── flash_tool
│ │ │ │ └── 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
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── assets
└── android
│ └── fastboot
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Podfile
├── 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
├── config
│ ├── app_colors.dart
│ ├── config.dart
│ └── global.dart
├── flash_tool.dart
├── main.dart
├── pages
│ ├── drawer.dart
│ ├── exec_cmd_page.dart
│ ├── fastboot_func.dart
│ ├── flash_other_partition.dart
│ ├── flash_recovery_page.dart
│ ├── flash_system_page.dart
│ ├── flash_tool.dart
│ ├── flash_tool_body.dart
│ └── flash_tool_mobile.dart
├── utils
│ ├── device_utils.dart
│ └── fastboot_util.dart
└── widgets
│ ├── custom_list.dart
│ ├── item_header.dart
│ ├── scaffold.dart
│ └── terminal.dart
├── macos
├── .gitignore
├── Flutter
│ ├── Flutter-Debug.xcconfig
│ ├── Flutter-Release.xcconfig
│ └── GeneratedPluginRegistrant.swift
├── Podfile
├── Podfile.lock
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ └── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── app_icon_1024.png
│ │ ├── app_icon_128.png
│ │ ├── app_icon_16.png
│ │ ├── app_icon_256.png
│ │ ├── app_icon_32.png
│ │ ├── app_icon_512.png
│ │ └── app_icon_64.png
│ ├── Base.lproj
│ └── MainMenu.xib
│ ├── Configs
│ ├── AppInfo.xcconfig
│ ├── Debug.xcconfig
│ ├── Release.xcconfig
│ └── Warnings.xcconfig
│ ├── DebugProfile.entitlements
│ ├── Info.plist
│ ├── MainFlutterWindow.swift
│ └── Release.entitlements
├── pubspec.lock
├── pubspec.yaml
├── test
└── widget_test.dart
└── web
├── favicon.png
├── icons
├── Icon-192.png
└── Icon-512.png
├── index.html
└── manifest.json
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/.DS_Store
--------------------------------------------------------------------------------
/.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 |
--------------------------------------------------------------------------------
/.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: c14c8d817783e5ea0f0b06885b957725f783c84c
8 | channel: master
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # flash_tool
2 |
3 | 这是使用 `Flutter` 框架开发的线刷工具,为了方便单独维护。
4 | 封装成 `dart package` 的形式,可以在任何地方复用这个组件。
5 |
6 | Language: 中文简体 | [English](README_EN.md)
7 |
8 | ## 支持的平台
9 |
10 | - [x] windows
11 | - [x] macos
12 | - [x] linux
13 | - [x] android
14 | > 很抱歉在经过很久的尝试后,在 android 平台工具的运行依然无法脱离 root 权限,因为在 android 设备上只有拿到高级权限才能对 usb 进行更高级的读写。
15 |
16 | ## 截图
17 |
18 | ## 启动方法
19 |
20 | ## 为什么要选择要自己开发一个线刷工具?
21 |
22 | - 在没有这类工具前,我们可能更多使用 `MiFlash`,的确也非常的方便,但是一些开发者是使用 Linux 或者 Macos 的操作系统,在偶尔的遇到线刷的需求时,就只能通过命令行来刷写 `rec` 、 `rom` 。
23 | - 需要频繁的刷入 `rec`,`rom`,`reboot edl`,`fastboot unlock`,单个分区,这个时候就不妨使用一个可视化的工具来完成这一切,对用户而言,只需要勾选对应的选项即可。
24 |
25 | ## 为什么不是一个命令行?
26 |
27 | 你可能会想将这样功能的一个工具编写成 `bat`,与 `shell` 的方式,然后打印出对应的一些输出,如下:
28 |
29 | ```shell
30 | 1.小米10
31 | 2.小米11
32 | 请输入你想刷入的设备:
33 | ```
34 |
35 | 简言之,我觉得这种方式始终太 low。
36 |
37 | ## 为什么使用 Flutter?
38 |
39 | - Flutter 一直是我认为非常优秀的跨平台框架,我想使用它来作为之后绝大部分工具的开发。
40 | - 我不想关注太多我在 `windows` 、`macos` 、`linux` ,或者是我的 `android` 设备上的各种平台特性,也不想我会为了开发各个平台的工具花费了大量的学习成本。只需要一套代码,可以编译到各个平台。
41 | - 包括热重载,热重启,等等,都是我选择 `Flutter` 框架的理由。
42 |
43 | ## 下载
44 |
45 | 考虑到中国用户,我提供了一个蓝奏云的连接。
46 |
47 | ## 编译
48 |
49 | 进入该工程
50 | `flutter build macos`
51 | 这是一个 Flutter 的项目,如果你想要自行编译该项目,请移步到 [Flutter 文档](https://flutter.dev/docs),
52 |
--------------------------------------------------------------------------------
/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | # Specify analysis options.
2 | #
3 | # Until there are meta linter rules, each desired lint must be explicitly enabled.
4 | # See: https://github.com/dart-lang/linter/issues/288
5 | #
6 | # For a list of lints, see: http://dart-lang.github.io/linter/lints/
7 | # See the configuration guide for more
8 | # https://github.com/dart-lang/sdk/tree/master/pkg/analyzer#configuring-the-analyzer
9 | #
10 | # There are other similar analysis options files in the flutter repos,
11 | # which should be kept in sync with this file:
12 | #
13 | # - analysis_options.yaml (this file)
14 | # - packages/flutter/lib/analysis_options_user.yaml
15 | # - https://github.com/flutter/plugins/blob/master/analysis_options.yaml
16 | # - https://github.com/flutter/engine/blob/master/analysis_options.yaml
17 | #
18 | # This file contains the analysis options used by Flutter tools, such as IntelliJ,
19 | # Android Studio, and the `flutter analyze` command.
20 |
21 | analyzer:
22 | strong-mode:
23 | implicit-casts: false
24 | implicit-dynamic: false
25 | errors:
26 | # treat missing required parameters as a warning (not a hint)
27 | missing_required_param: warning
28 | # treat missing returns as a warning (not a hint)
29 | missing_return: warning
30 | # allow having TODOs in the code
31 | todo: ignore
32 | # allow self-reference to deprecated members (we do this because otherwise we have
33 | # to annotate every member in every test, assert, etc, when we deprecate something)
34 | deprecated_member_use_from_same_package: ignore
35 | # Ignore analyzer hints for updating pubspecs when using Future or
36 | # Stream and not importing dart:async
37 | # Please see https://github.com/flutter/flutter/pull/24528 for details.
38 | sdk_version_async_exported_from_core: ignore
39 | # Turned off until null-safe rollout is complete.
40 | unnecessary_null_comparison: ignore
41 | exclude:
42 | - "bin/cache/**"
43 |
44 | linter:
45 | rules:
46 | # these rules are documented on and in the same order as
47 | # the Dart Lint rules page to make maintenance easier
48 | # https://github.com/dart-lang/linter/blob/master/example/all.yaml
49 | - always_declare_return_types
50 | - always_put_control_body_on_new_line
51 | # - always_put_required_named_parameters_first # we prefer having parameters in the same order as fields https://github.com/flutter/flutter/issues/10219
52 | - always_require_non_null_named_parameters
53 | - always_specify_types
54 | # - always_use_package_imports # we do this commonly
55 | - annotate_overrides
56 | # - avoid_annotating_with_dynamic # conflicts with always_specify_types
57 | - avoid_bool_literals_in_conditional_expressions
58 | # - avoid_catches_without_on_clauses # we do this commonly
59 | # - avoid_catching_errors # we do this commonly
60 | - avoid_classes_with_only_static_members
61 | # - avoid_double_and_int_checks # only useful when targeting JS runtime
62 | # - avoid_dynamic_calls # not yet tested
63 | - avoid_empty_else
64 | - avoid_equals_and_hash_code_on_mutable_classes
65 | # - avoid_escaping_inner_quotes # not yet tested
66 | - avoid_field_initializers_in_const_classes
67 | - avoid_function_literals_in_foreach_calls
68 | # - avoid_implementing_value_types # not yet tested
69 | - avoid_init_to_null
70 | # - avoid_js_rounded_ints # only useful when targeting JS runtime
71 | - avoid_null_checks_in_equality_operators
72 | # - avoid_positional_boolean_parameters # not yet tested
73 | # - avoid_print # not yet tested
74 | # - avoid_private_typedef_functions # we prefer having typedef (discussion in https://github.com/flutter/flutter/pull/16356)
75 | # - avoid_redundant_argument_values # not yet tested
76 | - avoid_relative_lib_imports
77 | - avoid_renaming_method_parameters
78 | - avoid_return_types_on_setters
79 | # - avoid_returning_null # there are plenty of valid reasons to return null
80 | # - avoid_returning_null_for_future # not yet tested
81 | - avoid_returning_null_for_void
82 | # - avoid_returning_this # there are plenty of valid reasons to return this
83 | # - avoid_setters_without_getters # not yet tested
84 | - avoid_shadowing_type_parameters
85 | - avoid_single_cascade_in_expression_statements
86 | - avoid_slow_async_io
87 | - avoid_type_to_string
88 | - avoid_types_as_parameter_names
89 | # - avoid_types_on_closure_parameters # conflicts with always_specify_types
90 | # - avoid_unnecessary_containers # not yet tested
91 | - avoid_unused_constructor_parameters
92 | - avoid_void_async
93 | # - avoid_web_libraries_in_flutter # not yet tested
94 | - await_only_futures
95 | - camel_case_extensions
96 | - camel_case_types
97 | - cancel_subscriptions
98 | # - cascade_invocations # not yet tested
99 | - cast_nullable_to_non_nullable
100 | # - close_sinks # not reliable enough
101 | # - comment_references # blocked on https://github.com/dart-lang/linter/issues/1142
102 | # - constant_identifier_names # needs an opt-out https://github.com/dart-lang/linter/issues/204
103 | - control_flow_in_finally
104 | # - curly_braces_in_flow_control_structures # not required by flutter style
105 | # - deprecated_consistency # not yet tested
106 | # - diagnostic_describe_all_properties # not yet tested
107 | - directives_ordering
108 | # - do_not_use_environment # we do this commonly
109 | - empty_catches
110 | - empty_constructor_bodies
111 | - empty_statements
112 | - exhaustive_cases
113 | - file_names
114 | - flutter_style_todos
115 | - hash_and_equals
116 | - implementation_imports
117 | # - invariant_booleans # too many false positives: https://github.com/dart-lang/linter/issues/811
118 | - iterable_contains_unrelated_type
119 | # - join_return_with_assignment # not required by flutter style
120 | - leading_newlines_in_multiline_strings
121 | - library_names
122 | - library_prefixes
123 | # - lines_longer_than_80_chars # not required by flutter style
124 | - list_remove_unrelated_type
125 | # - literal_only_boolean_expressions # too many false positives: https://github.com/dart-lang/sdk/issues/34181
126 | - missing_whitespace_between_adjacent_strings
127 | - no_adjacent_strings_in_list
128 | # - no_default_cases # too many false positives
129 | - no_duplicate_case_values
130 | - no_logic_in_create_state
131 | # - no_runtimeType_toString # ok in tests; we enable this only in packages/
132 | - non_constant_identifier_names
133 | - null_check_on_nullable_type_parameter
134 | - null_closures
135 | # - omit_local_variable_types # opposite of always_specify_types
136 | # - one_member_abstracts # too many false positives
137 | # - only_throw_errors # https://github.com/flutter/flutter/issues/5792
138 | - overridden_fields
139 | - package_api_docs
140 | - package_names
141 | - package_prefixed_library_names
142 | # - parameter_assignments # we do this commonly
143 | - prefer_adjacent_string_concatenation
144 | - prefer_asserts_in_initializer_lists
145 | # - prefer_asserts_with_message # not required by flutter style
146 | - prefer_collection_literals
147 | - prefer_conditional_assignment
148 | - prefer_const_constructors
149 | - prefer_const_constructors_in_immutables
150 | - prefer_const_declarations
151 | - prefer_const_literals_to_create_immutables
152 | # - prefer_constructors_over_static_methods # far too many false positives
153 | - prefer_contains
154 | # - prefer_double_quotes # opposite of prefer_single_quotes
155 | - prefer_equal_for_default_values
156 | # - prefer_expression_function_bodies # conflicts with https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#consider-using--for-short-functions-and-methods
157 | - prefer_final_fields
158 | - prefer_final_in_for_each
159 | - prefer_final_locals
160 | - prefer_for_elements_to_map_fromIterable
161 | - prefer_foreach
162 | # - prefer_function_declarations_over_variables # not yet tested
163 | - prefer_generic_function_type_aliases
164 | - prefer_if_elements_to_conditional_expressions
165 | - prefer_if_null_operators
166 | - prefer_initializing_formals
167 | - prefer_inlined_adds
168 | # - prefer_int_literals # conflicts with https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#use-double-literals-for-double-constants
169 | # - prefer_interpolation_to_compose_strings # doesn't work with raw strings, see https://github.com/dart-lang/linter/issues/2490
170 | - prefer_is_empty
171 | - prefer_is_not_empty
172 | - prefer_is_not_operator
173 | - prefer_iterable_whereType
174 | # - prefer_mixin # https://github.com/dart-lang/language/issues/32
175 | - prefer_null_aware_operators
176 | # - prefer_relative_imports # not yet tested
177 | - prefer_single_quotes
178 | - prefer_spread_collections
179 | - prefer_typing_uninitialized_variables
180 | - prefer_void_to_null
181 | - provide_deprecation_message
182 | # - public_member_api_docs # enabled on a case-by-case basis; see e.g. packages/analysis_options.yaml
183 | - recursive_getters
184 | - sized_box_for_whitespace
185 | - slash_for_doc_comments
186 | # - sort_child_properties_last # not yet tested
187 | - sort_constructors_first
188 | # - sort_pub_dependencies # prevents separating pinned transitive dependencies
189 | - sort_unnamed_constructors_first
190 | - test_types_in_equals
191 | - throw_in_finally
192 | - tighten_type_of_initializing_formals
193 | # - type_annotate_public_apis # subset of always_specify_types
194 | - type_init_formals
195 | # - unawaited_futures # too many false positives
196 | # - unnecessary_await_in_return # not yet tested
197 | - unnecessary_brace_in_string_interps
198 | - unnecessary_const
199 | # - unnecessary_final # conflicts with prefer_final_locals
200 | - unnecessary_getters_setters
201 | # - unnecessary_lambdas # has false positives: https://github.com/dart-lang/linter/issues/498
202 | - unnecessary_new
203 | - unnecessary_null_aware_assignments
204 | # - unnecessary_null_checks # not yet tested
205 | - unnecessary_null_in_if_null_operators
206 | - unnecessary_nullable_for_final_variable_declarations
207 | - unnecessary_overrides
208 | - unnecessary_parenthesis
209 | # - unnecessary_raw_strings # not yet tested
210 | - unnecessary_statements
211 | - unnecessary_string_escapes
212 | - unnecessary_string_interpolations
213 | - unnecessary_this
214 | - unrelated_type_equality_checks
215 | # - unsafe_html # not yet tested
216 | - use_full_hex_values_for_flutter_colors
217 | # - use_function_type_syntax_for_parameters # not yet tested
218 | # - use_if_null_to_convert_nulls_to_bools # not yet tested
219 | - use_is_even_rather_than_modulo
220 | - use_key_in_widget_constructors
221 | - use_late_for_private_fields_and_variables
222 | # - use_named_constants # not yet yested
223 | - use_raw_strings
224 | - use_rethrow_when_possible
225 | # - use_setters_to_change_properties # not yet tested
226 | # - use_string_buffers # has false positives: https://github.com/dart-lang/sdk/issues/34182
227 | # - use_to_and_as_if_applicable # has false positives, so we prefer to catch this by code-review
228 | - valid_regexps
229 | - void_checks
230 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 | compileSdkVersion 30
30 |
31 | sourceSets {
32 | main.java.srcDirs += 'src/main/kotlin'
33 | }
34 |
35 | defaultConfig {
36 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
37 | applicationId "com.nightmare.flash_tool"
38 | minSdkVersion 16
39 | targetSdkVersion 30
40 | versionCode flutterVersionCode.toInteger()
41 | versionName flutterVersionName
42 | }
43 |
44 | buildTypes {
45 | release {
46 | // TODO: Add your own signing config for the release build.
47 | // Signing with the debug keys for now, so `flutter run --release` works.
48 | signingConfig signingConfigs.debug
49 | }
50 | }
51 | }
52 |
53 | flutter {
54 | source '../..'
55 | }
56 |
57 | dependencies {
58 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
59 | }
60 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
13 |
17 |
21 |
26 |
30 |
31 |
32 |
33 |
34 |
35 |
37 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/android/app/src/main/jniLibs/arm64-v8a/libterm.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/android/app/src/main/jniLibs/arm64-v8a/libterm.so
--------------------------------------------------------------------------------
/android/app/src/main/jniLibs/armeabi-v7a/libterm.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/android/app/src/main/jniLibs/armeabi-v7a/libterm.so
--------------------------------------------------------------------------------
/android/app/src/main/jniLibs/x86/libterm.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/android/app/src/main/jniLibs/x86/libterm.so
--------------------------------------------------------------------------------
/android/app/src/main/jniLibs/x86_64/libterm.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/android/app/src/main/jniLibs/x86_64/libterm.so
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/nightmare/flash_tool/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.nightmare.flash_tool
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 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/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 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.3.50'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:4.1.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | jcenter()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | }
25 | subprojects {
26 | project.evaluationDependsOn(':app')
27 | }
28 |
29 | task clean(type: Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
7 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/assets/android/fastboot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/assets/android/fastboot
--------------------------------------------------------------------------------
/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/ephemeral/
22 | Flutter/app.flx
23 | Flutter/app.zip
24 | Flutter/flutter_assets/
25 | Flutter/flutter_export_environment.sh
26 | ServiceDefinitions.json
27 | Runner/GeneratedPluginRegistrant.*
28 |
29 | # Exceptions to above rules.
30 | !default.mode1v3
31 | !default.mode2v3
32 | !default.pbxuser
33 | !default.perspectivev3
34 |
--------------------------------------------------------------------------------
/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 | 8.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, '9.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/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12 | 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 | /* End PBXBuildFile section */
17 |
18 | /* Begin PBXCopyFilesBuildPhase section */
19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
20 | isa = PBXCopyFilesBuildPhase;
21 | buildActionMask = 2147483647;
22 | dstPath = "";
23 | dstSubfolderSpec = 10;
24 | files = (
25 | );
26 | name = "Embed Frameworks";
27 | runOnlyForDeploymentPostprocessing = 0;
28 | };
29 | /* End PBXCopyFilesBuildPhase section */
30 |
31 | /* Begin PBXFileReference section */
32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
45 | /* End PBXFileReference section */
46 |
47 | /* Begin PBXFrameworksBuildPhase section */
48 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
49 | isa = PBXFrameworksBuildPhase;
50 | buildActionMask = 2147483647;
51 | files = (
52 | );
53 | runOnlyForDeploymentPostprocessing = 0;
54 | };
55 | /* End PBXFrameworksBuildPhase section */
56 |
57 | /* Begin PBXGroup section */
58 | 9740EEB11CF90186004384FC /* Flutter */ = {
59 | isa = PBXGroup;
60 | children = (
61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
65 | );
66 | name = Flutter;
67 | sourceTree = "";
68 | };
69 | 97C146E51CF9000F007C117D = {
70 | isa = PBXGroup;
71 | children = (
72 | 9740EEB11CF90186004384FC /* Flutter */,
73 | 97C146F01CF9000F007C117D /* Runner */,
74 | 97C146EF1CF9000F007C117D /* Products */,
75 | );
76 | sourceTree = "";
77 | };
78 | 97C146EF1CF9000F007C117D /* Products */ = {
79 | isa = PBXGroup;
80 | children = (
81 | 97C146EE1CF9000F007C117D /* Runner.app */,
82 | );
83 | name = Products;
84 | sourceTree = "";
85 | };
86 | 97C146F01CF9000F007C117D /* Runner */ = {
87 | isa = PBXGroup;
88 | children = (
89 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
92 | 97C147021CF9000F007C117D /* Info.plist */,
93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
97 | );
98 | path = Runner;
99 | sourceTree = "";
100 | };
101 | /* End PBXGroup section */
102 |
103 | /* Begin PBXNativeTarget section */
104 | 97C146ED1CF9000F007C117D /* Runner */ = {
105 | isa = PBXNativeTarget;
106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
107 | buildPhases = (
108 | 9740EEB61CF901F6004384FC /* Run Script */,
109 | 97C146EA1CF9000F007C117D /* Sources */,
110 | 97C146EB1CF9000F007C117D /* Frameworks */,
111 | 97C146EC1CF9000F007C117D /* Resources */,
112 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
114 | );
115 | buildRules = (
116 | );
117 | dependencies = (
118 | );
119 | name = Runner;
120 | productName = Runner;
121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
122 | productType = "com.apple.product-type.application";
123 | };
124 | /* End PBXNativeTarget section */
125 |
126 | /* Begin PBXProject section */
127 | 97C146E61CF9000F007C117D /* Project object */ = {
128 | isa = PBXProject;
129 | attributes = {
130 | LastUpgradeCheck = 1020;
131 | ORGANIZATIONNAME = "";
132 | TargetAttributes = {
133 | 97C146ED1CF9000F007C117D = {
134 | CreatedOnToolsVersion = 7.3.1;
135 | LastSwiftMigration = 1100;
136 | };
137 | };
138 | };
139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
140 | compatibilityVersion = "Xcode 9.3";
141 | developmentRegion = en;
142 | hasScannedForEncodings = 0;
143 | knownRegions = (
144 | en,
145 | Base,
146 | );
147 | mainGroup = 97C146E51CF9000F007C117D;
148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
149 | projectDirPath = "";
150 | projectRoot = "";
151 | targets = (
152 | 97C146ED1CF9000F007C117D /* Runner */,
153 | );
154 | };
155 | /* End PBXProject section */
156 |
157 | /* Begin PBXResourcesBuildPhase section */
158 | 97C146EC1CF9000F007C117D /* Resources */ = {
159 | isa = PBXResourcesBuildPhase;
160 | buildActionMask = 2147483647;
161 | files = (
162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
166 | );
167 | runOnlyForDeploymentPostprocessing = 0;
168 | };
169 | /* End PBXResourcesBuildPhase section */
170 |
171 | /* Begin PBXShellScriptBuildPhase section */
172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
173 | isa = PBXShellScriptBuildPhase;
174 | buildActionMask = 2147483647;
175 | files = (
176 | );
177 | inputPaths = (
178 | );
179 | name = "Thin Binary";
180 | outputPaths = (
181 | );
182 | runOnlyForDeploymentPostprocessing = 0;
183 | shellPath = /bin/sh;
184 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
185 | };
186 | 9740EEB61CF901F6004384FC /* Run Script */ = {
187 | isa = PBXShellScriptBuildPhase;
188 | buildActionMask = 2147483647;
189 | files = (
190 | );
191 | inputPaths = (
192 | );
193 | name = "Run Script";
194 | outputPaths = (
195 | );
196 | runOnlyForDeploymentPostprocessing = 0;
197 | shellPath = /bin/sh;
198 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
199 | };
200 | /* End PBXShellScriptBuildPhase section */
201 |
202 | /* Begin PBXSourcesBuildPhase section */
203 | 97C146EA1CF9000F007C117D /* Sources */ = {
204 | isa = PBXSourcesBuildPhase;
205 | buildActionMask = 2147483647;
206 | files = (
207 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
208 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
209 | );
210 | runOnlyForDeploymentPostprocessing = 0;
211 | };
212 | /* End PBXSourcesBuildPhase section */
213 |
214 | /* Begin PBXVariantGroup section */
215 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
216 | isa = PBXVariantGroup;
217 | children = (
218 | 97C146FB1CF9000F007C117D /* Base */,
219 | );
220 | name = Main.storyboard;
221 | sourceTree = "";
222 | };
223 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
224 | isa = PBXVariantGroup;
225 | children = (
226 | 97C147001CF9000F007C117D /* Base */,
227 | );
228 | name = LaunchScreen.storyboard;
229 | sourceTree = "";
230 | };
231 | /* End PBXVariantGroup section */
232 |
233 | /* Begin XCBuildConfiguration section */
234 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
235 | isa = XCBuildConfiguration;
236 | buildSettings = {
237 | ALWAYS_SEARCH_USER_PATHS = NO;
238 | CLANG_ANALYZER_NONNULL = YES;
239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
240 | CLANG_CXX_LIBRARY = "libc++";
241 | CLANG_ENABLE_MODULES = YES;
242 | CLANG_ENABLE_OBJC_ARC = YES;
243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
244 | CLANG_WARN_BOOL_CONVERSION = YES;
245 | CLANG_WARN_COMMA = YES;
246 | CLANG_WARN_CONSTANT_CONVERSION = YES;
247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
249 | CLANG_WARN_EMPTY_BODY = YES;
250 | CLANG_WARN_ENUM_CONVERSION = YES;
251 | CLANG_WARN_INFINITE_RECURSION = YES;
252 | CLANG_WARN_INT_CONVERSION = YES;
253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
258 | CLANG_WARN_STRICT_PROTOTYPES = YES;
259 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
260 | CLANG_WARN_UNREACHABLE_CODE = YES;
261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
263 | COPY_PHASE_STRIP = NO;
264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
265 | ENABLE_NS_ASSERTIONS = NO;
266 | ENABLE_STRICT_OBJC_MSGSEND = YES;
267 | GCC_C_LANGUAGE_STANDARD = gnu99;
268 | GCC_NO_COMMON_BLOCKS = YES;
269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
271 | GCC_WARN_UNDECLARED_SELECTOR = YES;
272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
273 | GCC_WARN_UNUSED_FUNCTION = YES;
274 | GCC_WARN_UNUSED_VARIABLE = YES;
275 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
276 | MTL_ENABLE_DEBUG_INFO = NO;
277 | SDKROOT = iphoneos;
278 | SUPPORTED_PLATFORMS = iphoneos;
279 | TARGETED_DEVICE_FAMILY = "1,2";
280 | VALIDATE_PRODUCT = YES;
281 | };
282 | name = Profile;
283 | };
284 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
285 | isa = XCBuildConfiguration;
286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
287 | buildSettings = {
288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
289 | CLANG_ENABLE_MODULES = YES;
290 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
291 | ENABLE_BITCODE = NO;
292 | INFOPLIST_FILE = Runner/Info.plist;
293 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
294 | PRODUCT_BUNDLE_IDENTIFIER = com.nightmare.flashTool;
295 | PRODUCT_NAME = "$(TARGET_NAME)";
296 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
297 | SWIFT_VERSION = 5.0;
298 | VERSIONING_SYSTEM = "apple-generic";
299 | };
300 | name = Profile;
301 | };
302 | 97C147031CF9000F007C117D /* Debug */ = {
303 | isa = XCBuildConfiguration;
304 | buildSettings = {
305 | ALWAYS_SEARCH_USER_PATHS = NO;
306 | CLANG_ANALYZER_NONNULL = YES;
307 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
308 | CLANG_CXX_LIBRARY = "libc++";
309 | CLANG_ENABLE_MODULES = YES;
310 | CLANG_ENABLE_OBJC_ARC = YES;
311 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
312 | CLANG_WARN_BOOL_CONVERSION = YES;
313 | CLANG_WARN_COMMA = YES;
314 | CLANG_WARN_CONSTANT_CONVERSION = YES;
315 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
316 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
317 | CLANG_WARN_EMPTY_BODY = YES;
318 | CLANG_WARN_ENUM_CONVERSION = YES;
319 | CLANG_WARN_INFINITE_RECURSION = YES;
320 | CLANG_WARN_INT_CONVERSION = YES;
321 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
322 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
323 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
324 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
325 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
326 | CLANG_WARN_STRICT_PROTOTYPES = YES;
327 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
328 | CLANG_WARN_UNREACHABLE_CODE = YES;
329 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
330 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
331 | COPY_PHASE_STRIP = NO;
332 | DEBUG_INFORMATION_FORMAT = dwarf;
333 | ENABLE_STRICT_OBJC_MSGSEND = YES;
334 | ENABLE_TESTABILITY = YES;
335 | GCC_C_LANGUAGE_STANDARD = gnu99;
336 | GCC_DYNAMIC_NO_PIC = NO;
337 | GCC_NO_COMMON_BLOCKS = YES;
338 | GCC_OPTIMIZATION_LEVEL = 0;
339 | GCC_PREPROCESSOR_DEFINITIONS = (
340 | "DEBUG=1",
341 | "$(inherited)",
342 | );
343 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
344 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
345 | GCC_WARN_UNDECLARED_SELECTOR = YES;
346 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
347 | GCC_WARN_UNUSED_FUNCTION = YES;
348 | GCC_WARN_UNUSED_VARIABLE = YES;
349 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
350 | MTL_ENABLE_DEBUG_INFO = YES;
351 | ONLY_ACTIVE_ARCH = YES;
352 | SDKROOT = iphoneos;
353 | TARGETED_DEVICE_FAMILY = "1,2";
354 | };
355 | name = Debug;
356 | };
357 | 97C147041CF9000F007C117D /* Release */ = {
358 | isa = XCBuildConfiguration;
359 | buildSettings = {
360 | ALWAYS_SEARCH_USER_PATHS = NO;
361 | CLANG_ANALYZER_NONNULL = YES;
362 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
363 | CLANG_CXX_LIBRARY = "libc++";
364 | CLANG_ENABLE_MODULES = YES;
365 | CLANG_ENABLE_OBJC_ARC = YES;
366 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
367 | CLANG_WARN_BOOL_CONVERSION = YES;
368 | CLANG_WARN_COMMA = YES;
369 | CLANG_WARN_CONSTANT_CONVERSION = YES;
370 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
371 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
372 | CLANG_WARN_EMPTY_BODY = YES;
373 | CLANG_WARN_ENUM_CONVERSION = YES;
374 | CLANG_WARN_INFINITE_RECURSION = YES;
375 | CLANG_WARN_INT_CONVERSION = YES;
376 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
377 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
378 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
379 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
380 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
381 | CLANG_WARN_STRICT_PROTOTYPES = YES;
382 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
383 | CLANG_WARN_UNREACHABLE_CODE = YES;
384 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
385 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
386 | COPY_PHASE_STRIP = NO;
387 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
388 | ENABLE_NS_ASSERTIONS = NO;
389 | ENABLE_STRICT_OBJC_MSGSEND = YES;
390 | GCC_C_LANGUAGE_STANDARD = gnu99;
391 | GCC_NO_COMMON_BLOCKS = YES;
392 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
393 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
394 | GCC_WARN_UNDECLARED_SELECTOR = YES;
395 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
396 | GCC_WARN_UNUSED_FUNCTION = YES;
397 | GCC_WARN_UNUSED_VARIABLE = YES;
398 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
399 | MTL_ENABLE_DEBUG_INFO = NO;
400 | SDKROOT = iphoneos;
401 | SUPPORTED_PLATFORMS = iphoneos;
402 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
403 | TARGETED_DEVICE_FAMILY = "1,2";
404 | VALIDATE_PRODUCT = YES;
405 | };
406 | name = Release;
407 | };
408 | 97C147061CF9000F007C117D /* Debug */ = {
409 | isa = XCBuildConfiguration;
410 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
411 | buildSettings = {
412 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
413 | CLANG_ENABLE_MODULES = YES;
414 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
415 | ENABLE_BITCODE = NO;
416 | INFOPLIST_FILE = Runner/Info.plist;
417 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
418 | PRODUCT_BUNDLE_IDENTIFIER = com.nightmare.flashTool;
419 | PRODUCT_NAME = "$(TARGET_NAME)";
420 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
421 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
422 | SWIFT_VERSION = 5.0;
423 | VERSIONING_SYSTEM = "apple-generic";
424 | };
425 | name = Debug;
426 | };
427 | 97C147071CF9000F007C117D /* Release */ = {
428 | isa = XCBuildConfiguration;
429 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
430 | buildSettings = {
431 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
432 | CLANG_ENABLE_MODULES = YES;
433 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
434 | ENABLE_BITCODE = NO;
435 | INFOPLIST_FILE = Runner/Info.plist;
436 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
437 | PRODUCT_BUNDLE_IDENTIFIER = com.nightmare.flashTool;
438 | PRODUCT_NAME = "$(TARGET_NAME)";
439 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
440 | SWIFT_VERSION = 5.0;
441 | VERSIONING_SYSTEM = "apple-generic";
442 | };
443 | name = Release;
444 | };
445 | /* End XCBuildConfiguration section */
446 |
447 | /* Begin XCConfigurationList section */
448 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
449 | isa = XCConfigurationList;
450 | buildConfigurations = (
451 | 97C147031CF9000F007C117D /* Debug */,
452 | 97C147041CF9000F007C117D /* Release */,
453 | 249021D3217E4FDB00AE95B9 /* Profile */,
454 | );
455 | defaultConfigurationIsVisible = 0;
456 | defaultConfigurationName = Release;
457 | };
458 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
459 | isa = XCConfigurationList;
460 | buildConfigurations = (
461 | 97C147061CF9000F007C117D /* Debug */,
462 | 97C147071CF9000F007C117D /* Release */,
463 | 249021D4217E4FDB00AE95B9 /* Profile */,
464 | );
465 | defaultConfigurationIsVisible = 0;
466 | defaultConfigurationName = Release;
467 | };
468 | /* End XCConfigurationList section */
469 | };
470 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
471 | }
472 |
--------------------------------------------------------------------------------
/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 |
8 |
--------------------------------------------------------------------------------
/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 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
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/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/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/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/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/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/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/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/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/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/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/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/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/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/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/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/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/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/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/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/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/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/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/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/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/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/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/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/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/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/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/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/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 | flash_tool
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | $(FLUTTER_BUILD_NAME)
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 | UISupportedInterfaceOrientations~ipad
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationPortraitUpsideDown
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 | UIViewControllerBasedStatusBarAppearance
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/lib/config/app_colors.dart:
--------------------------------------------------------------------------------
1 | import 'dart:ui';
2 |
3 | import 'package:global_repository/global_repository.dart';
4 |
5 | class AppColors {
6 | static Color fontTitle = Color(0xff0d0d14);
7 |
8 | // static Color accent = const Color(0xff3573e0);
9 | static Color accent = CandyColors.deepPurple;
10 | static Color fontDetail = Color(0xff707076);
11 | static Color contentBorder = Color(0xfff0f1f3);
12 | }
13 |
--------------------------------------------------------------------------------
/lib/config/config.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 |
3 | class FastbootConfig {
4 | FastbootConfig._();
5 |
6 | static String flutterPackage = '';
7 | static String version = '1.0.7';
8 | static String get binPath => () {
9 | if (Platform.isAndroid) {
10 | return 'data/data/com.example.example/files';
11 | }
12 | return [
13 | FileSystemEntity.parentOf(Platform.resolvedExecutable),
14 | 'data',
15 | 'flutter_assets',
16 | 'assets',
17 | Platform.operatingSystem,
18 | ].join(Platform.pathSeparator);
19 | }();
20 | static String get adbPath => () {
21 | return binPath + Platform.pathSeparator + 'adb.exe';
22 | }();
23 | static double drawerWidth = 260;
24 | }
25 |
--------------------------------------------------------------------------------
/lib/config/global.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 |
3 | import 'package:global_repository/global_repository.dart';
4 | import 'package:termare_pty/termare_pty.dart';
5 | import 'package:termare_view/termare_view.dart';
6 | import 'app_colors.dart';
7 | import 'config.dart';
8 |
9 | class Global {
10 | // 工厂模式
11 | factory Global() => _getInstance();
12 | Global._internal() {
13 | String executable = '';
14 | if (Platform.environment.containsKey('SHELL')) {
15 | executable = Platform.environment['SHELL'];
16 | // 取的只是执行的文件名
17 | executable = executable.replaceAll(RegExp('.*/'), '');
18 | } else {
19 | if (Platform.isMacOS) {
20 | executable = 'bash';
21 | } else if (Platform.isWindows) {
22 | executable = 'wsl';
23 | } else if (Platform.isAndroid) {
24 | executable = 'sh';
25 | }
26 | }
27 | Log.e('RuntimeEnvir.path -> ${RuntimeEnvir.path}');
28 | final Map environment = {
29 | 'TERM': 'xterm-256color',
30 | 'PATH': RuntimeEnvir.path,
31 | };
32 | const String workingDirectory = '.';
33 | pseudoTerminal = PseudoTerminal(
34 | column: 10,
35 | executable: executable,
36 | workingDirectory: workingDirectory,
37 | environment: environment,
38 | arguments: ['-l'],
39 | );
40 | pseudoTerminal.write('clear\n');
41 | }
42 | PseudoTerminal pseudoTerminal;
43 | TermareController termareController = TermareController(
44 | theme: TermareStyles.macos.copyWith(
45 | backgroundColor: AppColors.contentBorder,
46 | ),
47 | )..hideCursor();
48 | static Global get instance => _getInstance();
49 | static Global _instance;
50 |
51 | static Global _getInstance() {
52 | _instance ??= Global._internal();
53 | return _instance;
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/lib/flash_tool.dart:
--------------------------------------------------------------------------------
1 | library flash_tool;
2 |
3 | export 'config/config.dart';
4 | export 'pages/flash_tool.dart';
5 | export 'pages/flash_tool_body.dart';
6 | export 'pages/flash_tool_mobile.dart';
7 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 | import 'dart:typed_data';
3 |
4 | import 'package:flash_tool/config/app_colors.dart';
5 | import 'package:flash_tool/flash_tool.dart';
6 | import 'package:flutter/material.dart';
7 | import 'package:flutter/services.dart';
8 | import 'package:global_repository/global_repository.dart';
9 |
10 | void main() {
11 | RuntimeEnvir.initEnvirWithPackageName('com.nightmare.flash_tool');
12 | runApp(NiToastNew(
13 | child: MyApp(),
14 | ));
15 | if (Platform.isAndroid) {
16 | SystemChrome.setSystemUIOverlayStyle(
17 | const SystemUiOverlayStyle(statusBarColor: Colors.transparent),
18 | );
19 | }
20 | }
21 |
22 | class MyApp extends StatelessWidget {
23 | // This widget is the root of your application.
24 | @override
25 | Widget build(BuildContext context) {
26 | return MaterialApp(
27 | debugShowCheckedModeBanner: false,
28 | title: '刷机工具',
29 | theme: ThemeData(
30 | visualDensity: VisualDensity.adaptivePlatformDensity,
31 | accentColor: AppColors.accent,
32 | appBarTheme: AppBarTheme(
33 | backgroundColor: Colors.transparent,
34 | elevation: 0.0,
35 | centerTitle: true,
36 | iconTheme: IconThemeData(
37 | color: AppColors.fontTitle,
38 | ),
39 | textTheme: TextTheme(
40 | headline6: TextStyle(
41 | height: 1.0,
42 | fontSize: 20.0,
43 | color: AppColors.fontTitle,
44 | fontWeight: FontWeight.bold,
45 | ),
46 | ),
47 | ),
48 | ),
49 | home: FlashTool(),
50 | );
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/lib/pages/drawer.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 | import 'dart:ui';
3 | import 'package:flash_tool/config/app_colors.dart';
4 | import 'package:flash_tool/config/config.dart';
5 | import 'package:flutter/foundation.dart';
6 | import 'package:flutter/material.dart';
7 | import 'package:global_repository/global_repository.dart';
8 |
9 | class DrawerPage extends StatefulWidget {
10 | const DrawerPage({
11 | Key key,
12 | this.onChange,
13 | this.index,
14 | }) : super(key: key);
15 | final void Function(int index) onChange;
16 | final int index;
17 |
18 | @override
19 | _DrawerPageState createState() => _DrawerPageState();
20 | }
21 |
22 | class _DrawerPageState extends State {
23 | @override
24 | Widget build(BuildContext context) {
25 | double width = 0;
26 | if (!kIsWeb &&
27 | MediaQuery.of(context).orientation == Orientation.landscape) {
28 | width = MediaQuery.of(context).size.width * 3 / 10;
29 | } else {
30 | width = FastbootConfig.drawerWidth;
31 | }
32 | return OrientationBuilder(
33 | builder: (context, orientation) {
34 | print('orientation -> $orientation');
35 | return Material(
36 | color: Theme.of(context).scaffoldBackgroundColor,
37 | // color: Colors.white,
38 | child: SafeArea(
39 | child: SizedBox(
40 | width: width,
41 | height: MediaQuery.of(context).size.height,
42 | child: Builder(
43 | builder: (_) {
44 | if (orientation == Orientation.portrait) {
45 | return buildBody(context);
46 | }
47 |
48 | return SingleChildScrollView(
49 | child: SizedBox(
50 | child: buildBody(context),
51 | ),
52 | );
53 | },
54 | ),
55 | ),
56 | ),
57 | );
58 | },
59 | );
60 | }
61 |
62 | Widget buildBody(BuildContext context) {
63 | return Padding(
64 | padding: const EdgeInsets.only(
65 | top: 48,
66 | ),
67 | child: Column(
68 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
69 | crossAxisAlignment: CrossAxisAlignment.start,
70 | children: [
71 | Column(
72 | crossAxisAlignment: CrossAxisAlignment.start,
73 | children: [
74 | Align(
75 | alignment: Alignment.centerLeft,
76 | child: Padding(
77 | padding: EdgeInsets.symmetric(
78 | horizontal: Dimens.gap_dp12,
79 | vertical: Dimens.gap_dp8,
80 | ),
81 | child: Text(
82 | '刷机工具',
83 | style: TextStyle(
84 | fontSize: 30.0,
85 | fontWeight: FontWeight.bold,
86 | color: AppColors.accent,
87 | ),
88 | ),
89 | ),
90 | ),
91 | _DrawerItem(
92 | title: '刷写系统',
93 | value: 0,
94 | groupValue: widget.index,
95 | onTap: (index) {
96 | widget.onChange?.call(index);
97 | },
98 | iconData: Icons.home,
99 | ),
100 | _DrawerItem(
101 | value: 1,
102 | groupValue: widget.index,
103 | title: '刷写REC',
104 | iconData: Icons.file_download,
105 | onTap: (index) {
106 | widget.onChange?.call(index);
107 | },
108 | ),
109 | // _DrawerItem(
110 | // title: '当前设备ip',
111 | // onTap: () {},
112 | // ),
113 |
114 | _DrawerItem(
115 | value: 2,
116 | groupValue: widget.index,
117 | title: '执行自定义命令',
118 | iconData: Icons.code,
119 | onTap: (index) {
120 | widget.onChange?.call(index);
121 | },
122 | ),
123 |
124 | // _DrawerItem(
125 | // value: 5,
126 | // groupValue: widget.index,
127 | // title: '刷写其他分区',
128 | // iconData: Icons.history,
129 | // onTap: (index) async {
130 | // widget.onChange?.call(index);
131 | // },
132 | // ),
133 | ],
134 | ),
135 | Column(
136 | crossAxisAlignment: CrossAxisAlignment.start,
137 | children: [
138 | Padding(
139 | padding: EdgeInsets.all(Dimens.gap_dp16),
140 | child: Text(
141 | '版本:${FastbootConfig.version}',
142 | style: const TextStyle(
143 | // fontWeight: FontWeight.bold,
144 | color: Colors.grey,
145 | ),
146 | ),
147 | ),
148 | ],
149 | ),
150 | ],
151 | ),
152 | );
153 | }
154 | }
155 |
156 | class _DrawerItem extends StatelessWidget {
157 | const _DrawerItem({
158 | Key key,
159 | this.title,
160 | this.onTap,
161 | this.value,
162 | this.groupValue,
163 | this.iconData,
164 | }) : super(key: key);
165 | final String title;
166 | final void Function(int index) onTap;
167 | final int value;
168 | final int groupValue;
169 | final IconData iconData;
170 |
171 | @override
172 | Widget build(BuildContext context) {
173 | final bool isChecked = value == groupValue;
174 | return Padding(
175 | padding: EdgeInsets.only(
176 | right: Dimens.gap_dp32,
177 | ),
178 | child: InkWell(
179 | onTap: () => onTap(value),
180 | splashColor: Colors.transparent,
181 | borderRadius: const BorderRadius.only(
182 | topRight: Radius.circular(24),
183 | bottomRight: Radius.circular(24),
184 | ),
185 | child: Stack(
186 | alignment: Alignment.centerLeft,
187 | children: [
188 | Container(
189 | height: Dimens.gap_dp56,
190 | decoration: isChecked
191 | ? BoxDecoration(
192 | color: AppColors.accent.withOpacity(0.1),
193 | borderRadius: const BorderRadius.only(
194 | topRight: Radius.circular(24),
195 | bottomRight: Radius.circular(24),
196 | ),
197 | )
198 | : null,
199 | ),
200 | SizedBox(
201 | child: Align(
202 | alignment: Alignment.centerLeft,
203 | child: Padding(
204 | padding: const EdgeInsets.only(
205 | left: 16.0,
206 | ),
207 | child: Row(
208 | children: [
209 | Icon(
210 | iconData ?? Icons.open_in_new,
211 | size: 18,
212 | color:
213 | isChecked ? AppColors.accent : AppColors.fontTitle,
214 | ),
215 | SizedBox(
216 | width: Dimens.gap_dp8,
217 | ),
218 | Text(
219 | title,
220 | style: TextStyle(
221 | color: isChecked
222 | ? AppColors.accent
223 | : AppColors.fontTitle,
224 | fontSize: Dimens.font_sp14,
225 | fontWeight: FontWeight.bold,
226 | ),
227 | ),
228 | ],
229 | ),
230 | ),
231 | ),
232 | ),
233 | ],
234 | ),
235 | ),
236 | );
237 | }
238 | }
239 |
--------------------------------------------------------------------------------
/lib/pages/exec_cmd_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:dart_pty/dart_pty.dart';
2 | import 'package:flash_tool/config/global.dart';
3 | import 'package:flash_tool/widgets/terminal.dart';
4 | import 'package:flutter/foundation.dart';
5 | import 'package:flutter/material.dart';
6 | import 'package:global_repository/global_repository.dart';
7 | import 'package:termare_pty/termare_pty.dart';
8 |
9 | class ExecCmdPage extends StatefulWidget {
10 | @override
11 | _ExecCmdPageState createState() => _ExecCmdPageState();
12 | }
13 |
14 | class _ExecCmdPageState extends State {
15 | TextEditingController editingController = TextEditingController();
16 | FocusNode focusNode = FocusNode();
17 | Future execCmd() async {
18 | // Provider.of(context).clear();
19 | // final String cmd = editingController.text;
20 | // final String result = await exec('echo $cmd\n$cmd');
21 | // Provider.of(context).appendOut(result);
22 |
23 | // Provider.of(context).clear();
24 | Global.instance.pseudoTerminal.write(editingController.text + '\n');
25 | // NiProcess.exec(
26 | // editingController.text,
27 | // getStderr: true,
28 | // callback: (output) {
29 | // print('ss======>$output');
30 |
31 | // if (output.trim() == 'process_exit') {
32 | // return;
33 | // }
34 | // output = output.replaceAll('process_exit', '');
35 | // Provider.of(context).appendOut(output);
36 | // },
37 | // );
38 | editingController.clear();
39 | focusNode.requestFocus();
40 | }
41 |
42 | @override
43 | Widget build(BuildContext context) {
44 | AppBar appBar;
45 | if (kIsWeb || MediaQuery.of(context).orientation == Orientation.portrait) {
46 | appBar = AppBar(
47 | backgroundColor: Colors.transparent,
48 | elevation: 0,
49 | brightness: Brightness.light,
50 | title: const Text('执行命令'),
51 | leading: IconButton(
52 | icon: const Icon(Icons.menu),
53 | onPressed: () {
54 | Scaffold.of(context).openDrawer();
55 | },
56 | ),
57 | );
58 | }
59 | return Scaffold(
60 | // backgroundColor: Colors.white,
61 | appBar: appBar,
62 | body: Padding(
63 | padding: EdgeInsets.symmetric(
64 | vertical: Dimens.gap_dp8,
65 | horizontal: Dimens.gap_dp8,
66 | ),
67 | child: Column(
68 | children: [
69 | const Expanded(
70 | child: TerminalPage(
71 | enableInput: true,
72 | ),
73 | ),
74 | ],
75 | ),
76 | ),
77 | );
78 | }
79 | }
80 |
--------------------------------------------------------------------------------
/lib/pages/fastboot_func.dart:
--------------------------------------------------------------------------------
1 | // import 'dart:io';
2 |
3 | // import 'package:flash_tool/config/candy_colors.dart';
4 | // import 'package:flash_tool/config/global.dart';
5 | // import 'package:flash_tool/provider/devices_state.dart';
6 | // import 'package:flutter/material.dart';
7 |
8 | // import 'package:flutter_screenutil/flutter_screenutil.dart';
9 | // import 'package:global_repository/global_repository.dart';
10 | // import 'package:provider/provider.dart';
11 |
12 | // class FastbootFunc extends StatefulWidget {
13 | // @override
14 | // _FastbootFuncState createState() => _FastbootFuncState();
15 | // }
16 |
17 | // class _FastbootFuncState extends State {
18 | // @override
19 | // Widget build(BuildContext context) {
20 | // // ignore: unused_local_variable
21 | // final DevicesState devicesState = Provider.of(context);
22 |
23 | // return Scaffold(
24 | // body: Row(
25 | // children: [
26 | // getFuncItem(
27 | // title: '重启设备',
28 | // ),
29 | // getFuncItem(
30 | // title: '解锁bootloader',
31 | // ),
32 | // ],
33 | // ),
34 | // );
35 | // }
36 |
37 | // Widget getFuncItem({
38 | // String title,
39 | // }) {
40 | // final DevicesState devicesState = Provider.of(context);
41 | // return GestureDetector(
42 | // onTap: () async {
43 | // print('执行重启');
44 | // ProcessResult result;
45 |
46 | // if (PlatformUtil.isDesktop()) {
47 | // try {
48 | // result = await Process.run(
49 | // 'fastboot',
50 | // [
51 | // '-s',
52 | // devicesState.curDevice,
53 | // 'reboot',
54 | // ],
55 | // // runInShell: true,
56 | // environment: PlatformUtil.environment(),
57 | // // includeParentEnvironment: true,
58 | // );
59 | // } catch (e) {
60 | // // print('asdasdasd====>$e');
61 | // }
62 | // } else {
63 | // await NiProcess.exec('fastboot -s ${devicesState.curDevice} reboot');
64 | // }
65 |
66 | // print(result.stderr);
67 |
68 | // print(result.stdout);
69 | // },
70 | // child: Container(
71 | // margin: EdgeInsets.all(16.w.toDouble()),
72 | // decoration: BoxDecoration(
73 | // color: CandyColors.colors[3],
74 | // borderRadius: BorderRadius.circular(
75 | // 16.w.toDouble(),
76 | // ),
77 | // ),
78 | // width: MediaQuery.of(context).size.width / 4,
79 | // height: 64.w.toDouble(),
80 | // child: Center(
81 | // child: Text(
82 | // title,
83 | // style: TextStyle(
84 | // fontSize: 20.w.toDouble(),
85 | // fontWeight: FontWeight.bold,
86 | // color: Colors.white,
87 | // ),
88 | // ),
89 | // ),
90 | // ),
91 | // );
92 | // }
93 | // }
94 |
--------------------------------------------------------------------------------
/lib/pages/flash_other_partition.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class FlashOtherPartition extends StatefulWidget {
4 | @override
5 | _FlashOtherPartitionState createState() => _FlashOtherPartitionState();
6 | }
7 |
8 | class _FlashOtherPartitionState extends State {
9 | @override
10 | Widget build(BuildContext context) {
11 | return const Center(
12 | child: Text('敬请期待'),
13 | );
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/lib/pages/flash_recovery_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:flash_tool/config/app_colors.dart';
2 | import 'package:flash_tool/config/global.dart';
3 | import 'package:flash_tool/widgets/item_header.dart';
4 | import 'package:flash_tool/widgets/terminal.dart';
5 | import 'package:flutter/material.dart';
6 | import 'package:flutter/services.dart';
7 | import 'package:flutter_screenutil/flutter_screenutil.dart';
8 | import 'package:global_repository/global_repository.dart';
9 |
10 | class FlashRecoveryPC extends StatefulWidget {
11 | @override
12 | _FlashRecoveryPCState createState() => _FlashRecoveryPCState();
13 | }
14 |
15 | class _FlashRecoveryPCState extends State {
16 | String termOut = '';
17 | String recPath = '';
18 | @override
19 | Widget build(BuildContext context) {
20 | return Scaffold(
21 | appBar: AppBar(
22 | backgroundColor: Colors.transparent,
23 | elevation: 0.0,
24 | centerTitle: true,
25 | title: Text(
26 | '刷写Rec',
27 | style: TextStyle(
28 | fontWeight: FontWeight.bold,
29 | color: AppColors.fontTitle,
30 | ),
31 | ),
32 | ),
33 | body: Padding(
34 | padding: const EdgeInsets.all(8.0),
35 | child: Column(
36 | children: [
37 | Row(
38 | children: [
39 | ItemHeader(
40 | color: CandyColors.candyGreen,
41 | ),
42 | Text(
43 | 'Rec路径',
44 | style: TextStyle(
45 | fontSize: Dimens.font_sp20,
46 | fontWeight: FontWeight.bold,
47 | color: AppColors.fontTitle,
48 | ),
49 | ),
50 | ],
51 | ),
52 | GestureDetector(
53 | onTap: () async {
54 | if (PlatformUtil.isMobilePhone()) {
55 | final ClipboardData data = await Clipboard.getData(
56 | Clipboard.kTextPlain,
57 | );
58 | if (data.text.isNotEmpty) {
59 | recPath = data.text;
60 | setState(() {});
61 | } else {
62 | showToast('剪切板为空哦~');
63 | }
64 | }
65 | },
66 | child: Container(
67 | margin: EdgeInsets.symmetric(
68 | vertical: Dimens.gap_dp8,
69 | ),
70 | decoration: BoxDecoration(
71 | color: const Color(0xFFF0F1F3),
72 | borderRadius: BorderRadius.circular(
73 | 12.w.toDouble(),
74 | ),
75 | ),
76 | child: Padding(
77 | padding: EdgeInsets.symmetric(
78 | horizontal: Dimens.gap_dp8,
79 | vertical: Dimens.gap_dp12,
80 | ),
81 | child: Center(
82 | child: Text(
83 | recPath,
84 | style: TextStyle(
85 | fontSize: Dimens.font_sp16,
86 | color: AppColors.fontDetail,
87 | ),
88 | ),
89 | ),
90 | ),
91 | ),
92 | ),
93 | Text('点击粘贴路径'),
94 | // GestureDetector(
95 | // onTap: () async {
96 | // if (PlatformUtil.isMobilePhone()) {
97 | // ClipboardData data =
98 | // await Clipboard.getData(Clipboard.kTextPlain);
99 | // print('''''object''' '');
100 | // print(data.text);
101 |
102 | // recPath = data.text;
103 | // setState(() {});
104 | // return;
105 | // }
106 | // // final FileChooserResult fileChooserResult = await showOpenPanel(
107 | // // allowedFileTypes: [
108 | // // const FileTypeFilterGroup(
109 | // // label: 'img',
110 | // // fileExtensions: ['img'],
111 | // // ),
112 | // // ],
113 | // // );
114 | // // if (fileChooserResult.canceled) {
115 | // // return;
116 | // // }
117 | // // recPath = fileChooserResult.paths.first;
118 | // // setState(() {});
119 | // // print(fileChooserResult.paths);
120 | // },
121 | // child: Container(
122 | // margin: EdgeInsets.only(
123 | // bottom: 16.w.toDouble(),
124 | // ),
125 | // decoration: BoxDecoration(
126 | // color: CandyColors.colors[1],
127 | // borderRadius: BorderRadius.circular(
128 | // 24.w.toDouble(),
129 | // ),
130 | // ),
131 | // height: 48.w.toDouble(),
132 | // width: 200.w.toDouble(),
133 | // child: Center(
134 | // child: Text(
135 | // //
136 | // PlatformUtil.isDesktop() ? '选择' : '粘贴路径',
137 | // style: TextStyle(
138 | // fontSize: 20.w.toDouble(),
139 | // fontWeight: FontWeight.bold,
140 | // color: Colors.white,
141 | // ),
142 | // ),
143 | // ),
144 | // ),
145 | // ),
146 | Row(
147 | children: [
148 | ItemHeader(
149 | color: CandyColors.candyPink,
150 | ),
151 | Text(
152 | '终端',
153 | style: TextStyle(
154 | fontSize: Dimens.font_sp20,
155 | fontWeight: FontWeight.bold,
156 | color: AppColors.fontTitle,
157 | ),
158 | ),
159 | ],
160 | ),
161 | SizedBox(
162 | height: Dimens.gap_dp8,
163 | ),
164 | const SizedBox(
165 | height: 200,
166 | child: TerminalPage(),
167 | ),
168 | // GestureDetector(
169 | // onTap: () async {
170 | // termOut = '';
171 | // setState(() {});
172 | // devicesState.setLock();
173 | // if (PlatformUtil.isMobilePhone()) {
174 | // await NiProcess.exec(
175 | // 'fastboot -s ${devicesState.curDevice} flash recovery $recPath 2>&1',
176 | // callback: (out) {
177 | // termOut += out;
178 | // if (out.contains('Finished')) {
179 | // devicesState.unLock();
180 | // }
181 | // setState(() {});
182 | // print('====>$out');
183 | // });
184 | // // devicesState.unLock();
185 | // } else {
186 | // Process.start(
187 | // 'fastboot',
188 | // [
189 | // '-s',
190 | // devicesState.curDevice,
191 | // 'flash',
192 | // 'recovery',
193 | // recPath,
194 | // ],
195 | // runInShell: true,
196 | // environment: PlatformUtil.environment(),
197 | // ).then((Process value) {
198 | // // value.stdout.transform(utf8.decoder).listen((String out) {
199 | // // print('====>$out');
200 | // // });
201 | // value.stderr.transform(utf8.decoder).listen((String out) {
202 | // termOut += out;
203 | // if (out.contains('Finished')) {
204 | // devicesState.unLock();
205 | // }
206 | // setState(() {});
207 | // print('====>$out');
208 | // });
209 | // });
210 | // }
211 | // },
212 | // child: Container(
213 | // margin: EdgeInsets.all(16.w.toDouble()),
214 | // decoration: BoxDecoration(
215 | // color: CandyColors.colors[3],
216 | // borderRadius: BorderRadius.circular(
217 | // 16.w.toDouble(),
218 | // ),
219 | // ),
220 | // width: 200.w.toDouble(),
221 | // height: 48.w.toDouble(),
222 | // child: Center(
223 | // child: Text(
224 | // '开始刷入',
225 | // style: TextStyle(
226 | // fontSize: 20.w.toDouble(),
227 | // fontWeight: FontWeight.bold,
228 | // color: Colors.white,
229 | // ),
230 | // ),
231 | // ),
232 | // ),
233 | // ),
234 | NiCardButton(
235 | blurRadius: 0,
236 | shadowColor: Colors.transparent,
237 | borderRadius: 12.0,
238 | color: AppColors.accent,
239 | onTap: () async {
240 | if (recPath.isEmpty) {
241 | showToast('REC路径为空');
242 | return;
243 | }
244 | final StringBuffer buffer = StringBuffer();
245 | buffer.writeln('su -c "');
246 | buffer.writeln('export PATH=${RuntimeEnvir.path}');
247 | buffer.writeln(
248 | 'fastboot flash recovery $recPath"\n',
249 | );
250 | Global.instance.pseudoTerminal.write(buffer.toString());
251 | },
252 | child: SizedBox(
253 | height: Dimens.gap_dp48,
254 | child: const Center(
255 | child: Text(
256 | '开始刷入',
257 | style: TextStyle(
258 | color: Colors.white,
259 | fontWeight: FontWeight.bold,
260 | ),
261 | ),
262 | ),
263 | ),
264 | ),
265 | ],
266 | ),
267 | ),
268 | );
269 | }
270 | }
271 |
--------------------------------------------------------------------------------
/lib/pages/flash_system_page.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 | import 'dart:convert';
3 | import 'dart:io';
4 | import 'package:flash_tool/config/app_colors.dart';
5 | import 'package:flash_tool/config/global.dart';
6 | import 'package:flash_tool/widgets/item_header.dart';
7 | import 'package:flash_tool/widgets/terminal.dart';
8 | import 'package:flutter/material.dart';
9 | import 'package:flutter/services.dart';
10 | import 'package:flutter_screenutil/flutter_screenutil.dart';
11 | import 'package:global_repository/global_repository.dart';
12 |
13 | enum FlashMode {
14 | deleteAll,
15 | saveUserData,
16 | deleteAllAndLock,
17 | }
18 |
19 | class FlashSystemPc extends StatefulWidget {
20 | @override
21 | _FlashSystemPcState createState() => _FlashSystemPcState();
22 | }
23 |
24 | class _FlashSystemPcState extends State {
25 | String termOut = '';
26 | String romPath = '';
27 | bool isFlashing = false;
28 | double flashProgress = 0.0;
29 | // 命令的条数
30 | int cmdNumber = 0;
31 | Timer timer;
32 | int alreadyUseTime = 0;
33 | String shType = Platform.isWindows ? 'bat' : 'sh';
34 | bool openCache = false;
35 | FlashMode _flashMode = FlashMode.saveUserData;
36 | void changeFlashMode(FlashMode flashMode) {
37 | _flashMode = flashMode;
38 | setState(() {});
39 | }
40 |
41 | Future execFlash() async {
42 | if (isFlashing) {
43 | return;
44 | }
45 | termOut = '';
46 | setState(() {});
47 | isFlashing = true;
48 | timer = Timer.periodic(const Duration(seconds: 1), (Timer timer) {
49 | alreadyUseTime = timer.tick;
50 | setState(() {});
51 | });
52 | setState(() {});
53 | // return;
54 | String batPath = '';
55 | switch (_flashMode) {
56 | case FlashMode.deleteAll:
57 | batPath = Platform.isWindows
58 | ? '$romPath/flash_all.bat'
59 | : '$romPath/flash_all.sh';
60 | break;
61 | case FlashMode.saveUserData:
62 | batPath = Platform.isWindows
63 | ? '$romPath/flash_all_except_storage.bat'
64 | : '$romPath/flash_all_except_storage.sh';
65 | break;
66 | case FlashMode.deleteAllAndLock:
67 | batPath = Platform.isWindows
68 | ? '$romPath/flash_all_lock.bat'
69 | : '$romPath/flash_all_lock.sh';
70 | break;
71 | }
72 | // 读取设备信息两行是没有Finished标识的
73 | cmdNumber = RegExp('fastboot')
74 | .allMatches(
75 | File(batPath).readAsStringSync(),
76 | )
77 | .length -
78 | 2;
79 | if (PlatformUtil.isDesktop()) {
80 | try {
81 | Process.start(
82 | batPath,
83 | [
84 | '-s',
85 | ],
86 | runInShell: false,
87 | environment: PlatformUtil.environment(),
88 | mode: ProcessStartMode.normal,
89 | ).then((Process value) {
90 | value.stdout.transform(utf8.decoder).listen((String out) {
91 | // print('====>$out');
92 | setState(() {});
93 | });
94 | value.stderr.transform(utf8.decoder).listen((String out) {
95 | termOut += out;
96 |
97 | final int curNum = RegExp('Finished').allMatches(termOut).length;
98 |
99 | flashProgress = curNum / cmdNumber;
100 | if (out.contains('Rebooting')) {
101 | isFlashing = false;
102 | timer.cancel();
103 | setState(() {});
104 | }
105 | setState(() {});
106 | print('====>$out');
107 | });
108 | });
109 | } catch (e) {
110 | // print('asdasdasd====>$e');
111 | }
112 | } else {
113 | YanProcess().exec('sh $batPath 2>&1', callback: (String out) {
114 | termOut += out;
115 |
116 | final int curNum =
117 | RegExp('Finished|finished').allMatches(termOut).length;
118 |
119 | flashProgress = curNum / cmdNumber;
120 | if (out.contains('Rebooting')) {
121 | isFlashing = false;
122 | timer.cancel();
123 | setState(() {});
124 | }
125 | setState(() {});
126 | print('====>$out');
127 | });
128 | }
129 | }
130 |
131 | @override
132 | Widget build(BuildContext context) {
133 | return Scaffold(
134 | // primary: false,
135 | appBar: buildAppBar(),
136 | body: SingleChildScrollView(
137 | child: Padding(
138 | padding: EdgeInsets.symmetric(
139 | horizontal: Dimens.gap_dp8,
140 | ),
141 | child: Column(
142 | children: [
143 | Row(
144 | children: [
145 | ItemHeader(
146 | color: AppColors.accent,
147 | ),
148 | Text(
149 | '线刷包路径',
150 | style: TextStyle(
151 | fontSize: Dimens.font_sp20,
152 | fontWeight: FontWeight.bold,
153 | color: AppColors.fontTitle,
154 | height: 1.0,
155 | ),
156 | ),
157 | ],
158 | ),
159 |
160 | GestureDetector(
161 | onTap: () async {
162 | if (PlatformUtil.isMobilePhone()) {
163 | final ClipboardData data = await Clipboard.getData(
164 | Clipboard.kTextPlain,
165 | );
166 | if (data.text.isNotEmpty) {
167 | romPath = data.text;
168 | setState(() {});
169 | } else {
170 | showToast('剪切板为空哦~');
171 | }
172 | }
173 | },
174 | child: Container(
175 | margin: EdgeInsets.symmetric(
176 | // horizontal: Dimens.gap_dp8,
177 | vertical: Dimens.gap_dp8,
178 | ),
179 | decoration: BoxDecoration(
180 | color: const Color(0xFFF0F1F3),
181 | borderRadius: BorderRadius.circular(
182 | 12.w.toDouble(),
183 | ),
184 | ),
185 | child: Padding(
186 | padding: EdgeInsets.symmetric(
187 | horizontal: Dimens.gap_dp8,
188 | vertical: Dimens.gap_dp12,
189 | ),
190 | child: Center(
191 | child: Text(
192 | romPath,
193 | style: TextStyle(
194 | fontSize: 18.w.toDouble(),
195 | color: AppColors.fontDetail,
196 | ),
197 | ),
198 | ),
199 | ),
200 | ),
201 | ),
202 | Text('点击粘贴路径'),
203 | Text(
204 | '需要先解压线刷包,然后选择刷机脚本所在的目录,一般也是images这个文件夹所在的目录。',
205 | style: TextStyle(
206 | color: AppColors.fontDetail,
207 | ),
208 | ),
209 | Row(
210 | children: [
211 | ItemHeader(
212 | color: CandyColors.candyBlue,
213 | ),
214 | Text(
215 | '选择刷机模式',
216 | style: TextStyle(
217 | fontSize: Dimens.font_sp20,
218 | fontWeight: FontWeight.bold,
219 | color: AppColors.fontTitle,
220 | ),
221 | ),
222 | ],
223 | ),
224 | Wrap(
225 | children: [
226 | SizedBox(
227 | child: Row(
228 | crossAxisAlignment: CrossAxisAlignment.center,
229 | children: [
230 | Radio(
231 | value: FlashMode.deleteAll,
232 | groupValue: _flashMode,
233 | onChanged: changeFlashMode,
234 | ),
235 | Text(
236 | '全部删除',
237 | style: TextStyle(
238 | fontSize: Dimens.font_sp16,
239 | fontWeight: FontWeight.bold,
240 | color: AppColors.fontTitle,
241 | ),
242 | ),
243 | ],
244 | ),
245 | ),
246 | SizedBox(
247 | child: Row(
248 | children: [
249 | Radio(
250 | value: FlashMode.saveUserData,
251 | groupValue: _flashMode,
252 | onChanged: changeFlashMode,
253 | ),
254 | Text(
255 | '保留用户数据',
256 | style: TextStyle(
257 | fontSize: Dimens.font_sp16,
258 | fontWeight: FontWeight.bold,
259 | color: AppColors.fontTitle,
260 | ),
261 | ),
262 | ],
263 | ),
264 | ),
265 | SizedBox(
266 | child: Row(
267 | children: [
268 | Radio(
269 | value: FlashMode.deleteAllAndLock,
270 | groupValue: _flashMode,
271 | onChanged: changeFlashMode,
272 | ),
273 | Text(
274 | '全部删除并lock',
275 | style: TextStyle(
276 | fontSize: Dimens.font_sp16,
277 | fontWeight: FontWeight.bold,
278 | color: AppColors.fontTitle,
279 | ),
280 | ),
281 | ],
282 | ),
283 | ),
284 | ],
285 | ),
286 |
287 | Row(
288 | children: [
289 | Text(
290 | '开启缓存(避免存在刷写失败的问题)',
291 | style: TextStyle(
292 | fontSize: 18.w.toDouble(),
293 | fontWeight: FontWeight.bold,
294 | color: AppColors.fontTitle,
295 | ),
296 | ),
297 | Switch(
298 | value: openCache,
299 | onChanged: (bool v) {
300 | openCache = !openCache;
301 | setState(() {});
302 | },
303 | )
304 | ],
305 | ),
306 | Row(
307 | children: [
308 | ItemHeader(
309 | color: CandyColors.candyBlue,
310 | ),
311 | Text(
312 | '终端',
313 | style: TextStyle(
314 | fontSize: Dimens.font_sp20,
315 | fontWeight: FontWeight.bold,
316 | color: AppColors.fontTitle,
317 | ),
318 | ),
319 | ],
320 | ),
321 | SizedBox(
322 | height: Dimens.gap_dp8,
323 | ),
324 | // GestureDetector(
325 | // onTap: () {
326 | // execFlash();
327 | // },
328 | // child: Container(
329 | // margin: EdgeInsets.all(8.w.toDouble()),
330 | // decoration: BoxDecoration(
331 | // color: CandyColors.colors[3],
332 | // borderRadius: BorderRadius.circular(
333 | // 12.w.toDouble(),
334 | // ),
335 | // ),
336 | // width: 200.w.toDouble(),
337 | // height: 36.w.toDouble(),
338 | // child: Stack(
339 | // children: [
340 | // Container(
341 | // width: MediaQuery.of(context).size.width /
342 | // 4 *
343 | // flashProgress,
344 | // decoration: BoxDecoration(
345 | // color: Colors.green,
346 | // borderRadius: BorderRadius.circular(
347 | // 12.w.toDouble(),
348 | // ),
349 | // ),
350 | // ),
351 | // Stack(
352 | // children: [
353 | // Center(
354 | // child: Text(
355 | // isFlashing ? '刷入中' : '开始刷入',
356 | // style: TextStyle(
357 | // fontSize: 20.sp.toDouble(),
358 | // fontWeight: FontWeight.bold,
359 | // color: Colors.white,
360 | // ),
361 | // ),
362 | // ),
363 | // if (isFlashing)
364 | // Align(
365 | // alignment: const Alignment(0.7, 0),
366 | // child: Text(
367 | // '$alreadyUseTime\s',
368 | // style: TextStyle(
369 | // fontSize: 20.w.toDouble(),
370 | // fontWeight: FontWeight.bold,
371 | // color: Colors.white,
372 | // ),
373 | // ),
374 | // ),
375 | // ],
376 | // ),
377 | // ],
378 | // ),
379 | // ),
380 | // ),
381 | const SizedBox(
382 | height: 200,
383 | child: TerminalPage(),
384 | ),
385 | NiCardButton(
386 | blurRadius: 0,
387 | shadowColor: Colors.transparent,
388 | borderRadius: 12.0,
389 | color: AppColors.accent,
390 | onTap: () async {
391 | if (romPath.isEmpty) {
392 | showToast('线刷包路径为空');
393 | return;
394 | }
395 | String batPath = '';
396 | switch (_flashMode) {
397 | case FlashMode.deleteAll:
398 | batPath = Platform.isWindows
399 | ? '$romPath/flash_all.bat'
400 | : '$romPath/flash_all.sh';
401 | break;
402 | case FlashMode.saveUserData:
403 | batPath = Platform.isWindows
404 | ? '$romPath/flash_all_except_storage.bat'
405 | : '$romPath/flash_all_except_storage.sh';
406 | break;
407 | case FlashMode.deleteAllAndLock:
408 | batPath = Platform.isWindows
409 | ? '$romPath/flash_all_lock.bat'
410 | : '$romPath/flash_all_lock.sh';
411 | break;
412 | }
413 | final StringBuffer buffer = StringBuffer();
414 | buffer.writeln('su -c "');
415 | buffer.writeln('export PATH=${RuntimeEnvir.path}');
416 | buffer.writeln(
417 | 'sh $batPath"\n',
418 | );
419 | Global.instance.pseudoTerminal.write(buffer.toString());
420 | },
421 | child: SizedBox(
422 | width: MediaQuery.of(context).size.width,
423 | height: Dimens.gap_dp48,
424 | child: const Center(
425 | child: Text(
426 | '执行刷入',
427 | style: TextStyle(
428 | color: Colors.white,
429 | fontWeight: FontWeight.bold,
430 | ),
431 | ),
432 | ),
433 | ),
434 | ),
435 | ],
436 | ),
437 | ),
438 | ),
439 | );
440 | }
441 |
442 | AppBar buildAppBar() {
443 | return AppBar(
444 | primary: true,
445 | backgroundColor: Colors.transparent,
446 | elevation: 0.0,
447 | centerTitle: true,
448 | backwardsCompatibility: true,
449 | title: Text(
450 | '刷写Rom',
451 | style: TextStyle(
452 | fontWeight: FontWeight.bold,
453 | color: AppColors.fontTitle,
454 | ),
455 | ),
456 | );
457 | }
458 | }
459 |
--------------------------------------------------------------------------------
/lib/pages/flash_tool.dart:
--------------------------------------------------------------------------------
1 | import 'package:flash_tool/flash_tool.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:flutter_screenutil/flutter_screenutil.dart';
4 | import 'package:global_repository/global_repository.dart';
5 |
6 | // 主要的widget
7 | // 会自动判断平台
8 | // 返回执行的页面
9 | class FlashTool extends StatelessWidget {
10 | FlashTool({
11 | Key key,
12 | }) : super(key: key) {
13 | FastbootConfig.flutterPackage = 'packages/flash_tool/';
14 | }
15 |
16 | @override
17 | Widget build(BuildContext context) {
18 | return Builder(
19 | builder: (BuildContext context) {
20 | if (PlatformUtil.isDesktop()) {
21 | ScreenUtil.init(
22 | context,
23 | width: MediaQuery.of(context).size.width,
24 | height: MediaQuery.of(context).size.height,
25 | allowFontScaling: false,
26 | );
27 | } else {
28 | ScreenUtil.init(
29 | context,
30 | width: 414,
31 | height: 896,
32 | allowFontScaling: false,
33 | );
34 | }
35 | return FlashToolMobile();
36 | },
37 | );
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/lib/pages/flash_tool_body.dart:
--------------------------------------------------------------------------------
1 | import 'dart:ui';
2 |
3 | import 'package:flash_tool/config/app_colors.dart';
4 | import 'package:flash_tool/pages/flash_other_partition.dart';
5 | import 'package:flutter/material.dart';
6 | import 'package:flutter/services.dart';
7 |
8 | import 'exec_cmd_page.dart';
9 | import 'fastboot_func.dart';
10 | import 'flash_recovery_page.dart';
11 | import 'flash_system_page.dart';
12 |
13 | class FlashToolBody extends StatefulWidget {
14 | const FlashToolBody({Key key, this.pageIndex = 0}) : super(key: key);
15 | final int pageIndex;
16 |
17 | @override
18 | _FlashToolBodyState createState() => _FlashToolBodyState();
19 | }
20 |
21 | class _FlashToolBodyState extends State
22 | with SingleTickerProviderStateMixin {
23 | @override
24 | Widget build(BuildContext context) {
25 | return AnnotatedRegion(
26 | value: SystemUiOverlayStyle.dark,
27 | child: Material(
28 | color: Theme.of(context).scaffoldBackgroundColor,
29 | child: SafeArea(
30 | child: Row(
31 | children: [
32 | MediaQuery(
33 | data: MediaQueryData(
34 | size: Size(
35 | MediaQuery.of(context).size.width,
36 | MediaQuery.of(context).size.height,
37 | ),
38 | ),
39 | child: SizedBox(
40 | width: MediaQuery.of(context).size.width,
41 | child: [
42 | FlashSystemPc(),
43 | FlashRecoveryPC(),
44 | ExecCmdPage(),
45 | FlashOtherPartition(),
46 | ][widget.pageIndex],
47 | ),
48 | )
49 | ],
50 | ),
51 | ),
52 | ),
53 | );
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/lib/pages/flash_tool_mobile.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 | import 'dart:typed_data';
3 |
4 | import 'package:flash_tool/config/config.dart';
5 | import 'package:flash_tool/flash_tool.dart';
6 | import 'package:flash_tool/pages/drawer.dart';
7 | import 'package:flash_tool/widgets/scaffold.dart';
8 | import 'package:flutter/material.dart';
9 | import 'package:flutter/services.dart';
10 | import 'package:global_repository/global_repository.dart';
11 |
12 | class FlashToolMobile extends StatefulWidget {
13 | @override
14 | _FlashToolMobileState createState() => _FlashToolMobileState();
15 | }
16 |
17 | class _FlashToolMobileState extends State {
18 | int pageIndex = 0;
19 |
20 | @override
21 | void initState() {
22 | super.initState();
23 | installAdb();
24 | }
25 |
26 | Future installAdb() async {
27 | if (Platform.isAndroid) {
28 | final ByteData byteData = await rootBundle
29 | .load('${FastbootConfig.flutterPackage}assets/android/fastboot');
30 | final Uint8List picBytes = byteData.buffer.asUint8List();
31 | Directory binDir = Directory(RuntimeEnvir.binPath);
32 | if (!binDir.existsSync()) {
33 | await binDir.create(
34 | recursive: true,
35 | );
36 | }
37 | final String fastPath = '${RuntimeEnvir.binPath}/fastboot';
38 | await File(fastPath).writeAsBytes(picBytes);
39 | Log.w('复制 fastboot');
40 | Process.runSync(
41 | 'chmod',
42 | ['+x', fastPath],
43 | );
44 | }
45 | // if (Platform.isMacOS) {
46 | // final ByteData byteData = await rootBundle.load('assets/android/fastboot');
47 | // final Uint8List picBytes =
48 | // byteData.buffer.asUint8List(); //以上两行是从apk内assets文件夹讲文件转换为Uint8List的轮子
49 | // String fastPath =
50 | // FileSystemEntity.parentOf(Platform.resolvedExecutable) + '/fastboot';
51 | // await File(fastPath).writeAsBytes(picBytes);
52 | // Process.runSync('chmod', ['+x', fastPath]);
53 | // }
54 | }
55 |
56 | @override
57 | Widget build(BuildContext context) {
58 | return FlashToolScaffold(
59 | drawer: DrawerPage(
60 | index: pageIndex,
61 | onChange: (value) {
62 | pageIndex = value;
63 | setState(() {});
64 | },
65 | ),
66 | body: FlashToolBody(
67 | pageIndex: pageIndex,
68 | ),
69 | );
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/lib/utils/device_utils.dart:
--------------------------------------------------------------------------------
1 | class DeviceUtils {
2 | DeviceUtils._();
3 | static final Map _map = {
4 | 'platina': '小米8青春版',
5 | 'umi': '小米10',
6 | 'santoni': 'redmi4x',
7 | };
8 | static String getName(String id) {
9 | return _map[id] ?? id;
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/lib/utils/fastboot_util.dart:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/lib/utils/fastboot_util.dart
--------------------------------------------------------------------------------
/lib/widgets/custom_list.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class CustomList extends StatefulWidget {
4 | const CustomList({Key key, this.child}) : super(key: key);
5 | final Widget child;
6 |
7 | @override
8 | _CustomListState createState() => _CustomListState();
9 | }
10 |
11 | class _CustomListState extends State {
12 | ScrollController scrollController = ScrollController();
13 | @override
14 | void initState() {
15 | super.initState();
16 | }
17 |
18 | @override
19 | void didChangeDependencies() {
20 | WidgetsBinding.instance.addPostFrameCallback(_onAfterRendering);
21 | super.didChangeDependencies();
22 | }
23 |
24 | @override
25 | void didUpdateWidget(CustomList old) {
26 | WidgetsBinding.instance.addPostFrameCallback(_onAfterRendering);
27 | super.didUpdateWidget(old);
28 | }
29 |
30 | Future _onAfterRendering(Duration timeStamp) async {
31 | scrollController.jumpTo(scrollController.position.maxScrollExtent);
32 | // print('object');
33 | }
34 |
35 | @override
36 | Widget build(BuildContext context) {
37 | return SingleChildScrollView(
38 | controller: scrollController,
39 | child: widget.child,
40 | );
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/lib/widgets/item_header.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:global_repository/global_repository.dart';
3 |
4 | class ItemHeader extends StatelessWidget {
5 | const ItemHeader({Key key, this.color}) : super(key: key);
6 | final Color color;
7 | @override
8 | Widget build(BuildContext context) {
9 | return Align(
10 | alignment: Alignment.centerLeft,
11 | child: Container(
12 | margin: EdgeInsets.only(
13 | right: Dimens.gap_dp6,
14 | ),
15 | color: color,
16 | width: Dimens.gap_dp4,
17 | height: Dimens.gap_dp16,
18 | ),
19 | );
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/lib/widgets/scaffold.dart:
--------------------------------------------------------------------------------
1 | import 'dart:ui';
2 |
3 | import 'package:flash_tool/config/config.dart';
4 | import 'package:flutter/material.dart';
5 | import 'package:flutter/physics.dart';
6 |
7 | // ignore: use_key_in_widget_constructors
8 | class FlashToolScaffold extends StatefulWidget {
9 | const FlashToolScaffold({
10 | Key key,
11 | this.drawer,
12 | this.body,
13 | }) : super(key: key);
14 |
15 | final Widget drawer;
16 | final Widget body;
17 |
18 | @override
19 | _FlashToolScaffoldState createState() => _FlashToolScaffoldState();
20 | }
21 |
22 | class _FlashToolScaffoldState extends State
23 | with SingleTickerProviderStateMixin {
24 | ScrollController controller;
25 | double scale = 0;
26 | @override
27 | void initState() {
28 | super.initState();
29 | controller = ScrollController(
30 | initialScrollOffset: drawerWidth,
31 | );
32 | controller.addListener(() {
33 | scale = 0.2 - (controller.offset / drawerWidth) * 0.2;
34 | setState(() {});
35 | });
36 | }
37 |
38 | double drawerWidth = FastbootConfig.drawerWidth;
39 |
40 | double borderRadius = 30;
41 |
42 | @override
43 | void dispose() {
44 | controller.dispose();
45 | super.dispose();
46 | }
47 |
48 | @override
49 | Widget build(BuildContext context) {
50 | return Scaffold(
51 | body: ListView(
52 | cacheExtent: 0.0,
53 | controller: controller,
54 | physics: PagingScrollPhysics(
55 | maxSize: drawerWidth,
56 | itemDimension: drawerWidth,
57 | ),
58 | scrollDirection: Axis.horizontal,
59 | children: [
60 | if (widget.drawer != null)
61 | GestureDetector(
62 | behavior: HitTestBehavior.deferToChild,
63 | onTap: () {
64 | print('object');
65 | },
66 | child: Builder(
67 | builder: (BuildContext context) {
68 | return Transform(
69 | alignment: Alignment.centerRight,
70 | transform: Matrix4.identity()..scale(0.8 + scale),
71 | child: widget.drawer,
72 | );
73 | },
74 | ),
75 | ),
76 | // 为了能让Drawer销毁
77 | // Container(
78 | // color: Colors.transparent,
79 | // width: 4.0,
80 | // ),
81 | Builder(
82 | builder: (BuildContext context) {
83 | // print('$scale');
84 | final double drawerDelta = scale / 0.2;
85 | final double whiteShadowDelta = borderRadius / 2 * drawerDelta;
86 | final Offset whiteShadowOffset = Offset(-2 * whiteShadowDelta, 0);
87 | return Transform(
88 | alignment: Alignment.centerLeft,
89 | transform: Matrix4.identity()..scale(1.0 - scale),
90 | child: Container(
91 | decoration: BoxDecoration(
92 | color: Colors.white,
93 | borderRadius: BorderRadius.circular(30.0),
94 | boxShadow: [
95 | ...[
96 | BoxShadow(
97 | color: Colors.black.withAlpha(20),
98 | blurRadius: 20.0,
99 | // has the effect of softening the shadow
100 | spreadRadius: -whiteShadowDelta,
101 | offset: whiteShadowOffset,
102 | ),
103 | BoxShadow(
104 | color: Colors.white,
105 | blurRadius: 0,
106 | spreadRadius: -whiteShadowDelta,
107 | offset: whiteShadowOffset,
108 | ),
109 | BoxShadow(
110 | color: Colors.black.withAlpha(20),
111 | blurRadius: 20.0,
112 | spreadRadius: 2,
113 | ),
114 | ]
115 | ],
116 | ),
117 | // height: co.maxHeight,
118 | width: MediaQuery.of(context).size.width,
119 | child: ClipRRect(
120 | borderRadius: BorderRadius.circular(borderRadius),
121 | child: Stack(
122 | children: [
123 | if (widget.body != null) widget.body,
124 | // if (drawerNotifier.isOpen)
125 | // Material(
126 | // color: Colors.transparent,
127 | // child: InkWell(
128 | // onTap: () {
129 | // drawerNotifier.closeDrawer();
130 | // },
131 | // ),
132 | // )
133 | ],
134 | ),
135 | ),
136 | ),
137 | );
138 | },
139 | ),
140 | ],
141 | ),
142 | );
143 | }
144 | }
145 |
146 | class PagingScrollPhysics extends ScrollPhysics {
147 | const PagingScrollPhysics({
148 | this.maxSize,
149 | this.itemDimension,
150 | ScrollPhysics parent,
151 | }) : super(parent: parent);
152 |
153 | final double itemDimension; // ListView children item 固定宽度
154 | final double maxSize; // 最大可滑动区域
155 |
156 | @override
157 | PagingScrollPhysics applyTo(ScrollPhysics ancestor) {
158 | return PagingScrollPhysics(
159 | maxSize: maxSize,
160 | itemDimension: itemDimension,
161 | parent: buildParent(ancestor),
162 | );
163 | }
164 |
165 | double _getPage(ScrollPosition position) {
166 | return (position.pixels) / itemDimension;
167 | }
168 |
169 | double _getPixels(
170 | double page,
171 | ) {
172 | return page * itemDimension;
173 | }
174 |
175 | double _getTargetPixels(
176 | ScrollPosition position,
177 | Tolerance tolerance,
178 | double velocity,
179 | ) {
180 | double page = _getPage(
181 | position,
182 | );
183 |
184 | if (position.pixels <= 0) {
185 | return 0;
186 | }
187 |
188 | if (position.pixels >= maxSize) {
189 | return maxSize;
190 | }
191 |
192 | if (position.pixels > 0) {
193 | if (velocity < -tolerance.velocity) {
194 | page -= 0.5;
195 | } else if (velocity > tolerance.velocity) {
196 | page += 0.5;
197 | }
198 | return _getPixels(page.roundToDouble());
199 | }
200 | return null;
201 | }
202 |
203 | @override
204 | Simulation createBallisticSimulation(
205 | ScrollMetrics position, double velocity) {
206 | // If we're out of range and not headed back in range, defer to the parent
207 | // ballistics, which should put us back in range at a page boundary.
208 |
209 | if (velocity <= 0.0 && position.pixels <= position.minScrollExtent) {
210 | return super.createBallisticSimulation(position, velocity);
211 | }
212 |
213 | final Tolerance tolerance = this.tolerance;
214 | final SpringDescription _kDefaultSpring =
215 | SpringDescription.withDampingRatio(
216 | mass: 0.5,
217 | stiffness: 100.0,
218 | ratio: 1.1,
219 | );
220 |
221 | final double target = _getTargetPixels(
222 | position as ScrollPosition,
223 | tolerance,
224 | velocity,
225 | );
226 | if (target != position.pixels)
227 | return ScrollSpringSimulation(
228 | _kDefaultSpring,
229 | position.pixels,
230 | target,
231 | velocity,
232 | tolerance: tolerance,
233 | );
234 | return null;
235 | }
236 |
237 | @override
238 | bool get allowImplicitScrolling => false;
239 | }
240 |
--------------------------------------------------------------------------------
/lib/widgets/terminal.dart:
--------------------------------------------------------------------------------
1 | import 'package:flash_tool/config/app_colors.dart';
2 | import 'package:flash_tool/config/global.dart';
3 | import 'package:flutter/material.dart';
4 | import 'package:global_repository/global_repository.dart';
5 | import 'package:termare_pty/termare_pty.dart';
6 |
7 | class TerminalPage extends StatelessWidget {
8 | const TerminalPage({Key key, this.enableInput = false}) : super(key: key);
9 |
10 | final bool enableInput;
11 |
12 | @override
13 | Widget build(BuildContext context) {
14 | return ClipRRect(
15 | borderRadius: BorderRadius.circular(Dimens.gap_dp8),
16 | child: Material(
17 | color: AppColors.contentBorder,
18 | child: Padding(
19 | padding: const EdgeInsets.all(8.0),
20 | child: TermarePty(
21 | enableInput: enableInput,
22 | controller: Global.instance.termareController,
23 | pseudoTerminal: Global.instance.pseudoTerminal,
24 | ),
25 | ),
26 | ),
27 | );
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/macos/.gitignore:
--------------------------------------------------------------------------------
1 | # Flutter-related
2 | **/Flutter/ephemeral/
3 | **/Pods/
4 |
5 | # Xcode-related
6 | **/xcuserdata/
7 |
--------------------------------------------------------------------------------
/macos/Flutter/Flutter-Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "ephemeral/Flutter-Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/macos/Flutter/Flutter-Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "ephemeral/Flutter-Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/macos/Flutter/GeneratedPluginRegistrant.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | import FlutterMacOS
6 | import Foundation
7 |
8 | import path_provider_macos
9 |
10 | func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
11 | PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
12 | }
13 |
--------------------------------------------------------------------------------
/macos/Podfile:
--------------------------------------------------------------------------------
1 | platform :osx, '10.11'
2 |
3 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
4 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
5 |
6 | project 'Runner', {
7 | 'Debug' => :debug,
8 | 'Profile' => :release,
9 | 'Release' => :release,
10 | }
11 |
12 | def flutter_root
13 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__)
14 | unless File.exist?(generated_xcode_build_settings_path)
15 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first"
16 | end
17 |
18 | File.foreach(generated_xcode_build_settings_path) do |line|
19 | matches = line.match(/FLUTTER_ROOT\=(.*)/)
20 | return matches[1].strip if matches
21 | end
22 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\""
23 | end
24 |
25 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
26 |
27 | flutter_macos_podfile_setup
28 |
29 | target 'Runner' do
30 | use_frameworks!
31 | use_modular_headers!
32 |
33 | flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__))
34 | end
35 |
36 | post_install do |installer|
37 | installer.pods_project.targets.each do |target|
38 | flutter_additional_macos_build_settings(target)
39 | end
40 | end
41 |
--------------------------------------------------------------------------------
/macos/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - FlutterMacOS (1.0.0)
3 | - path_provider_macos (0.0.1):
4 | - FlutterMacOS
5 |
6 | DEPENDENCIES:
7 | - FlutterMacOS (from `Flutter/ephemeral`)
8 | - path_provider_macos (from `Flutter/ephemeral/.symlinks/plugins/path_provider_macos/macos`)
9 |
10 | EXTERNAL SOURCES:
11 | FlutterMacOS:
12 | :path: Flutter/ephemeral
13 | path_provider_macos:
14 | :path: Flutter/ephemeral/.symlinks/plugins/path_provider_macos/macos
15 |
16 | SPEC CHECKSUMS:
17 | FlutterMacOS: 57701585bf7de1b3fc2bb61f6378d73bbdea8424
18 | path_provider_macos: a0a3fd666cb7cd0448e936fb4abad4052961002b
19 |
20 | PODFILE CHECKSUM: 6eac6b3292e5142cfc23bdeb71848a40ec51c14c
21 |
22 | COCOAPODS: 1.9.3
23 |
--------------------------------------------------------------------------------
/macos/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 51;
7 | objects = {
8 |
9 | /* Begin PBXAggregateTarget section */
10 | 33CC111A2044C6BA0003C045 /* Flutter Assemble */ = {
11 | isa = PBXAggregateTarget;
12 | buildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */;
13 | buildPhases = (
14 | 33CC111E2044C6BF0003C045 /* ShellScript */,
15 | );
16 | dependencies = (
17 | );
18 | name = "Flutter Assemble";
19 | productName = FLX;
20 | };
21 | /* End PBXAggregateTarget section */
22 |
23 | /* Begin PBXBuildFile section */
24 | 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; };
25 | 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; };
26 | 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; };
27 | 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; };
28 | 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; };
29 | AC0A14394B80A64EDD5F1BD2 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3A58FD5B5FE6A334B7F5F195 /* Pods_Runner.framework */; };
30 | /* End PBXBuildFile section */
31 |
32 | /* Begin PBXContainerItemProxy section */
33 | 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = {
34 | isa = PBXContainerItemProxy;
35 | containerPortal = 33CC10E52044A3C60003C045 /* Project object */;
36 | proxyType = 1;
37 | remoteGlobalIDString = 33CC111A2044C6BA0003C045;
38 | remoteInfo = FLX;
39 | };
40 | /* End PBXContainerItemProxy section */
41 |
42 | /* Begin PBXCopyFilesBuildPhase section */
43 | 33CC110E2044A8840003C045 /* Bundle Framework */ = {
44 | isa = PBXCopyFilesBuildPhase;
45 | buildActionMask = 2147483647;
46 | dstPath = "";
47 | dstSubfolderSpec = 10;
48 | files = (
49 | );
50 | name = "Bundle Framework";
51 | runOnlyForDeploymentPostprocessing = 0;
52 | };
53 | /* End PBXCopyFilesBuildPhase section */
54 |
55 | /* Begin PBXFileReference section */
56 | 2C4D7BA5603DA6A5A2A2B2A9 /* 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 = ""; };
57 | 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; };
58 | 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; };
59 | 33CC10ED2044A3C60003C045 /* flash_tool.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = flash_tool.app; sourceTree = BUILT_PRODUCTS_DIR; };
60 | 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
61 | 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; };
62 | 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; };
63 | 33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = ""; };
64 | 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = ""; };
65 | 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = ""; };
66 | 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = ""; };
67 | 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = ""; };
68 | 33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = ""; };
69 | 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; };
70 | 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; };
71 | 3A58FD5B5FE6A334B7F5F195 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
72 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; };
73 | 8868482B67271E42AE9DC6CB /* 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 = ""; };
74 | 8F46EAF702742818FE4AA893 /* 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 = ""; };
75 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; };
76 | /* End PBXFileReference section */
77 |
78 | /* Begin PBXFrameworksBuildPhase section */
79 | 33CC10EA2044A3C60003C045 /* Frameworks */ = {
80 | isa = PBXFrameworksBuildPhase;
81 | buildActionMask = 2147483647;
82 | files = (
83 | AC0A14394B80A64EDD5F1BD2 /* Pods_Runner.framework in Frameworks */,
84 | );
85 | runOnlyForDeploymentPostprocessing = 0;
86 | };
87 | /* End PBXFrameworksBuildPhase section */
88 |
89 | /* Begin PBXGroup section */
90 | 33BA886A226E78AF003329D5 /* Configs */ = {
91 | isa = PBXGroup;
92 | children = (
93 | 33E5194F232828860026EE4D /* AppInfo.xcconfig */,
94 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
95 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
96 | 333000ED22D3DE5D00554162 /* Warnings.xcconfig */,
97 | );
98 | path = Configs;
99 | sourceTree = "";
100 | };
101 | 33CC10E42044A3C60003C045 = {
102 | isa = PBXGroup;
103 | children = (
104 | 33FAB671232836740065AC1E /* Runner */,
105 | 33CEB47122A05771004F2AC0 /* Flutter */,
106 | 33CC10EE2044A3C60003C045 /* Products */,
107 | D73912EC22F37F3D000D13A0 /* Frameworks */,
108 | C35A6606F8F943EC16F45ADD /* Pods */,
109 | );
110 | sourceTree = "";
111 | };
112 | 33CC10EE2044A3C60003C045 /* Products */ = {
113 | isa = PBXGroup;
114 | children = (
115 | 33CC10ED2044A3C60003C045 /* flash_tool.app */,
116 | );
117 | name = Products;
118 | sourceTree = "";
119 | };
120 | 33CC11242044D66E0003C045 /* Resources */ = {
121 | isa = PBXGroup;
122 | children = (
123 | 33CC10F22044A3C60003C045 /* Assets.xcassets */,
124 | 33CC10F42044A3C60003C045 /* MainMenu.xib */,
125 | 33CC10F72044A3C60003C045 /* Info.plist */,
126 | );
127 | name = Resources;
128 | path = ..;
129 | sourceTree = "";
130 | };
131 | 33CEB47122A05771004F2AC0 /* Flutter */ = {
132 | isa = PBXGroup;
133 | children = (
134 | 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */,
135 | 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */,
136 | 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */,
137 | 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */,
138 | );
139 | path = Flutter;
140 | sourceTree = "";
141 | };
142 | 33FAB671232836740065AC1E /* Runner */ = {
143 | isa = PBXGroup;
144 | children = (
145 | 33CC10F02044A3C60003C045 /* AppDelegate.swift */,
146 | 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */,
147 | 33E51913231747F40026EE4D /* DebugProfile.entitlements */,
148 | 33E51914231749380026EE4D /* Release.entitlements */,
149 | 33CC11242044D66E0003C045 /* Resources */,
150 | 33BA886A226E78AF003329D5 /* Configs */,
151 | );
152 | path = Runner;
153 | sourceTree = "";
154 | };
155 | C35A6606F8F943EC16F45ADD /* Pods */ = {
156 | isa = PBXGroup;
157 | children = (
158 | 8868482B67271E42AE9DC6CB /* Pods-Runner.debug.xcconfig */,
159 | 8F46EAF702742818FE4AA893 /* Pods-Runner.release.xcconfig */,
160 | 2C4D7BA5603DA6A5A2A2B2A9 /* Pods-Runner.profile.xcconfig */,
161 | );
162 | name = Pods;
163 | path = Pods;
164 | sourceTree = "";
165 | };
166 | D73912EC22F37F3D000D13A0 /* Frameworks */ = {
167 | isa = PBXGroup;
168 | children = (
169 | 3A58FD5B5FE6A334B7F5F195 /* Pods_Runner.framework */,
170 | );
171 | name = Frameworks;
172 | sourceTree = "";
173 | };
174 | /* End PBXGroup section */
175 |
176 | /* Begin PBXNativeTarget section */
177 | 33CC10EC2044A3C60003C045 /* Runner */ = {
178 | isa = PBXNativeTarget;
179 | buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */;
180 | buildPhases = (
181 | 18475FE3A9F95A14B8C12AB6 /* [CP] Check Pods Manifest.lock */,
182 | 33CC10E92044A3C60003C045 /* Sources */,
183 | 33CC10EA2044A3C60003C045 /* Frameworks */,
184 | 33CC10EB2044A3C60003C045 /* Resources */,
185 | 33CC110E2044A8840003C045 /* Bundle Framework */,
186 | 3399D490228B24CF009A79C7 /* ShellScript */,
187 | D5DC83CB65D4DA86A8432CB7 /* [CP] Embed Pods Frameworks */,
188 | );
189 | buildRules = (
190 | );
191 | dependencies = (
192 | 33CC11202044C79F0003C045 /* PBXTargetDependency */,
193 | );
194 | name = Runner;
195 | productName = Runner;
196 | productReference = 33CC10ED2044A3C60003C045 /* flash_tool.app */;
197 | productType = "com.apple.product-type.application";
198 | };
199 | /* End PBXNativeTarget section */
200 |
201 | /* Begin PBXProject section */
202 | 33CC10E52044A3C60003C045 /* Project object */ = {
203 | isa = PBXProject;
204 | attributes = {
205 | LastSwiftUpdateCheck = 0920;
206 | LastUpgradeCheck = 0930;
207 | ORGANIZATIONNAME = "";
208 | TargetAttributes = {
209 | 33CC10EC2044A3C60003C045 = {
210 | CreatedOnToolsVersion = 9.2;
211 | LastSwiftMigration = 1100;
212 | ProvisioningStyle = Automatic;
213 | SystemCapabilities = {
214 | com.apple.Sandbox = {
215 | enabled = 1;
216 | };
217 | };
218 | };
219 | 33CC111A2044C6BA0003C045 = {
220 | CreatedOnToolsVersion = 9.2;
221 | ProvisioningStyle = Manual;
222 | };
223 | };
224 | };
225 | buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */;
226 | compatibilityVersion = "Xcode 9.3";
227 | developmentRegion = en;
228 | hasScannedForEncodings = 0;
229 | knownRegions = (
230 | en,
231 | Base,
232 | );
233 | mainGroup = 33CC10E42044A3C60003C045;
234 | productRefGroup = 33CC10EE2044A3C60003C045 /* Products */;
235 | projectDirPath = "";
236 | projectRoot = "";
237 | targets = (
238 | 33CC10EC2044A3C60003C045 /* Runner */,
239 | 33CC111A2044C6BA0003C045 /* Flutter Assemble */,
240 | );
241 | };
242 | /* End PBXProject section */
243 |
244 | /* Begin PBXResourcesBuildPhase section */
245 | 33CC10EB2044A3C60003C045 /* Resources */ = {
246 | isa = PBXResourcesBuildPhase;
247 | buildActionMask = 2147483647;
248 | files = (
249 | 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */,
250 | 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */,
251 | );
252 | runOnlyForDeploymentPostprocessing = 0;
253 | };
254 | /* End PBXResourcesBuildPhase section */
255 |
256 | /* Begin PBXShellScriptBuildPhase section */
257 | 18475FE3A9F95A14B8C12AB6 /* [CP] Check Pods Manifest.lock */ = {
258 | isa = PBXShellScriptBuildPhase;
259 | buildActionMask = 2147483647;
260 | files = (
261 | );
262 | inputFileListPaths = (
263 | );
264 | inputPaths = (
265 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
266 | "${PODS_ROOT}/Manifest.lock",
267 | );
268 | name = "[CP] Check Pods Manifest.lock";
269 | outputFileListPaths = (
270 | );
271 | outputPaths = (
272 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
273 | );
274 | runOnlyForDeploymentPostprocessing = 0;
275 | shellPath = /bin/sh;
276 | 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";
277 | showEnvVarsInLog = 0;
278 | };
279 | 3399D490228B24CF009A79C7 /* ShellScript */ = {
280 | isa = PBXShellScriptBuildPhase;
281 | buildActionMask = 2147483647;
282 | files = (
283 | );
284 | inputFileListPaths = (
285 | );
286 | inputPaths = (
287 | );
288 | outputFileListPaths = (
289 | );
290 | outputPaths = (
291 | );
292 | runOnlyForDeploymentPostprocessing = 0;
293 | shellPath = /bin/sh;
294 | shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh embed\n";
295 | };
296 | 33CC111E2044C6BF0003C045 /* ShellScript */ = {
297 | isa = PBXShellScriptBuildPhase;
298 | buildActionMask = 2147483647;
299 | files = (
300 | );
301 | inputFileListPaths = (
302 | Flutter/ephemeral/FlutterInputs.xcfilelist,
303 | );
304 | inputPaths = (
305 | Flutter/ephemeral/tripwire,
306 | );
307 | outputFileListPaths = (
308 | Flutter/ephemeral/FlutterOutputs.xcfilelist,
309 | );
310 | outputPaths = (
311 | );
312 | runOnlyForDeploymentPostprocessing = 0;
313 | shellPath = /bin/sh;
314 | shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire";
315 | };
316 | D5DC83CB65D4DA86A8432CB7 /* [CP] Embed Pods Frameworks */ = {
317 | isa = PBXShellScriptBuildPhase;
318 | buildActionMask = 2147483647;
319 | files = (
320 | );
321 | inputFileListPaths = (
322 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
323 | );
324 | name = "[CP] Embed Pods Frameworks";
325 | outputFileListPaths = (
326 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
327 | );
328 | runOnlyForDeploymentPostprocessing = 0;
329 | shellPath = /bin/sh;
330 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
331 | showEnvVarsInLog = 0;
332 | };
333 | /* End PBXShellScriptBuildPhase section */
334 |
335 | /* Begin PBXSourcesBuildPhase section */
336 | 33CC10E92044A3C60003C045 /* Sources */ = {
337 | isa = PBXSourcesBuildPhase;
338 | buildActionMask = 2147483647;
339 | files = (
340 | 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */,
341 | 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */,
342 | 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */,
343 | );
344 | runOnlyForDeploymentPostprocessing = 0;
345 | };
346 | /* End PBXSourcesBuildPhase section */
347 |
348 | /* Begin PBXTargetDependency section */
349 | 33CC11202044C79F0003C045 /* PBXTargetDependency */ = {
350 | isa = PBXTargetDependency;
351 | target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */;
352 | targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */;
353 | };
354 | /* End PBXTargetDependency section */
355 |
356 | /* Begin PBXVariantGroup section */
357 | 33CC10F42044A3C60003C045 /* MainMenu.xib */ = {
358 | isa = PBXVariantGroup;
359 | children = (
360 | 33CC10F52044A3C60003C045 /* Base */,
361 | );
362 | name = MainMenu.xib;
363 | path = Runner;
364 | sourceTree = "";
365 | };
366 | /* End PBXVariantGroup section */
367 |
368 | /* Begin XCBuildConfiguration section */
369 | 338D0CE9231458BD00FA5F75 /* Profile */ = {
370 | isa = XCBuildConfiguration;
371 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
372 | buildSettings = {
373 | ALWAYS_SEARCH_USER_PATHS = NO;
374 | CLANG_ANALYZER_NONNULL = YES;
375 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
376 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
377 | CLANG_CXX_LIBRARY = "libc++";
378 | CLANG_ENABLE_MODULES = YES;
379 | CLANG_ENABLE_OBJC_ARC = YES;
380 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
381 | CLANG_WARN_BOOL_CONVERSION = YES;
382 | CLANG_WARN_CONSTANT_CONVERSION = YES;
383 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
384 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
385 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
386 | CLANG_WARN_EMPTY_BODY = YES;
387 | CLANG_WARN_ENUM_CONVERSION = YES;
388 | CLANG_WARN_INFINITE_RECURSION = YES;
389 | CLANG_WARN_INT_CONVERSION = YES;
390 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
391 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
392 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
393 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
394 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
395 | CODE_SIGN_IDENTITY = "-";
396 | COPY_PHASE_STRIP = NO;
397 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
398 | ENABLE_NS_ASSERTIONS = NO;
399 | ENABLE_STRICT_OBJC_MSGSEND = YES;
400 | GCC_C_LANGUAGE_STANDARD = gnu11;
401 | GCC_NO_COMMON_BLOCKS = YES;
402 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
403 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
404 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
405 | GCC_WARN_UNUSED_FUNCTION = YES;
406 | GCC_WARN_UNUSED_VARIABLE = YES;
407 | MACOSX_DEPLOYMENT_TARGET = 10.11;
408 | MTL_ENABLE_DEBUG_INFO = NO;
409 | SDKROOT = macosx;
410 | SWIFT_COMPILATION_MODE = wholemodule;
411 | SWIFT_OPTIMIZATION_LEVEL = "-O";
412 | };
413 | name = Profile;
414 | };
415 | 338D0CEA231458BD00FA5F75 /* Profile */ = {
416 | isa = XCBuildConfiguration;
417 | baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
418 | buildSettings = {
419 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
420 | CLANG_ENABLE_MODULES = YES;
421 | CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;
422 | CODE_SIGN_STYLE = Automatic;
423 | COMBINE_HIDPI_IMAGES = YES;
424 | INFOPLIST_FILE = Runner/Info.plist;
425 | LD_RUNPATH_SEARCH_PATHS = (
426 | "$(inherited)",
427 | "@executable_path/../Frameworks",
428 | );
429 | PROVISIONING_PROFILE_SPECIFIER = "";
430 | SWIFT_VERSION = 5.0;
431 | };
432 | name = Profile;
433 | };
434 | 338D0CEB231458BD00FA5F75 /* Profile */ = {
435 | isa = XCBuildConfiguration;
436 | buildSettings = {
437 | CODE_SIGN_STYLE = Manual;
438 | PRODUCT_NAME = "$(TARGET_NAME)";
439 | };
440 | name = Profile;
441 | };
442 | 33CC10F92044A3C60003C045 /* Debug */ = {
443 | isa = XCBuildConfiguration;
444 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
445 | buildSettings = {
446 | ALWAYS_SEARCH_USER_PATHS = NO;
447 | CLANG_ANALYZER_NONNULL = YES;
448 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
449 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
450 | CLANG_CXX_LIBRARY = "libc++";
451 | CLANG_ENABLE_MODULES = YES;
452 | CLANG_ENABLE_OBJC_ARC = YES;
453 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
454 | CLANG_WARN_BOOL_CONVERSION = YES;
455 | CLANG_WARN_CONSTANT_CONVERSION = YES;
456 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
457 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
458 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
459 | CLANG_WARN_EMPTY_BODY = YES;
460 | CLANG_WARN_ENUM_CONVERSION = YES;
461 | CLANG_WARN_INFINITE_RECURSION = YES;
462 | CLANG_WARN_INT_CONVERSION = YES;
463 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
464 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
465 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
466 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
467 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
468 | CODE_SIGN_IDENTITY = "-";
469 | COPY_PHASE_STRIP = NO;
470 | DEBUG_INFORMATION_FORMAT = dwarf;
471 | ENABLE_STRICT_OBJC_MSGSEND = YES;
472 | ENABLE_TESTABILITY = YES;
473 | GCC_C_LANGUAGE_STANDARD = gnu11;
474 | GCC_DYNAMIC_NO_PIC = NO;
475 | GCC_NO_COMMON_BLOCKS = YES;
476 | GCC_OPTIMIZATION_LEVEL = 0;
477 | GCC_PREPROCESSOR_DEFINITIONS = (
478 | "DEBUG=1",
479 | "$(inherited)",
480 | );
481 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
482 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
483 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
484 | GCC_WARN_UNUSED_FUNCTION = YES;
485 | GCC_WARN_UNUSED_VARIABLE = YES;
486 | MACOSX_DEPLOYMENT_TARGET = 10.11;
487 | MTL_ENABLE_DEBUG_INFO = YES;
488 | ONLY_ACTIVE_ARCH = YES;
489 | SDKROOT = macosx;
490 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
491 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
492 | };
493 | name = Debug;
494 | };
495 | 33CC10FA2044A3C60003C045 /* Release */ = {
496 | isa = XCBuildConfiguration;
497 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
498 | buildSettings = {
499 | ALWAYS_SEARCH_USER_PATHS = NO;
500 | CLANG_ANALYZER_NONNULL = YES;
501 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
502 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
503 | CLANG_CXX_LIBRARY = "libc++";
504 | CLANG_ENABLE_MODULES = YES;
505 | CLANG_ENABLE_OBJC_ARC = YES;
506 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
507 | CLANG_WARN_BOOL_CONVERSION = YES;
508 | CLANG_WARN_CONSTANT_CONVERSION = YES;
509 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
510 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
511 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
512 | CLANG_WARN_EMPTY_BODY = YES;
513 | CLANG_WARN_ENUM_CONVERSION = YES;
514 | CLANG_WARN_INFINITE_RECURSION = YES;
515 | CLANG_WARN_INT_CONVERSION = YES;
516 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
517 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
518 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
519 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
520 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
521 | CODE_SIGN_IDENTITY = "-";
522 | COPY_PHASE_STRIP = NO;
523 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
524 | ENABLE_NS_ASSERTIONS = NO;
525 | ENABLE_STRICT_OBJC_MSGSEND = YES;
526 | GCC_C_LANGUAGE_STANDARD = gnu11;
527 | GCC_NO_COMMON_BLOCKS = YES;
528 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
529 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
530 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
531 | GCC_WARN_UNUSED_FUNCTION = YES;
532 | GCC_WARN_UNUSED_VARIABLE = YES;
533 | MACOSX_DEPLOYMENT_TARGET = 10.11;
534 | MTL_ENABLE_DEBUG_INFO = NO;
535 | SDKROOT = macosx;
536 | SWIFT_COMPILATION_MODE = wholemodule;
537 | SWIFT_OPTIMIZATION_LEVEL = "-O";
538 | };
539 | name = Release;
540 | };
541 | 33CC10FC2044A3C60003C045 /* Debug */ = {
542 | isa = XCBuildConfiguration;
543 | baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
544 | buildSettings = {
545 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
546 | CLANG_ENABLE_MODULES = YES;
547 | CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;
548 | CODE_SIGN_STYLE = Automatic;
549 | COMBINE_HIDPI_IMAGES = YES;
550 | INFOPLIST_FILE = Runner/Info.plist;
551 | LD_RUNPATH_SEARCH_PATHS = (
552 | "$(inherited)",
553 | "@executable_path/../Frameworks",
554 | );
555 | PROVISIONING_PROFILE_SPECIFIER = "";
556 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
557 | SWIFT_VERSION = 5.0;
558 | };
559 | name = Debug;
560 | };
561 | 33CC10FD2044A3C60003C045 /* Release */ = {
562 | isa = XCBuildConfiguration;
563 | baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
564 | buildSettings = {
565 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
566 | CLANG_ENABLE_MODULES = YES;
567 | CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements;
568 | CODE_SIGN_STYLE = Automatic;
569 | COMBINE_HIDPI_IMAGES = YES;
570 | INFOPLIST_FILE = Runner/Info.plist;
571 | LD_RUNPATH_SEARCH_PATHS = (
572 | "$(inherited)",
573 | "@executable_path/../Frameworks",
574 | );
575 | PROVISIONING_PROFILE_SPECIFIER = "";
576 | SWIFT_VERSION = 5.0;
577 | };
578 | name = Release;
579 | };
580 | 33CC111C2044C6BA0003C045 /* Debug */ = {
581 | isa = XCBuildConfiguration;
582 | buildSettings = {
583 | CODE_SIGN_STYLE = Manual;
584 | PRODUCT_NAME = "$(TARGET_NAME)";
585 | };
586 | name = Debug;
587 | };
588 | 33CC111D2044C6BA0003C045 /* Release */ = {
589 | isa = XCBuildConfiguration;
590 | buildSettings = {
591 | CODE_SIGN_STYLE = Automatic;
592 | PRODUCT_NAME = "$(TARGET_NAME)";
593 | };
594 | name = Release;
595 | };
596 | /* End XCBuildConfiguration section */
597 |
598 | /* Begin XCConfigurationList section */
599 | 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */ = {
600 | isa = XCConfigurationList;
601 | buildConfigurations = (
602 | 33CC10F92044A3C60003C045 /* Debug */,
603 | 33CC10FA2044A3C60003C045 /* Release */,
604 | 338D0CE9231458BD00FA5F75 /* Profile */,
605 | );
606 | defaultConfigurationIsVisible = 0;
607 | defaultConfigurationName = Release;
608 | };
609 | 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */ = {
610 | isa = XCConfigurationList;
611 | buildConfigurations = (
612 | 33CC10FC2044A3C60003C045 /* Debug */,
613 | 33CC10FD2044A3C60003C045 /* Release */,
614 | 338D0CEA231458BD00FA5F75 /* Profile */,
615 | );
616 | defaultConfigurationIsVisible = 0;
617 | defaultConfigurationName = Release;
618 | };
619 | 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */ = {
620 | isa = XCConfigurationList;
621 | buildConfigurations = (
622 | 33CC111C2044C6BA0003C045 /* Debug */,
623 | 33CC111D2044C6BA0003C045 /* Release */,
624 | 338D0CEB231458BD00FA5F75 /* Profile */,
625 | );
626 | defaultConfigurationIsVisible = 0;
627 | defaultConfigurationName = Release;
628 | };
629 | /* End XCConfigurationList section */
630 | };
631 | rootObject = 33CC10E52044A3C60003C045 /* Project object */;
632 | }
633 |
--------------------------------------------------------------------------------
/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
37 |
38 |
39 |
40 |
41 |
42 |
52 |
54 |
60 |
61 |
62 |
63 |
64 |
65 |
71 |
73 |
79 |
80 |
81 |
82 |
84 |
85 |
88 |
89 |
90 |
--------------------------------------------------------------------------------
/macos/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/macos/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import Cocoa
2 | import FlutterMacOS
3 |
4 | @NSApplicationMain
5 | class AppDelegate: FlutterAppDelegate {
6 | override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
7 | return true
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "16x16",
5 | "idiom" : "mac",
6 | "filename" : "app_icon_16.png",
7 | "scale" : "1x"
8 | },
9 | {
10 | "size" : "16x16",
11 | "idiom" : "mac",
12 | "filename" : "app_icon_32.png",
13 | "scale" : "2x"
14 | },
15 | {
16 | "size" : "32x32",
17 | "idiom" : "mac",
18 | "filename" : "app_icon_32.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "32x32",
23 | "idiom" : "mac",
24 | "filename" : "app_icon_64.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "128x128",
29 | "idiom" : "mac",
30 | "filename" : "app_icon_128.png",
31 | "scale" : "1x"
32 | },
33 | {
34 | "size" : "128x128",
35 | "idiom" : "mac",
36 | "filename" : "app_icon_256.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "256x256",
41 | "idiom" : "mac",
42 | "filename" : "app_icon_256.png",
43 | "scale" : "1x"
44 | },
45 | {
46 | "size" : "256x256",
47 | "idiom" : "mac",
48 | "filename" : "app_icon_512.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "512x512",
53 | "idiom" : "mac",
54 | "filename" : "app_icon_512.png",
55 | "scale" : "1x"
56 | },
57 | {
58 | "size" : "512x512",
59 | "idiom" : "mac",
60 | "filename" : "app_icon_1024.png",
61 | "scale" : "2x"
62 | }
63 | ],
64 | "info" : {
65 | "version" : 1,
66 | "author" : "xcode"
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png
--------------------------------------------------------------------------------
/macos/Runner/Base.lproj/MainMenu.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
329 |
330 |
331 |
332 |
333 |
334 |
335 |
336 |
337 |
338 |
339 |
340 |
--------------------------------------------------------------------------------
/macos/Runner/Configs/AppInfo.xcconfig:
--------------------------------------------------------------------------------
1 | // Application-level settings for the Runner target.
2 | //
3 | // This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the
4 | // future. If not, the values below would default to using the project name when this becomes a
5 | // 'flutter create' template.
6 |
7 | // The application's name. By default this is also the title of the Flutter window.
8 | PRODUCT_NAME = flash_tool
9 |
10 | // The application's bundle identifier
11 | PRODUCT_BUNDLE_IDENTIFIER = com.nightmare.flashTool
12 |
13 | // The copyright displayed in application information
14 | PRODUCT_COPYRIGHT = Copyright © 2021 com.nightmare. All rights reserved.
15 |
--------------------------------------------------------------------------------
/macos/Runner/Configs/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "../../Flutter/Flutter-Debug.xcconfig"
2 | #include "Warnings.xcconfig"
3 |
--------------------------------------------------------------------------------
/macos/Runner/Configs/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "../../Flutter/Flutter-Release.xcconfig"
2 | #include "Warnings.xcconfig"
3 |
--------------------------------------------------------------------------------
/macos/Runner/Configs/Warnings.xcconfig:
--------------------------------------------------------------------------------
1 | WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings
2 | GCC_WARN_UNDECLARED_SELECTOR = YES
3 | CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES
4 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE
5 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
6 | CLANG_WARN_PRAGMA_PACK = YES
7 | CLANG_WARN_STRICT_PROTOTYPES = YES
8 | CLANG_WARN_COMMA = YES
9 | GCC_WARN_STRICT_SELECTOR_MATCH = YES
10 | CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES
11 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES
12 | GCC_WARN_SHADOW = YES
13 | CLANG_WARN_UNREACHABLE_CODE = YES
14 |
--------------------------------------------------------------------------------
/macos/Runner/DebugProfile.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.security.app-sandbox
6 |
7 | com.apple.security.cs.allow-jit
8 |
9 | com.apple.security.network.server
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/macos/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIconFile
10 |
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | $(FLUTTER_BUILD_NAME)
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSMinimumSystemVersion
24 | $(MACOSX_DEPLOYMENT_TARGET)
25 | NSHumanReadableCopyright
26 | $(PRODUCT_COPYRIGHT)
27 | NSMainNibFile
28 | MainMenu
29 | NSPrincipalClass
30 | NSApplication
31 |
32 |
33 |
--------------------------------------------------------------------------------
/macos/Runner/MainFlutterWindow.swift:
--------------------------------------------------------------------------------
1 | import Cocoa
2 | import FlutterMacOS
3 |
4 | class MainFlutterWindow: NSWindow {
5 | override func awakeFromNib() {
6 | let flutterViewController = FlutterViewController.init()
7 | let windowFrame = self.frame
8 | self.contentViewController = flutterViewController
9 | self.setFrame(windowFrame, display: true)
10 |
11 | RegisterGeneratedPlugins(registry: flutterViewController)
12 |
13 | super.awakeFromNib()
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/macos/Runner/Release.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.security.app-sandbox
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | async:
5 | dependency: transitive
6 | description:
7 | name: async
8 | url: "https://pub.flutter-io.cn"
9 | source: hosted
10 | version: "2.7.0"
11 | boolean_selector:
12 | dependency: transitive
13 | description:
14 | name: boolean_selector
15 | url: "https://pub.flutter-io.cn"
16 | source: hosted
17 | version: "2.1.0"
18 | characters:
19 | dependency: transitive
20 | description:
21 | name: characters
22 | url: "https://pub.flutter-io.cn"
23 | source: hosted
24 | version: "1.1.0"
25 | charcode:
26 | dependency: transitive
27 | description:
28 | name: charcode
29 | url: "https://pub.flutter-io.cn"
30 | source: hosted
31 | version: "1.3.1"
32 | clock:
33 | dependency: transitive
34 | description:
35 | name: clock
36 | url: "https://pub.flutter-io.cn"
37 | source: hosted
38 | version: "1.1.0"
39 | collection:
40 | dependency: transitive
41 | description:
42 | name: collection
43 | url: "https://pub.flutter-io.cn"
44 | source: hosted
45 | version: "1.15.0"
46 | cupertino_icons:
47 | dependency: "direct main"
48 | description:
49 | name: cupertino_icons
50 | url: "https://pub.flutter-io.cn"
51 | source: hosted
52 | version: "1.0.3"
53 | dart_pty:
54 | dependency: transitive
55 | description:
56 | path: "."
57 | ref: HEAD
58 | resolved-ref: "810c5024fe9e376092f3a53e30c8f80257189102"
59 | url: "https://github.com/termare/dart_pty"
60 | source: git
61 | version: "0.0.3"
62 | event_bus:
63 | dependency: transitive
64 | description:
65 | name: event_bus
66 | url: "https://pub.flutter-io.cn"
67 | source: hosted
68 | version: "1.1.1"
69 | executorservices:
70 | dependency: transitive
71 | description:
72 | name: executorservices
73 | url: "https://pub.flutter-io.cn"
74 | source: hosted
75 | version: "2.0.3"
76 | fake_async:
77 | dependency: transitive
78 | description:
79 | name: fake_async
80 | url: "https://pub.flutter-io.cn"
81 | source: hosted
82 | version: "1.2.0"
83 | ffi:
84 | dependency: transitive
85 | description:
86 | name: ffi
87 | url: "https://pub.flutter-io.cn"
88 | source: hosted
89 | version: "1.1.2"
90 | file:
91 | dependency: transitive
92 | description:
93 | name: file
94 | url: "https://pub.flutter-io.cn"
95 | source: hosted
96 | version: "6.1.2"
97 | flutter:
98 | dependency: "direct main"
99 | description: flutter
100 | source: sdk
101 | version: "0.0.0"
102 | flutter_screenutil:
103 | dependency: transitive
104 | description:
105 | name: flutter_screenutil
106 | url: "https://pub.flutter-io.cn"
107 | source: hosted
108 | version: "2.3.1"
109 | flutter_test:
110 | dependency: "direct dev"
111 | description: flutter
112 | source: sdk
113 | version: "0.0.0"
114 | get:
115 | dependency: "direct main"
116 | description:
117 | name: get
118 | url: "https://pub.flutter-io.cn"
119 | source: hosted
120 | version: "4.3.4"
121 | global_repository:
122 | dependency: "direct main"
123 | description:
124 | path: "."
125 | ref: HEAD
126 | resolved-ref: fecf09bbdecf20aefbb606de6e1dd6ecb5435621
127 | url: "https://github.com/nightmare-space/global_repository"
128 | source: git
129 | version: "0.0.1"
130 | matcher:
131 | dependency: transitive
132 | description:
133 | name: matcher
134 | url: "https://pub.flutter-io.cn"
135 | source: hosted
136 | version: "0.12.10"
137 | meta:
138 | dependency: transitive
139 | description:
140 | name: meta
141 | url: "https://pub.flutter-io.cn"
142 | source: hosted
143 | version: "1.4.0"
144 | path:
145 | dependency: transitive
146 | description:
147 | name: path
148 | url: "https://pub.flutter-io.cn"
149 | source: hosted
150 | version: "1.8.0"
151 | path_provider:
152 | dependency: transitive
153 | description:
154 | name: path_provider
155 | url: "https://pub.flutter-io.cn"
156 | source: hosted
157 | version: "2.0.2"
158 | path_provider_linux:
159 | dependency: transitive
160 | description:
161 | name: path_provider_linux
162 | url: "https://pub.flutter-io.cn"
163 | source: hosted
164 | version: "2.0.2"
165 | path_provider_macos:
166 | dependency: transitive
167 | description:
168 | name: path_provider_macos
169 | url: "https://pub.flutter-io.cn"
170 | source: hosted
171 | version: "2.0.2"
172 | path_provider_platform_interface:
173 | dependency: transitive
174 | description:
175 | name: path_provider_platform_interface
176 | url: "https://pub.flutter-io.cn"
177 | source: hosted
178 | version: "2.0.1"
179 | path_provider_windows:
180 | dependency: transitive
181 | description:
182 | name: path_provider_windows
183 | url: "https://pub.flutter-io.cn"
184 | source: hosted
185 | version: "2.0.3"
186 | permission_handler:
187 | dependency: transitive
188 | description:
189 | name: permission_handler
190 | url: "https://pub.flutter-io.cn"
191 | source: hosted
192 | version: "6.0.0"
193 | permission_handler_platform_interface:
194 | dependency: transitive
195 | description:
196 | name: permission_handler_platform_interface
197 | url: "https://pub.flutter-io.cn"
198 | source: hosted
199 | version: "3.6.1"
200 | platform:
201 | dependency: transitive
202 | description:
203 | name: platform
204 | url: "https://pub.flutter-io.cn"
205 | source: hosted
206 | version: "3.0.0"
207 | plugin_platform_interface:
208 | dependency: transitive
209 | description:
210 | name: plugin_platform_interface
211 | url: "https://pub.flutter-io.cn"
212 | source: hosted
213 | version: "2.0.1"
214 | process:
215 | dependency: transitive
216 | description:
217 | name: process
218 | url: "https://pub.flutter-io.cn"
219 | source: hosted
220 | version: "4.2.3"
221 | quiver:
222 | dependency: transitive
223 | description:
224 | name: quiver
225 | url: "https://pub.flutter-io.cn"
226 | source: hosted
227 | version: "3.0.1"
228 | signale:
229 | dependency: transitive
230 | description:
231 | path: "."
232 | ref: HEAD
233 | resolved-ref: c08220ab2fff96addd575e1c0744984bda17a5ce
234 | url: "https://github.com/Nightmare-MY/signale"
235 | source: git
236 | version: "0.0.5"
237 | sky_engine:
238 | dependency: transitive
239 | description: flutter
240 | source: sdk
241 | version: "0.0.99"
242 | source_span:
243 | dependency: transitive
244 | description:
245 | name: source_span
246 | url: "https://pub.flutter-io.cn"
247 | source: hosted
248 | version: "1.8.1"
249 | stack_trace:
250 | dependency: transitive
251 | description:
252 | name: stack_trace
253 | url: "https://pub.flutter-io.cn"
254 | source: hosted
255 | version: "1.10.0"
256 | stream_channel:
257 | dependency: transitive
258 | description:
259 | name: stream_channel
260 | url: "https://pub.flutter-io.cn"
261 | source: hosted
262 | version: "2.1.0"
263 | string_scanner:
264 | dependency: transitive
265 | description:
266 | name: string_scanner
267 | url: "https://pub.flutter-io.cn"
268 | source: hosted
269 | version: "1.1.0"
270 | term_glyph:
271 | dependency: transitive
272 | description:
273 | name: term_glyph
274 | url: "https://pub.flutter-io.cn"
275 | source: hosted
276 | version: "1.2.0"
277 | termare_pty:
278 | dependency: "direct main"
279 | description:
280 | path: "."
281 | ref: HEAD
282 | resolved-ref: "99767bc69901c45b50f2da6813e1f56c4a7ea67b"
283 | url: "https://github.com/termare/termare_pty"
284 | source: git
285 | version: "1.0.0+1"
286 | termare_view:
287 | dependency: transitive
288 | description:
289 | path: "."
290 | ref: HEAD
291 | resolved-ref: "08511f293c7cf27eb4f3f5cab89bd08cb039140d"
292 | url: "https://github.com/termare/termare_view"
293 | source: git
294 | version: "0.0.7"
295 | test_api:
296 | dependency: transitive
297 | description:
298 | name: test_api
299 | url: "https://pub.flutter-io.cn"
300 | source: hosted
301 | version: "0.4.1"
302 | typed_data:
303 | dependency: transitive
304 | description:
305 | name: typed_data
306 | url: "https://pub.flutter-io.cn"
307 | source: hosted
308 | version: "1.3.0"
309 | vector_math:
310 | dependency: transitive
311 | description:
312 | name: vector_math
313 | url: "https://pub.flutter-io.cn"
314 | source: hosted
315 | version: "2.1.0"
316 | win32:
317 | dependency: transitive
318 | description:
319 | name: win32
320 | url: "https://pub.flutter-io.cn"
321 | source: hosted
322 | version: "2.2.5"
323 | xdg_directories:
324 | dependency: transitive
325 | description:
326 | name: xdg_directories
327 | url: "https://pub.flutter-io.cn"
328 | source: hosted
329 | version: "0.2.0"
330 | sdks:
331 | dart: ">=2.13.0 <3.0.0"
332 | flutter: ">=2.0.0"
333 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: flash_tool
2 | description: A new Flutter project.
3 | publish_to: "none" # Remove this line if you wish to publish to pub.dev
4 | version: 1.0.0+1
5 |
6 | environment:
7 | sdk: ">=2.7.0 <3.0.0"
8 |
9 | dependencies:
10 | flutter:
11 | sdk: flutter
12 | global_repository:
13 | git: https://github.com/nightmare-space/global_repository
14 | cupertino_icons: ^1.0.2
15 | get: ^4.1.3
16 | termare_pty:
17 | git: https://github.com/termare/termare_pty
18 |
19 | dev_dependencies:
20 | flutter_test:
21 | sdk: flutter
22 |
23 | flutter:
24 | uses-material-design: true
25 | assets:
26 | - assets/android/
27 |
--------------------------------------------------------------------------------
/test/widget_test.dart:
--------------------------------------------------------------------------------
1 | // This is a basic Flutter widget test.
2 | //
3 | // To perform an interaction with a widget in your test, use the WidgetTester
4 | // utility that Flutter provides. For example, you can send tap and scroll
5 | // gestures. You can also use WidgetTester to find child widgets in the widget
6 | // tree, read text, and verify that the values of widget properties are correct.
7 |
8 | import 'package:flutter/material.dart';
9 | import 'package:flutter_test/flutter_test.dart';
10 |
11 | import 'package:flash_tool/main.dart';
12 |
13 | void main() {
14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async {
15 | // Build our app and trigger a frame.
16 | await tester.pumpWidget(MyApp());
17 |
18 | // Verify that our counter starts at 0.
19 | expect(find.text('0'), findsOneWidget);
20 | expect(find.text('1'), findsNothing);
21 |
22 | // Tap the '+' icon and trigger a frame.
23 | await tester.tap(find.byIcon(Icons.add));
24 | await tester.pump();
25 |
26 | // Verify that our counter has incremented.
27 | expect(find.text('0'), findsNothing);
28 | expect(find.text('1'), findsOneWidget);
29 | });
30 | }
31 |
--------------------------------------------------------------------------------
/web/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/web/favicon.png
--------------------------------------------------------------------------------
/web/icons/Icon-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/web/icons/Icon-192.png
--------------------------------------------------------------------------------
/web/icons/Icon-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nightmare-space/flash_tool/8292a882a042fc4a7964ca6c870a9efd6fb667ba/web/icons/Icon-512.png
--------------------------------------------------------------------------------
/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 | flash_tool
27 |
28 |
29 |
30 |
33 |
97 |
98 |
99 |
--------------------------------------------------------------------------------
/web/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "flash_tool",
3 | "short_name": "flash_tool",
4 | "start_url": ".",
5 | "display": "standalone",
6 | "background_color": "#0175C2",
7 | "theme_color": "#0175C2",
8 | "description": "A new Flutter project.",
9 | "orientation": "portrait-primary",
10 | "prefer_related_applications": false,
11 | "icons": [
12 | {
13 | "src": "icons/Icon-192.png",
14 | "sizes": "192x192",
15 | "type": "image/png"
16 | },
17 | {
18 | "src": "icons/Icon-512.png",
19 | "sizes": "512x512",
20 | "type": "image/png"
21 | }
22 | ]
23 | }
24 |
--------------------------------------------------------------------------------