本文介绍: iosPods>是iOS的也同理,最终会输出mainTemplate.gradle(前提是你已经勾选了Custom Main Template)选项例如上方的下的每一个都是一个依赖implementation引入谷歌包时发现有这个玩意,主要用途自动搜索工程任意文件夹下的Editor/*Dependencies.xml文件指定包来源url指定的是镜像url

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)选项

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注