Skip to content

Commit 7c02f1c

Browse files
committed
Доработки
- Добавил ссылку на boosty на экране настроек - Сократил подсказку для неавтризованного пользователя - Поднял версию приложения до 3.1.3
1 parent 1585fee commit 7c02f1c

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

SwiftUI-WorkoutApp.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,7 @@
14511451
"$(inherited)",
14521452
"@executable_path/Frameworks",
14531453
);
1454-
MARKETING_VERSION = 3.1.2;
1454+
MARKETING_VERSION = 3.1.3;
14551455
PRODUCT_BUNDLE_IDENTIFIER = com.FGU.WorkOut;
14561456
PRODUCT_NAME = WorkoutApp;
14571457
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
@@ -1487,7 +1487,7 @@
14871487
"$(inherited)",
14881488
"@executable_path/Frameworks",
14891489
);
1490-
MARKETING_VERSION = 3.1.2;
1490+
MARKETING_VERSION = 3.1.3;
14911491
PRODUCT_BUNDLE_IDENTIFIER = com.FGU.WorkOut;
14921492
PRODUCT_NAME = WorkoutApp;
14931493
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";

SwiftUI-WorkoutApp/Constants.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ enum Constants {
55
static let photosLimit = 15
66
static let minUserAge = Calendar.current.date(byAdding: .year, value: -13, to: .now) ?? .now
77
static let maxEventFutureDate = Calendar.current.date(byAdding: .year, value: 1, to: .now) ?? .now
8-
static let incognitoInfoText = "Зарегистрируйтесь или авторизуйтесь, чтобы иметь доступ ко всем возможностям приложения"
8+
static let incognitoInfoText = "Зарегистрируйтесь или авторизуйтесь, чтобы иметь доступ ко всем возможностям"
99
static let appVersion = (Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String).valueOrEmpty
1010
static let appReviewURL = URL(string: "https://apps.apple.com/app/id1035159361?action=write-review")!
1111
static let workoutShopURL = URL(string: "https://workoutshop.ru")!
12+
static let developerProfileButton = URL(string: "https://boosty.to/oleg991")!
1213
static let officialSiteURL = URL(string: "https://workout.su")!
1314
static let accountCreationURL = URL(string: "https://m.workout.su/users/register")!
1415
static let feedbackRecipient = ["[email protected]"]

SwiftUI-WorkoutApp/Screens/Profile/Settings/ProfileSettingsView.swift

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,12 @@ struct ProfileSettingsView: View {
3434
officialSiteButton
3535
appVersionView
3636
}
37-
Section(mode.supportProjectSectionTitle) {
37+
Section("Поддержать проект") {
3838
workoutShopButton
3939
}
40+
Section("Поддержать разработчика") {
41+
developerProfileButton
42+
}
4043
}
4144
.overlay {
4245
ProgressView()
@@ -79,8 +82,6 @@ private extension ProfileSettingsView.Mode {
7982
var appInfoSectionTitle: String {
8083
self == .authorized ? "Информация о приложении" : "О приложении"
8184
}
82-
83-
var supportProjectSectionTitle: String { "Поддержать проект" }
8485
}
8586

8687
private extension ProfileSettingsView {
@@ -184,6 +185,12 @@ private extension ProfileSettingsView {
184185
}
185186
}
186187

188+
var developerProfileButton: some View {
189+
Link(destination: Constants.developerProfileButton) {
190+
Label("Oleg991 на boosty", systemImage: "figure.wave")
191+
}
192+
}
193+
187194
func setupErrorAlert(with message: String) {
188195
showErrorAlert = !message.isEmpty
189196
alertMessage = message

0 commit comments

Comments
 (0)