Skip to content

Commit

Permalink
A few small formatting and commenting fixes to finish the PR
Browse files Browse the repository at this point in the history
  • Loading branch information
gazreese committed Feb 27, 2024
1 parent 6bd22fc commit 08fa2ce
Show file tree
Hide file tree
Showing 14 changed files with 237 additions and 230 deletions.
12 changes: 6 additions & 6 deletions Example/FlagsmithClient/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
print(result)
}

// Try getting the feature flags concurrently
for concurrentIteration in 1...20 {
concurrentQueue.async {
Flagsmith.shared.getFeatureFlags() { (result) in
print("Concurrent \(concurrentIteration) result success: \(isSuccess(result)) on \(Thread.current)")
}
// Try getting the feature flags concurrently to ensure that this does not cause any issues
// This was originally highlighted in https://github.com/Flagsmith/flagsmith-ios-client/pull/40
for _ in 1...20 {
concurrentQueue.async {
Flagsmith.shared.getFeatureFlags() { (result) in
}
}
}

//Flagsmith.shared.setTrait(Trait(key: "<my_key>", value: "<my_value>"), forIdentity: "<my_identity>") { (result) in print(result) }
Expand Down
6 changes: 3 additions & 3 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- FlagsmithClient (1.1.2)
- FlagsmithClient (3.4.0)

DEPENDENCIES:
- FlagsmithClient (from `../`)
Expand All @@ -9,8 +9,8 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
FlagsmithClient: dd72c22b356fe008aaec4a7069e88579c3b7d979
FlagsmithClient: 0f8ed4a38dec385d73cc21a64b791b39bcc8c32b

PODFILE CHECKSUM: 9fc876dee0cf031cae843156b0740a94b4994d8c

COCOAPODS: 1.11.2
COCOAPODS: 1.13.0
6 changes: 3 additions & 3 deletions Example/Pods/Local Podspecs/FlagsmithClient.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Example/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

414 changes: 209 additions & 205 deletions Example/Pods/Pods.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion FlagsmithClient/Classes/Internal/APIManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class APIManager : NSObject, URLSessionDataDelegate {
// store the completion handlers and accumulated data for each task
private var tasksToCompletionHandlers:[Int:(Result<Data, Error>) -> Void] = [:]
private var tasksToData:[Int:Data] = [:]
private let serialAccessQueue = DispatchQueue(label: "flagsmithSerialAccessQueue")
private let serialAccessQueue = DispatchQueue(label: "flagsmithSerialAccessQueue")

override init() {
super.init()
Expand Down
1 change: 1 addition & 0 deletions FlagsmithClient/Tests/APIManagerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,6 @@ final class APIManagerTests: FlagsmithClientTestCase {
}

wait(for: expectations, timeout: 5)
print("Finished!")
}
}

0 comments on commit 08fa2ce

Please sign in to comment.