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. 9
      PadelClub/Views/User/UserCreationView.swift

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

@ -30,17 +30,14 @@ enum URLs: String, Identifiable {
case appDescription = "https://padelclub.app/download/" case appDescription = "https://padelclub.app/download/"
case instagram = "https://www.instagram.com/padelclub.app?igsh=bmticnV5YWhpMnBn" case instagram = "https://www.instagram.com/padelclub.app?igsh=bmticnV5YWhpMnBn"
case appStore = "https://apps.apple.com/app/padel-club/id6484163558" 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 id: String { return self.rawValue }
var url: URL { var url: URL {
return URL(string: self.rawValue)! return URL(string: self.rawValue)!
} }
static func sitePage(component: String) -> String {
return "\(URLs.main.rawValue)\(component)"
}
} }
enum PageLink: String, Identifiable, CaseIterable { 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) { .overlay(alignment: .bottom) {
if didResetApiCalls { if didResetApiCalls {

@ -162,7 +162,6 @@ struct SubscriptionView: View {
.buttonStyle(.borderedProminent) .buttonStyle(.borderedProminent)
.tint(.orange) .tint(.orange)
.listRowBackground(Color.clear) .listRowBackground(Color.clear)
} footer: { } footer: {
if product.item.isConsumable == false { if product.item.isConsumable == false {
SubscriptionFooterView() SubscriptionFooterView()
@ -187,14 +186,6 @@ struct SubscriptionView: View {
self._restore() self._restore()
}.isLoading(self.isRestoring) }.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 { // .toolbar {
@ -272,6 +263,10 @@ fileprivate struct ProductsSectionView: View {
} }
} header: { } header: {
Text("Sélectionnez une offre").foregroundStyle(Color(white: 0.8)) 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 { Section {
Button("Conditions d'utilisation") { Link(destination: URLs.privacy.url) {
if let url = URL(string: URLs.sitePage(component: "terms-of-use/")) { Text("Politique de confidentialité")
UIApplication.shared.open(url, options: [:], completionHandler: nil) }
} Link(destination: URLs.eula.url) {
Text("Contrat d'utilisation")
} }
Toggle(isOn: self.$dataCollectAuthorized) { Toggle(isOn: self.$dataCollectAuthorized) {

Loading…
Cancel
Save