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
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
5 deletions
+18
-5
workspace.xml
.idea/workspace.xml
+0
-0
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
This diff is collapsed.
Click to expand it.
example/ios/Flutter/flutter_export_environment.sh
View file @
8ff33dab
...
@@ -2,9 +2,10 @@
...
@@ -2,9 +2,10 @@
# This is a generated file; do not edit or check into version control.
# This is a generated file; do not edit or check into version control.
export
"FLUTTER_ROOT=/Users/apple/Downloads/flutter"
export
"FLUTTER_ROOT=/Users/apple/Downloads/flutter"
export
"FLUTTER_APPLICATION_PATH=/Users/apple/lsy/gengmei_flutter_plugin/example"
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
"FLUTTER_BUILD_DIR=build"
export
"SYMROOT=
${
SOURCE_ROOT
}
/../build/ios"
export
"SYMROOT=
${
SOURCE_ROOT
}
/../build/ios"
export
"FLUTTER_FRAMEWORK_DIR=/Users/apple/Downloads/flutter/bin/cache/artifacts/engine/ios"
export
"FLUTTER_FRAMEWORK_DIR=/Users/apple/Downloads/flutter/bin/cache/artifacts/engine/ios"
export
"FLUTTER_BUILD_NAME=1.0.0"
export
"FLUTTER_BUILD_NAME=1.0.0"
export
"FLUTTER_BUILD_NUMBER=1"
export
"FLUTTER_BUILD_NUMBER=1"
export
"TRACK_WIDGET_CREATION=true"
example/ios/Podfile.lock
View file @
8ff33dab
...
@@ -14,7 +14,7 @@ EXTERNAL SOURCES:
...
@@ -14,7 +14,7 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/gengmei_flutter_plugin/ios"
:path: ".symlinks/plugins/gengmei_flutter_plugin/ios"
SPEC CHECKSUMS:
SPEC CHECKSUMS:
Flutter:
58dd7d1b27887414a370fcccb9e645c08ffd7a6a
Flutter:
0e3d915762c693b495b44d77113d4970485de6ec
gengmei_flutter_plugin: 9461e8644c06c4a0e38292ddcca1cc55e6ac6156
gengmei_flutter_plugin: 9461e8644c06c4a0e38292ddcca1cc55e6ac6156
PODFILE CHECKSUM: 7fb83752f59ead6285236625b82473f90b1cb932
PODFILE CHECKSUM: 7fb83752f59ead6285236625b82473f90b1cb932
...
...
example/lib/main.dart
View file @
8ff33dab
...
@@ -20,6 +20,7 @@ class _MyAppState extends State<MyApp> {
...
@@ -20,6 +20,7 @@ class _MyAppState extends State<MyApp> {
@override
@override
void
initState
()
{
void
initState
()
{
super
.
initState
();
super
.
initState
();
GengmeiFlutterPlugin
.
albumNeedCache
(
false
);
// GengmeiFlutterPlugin.clearShare().then((value){
// GengmeiFlutterPlugin.clearShare().then((value){
// print("CLEAR ---> $value");
// print("CLEAR ---> $value");
...
...
ios/Classes/GengmeiFlutterPlugin.m
View file @
8ff33dab
...
@@ -498,7 +498,12 @@ NSString *cacheDirectory;
...
@@ -498,7 +498,12 @@ NSString *cacheDirectory;
[[
ResultManager
sharedSingleton
]
resultSuccess
:[
NSNumber
numberWithLong
:
resultTemp
]
:
@YES
];
[[
ResultManager
sharedSingleton
]
resultSuccess
:[
NSNumber
numberWithLong
:
resultTemp
]
:
@YES
];
}
else
if
([
@"ALBUM_NEED_CACHE"
isEqualToString
:
call
.
method
]){
}
else
if
([
@"ALBUM_NEED_CACHE"
isEqualToString
:
call
.
method
]){
long
resultTemp
=
self
.
resultKey
;
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
){
if
(
self
.
needAlbumCache
){
NSLog
(
@"NEED CA<<<<>>>>><<>>"
);
NSLog
(
@"NEED CA<<<<>>>>><<>>"
);
}
}
...
...
lib/ScanImagePlugn.dart
View file @
8ff33dab
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
* @author lsy
* @author lsy
* @date 2019-09-09
* @date 2019-09-09
**/
**/
import
'dart:io'
;
import
'package:flutter/foundation.dart'
;
import
'package:flutter/foundation.dart'
;
import
'package:flutter/src/services/platform_channel.dart'
;
import
'package:flutter/src/services/platform_channel.dart'
;
...
@@ -65,8 +67,12 @@ class ScanImagePlugn {
...
@@ -65,8 +67,12 @@ class ScanImagePlugn {
return
await
channel
.
invokeMethod
(
"clear_data"
);
return
await
channel
.
invokeMethod
(
"clear_data"
);
}
}
static
Future
<
bool
>
albumNeedCache
(
MethodChannel
channel
,
bool
need
)
async
{
static
Future
<
bool
>
albumNeedCache
(
MethodChannel
channel
,
bool
need
)
async
{
return
await
channel
.
invokeMethod
(
"ALBUM_NEED_CACHE"
,
need
);
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
(
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