Skip to content

Commit 8ac4f11

Browse files
authored
Release 3.0.0 (#46)
Release `3.0.0`
2 parents 34fa77b + 752bfd4 commit 8ac4f11

File tree

13 files changed

+36
-16
lines changed

13 files changed

+36
-16
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
All notable changes to this project will be documented in this file.
33

44
#### 3.x Releases
5+
- `3.0.x` Releases - [`3.0.0`](#300)
56
- `3.0.0` Release Candidates - [`3.0.0-rc.1`](#300-rc1) | [`3.0.0-rc.2`](#300-rc2)
67

78
#### 2.x Releases
@@ -10,6 +11,13 @@ All notable changes to this project will be documented in this file.
1011
#### 1.x Releases
1112
- `1.0.x` Releases - [1.0.0](#100)
1213

14+
## [3.0.0](https://github.com/space-code/flare/releases/tag/3.0.0)
15+
Released on 2024-06-15.
16+
17+
## Added
18+
- Implement disabling of the purchase button
19+
- Added in Pull Request [#44](https://github.com/space-code/flare/pull/44).
20+
1321
## [3.0.0-rc.2](https://github.com/space-code/flare/releases/tag/3.0.0-rc.2)
1422
Released on 2024-05-10.
1523

Gemfile.lock

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,20 @@ GEM
4747
open4 (1.3.4)
4848
public_suffix (5.0.3)
4949
rchardet (1.8.0)
50-
rexml (3.2.6)
50+
rexml (3.2.8)
51+
strscan (>= 3.0.9)
5152
ruby2_keywords (0.0.5)
5253
sawyer (0.9.2)
5354
addressable (>= 2.3.5)
5455
faraday (>= 0.17.3, < 3)
56+
strscan (3.1.0)
5557
terminal-table (3.0.2)
5658
unicode-display_width (>= 1.1.1, < 3)
5759
unicode-display_width (2.5.0)
5860

5961
PLATFORMS
6062
x86_64-darwin-22
63+
x86_64-linux
6164

6265
DEPENDENCIES
6366
danger

Mintfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
nicklockwood/SwiftFormat@0.52.7
2-
realm/SwiftLint@0.53.0
1+
nicklockwood/SwiftFormat@0.54.0
2+
realm/SwiftLint@0.55.1

Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
<a href="https://github.com/space-code/flare/blob/main/LICENSE"><img alt="Licence" src="https://img.shields.io/cocoapods/l/service-core.svg?style=flat"></a>
77
<a href="https://swiftpackageindex.com/space-code/flare"><img alt="Swift Compatibility" src="https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fspace-code%2Fflare%2Fbadge%3Ftype%3Dswift-versions"/></a>
88
<a href="https://swiftpackageindex.com/space-code/flare"><img alt="Platform Compatibility" src="https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fspace-code%2Fflare%2Fbadge%3Ftype%3Dplatforms"/></a>
9-
<a href="https://github.com/space-code/flare"><img alt="CI" src="https://github.com/space-code/flare/actions/workflows/ci.yml/badge.svg?branch=main"></a>
9+
<a href="https://github.com/space-code/flare"><img alt="CI" src="https://github.com/space-code/flare/actions/workflows/flare.yml/badge.svg?branch=main"></a>
10+
<a href="https://github.com/space-code/flare"><img alt="CI" src="https://github.com/space-code/flare/actions/workflows/flare_ui.yml/badge.svg?branch=main"></a>
1011
<a href="https://codecov.io/gh/space-code/flare"><img alt="CodeCov" src="https://codecov.io/gh/space-code/flare/graph/badge.svg?token=WUWUSKQZWY"></a>
1112
<a href="https://github.com/apple/swift-package-manager" alt="Flare on Swift Package Manager" title="Flare on Swift Package Manager"><img src="https://img.shields.io/badge/Swift%20Package%20Manager-compatible-brightgreen.svg" /></a>
1213
<a href="https://codecov.io/gh/space-code/flare"><img alt="GitHub release; latest by date" src="https://img.shields.io/github/v/release/space-code/flare"></a>

Sources/Flare/Flare.docc/Flare.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Flare.shared.products(productIDs: ["product_identifier"]) { result in
3737

3838
| Flare | Date | Swift | Xcode | Platforms |
3939
|-------|------------|-------|---------|-------------------------------------------------------------|
40-
| 3.0 | unreleased | 5.7 | 14.1 | iOS 13.0, watchOS 6.0, macOS 10.15, tvOS 13.0, visionOS 1.0 |
40+
| 3.0 | 15/06/2024 | 5.7 | 14.1 | iOS 13.0, watchOS 6.0, macOS 10.15, tvOS 13.0, visionOS 1.0 |
4141
| 2.0 | 14/09/2023 | 5.7 | 14.1 | iOS 13.0, watchOS 6.0, macOS 10.15, tvOS 13.0, visionOS 1.0 |
4242
| 1.0 | 21/01/2023 | 5.5 | 13.4.1 | iOS 13.0, watchOS 6.0, macOS 10.15, tvOS 13.0 |
4343

Sources/FlareUI/Classes/Presentation/Components/Styles/PrimaryButtonStyle.swift

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,16 @@ import SwiftUI
1414
struct PrimaryButtonStyle: ButtonStyle {
1515
// MARK: Properties
1616

17+
private let disabled: Bool
18+
1719
@Environment(\.tintColor) private var tintColor
1820

21+
// MARK: Initialization
22+
23+
init(disabled: Bool) {
24+
self.disabled = disabled
25+
}
26+
1927
// MARK: ButtonStyle
2028

2129
func makeBody(configuration: Configuration) -> some View {
@@ -24,7 +32,7 @@ struct PrimaryButtonStyle: ButtonStyle {
2432
.frame(height: 50.0)
2533
.frame(maxWidth: .infinity)
2634
.padding(.horizontal)
27-
.background(tintColor)
35+
.background(disabled ? Palette.systemGray : tintColor)
2836
.clipShape(RoundedRectangle(cornerSize: .init(width: 14, height: 14)))
2937
.opacity(configuration.isPressed ? 0.5 : 1.0)
3038
}
@@ -38,6 +46,6 @@ struct PrimaryButtonStyle: ButtonStyle {
3846
@available(visionOS, unavailable)
3947
extension ButtonStyle where Self == PrimaryButtonStyle {
4048
static var primary: PrimaryButtonStyle {
41-
PrimaryButtonStyle()
49+
PrimaryButtonStyle(disabled: true)
4250
}
4351
}

Sources/FlareUI/Classes/Presentation/Components/Styles/Subscription/SubscriptionStoreControlStyle/BorderedSubscriptionStoreControlStyle/BorderedSubscriptionStoreControlStyleView.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ struct BorderedSubscriptionStoreControlStyleView: View {
3434
}, label: {
3535
labelView(configuration)
3636
})
37-
.buttonStyle(PrimaryButtonStyle())
37+
.disabled(!configuration.isActive)
38+
.buttonStyle(PrimaryButtonStyle(disabled: !configuration.isActive))
3839
}
3940

4041
// MARK: Private
@@ -88,7 +89,7 @@ struct BorderedSubscriptionStoreControlStyleView: View {
8889
description: .init(Text("Name")),
8990
price: .init(Text("Name")),
9091
isSelected: true,
91-
isActive: true,
92+
isActive: false,
9293
action: {}
9394
)
9495
)

Sources/FlareUI/Classes/Presentation/Components/Styles/Subscription/SubscriptionStoreControlStyle/CardButtonSubscriptionStoreControlStyle/CardButtonSubscriptionStoreControlView.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import SwiftUI
1515
struct CardButtonSubscriptionStoreControlView: View {
1616
// MARK: Properties
1717

18-
// @Environment(\.isFocused) private var isFocused: Bool
1918
@Environment(\.tintColor) private var tintColor
2019

2120
private let configuration: SubscriptionStoreControlStyleConfiguration
@@ -31,7 +30,7 @@ struct CardButtonSubscriptionStoreControlView: View {
3130
var body: some View {
3231
ZStack {
3332
Rectangle()
34-
.fill(tintColor) // isFocused ? tintColor.opacity(0.85) : tintColor)
33+
.fill(tintColor)
3534

3635
VStack(alignment: .leading) {
3736
VStack(alignment: .leading) {

Sources/FlareUI/FlareUI.docc/FlareUI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ present(nav, animated: true)
2828

2929
| FlareUI | Date | Swift | Xcode | Platforms |
3030
|---------|------------|-------|---------|-------------------------------------------------------------|
31-
| 3.0 | unreleased | 5.7 | 14.1 | iOS 13.0, macOS 10.15, tvOS 13.0
31+
| 3.0 | 15/06/2024 | 5.7 | 14.1 | iOS 13.0, macOS 10.15, tvOS 13.0
3232

3333
## License
3434

0 commit comments

Comments
 (0)