P
P
poznavaka2018-03-13 14:02:59
Android
poznavaka, 2018-03-13 14:02:59

Is it possible to connect .aar to Unity3d using maven and how can this be done?

I want to include an .aar with external library dependencies in a Unity3d project. I have a maven repository where I placed this library. Can I connect it to the Unity3d project from the maven repository somehow directly or do I need to use additional plugins?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
poznavaka, 2018-03-20
@poznavaka

In short, since no one can answer, I will answer myself how I solved it ...
There is a plugin from google Play Services Resolver for Unity . The description there is a little crooked, but the bottom line is that you need to download it (there will be a file play-services-resolver-1.2.46.0.unitypackage or later) and you need to install it in unity. After that, the PlayServicesResolver folder will be created with its project in Assets. It is necessary to place there, in the Editor folder, xml with the necessary dependencies (I just specified my maven repository in this xml and everything loaded automatically).
How to create an android library and place it in the maven repository can be found here .
How to host a maven repository on your server can be found here .

D
Daniil Basmanov, 2018-03-13
@BasmanovDaniil

If you package the unit as a library and embed it in an android project, then you can do anything, but then you have to maintain two separate projects and somehow launch the unit from your application. You can go the other way and export the android project from the unit, and then suck in the necessary dependencies with a post-process. You can also try to peep how Google Play Services updates its libraries inside the unit.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question