Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
flutter_plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林生雨
flutter_plugin
Commits
119c7c10
Commit
119c7c10
authored
Jan 08, 2020
by
林生雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
8ff33dab
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
156 additions
and
81 deletions
+156
-81
workspace.xml
.idea/workspace.xml
+89
-81
GengmeiFlutterPlugin.m
ios/Classes/GengmeiFlutterPlugin.m
+51
-0
ScanImagePlugn.dart
lib/ScanImagePlugn.dart
+8
-0
gengmei_flutter_plugin.dart
lib/gengmei_flutter_plugin.dart
+8
-0
No files found.
.idea/workspace.xml
View file @
119c7c10
...
...
@@ -6,9 +6,8 @@
</component>
<component
name=
"ChangeListManager"
>
<list
default=
"$ENABLE_FLUTTER_DESKTOP$"
id=
"5be6bbb5-7d6e-4540-a24f-d2b3bf78b3ba"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/example/ios/Flutter/flutter_export_environment.sh"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/example/ios/Flutter/flutter_export_environment.sh"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/example/ios/Podfile.lock"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/example/ios/Podfile.lock"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/example/lib/main.dart"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/example/lib/main.dart"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/example/ios/.symlinks/plugins/gengmei_flutter_plugin/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/example/ios/.symlinks/plugins/gengmei_flutter_plugin/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/ios/Classes/GengmeiFlutterPlugin.m"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/ios/Classes/GengmeiFlutterPlugin.m"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/lib/ScanImagePlugn.dart"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/lib/ScanImagePlugn.dart"
afterDir=
"false"
/>
</list>
...
...
@@ -27,90 +26,79 @@
<component
name=
"DefaultGradleProjectSettings"
>
<option
name=
"isMigrated"
value=
"$ENABLE_FLUTTER_DESKTOP$"
/>
</component>
<component
name=
"ExecutionTargetManager"
SELECTED_TARGET=
"
STSDU19527007916
"
/>
<component
name=
"ExecutionTargetManager"
SELECTED_TARGET=
"
AKC0218316000622
"
/>
<component
name=
"FileEditorManager"
>
<leaf
SIDE_TABS_SIZE_LIMIT_KEY=
"300"
>
<file
pinned=
"false"
current-in-tab=
"
$ENABLE_FLUTTER_DESKTOP$
"
>
<entry
file=
"file://$PROJECT_DIR$/
lib/ScanImagePlugn.dar
t"
>
<file
pinned=
"false"
current-in-tab=
"
false
"
>
<entry
file=
"file://$PROJECT_DIR$/
android/src/main/kotlin/com/example/gengmei_flutter_plugin/act/view/PinchImageView.k
t"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"174"
>
<caret
line=
"68"
column=
"67"
selection-start-line=
"68"
selection-start-column=
"66"
selection-end-line=
"68"
selection-end-column=
"67"
/>
<folding>
<element
signature=
"e#45#86#0"
expanded=
"$ENABLE_FLUTTER_DESKTOP$"
/>
</folding>
<state
relative-caret-position=
"242"
>
<caret
line=
"19"
column=
"6"
selection-start-line=
"19"
selection-start-column=
"6"
selection-end-line=
"19"
selection-end-column=
"6"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/lib/SharedPlugin.dart"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"-442"
>
<caret
line=
"17"
selection-start-line=
"17"
selection-end-line=
"17"
/>
</state>
</provider>
<entry
file=
"file://$PROJECT_DIR$/example/pubspec.lock"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
/>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/example/
lib/main.dart
"
>
<entry
file=
"file://$PROJECT_DIR$/example/
pubspec.yaml
"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"242"
>
<caret
line=
"22"
column=
"44"
selection-start-line=
"22"
selection-start-column=
"40"
selection-end-line=
"22"
selection-end-column=
"44"
/>
<folding>
<element
signature=
"e#0#17#0"
expanded=
"$ENABLE_FLUTTER_DESKTOP$"
/>
</folding>
<state
relative-caret-position=
"308"
>
<caret
line=
"14"
column=
"17"
selection-start-line=
"14"
selection-start-column=
"17"
selection-end-line=
"14"
selection-end-column=
"17"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$
PROJECT_DIR$/android/src/main/kotlin/com/example/gengmei_flutter_plugin/act/VideoActivity.k
t"
>
<entry
file=
"file://$
USER_HOME$/Downloads/flutter/packages/flutter/lib/src/services/platform_channel.dar
t"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
176
"
>
<caret
line=
"
15"
column=
"6"
selection-start-line=
"15"
selection-start-column=
"6"
selection-end-line=
"15"
selection-end-column=
"6
"
/>
<state
relative-caret-position=
"
6182
"
>
<caret
line=
"
291"
column=
"5"
selection-start-line=
"291"
selection-start-column=
"5"
selection-end-line=
"291"
selection-end-column=
"5
"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/
android/src/main/kotlin/com/example/gengmei_flutter_plugin/act/view/PinchImageView.k
t"
>
<entry
file=
"file://$PROJECT_DIR$/
lib/gengmei_flutter_plugin.dar
t"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"242"
>
<caret
line=
"19"
column=
"6"
selection-start-line=
"19"
selection-start-column=
"6"
selection-end-line=
"19"
selection-end-column=
"6"
/>
<state
relative-caret-position=
"367"
>
<caret
line=
"56"
column=
"41"
selection-start-line=
"56"
selection-start-column=
"41"
selection-end-line=
"56"
selection-end-column=
"41"
/>
<folding>
<element
signature=
"e#0#20#0"
expanded=
"$ENABLE_FLUTTER_DESKTOP$"
/>
</folding>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/
example/pubspec.lock
"
>
<entry
file=
"file://$PROJECT_DIR$/
ios/Classes/MyPreviewController.m
"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
/>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/example/pubspec.yaml"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"308"
>
<caret
line=
"14"
column=
"17"
selection-start-line=
"14"
selection-start-column=
"17"
selection-end-line=
"14"
selection-end-column=
"17"
/>
</state>
</provider>
<entry
file=
"file://$PROJECT_DIR$/ios/Classes/MyPlayerViewController.m"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
/>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$
USER_HOME$/Downloads/flutter/packages/flutter/lib/src/services/platform_channel.dart
"
>
<entry
file=
"file://$
PROJECT_DIR$/ios/Classes/GengmeiFlutterPlugin.m
"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
618
2"
>
<caret
line=
"
291"
column=
"5"
selection-start-line=
"291"
selection-start-column=
"5"
selection-end-line=
"291"
selection-end-column=
"
5"
/>
<state
relative-caret-position=
"
2
2"
>
<caret
line=
"
314"
selection-start-line=
"314"
selection-end-line=
"31
5"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"
false
"
>
<entry
file=
"file://$PROJECT_DIR$/lib/
gengmei_flutter_plugi
n.dart"
>
<file
pinned=
"false"
current-in-tab=
"
$ENABLE_FLUTTER_DESKTOP$
"
>
<entry
file=
"file://$PROJECT_DIR$/lib/
ScanImagePlug
n.dart"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
395
"
>
<caret
line=
"
56"
column=
"41"
selection-start-line=
"56"
selection-start-column=
"41"
selection-end-line=
"56"
selection-end-column=
"41
"
/>
<state
relative-caret-position=
"
413
"
>
<caret
line=
"
78"
column=
"39"
selection-start-line=
"78"
selection-start-column=
"39"
selection-end-line=
"78"
selection-end-column=
"39
"
/>
<folding>
<element
signature=
"e#
0#20
#0"
expanded=
"$ENABLE_FLUTTER_DESKTOP$"
/>
<element
signature=
"e#
45#62
#0"
expanded=
"$ENABLE_FLUTTER_DESKTOP$"
/>
</folding>
</state>
</provider>
...
...
@@ -119,7 +107,7 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/example/lib/AlbumModel/page/album/AlbumPage.dart"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
3916
"
>
<state
relative-caret-position=
"
4048
"
>
<caret
line=
"187"
column=
"18"
selection-start-line=
"187"
selection-start-column=
"18"
selection-end-line=
"187"
selection-end-column=
"18"
/>
<folding>
<element
signature=
"e#45#62#0"
expanded=
"$ENABLE_FLUTTER_DESKTOP$"
/>
...
...
@@ -200,10 +188,11 @@
</list>
</option>
</component>
<component
name=
"ProjectFrameBounds"
>
<option
name=
"y"
value=
"97"
/>
<component
name=
"ProjectFrameBounds"
extendedState=
"6"
>
<option
name=
"x"
value=
"11"
/>
<option
name=
"y"
value=
"51"
/>
<option
name=
"width"
value=
"1440"
/>
<option
name=
"height"
value=
"81
6
"
/>
<option
name=
"height"
value=
"81
1
"
/>
</component>
<component
name=
"ProjectLevelVcsManager"
settingsEditedManually=
"$ENABLE_FLUTTER_DESKTOP$"
/>
<component
name=
"ProjectView"
>
...
...
@@ -211,9 +200,7 @@
<foldersAlwaysOnTop
value=
"$ENABLE_FLUTTER_DESKTOP$"
/>
</navigator>
<panes>
<pane
id=
"AndroidView"
/>
<pane
id=
"Scope"
/>
<pane
id=
"PackagesPane"
/>
<pane
id=
"ProjectPane"
>
<subPane>
<expand>
...
...
@@ -232,6 +219,23 @@
<item
name=
"example"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"lib"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"gengmei_flutter_plugin"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"gengmei_flutter_plugin"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"ios"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"gengmei_flutter_plugin"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"gengmei_flutter_plugin"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"ios"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"Assets"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"gengmei_flutter_plugin"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"gengmei_flutter_plugin"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"ios"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"Classes"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"gengmei_flutter_plugin"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"gengmei_flutter_plugin"
type=
"462c0819:PsiDirectoryNode"
/>
...
...
@@ -241,6 +245,8 @@
<select
/>
</subPane>
</pane>
<pane
id=
"AndroidView"
/>
<pane
id=
"PackagesPane"
/>
</panes>
</component>
<component
name=
"PropertiesComponent"
>
...
...
@@ -287,7 +293,7 @@
<servers
/>
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"0"
y=
"
97"
width=
"1440"
height=
"816"
extended-state=
"0
"
/>
<frame
x=
"0"
y=
"
23"
width=
"1440"
height=
"811"
extended-state=
"6
"
/>
<editor
active=
"$ENABLE_FLUTTER_DESKTOP$"
/>
<layout>
<window_info
active=
"$ENABLE_FLUTTER_DESKTOP$"
content_ui=
"combo"
id=
"Project"
order=
"0"
visible=
"$ENABLE_FLUTTER_DESKTOP$"
weight=
"0.19742489"
/>
...
...
@@ -305,7 +311,7 @@
<window_info
anchor=
"bottom"
id=
"Android Profiler"
order=
"3"
show_stripe_button=
"false"
/>
<window_info
anchor=
"bottom"
id=
"Logcat"
order=
"4"
weight=
"0.20164609"
/>
<window_info
anchor=
"bottom"
id=
"Debug"
order=
"5"
weight=
"0.32962447"
/>
<window_info
anchor=
"bottom"
id=
"Terminal"
order=
"6"
visible=
"$ENABLE_FLUTTER_DESKTOP$"
weight=
"0.32872927
"
/>
<window_info
anchor=
"bottom"
id=
"Terminal"
order=
"6"
weight=
"0.38942978
"
/>
<window_info
anchor=
"bottom"
id=
"Event Log"
order=
"7"
side_tool=
"$ENABLE_FLUTTER_DESKTOP$"
/>
<window_info
anchor=
"bottom"
id=
"Flutter Performance"
order=
"8"
side_tool=
"$ENABLE_FLUTTER_DESKTOP$"
/>
<window_info
anchor=
"bottom"
id=
"Version Control"
order=
"9"
/>
...
...
@@ -321,10 +327,6 @@
</layout>
</component>
<component
name=
"editorHistoryManager"
>
<entry
file=
"file://$PROJECT_DIR$/android/src/main/java/com/example/gengmei_flutter_plugin/a"
/>
<entry
file=
"file://$PROJECT_DIR$/android/gengmei_flutter_plugin.iml"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
/>
</entry>
<entry
file=
"file://$PROJECT_DIR$/android/gengmei_flutter_plugin_android.iml"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"220"
>
...
...
@@ -426,13 +428,6 @@
<entry
file=
"file://$PROJECT_DIR$/pubspec.lock"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
/>
</entry>
<entry
file=
"file://$PROJECT_DIR$/ios/Classes/GengmeiFlutterPlugin.m"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"12672"
>
<caret
line=
"597"
column=
"22"
selection-start-line=
"597"
selection-start-column=
"22"
selection-end-line=
"597"
selection-end-column=
"22"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/ios/Classes/Image/ResultManager.h"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
/>
</entry>
...
...
@@ -554,6 +549,13 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/lib/SharedPlugin.dart"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"308"
>
<caret
line=
"17"
selection-start-line=
"17"
selection-end-line=
"17"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/android/src/main/kotlin/com/example/gengmei_flutter_plugin/act/VideoActivity.kt"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"176"
>
...
...
@@ -561,6 +563,16 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/example/lib/main.dart"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"484"
>
<caret
line=
"22"
column=
"45"
selection-start-line=
"22"
selection-start-column=
"45"
selection-end-line=
"22"
selection-end-column=
"45"
/>
<folding>
<element
signature=
"e#0#17#0"
expanded=
"$ENABLE_FLUTTER_DESKTOP$"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/android/src/main/kotlin/com/example/gengmei_flutter_plugin/act/view/PinchImageView.kt"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"242"
>
...
...
@@ -585,9 +597,15 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/ios/Classes/MyPreviewController.m"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
/>
</entry>
<entry
file=
"file://$PROJECT_DIR$/ios/Classes/MyPlayerViewController.m"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
/>
</entry>
<entry
file=
"file://$PROJECT_DIR$/example/lib/AlbumModel/page/album/AlbumPage.dart"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
3916
"
>
<state
relative-caret-position=
"
4048
"
>
<caret
line=
"187"
column=
"18"
selection-start-line=
"187"
selection-start-column=
"18"
selection-end-line=
"187"
selection-end-column=
"18"
/>
<folding>
<element
signature=
"e#45#62#0"
expanded=
"$ENABLE_FLUTTER_DESKTOP$"
/>
...
...
@@ -595,26 +613,16 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/example/lib/main.dart"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"242"
>
<caret
line=
"22"
column=
"44"
selection-start-line=
"22"
selection-start-column=
"40"
selection-end-line=
"22"
selection-end-column=
"44"
/>
<folding>
<element
signature=
"e#0#17#0"
expanded=
"$ENABLE_FLUTTER_DESKTOP$"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/lib/SharedPlugin.dart"
>
<entry
file=
"file://$PROJECT_DIR$/ios/Classes/GengmeiFlutterPlugin.m"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-44
2"
>
<caret
line=
"
17"
selection-start-line=
"17"
selection-end-line=
"17
"
/>
<state
relative-caret-position=
"
2
2"
>
<caret
line=
"
314"
selection-start-line=
"314"
selection-end-line=
"315
"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/lib/gengmei_flutter_plugin.dart"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"3
95
"
>
<state
relative-caret-position=
"3
67
"
>
<caret
line=
"56"
column=
"41"
selection-start-line=
"56"
selection-start-column=
"41"
selection-end-line=
"56"
selection-end-column=
"41"
/>
<folding>
<element
signature=
"e#0#20#0"
expanded=
"$ENABLE_FLUTTER_DESKTOP$"
/>
...
...
@@ -624,10 +632,10 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/lib/ScanImagePlugn.dart"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
174
"
>
<caret
line=
"
68"
column=
"67"
selection-start-line=
"68"
selection-start-column=
"66"
selection-end-line=
"68"
selection-end-column=
"67
"
/>
<state
relative-caret-position=
"
413
"
>
<caret
line=
"
78"
column=
"39"
selection-start-line=
"78"
selection-start-column=
"39"
selection-end-line=
"78"
selection-end-column=
"39
"
/>
<folding>
<element
signature=
"e#45#
86
#0"
expanded=
"$ENABLE_FLUTTER_DESKTOP$"
/>
<element
signature=
"e#45#
62
#0"
expanded=
"$ENABLE_FLUTTER_DESKTOP$"
/>
</folding>
</state>
</provider>
...
...
ios/Classes/GengmeiFlutterPlugin.m
View file @
119c7c10
...
...
@@ -508,7 +508,58 @@ NSString *cacheDirectory;
NSLog
(
@"NEED CA<<<<>>>>><<>>"
);
}
[[
ResultManager
sharedSingleton
]
resultSuccess
:[
NSNumber
numberWithLong
:
resultTemp
]
:
@YES
];
}
else
if
([
@"GET_IOS_IMAGE_DATA"
isEqualToString
:
call
.
method
]){
NSString
*
path
=
call
.
arguments
;
long
resultTemp
=
self
.
resultKey
;
if
(
path
!=
nil
){
if
([[
self
.
scanMap
allKeys
]
containsObject
:
path
]){
PHAsset
*
assets
=
self
.
scanMap
[
path
];
PHImageRequestOptions
*
imageRequestOption
=
[[
PHImageRequestOptions
alloc
]
init
];
imageRequestOption
.
synchronous
=
NO
;
imageRequestOption
.
networkAccessAllowed
=
YES
;
imageRequestOption
.
deliveryMode
=
PHImageRequestOptionsDeliveryModeHighQualityFormat
;
imageRequestOption
.
resizeMode
=
PHImageRequestOptionsResizeModeFast
;
imageRequestOption
.
version
=
PHImageRequestOptionsVersionUnadjusted
;
[[
PHImageManager
defaultManager
]
requestImageDataForAsset
:
assets
options
:
imageRequestOption
resultHandler
:^
(
NSData
*
_Nullable
imageData
,
NSString
*
_Nullable
dataUTI
,
UIImageOrientation
orientation
,
NSDictionary
*
_Nullable
info
)
{
@autoreleasepool
{
[[
ResultManager
sharedSingleton
]
resultSuccess
:[
NSNumber
numberWithLong
:
resultTemp
]
:
imageData
];
}
}];
}
else
if
([[
self
.
takePhotoMap
allKeys
]
containsObject
:
path
]){
@autoreleasepool
{
NSString
*
realPath
=
self
.
takePhotoMap
[
path
];
NSData
*
data
=
[
NSData
dataWithContentsOfFile
:
realPath
];
[[
ResultManager
sharedSingleton
]
resultSuccess
:[
NSNumber
numberWithLong
:
resultTemp
]
:
data
];
}
}
else
{
[[
ResultManager
sharedSingleton
]
resultSuccess
:[
NSNumber
numberWithLong
:
resultTemp
]
:
nil
];
}
}
else
{
[[
ResultManager
sharedSingleton
]
resultSuccess
:[
NSNumber
numberWithLong
:
resultTemp
]
:
nil
];
}
}
else
if
([
@"GET_IOS_IMAGE_DATA"
isEqualToString
:
call
.
method
]){
NSString
*
path
=
call
.
arguments
;
long
resultTemp
=
self
.
resultKey
;
if
(
path
!=
nil
){
if
([[
self
.
scanMap
allKeys
]
containsObject
:
path
]){
PHAsset
*
assets
=
self
.
scanMap
[
path
];
PHVideoRequestOptions
*
options
=
[[
PHVideoRequestOptions
alloc
]
init
];
options
.
version
=
PHImageRequestOptionsVersionCurrent
;
options
.
networkAccessAllowed
=
true
;
options
.
deliveryMode
=
PHVideoRequestOptionsDeliveryModeAutomatic
;
[[
PHImageManager
defaultManager
]
requestAVAssetForVideo
:
assets
options
:
options
resultHandler
:^
(
AVAsset
*
_Nullable
asset
,
AVAudioMix
*
_Nullable
audioMix
,
NSDictionary
*
_Nullable
info
)
{
AVURLAsset
*
urlAsset
=
(
AVURLAsset
*
)
asset
;
[[
ResultManager
sharedSingleton
]
resultSuccess
:[
NSNumber
numberWithLong
:
resultTemp
]
:
[
NSString
stringWithFormat
:
@"%@"
,
urlAsset
.
URL
]];
}];
}
else
{
[[
ResultManager
sharedSingleton
]
resultSuccess
:[
NSNumber
numberWithLong
:
resultTemp
]
:
nil
];
}
}
else
{
[[
ResultManager
sharedSingleton
]
resultSuccess
:[
NSNumber
numberWithLong
:
resultTemp
]
:
nil
];
}
}
else
{
result
(
FlutterMethodNotImplemented
);
}
}
...
...
lib/ScanImagePlugn.dart
View file @
119c7c10
...
...
@@ -75,6 +75,14 @@ class ScanImagePlugn {
}
}
static
Future
getIosImageData
(
MethodChannel
channel
,
String
path
)
async
{
return
await
channel
.
invokeMethod
(
"GET_IOS_IMAGE_DATA"
,
path
);
}
static
Future
getIosVideoData
(
MethodChannel
channel
,
String
path
)
async
{
return
await
channel
.
invokeMethod
(
"GET_IOS_IMAGE_DATA"
,
path
);
}
static
Future
<
List
>
ios_album_path
(
MethodChannel
channel
,
List
<
String
>
path
)
async
{
return
await
channel
.
invokeMethod
(
"IOS_IMAGE_BY_PATH"
,
path
);
...
...
lib/gengmei_flutter_plugin.dart
View file @
119c7c10
...
...
@@ -49,6 +49,14 @@ class GengmeiFlutterPlugin {
isVideo
,
path
,
realPath
,
folderName
,
during
,
_channel
);
}
static
Future
getIosImageData
(
String
path
)
async
{
return
await
ScanImagePlugn
.
getIosImageData
(
_channel
,
path
);
}
static
Future
getIosVideoData
(
String
path
)
async
{
return
await
ScanImagePlugn
.
getIosVideoData
(
_channel
,
path
);
}
static
Future
<
bool
>
quitPage
()
async
{
return
await
ScanImagePlugn
.
quitPage
(
_channel
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment