Skip to content

Commit 13606bf

Browse files
authored
Update the code formatting (#67)
* Update the code formatting * Update `CHANGELOG.md`
1 parent a7352a1 commit 13606bf

40 files changed

+47
-43
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ All notable changes to this project will be documented in this file.
1616
- Implement currencySymbol for StoreProduct
1717
- Added in Pull Request [#66](https://github.com/space-code/flare/pull/66).
1818

19+
## Fixed
20+
- Fix the code formatting
21+
- Fixed in Pull Request [#67](https://github.com/space-code/flare/pull/67)
22+
1923
## [3.0.1](https://github.com/space-code/flare/releases/tag/3.0.1)
2024
Released on 2024-08-09.
2125

Sources/Flare/Classes/Extensions/Formatters/NumberFormatter+.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Flare
3-
// Copyright © 2023 Space Code. All rights reserved.
3+
// Copyright © 2024 Space Code. All rights reserved.
44
//
55

66
import Foundation

Sources/Flare/Classes/Extensions/Locale/Locale+CurrencyCode.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Flare
3-
// Copyright © 2023 Space Code. All rights reserved.
3+
// Copyright © 2024 Space Code. All rights reserved.
44
//
55

66
import Foundation

Sources/Flare/Classes/Extensions/ProductType+.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Flare
3-
// Copyright © 2023 Space Code. All rights reserved.
3+
// Copyright © 2024 Space Code. All rights reserved.
44
//
55

66
import Foundation

Sources/Flare/Classes/Extensions/SKRequest+Identifier.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import StoreKit
77

88
private var requestIdKey: UInt = 0
99

10-
internal extension SKRequest {
10+
extension SKRequest {
1111
var id: String {
1212
get {
1313
objc_getAssociatedObject(self, &requestIdKey) as? String ?? ""

Sources/Flare/Classes/Helpers/AsyncSequence/AsyncSequence+Stream.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Flare
3-
// Copyright © 2023 Space Code. All rights reserved.
3+
// Copyright © 2024 Space Code. All rights reserved.
44
//
55

66
import Foundation

Sources/Flare/Classes/Models/IAPError.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Flare
3-
// Copyright © 2024 Space Code. All rights reserved.
3+
// Copyright © 2023 Space Code. All rights reserved.
44
//
55

66
import StoreKit

Sources/Flare/Classes/Models/Internal/Protocols/ISKProduct.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ protocol ISKProduct {
1515

1616
/// The currency code for the product's price.
1717
var currencyCode: String? { get }
18-
18+
1919
/// The currency Symbol for the product's price.
2020
var currencySymbol: String? { get }
2121

Sources/Flare/Classes/Models/Internal/Protocols/IStoreProductDiscount.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ protocol IStoreProductDiscount: Sendable {
1717

1818
/// The discounted price in the specified currency.
1919
var price: Decimal { get }
20-
20+
2121
/// A localized string representing the price of the product.
2222
var localizedPriceString: String? { get }
2323

Sources/Flare/Classes/Models/Internal/SK1StoreProduct.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ extension SK1StoreProduct: ISKProduct {
3838
var currencyCode: String? {
3939
product.priceLocale.currencyCodeID
4040
}
41-
41+
4242
var currencySymbol: String? {
4343
numberFormatter.currencySymbol
4444
}

Sources/Flare/Classes/Models/Internal/SK1StoreProductDiscount.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ struct SK1StoreProductDiscount: IStoreProductDiscount {
2020

2121
/// The discounted price in the specified currency.
2222
let price: Decimal
23-
23+
2424
/// A localized string representing the price of the product.
2525
let localizedPriceString: String?
2626

@@ -59,7 +59,7 @@ struct SK1StoreProductDiscount: IStoreProductDiscount {
5959
self.subscriptionPeriod = subscriptionPeriod
6060
numberOfPeriods = productDiscount.numberOfPeriods
6161
type = discountType
62-
62+
6363
/// The price formatter.
6464
let numberFormatter: NumberFormatter = .numberFormatter(with: self.productDiscount.priceLocale)
6565
localizedPriceString = numberFormatter.string(from: self.productDiscount.price)

Sources/Flare/Classes/Models/Internal/SK1StoreTransaction.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Flare
3-
// Copyright © 2023 Space Code. All rights reserved.
3+
// Copyright © 2024 Space Code. All rights reserved.
44
//
55

66
import StoreKit

Sources/Flare/Classes/Models/Internal/SK2StoreProduct.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ final class SK2StoreProduct {
1919
private var currencyFormat: Decimal.FormatStyle.Currency {
2020
product.priceFormatStyle
2121
}
22-
22+
2323
/// The price formatter.
2424
private lazy var numberFormatter: NumberFormatter = .numberFormatter(with: self.currencyFormat.locale)
2525

@@ -45,7 +45,7 @@ extension SK2StoreProduct: ISKProduct {
4545
var currencyCode: String? {
4646
currencyFormat.currencyCode
4747
}
48-
48+
4949
var currencySymbol: String? {
5050
numberFormatter.currencySymbol
5151
}

Sources/Flare/Classes/Models/Internal/SK2StoreProductDiscount.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ struct SK2StoreProductDiscount: IStoreProductDiscount, Sendable {
2121

2222
/// The discounted price in the specified currency.
2323
let price: Decimal
24-
24+
2525
/// A localized string representing the price of the product.
2626
let localizedPriceString: String?
2727

Sources/Flare/Classes/Models/Internal/StoreEnvironment.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Flare
3-
// Copyright © 2023 Space Code. All rights reserved.
3+
// Copyright © 2024 Space Code. All rights reserved.
44
//
55

66
import Foundation

Sources/Flare/Classes/Models/ProductType.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Flare
3-
// Copyright © 2023 Space Code. All rights reserved.
3+
// Copyright © 2024 Space Code. All rights reserved.
44
//
55

66
import Foundation

Sources/Flare/Classes/Models/StoreProduct.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ extension StoreProduct: ISKProduct {
6161
public var currencyCode: String? {
6262
product.currencyCode
6363
}
64-
64+
6565
public var currencySymbol: String? {
6666
product.currencySymbol
6767
}

Sources/Flare/Classes/Models/StoreProductDiscount.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ extension StoreProductDiscount: IStoreProductDiscount {
6363
public var price: Decimal {
6464
discount.price
6565
}
66-
66+
6767
public var localizedPriceString: String? {
6868
discount.localizedPriceString
6969
}

Sources/Flare/Classes/Providers/PaymentProvider/PaymentProvider.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Flare
3-
// Copyright © 2024 Space Code. All rights reserved.
3+
// Copyright © 2023 Space Code. All rights reserved.
44
//
55

66
import Concurrency

Sources/Flare/Classes/Providers/ProductProvider/IProductProvider.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Flare
3-
// Copyright © 2024 Space Code. All rights reserved.
3+
// Copyright © 2023 Space Code. All rights reserved.
44
//
55

66
import StoreKit

Sources/Flare/Classes/Providers/ProductProvider/ProductProvider.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Flare
3-
// Copyright © 2024 Space Code. All rights reserved.
3+
// Copyright © 2023 Space Code. All rights reserved.
44
//
55

66
import Atomic

Sources/Flare/Classes/Providers/ReceiptRefreshProvider/ReceiptRefreshProvider.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Flare
3-
// Copyright © 2024 Space Code. All rights reserved.
3+
// Copyright © 2023 Space Code. All rights reserved.
44
//
55

66
import Concurrency

Sources/FlareMock/Mocks/ProductMock.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ public final class ProductMock: ISKProduct {
3838
invokedCurrencyCodeGetterCount += 1
3939
return stubbedCurrencyCode
4040
}
41-
41+
4242
public var invokedCurrencySymbolGetter = false
4343
public var invokedCurrencySymbolGetterCount = 0
4444
public var stubbedCurrencySymbol: String!
45-
45+
4646
public var currencySymbol: String? {
4747
invokedCurrencySymbolGetter = true
4848
invokedCurrencySymbolGetterCount += 1

Tests/FlareTests/UnitTests/FlareTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Flare
3-
// Copyright © 2024 Space Code. All rights reserved.
3+
// Copyright © 2023 Space Code. All rights reserved.
44
//
55

66
@testable import Flare

Tests/FlareTests/UnitTests/Providers/IAPProviderTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Flare
3-
// Copyright © 2024 Space Code. All rights reserved.
3+
// Copyright © 2023 Space Code. All rights reserved.
44
//
55

66
@testable import Flare

Tests/FlareTests/UnitTests/Providers/ProductProviderTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Flare
3-
// Copyright © 2024 Space Code. All rights reserved.
3+
// Copyright © 2023 Space Code. All rights reserved.
44
//
55

66
import Concurrency

Tests/FlareTests/UnitTests/Providers/RefundRequestProviderTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Flare
3-
// Copyright © 2024 Space Code. All rights reserved.
3+
// Copyright © 2023 Space Code. All rights reserved.
44
//
55

66
@testable import Flare

Tests/FlareTests/UnitTests/TestHelpers/Extensions/Result+.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Flare
3-
// Copyright © 2023 Space Code. All rights reserved.
3+
// Copyright © 2024 Space Code. All rights reserved.
44
//
55

66
import Foundation

Tests/FlareTests/UnitTests/TestHelpers/Extensions/XCTestCase+.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Flare
3-
// Copyright © 2023 Space Code. All rights reserved.
3+
// Copyright © 2024 Space Code. All rights reserved.
44
//
55

66
import XCTest

Tests/FlareTests/UnitTests/TestHelpers/Fakes/StoreTransactionFake.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Flare
3-
// Copyright © 2023 Space Code. All rights reserved.
3+
// Copyright © 2024 Space Code. All rights reserved.
44
//
55

66
@testable import Flare

Tests/FlareTests/UnitTests/TestHelpers/Helpers/AvailabilityChecker.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Flare
3-
// Copyright © 2023 Space Code. All rights reserved.
3+
// Copyright © 2024 Space Code. All rights reserved.
44
//
55

66
import XCTest

Tests/FlareTests/UnitTests/TestHelpers/Helpers/PurchaseManagerTestHelper.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Flare
3-
// Copyright © 2024 Space Code. All rights reserved.
3+
// Copyright © 2023 Space Code. All rights reserved.
44
//
55

66
@testable import Flare

Tests/FlareTests/UnitTests/TestHelpers/Helpers/WindowSceneFactory.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
//
22
// Flare
3-
// Copyright © 2023 Space Code. All rights reserved.
3+
// Copyright © 2024 Space Code. All rights reserved.
44
//
55

66
#if os(iOS) || VISION_OS
77
import UIKit
88

9-
final class WindowSceneFactory {
9+
enum WindowSceneFactory {
1010
static func makeWindowScene() -> UIWindowScene {
1111
UIApplication.shared.connectedScenes.first as! UIWindowScene
1212
}

Tests/FlareTests/UnitTests/TestHelpers/Mocks/SKProductMock.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Flare
3-
// Copyright © 2024 Space Code. All rights reserved.
3+
// Copyright © 2023 Space Code. All rights reserved.
44
//
55

66
import StoreKit

Tests/FlareTests/UnitTests/TestHelpers/Mocks/StoreTransactionMock.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Flare
3-
// Copyright © 2023 Space Code. All rights reserved.
3+
// Copyright © 2024 Space Code. All rights reserved.
44
//
55

66
@testable import Flare

Tests/FlareTests/UnitTests/TestHelpers/Stubs/StoreTransactionStub.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Flare
3-
// Copyright © 2023 Space Code. All rights reserved.
3+
// Copyright © 2024 Space Code. All rights reserved.
44
//
55

66
@testable import Flare

Tests/FlareUITests/UnitTests/Presentation/Subscriptions/SubscriptionsPresenterTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,5 +128,5 @@ final class SubscriptionsPresenterTests: XCTestCase {
128128
// MARK: - Extensions
129129

130130
private extension Array where Element == String {
131-
static let ids: [String] = ["subscription"]
131+
static let ids = ["subscription"]
132132
}

Tests/IntegrationTests/Helpers/Extensions/Result+.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Flare
3-
// Copyright © 2023 Space Code. All rights reserved.
3+
// Copyright © 2024 Space Code. All rights reserved.
44
//
55

66
import Foundation

Tests/IntegrationTests/Helpers/Extensions/XCTestCase+.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Flare
3-
// Copyright © 2023 Space Code. All rights reserved.
3+
// Copyright © 2024 Space Code. All rights reserved.
44
//
55

66
import XCTest

Tests/UnitTestHostApp/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Flare
3-
// Copyright © 2023 Space Code. All rights reserved.
3+
// Copyright © 2024 Space Code. All rights reserved.
44
//
55

66
import SwiftUI

0 commit comments

Comments
 (0)