Commit 47b85639 authored by 林生雨's avatar 林生雨

commit

parent df80de23
......@@ -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$" />
......
......@@ -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) {
......
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