Skip to content

Comments

[Oztechan/CCC#4574] Enable string catalog symbols#4575

Merged
mustafaozhan merged 2 commits intodevelopfrom
4574-Enable-string-catalog-symbols
Dec 29, 2025
Merged

[Oztechan/CCC#4574] Enable string catalog symbols#4575
mustafaozhan merged 2 commits intodevelopfrom
4574-Enable-string-catalog-symbols

Conversation

@mustafaozhan
Copy link
Member

Resolves #4574

Copilot AI review requested due to automatic review settings December 29, 2025 22:26
@mustafaozhan mustafaozhan requested a review from a team as a code owner December 29, 2025 22:26
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enables string catalog symbol generation for the iOS project by setting the STRING_CATALOG_GENERATE_SYMBOLS build setting and updates the Xcode project to version 14.3 (2620). However, the PR also includes unrelated changes to the scene phase handling logic that introduce issues.

  • Enables STRING_CATALOG_GENERATE_SYMBOLS build setting in both Debug and Release configurations
  • Updates Xcode project version from 1430 (Xcode 14.3) to 2620 (Xcode 16.2)
  • Modifies scene phase change handling and logging in Application.swift

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
ios/CCC.xcodeproj/project.pbxproj Adds STRING_CATALOG_GENERATE_SYMBOLS=YES to Debug and Release build configurations; updates LastUpgradeCheck to 2620
ios/CCC.xcodeproj/xcshareddata/xcschemes/CCC.xcscheme Updates LastUpgradeVersion to 2620 to match the project upgrade
ios/CCC/Application.swift Modifies logging message and removes conditional check for onAppBackground event handling

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


private func onScenePhaseChange(phase: ScenePhase) {
logger.i(message: { "Application onChange scenePhase \(phase)" })
logger.i(message: { "Application onChange scenePhase ground \(phase)" })
Copy link

Copilot AI Dec 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The word "ground" appears to be a typo in this log message. It seems like it should either be removed or replaced with a meaningful word. The message likely intended to say "Application onChange scenePhase (phase)" without "ground".

Suggested change
logger.i(message: { "Application onChange scenePhase ground \(phase)" })
logger.i(message: { "Application onChange scenePhase \(phase)" })

Copilot uses AI. Check for mistakes.
if scenePhase == .active {
observable.event.onAppBackground()
}
observable.event.onAppBackground()
Copy link

Copilot AI Dec 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing the conditional check that prevents onAppBackground from being called when coming from the background state may cause incorrect behavior. In iOS, the scene phase transitions through .inactive when going both to and from .background. The removed condition ensured that onAppBackground was only called when transitioning from .active to .inactive (user putting app in background), not when transitioning from .background to .inactive to .active (user returning to app). Without this check, onAppBackground will be called twice: once when the user backgrounds the app (active -> inactive) and again when they return (background -> inactive -> active). This could lead to duplicate background event handling.

Copilot uses AI. Check for mistakes.
@codacy-production
Copy link

codacy-production bot commented Dec 29, 2025

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.00%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (b6c0d32) 3319 1745 52.58%
Head commit (8186f3b) 3319 (+0) 1745 (+0) 52.58% (+0.00%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#4575) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

@codecov
Copy link

codecov bot commented Dec 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 55.63%. Comparing base (b6c0d32) to head (8186f3b).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #4575   +/-   ##
========================================
  Coverage    55.63%   55.63%           
========================================
  Files          169      169           
  Lines         3013     3013           
  Branches       445      445           
========================================
  Hits          1676     1676           
  Misses        1312     1312           
  Partials        25       25           

Impacted file tree graph

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mustafaozhan mustafaozhan force-pushed the 4574-Enable-string-catalog-symbols branch from a255179 to 8186f3b Compare December 29, 2025 22:31
@sonarqubecloud
Copy link

@mustafaozhan mustafaozhan merged commit a4b5d4b into develop Dec 29, 2025
16 checks passed
@mustafaozhan mustafaozhan deleted the 4574-Enable-string-catalog-symbols branch December 29, 2025 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable string catalog symbols

1 participant