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
6cc07502
Commit
6cc07502
authored
Sep 18, 2016
by
Roy Marmelstein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
APPLICATION_EXTENSION_API_ONLY change
parent
7856c0f9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
Zip.xcodeproj/project.pbxproj
Zip.xcodeproj/project.pbxproj
+6
-0
Zip/QuickZip.swift
Zip/QuickZip.swift
+1
-1
ZipTests/ZipTests.swift
ZipTests/ZipTests.swift
+3
-3
No files found.
Zip.xcodeproj/project.pbxproj
View file @
6cc07502
...
...
@@ -594,6 +594,7 @@
343F51121C8DAEEC0028C434
/* Debug */
=
{
isa
=
XCBuildConfiguration
;
buildSettings
=
{
APPLICATION_EXTENSION_API_ONLY
=
NO
;
CODE_SIGN_IDENTITY
=
"-"
;
COMBINE_HIDPI_IMAGES
=
YES
;
INFOPLIST_FILE
=
"Zip OSXTests/Info.plist"
;
...
...
@@ -608,6 +609,7 @@
343F51131C8DAEEC0028C434
/* Release */
=
{
isa
=
XCBuildConfiguration
;
buildSettings
=
{
APPLICATION_EXTENSION_API_ONLY
=
NO
;
CODE_SIGN_IDENTITY
=
"-"
;
COMBINE_HIDPI_IMAGES
=
YES
;
INFOPLIST_FILE
=
"Zip OSXTests/Info.plist"
;
...
...
@@ -623,6 +625,7 @@
isa
=
XCBuildConfiguration
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
APPLICATION_EXTENSION_API_ONLY
=
YES
;
CLANG_CXX_LANGUAGE_STANDARD
=
"gnu++0x"
;
CLANG_CXX_LIBRARY
=
"libc++"
;
CLANG_ENABLE_MODULES
=
YES
;
...
...
@@ -672,6 +675,7 @@
isa
=
XCBuildConfiguration
;
buildSettings
=
{
ALWAYS_SEARCH_USER_PATHS
=
NO
;
APPLICATION_EXTENSION_API_ONLY
=
YES
;
CLANG_CXX_LANGUAGE_STANDARD
=
"gnu++0x"
;
CLANG_CXX_LIBRARY
=
"libc++"
;
CLANG_ENABLE_MODULES
=
YES
;
...
...
@@ -757,6 +761,7 @@
347E3A8C1C1DFFB500A11FD3
/* Debug */
=
{
isa
=
XCBuildConfiguration
;
buildSettings
=
{
APPLICATION_EXTENSION_API_ONLY
=
NO
;
INFOPLIST_FILE
=
ZipTests/Info.plist
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks @loader_path/Frameworks"
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.roymarmelstein.ZipTests
;
...
...
@@ -767,6 +772,7 @@
347E3A8D1C1DFFB500A11FD3
/* Release */
=
{
isa
=
XCBuildConfiguration
;
buildSettings
=
{
APPLICATION_EXTENSION_API_ONLY
=
NO
;
INFOPLIST_FILE
=
ZipTests/Info.plist
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks @loader_path/Frameworks"
;
PRODUCT_BUNDLE_IDENTIFIER
=
com.roymarmelstein.ZipTests
;
...
...
Zip/QuickZip.swift
View file @
6cc07502
...
...
@@ -89,7 +89,7 @@ extension Zip {
let
fileManager
=
FileManager
.
default
let
documentsUrl
=
fileManager
.
urls
(
for
:
.
documentDirectory
,
in
:
.
userDomainMask
)[
0
]
as
URL
let
destinationUrl
=
documentsUrl
.
appendingPathComponent
(
"
\(
fileName
)
.zip"
)
try
self
.
zipFiles
(
paths
,
zipFilePath
:
destinationUrl
,
password
:
nil
,
progress
:
progress
)
try
self
.
zipFiles
(
paths
:
paths
,
zipFilePath
:
destinationUrl
,
password
:
nil
,
progress
:
progress
)
return
destinationUrl
}
...
...
ZipTests/ZipTests.swift
View file @
6cc07502
...
...
@@ -128,7 +128,7 @@ class ZipTests: XCTestCase {
let
zipFilePath
=
documentsFolder
.
appendingPathComponent
(
"archive.zip"
)
progress
.
becomeCurrent
(
withPendingUnitCount
:
1
)
try
Zip
.
zipFiles
([
imageURL1
,
imageURL2
],
zipFilePath
:
zipFilePath
!
,
password
:
nil
,
progress
:
nil
)
try
Zip
.
zipFiles
(
paths
:
[
imageURL1
,
imageURL2
],
zipFilePath
:
zipFilePath
!
,
password
:
nil
,
progress
:
nil
)
progress
.
resignCurrent
()
XCTAssertTrue
(
progress
.
totalUnitCount
==
progress
.
completedUnitCount
)
...
...
@@ -181,7 +181,7 @@ class ZipTests: XCTestCase {
let
imageURL2
=
Bundle
(
for
:
ZipTests
.
self
)
.
url
(
forResource
:
"kYkLkPf"
,
withExtension
:
"gif"
)
!
let
documentsFolder
=
FileManager
.
default
.
urls
(
for
:
.
documentDirectory
,
in
:
.
userDomainMask
)[
0
]
as
NSURL
let
zipFilePath
=
documentsFolder
.
appendingPathComponent
(
"archive.zip"
)
try
Zip
.
zipFiles
([
imageURL1
,
imageURL2
],
zipFilePath
:
zipFilePath
!
,
password
:
nil
,
progress
:
{
(
progress
)
->
()
in
try
Zip
.
zipFiles
(
paths
:
[
imageURL1
,
imageURL2
],
zipFilePath
:
zipFilePath
!
,
password
:
nil
,
progress
:
{
(
progress
)
->
()
in
print
(
progress
)
})
let
fileManager
=
FileManager
.
default
...
...
@@ -198,7 +198,7 @@ class ZipTests: XCTestCase {
let
imageURL2
=
Bundle
(
for
:
ZipTests
.
self
)
.
url
(
forResource
:
"kYkLkPf"
,
withExtension
:
"gif"
)
!
let
documentsFolder
=
FileManager
.
default
.
urls
(
for
:
.
documentDirectory
,
in
:
.
userDomainMask
)[
0
]
as
NSURL
let
zipFilePath
=
documentsFolder
.
appendingPathComponent
(
"archive.zip"
)
try
Zip
.
zipFiles
([
imageURL1
,
imageURL2
],
zipFilePath
:
zipFilePath
!
,
password
:
"password"
,
progress
:
{
(
progress
)
->
()
in
try
Zip
.
zipFiles
(
paths
:
[
imageURL1
,
imageURL2
],
zipFilePath
:
zipFilePath
!
,
password
:
"password"
,
progress
:
{
(
progress
)
->
()
in
print
(
progress
)
})
let
fileManager
=
FileManager
.
default
...
...
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