Skip to content

Fix AndroidManifest issues and warnings in test libraries. - #2810

Merged
brandonpage merged 2 commits into
forcedotcom:devfrom
brandonpage:shard-tests
Dec 3, 2025
Merged

Fix AndroidManifest issues and warnings in test libraries.#2810
brandonpage merged 2 commits into
forcedotcom:devfrom
brandonpage:shard-tests

Conversation

@brandonpage

Copy link
Copy Markdown
Contributor

No description provided.

Comment on lines -20 to -23
<!-- Disabling AILTN in tests -->
<service android:name="com.salesforce.androidsdk.analytics.AnalyticsPublisherService"
android:enabled="false"
android:exported="false" />

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This was removed in 2023.

Comment on lines +10 to +19
<!-- Service required for authentication -->
<service android:exported="true"
android:name="com.salesforce.androidsdk.auth.AuthenticatorService"
tools:ignore="ExportedService">
<intent-filter>
<action android:name="android.accounts.AccountAuthenticator" />
</intent-filter>
<meta-data android:name="android.accounts.AccountAuthenticator"
android:resource="@xml/authenticator" />
</service>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not declaring this causes a "Fatal exception" when running tests:

Image

@codecov

codecov Bot commented Dec 3, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 43.68%. Comparing base (2d966be) to head (324e73c).
⚠️ Report is 1 commits behind head on dev.

Additional details and impacted files
@@              Coverage Diff              @@
##                dev    #2810       +/-   ##
=============================================
- Coverage     61.77%   43.68%   -18.10%     
+ Complexity     2767     2061      -706     
=============================================
  Files           214      214               
  Lines         16931    16931               
  Branches       2453     2453               
=============================================
- Hits          10459     7396     -3063     
- Misses         5306     8629     +3323     
+ Partials       1166      906      -260     
Components Coverage Δ
Analytics 47.92% <ø> (ø)
SalesforceSDK 37.65% <ø> (-15.85%) ⬇️
Hybrid 44.91% <ø> (-14.15%) ⬇️
SmartStore 78.20% <ø> (ø)
MobileSync 36.95% <ø> (-44.73%) ⬇️
React 36.25% <ø> (-16.12%) ⬇️
see 81 files with indirect coverage changes
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Dec 3, 2025

Copy link
Copy Markdown
1 Warning
⚠️ libs/SalesforceAnalytics/build.gradle.kts#L15 - A newer version of androidx.core:core-ktx than 1.16.0 is available: 1.17.0

Generated by 🚫 Danger

@brandonpage
brandonpage merged commit 4cdc3d0 into forcedotcom:dev Dec 3, 2025
4 of 10 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