From f8b5fdb0fdb4ea28e9d57b7bb2db4620a13bbdf4 Mon Sep 17 00:00:00 2001 From: Gray Zhang Date: Fri, 10 Oct 2025 22:36:17 +0800 Subject: [PATCH 1/2] fix: add Fastlane UI import to changelog_helper MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Changed from Fastlane.const_defined?(:UI) to defined?(UI) - Fixes NameError: uninitialized constant ChangelogHelper::UI 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- fastlane/changelog_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastlane/changelog_helper.rb b/fastlane/changelog_helper.rb index f78cbd0..fc47915 100644 --- a/fastlane/changelog_helper.rb +++ b/fastlane/changelog_helper.rb @@ -5,7 +5,7 @@ module ChangelogHelper # Import Fastlane's UI for logging - UI = FastlaneCore::UI unless Fastlane.const_defined?(:UI) + UI = FastlaneCore::UI unless defined?(UI) # Extract changelog for a specific version from CHANGELOG.md # @param version [String] The version to extract (e.g., "1.1.1") # @return [String] The changelog content for the specified version From a9c22455d2dc435dac45094adfc05572cbfbb437 Mon Sep 17 00:00:00 2001 From: Gray Zhang Date: Sat, 11 Oct 2025 09:45:53 +0800 Subject: [PATCH 2/2] fix: prevent crash when filter menu content is empty MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Changed OR (||) to AND (&&) in FeedInfo.isValid() - Prevents index out of range crash when items array is empty - Fixes crash reported in TestFlight feedback Crash details: - Swift runtime failure: Index out of range - Location: FeedInfo.isValid() accessing items[0] on empty array - Trigger: Filter menu with no corresponding content 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- V2er/State/DataFlow/Model/FeedInfo.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/V2er/State/DataFlow/Model/FeedInfo.swift b/V2er/State/DataFlow/Model/FeedInfo.swift index e8e74f0..6085d31 100644 --- a/V2er/State/DataFlow/Model/FeedInfo.swift +++ b/V2er/State/DataFlow/Model/FeedInfo.swift @@ -25,7 +25,7 @@ struct FeedInfo: BaseModel { if twoStepStr.notEmpty() && twoStepStr.contains("两步验证") { return false } - return items.count > 0 || items[0].userName.notEmpty + return items.count > 0 && items[0].userName.notEmpty } mutating func append(feedInfo: FeedInfo) {