【Unity记录】EDM4U(External Dependency Manager)使用说明
GitHub - googlesamples/unity-jar-resolver: Unity plugin which resolves Android & iOS dependencies and performs version management
引入谷歌包时发现有这个玩意,主要用途是自动搜索工程内任意文件夹下的Editor/*Dependencies.xml文件
<dependencies>
<androidPackages>
<androidPackage spec="com.google.android.gms:play-services-ads:[22.3.0]">
<repositories>
<repository>http://maven.aliyun.com/nexus/content/groups/public/</repository>
</repositories>
</androidPackage>
</androidPackages>
<iosPods>
<iosPod name="Google-Mobile-Ads-SDK" version="~> 10.9">
<sources>
<source>https://github.com/CocoaPods/Specs</source>
</sources>
</iosPod>
</iosPods>
</dependencies>
例如上方的<androidPackages>下的每一个<androidPackage>都是一个依赖项implementation
<repositories>指定包来源url 我指定的是镜像url
<iosPods>是iOS的也同理,最终会输出到mainTemplate.gradle(前提是你已经勾选了Custom Main Template)选项。