Skip to content

Commit 6224e13

Browse files
authored
Renamed everything to Base64Kit. (#7)
Based on @weissi’s feedback in #6.
1 parent 55892e5 commit 6224e13

File tree

7 files changed

+16
-31
lines changed

7 files changed

+16
-31
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Test
2828
run: swift test --enable-code-coverage --enable-test-discovery
2929
- name: Convert coverage files
30-
run: llvm-cov export -format="lcov" .build/debug/swift-base64PackageTests.xctest -instr-profile .build/debug/codecov/default.profdata > info.lcov
30+
run: llvm-cov export -format="lcov" .build/debug/swift-base64-kitPackageTests.xctest -instr-profile .build/debug/codecov/default.profdata > info.lcov
3131
- name: Upload to codecov.io
3232
uses: codecov/codecov-action@v1.0.3
3333
with:
@@ -53,7 +53,7 @@ jobs:
5353
- name: Build
5454
run: swift build -c release
5555
- name: Run test
56-
run: .build/release/Base64PerformanceTest
56+
run: .build/release/Base64KitPerformanceTest
5757

5858
"macOS-Tests":
5959
runs-on: macOS-latest
@@ -73,7 +73,7 @@ jobs:
7373
- name: Xcode Tests
7474
run: |
7575
swift package generate-xcodeproj
76-
xcodebuild -quiet -parallel-testing-enabled YES -scheme swift-base64-Package -enableCodeCoverage YES build test
76+
xcodebuild -quiet -parallel-testing-enabled YES -scheme swift-base64-kit-Package -enableCodeCoverage YES build test
7777
- name: Codecov
7878
run: bash <(curl -s https://codecov.io/bash) -t ${{secrets.CODECOV_TOKEN}} -F base64,unittests -f *.coverage.txt
7979

@@ -87,4 +87,4 @@ jobs:
8787
- name: Build
8888
run: swift build -c release
8989
- name: Run test
90-
run: .build/release/Base64PerformanceTest
90+
run: .build/release/Base64KitPerformanceTest

Package.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@
44
import PackageDescription
55

66
let package = Package(
7-
name: "swift-base64",
7+
name: "swift-base64-kit",
88
products: [
99
.library(
10-
name: "Base64",
11-
targets: ["Base64"]),
10+
name: "Base64Kit",
11+
targets: ["Base64Kit"]),
1212
],
1313
dependencies: [],
1414
targets: [
1515
.target(
16-
name: "Base64PerformanceTest",
17-
dependencies: ["Base64"]),
16+
name: "Base64KitPerformanceTest",
17+
dependencies: ["Base64Kit"]),
1818
.target(
19-
name: "Base64",
19+
name: "Base64Kit",
2020
dependencies: []),
2121
.testTarget(
22-
name: "Base64Tests",
23-
dependencies: ["Base64"]),
22+
name: "Base64KitTests",
23+
dependencies: ["Base64Kit"]),
2424
]
2525
)
File renamed without changes.

Sources/Base64PerformanceTest/main.swift renamed to Sources/Base64KitPerformanceTest/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Foundation
2-
import Base64
2+
import Base64Kit
33

44
let base64 = "AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKissLS4vMDEyMzQ1Njc4OTo7PD0+P0BBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWltcXV5fYGFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6e3x9fn+AgYKDhIWGh4iJiouMjY6PkJGSk5SVlpeYmZqbnJ2en6ChoqOkpaanqKmqq6ytrq+wsbKztLW2t7i5uru8vb6/wMHCw8TFxsfIycrLzM3Oz9DR0tPU1dbX2Nna29zd3t/g4eLj5OXm5+jp6uvs7e7v8PHy8/T19vf4+fr7/P3+/w=="
55

Tests/Base64Tests/DecodingTests.swift renamed to Tests/Base64KitTests/DecodingTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import XCTest
2-
@testable import Base64
2+
@testable import Base64Kit
33

44
class DecodingTests: XCTestCase {
55

Tests/Base64Tests/EncodingTests.swift renamed to Tests/Base64KitTests/EncodingTests.swift

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,5 @@
1-
//===----------------------------------------------------------------------===//
2-
//
3-
// This source file is part of the SwiftNIO open source project
4-
//
5-
// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors
6-
// Licensed under Apache License v2.0
7-
//
8-
// See LICENSE.txt for license information
9-
// See CONTRIBUTORS.txt for the list of SwiftNIO project authors
10-
//
11-
// SPDX-License-Identifier: Apache-2.0
12-
//
13-
//===----------------------------------------------------------------------===//
14-
151
import XCTest
16-
@testable import Base64
2+
@testable import Base64Kit
173

184
class EncodingTests: XCTestCase {
195
func testEncodeEmptyData() throws {

Tests/Base64Tests/IntegrationTests.swift renamed to Tests/Base64KitTests/IntegrationTests.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import Foundation
21
import XCTest
3-
@testable import Base64
2+
@testable import Base64Kit
43

54
class IntegrationTests: XCTestCase {
65

0 commit comments

Comments
 (0)