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
47b85639
Commit
47b85639
authored
Dec 26, 2019
by
林生雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
df80de23
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
9 deletions
+21
-9
workspace.xml
.idea/workspace.xml
+3
-8
GengmeiFlutterPlugin.m
ios/Classes/GengmeiFlutterPlugin.m
+18
-1
No files found.
.idea/workspace.xml
View file @
47b85639
...
...
@@ -5,12 +5,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$/example/ios/.symlinks/plugins/gengmei_flutter_plugin/ios/Classes/GengmeiFlutterPlugin.m"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/example/ios/.symlinks/plugins/gengmei_flutter_plugin/ios/Classes/GengmeiFlutterPlugin.m"
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/"
/>
...
...
@@ -197,7 +192,7 @@
</option>
</component>
<component
name=
"ProjectFrameBounds"
extendedState=
"6"
>
<option
name=
"x"
value=
"
212
"
/>
<option
name=
"x"
value=
"
157
"
/>
<option
name=
"y"
value=
"23"
/>
<option
name=
"width"
value=
"1440"
/>
<option
name=
"height"
value=
"812"
/>
...
...
@@ -268,7 +263,7 @@
<servers
/>
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"
0"
y=
"24
"
width=
"1440"
height=
"812"
extended-state=
"6"
/>
<frame
x=
"
3"
y=
"23
"
width=
"1440"
height=
"812"
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$"
/>
...
...
ios/Classes/GengmeiFlutterPlugin.m
View file @
47b85639
...
...
@@ -260,7 +260,10 @@ NSString *cacheDirectory;
imageRequestOption
.
deliveryMode
=
PHImageRequestOptionsDeliveryModeHighQualityFormat
;
imageRequestOption
.
resizeMode
=
PHImageRequestOptionsResizeModeFast
;
imageRequestOption
.
version
=
PHImageRequestOptionsVersionUnadjusted
;
NSString
*
tempPath
=
NSTemporaryDirectory
();
NSString
*
tempPathBefore
=
NSTemporaryDirectory
();
NSFileManager
*
manager
=
[
NSFileManager
defaultManager
];
NSString
*
tempPath
=
[
tempPathBefore
stringByAppendingPathComponent
:
@"10101"
];
[
manager
createDirectoryAtPath
:
tempPath
withIntermediateDirectories
:
YES
attributes
:
nil
error
:
nil
];
NSFileManager
*
fileManager
=
[
NSFileManager
defaultManager
];
for
(
int
i
=
0
;
i
<
path
.
count
;
i
++
)
{
if
([[
self
.
scanMap
allKeys
]
containsObject
:
path
[
i
]]){
...
...
@@ -494,6 +497,20 @@ NSString *cacheDirectory;
}
}
+
(
BOOL
)
removeAllFilesAtPath
:(
NSString
*
)
path
{
NSDirectoryEnumerator
*
enumerator
=
[[
NSFileManager
defaultManager
]
enumeratorAtPath
:
path
];
BOOL
result
=
YES
;
for
(
NSString
*
fileName
in
enumerator
)
{
NSError
*
error
=
nil
;
[[
NSFileManager
defaultManager
]
removeItemAtPath
:[
path
stringByAppendingPathComponent
:
fileName
]
error
:
&
error
];
if
(
error
)
{
result
=
NO
;
}
}
return
result
;
}
-
(
void
)
showToast
:(
NSString
*
)
text
inView
:(
UIView
*
)
superView
{
if
(
!
superView
)
{
...
...
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