Skip to content

Commit f6591fc

Browse files
committed
Release V1.5.3 build 135
1 parent 4a265cb commit f6591fc

File tree

17 files changed

+129
-90
lines changed

17 files changed

+129
-90
lines changed

Guozaoke.xcodeproj/project.pbxproj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,8 @@
448448
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
449449
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES;
450450
CODE_SIGN_IDENTITY = "Apple Development";
451-
CODE_SIGN_STYLE = Automatic;
452-
CURRENT_PROJECT_VERSION = 133;
451+
CODE_SIGN_STYLE = Manual;
452+
CURRENT_PROJECT_VERSION = 135;
453453
DEVELOPMENT_ASSET_PATHS = "\"Guozaoke/Preview Content\"";
454454
DEVELOPMENT_TEAM = "";
455455
ENABLE_PREVIEWS = YES;
@@ -468,7 +468,7 @@
468468
"$(inherited)",
469469
"@executable_path/Frameworks",
470470
);
471-
MARKETING_VERSION = 1.5.2;
471+
MARKETING_VERSION = 1.5.3;
472472
PRODUCT_BUNDLE_IDENTIFIER = com.guozaoke.app.ios;
473473
PRODUCT_NAME = "$(TARGET_NAME)";
474474
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -488,10 +488,10 @@
488488
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES;
489489
CODE_SIGN_ENTITLEMENTS = Guozaoke/GuozaokeRelease.entitlements;
490490
CODE_SIGN_IDENTITY = "Apple Development";
491-
CODE_SIGN_STYLE = Automatic;
492-
CURRENT_PROJECT_VERSION = 133;
491+
CODE_SIGN_STYLE = Manual;
492+
CURRENT_PROJECT_VERSION = 135;
493493
DEVELOPMENT_ASSET_PATHS = "\"Guozaoke/Preview Content\"";
494-
DEVELOPMENT_TEAM = 63K948ZA2P;
494+
DEVELOPMENT_TEAM = "";
495495
ENABLE_PREVIEWS = YES;
496496
GENERATE_INFOPLIST_FILE = YES;
497497
INFOPLIST_FILE = Guozaoke/Info.plist;
@@ -508,7 +508,7 @@
508508
"$(inherited)",
509509
"@executable_path/Frameworks",
510510
);
511-
MARKETING_VERSION = 1.5.2;
511+
MARKETING_VERSION = 1.5.3;
512512
PRODUCT_BUNDLE_IDENTIFIER = com.guozaoke.app.ios;
513513
PRODUCT_NAME = "$(TARGET_NAME)";
514514
PROVISIONING_PROFILE_SPECIFIER = "";

Guozaoke.xcodeproj/xcshareddata/xcschemes/Guozaoke.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
</Testables>
5656
</TestAction>
5757
<LaunchAction
58-
buildConfiguration = "Release"
58+
buildConfiguration = "Debug"
5959
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
6060
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
6161
launchStyle = "0"

Guozaoke/APIService/APIService.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ struct DeveloperInfo {
5858

5959
/// App 版本信息
6060
struct AppInfo {
61-
static let univerLink = "www.guozaoke.com"
61+
static let appleEula = "https://www.apple.com/legal/internet-services/itunes/dev/stdeula/"
62+
static let univerLink = "www.guozaoke.com"
6263
static let scheme = "guozaoke"
6364
static let appIntro = "过早客是源自武汉的高端社交网络,这里有关于创业、创意、IT、金融等最热话题的交流,也有招聘问答、活动交友等最新资讯的发布。"
6465
static let AppBeiAnText = "粤ICP备2025374276号-2A"
@@ -120,7 +121,9 @@ struct APIService {
120121
static let faq = "/faq"
121122
static let members = "/members"
122123
static let blockedUser = "/setting/blockedUser"
123-
124+
/// baseUrlString + feedback
125+
static let feedbackAllLink = baseUrlString + feedback
126+
124127
private init() {}
125128

126129

Guozaoke/AppDelegate.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
// Guozaoke
44
//
55
// Created by scy on 2025/1/21.
6-
//
7-
6+
//
87
// com.guozaoke.app.ios
98
//
109

Guozaoke/Common/SFSymbol.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
import SwiftUI
99

1010
enum SFSymbol: String {
11+
/// 􀓣
12+
case personCircle = "person.circle"
13+
/// 􀷊
14+
case handRaisedCircle = "hand.raised.circle"
1115
case checkmarkSealFill = "checkmark.seal.fill"
1216
case circle = "circle"
1317
case checkmarkCircleFill = "checkmark.circle.fill"

Guozaoke/Common/Utils.swift

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,18 @@ extension String {
108108
}
109109

110110

111+
extension UIApplication {
112+
/// 去设置 UIApplication.openSettingsURLString
113+
static func toSettingUrl() {
114+
openUrl(UIApplication.openSettingsURLString)
115+
}
116+
117+
static func openUrl(_ string: String?) {
118+
guard let string = string else { return }
119+
if let url = URL(string: string) {
120+
if UIApplication.shared.canOpenURL(url) {
121+
UIApplication.shared.open(url, options: [:], completionHandler: nil)
122+
}
123+
}
124+
}
125+
}

Guozaoke/GuozaokeApp.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,16 +127,16 @@ private extension GuozaokeApp {
127127
NotificationCenter.default.addObserver(forName: .purchaseSuccessNoti, object: nil, queue: .main) { _ in
128128
purchaseAppState.savePurchaseStatus(isPurchased: true)
129129
}
130-
130+
// TODO: Universal Links 如果guozaoke.com 可以配置这里就可以支持跳转个人详情,主题详情,甚至节点详情
131131
NotificationCenter.default.addObserver(forName: .openAppNotification, object: nil, queue: .main) { notification in
132132
if let userInfo = notification.userInfo,
133133
let user = userInfo as? Dictionary<String, Any> {
134134
let id = user["id"] as? String ?? ""
135135
let isUser = user["isUser"] as? Bool ?? false
136136
if isUser {
137-
//UserInfoView(userId: id)
137+
138138
} else {
139-
//PostDetailView(postId: id)
139+
140140
}
141141
}
142142
}

Guozaoke/View/Home/PostRowView.swift

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ struct PostRowView: View {
1616
@State private var isUserAvatarViewActive = false
1717
@State private var isLastReplyUserInfoViewActive = false
1818
@State private var isUserNameInfoViewActive = false
19-
19+
2020
var body: some View {
2121
VStack(alignment: .leading, spacing: 8) {
2222
HStack(alignment: .top) {
@@ -38,10 +38,21 @@ struct PostRowView: View {
3838
VStack(alignment: .leading, spacing: 4) {
3939
HStack {
4040
//let content = post.title + (post.postType == .elite ? Text(Image(systemName: SFSymbol.bookmark.rawValue)) : Text(""))
41-
Text(post.title)
42-
.titleFontStyle()
43-
.padding(.horizontal, 2)
44-
.lineLimit(2)
41+
if post.isJHTopic {
42+
HStack(spacing: 2) {
43+
Text(post.title)
44+
.titleFontStyle()
45+
46+
SFSymbol.bookmark.image
47+
.resizable()
48+
.scaledToFit()
49+
.frame(width: 15, height: 15)
50+
}
51+
} else {
52+
Text(post.title)
53+
.titleFontStyle()
54+
.padding(.horizontal, 2)
55+
}
4556
}
4657
HStack {
4758
Text(post.author)

Guozaoke/View/Login/LoginView.swift

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import SwiftSoup
1111
// MARK: - 登录视图
1212

1313
struct LoginView: View {
14-
let agreementUrl = "https://www.apple.com/legal/internet-services/itunes/dev/stdeula/"
1514
@StateObject private var loginService = LoginService()
1615
@Binding var isPresented: Bool
1716
let onLoginSuccess: () -> Void
@@ -53,15 +52,21 @@ struct LoginView: View {
5352

5453
Section {
5554
HStack {
56-
Image(systemName: isAgreed ? "checkmark.circle.fill" : "circle")
55+
56+
Image(systemName: isAgreed ? SFSymbol.checkmarkCircleFill.rawValue : SFSymbol.circle.rawValue)
5757
.onTapGesture {
5858
isAgreed.toggle()
5959
}
6060

6161
Text("我已阅读并同意")
6262
.subTitleFontStyle()
6363

64-
Link("《用户使用协议》", destination: URL(string: agreementUrl)!)
64+
Link("《使用条款》", destination: URL(string: AppInfo.appleEula)!)
65+
.subTitleFontStyle()
66+
.foregroundColor(.blue)
67+
Text("")
68+
.subTitleFontStyle()
69+
Link("《隐私协议》", destination: URL(string: APIService.feedbackAllLink)!)
6570
.subTitleFontStyle()
6671
.foregroundColor(.blue)
6772
}

Guozaoke/View/Me/AboutView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ struct AboutView: View {
1818
1919
enjoy,欢迎反馈 ━(*`∀´*)ノ亻!~
2020
21-
在社区发帖或是邮件\(DeveloperInfo.email)
21+
在社区发帖或是邮件反馈
2222
"""
2323

2424
@State private var showMailView = false
@@ -75,7 +75,7 @@ struct AboutView: View {
7575
showMailView.toggle()
7676
} else {
7777
DeveloperInfo.email.copyToClipboard()
78-
ToastView.toastText("拷贝邮箱发送")
78+
ToastView.toastText("邮箱地址已拷贝")
7979
}
8080
}) {
8181
Text("发送邮件")

0 commit comments

Comments
 (0)