release
Raz 1 year ago
parent 48c865ae33
commit f64a600f16
  1. 2
      PadelClub.xcodeproj/xcshareddata/xcschemes/PadelClub.xcscheme
  2. 7
      PadelClub/Utils/URLs.swift
  3. 8
      PadelClub/Views/Navigation/Toolbox/ToolboxView.swift
  4. 13
      PadelClub/Views/Tournament/Subscription/SubscriptionView.swift
  5. 7
      PadelClub/Views/User/UserCreationView.swift

@ -54,7 +54,7 @@
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
buildConfiguration = "Release"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"

@ -30,17 +30,14 @@ enum URLs: String, Identifiable {
case appDescription = "https://padelclub.app/download/"
case instagram = "https://www.instagram.com/padelclub.app?igsh=bmticnV5YWhpMnBn"
case appStore = "https://apps.apple.com/app/padel-club/id6484163558"
case eula = "https://www.apple.com/legal/internet-services/itunes/dev/stdeula/"
case privacy = "https://padelclub.app/terms-of-use"
var id: String { return self.rawValue }
var url: URL {
return URL(string: self.rawValue)!
}
static func sitePage(component: String) -> String {
return "\(URLs.main.rawValue)\(component)"
}
}
enum PageLink: String, Identifiable, CaseIterable {

@ -187,6 +187,14 @@ struct ToolboxView: View {
}
}
Section {
Link(destination: URLs.privacy.url) {
Text("Politique de confidentialité")
}
Link(destination: URLs.eula.url) {
Text("Contrat d'utilisation")
}
}
}
.overlay(alignment: .bottom) {
if didResetApiCalls {

@ -162,7 +162,6 @@ struct SubscriptionView: View {
.buttonStyle(.borderedProminent)
.tint(.orange)
.listRowBackground(Color.clear)
} footer: {
if product.item.isConsumable == false {
SubscriptionFooterView()
@ -187,14 +186,6 @@ struct SubscriptionView: View {
self._restore()
}.isLoading(self.isRestoring)
}
ToolbarItem(placement: .bottomBar) {
Button("Conditions d'utilisation") {
if let url = URL(string: URLs.sitePage(component: "terms-of-use/")) {
UIApplication.shared.open(url, options: [:], completionHandler: nil)
}
}
}
}
// .toolbar {
@ -272,6 +263,10 @@ fileprivate struct ProductsSectionView: View {
}
} header: {
Text("Sélectionnez une offre").foregroundStyle(Color(white: 0.8))
} footer: {
let message = "Consulter notre [politique de confidentialité](\(URLs.privacy.rawValue)) et le [contrat d'utilisation](\(URLs.eula.rawValue)) de Padel Club."
Text(.init(message))
.foregroundStyle(.white)
}
}

@ -142,10 +142,11 @@ struct UserCreationFormView: View {
}
Section {
Button("Conditions d'utilisation") {
if let url = URL(string: URLs.sitePage(component: "terms-of-use/")) {
UIApplication.shared.open(url, options: [:], completionHandler: nil)
Link(destination: URLs.privacy.url) {
Text("Politique de confidentialité")
}
Link(destination: URLs.eula.url) {
Text("Contrat d'utilisation")
}
Toggle(isOn: self.$dataCollectAuthorized) {

Loading…
Cancel
Save