Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

KotlinXCoroutines-1.4.3.1-targets-files-fixes #1173

Merged
merged 3 commits into from
May 18, 2021

Conversation

moljac
Copy link
Member

@moljac moljac commented May 15, 2021

refactoring + fixes:

@moljac moljac self-assigned this May 15, 2021
@moljac moljac added in-progress Work is in progress in-test labels May 15, 2021
Comment on lines 46 to 47
<None Include="..\..\externals\kotlinx-coroutines-android-$(ArtifactVersion).jar" Pack="True" PackagePath="jar\kotlinx-coroutines-android-$(ArtifactVersion).jar" Visible="false" />
<EmbeddedJar Include="..\..\externals\kotlinx-coroutines-android-$(ArtifactVersion).jar" Link="Jars\kotlinx-coroutines-android-$(ArtifactVersion).jar" />
Copy link
Collaborator

Choose a reason for hiding this comment

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

What do these lines do?

It seems like they're going to add the .jar to the .nupkg twice: once embedded in the .dll and once as a loose .jar file.

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 think this is for buildTransitive (but I am no expert on this)

#1136

and

#1017

Copy link
Collaborator

@mattleibow mattleibow May 17, 2021

Choose a reason for hiding this comment

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

It looks to be added twice, but this is probably because the accompanying .targets file is not added to the nuget - and then this was added back.
The .targets file should be added to build and buildTransitive

I am a dummy, the targets file is added in the lines above. This is embedding unnecessarily.

Copy link
Collaborator

Choose a reason for hiding this comment

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

It seems like we shouldn't be adding .targets files or adding loose .jar files at all, but I guess we do it with all of our packages so I guess it's ok.

@moljac moljac merged commit 386ecc7 into main May 18, 2021
@moljac moljac deleted the KotlinXCoroutines-1.4.3.1-targets-files-fixes branch May 18, 2021 04:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
in-progress Work is in progress in-test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants