8000 [PM-17467] 🍒 Wrapped Credential Exchange related APIs into SUPPORTS_CXP compiler flag (#1295) by fedemkr · Pull Request #1296 · bitwarden/ios · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[PM-17467] 🍒 Wrapped Credential Exchange related APIs into SUPPORTS_CXP compiler flag (#1295) #1296

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub 8000 ? Sign in to your account

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

fedemkr
Copy link
Member
@fedemkr fedemkr commented Jan 23, 2025

🎟️ Tracking

PM-17467

📔 Objective

Cherry pick of #1295 but targeting release branch.

Wrap all Credential Exchange related APIs into the compiler flag SUPPORTS_CXP so those symbols are not added to the final IPA until Apple has the final version of the APIs. If we don't wrap them, then if Apple decides to do a breaking change in those APIs it could lead to a crash in the app.

Additionally, configs files were added and project-pm.yml has been updated so BitwardenSharedTests target can also have SWIFT_ACTIVE_COMPILATION_CONDITIONS available automatically depending on what's being set on the config.

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

… to not have issues with Apple changing them and crashing the app. Also added an additional config so compiler flags are available in the shared tests target.
@vvolkgang vvolkgang changed the title [PM-17467] (RC) Wrapped Credential Exchange related APIs into SUPPORTS_CXP compiler flag [PM-17467] 🍒 Wrapped Credential Exchange related APIs into SUPPORTS_CXP compiler flag (#1295) Jan 23, 2025
Copy link
codecov bot commented Jan 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.60%. Comparing base (3d00a96) to head (4ad6267).
Report is 1 commits behind head on release/2025.01-rc4.

Additional details and impacted files
@@                   Coverage Diff                   @@
##           release/2025.01-rc4    #1296      +/-   ##
=======================================================
+ Coverage                89.42%   89.60%   +0.18%     
=======================================================
  Files                      724      724              
  Lines                    45796    45676     -120     
=======================================================
- Hits                     40954    40930      -24     
+ Misses                    4842     4746      -96     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

Logo
Checkmarx One – Scan Summary & Details0f9b03c0-bc0e-42d0-b06b-381066c8d7ea

New Issues (1)

Checkmarx found the following issues in this Pull Request

Severity Issue Source File / Package Checkmarx Insight
MEDIUM Client_Privacy_Violation /BitwardenActionExtension/Application/Support/extension.js: 68
detailsMethod q at line 68 of /BitwardenActionExtension/Application/Support/extension.js sends user information outside the application. This may constitu...
Attack Vector

@fedemkr fedemkr merged commit 1448ab6 into release/2025.01-rc4 Jan 23, 2025
8 checks passed
@fedemkr fedemkr deleted the PM-17467/rc-cxp-symbols-compiler-flags branch January 23, 2025 20:19
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.

2 participants
0