Skip to content

feat(W-23201582): surface App Attestation state in developer info screen - #4123

Merged
wmathurin merged 3 commits into
forcedotcom:devfrom
wmathurin:W-23201582-app-attestation-dev-info
Aug 7, 2026
Merged

feat(W-23201582): surface App Attestation state in developer info screen#4123
wmathurin merged 3 commits into
forcedotcom:devfrom
wmathurin:W-23201582-app-attestation-dev-info

Conversation

@wmathurin

Copy link
Copy Markdown
Contributor

Summary

  • Appends an "App Attestation" collapsible section to getDevSupportInfos() in SalesforceSDKManager.m, placed after the existing RTR section
  • Attestation Enabled — YES/NO from [SFUserAccountManager sharedInstance].appAttestationEnabled
  • Feature Flag (AA) — YES/NO from kSFAppFeatureAppAttestation per-user feature flag; N/A if no user is logged in

Tests

Added 4 unit tests in DevInfoViewControllerTests.swift via the existing testExtractSections helper:

  • testAppAttestationSection_DisabledNoUser — Attestation Enabled: NO, Feature Flag: N/A
  • testAppAttestationSection_DisabledWithUser_NoFlag — Attestation Enabled: NO, Feature Flag: NO
  • testAppAttestationSection_EnabledWithFeatureFlag — Attestation Enabled: YES, Feature Flag: YES
  • testAppAttestationSection_AppearsAfterRtrSection — verifies section order (RTR then App Attestation)

Related

  • W-23201582
  • Companion Android PR: forcedotcom/SalesforceMobileSDK-Android (W-23201584)

Appends an "App Attestation" section to getDevSupportInfos() with two rows:
- Attestation Enabled (YES/NO from UserAccountManager.appAttestationEnabled)
- Feature Flag (AA) (YES/NO from kSFAppFeatureAppAttestation per-user flag, N/A if no user)

Adds four unit tests in DevInfoViewControllerTests covering the section
structure and all YES/NO/N/A combinations.

@sfdctaka sfdctaka left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
1 Warning
⚠️ Static Analysis found an issue with one or more files you modified. Please fix the issue(s).

Clang Static Analysis Issues

File Type Category Description Line Col
SalesforceSDKManager Nil value used as mutex for @synchronized() (no synchronization will occur) Logic error Nil value used as mutex for @synchronized() (no synchronization will occur) 159 5
SalesforceSDKManager Nil value used as mutex for @synchronized() (no synchronization will occur) Logic error Nil value used as mutex for @synchronized() (no synchronization will occur) 171 5

Generated by 🚫 Danger

@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
TestsPassed ☑️SkippedFailed ❌️
SalesforceSDKCore iOS ^18 Test Results947 ran946 ✅1 ❌
TestResult
SalesforceSDKCore iOS ^18 Test Results
SalesforceRestAPITests.testUpdateNotificationRequestPath❌ failure

@codecov

codecov Bot commented Aug 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 67.18%. Comparing base (76821d7) to head (642283d).
⚠️ Report is 1 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #4123      +/-   ##
==========================================
- Coverage   71.35%   67.18%   -4.18%     
==========================================
  Files         254      254              
  Lines       22557    22570      +13     
==========================================
- Hits        16095    15163     -932     
- Misses       6462     7407     +945     
Components Coverage Δ
Analytics 70.78% <ø> (ø)
Common 70.88% <ø> (-0.19%) ⬇️
Core 60.58% <100.00%> (-6.29%) ⬇️
SmartStore 73.44% <ø> (ø)
MobileSync 88.82% <ø> (ø)
Files with missing lines Coverage Δ
...forceSDKCore/Classes/Common/SalesforceSDKManager.m 75.52% <100.00%> (+0.63%) ⬆️

... and 35 files with indirect coverage changes

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

@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
TestsPassedSkippedFailed ❌️
AuthFlowTester UI Test Results all1 ran1 ❌
TestResult
AuthFlowTester UI Test Results all
AuthFlowTesterUITests.xctest
LegacyLoginTests.testCAOpaque_DefaultScopes_WebServerFlow()❌ failure

@sfdctaka sfdctaka left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

@wmathurin
wmathurin merged commit bac1029 into forcedotcom:dev Aug 7, 2026
22 of 24 checks passed
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