Skip to content

Commit

Permalink
ARCore Extensions for AR Foundation v1.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tedruxpin committed Feb 6, 2020
1 parent c00a364 commit a3fd7da
Show file tree
Hide file tree
Showing 91 changed files with 12,202 additions and 51 deletions.
6 changes: 3 additions & 3 deletions Editor/BuildResources/ARCoreiOSDependencies.template
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<dependencies>
<iosPods>
<iosPod name="ARCore/CloudAnchors" version="~> 1.12.0" minTargetSdk="11.0">
</iosPod>
<iosPod minTargetSdk="11.0" name="ARCore/CloudAnchors" version="~&gt; 1.15.0">
</iosPod>
</iosPods>
</dependencies>
</dependencies>
2 changes: 1 addition & 1 deletion Editor/Scripts/Internal/ARCoreAnalytics.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="ARCoreAnalytics.cs" company="Google">
//
// Copyright 2019 Google Inc. All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Editor/Scripts/Internal/ARCoreAnalyticsGUI.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="ARCoreAnalyticsGUI.cs" company="Google">
//
// Copyright 2019 Google Inc. All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Editor/Scripts/Internal/ARCoreAnalyticsProvider.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="ARCoreAnalyticsProvider.cs" company="Google">
//
// Copyright 2019 Google Inc. All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Editor/Scripts/Internal/ARCoreExtensionsProjectSettings.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="ARCoreExtensionsProjectSettings.cs" company="Google">
//
// Copyright 2019 Google LLC All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="ARCoreExtensionsProjectSettingsGUI.cs" company="Google">
//
// Copyright 2019 Google LLC All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="ARCoreExtensionsProjectSettingsProvider.cs" company="Google">
//
// Copyright 2019 Google LLC All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Editor/Scripts/Internal/AssetHelper.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="AssetHelper.cs" company="Google">
//
// Copyright 2019 Google LLC All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Editor/Scripts/Internal/CloudAnchorPreprocessBuild.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="CloudAnchorPreprocessBuild.cs" company="Google">
//
// Copyright 2019 Google LLC All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Editor/Scripts/Internal/IOSSupportHelper.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="IOSSupportHelper.cs" company="Google">
//
// Copyright 2019 Google Inc. All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Editor/Scripts/Internal/IOSSupportPreprocessBuild.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="IOSSupportPreprocessBuild.cs" company="Google">
//
// Copyright 2019 Google Inc. All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Editor/Scripts/Internal/LogRequestUtils.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="LogRequestUtils.cs" company="Google">
//
// Copyright 2019 Google Inc. All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Editor/Scripts/Internal/SceneUtils.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="SceneUtils.cs" company="Google">
//
// Copyright 2019 Google LLC All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Editor/Scripts/Internal/ShellHelper.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="ShellHelper.cs" company="Google">
//
// Copyright 2019 Google LLC All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Binary file modified Runtime/Plugins/arcore_client.aar
Binary file not shown.
2 changes: 1 addition & 1 deletion Runtime/Scripts/ARCloudReferencePoint.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="ARCloudReferencePoint.cs" company="Google">
//
// Copyright 2019 Google LLC All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions Runtime/Scripts/ARCoreExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="ARCoreExtensions.cs" company="Google">
//
// Copyright 2019 Google LLC All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -127,7 +127,7 @@ public void OnDisable()
public void OnDestroy()
{
#if UNITY_IOS && ARCORE_EXTENSIONS_IOS_SUPPORT
IOSSupportManager.Instance.ResetARCoreSession();
IOSSupportManager.Instance.ResetInstanceAndSession();
#endif

if (Instance)
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Scripts/ARCoreExtensionsConfig.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="ARCoreExtensionsConfig.cs" company="Google">
//
// Copyright 2019 Google LLC All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Scripts/ARReferencePointManagerExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="ARReferencePointManagerExtensions.cs" company="Google">
//
// Copyright 2019 Google LLC All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Scripts/CloudReferenceState.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="CloudReferenceState.cs" company="Google">
//
// Copyright 2019 Google LLC All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="ARPlaneExtensions.cs" company="Google">
//
// Copyright 2019 Google LLC All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="ARReferencePointExtensions.cs" company="Google">
//
// Copyright 2019 Google LLC All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="ARSessionExtensions.cs" company="Google">
//
// Copyright 2019 Google LLC All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="XRCameraFrameExtensions.cs" company="Google">
//
// Copyright 2019 Google LLC All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Scripts/Internal/ApiConstants.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="ApiConstants.cs" company="Google">
//
// Copyright 2019 Google LLC All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Scripts/Internal/Helpers/DllImportNoop.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="DllImportNoop.cs" company="Google">
//
// Copyright 2019 Google Inc. All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Scripts/Internal/Helpers/Translators.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="Translators.cs" company="Google">
//
// Copyright 2019 Google LLC All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
27 changes: 18 additions & 9 deletions Runtime/Scripts/Internal/IOSSupportManager.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="IOSSupportManager.cs" company="Google">
//
// Copyright 2019 Google LLC All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -30,7 +30,7 @@ namespace Google.XR.ARCoreExtensions.Internal
internal class IOSSupportManager
{
private const string k_IOSCloudServicesApiKeyPath =
"RuntimeSettings/iOSCloudServiceApiKey";
"RuntimeSettings/iOSCloudServiceApiKey";

private static IOSSupportManager s_Instance;

Expand Down Expand Up @@ -125,6 +125,15 @@ public void ResetARCoreSession()
}
}

public void ResetInstanceAndSession()
{
ResetARCoreSession();
if (s_Instance != null)
{
s_Instance = null;
}
}

private void _CreateARCoreSession()
{
ResetARCoreSession();
Expand All @@ -138,7 +147,7 @@ private void _CreateARCoreSession()
if (status != ApiArStatus.Success)
{
Debug.LogErrorFormat("Failed to create a cross platform ARCore session with " +
"error: {0}.", status);
"error: {0}.", status);
return;
}
}
Expand All @@ -165,15 +174,15 @@ private void _OnFrameUpdate(ARCameraFrameEventArgs frameEventArgs)
{
var cameraParams = new XRCameraParams
{
zNear = m_CameraManager.GetComponent<Camera>().nearClipPlane,
zFar = m_CameraManager.GetComponent<Camera>().farClipPlane,
screenWidth = Screen.width,
screenHeight = Screen.height,
screenOrientation = Screen.orientation
zNear = m_CameraManager.GetComponent<Camera>().nearClipPlane,
zFar = m_CameraManager.GetComponent<Camera>().farClipPlane,
screenWidth = Screen.width,
screenHeight = Screen.height,
screenOrientation = Screen.orientation
};

if (!m_CameraManager.subsystem.TryGetLatestFrame(
cameraParams, out XRCameraFrame frame))
cameraParams, out XRCameraFrame frame))
{
Debug.LogWarning("XRCamera's latest frame is not available now.");
return;
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Scripts/Internal/RuntimeConfig.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="RuntimeConfig.cs" company="Google">
//
// Copyright 2019 Google LLC All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Scripts/Internal/Types/ApiArStatus.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="ApiArStatus.cs" company="Google">
//
// Copyright 2019 Google LLC All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Scripts/Internal/Types/ApiCloudAnchorMode.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="ApiCloudAnchorMode.cs" company="Google">
//
// Copyright 2019 Google LLC All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Scripts/Internal/Types/ApiCloudAnchorState.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="ApiCloudAnchorState.cs" company="Google">
//
// Copyright 2019 Google LLC All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Scripts/Internal/Types/ApiPose.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="ApiPose.cs" company="Google">
//
// Copyright 2019 Google LLC All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Scripts/Internal/Types/ApiTrackingState.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="ApiTrackingState.cs" company="Google">
//
// Copyright 2019 Google LLC All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Scripts/Internal/Wrappers/AnchorApi.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="AnchorApi.cs" company="Google">
//
// Copyright 2019 Google LLC All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Scripts/Internal/Wrappers/PoseApi.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="PoseApi.cs" company="Google">
//
// Copyright 2019 Google LLC All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Scripts/Internal/Wrappers/SessionApi.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//-----------------------------------------------------------------------
// <copyright file="SessionApi.cs" company="Google">
//
// Copyright 2019 Google LLC All Rights Reserved.
// Copyright 2019 Google LLC. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Loading

0 comments on commit a3fd7da

Please sign in to comment.