Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
Zip
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
YongYue
Zip
Commits
8c29772e
Commit
8c29772e
authored
Sep 20, 2017
by
Roy Marmelstein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Swift 4 and Xcode 9: fix Zip build issues and errors
parent
63cf4227
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
35 additions
and
20 deletions
+35
-20
Zip.xcodeproj/project.pbxproj
Zip.xcodeproj/project.pbxproj
+17
-5
Zip.xcodeproj/xcshareddata/xcschemes/Zip OSX.xcscheme
Zip.xcodeproj/xcshareddata/xcschemes/Zip OSX.xcscheme
+3
-1
Zip.xcodeproj/xcshareddata/xcschemes/Zip tvOS.xcscheme
Zip.xcodeproj/xcshareddata/xcschemes/Zip tvOS.xcscheme
+3
-1
Zip.xcodeproj/xcshareddata/xcschemes/Zip.xcscheme
Zip.xcodeproj/xcshareddata/xcschemes/Zip.xcscheme
+3
-1
Zip.xcodeproj/xcshareddata/xcschemes/ZipTests.xcscheme
Zip.xcodeproj/xcshareddata/xcschemes/ZipTests.xcscheme
+3
-1
Zip/Zip.swift
Zip/Zip.swift
+4
-9
Zip/minizip/unzip.c
Zip/minizip/unzip.c
+1
-1
Zip/minizip/zip.c
Zip/minizip/zip.c
+1
-1
No files found.
Zip.xcodeproj/project.pbxproj
View file @
8c29772e
...
...
@@ -348,7 +348,7 @@
isa
=
PBXProject
;
attributes
=
{
LastSwiftUpdateCheck
=
0720
;
LastUpgradeCheck
=
0
8
00
;
LastUpgradeCheck
=
0
9
00
;
ORGANIZATIONNAME
=
"Roy Marmelstein"
;
TargetAttributes
=
{
343F50FE1C8DAEEC0028C434
=
{
...
...
@@ -359,11 +359,11 @@
};
347E3A731C1DFFB500A11FD3
=
{
CreatedOnToolsVersion
=
7.2
;
LastSwiftMigration
=
0
8
00
;
LastSwiftMigration
=
0
9
00
;
};
347E3A7D1C1DFFB500A11FD3
=
{
CreatedOnToolsVersion
=
7.2
;
LastSwiftMigration
=
0
8
00
;
LastSwiftMigration
=
0
9
00
;
};
};
};
...
...
@@ -640,14 +640,20 @@
CLANG_CXX_LIBRARY
=
"libc++"
;
CLANG_ENABLE_MODULES
=
YES
;
CLANG_ENABLE_OBJC_ARC
=
YES
;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING
=
YES
;
CLANG_WARN_BOOL_CONVERSION
=
YES
;
CLANG_WARN_COMMA
=
YES
;
CLANG_WARN_CONSTANT_CONVERSION
=
YES
;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE
=
YES_ERROR
;
CLANG_WARN_EMPTY_BODY
=
YES
;
CLANG_WARN_ENUM_CONVERSION
=
YES
;
CLANG_WARN_INFINITE_RECURSION
=
YES
;
CLANG_WARN_INT_CONVERSION
=
YES
;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION
=
YES
;
CLANG_WARN_OBJC_LITERAL_CONVERSION
=
YES
;
CLANG_WARN_OBJC_ROOT_CLASS
=
YES_ERROR
;
CLANG_WARN_RANGE_LOOP_ANALYSIS
=
YES
;
CLANG_WARN_STRICT_PROTOTYPES
=
YES
;
CLANG_WARN_SUSPICIOUS_MOVE
=
YES
;
CLANG_WARN_UNREACHABLE_CODE
=
YES
;
CLANG_WARN__DUPLICATE_METHOD_MATCH
=
YES
;
...
...
@@ -676,7 +682,7 @@
ONLY_ACTIVE_ARCH
=
YES
;
SDKROOT
=
iphoneos
;
SWIFT_OPTIMIZATION_LEVEL
=
"-Onone"
;
SWIFT_VERSION
=
3
.0
;
SWIFT_VERSION
=
4
.0
;
TARGETED_DEVICE_FAMILY
=
"1,2"
;
VERSIONING_SYSTEM
=
"apple-generic"
;
VERSION_INFO_PREFIX
=
""
;
...
...
@@ -692,14 +698,20 @@
CLANG_CXX_LIBRARY
=
"libc++"
;
CLANG_ENABLE_MODULES
=
YES
;
CLANG_ENABLE_OBJC_ARC
=
YES
;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING
=
YES
;
CLANG_WARN_BOOL_CONVERSION
=
YES
;
CLANG_WARN_COMMA
=
YES
;
CLANG_WARN_CONSTANT_CONVERSION
=
YES
;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE
=
YES_ERROR
;
CLANG_WARN_EMPTY_BODY
=
YES
;
CLANG_WARN_ENUM_CONVERSION
=
YES
;
CLANG_WARN_INFINITE_RECURSION
=
YES
;
CLANG_WARN_INT_CONVERSION
=
YES
;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION
=
YES
;
CLANG_WARN_OBJC_LITERAL_CONVERSION
=
YES
;
CLANG_WARN_OBJC_ROOT_CLASS
=
YES_ERROR
;
CLANG_WARN_RANGE_LOOP_ANALYSIS
=
YES
;
CLANG_WARN_STRICT_PROTOTYPES
=
YES
;
CLANG_WARN_SUSPICIOUS_MOVE
=
YES
;
CLANG_WARN_UNREACHABLE_CODE
=
YES
;
CLANG_WARN__DUPLICATE_METHOD_MATCH
=
YES
;
...
...
@@ -721,7 +733,7 @@
MTL_ENABLE_DEBUG_INFO
=
NO
;
SDKROOT
=
iphoneos
;
SWIFT_OPTIMIZATION_LEVEL
=
"-Owholemodule"
;
SWIFT_VERSION
=
3
.0
;
SWIFT_VERSION
=
4
.0
;
TARGETED_DEVICE_FAMILY
=
"1,2"
;
VALIDATE_PRODUCT
=
YES
;
VERSIONING_SYSTEM
=
"apple-generic"
;
...
...
Zip.xcodeproj/xcshareddata/xcschemes/Zip OSX.xcscheme
View file @
8c29772e
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"0
8
00"
LastUpgradeVersion =
"0
9
00"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
@@ -26,6 +26,7 @@
buildConfiguration =
"Debug"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
language =
""
shouldUseLaunchSchemeArgsEnv =
"YES"
>
<Testables>
<TestableReference
...
...
@@ -55,6 +56,7 @@
buildConfiguration =
"Debug"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
language =
""
launchStyle =
"0"
useCustomWorkingDirectory =
"NO"
ignoresPersistentStateOnLaunch =
"NO"
...
...
Zip.xcodeproj/xcshareddata/xcschemes/Zip tvOS.xcscheme
View file @
8c29772e
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"0
8
00"
LastUpgradeVersion =
"0
9
00"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
@@ -26,6 +26,7 @@
buildConfiguration =
"Debug"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
language =
""
shouldUseLaunchSchemeArgsEnv =
"YES"
>
<Testables>
</Testables>
...
...
@@ -36,6 +37,7 @@
buildConfiguration =
"Debug"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
language =
""
launchStyle =
"0"
useCustomWorkingDirectory =
"NO"
ignoresPersistentStateOnLaunch =
"NO"
...
...
Zip.xcodeproj/xcshareddata/xcschemes/Zip.xcscheme
View file @
8c29772e
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"0
8
00"
LastUpgradeVersion =
"0
9
00"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
@@ -26,6 +26,7 @@
buildConfiguration =
"Debug"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
language =
""
shouldUseLaunchSchemeArgsEnv =
"YES"
>
<Testables>
<TestableReference
...
...
@@ -55,6 +56,7 @@
buildConfiguration =
"Debug"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
language =
""
launchStyle =
"0"
useCustomWorkingDirectory =
"NO"
ignoresPersistentStateOnLaunch =
"NO"
...
...
Zip.xcodeproj/xcshareddata/xcschemes/ZipTests.xcscheme
View file @
8c29772e
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"0
8
00"
LastUpgradeVersion =
"0
9
00"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
@@ -10,6 +10,7 @@
buildConfiguration =
"Debug"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
language =
""
shouldUseLaunchSchemeArgsEnv =
"YES"
>
<Testables>
<TestableReference
...
...
@@ -30,6 +31,7 @@
buildConfiguration =
"Debug"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
language =
""
launchStyle =
"0"
useCustomWorkingDirectory =
"NO"
ignoresPersistentStateOnLaunch =
"NO"
...
...
Zip/Zip.swift
View file @
8c29772e
...
...
@@ -165,15 +165,10 @@ public class Zip {
let
fullPath
=
destination
.
appendingPathComponent
(
pathString
)
.
path
let
creationDate
=
Date
()
#if swift(>=4.0)
let
directoryAttributes
=
[
FileAttributeKey
.
creationDate
:
creationDate
,
FileAttributeKey
.
modificationDate
:
creationDate
]
#else
let
directoryAttributes
=
[
FileAttributeKey
.
creationDate
.
rawValue
:
creationDate
,
FileAttributeKey
.
modificationDate
.
rawValue
:
creationDate
]
#endif
let
directoryAttributes
=
[
FileAttributeKey
.
creationDate
:
creationDate
,
FileAttributeKey
.
modificationDate
:
creationDate
]
do
{
if
isDirectory
{
try
fileManager
.
createDirectory
(
atPath
:
fullPath
,
withIntermediateDirectories
:
true
,
attributes
:
directoryAttributes
)
...
...
Zip/minizip/unzip.c
View file @
8c29772e
...
...
@@ -982,7 +982,7 @@ extern int ZEXPORT unzGetCurrentFileInfo(unzFile file, unz_file_info * pfile_inf
pfile_info
->
internal_fa
=
file_info64
.
internal_fa
;
pfile_info
->
external_fa
=
file_info64
.
external_fa
;
pfile_info
->
tmu_date
=
file_info64
.
tmu_date
,
pfile_info
->
tmu_date
=
file_info64
.
tmu_date
;
pfile_info
->
compressed_size
=
(
uLong
)
file_info64
.
compressed_size
;
pfile_info
->
uncompressed_size
=
(
uLong
)
file_info64
.
uncompressed_size
;
...
...
Zip/minizip/zip.c
View file @
8c29772e
...
...
@@ -183,7 +183,7 @@ typedef struct
}
zip64_internal
;
/* Allocate a new data block */
local
linkedlist_datablock_internal
*
allocate_new_datablock
OF
(());
local
linkedlist_datablock_internal
*
allocate_new_datablock
OF
((
void
));
local
linkedlist_datablock_internal
*
allocate_new_datablock
()
{
linkedlist_datablock_internal
*
ldi
;
...
...
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