Skip to content

Commit b4dc9e4

Browse files
authoredJul 5, 2024
chore: Rename package name to follow swift convention (#3)
1 parent b911046 commit b4dc9e4

15 files changed

+10
-10
lines changed
 

‎.github/workflows/swift.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Run tests
2323
run: swift test --enable-code-coverage
2424
- name: Prepare Code Coverage
25-
run: xcrun llvm-cov export -format="lcov" .build/debug/go-feature-flag-providerPackageTests.xctest/Contents/MacOS/go-feature-flag-providerPackageTests -instr-profile .build/debug/codecov/default.profdata > info.lcov
25+
run: xcrun llvm-cov export -format="lcov" .build/debug/GOFeatureFlagPackageTests.xctest/Contents/MacOS/GOFeatureFlagPackageTests -instr-profile .build/debug/codecov/default.profdata > info.lcov
2626
- name: Upload coverage reports to Codecov
2727
uses: codecov/codecov-action@v4
2828
with:

‎Package.swift

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,31 @@
44
import PackageDescription
55

66
let package = Package(
7-
name: "go-feature-flag-provider",
7+
name: "GOFeatureFlag",
88
platforms: [
99
.iOS(.v14),
1010
.macOS(.v12)
1111
],
1212
products: [
1313
.library(
14-
name: "go-feature-flag-provider",
15-
targets: ["go-feature-flag-provider"])
14+
name: "GOFeatureFlag",
15+
targets: ["GOFeatureFlag"])
1616
],
1717
dependencies: [
1818
.package(url: "https://github.com/open-feature/swift-sdk.git", from: "0.1.0")
1919
],
2020
targets: [
2121
.target(
22-
name: "go-feature-flag-provider",
22+
name: "GOFeatureFlag",
2323
dependencies: [
2424
.product(name: "OpenFeature", package: "swift-sdk")
2525
],
2626
plugins:[]
2727
),
2828
.testTarget(
29-
name: "go-feature-flag-providerTests",
29+
name: "GOFeatureFlagTests",
3030
dependencies: [
31-
"go-feature-flag-provider"
31+
"GOFeatureFlag"
3232
]
3333
)
3434
]

‎Tests/go-feature-flag-providerTests/ofrep_api_mock.swift ‎Tests/GOFeatureFlagTests/ofrep_api_mock.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Foundation
22
import OpenFeature
3-
@testable import go_feature_flag_provider
3+
@testable import GOFeatureFlag
44

55
class MockNetworkingService: NetworkingService {
66
var mockData: Data?

‎Tests/go-feature-flag-providerTests/ofrep_api_tests.swift ‎Tests/GOFeatureFlagTests/ofrep_api_tests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import XCTest
22
import Foundation
33
import OpenFeature
4-
@testable import go_feature_flag_provider
4+
@testable import GOFeatureFlag
55

66
class OfrepApiTests: XCTestCase {
77
var defaultEvaluationContext: MutableContext!

‎Tests/go-feature-flag-providerTests/provider_tests.swift ‎Tests/GOFeatureFlagTests/provider_tests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import XCTest
22
import Combine
33
import Foundation
44
import OpenFeature
5-
@testable import go_feature_flag_provider
5+
@testable import GOFeatureFlag
66

77
class ProviderTests: XCTestCase {
88
var defaultEvaluationContext: MutableContext!

0 commit comments

Comments
 (0)
Please sign in to comment.