Skip to content

Conversation

@jonathanpeppers
Copy link
Member

Fixes #1373

Since #1131, the contents of the acw-map.txt file have changed. We
have removed the fully qualified type names from the file, and there is
some code in the <Proguard /> task that relies on a specific number of
lines per C# type.

We need to update the for-loop to skip every third line instead of every
fourth line.

I also updated the loop to only index against the acwLines array once
per loop interation, as a small performance improvement. The code is also
a little more readable from this change.

Lastly, I added some code to the proguard test so that it validates the
proguard configuration file contains the appropriate contents. Prior to
this, the test was only making sure the build succeeded.

…-map.txt file

Fixes dotnet#1373

Since dotnet#1131, the contents of the `acw-map.txt` file have changed. We
have removed the fully qualified type names from the file, and there is
some code in the `<Proguard />` task that relies on a specific number of
lines per C# type.

We need to update the for-loop to skip every third line instead of every
fourth line.

I also updated the loop to only index against the `acwLines` array once
per loop interation, as a small performance improvement. The code is also
a little more readable from this change.

Lastly, I added some code to the proguard test so that it validates the
proguard configuration file contains the appropriate contents. Prior to
this, the test was only making sure the build succeeded.
@jonpryor jonpryor merged commit d72156c into dotnet:master Mar 13, 2018
@jonathanpeppers jonathanpeppers deleted the proguard-acwmap branch March 13, 2018 13:47
jonpryor pushed a commit that referenced this pull request Mar 16, 2018
Fixes: #1373

Since e5b1c92, the contents of the `acw-map.txt` file have changed. We
have removed the fully qualified type names from the file, and there is
some code in the `<Proguard />` task that relies on a specific number of
lines per C# type.

We need to update the for-loop to skip every third line instead of every
fourth line.

I also updated the loop to only index against the `acwLines` array once
per loop interation, as a small performance improvement. The code is also
a little more readable from this change.

Lastly, I added some code to the proguard test so that it validates the
proguard configuration file contains the appropriate contents. Prior to
this, the test was only making sure the build succeeded.
@github-actions github-actions bot locked and limited conversation to collaborators Feb 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants