-
Notifications
You must be signed in to change notification settings - Fork 423
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Subscriptions - 21. Manage Billing options to third parties (#2574)
Task/Issue URL: https://app.asana.com/0/0/1206397634707138/f Description: Allows the user to display third party billing information (Google/Stripe)
- Loading branch information
1 parent
8993b63
commit 415b75c
Showing
12 changed files
with
199 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
DuckDuckGo/Subscription/Subscription.xcassets/google-play.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "google-play.svg", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
DuckDuckGo/Subscription/Subscription.xcassets/google-play.imageset/google-play.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
DuckDuckGo/Subscription/Views/SubscriptionGoogleView.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
// | ||
// SubscriptionGoogleView.swift | ||
// DuckDuckGo | ||
// | ||
// Copyright © 2024 DuckDuckGo. All rights reserved. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
|
||
import Foundation | ||
import SwiftUI | ||
#if SUBSCRIPTION | ||
@available(iOS 15.0, *) | ||
|
||
struct SubscriptionGoogleView: View { | ||
|
||
enum Constants { | ||
static let padding: CGFloat = 20.0 | ||
} | ||
|
||
@Environment(\.dismiss) var dismiss | ||
|
||
var body: some View { | ||
ZStack { | ||
Color(designSystemColor: .background) | ||
.edgesIgnoringSafeArea(.all) | ||
VStack(alignment: .center) { | ||
Image("google-play").padding(.top, Constants.padding) | ||
|
||
Text(UserText.subscriptionManageBillingGoogleText) | ||
.daxSubheadRegular() | ||
.foregroundColor(Color(designSystemColor: .textSecondary)) | ||
.multilineTextAlignment(.center) | ||
.padding(Constants.padding) | ||
Spacer() | ||
} | ||
} | ||
.navigationBarTitle(UserText.subscriptionManageBillingGoogleTitle, displayMode: .inline) | ||
.applyInsetGroupedListStyle() | ||
} | ||
|
||
} | ||
#endif | ||
|
||
|
||
#if SUBSCRIPTION && DEBUG | ||
@available(iOS 15.0, *) | ||
|
||
struct SubscriptionGoogleView_Previews: PreviewProvider { | ||
static var previews: some View { | ||
NavigationView { | ||
SubscriptionGoogleView().navigationBarTitleDisplayMode(.inline) | ||
} | ||
} | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters