Skip to content
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? Sign in to your account

SDK-2061 request payload refactor #1295

Merged
merged 29 commits into from
Sep 29, 2023
Merged

Conversation

echo-branch
Copy link
Contributor

Reference

SDK-2061 Request payload refactor

Summary

Refactored server request generation out of BNCServerInterface to simplify data collection rules and enforcement.

Motivation

Existing data collection is split across several classes, this made it challenging to enforce data collection rules based on different privacy settings.

  • Remove deprecated code and public APIs
  • Make request generation easier to test and update
  • Assess and remove unnecessary data collection

Type Of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Testing Instructions

See testing notion doc and follow up JIRA tickets for details.

cc @BranchMetrics/saas-sdk-devs for visibility.

@@ -817,23 +803,6 @@ - (void) setInvokeRegisterApp:(BOOL)invoke {
}
}

- (BOOL) useEUServers {
Copy link
Collaborator

Choose a reason for hiding this comment

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

@echo-branch Is this property not persistent?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was thinking it would be set on app launch, either in code or config file.

# Conflicts:
#	Branch-TestBed/Branch-SDK-Tests/BranchInstallRequestTests.m
#	Branch-TestBed/Branch-SDK-Tests/BranchOpenRequestTests.m
#	Branch-TestBed/Branch-TestBed.xcodeproj/project.pbxproj
#	BranchSDK/BranchInstallRequest.m
#	BranchSDK/BranchOpenRequest.m
@echo-branch echo-branch changed the title WIP: SDK-2061 request payload refactor SDK-2061 request payload refactor Sep 26, 2023
@codecov
Copy link

codecov bot commented Sep 28, 2023

Codecov Report

Merging #1295 (60b8a62) into master (da55b9e) will decrease coverage by 1.26%.
Report is 114 commits behind head on master.
The diff coverage is 61.63%.

@@            Coverage Diff             @@
##           master    #1295      +/-   ##
==========================================
- Coverage   51.73%   50.48%   -1.26%     
==========================================
  Files          74       68       -6     
  Lines       10663    10106     -557     
  Branches     4121     3889     -232     
==========================================
- Hits         5517     5102     -415     
+ Misses       4894     4758     -136     
+ Partials      252      246       -6     
Files Coverage Δ
Branch-TestBed/Branch-TestBed/AppDelegate.m 44.35% <ø> (ø)
BranchSDK/BNCContentDiscoveryManager.m 2.88% <ø> (ø)
BranchSDK/BNCCurrency.m 0.00% <ø> (ø)
BranchSDK/BNCDeviceInfo.m 88.37% <100.00%> (-1.26%) ⬇️
BranchSDK/BNCEncodingUtils.m 87.04% <100.00%> (-2.34%) ⬇️
BranchSDK/BNCNetworkInterface.m 89.85% <ø> (ø)
BranchSDK/BNCPasteboard.m 100.00% <100.00%> (ø)
BranchSDK/BNCSpotlightService.m 0.00% <ø> (ø)
BranchSDK/BranchInstallRequest.m 72.72% <100.00%> (+5.53%) ⬆️
BranchSDK/BranchJsonConfig.m 64.76% <ø> (-1.30%) ⬇️
... and 24 more

... and 6 files with indirect coverage changes

@echo-branch echo-branch merged commit b0525ec into master Sep 29, 2023
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