File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 13
13
with_linting : true
14
14
with_musl : true
15
15
ios_scheme_name : Zip
16
+ with_android : true
16
17
secrets :
17
18
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
18
19
28
29
include :
29
30
- { swift-version: 5.9, swift-branch: swift-5.9.2-release, swift-tag: 5.9.2-RELEASE }
30
31
- { swift-version: 5.10, swift-branch: swift-5.10.1-release, swift-tag: 5.10.1-RELEASE }
31
- - { swift-version: 6.0, swift-branch: swift-6.0.1 -release, swift-tag: 6.0.1 -RELEASE }
32
+ - { swift-version: 6.0, swift-branch: swift-6.0.3 -release, swift-tag: 6.0.3 -RELEASE }
32
33
runs-on : windows-latest
33
34
timeout-minutes : 60
34
35
steps :
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ public class Zip {
177
177
}
178
178
179
179
var writeBytes : UInt64 = 0
180
- let filePointer : UnsafeMutablePointer < FILE > ? = fopen ( fullPath, " wb " )
180
+ let filePointer = fopen ( fullPath, " wb " )
181
181
while let filePointer {
182
182
let readBytes = unzReadCurrentFile ( zip, & buffer, UInt32 ( buffer. count) )
183
183
guard readBytes > 0 else { break }
Original file line number Diff line number Diff line change @@ -12,11 +12,7 @@ import XCTest
12
12
13
13
final class ZipTests : XCTestCase {
14
14
private func url( forResource resource: String , withExtension ext: String ? = nil ) -> URL ? {
15
- let resourcePath = URL ( fileURLWithPath: #filePath)
16
- . deletingLastPathComponent ( )
17
- . appendingPathComponent ( " TestResources " )
18
- . appendingPathComponent ( resource)
19
- return ext. map { resourcePath. appendingPathExtension ( $0) } ?? resourcePath
15
+ Bundle . module. url ( forResource: " TestResources/ \( resource) " , withExtension: ext)
20
16
}
21
17
22
18
private func autoRemovingSandbox( ) throws -> URL {
@@ -183,6 +179,8 @@ final class ZipTests: XCTestCase {
183
179
let expectedPermissions = 0o700
184
180
#elseif os(Windows) && compiler(>=6.0)
185
181
let expectedPermissions = 0o600
182
+ #elseif os(Android)
183
+ let expectedPermissions = 0o666
186
184
#else
187
185
let expectedPermissions = 0o644
188
186
#endif
You can’t perform that action at this time.
0 commit comments