Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<PropertyGroup>
<PackageId>Xamarin.AndroidBinderator.Tool</PackageId>
<PackageVersion>0.5.6</PackageVersion>
<PackageVersion>0.5.7</PackageVersion>
<Title>Xamarin Android Binderator</Title>
<PackageDescription>A tool for generating Xamarin.Android Binding projects from Razor templates and Maven Repository data.</PackageDescription>
<PackageProjectUrl>https://go.microsoft.com/fwlink/?linkid=2100525</PackageProjectUrl>
Expand Down
16 changes: 13 additions & 3 deletions util/Xamarin.AndroidBinderator/Xamarin.AndroidBinderator/Engine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -318,14 +318,24 @@ static List<BindingProjectModel> BuildProjectModels(BindingConfig config, Dictio
MavenArtifactConfig = mavenArtifact
});

// Gather maven dependencies to try and map out nuget dependencies
foreach (var mavenDep in mavenProject.Dependencies.Concat(ParseExtraDependencies(mavenArtifact.ExtraDependencies)))
{
List<Dependency> dependencies = new List<Dependency>();

// Find all the POM specified dependencies that we need to consider
foreach (var mavenDep in mavenProject.Dependencies) {
FixDependency(config, mavenArtifact, mavenDep, mavenProject);

if (!ShouldIncludeDependency(config, mavenArtifact, mavenDep, exceptions))
continue;

dependencies.Add(mavenDep);
}

// Add any "extraDependencies"
dependencies.AddRange(ParseExtraDependencies(mavenArtifact.ExtraDependencies));

// Try and map out nuget dependencies
foreach (var mavenDep in dependencies)
{
mavenDep.GroupId = mavenDep.GroupId.Replace ("${project.groupId}", mavenProject.GroupId);
mavenDep.Version = mavenDep.Version?.Replace ("${project.version}", mavenProject.Version);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</PropertyGroup>

<PropertyGroup>
<PackageVersion>2.3.6</PackageVersion>
<PackageVersion>2.3.7</PackageVersion>
<PackageId>Xamarin.AndroidBinderator</PackageId>
<Title>Xamarin.AndroidBinderator</Title>
<PackageDescription>An engine to generate Xamarin Binding projects from Maven repositories with a JSON config and razor templates.</PackageDescription>
Expand Down