Closed kfrancis closed 1 year ago
It looks like that dependency is hosted in Google's Maven and not Maven Central: https://maven.google.com/web/index.html?q=flexbox#com.google.android.flexbox:flexbox:3.0.0
Try adding Repository="Google"
and see if that finds it.
https://github.com/jpobst/Prototype.Android.MavenBindings/wiki/MavenDownloadTask-Advanced-Scenarios#googles-maven
Kind of like whack-a-mole, resolve one dep and find 10 more. Still working on it. Yes, that did seem to resolve that one. Still WIP
Thanks for this feedback (and any future feedback!). You're probably the first person to actually try this out aside from my tests. 😁
I think a future improvement could be to create a .NET Global Tool or something that you would give it the Maven artifact information and it would generate an initial .csproj
prepopulated with the correct dependencies. Or it could spit out the dependency MSBuild XML that could be copy/pasted into an existing .csproj
.
I can absolutely see how that would work, and that would be amazing.
According to the GPT, it thinks "MavenDroidBind-o-Matic" could be a viable name of such a tool. I had a good laugh.
So, I've long been searching for a way to create bindings without the annoying step of interacting with maven to get the aar file, so this is AMAZING.
That being said, try creating one for intercom. The SDK Base, for example, has a very large set of runtime dependencies so it's quite tedious setting that up: https://mvnrepository.com/artifact/io.intercom.android/intercom-sdk-base/14.2.0
So far, the base csproj is starting to look like this and I'm curious if I'm doing this right:
For example, if I add one that it's complaining about:
as
<AndroidMavenLibrary Include="com.google.android.flexbox:flexbox" Version="3.0.0" Bind="false" />
then I get the error:AFAIK, that entry should be correct based on the maven information: https://mvnrepository.com/artifact/com.google.android.flexbox/flexbox/3.0.0