New builds for iOS 1.0.3 and Android 1.5.1

This commit is contained in:
2025-09-27 18:47:09 -06:00
parent 346f1a438e
commit cf2e2f7c57
22 changed files with 1272 additions and 1035 deletions

View File

@@ -475,7 +475,7 @@ class ClimbingDataManager: ObservableObject {
let exportData = ClimbDataExport(
exportedAt: dateFormatter.string(from: Date()),
version: "1.0",
version: "2.0",
gyms: gyms.map { AndroidGym(from: $0) },
problems: problems.map { AndroidProblem(from: $0) },
sessions: sessions.map { AndroidClimbSession(from: $0) },
@@ -593,7 +593,7 @@ struct ClimbDataExport: Codable {
let attempts: [AndroidAttempt]
init(
exportedAt: String, version: String = "1.0", gyms: [AndroidGym], problems: [AndroidProblem],
exportedAt: String, version: String = "2.0", gyms: [AndroidGym], problems: [AndroidProblem],
sessions: [AndroidClimbSession], attempts: [AndroidAttempt]
) {
self.exportedAt = exportedAt
@@ -675,7 +675,6 @@ struct AndroidProblem: Codable {
let description: String?
let climbType: ClimbType
let difficulty: DifficultyGrade
let setter: String?
let tags: [String]
let location: String?
let imagePaths: [String]?
@@ -692,7 +691,6 @@ struct AndroidProblem: Codable {
self.description = problem.description
self.climbType = problem.climbType
self.difficulty = problem.difficulty
self.setter = problem.setter
self.tags = problem.tags
self.location = problem.location
self.imagePaths = problem.imagePaths.isEmpty ? nil : problem.imagePaths
@@ -707,7 +705,7 @@ struct AndroidProblem: Codable {
init(
id: String, gymId: String, name: String?, description: String?, climbType: ClimbType,
difficulty: DifficultyGrade, setter: String? = nil, tags: [String] = [],
difficulty: DifficultyGrade, tags: [String] = [],
location: String? = nil,
imagePaths: [String]? = nil, isActive: Bool = true, dateSet: String? = nil,
notes: String? = nil,
@@ -719,7 +717,6 @@ struct AndroidProblem: Codable {
self.description = description
self.climbType = climbType
self.difficulty = difficulty
self.setter = setter
self.tags = tags
self.location = location
self.imagePaths = imagePaths
@@ -746,7 +743,6 @@ struct AndroidProblem: Codable {
description: description,
climbType: climbType,
difficulty: difficulty,
setter: setter,
tags: tags,
location: location,
imagePaths: imagePaths ?? [],
@@ -766,7 +762,6 @@ struct AndroidProblem: Codable {
description: self.description,
climbType: self.climbType,
difficulty: self.difficulty,
setter: self.setter,
tags: self.tags,
location: self.location,
imagePaths: newImagePaths.isEmpty ? nil : newImagePaths,
@@ -1331,7 +1326,6 @@ extension ClimbingDataManager {
description: "Technical overhang with small holds",
climbType: .boulder,
difficulty: DifficultyGrade(system: .vScale, grade: "V4"),
setter: "John Doe",
tags: ["technical", "overhang"],
location: "Cave area"
)