https://github.com/todi1856/com.unity.android.dependency-resolver
Unity's dependency resolver - alternative for Google External Dependency Manager
https://github.com/todi1856/com.unity.android.dependency-resolver
android dependency-manager dependency-resolver edm4u jar-resolver unity
Last synced: 3 months ago
JSON representation
Unity's dependency resolver - alternative for Google External Dependency Manager
- Host: GitHub
- URL: https://github.com/todi1856/com.unity.android.dependency-resolver
- Owner: todi1856
- License: mit
- Created: 2024-02-03T13:53:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-29T08:47:42.000Z (10 months ago)
- Last Synced: 2024-12-29T07:41:43.464Z (5 months ago)
- Topics: android, dependency-manager, dependency-resolver, edm4u, jar-resolver, unity
- Language: C#
- Homepage:
- Size: 22.2 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Unity Android Dependency Resolver

## Requirements
* Unity 6 or higher
## Installation
* Go to Window->Package Manager
* In top left corner click **+** button, choose **Install Package from git URL**
* Enter```
https://github.com/todi1856/com.unity.android.dependency-resolver.git?path=/Package
```* That's it, check Edit->Project Settings->Android->Dependency Resolver
## Overview
Dependency Resolver (**UADR**) provides the same functionality as [Google's External Dependency Manager](https://github.com/googlesamples/unity-jar-resolver) (**EDM4U**), but does that through [Configuration Manager](https://docs.unity3d.com/6000.0/Documentation/Manual/android-modify-gradle-project-files-agp.html).
How gradle dependencies are resolved:
| **EDM4U** | **UADR** |
|-----------|----------|
| Resolves dependencies:
* If templates are disabled - downloads dependencies to Assets/Plugins/Android.
* If templates are enabled - injects dependencies into template scripts.
If there are local repository specified, creates Assets/GeneratedLocalRepo folder. | Injects dependencies into gradle files using [Configuration Manager](https://docs.unity3d.com/2023.3/Documentation/Manual/android-modify-gradle-project-files-agp.html).
If there are local repositories, those are created directly in gradle project. |Starting Unity 6, it's recommended to use **Configuration Manager** for gradle project manipulation, but **Configuration Manager** cannot patch gradle files if they're patched via templates.
Also, downloading dependencies into Assets/Plugins/Android folder creates dependency conflicts if GameActivity is enabled as application entry point.
Due reasons above, **EDM4U** might not work for your case, especially if you're targeting GameActivity..
## Settings
The settings can be located in **Project Settings->Android->Dependency Resolver**.
| **Name** | **Description** |
|----------|-----------------|
|Enable Dependency Resolver | When enabled the gradle files will populated with dependency information.|
|Refresh Dependencies| You can inspect in advance what dependencies will be added to gradle project and can see the location from where they originate.