Commit 3b5bfe33 authored by Roy Marmelstein's avatar Roy Marmelstein

Changing zip example

parent fad0e90c
......@@ -99,7 +99,7 @@ public class Zip {
}
var filePointer: UnsafeMutablePointer<FILE>
filePointer = try ZIPFopen(fullPath)
filePointer = fopen(fullPath, "wb")
let readBytes = unzReadCurrentFile(zip, &buffer, 4096)
fwrite(buffer, Int(readBytes), 1, filePointer)
if filePointer != nil {
......
......@@ -471,6 +471,7 @@
3430F68C1C45C930007473A6 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
3430F68D1C45C930007473A6 /* Build configuration list for PBXNativeTarget "SampleTests" */ = {
isa = XCConfigurationList;
......@@ -479,6 +480,7 @@
3430F68F1C45C930007473A6 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
......
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