Example #1
0
 /// <summary>
 /// A callback before the build is started to manage the dependencies.
 /// </summary>
 /// <param name="report">A report containing information about the build.</param>
 public void OnPreprocessBuild(BuildReport report)
 {
     UnityEditor.BuildTarget buildTarget = report.summary.platform;
     if (buildTarget == UnityEditor.BuildTarget.Android)
     {
         ExternalDependencyResolverHelper.ClearDependencies();
         ManageAndroidDependencies(ARCoreExtensionsProjectSettings.Instance);
     }
     else if (buildTarget == UnityEditor.BuildTarget.iOS &&
              ARCoreExtensionsProjectSettings.Instance.IsIOSSupportEnabled)
     {
         ExternalDependencyResolverHelper.EnableDependencyResolver(
             ExternalDependencyResolverHelper.IOSResolverName);
     }
 }