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
e9817811
Commit
e9817811
authored
Jan 10, 2020
by
林生雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
m
parent
2968d778
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
91 deletions
+55
-91
workspace.xml
.idea/workspace.xml
+42
-90
GengmeiFlutterPlugin.m
ios/Classes/GengmeiFlutterPlugin.m
+13
-1
No files found.
.idea/workspace.xml
View file @
e9817811
...
...
@@ -32,7 +32,7 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/lib/gengmei_flutter_plugin.dart"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"11
1
"
>
<state
relative-caret-position=
"11
00
"
>
<caret
line=
"57"
column=
"38"
selection-start-line=
"57"
selection-start-column=
"38"
selection-end-line=
"57"
selection-end-column=
"38"
/>
<folding>
<element
signature=
"e#0#20#0"
expanded=
"$ENABLE_FLUTTER_DESKTOP$"
/>
...
...
@@ -51,11 +51,11 @@
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
/>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"
false
"
>
<file
pinned=
"false"
current-in-tab=
"
$ENABLE_FLUTTER_DESKTOP$
"
>
<entry
file=
"file://$PROJECT_DIR$/ios/Classes/GengmeiFlutterPlugin.m"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
198
"
>
<caret
line=
"
323"
selection-start-line=
"323"
selection-end-line=
"323
"
/>
<state
relative-caret-position=
"
77
"
>
<caret
line=
"
527"
column=
"77"
selection-start-line=
"527"
selection-start-column=
"53"
selection-end-line=
"527"
selection-end-column=
"77
"
/>
</state>
</provider>
</entry>
...
...
@@ -65,7 +65,7 @@
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
/>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"
$ENABLE_FLUTTER_DESKTOP$
"
>
<file
pinned=
"false"
current-in-tab=
"
false
"
>
<entry
file=
"file://$PROJECT_DIR$/example/lib/AlbumModel/page/album/AlbumModel.dart"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"195"
>
...
...
@@ -80,7 +80,7 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/example/lib/AlbumModel/repository/AlbumRepository.dart"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
20
6"
>
<state
relative-caret-position=
"
39
6"
>
<caret
line=
"23"
column=
"47"
selection-start-line=
"23"
selection-start-column=
"47"
selection-end-line=
"23"
selection-end-column=
"47"
/>
<folding>
<element
signature=
"e#46#106#0"
expanded=
"$ENABLE_FLUTTER_DESKTOP$"
/>
...
...
@@ -92,7 +92,7 @@
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/lib/ScanImagePlugn.dart"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1
11
"
>
<state
relative-caret-position=
"1
650
"
>
<caret
line=
"82"
column=
"24"
selection-start-line=
"82"
selection-start-column=
"24"
selection-end-line=
"82"
selection-end-column=
"24"
/>
<folding>
<element
signature=
"e#45#62#0"
expanded=
"$ENABLE_FLUTTER_DESKTOP$"
/>
...
...
@@ -113,7 +113,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=
"3
53
"
>
<state
relative-caret-position=
"3
916
"
>
<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$"
/>
...
...
@@ -195,10 +195,9 @@
</option>
</component>
<component
name=
"ProjectFrameBounds"
extendedState=
"6"
>
<option
name=
"x"
value=
"48"
/>
<option
name=
"y"
value=
"111"
/>
<option
name=
"y"
value=
"23"
/>
<option
name=
"width"
value=
"1440"
/>
<option
name=
"height"
value=
"8
1
1"
/>
<option
name=
"height"
value=
"8
2
1"
/>
</component>
<component
name=
"ProjectLevelVcsManager"
settingsEditedManually=
"$ENABLE_FLUTTER_DESKTOP$"
/>
<component
name=
"ProjectView"
>
...
...
@@ -207,6 +206,7 @@
</navigator>
<panes>
<pane
id=
"Scope"
/>
<pane
id=
"PackagesPane"
/>
<pane
id=
"ProjectPane"
>
<subPane>
<expand>
...
...
@@ -214,49 +214,6 @@
<item
name=
"gengmei_flutter_plugin"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"gengmei_flutter_plugin"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"gengmei_flutter_plugin"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"gengmei_flutter_plugin"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"example"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"gengmei_flutter_plugin"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"gengmei_flutter_plugin"
type=
"462c0819:PsiDirectoryNode"
/>
<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=
"example"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"lib"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"AlbumModel"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"gengmei_flutter_plugin"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"gengmei_flutter_plugin"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"example"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"lib"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"AlbumModel"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"bean"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"gengmei_flutter_plugin"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"gengmei_flutter_plugin"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"example"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"lib"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"AlbumModel"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"page"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"gengmei_flutter_plugin"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"gengmei_flutter_plugin"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"example"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"lib"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"AlbumModel"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"page"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"album"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"gengmei_flutter_plugin"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"gengmei_flutter_plugin"
type=
"462c0819:PsiDirectoryNode"
/>
...
...
@@ -274,17 +231,11 @@
<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"
/>
<item
name=
"lib"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
</expand>
<select
/>
</subPane>
</pane>
<pane
id=
"AndroidView"
/>
<pane
id=
"PackagesPane"
/>
</panes>
</component>
<component
name=
"PropertiesComponent"
>
...
...
@@ -331,7 +282,7 @@
<servers
/>
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"
48"
y=
"111"
width=
"1440"
height=
"811"
extended-state=
"0
"
/>
<frame
x=
"
0"
y=
"23"
width=
"1440"
height=
"825"
extended-state=
"6
"
/>
<layout>
<window_info
content_ui=
"combo"
id=
"Project"
order=
"0"
visible=
"$ENABLE_FLUTTER_DESKTOP$"
weight=
"0.19742489"
/>
<window_info
id=
"Captures"
order=
"1"
side_tool=
"$ENABLE_FLUTTER_DESKTOP$"
/>
...
...
@@ -348,7 +299,7 @@
<window_info
anchor=
"bottom"
id=
"Android Profiler"
order=
"3"
show_stripe_button=
"false"
/>
<window_info
anchor=
"bottom"
id=
"Logcat"
order=
"4"
weight=
"0.42837274"
/>
<window_info
anchor=
"bottom"
id=
"Debug"
order=
"5"
weight=
"0.32962447"
/>
<window_info
active=
"$ENABLE_FLUTTER_DESKTOP$"
anchor=
"bottom"
id=
"Terminal"
order=
"6"
visible=
"$ENABLE_FLUTTER_DESKTOP$"
weight=
"0.56
32823
"
/>
<window_info
active=
"$ENABLE_FLUTTER_DESKTOP$"
anchor=
"bottom"
id=
"Terminal"
order=
"6"
visible=
"$ENABLE_FLUTTER_DESKTOP$"
weight=
"0.56
07094
"
/>
<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"
/>
...
...
@@ -605,38 +556,41 @@
</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=
"1100"
>
<caret
line=
"57"
column=
"38"
selection-start-line=
"57"
selection-start-column=
"38"
selection-end-line=
"57"
selection-end-column=
"38"
/>
<folding>
<element
signature=
"e#0#20#0"
expanded=
"$ENABLE_FLUTTER_DESKTOP$"
/>
</folding>
</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$/ios/Classes/GengmeiFlutterPlugin.m"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"198"
>
<caret
line=
"323"
selection-start-line=
"323"
selection-end-line=
"323"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/example/lib/AlbumModel/bean/DirBean.dart"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
/>
</entry>
<entry
file=
"file://$PROJECT_DIR$/example/lib/AlbumModel/
page/album/AlbumPage
.dart"
>
<entry
file=
"file://$PROJECT_DIR$/example/lib/AlbumModel/
repository/AlbumRepository
.dart"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"3
53
"
>
<caret
line=
"
187"
column=
"18"
selection-start-line=
"187"
selection-start-column=
"18"
selection-end-line=
"187"
selection-end-column=
"18
"
/>
<state
relative-caret-position=
"3
96
"
>
<caret
line=
"
23"
column=
"47"
selection-start-line=
"23"
selection-start-column=
"47"
selection-end-line=
"23"
selection-end-column=
"47
"
/>
<folding>
<element
signature=
"e#4
5#62
#0"
expanded=
"$ENABLE_FLUTTER_DESKTOP$"
/>
<element
signature=
"e#4
6#106
#0"
expanded=
"$ENABLE_FLUTTER_DESKTOP$"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
example/lib/AlbumModel/repository/AlbumRepository
.dart"
>
<entry
file=
"file://$PROJECT_DIR$/
lib/ScanImagePlugn
.dart"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
206
"
>
<caret
line=
"
23"
column=
"47"
selection-start-line=
"23"
selection-start-column=
"47"
selection-end-line=
"23"
selection-end-column=
"47
"
/>
<state
relative-caret-position=
"
1650
"
>
<caret
line=
"
82"
column=
"24"
selection-start-line=
"82"
selection-start-column=
"24"
selection-end-line=
"82"
selection-end-column=
"24
"
/>
<folding>
<element
signature=
"e#4
6#106
#0"
expanded=
"$ENABLE_FLUTTER_DESKTOP$"
/>
<element
signature=
"e#4
5#62
#0"
expanded=
"$ENABLE_FLUTTER_DESKTOP$"
/>
</folding>
</state>
</provider>
...
...
@@ -648,20 +602,10 @@
</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=
"111"
>
<caret
line=
"57"
column=
"38"
selection-start-line=
"57"
selection-start-column=
"38"
selection-end-line=
"57"
selection-end-column=
"38"
/>
<folding>
<element
signature=
"e#0#20#0"
expanded=
"$ENABLE_FLUTTER_DESKTOP$"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/lib/ScanImagePlugn.dart"
>
<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=
"
111
"
>
<caret
line=
"
82"
column=
"24"
selection-start-line=
"82"
selection-start-column=
"24"
selection-end-line=
"82"
selection-end-column=
"24
"
/>
<state
relative-caret-position=
"
3916
"
>
<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$"
/>
</folding>
...
...
@@ -678,5 +622,12 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/ios/Classes/GengmeiFlutterPlugin.m"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"77"
>
<caret
line=
"527"
column=
"77"
selection-start-line=
"527"
selection-start-column=
"53"
selection-end-line=
"527"
selection-end-column=
"77"
/>
</state>
</provider>
</entry>
</component>
</project>
\ No newline at end of file
ios/Classes/GengmeiFlutterPlugin.m
View file @
e9817811
...
...
@@ -526,7 +526,19 @@ PHImageRequestOptions *baseImageRequestOption;
PHAsset
*
assets
=
self
.
scanMap
[
path
];
@autoreleasepool
{
[[
PHImageManager
defaultManager
]
requestImageDataForAsset
:
assets
options
:
baseImageRequestOption
resultHandler
:^
(
NSData
*
_Nullable
imageData
,
NSString
*
_Nullable
dataUTI
,
UIImageOrientation
orientation
,
NSDictionary
*
_Nullable
info
)
{
[[
ResultManager
sharedSingleton
]
resultSuccess
:[
NSNumber
numberWithLong
:
resultTemp
]
:
[
FlutterStandardTypedData
typedDataWithBytes
:
UIImageJPEGRepresentation
([
UIImage
imageWithData
:
imageData
],
1
.
0
)]];
NSData
*
imageDataW
=
nil
;
if
([
dataUTI
isEqualToString
:
@"public.heif"
]
||
[
dataUTI
isEqualToString
:
@"public.heic"
])
{
CIImage
*
ciImage
=
[
CIImage
imageWithData
:
imageData
];
CIContext
*
context
=
[
CIContext
context
];
NSData
*
jpgData
=
[
context
JPEGRepresentationOfImage
:
ciImage
colorSpace
:
ciImage
.
colorSpace
options
:
@{}];
imageDataW
=
jpgData
;
}
else
{
imageDataW
=
imageData
;
}
// if ([imageDataW length] / (1024 * 1024) > 3.0) {
// imageDataW = [[UIImage imageWithData: imageDataW] c]; //图片大于3M压缩操作,可不调用此方法
// }
[[
ResultManager
sharedSingleton
]
resultSuccess
:[
NSNumber
numberWithLong
:
resultTemp
]
:
[
FlutterStandardTypedData
typedDataWithBytes
:
UIImageJPEGRepresentation
([
UIImage
imageWithData
:
imageDataW
],
1
.
0
)]];
}];
}
}
else
if
([[
self
.
takePhotoMap
allKeys
]
containsObject
:
path
]){
...
...
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