Skip to content

Conversation

@jonpryor
Copy link
Contributor

Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=58134

We did a ton of stuff to get multidex working correctly on Windows
in commit 6829b7d. However it seems that if there are spaces in the
path on macOS, we get similar problems.

The solution is to add single quotes around the list of .jar files
when calling MainDexListBuilder. That seems pretty logical.
But... it breaks it on Windows (sigh). Because on Windows if we add
the single quotes, it stops working.

So we have to conditionally add the single quotes around the list
of jar files. Note this only applies when we call the MainDexListBuilder.
The single quotes seem to work ok when calling proguard..

Weird.

This commit also adds a unit test for this. However we needed to be
able to change the names of the Configurations "Debug", "Release".
So contructor arguments have been added to allow them to be overridden.
These will default to "Debug" and "Release" so that existing tests will
work as expected.

…net#725)

Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=58134

We did a ton of stuff to get multidex working correctly on Windows
in commit 6829b7d. However it seems that if there are spaces in the
path on macOS, we get similar problems.

The solution is to add single quotes around the list of `.jar` files
when calling `MainDexListBuilder`. That seems pretty logical.
But... it breaks it on Windows (sigh). Because on Windows if we add
the single quotes, it stops working.

So we have to conditionally add the single quotes around the list
of jar files. Note this only applies when we call the `MainDexListBuilder`.
The single quotes seem to work ok when calling proguard..

Weird.

This commit also adds a unit test for this. However we needed to be
able to change the names of the Configurations "Debug", "Release".
So contructor arguments have been added to allow them to be overridden.
These will default to "Debug" and "Release" so that existing tests will
work as expected.
@jonpryor jonpryor merged commit 7ded52f into dotnet:d15-4 Aug 10, 2017
@github-actions github-actions bot locked and limited conversation to collaborators Feb 5, 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.

3 participants