/// <summary> /// Preprocess step for Android Build. /// </summary> /// <param name="enabledKeyless">Whether to enable or disable keyless.</param> public static void PreprocessAndroidBuild(bool enabledKeyless) { AndroidDependenciesHelper.UpdateAndroidDependencies( enabledKeyless, _androidKeylessDependenciesGuid); if (enabledKeyless) { Debug.Log("ARCoreExtensions: Including Keyless dependencies in this build."); AndroidDependenciesHelper.DoPlayServicesResolve(); } }
private static void AddEarthDependecyOnAndroid(bool enabled) { Debug.LogFormat("ARCoreExtensions: {0} Earth Cloud Anchor dependencies.", enabled ? "Adding" : "Removing"); AndroidDependenciesHelper.UpdateAndroidDependencies(enabled, _locationDependencyGuid); // If we are in batch mode, ExternalDependencyManager won't auto-resolve so attempt to // resolve dependencies. if (enabled && UnityEditorInternal.InternalEditorUtility.inBatchMode) { AndroidDependenciesHelper.DoPlayServicesResolve(); } }