Commit 8ff33dab authored by 林生雨's avatar 林生雨

:c

parent af7c218c
This diff is collapsed.
......@@ -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"
......@@ -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
......
......@@ -20,6 +20,7 @@ class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
GengmeiFlutterPlugin.albumNeedCache(false);
// GengmeiFlutterPlugin.clearShare().then((value){
// print("CLEAR ---> $value");
......
......@@ -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<<<<>>>>><<>>");
}
......
......@@ -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(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment