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
8ff33dab
Commit
8ff33dab
authored
Dec 30, 2019
by
林生雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
:c
parent
af7c218c
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
76 additions
and
43 deletions
+76
-43
workspace.xml
.idea/workspace.xml
+58
-38
flutter_export_environment.sh
example/ios/Flutter/flutter_export_environment.sh
+2
-1
Podfile.lock
example/ios/Podfile.lock
+1
-1
main.dart
example/lib/main.dart
+1
-0
GengmeiFlutterPlugin.m
ios/Classes/GengmeiFlutterPlugin.m
+6
-1
ScanImagePlugn.dart
lib/ScanImagePlugn.dart
+8
-2
No files found.
.idea/workspace.xml
View file @
8ff33dab
...
...
@@ -5,7 +5,13 @@
<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=
""
/>
<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$/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>
<ignored
path=
"$PROJECT_DIR$/.dart_tool/"
/>
<ignored
path=
"$PROJECT_DIR$/.idea/"
/>
<ignored
path=
"$PROJECT_DIR$/.pub/"
/>
...
...
@@ -27,8 +33,8 @@
<file
pinned=
"false"
current-in-tab=
"$ENABLE_FLUTTER_DESKTOP$"
>
<entry
file=
"file://$PROJECT_DIR$/lib/ScanImagePlugn.dart"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"17
6
"
>
<caret
line=
"68"
column=
"
55"
selection-start-line=
"68"
selection-start-column=
"39"
selection-end-line=
"68"
selection-end-column=
"55
"
/>
<state
relative-caret-position=
"17
4
"
>
<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>
...
...
@@ -39,17 +45,20 @@
<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=
"
308
"
>
<state
relative-caret-position=
"
-442
"
>
<caret
line=
"17"
selection-start-line=
"17"
selection-end-line=
"17"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/
android/build.gradle
"
>
<entry
file=
"file://$PROJECT_DIR$/
example/lib/main.dart
"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"110"
>
<caret
line=
"5"
selection-start-line=
"5"
selection-end-line=
"6"
selection-end-column=
"35"
/>
<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>
...
...
@@ -98,8 +107,8 @@
<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=
"
426
"
>
<caret
line=
"56"
column=
"
39"
selection-start-line=
"56"
selection-start-column=
"39"
selection-end-line=
"56"
selection-end-column=
"39
"
/>
<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
"
/>
<folding>
<element
signature=
"e#0#20#0"
expanded=
"$ENABLE_FLUTTER_DESKTOP$"
/>
</folding>
...
...
@@ -179,21 +188,20 @@
<option
value=
"$PROJECT_DIR$/example/lib/AlbumModel/repository/AlbumRepository.dart"
/>
<option
value=
"$PROJECT_DIR$/example/lib/AlbumModel/page/preview/AlbumPreviewModel.dart"
/>
<option
value=
"$PROJECT_DIR$/example/lib/AlbumModel/page/preview/AlbumPreviewPage.dart"
/>
<option
value=
"$PROJECT_DIR$/example/lib/main.dart"
/>
<option
value=
"$PROJECT_DIR$/example/lib/AlbumModel/page/album/AlbumPage.dart"
/>
<option
value=
"$PROJECT_DIR$/example/lib/AlbumModel/page/album/AlbumModel.dart"
/>
<option
value=
"$PROJECT_DIR$/android/src/main/java/com/example/gengmei_flutter_plugin/GengmeiFlutterPlugin.kt"
/>
<option
value=
"$PROJECT_DIR$/example/pubspec.yaml"
/>
<option
value=
"$PROJECT_DIR$/android/build.gradle"
/>
<option
value=
"$PROJECT_DIR$/lib/SharedPlugin.dart"
/>
<option
value=
"$PROJECT_DIR$/lib/ScanImagePlugn.dart"
/>
<option
value=
"$PROJECT_DIR$/lib/gengmei_flutter_plugin.dart"
/>
<option
value=
"$PROJECT_DIR$/example/lib/main.dart"
/>
<option
value=
"$PROJECT_DIR$/lib/ScanImagePlugn.dart"
/>
</list>
</option>
</component>
<component
name=
"ProjectFrameBounds"
>
<option
name=
"x"
value=
"30"
/>
<option
name=
"y"
value=
"23"
/>
<option
name=
"y"
value=
"97"
/>
<option
name=
"width"
value=
"1440"
/>
<option
name=
"height"
value=
"816"
/>
</component>
...
...
@@ -213,6 +221,17 @@
<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"
/>
...
...
@@ -268,9 +287,10 @@
<servers
/>
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"30"
y=
"23"
width=
"1440"
height=
"816"
extended-state=
"0"
/>
<frame
x=
"0"
y=
"97"
width=
"1440"
height=
"816"
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"
/>
...
...
@@ -280,12 +300,12 @@
<window_info
id=
"Capture Tool"
order=
"7"
/>
<window_info
id=
"Favorites"
order=
"8"
side_tool=
"$ENABLE_FLUTTER_DESKTOP$"
/>
<window_info
anchor=
"bottom"
id=
"Dart Analysis"
order=
"0"
weight=
"0.32963988"
/>
<window_info
anchor=
"bottom"
id=
"Run"
order=
"1"
weight=
"0.49
93046
"
/>
<window_info
anchor=
"bottom"
id=
"Run"
order=
"1"
weight=
"0.49
861878
"
/>
<window_info
anchor=
"bottom"
id=
"TODO"
order=
"2"
/>
<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
a
ctive=
"$ENABLE_FLUTTER_DESKTOP$"
a
nchor=
"bottom"
id=
"Terminal"
order=
"6"
visible=
"$ENABLE_FLUTTER_DESKTOP$"
weight=
"0.32872927"
/>
<window_info
anchor=
"bottom"
id=
"Terminal"
order=
"6"
visible=
"$ENABLE_FLUTTER_DESKTOP$"
weight=
"0.32872927"
/>
<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"
/>
...
...
@@ -496,16 +516,6 @@
</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=
"3674"
>
<caret
line=
"173"
column=
"47"
selection-start-line=
"173"
selection-start-column=
"47"
selection-end-line=
"173"
selection-end-column=
"47"
/>
<folding>
<element
signature=
"e#0#17#0"
expanded=
"$ENABLE_FLUTTER_DESKTOP$"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$USER_HOME$/Downloads/flutter/bin/cache/pkg/sky_engine/lib/core/double.dart"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"594"
>
...
...
@@ -537,13 +547,6 @@
</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/build.gradle"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"110"
>
...
...
@@ -592,10 +595,27 @@
</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"
>
<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>
<entry
file=
"file://$PROJECT_DIR$/lib/gengmei_flutter_plugin.dart"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
426
"
>
<caret
line=
"56"
column=
"
39"
selection-start-line=
"56"
selection-start-column=
"39"
selection-end-line=
"56"
selection-end-column=
"39
"
/>
<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
"
/>
<folding>
<element
signature=
"e#0#20#0"
expanded=
"$ENABLE_FLUTTER_DESKTOP$"
/>
</folding>
...
...
@@ -604,8 +624,8 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/lib/ScanImagePlugn.dart"
>
<provider
selected=
"$ENABLE_FLUTTER_DESKTOP$"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"17
6
"
>
<caret
line=
"68"
column=
"
55"
selection-start-line=
"68"
selection-start-column=
"39"
selection-end-line=
"68"
selection-end-column=
"55
"
/>
<state
relative-caret-position=
"17
4
"
>
<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>
...
...
example/ios/Flutter/flutter_export_environment.sh
View file @
8ff33dab
...
...
@@ -2,9 +2,10 @@
# This is a generated file; do not edit or check into version control.
export
"FLUTTER_ROOT=/Users/apple/Downloads/flutter"
export
"FLUTTER_APPLICATION_PATH=/Users/apple/lsy/gengmei_flutter_plugin/example"
export
"FLUTTER_TARGET=lib/main.dart"
export
"FLUTTER_TARGET=
/Users/apple/lsy/gengmei_flutter_plugin/example/
lib/main.dart"
export
"FLUTTER_BUILD_DIR=build"
export
"SYMROOT=
${
SOURCE_ROOT
}
/../build/ios"
export
"FLUTTER_FRAMEWORK_DIR=/Users/apple/Downloads/flutter/bin/cache/artifacts/engine/ios"
export
"FLUTTER_BUILD_NAME=1.0.0"
export
"FLUTTER_BUILD_NUMBER=1"
export
"TRACK_WIDGET_CREATION=true"
example/ios/Podfile.lock
View file @
8ff33dab
...
...
@@ -14,7 +14,7 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/gengmei_flutter_plugin/ios"
SPEC CHECKSUMS:
Flutter:
58dd7d1b27887414a370fcccb9e645c08ffd7a6a
Flutter:
0e3d915762c693b495b44d77113d4970485de6ec
gengmei_flutter_plugin: 9461e8644c06c4a0e38292ddcca1cc55e6ac6156
PODFILE CHECKSUM: 7fb83752f59ead6285236625b82473f90b1cb932
...
...
example/lib/main.dart
View file @
8ff33dab
...
...
@@ -20,6 +20,7 @@ class _MyAppState extends State<MyApp> {
@override
void
initState
()
{
super
.
initState
();
GengmeiFlutterPlugin
.
albumNeedCache
(
false
);
// GengmeiFlutterPlugin.clearShare().then((value){
// print("CLEAR ---> $value");
...
...
ios/Classes/GengmeiFlutterPlugin.m
View file @
8ff33dab
...
...
@@ -498,7 +498,12 @@ NSString *cacheDirectory;
[[
ResultManager
sharedSingleton
]
resultSuccess
:[
NSNumber
numberWithLong
:
resultTemp
]
:
@YES
];
}
else
if
([
@"ALBUM_NEED_CACHE"
isEqualToString
:
call
.
method
]){
long
resultTemp
=
self
.
resultKey
;
self
.
needAlbumCache
=
call
.
arguments
;
NSString
*
str
=
call
.
arguments
;
if
([
str
isEqualToString
:
@"T"
]){
self
.
needAlbumCache
=
true
;
}
else
{
self
.
needAlbumCache
=
false
;
}
if
(
self
.
needAlbumCache
){
NSLog
(
@"NEED CA<<<<>>>>><<>>"
);
}
...
...
lib/ScanImagePlugn.dart
View file @
8ff33dab
...
...
@@ -2,6 +2,8 @@
* @author lsy
* @date 2019-09-09
**/
import
'dart:io'
;
import
'package:flutter/foundation.dart'
;
import
'package:flutter/src/services/platform_channel.dart'
;
...
...
@@ -65,8 +67,12 @@ class ScanImagePlugn {
return
await
channel
.
invokeMethod
(
"clear_data"
);
}
static
Future
<
bool
>
albumNeedCache
(
MethodChannel
channel
,
bool
need
)
async
{
return
await
channel
.
invokeMethod
(
"ALBUM_NEED_CACHE"
,
need
);
static
Future
<
bool
>
albumNeedCache
(
MethodChannel
channel
,
bool
need
)
async
{
if
(
Platform
.
isAndroid
)
{
return
await
channel
.
invokeMethod
(
"ALBUM_NEED_CACHE"
,
need
);
}
else
{
return
await
channel
.
invokeMethod
(
"ALBUM_NEED_CACHE"
,
need
?
"T"
:
"F"
);
}
}
static
Future
<
List
>
ios_album_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