Skip to content

Commit 2757dc5

Browse files
committed
custom modify version 2.4.3 init
0 parents  commit 2757dc5

File tree

124 files changed

+20828
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+20828
-0
lines changed

.github/issue_template.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### Steps to reproduce
2+
1.
3+
2.
4+
3.
5+
6+
### Expected behavior
7+
Tell us what should happen
8+
9+
### Actual behavior
10+
Tell us what happens instead
11+
12+
### Version of ZipArchive
13+
14+
### Environmental information
15+

.github/workflows/gha.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
push:
7+
branches:
8+
- master
9+
tags:
10+
- '*'
11+
jobs:
12+
macos:
13+
runs-on: ${{matrix.OS}}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
OS: [macos-latest]
18+
SDK: ["macosx", "appletvsimulator", "iphonesimulator"]
19+
steps:
20+
- uses: actions/checkout@v1
21+
- name: Install dependencies
22+
run: |
23+
pushd Example
24+
pod install
25+
popd
26+
- name: Build and test
27+
run: |
28+
echo "Disabling modern build system as a workaround for target issue in Xcode 10+"
29+
USEMODERNBUILDSYSTEM="-UseModernBuildSystem=NO"
30+
if [ ${{ matrix.SDK }} == "macosx" ]; then
31+
SCHEME="ObjectiveCExample_macOS"
32+
SDK="macosx"
33+
DESTINATION="platform=macosx"
34+
fi
35+
if [ ${{ matrix.SDK }} == "appletvsimulator" ]; then
36+
SCHEME="ObjectiveCExample_tvOS"
37+
SDK="appletvsimulator"
38+
PLATFORM="tvOS Simulator"
39+
DEVICE="APPLE TV 4K (at 1080p)"
40+
DESTINATION="platform=$PLATFORM,name=$DEVICE"
41+
fi
42+
if [ ${{ matrix.SDK }} == "iphonesimulator" ]; then
43+
SCHEME="ObjectiveCExample_iOS"
44+
SDK="iphonesimulator"
45+
PLATFORM="iOS Simulator"
46+
DEVICE="iPhone 11 Pro Max"
47+
DESTINATION="platform=$PLATFORM,name=$DEVICE"
48+
fi
49+
50+
# build and test
51+
CONFIGURATION="Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES"
52+
xcodebuild -workspace Example/ZipArchiveExample.xcworkspace -scheme $SCHEME -sdk $SDK -destination "$DESTINATION" -configuration $CONFIGURATION $USEMODERNBUILDSYSTEM test

.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Xcode
2+
#
3+
xcuserdata/
4+
*.xccheckout
5+
6+
# AppCode
7+
.idea/
8+
9+
# macOS
10+
.DS_Store
11+
12+
# CocoaPods
13+
#
14+
# We recommend against adding the Pods directory to your .gitignore. However
15+
# you should judge for yourself, the pros and cons are mentioned at:
16+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
17+
Pods/
18+
19+
# Carthage
20+
#
21+
# Add this line if you want to avoid checking in source code from Carthage dependencies.
22+
**/Carthage/Checkouts
23+
**/Carthage/Build
24+
25+
# Swift Package Manager
26+
.build/

.travis.yml

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
language: objective-c
2+
podfile: Example/Podfile
3+
xcode_workspace: Example/ZipArchiveExample.xcworkspace
4+
matrix:
5+
include:
6+
- osx_image: xcode10.3 # OS X 10.14
7+
env: OSX_IMAGE="xcode10.3"
8+
SDK="macosx"
9+
DEVICE="OS X 10.14.4"
10+
11+
- osx_image: xcode9.4 # OS X 10.13
12+
env: OSX_IMAGE="xcode9.4"
13+
SDK="macosx"
14+
DEVICE="OS X 10.13"
15+
16+
- osx_image: xcode8.3 # OS X 10.12
17+
env: OSX_IMAGE="xcode8.3"
18+
SDK="macosx"
19+
DEVICE="OS X 10.12"
20+
21+
- osx_image: xcode7.3 # OS X 10.11
22+
env: OSX_IMAGE="xcode7.3"
23+
SDK="macosx"
24+
DEVICE="OS X 10.11"
25+
26+
- osx_image: xcode12
27+
env: OSX_IMAGE="xcode12"
28+
SDK="appletvsimulator"
29+
DEVICE="Apple TV 4K (at 1080p) (14.0)" # newest on travis for tvOS 14.x
30+
31+
- osx_image: xcode11.6
32+
env: OSX_IMAGE="xcode11.6"
33+
SDK="appletvsimulator"
34+
DEVICE="Apple TV 4K (at 1080p) (13.4)" # latest for tvOS 13.x
35+
36+
- osx_image: xcode10.3
37+
env: OSX_IMAGE="xcode10.3"
38+
SDK="appletvsimulator"
39+
DEVICE="Apple TV 4K (at 1080p) (12.4)" # latest for tvOS 12.x
40+
41+
- osx_image: xcode9.4
42+
env: OSX_IMAGE="xcode9.4"
43+
SDK="appletvsimulator"
44+
DEVICE="Apple TV 4K (11.4)" # latest for tvOS 11.x
45+
46+
- osx_image: xcode8.3
47+
env: OSX_IMAGE="xcode8.3"
48+
SDK="appletvsimulator"
49+
DEVICE="Apple TV 1080p (10.2)" # latest for tvOS 10.x
50+
51+
- osx_image: xcode8.3
52+
env: OSX_IMAGE="xcode8.3"
53+
SDK="appletvsimulator"
54+
DEVICE="Apple TV 1080p (9.2)" # latest for tvOS 9.x
55+
56+
- osx_image: xcode7.3
57+
env: OSX_IMAGE="xcode7.3"
58+
SDK="appletvsimulator"
59+
DEVICE="Apple TV 1080p (9.0)" # oldest for tvOS 9.x
60+
61+
- osx_image: xcode12
62+
env: OSX_IMAGE="xcode12"
63+
SDK="iphonesimulator"
64+
DEVICE="iPhone SE (2nd generation) (14.0)" # newest on travis for iOS 14.x
65+
66+
- osx_image: xcode11.6
67+
env: OSX_IMAGE="xcode11.6"
68+
SDK="iphonesimulator"
69+
DEVICE="iPhone 11 Pro Max (13.6)" # latest for iOS 13.x
70+
71+
- osx_image: xcode10.3
72+
env: OSX_IMAGE="xcode10.3"
73+
SDK="iphonesimulator"
74+
DEVICE="iPhone Xʀ (12.4)" # latest for iOS 12.x
75+
76+
- osx_image: xcode10.1
77+
env: OSX_IMAGE="xcode10.1"
78+
SDK="iphonesimulator"
79+
DEVICE="iPhone X (11.4)" # latest for iOS 11.x
80+
81+
- osx_image: xcode10.1
82+
env: OSX_IMAGE="xcode10.1"
83+
SDK="iphonesimulator"
84+
DEVICE="iPhone X (11.0.1)" # oldest for iOS 11.x
85+
86+
- osx_image: xcode10.1
87+
env: OSX_IMAGE="xcode10.1"
88+
SDK="iphonesimulator"
89+
DEVICE="iPhone 7 Plus (10.3.1)" # latest for iOS 10.x
90+
91+
- osx_image: xcode10.1
92+
env: OSX_IMAGE="xcode10.1"
93+
SDK="iphonesimulator"
94+
DEVICE="iPhone 5 (10.0)" # oldest for iOS 10.x
95+
96+
- osx_image: xcode10.1
97+
env: OSX_IMAGE="xcode10.1"
98+
SDK="iphonesimulator"
99+
DEVICE="iPhone 6s Plus (9.3)" # latest for iOS 9.x
100+
101+
- osx_image: xcode10.1
102+
env: OSX_IMAGE="xcode10.1"
103+
SDK="iphonesimulator"
104+
DEVICE="iPhone 4s (9.0)" # oldest for iOS 9.x
105+
106+
before_install:
107+
- if [[ ${OSX_IMAGE} != "xcode1"* ]]; then
108+
echo "Workaround for https://github.com/CocoaPods/CocoaPods/issues/7765 in Xcode 9-";
109+
gem install cocoapods-downloader -v 1.3.0;
110+
gem install cocoapods -v '1.7.5';
111+
fi
112+
- if [[ ${OSX_IMAGE} = "xcode10"* ]]; then
113+
echo "Disabling modern build system as a workaround for target issue in Xcode 10";
114+
USEMODERNBUILDSYSTEM="-UseModernBuildSystem=NO";
115+
fi
116+
- if [ ${SDK} = "macosx" ]; then
117+
SCHEME="ObjectiveCExample_macOS";
118+
elif [ ${SDK} = "appletvsimulator" ]; then
119+
SCHEME="ObjectiveCExample_tvOS";
120+
else
121+
SCHEME="ObjectiveCExample_iOS";
122+
fi
123+
- if [ ${SDK} = "macosx" ]; then
124+
DESTINATION="platform=macosx";
125+
else
126+
DESTINATION_UDID=$(instruments -s devices | grep "$DEVICE \[" | sed -E 's/.*\[([0-9A-F-]+)\].*/\1/g');
127+
DESTINATION="id=$DESTINATION_UDID";
128+
fi
129+
- if [[ ${SDK} = "appletvsimulator" && (${OSX_IMAGE} = "xcode7"* || ${OSX_IMAGE} = "xcode8"*) ]]; then
130+
echo "Prelaunching simulator to avoid timeout https://github.com/travis-ci/travis-ci/issues/6422 in Xcode 8-";
131+
open -a Simulator --args -CurrentDeviceUDID $DESTINATION_UDID;
132+
fi
133+
134+
script:
135+
# Testing
136+
- xcodebuild
137+
`` -workspace Example/ZipArchiveExample.xcworkspace
138+
`` -scheme $SCHEME
139+
`` -sdk $SDK
140+
`` -destination "$DESTINATION"
141+
`` -configuration Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES
142+
`` $USEMODERNBUILDSYSTEM
143+
`` test

Example/Cartfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github "ZipArchive/ZipArchive"
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//
2+
// AppDelegate.h
3+
// ObjectiveCExample
4+
//
5+
// Created by Sean Soper on 10/23/15.
6+
//
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
11+
@interface AppDelegate : UIResponder <UIApplicationDelegate>
12+
13+
@property (strong, nonatomic) UIWindow *window;
14+
15+
16+
@end
17+
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
//
2+
// AppDelegate.m
3+
// ObjectiveCExample
4+
//
5+
// Created by Sean Soper on 10/23/15.
6+
//
7+
//
8+
9+
#import "AppDelegate.h"
10+
11+
@interface AppDelegate ()
12+
13+
@end
14+
15+
@implementation AppDelegate
16+
17+
18+
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
19+
// Override point for customization after application launch.
20+
return YES;
21+
}
22+
23+
- (void)applicationWillResignActive:(UIApplication *)application {
24+
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
25+
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
26+
}
27+
28+
- (void)applicationDidEnterBackground:(UIApplication *)application {
29+
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
30+
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
31+
}
32+
33+
- (void)applicationWillEnterForeground:(UIApplication *)application {
34+
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
35+
}
36+
37+
- (void)applicationDidBecomeActive:(UIApplication *)application {
38+
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
39+
}
40+
41+
- (void)applicationWillTerminate:(UIApplication *)application {
42+
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
43+
}
44+
45+
@end

0 commit comments

Comments
 (0)