-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[ota] Remove two outdated/redundant methods #16019
Merged
Damian-Nordic
merged 2 commits into
project-chip:master
from
Damian-Nordic:ota-requestor-cleanup
Mar 10, 2022
Merged
[ota] Remove two outdated/redundant methods #16019
Damian-Nordic
merged 2 commits into
project-chip:master
from
Damian-Nordic:ota-requestor-cleanup
Mar 10, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The function was initially used to set name of image file to be downloaded, but most platforms don't use that and some platforms use the file name as the output file name, that is, the file name where the downloaded image should be saved. Remove the method from the common interface and add SetOTAImageFile setters in platforms that need to have the output file name set.
pullapprove
bot
requested review from
andy31415,
anush-apple,
austinh0,
balducci-apple,
Byungjoo-Lee,
bzbarsky-apple,
carol-apple,
chrisdecenzo,
chshu,
chulspro,
dhrishi,
electrocucaracha and
emargolis
March 9, 2022 16:41
pullapprove
bot
requested review from
msandstedt,
mspang,
vijs,
robszewczyk,
vivien-apple,
sagar-apple,
wbschiller,
saurabhst,
woody-apple,
selissia,
xylophone21,
tcarmelveilleux,
yufengwangca,
yunhanw-google and
tecimovic
March 9, 2022 16:41
PR #16019: Size comparison from b146c95 to 1499991 Increases above 0.2%:
Increases (1 build for linux)
Decreases (6 builds for cyw30739, efr32, k32w, linux, nrfconnect)
Full report (26 builds for cyw30739, efr32, esp32, k32w, linux, nrfconnect, p6, telink)
|
selissia
approved these changes
Mar 9, 2022
carol-apple
reviewed
Mar 9, 2022
carol-apple
approved these changes
Mar 9, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
OTARequestor::SetRequestorCanConsent
method is not needed since an application already has a different way to injectRequestorCanConsent
attribute value. That is,OTARequestorDriver::CanConsent
method. We don't need two alternative sources of this information.OTAImageProcessorInterface::SetOTAImageProcessorParams
is used on some platforms, only, and against the original intent since the downloaded file name no longer needs to be set by the app (the downloaded file designator is obtained inQueryImageResponse
).Change overview
Remove the unnecessary methods and refactor the code accordingly.
Added dedicated
SetOTAImageFile
setters for platforms that allow to configure the output file name (where the downloaded image should be saved).Testing
Ran OTA between Linux OTA requestor and provider.