Skip to content

Conversation

@LoopedBard3
Copy link
Member

Adds support for measuring ipa files to the Maui and iOS pre.py files. This also includes the addition of passing in the name of the folder/file you want to use in testing. This is a sibling commit to dotnet/runtime#66358.

exit(-1)

appFolderPath = os.path.join(baseDir, appFolder[0])
for subfile in os.listdir(appFolderPath):
Copy link
Member

Choose a reason for hiding this comment

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

Why are we moving the extracted files after unzipping rather than just measuring the size where we unpack them?

Copy link
Member Author

Choose a reason for hiding this comment

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

The main reason was because the structure of the unzipped ipa is folder.app/{interesting files}. I can play around with it a little bit more to and see if I can get the dirs argument to set the directory to parse to work instead though.

Copy link
Member Author

Choose a reason for hiding this comment

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

I double checked some assumptions I made about the ipa file structure and they were incorrect so I removed the moving section to match measuring the whole zip file.

@DrewScoggins DrewScoggins self-requested a review March 9, 2022 22:10
Copy link
Member

@DrewScoggins DrewScoggins left a comment

Choose a reason for hiding this comment

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

LGTM

@LoopedBard3
Copy link
Member Author

The failing sections are failing in main, merging.

@LoopedBard3 LoopedBard3 closed this Mar 9, 2022
@LoopedBard3 LoopedBard3 reopened this Mar 9, 2022
@LoopedBard3 LoopedBard3 merged commit c720e39 into dotnet:main Mar 9, 2022
@LoopedBard3 LoopedBard3 deleted the EnableiOSIPASizeMeasurement branch March 9, 2022 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants