本文介绍: 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)选项

原文地址:https://blog.csdn.net/qq_39574690/article/details/134694076

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任

如若转载,请注明出处:http://www.7code.cn/show_38926.html

如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱suwngjj01@126.com进行投诉反馈,一经查实,立即删除

发表回复

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