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
d37dd26d
Commit
d37dd26d
authored
Jan 10, 2020
by
林生雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
w
parent
7185c022
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
16 deletions
+14
-16
workspace.xml
.idea/workspace.xml
+11
-14
GengmeiFlutterPlugin.m
ios/Classes/GengmeiFlutterPlugin.m
+3
-2
No files found.
.idea/workspace.xml
View file @
d37dd26d
...
...
@@ -6,11 +6,7 @@
<option
name=
"TOOL_WINDOW_CONFIGURED_FILTER"
value=
"Show only selected application"
/>
</component>
<component
name=
"ChangeListManager"
>
<list
default=
"$ENABLE_FLUTTER_DESKTOP$"
id=
"5be6bbb5-7d6e-4540-a24f-d2b3bf78b3ba"
name=
"Default Changelist"
comment=
""
>
<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"
/>
</list>
<list
default=
"$ENABLE_FLUTTER_DESKTOP$"
id=
"5be6bbb5-7d6e-4540-a24f-d2b3bf78b3ba"
name=
"Default Changelist"
comment=
""
/>
<ignored
path=
"$PROJECT_DIR$/.dart_tool/"
/>
<ignored
path=
"$PROJECT_DIR$/.idea/"
/>
<ignored
path=
"$PROJECT_DIR$/.pub/"
/>
...
...
@@ -54,7 +50,7 @@
<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=
"
150
"
>
<state
relative-caret-position=
"
245
"
>
<caret
line=
"251"
column=
"22"
selection-start-line=
"251"
selection-start-column=
"22"
selection-end-line=
"251"
selection-end-column=
"22"
/>
</state>
</provider>
...
...
@@ -194,11 +190,11 @@
</list>
</option>
</component>
<component
name=
"ProjectFrameBounds"
extendedState=
"6"
>
<option
name=
"x"
value=
"
211
"
/>
<option
name=
"y"
value=
"
421
"
/>
<component
name=
"ProjectFrameBounds"
>
<option
name=
"x"
value=
"
-40
"
/>
<option
name=
"y"
value=
"
236
"
/>
<option
name=
"width"
value=
"1440"
/>
<option
name=
"height"
value=
"82
1
"
/>
<option
name=
"height"
value=
"82
5
"
/>
</component>
<component
name=
"ProjectLevelVcsManager"
settingsEditedManually=
"$ENABLE_FLUTTER_DESKTOP$"
/>
<component
name=
"ProjectView"
>
...
...
@@ -283,9 +279,10 @@
<servers
/>
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"-7"
y=
"30"
width=
"1440"
height=
"825"
extended-state=
"6"
/>
<frame
x=
"-40"
y=
"236"
width=
"1440"
height=
"825"
extended-state=
"0"
/>
<editor
active=
"$ENABLE_FLUTTER_DESKTOP$"
/>
<layout>
<window_info
content_ui=
"combo"
id=
"Project"
order=
"0"
visible=
"$ENABLE_FLUTTER_DESKTOP$"
weight=
"0.19742489"
/>
<window_info
active=
"$ENABLE_FLUTTER_DESKTOP$"
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$"
/>
<window_info
id=
"Structure"
order=
"2"
side_tool=
"$ENABLE_FLUTTER_DESKTOP$"
/>
<window_info
id=
"Image Layers"
order=
"3"
/>
...
...
@@ -300,7 +297,7 @@
<window_info
anchor=
"bottom"
id=
"Android Profiler"
order=
"3"
show_stripe_button=
"false"
/>
<window_info
anchor=
"bottom"
id=
"Logcat"
order=
"4"
weight=
"0.42701226"
/>
<window_info
anchor=
"bottom"
id=
"Debug"
order=
"5"
weight=
"0.32962447"
/>
<window_info
a
ctive=
"$ENABLE_FLUTTER_DESKTOP$"
anchor=
"bottom"
id=
"Terminal"
order=
"6"
visible=
"$ENABLE_FLUTTER_DESKTOP$
"
weight=
"0.5607094"
/>
<window_info
a
nchor=
"bottom"
id=
"Terminal"
order=
"6
"
weight=
"0.5607094"
/>
<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"
/>
...
...
@@ -625,7 +622,7 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/ios/Classes/GengmeiFlutterPlugin.m"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
150
"
>
<state
relative-caret-position=
"
245
"
>
<caret
line=
"251"
column=
"22"
selection-start-line=
"251"
selection-start-column=
"22"
selection-end-line=
"251"
selection-end-column=
"22"
/>
</state>
</provider>
...
...
ios/Classes/GengmeiFlutterPlugin.m
View file @
d37dd26d
...
...
@@ -526,8 +526,7 @@ 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
)
{
CFAbsoluteTime
linkTime
=
(
CFAbsoluteTimeGetCurrent
()
-
startTime
);
NSLog
(
@"requestImageDataForAsset Time %f ms"
,
linkTime
*
1000
.
0
);
CFAbsoluteTime
startTime
=
CFAbsoluteTimeGetCurrent
();
NSData
*
imageDataW
=
nil
;
if
([
dataUTI
isEqualToString
:
@"public.heif"
]
||
[
dataUTI
isEqualToString
:
@"public.heic"
])
{
// CIImage *ciImage = [CIImage imageWithData:imageData];
...
...
@@ -539,6 +538,8 @@ PHImageRequestOptions *baseImageRequestOption;
imageDataW
=
imageData
;
}
[[
ResultManager
sharedSingleton
]
resultSuccess
:[
NSNumber
numberWithLong
:
resultTemp
]
:
[
FlutterStandardTypedData
typedDataWithBytes
:
imageDataW
]];
CFAbsoluteTime
linkTime
=
(
CFAbsoluteTimeGetCurrent
()
-
startTime
);
NSLog
(
@"typedDataWithBytes Time %f ms"
,
linkTime
*
1000
.
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