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
1a1871bc
Commit
1a1871bc
authored
Oct 30, 2019
by
林生雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
1a19ea78
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
40 deletions
+53
-40
workspace.xml
.idea/workspace.xml
+28
-35
GengmeiFlutterPlugin.m
ios/Classes/GengmeiFlutterPlugin.m
+25
-5
No files found.
.idea/workspace.xml
View file @
1a1871bc
...
...
@@ -5,14 +5,7 @@
<option
name=
"TOOL_WINDOW_CONFIGURED_FILTER"
value=
"Show only selected application"
/>
</component>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
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/example/lib/AlbumModel/page/album/AlbumModel.dart"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/example/ios/.symlinks/plugins/gengmei_flutter_plugin/example/lib/AlbumModel/page/album/AlbumModel.dart"
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$/example/lib/AlbumModel/page/album/AlbumModel.dart"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/example/lib/AlbumModel/page/album/AlbumModel.dart"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/ios/Classes/GengmeiFlutterPlugin.m"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/ios/Classes/GengmeiFlutterPlugin.m"
afterDir=
"false"
/>
</list>
<list
default=
"true"
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/"
/>
...
...
@@ -31,11 +24,11 @@
<component
name=
"ExecutionTargetManager"
SELECTED_TARGET=
"AKC0218316000622"
/>
<component
name=
"FileEditorManager"
>
<leaf
SIDE_TABS_SIZE_LIMIT_KEY=
"300"
>
<file
pinned=
"false"
current-in-tab=
"
fals
e"
>
<file
pinned=
"false"
current-in-tab=
"
tru
e"
>
<entry
file=
"file://$PROJECT_DIR$/example/lib/AlbumModel/page/album/AlbumModel.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
4619
"
>
<caret
line=
"23
0"
column=
"64"
lean-forward=
"true"
selection-start-line=
"230"
selection-start-column=
"64"
selection-end-line=
"230"
selection-end-column=
"64
"
/>
<state
relative-caret-position=
"
351
"
>
<caret
line=
"23
1"
column=
"11"
selection-start-line=
"231"
selection-start-column=
"11"
selection-end-line=
"231"
selection-end-column=
"11
"
/>
<folding>
<element
signature=
"e#46#66#0"
expanded=
"true"
/>
</folding>
...
...
@@ -43,11 +36,11 @@
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"
tru
e"
>
<file
pinned=
"false"
current-in-tab=
"
fals
e"
>
<entry
file=
"file://$PROJECT_DIR$/example/lib/main.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
175
"
>
<caret
line=
"144"
column=
"53"
lean-forward=
"true"
selection-start-line=
"144"
selection-start-column=
"53"
selection-end-line=
"144"
selection-end-column=
"53"
/>
<state
relative-caret-position=
"
403
"
>
<caret
line=
"144"
column=
"53"
selection-start-line=
"144"
selection-start-column=
"53"
selection-end-line=
"144"
selection-end-column=
"53"
/>
<folding>
<element
signature=
"e#0#17#0"
expanded=
"true"
/>
</folding>
...
...
@@ -113,7 +106,7 @@
<entry
file=
"file://$PROJECT_DIR$/ios/Classes/GengmeiFlutterPlugin.m"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"10516"
>
<caret
line=
"51
0"
column=
"22"
selection-start-line=
"510"
selection-start-column=
"22"
selection-end-line=
"510
"
selection-end-column=
"22"
/>
<caret
line=
"51
6"
column=
"22"
selection-start-line=
"516"
selection-start-column=
"22"
selection-end-line=
"516
"
selection-end-column=
"22"
/>
</state>
</provider>
</entry>
...
...
@@ -189,11 +182,11 @@
</list>
</option>
</component>
<component
name=
"ProjectFrameBounds"
>
<option
name=
"x"
value=
"3
65
"
/>
<option
name=
"y"
value=
"-
924
"
/>
<component
name=
"ProjectFrameBounds"
extendedState=
"6"
>
<option
name=
"x"
value=
"3
86
"
/>
<option
name=
"y"
value=
"-
888
"
/>
<option
name=
"width"
value=
"1440"
/>
<option
name=
"height"
value=
"81
2
"
/>
<option
name=
"height"
value=
"81
1
"
/>
</component>
<component
name=
"ProjectLevelVcsManager"
settingsEditedManually=
"true"
/>
<component
name=
"ProjectView"
>
...
...
@@ -301,9 +294,8 @@
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"365"
y=
"-924"
width=
"1440"
height=
"812"
extended-state=
"0"
/>
<editor
active=
"true"
/>
<layout>
<window_info
active=
"true"
content_ui=
"combo"
id=
"Project"
order=
"0"
visible=
"true"
weight=
"0.19742489"
/>
<window_info
content_ui=
"combo"
id=
"Project"
order=
"0"
visible=
"true"
weight=
"0.19742489"
/>
<window_info
id=
"Captures"
order=
"1"
side_tool=
"true"
/>
<window_info
id=
"Structure"
order=
"2"
side_tool=
"true"
/>
<window_info
id=
"Image Layers"
order=
"3"
/>
...
...
@@ -318,7 +310,7 @@
<window_info
anchor=
"bottom"
id=
"Android Profiler"
order=
"3"
show_stripe_button=
"false"
/>
<window_info
anchor=
"bottom"
id=
"Logcat"
order=
"4"
weight=
"0.5479833"
/>
<window_info
anchor=
"bottom"
id=
"Debug"
order=
"5"
/>
<window_info
a
nchor=
"bottom"
id=
"Terminal"
order=
"6"
visible=
"true"
weight=
"0.12777779
"
/>
<window_info
a
ctive=
"true"
anchor=
"bottom"
id=
"Terminal"
order=
"6"
visible=
"true"
weight=
"0.375
"
/>
<window_info
anchor=
"bottom"
id=
"Event Log"
order=
"7"
side_tool=
"true"
/>
<window_info
anchor=
"bottom"
id=
"Flutter Performance"
order=
"8"
side_tool=
"true"
/>
<window_info
anchor=
"bottom"
id=
"Version Control"
order=
"9"
/>
...
...
@@ -542,7 +534,7 @@
<entry
file=
"file://$PROJECT_DIR$/ios/Classes/GengmeiFlutterPlugin.m"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"10516"
>
<caret
line=
"51
0"
column=
"22"
selection-start-line=
"510"
selection-start-column=
"22"
selection-end-line=
"510
"
selection-end-column=
"22"
/>
<caret
line=
"51
6"
column=
"22"
selection-start-line=
"516"
selection-start-column=
"22"
selection-end-line=
"516
"
selection-end-column=
"22"
/>
</state>
</provider>
</entry>
...
...
@@ -579,16 +571,6 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/example/lib/AlbumModel/page/album/AlbumModel.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"4619"
>
<caret
line=
"230"
column=
"64"
lean-forward=
"true"
selection-start-line=
"230"
selection-start-column=
"64"
selection-end-line=
"230"
selection-end-column=
"64"
/>
<folding>
<element
signature=
"e#46#66#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/example/lib/AlbumModel/page/album/AlbumPage.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"190"
>
...
...
@@ -601,13 +583,23 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/example/lib/main.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
175
"
>
<caret
line=
"144"
column=
"53"
lean-forward=
"true"
selection-start-line=
"144"
selection-start-column=
"53"
selection-end-line=
"144"
selection-end-column=
"53"
/>
<state
relative-caret-position=
"
403
"
>
<caret
line=
"144"
column=
"53"
selection-start-line=
"144"
selection-start-column=
"53"
selection-end-line=
"144"
selection-end-column=
"53"
/>
<folding>
<element
signature=
"e#0#17#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/example/lib/AlbumModel/page/album/AlbumModel.dart"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"351"
>
<caret
line=
"231"
column=
"11"
selection-start-line=
"231"
selection-start-column=
"11"
selection-end-line=
"231"
selection-end-column=
"11"
/>
<folding>
<element
signature=
"e#46#66#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
</component>
</project>
\ No newline at end of file
ios/Classes/GengmeiFlutterPlugin.m
View file @
1a1871bc
...
...
@@ -20,7 +20,7 @@
@property
(
atomic
)
Boolean
finishScanImg
;
@property
(
atomic
,
strong
)
NSMutableDictionary
<
NSString
*
,
PHAsset
*>*
scanMap
;
@property
(
atomic
,
strong
)
NSMutableDictionary
<
NSString
*
,
NSString
*>*
takePhotoMap
;
@property
(
atomic
,
strong
)
NSMutableArray
<
NS
String
*>*
channelList
;
@property
(
atomic
,
strong
)
NSMutableArray
<
NS
MutableDictionary
*>*
channelList
;
@property
(
atomic
)
int
channelSize
;
@property
(
atomic
)
int
channelAllSize
;
@end
...
...
@@ -258,7 +258,12 @@ NSString *cacheDirectory;
[[
PHImageManager
defaultManager
]
requestAVAssetForVideo
:
assets
options
:
options
resultHandler
:^
(
AVAsset
*
_Nullable
asset
,
AVAudioMix
*
_Nullable
audioMix
,
NSDictionary
*
_Nullable
info
)
{
AVURLAsset
*
urlAsset
=
(
AVURLAsset
*
)
asset
;
self
.
channelSize
++
;
[
self
.
channelList
addObject
:[
NSString
stringWithFormat
:
@"%@"
,
urlAsset
.
URL
]];
NSMutableDictionary
*
dict
=
[[
NSMutableDictionary
alloc
]
init
];
[
dict
setObject
:
path
[
i
]
forKey
:
@"path"
];
[
dict
setObject
:[
NSString
stringWithFormat
:
@"%@"
,
urlAsset
.
URL
]
forKey
:
@"realVideoPath"
];
@synchronized
(
self
)
{
[
self
.
channelList
addObject
:
dict
];
}
if
(
self
.
channelSize
==
self
.
channelAllSize
){
dispatch_async
(
dispatch_get_main_queue
(),
^
{
[[
ResultManager
sharedSingleton
]
resultSuccess
:[
NSNumber
numberWithLong
:
resultTemp
]
:
self
.
channelList
];
...
...
@@ -268,7 +273,12 @@ NSString *cacheDirectory;
}
else
{
if
([
fileManager
fileExistsAtPath
:
tempTake
]){
self
.
channelSize
++
;
[
self
.
channelList
addObject
:[
NSString
stringWithFormat
:
@"%@"
,
tempTake
]];
NSMutableDictionary
*
dict
=
[[
NSMutableDictionary
alloc
]
init
];
[
dict
setObject
:
path
[
i
]
forKey
:
@"path"
];
[
dict
setObject
:
tempTake
forKey
:
@"realImagePath"
];
@synchronized
(
self
)
{
[
self
.
channelList
addObject
:
dict
];
}
if
(
self
.
channelSize
==
self
.
channelAllSize
){
dispatch_async
(
dispatch_get_main_queue
(),
^
{
[[
ResultManager
sharedSingleton
]
resultSuccess
:[
NSNumber
numberWithLong
:
resultTemp
]
:
self
.
channelList
];
...
...
@@ -293,7 +303,12 @@ NSString *cacheDirectory;
res
=
nil
;
}
self
.
channelSize
++
;
[
self
.
channelList
addObject
:[
NSString
stringWithFormat
:
@"%@"
,
tempTake
]];
NSMutableDictionary
*
dict
=
[[
NSMutableDictionary
alloc
]
init
];
[
dict
setObject
:
path
[
i
]
forKey
:
@"path"
];
[
dict
setObject
:
tempTake
forKey
:
@"realImagePath"
];
@synchronized
(
self
)
{
[
self
.
channelList
addObject
:
dict
];
}
if
(
self
.
channelSize
==
self
.
channelAllSize
){
dispatch_async
(
dispatch_get_main_queue
(),
^
{
[[
ResultManager
sharedSingleton
]
resultSuccess
:[
NSNumber
numberWithLong
:
resultTemp
]
:
self
.
channelList
];
...
...
@@ -304,7 +319,12 @@ NSString *cacheDirectory;
}
}
else
if
([[
self
.
takePhotoMap
allKeys
]
containsObject
:
path
]){
self
.
channelSize
++
;
[
self
.
channelList
addObject
:[
NSString
stringWithFormat
:
@"%@"
,
self
.
takePhotoMap
[
path
]]];
NSMutableDictionary
*
dict
=
[[
NSMutableDictionary
alloc
]
init
];
[
dict
setObject
:
path
[
i
]
forKey
:
@"path"
];
[
dict
setObject
:
self
.
takePhotoMap
[
path
]
forKey
:
@"realImagePath"
];
@synchronized
(
self
)
{
[
self
.
channelList
addObject
:
dict
];
}
if
(
self
.
channelSize
==
self
.
channelAllSize
){
dispatch_async
(
dispatch_get_main_queue
(),
^
{
[[
ResultManager
sharedSingleton
]
resultSuccess
:[
NSNumber
numberWithLong
:
resultTemp
]
:
self
.
channelList
];
...
...
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