diff --git a/.vsconfig b/.vsconfig
new file mode 100644
index 000000000..aade28f67
--- /dev/null
+++ b/.vsconfig
@@ -0,0 +1,6 @@
+{
+ "version": "1.0",
+ "components": [
+ "Microsoft.VisualStudio.Workload.ManagedGame"
+ ]
+}
diff --git a/Assets/GoogleARCore.meta b/Assets/GoogleARCore.meta
deleted file mode 100644
index ce7c2e411..000000000
--- a/Assets/GoogleARCore.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 74e4fcdb05c15f743842e3280864e8b1
-folderAsset: yes
-timeCreated: 1505872011
-licenseType: Pro
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/Configurations.meta b/Assets/GoogleARCore/Configurations.meta
deleted file mode 100644
index 7417fbe08..000000000
--- a/Assets/GoogleARCore/Configurations.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 6b1cded3497844b35a3bfac966b428f2
-folderAsset: yes
-timeCreated: 1496364746
-licenseType: Pro
-DefaultImporter:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/Configurations/DefaultSessionConfig.asset b/Assets/GoogleARCore/Configurations/DefaultSessionConfig.asset
deleted file mode 100644
index 4afeb5ff7..000000000
--- a/Assets/GoogleARCore/Configurations/DefaultSessionConfig.asset
+++ /dev/null
@@ -1,16 +0,0 @@
-%YAML 1.1
-%TAG !u! tag:unity3d.com,2011:
---- !u!114 &11400000
-MonoBehaviour:
- m_ObjectHideFlags: 0
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 0}
- m_Enabled: 1
- m_EditorHideFlags: 0
- m_Script: {fileID: 11500000, guid: 53ac32fab2599402fb6d154adf4c1e40, type: 3}
- m_Name: DefaultSessionConfig
- m_EditorClassIdentifier:
- m_matchCameraFramerate: 1
- m_enablePlaneFinding: 1
- m_enableLightEstimation: 1
diff --git a/Assets/GoogleARCore/Configurations/DefaultSessionConfig.asset.meta b/Assets/GoogleARCore/Configurations/DefaultSessionConfig.asset.meta
deleted file mode 100644
index 62f7d4c16..000000000
--- a/Assets/GoogleARCore/Configurations/DefaultSessionConfig.asset.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 9586a84d6c32f46b6ab7aeb6042f160d
-timeCreated: 1510878073
-licenseType: Pro
-NativeFormatImporter:
- externalObjects: {}
- mainObjectFileID: 11400000
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/Examples.meta b/Assets/GoogleARCore/Examples.meta
deleted file mode 100644
index deafab15c..000000000
--- a/Assets/GoogleARCore/Examples.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 165068a6255814b639ac5e322836d8bb
-folderAsset: yes
-timeCreated: 1512499966
-licenseType: Pro
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/Examples/ComputerVision.meta b/Assets/GoogleARCore/Examples/ComputerVision.meta
deleted file mode 100644
index 5985f3e33..000000000
--- a/Assets/GoogleARCore/Examples/ComputerVision.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 7af44c1128a614f72a62d613e2c5b61d
-folderAsset: yes
-timeCreated: 1512755870
-licenseType: Pro
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/Examples/ComputerVision/Materials.meta b/Assets/GoogleARCore/Examples/ComputerVision/Materials.meta
deleted file mode 100644
index e824a8c78..000000000
--- a/Assets/GoogleARCore/Examples/ComputerVision/Materials.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: bec192a39069f44f8ae625bd826b4e53
-folderAsset: yes
-timeCreated: 1501723767
-licenseType: Free
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/Examples/ComputerVision/Materials/AREdgeDetectionBackground.shader b/Assets/GoogleARCore/Examples/ComputerVision/Materials/AREdgeDetectionBackground.shader
deleted file mode 100644
index 859747479..000000000
--- a/Assets/GoogleARCore/Examples/ComputerVision/Materials/AREdgeDetectionBackground.shader
+++ /dev/null
@@ -1,74 +0,0 @@
-Shader "AREdgeDetectionBackground"
-{
- Properties
- {
- _OverlayPercentage ("Overlay Percentage", Range (0.0, 1.0)) = 0.5
- }
-
- // For GLES3
- SubShader
- {
- Pass
- {
- ZWrite Off
-
- GLSLPROGRAM
-
- #pragma only_renderers gles3
-
- #ifdef SHADER_API_GLES3
- #extension GL_OES_EGL_image_external_essl3 : require
- #endif
-
- uniform vec4 _UvTopLeftRight;
- uniform vec4 _UvBottomLeftRight;
-
- #ifdef VERTEX
-
- #define kPortrait 1.0
- #define kPortraitUpsideDown 2.0
- #define kLandscapeLeft 3.0
- #define kLandscapeRight 4.0
-
- varying vec2 textureCoord;
-
- void main()
- {
- #ifdef SHADER_API_GLES3
- vec2 uvTop = mix(_UvTopLeftRight.xy, _UvTopLeftRight.zw, gl_MultiTexCoord0.x);
- vec2 uvBottom = mix(_UvBottomLeftRight.xy, _UvBottomLeftRight.zw, gl_MultiTexCoord0.x);
- textureCoord = mix(uvTop, uvBottom, gl_MultiTexCoord0.y);
-
- gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
- #endif
- }
-
- #endif
-
- #ifdef FRAGMENT
- varying vec2 textureCoord;
- uniform samplerExternalOES _MainTex;
- uniform sampler2D _ImageTex;
- uniform float _OverlayPercentage;
-
- void main()
- {
- #ifdef SHADER_API_GLES3
- if (textureCoord.x < _OverlayPercentage)
- gl_FragColor = texture(_MainTex, textureCoord);
- else
- {
- vec4 color = texture2D(_ImageTex, textureCoord);
- gl_FragColor.xyz = color.xxx;
- }
- #endif
- }
-
- #endif
-
- ENDGLSL
- }
- }
-
- FallBack Off
-}
diff --git a/Assets/GoogleARCore/Examples/ComputerVision/Materials/AREdgeDetectionBackground.shader.meta b/Assets/GoogleARCore/Examples/ComputerVision/Materials/AREdgeDetectionBackground.shader.meta
deleted file mode 100644
index 9a4f035b1..000000000
--- a/Assets/GoogleARCore/Examples/ComputerVision/Materials/AREdgeDetectionBackground.shader.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: b7004efaaedb14dfcba62eea5c70c9d2
-timeCreated: 1512500068
-licenseType: Pro
-ShaderImporter:
- externalObjects: {}
- defaultTextures: []
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/Examples/ComputerVision/Materials/AREdgeDetectionBackgroundMaterial.mat b/Assets/GoogleARCore/Examples/ComputerVision/Materials/AREdgeDetectionBackgroundMaterial.mat
deleted file mode 100644
index 05303003b..000000000
--- a/Assets/GoogleARCore/Examples/ComputerVision/Materials/AREdgeDetectionBackgroundMaterial.mat
+++ /dev/null
@@ -1,76 +0,0 @@
-%YAML 1.1
-%TAG !u! tag:unity3d.com,2011:
---- !u!21 &2100000
-Material:
- serializedVersion: 6
- m_ObjectHideFlags: 0
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_Name: AREdgeDetectionBackgroundMaterial
- m_Shader: {fileID: 4800000, guid: b7004efaaedb14dfcba62eea5c70c9d2, type: 3}
- m_ShaderKeywords:
- m_LightmapFlags: 4
- m_EnableInstancingVariants: 0
- m_DoubleSidedGI: 0
- m_CustomRenderQueue: -1
- stringTagMap: {}
- disabledShaderPasses: []
- m_SavedProperties:
- serializedVersion: 3
- m_TexEnvs:
- - _BumpMap:
- m_Texture: {fileID: 0}
- m_Scale: {x: 1, y: 1}
- m_Offset: {x: 0, y: 0}
- - _DetailAlbedoMap:
- m_Texture: {fileID: 0}
- m_Scale: {x: 1, y: 1}
- m_Offset: {x: 0, y: 0}
- - _DetailMask:
- m_Texture: {fileID: 0}
- m_Scale: {x: 1, y: 1}
- m_Offset: {x: 0, y: 0}
- - _DetailNormalMap:
- m_Texture: {fileID: 0}
- m_Scale: {x: 1, y: 1}
- m_Offset: {x: 0, y: 0}
- - _EmissionMap:
- m_Texture: {fileID: 0}
- m_Scale: {x: 1, y: 1}
- m_Offset: {x: 0, y: 0}
- - _MainTex:
- m_Texture: {fileID: 0}
- m_Scale: {x: 1, y: 1}
- m_Offset: {x: 0, y: 0}
- - _MetallicGlossMap:
- m_Texture: {fileID: 0}
- m_Scale: {x: 1, y: 1}
- m_Offset: {x: 0, y: 0}
- - _OcclusionMap:
- m_Texture: {fileID: 0}
- m_Scale: {x: 1, y: 1}
- m_Offset: {x: 0, y: 0}
- - _ParallaxMap:
- m_Texture: {fileID: 0}
- m_Scale: {x: 1, y: 1}
- m_Offset: {x: 0, y: 0}
- m_Floats:
- - _BumpScale: 1
- - _Cutoff: 0.5
- - _DetailNormalMapScale: 1
- - _DstBlend: 0
- - _GlossMapScale: 1
- - _Glossiness: 0.5
- - _GlossyReflections: 1
- - _Metallic: 0
- - _Mode: 0
- - _OcclusionStrength: 1
- - _Parallax: 0.02
- - _SmoothnessTextureChannel: 0
- - _SpecularHighlights: 1
- - _SrcBlend: 1
- - _UVSec: 0
- - _ZWrite: 1
- m_Colors:
- - _Color: {r: 1, g: 1, b: 1, a: 1}
- - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
diff --git a/Assets/GoogleARCore/Examples/ComputerVision/Materials/AREdgeDetectionBackgroundMaterial.mat.meta b/Assets/GoogleARCore/Examples/ComputerVision/Materials/AREdgeDetectionBackgroundMaterial.mat.meta
deleted file mode 100644
index cc16df134..000000000
--- a/Assets/GoogleARCore/Examples/ComputerVision/Materials/AREdgeDetectionBackgroundMaterial.mat.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 44aa46aeaaf4d46a79e18f3e2da31ccc
-timeCreated: 1512581681
-licenseType: Pro
-NativeFormatImporter:
- externalObjects: {}
- mainObjectFileID: 2100000
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/Examples/ComputerVision/Plugins.meta b/Assets/GoogleARCore/Examples/ComputerVision/Plugins.meta
deleted file mode 100644
index f2d4ad93e..000000000
--- a/Assets/GoogleARCore/Examples/ComputerVision/Plugins.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 5c8e17f48a997417eac4ae975493b6a1
-folderAsset: yes
-timeCreated: 1511980390
-licenseType: Pro
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/Examples/ComputerVision/Plugins/libarcore_camera_utility.so b/Assets/GoogleARCore/Examples/ComputerVision/Plugins/libarcore_camera_utility.so
deleted file mode 100644
index 139eb4d95..000000000
Binary files a/Assets/GoogleARCore/Examples/ComputerVision/Plugins/libarcore_camera_utility.so and /dev/null differ
diff --git a/Assets/GoogleARCore/Examples/ComputerVision/Plugins/libarcore_camera_utility.so.meta b/Assets/GoogleARCore/Examples/ComputerVision/Plugins/libarcore_camera_utility.so.meta
deleted file mode 100644
index 484e574e6..000000000
--- a/Assets/GoogleARCore/Examples/ComputerVision/Plugins/libarcore_camera_utility.so.meta
+++ /dev/null
@@ -1,95 +0,0 @@
-fileFormatVersion: 2
-guid: f10dd41e5f6ea4c76829088acdb03eb3
-timeCreated: 1512072454
-licenseType: Pro
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- - first:
- '': Any
- second:
- enabled: 0
- settings:
- Exclude Android: 0
- Exclude Editor: 1
- Exclude Linux: 1
- Exclude Linux64: 1
- Exclude LinuxUniversal: 1
- Exclude OSXUniversal: 1
- Exclude Win: 1
- Exclude Win64: 1
- - first:
- Android: Android
- second:
- enabled: 1
- settings:
- CPU: ARMv7
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- DefaultValueInitialized: true
- OS: AnyOS
- - first:
- Facebook: Win
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Facebook: Win64
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Linux
- second:
- enabled: 0
- settings:
- CPU: x86
- - first:
- Standalone: Linux64
- second:
- enabled: 0
- settings:
- CPU: x86_64
- - first:
- Standalone: LinuxUniversal
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Standalone: OSXUniversal
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Win
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Win64
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/Examples/ComputerVision/Plugins/src.meta b/Assets/GoogleARCore/Examples/ComputerVision/Plugins/src.meta
deleted file mode 100644
index 3f822d23e..000000000
--- a/Assets/GoogleARCore/Examples/ComputerVision/Plugins/src.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 88691640f915f42f6937d8d0122d69bd
-folderAsset: yes
-timeCreated: 1513277705
-licenseType: Pro
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/Examples/ComputerVision/Plugins/src/README.md b/Assets/GoogleARCore/Examples/ComputerVision/Plugins/src/README.md
deleted file mode 100644
index bb0aeeb7b..000000000
--- a/Assets/GoogleARCore/Examples/ComputerVision/Plugins/src/README.md
+++ /dev/null
@@ -1,32 +0,0 @@
-Google ARCore Camera Utility Plugin Source Code
-================================================
-Copyright (c) 2017 Google Inc. 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.
-You may obtain a copy of the License at
-
-http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-## Overview
-The arcore_camera_unity.zip file contains source code of the libarcore_camera_utility.so
-C library. This library is used to create the Unity plugin for reading image pixels from
-ARCore GPU texture.
-
-## Files Included
-- include/camera_utility.h : header file of the C API interface.
-- include/gl_utility.h : header file of GL utility functions.
-- include/texture_reader.h : header file of C++ API interface.
-- src/camera_utility.cc : implementation of the C API.
-- src/gl_utility.cc : implementation of GL utility functions.
-- src/texture_reader.cc : implementation of C++ API.
-
-## How to Build
-You can build the library by using Google Android NDK(https://developer.android.com/ndk/index.html).
-Google Android NDK can be downloaded from this URL(https://developer.android.com/ndk/downloads/index.html).
\ No newline at end of file
diff --git a/Assets/GoogleARCore/Examples/ComputerVision/Plugins/src/README.md.meta b/Assets/GoogleARCore/Examples/ComputerVision/Plugins/src/README.md.meta
deleted file mode 100644
index 5429e512b..000000000
--- a/Assets/GoogleARCore/Examples/ComputerVision/Plugins/src/README.md.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: fe5fc815b621d4801ac251a35d054ac1
-timeCreated: 1513277715
-licenseType: Pro
-TextScriptImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/Examples/ComputerVision/Plugins/src/arcore_camera_utility.zip b/Assets/GoogleARCore/Examples/ComputerVision/Plugins/src/arcore_camera_utility.zip
deleted file mode 100644
index a77736e07..000000000
Binary files a/Assets/GoogleARCore/Examples/ComputerVision/Plugins/src/arcore_camera_utility.zip and /dev/null differ
diff --git a/Assets/GoogleARCore/Examples/ComputerVision/Plugins/src/arcore_camera_utility.zip.meta b/Assets/GoogleARCore/Examples/ComputerVision/Plugins/src/arcore_camera_utility.zip.meta
deleted file mode 100644
index da5e89a56..000000000
--- a/Assets/GoogleARCore/Examples/ComputerVision/Plugins/src/arcore_camera_utility.zip.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 218bec0cf31a949a18e480486444ca54
-timeCreated: 1513277705
-licenseType: Pro
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/Examples/ComputerVision/Scenes.meta b/Assets/GoogleARCore/Examples/ComputerVision/Scenes.meta
deleted file mode 100644
index b9ff28109..000000000
--- a/Assets/GoogleARCore/Examples/ComputerVision/Scenes.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: ed63ed01b7e4c427d8d897825c5ed5dd
-folderAsset: yes
-timeCreated: 1501206008
-licenseType: Free
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/Examples/ComputerVision/Scenes/ComputerVision.unity b/Assets/GoogleARCore/Examples/ComputerVision/Scenes/ComputerVision.unity
deleted file mode 100644
index e75eb2119..000000000
--- a/Assets/GoogleARCore/Examples/ComputerVision/Scenes/ComputerVision.unity
+++ /dev/null
@@ -1,202 +0,0 @@
-%YAML 1.1
-%TAG !u! tag:unity3d.com,2011:
---- !u!29 &1
-OcclusionCullingSettings:
- m_ObjectHideFlags: 0
- serializedVersion: 2
- m_OcclusionBakeSettings:
- smallestOccluder: 5
- smallestHole: 0.25
- backfaceThreshold: 100
- m_SceneGUID: 00000000000000000000000000000000
- m_OcclusionCullingData: {fileID: 0}
---- !u!104 &2
-RenderSettings:
- m_ObjectHideFlags: 0
- serializedVersion: 8
- m_Fog: 0
- m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
- m_FogMode: 3
- m_FogDensity: 0.01
- m_LinearFogStart: 0
- m_LinearFogEnd: 300
- m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
- m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
- m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
- m_AmbientIntensity: 1
- m_AmbientMode: 0
- m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
- m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
- m_HaloStrength: 0.5
- m_FlareStrength: 1
- m_FlareFadeSpeed: 3
- m_HaloTexture: {fileID: 0}
- m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
- m_DefaultReflectionMode: 0
- m_DefaultReflectionResolution: 128
- m_ReflectionBounces: 1
- m_ReflectionIntensity: 1
- m_CustomReflection: {fileID: 0}
- m_Sun: {fileID: 0}
- m_IndirectSpecularColor: {r: 0.37311947, g: 0.38074005, b: 0.35872722, a: 1}
---- !u!157 &3
-LightmapSettings:
- m_ObjectHideFlags: 0
- serializedVersion: 11
- m_GIWorkflowMode: 0
- m_GISettings:
- serializedVersion: 2
- m_BounceScale: 1
- m_IndirectOutputScale: 1
- m_AlbedoBoost: 1
- m_TemporalCoherenceThreshold: 1
- m_EnvironmentLightingMode: 0
- m_EnableBakedLightmaps: 1
- m_EnableRealtimeLightmaps: 1
- m_LightmapEditorSettings:
- serializedVersion: 9
- m_Resolution: 2
- m_BakeResolution: 40
- m_TextureWidth: 1024
- m_TextureHeight: 1024
- m_AO: 0
- m_AOMaxDistance: 1
- m_CompAOExponent: 1
- m_CompAOExponentDirect: 0
- m_Padding: 2
- m_LightmapParameters: {fileID: 0}
- m_LightmapsBakeMode: 1
- m_TextureCompression: 1
- m_FinalGather: 0
- m_FinalGatherFiltering: 1
- m_FinalGatherRayCount: 256
- m_ReflectionCompression: 2
- m_MixedBakeMode: 2
- m_BakeBackend: 0
- m_PVRSampling: 1
- m_PVRDirectSampleCount: 32
- m_PVRSampleCount: 500
- m_PVRBounces: 2
- m_PVRFilterTypeDirect: 0
- m_PVRFilterTypeIndirect: 0
- m_PVRFilterTypeAO: 0
- m_PVRFilteringMode: 1
- m_PVRCulling: 1
- m_PVRFilteringGaussRadiusDirect: 1
- m_PVRFilteringGaussRadiusIndirect: 5
- m_PVRFilteringGaussRadiusAO: 2
- m_PVRFilteringAtrousPositionSigmaDirect: 0.5
- m_PVRFilteringAtrousPositionSigmaIndirect: 2
- m_PVRFilteringAtrousPositionSigmaAO: 1
- m_LightingDataAsset: {fileID: 0}
- m_UseShadowmask: 1
---- !u!196 &4
-NavMeshSettings:
- serializedVersion: 2
- m_ObjectHideFlags: 0
- m_BuildSettings:
- serializedVersion: 2
- agentTypeID: 0
- agentRadius: 0.5
- agentHeight: 2
- agentSlope: 45
- agentClimb: 0.4
- ledgeDropHeight: 0
- maxJumpAcrossDistance: 0
- minRegionArea: 2
- manualCellSize: 0
- cellSize: 0.16666667
- manualTileSize: 0
- tileSize: 256
- accuratePlacement: 0
- debug:
- m_Flags: 0
- m_NavMeshData: {fileID: 0}
---- !u!1001 &60865845
-Prefab:
- m_ObjectHideFlags: 0
- serializedVersion: 2
- m_Modification:
- m_TransformParent: {fileID: 0}
- m_Modifications:
- - target: {fileID: 4892153982037908, guid: c10877f7cd5764de18d46d7b777d1faa, type: 2}
- propertyPath: m_RootOrder
- value: 0
- objectReference: {fileID: 0}
- - target: {fileID: 114923820857209294, guid: c10877f7cd5764de18d46d7b777d1faa,
- type: 2}
- propertyPath: BackgroundMaterial
- value:
- objectReference: {fileID: 2100000, guid: 44aa46aeaaf4d46a79e18f3e2da31ccc, type: 2}
- - target: {fileID: 114876698896786350, guid: c10877f7cd5764de18d46d7b777d1faa,
- type: 2}
- propertyPath: BackgroundMaterial
- value:
- objectReference: {fileID: 2100000, guid: 44aa46aeaaf4d46a79e18f3e2da31ccc, type: 2}
- m_RemovedComponents: []
- m_ParentPrefab: {fileID: 100100000, guid: c10877f7cd5764de18d46d7b777d1faa, type: 2}
- m_IsPrefabParent: 0
---- !u!114 &517579873 stripped
-MonoBehaviour:
- m_PrefabParentObject: {fileID: 114876698896786350, guid: c10877f7cd5764de18d46d7b777d1faa,
- type: 2}
- m_PrefabInternal: {fileID: 60865845}
- m_Script: {fileID: 11500000, guid: eb172c260d42e4f62945afda50892c0c, type: 3}
---- !u!1 &1465104021
-GameObject:
- m_ObjectHideFlags: 0
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- serializedVersion: 5
- m_Component:
- - component: {fileID: 1465104022}
- - component: {fileID: 1465104023}
- - component: {fileID: 1465104024}
- m_Layer: 0
- m_Name: ComputerVisionController
- m_TagString: Untagged
- m_Icon: {fileID: 0}
- m_NavMeshLayer: 0
- m_StaticEditorFlags: 0
- m_IsActive: 1
---- !u!4 &1465104022
-Transform:
- m_ObjectHideFlags: 0
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 1465104021}
- m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
- m_LocalPosition: {x: 0, y: 0, z: 0}
- m_LocalScale: {x: 1, y: 1, z: 1}
- m_Children: []
- m_Father: {fileID: 0}
- m_RootOrder: 1
- m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
---- !u!114 &1465104023
-MonoBehaviour:
- m_ObjectHideFlags: 0
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 1465104021}
- m_Enabled: 1
- m_EditorHideFlags: 0
- m_Script: {fileID: 11500000, guid: 0471ee42f4eac4098805c8b4aae4875c, type: 3}
- m_Name:
- m_EditorClassIdentifier:
- TextureReaderComponent: {fileID: 1465104024}
- BackgroundRenderer: {fileID: 517579873}
---- !u!114 &1465104024
-MonoBehaviour:
- m_ObjectHideFlags: 0
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_GameObject: {fileID: 1465104021}
- m_Enabled: 1
- m_EditorHideFlags: 0
- m_Script: {fileID: 11500000, guid: b8ba03f2a23f74384ac6625e269b5f50, type: 3}
- m_Name:
- m_EditorClassIdentifier:
- ImageWidth: 1024
- ImageHeight: 512
- ImageSampleMode: 1
- ImageFormat: 1
diff --git a/Assets/GoogleARCore/Examples/ComputerVision/Scenes/ComputerVision.unity.meta b/Assets/GoogleARCore/Examples/ComputerVision/Scenes/ComputerVision.unity.meta
deleted file mode 100644
index 37f9d04e7..000000000
--- a/Assets/GoogleARCore/Examples/ComputerVision/Scenes/ComputerVision.unity.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 5ef0f7f7f2c7b4285b707265348bbffd
-timeCreated: 1512755571
-licenseType: Pro
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/Examples/ComputerVision/Scripts.meta b/Assets/GoogleARCore/Examples/ComputerVision/Scripts.meta
deleted file mode 100644
index 3f3f725df..000000000
--- a/Assets/GoogleARCore/Examples/ComputerVision/Scripts.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 02f1f705271f6408cb81efb900b3b2bb
-folderAsset: yes
-timeCreated: 1501723747
-licenseType: Free
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/Examples/ComputerVision/Scripts/ComputerVisionController.cs b/Assets/GoogleARCore/Examples/ComputerVision/Scripts/ComputerVisionController.cs
deleted file mode 100644
index 0f9b12ab9..000000000
--- a/Assets/GoogleARCore/Examples/ComputerVision/Scripts/ComputerVisionController.cs
+++ /dev/null
@@ -1,221 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCore.TextureReader
-{
- using System;
- using System.Collections.Generic;
- using GoogleARCore;
- using UnityEngine;
- using UnityEngine.Rendering;
-
- ///
- /// Controlls the ComputerVision example.
- ///
- public class ComputerVisionController : MonoBehaviour
- {
- ///
- /// The TextureReader component instance.
- ///
- public TextureReader TextureReaderComponent;
-
- ///
- /// Background renderer to inject our texture into.
- ///
- public ARCoreBackgroundRenderer BackgroundRenderer;
-
- ///
- /// True if the app is in the process of quitting due to an ARCore connection error, otherwise false.
- ///
- private bool m_IsQuitting = false;
-
- ///
- /// Texture created from filtered camera image.
- ///
- private Texture2D m_TextureToRender = null;
- private int m_ImageWidth = 0;
- private int m_ImageHeight = 0;
- private byte[] m_EdgeImage = null;
- private float m_SwipeMomentum = 0.0f;
-
- ///
- /// Start is called on the frame when a script is enabled just before
- /// any of the Update methods is called the first time.
- ///
- public void Start()
- {
- // Registers the TextureReader callback.
- TextureReaderComponent.OnImageAvailableCallback += OnImageAvailable;
- Screen.sleepTimeout = SleepTimeout.NeverSleep;
- }
-
- ///
- /// The Unity Update() method.
- ///
- public void Update()
- {
- if (Input.GetKey(KeyCode.Escape))
- {
- Application.Quit();
- }
-
- _QuitOnConnectionErrors();
- _HandleTouchInput();
- }
-
- ///
- /// TextureReader callback handler.
- ///
- /// The format of the image.
- /// Width of the image, in pixels.
- /// Height of the image, in pixels.
- /// Pointer to raw image buffer.
- /// The size of the image buffer, in bytes.
- public void OnImageAvailable(TextureReaderApi.ImageFormatType format, int width, int height, IntPtr pixelBuffer, int bufferSize)
- {
- if (format != TextureReaderApi.ImageFormatType.ImageFormatGrayscale)
- {
- Debug.Log("No edge detected due to incorrect image format.");
- return;
- }
-
- if (m_TextureToRender == null || m_EdgeImage == null || m_ImageWidth != width || m_ImageHeight != height)
- {
- m_TextureToRender = new Texture2D(width, height, TextureFormat.R8, false, false);
- m_EdgeImage = new byte[width * height];
- m_ImageWidth = width;
- m_ImageHeight = height;
- }
-
- // Detect edges within the image.
- if (EdgeDetector.Detect(m_EdgeImage, pixelBuffer, width, height))
- {
- // Update the rendering texture with the edge image.
- m_TextureToRender.LoadRawTextureData(m_EdgeImage);
- m_TextureToRender.Apply();
- BackgroundRenderer.BackgroundMaterial.SetTexture("_ImageTex", m_TextureToRender);
- }
- }
-
- ///
- /// Show an Android toast message.
- ///
- /// Message string to show in the toast.
- private static void _ShowAndroidToastMessage(string message)
- {
- AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
- AndroidJavaObject unityActivity = unityPlayer.GetStatic("currentActivity");
-
- if (unityActivity != null)
- {
- AndroidJavaClass toastClass = new AndroidJavaClass("android.widget.Toast");
- unityActivity.Call("runOnUiThread", new AndroidJavaRunnable(() =>
- {
- AndroidJavaObject toastObject = toastClass.CallStatic("makeText", unityActivity,
- message, 0);
- toastObject.Call("show");
- }));
- }
- }
-
- ///
- /// Handles detecting touch input to control the edge detection effect.
- ///
- private void _HandleTouchInput()
- {
- const float SWIPE_SCALING_FACTOR = 1.15f;
- const float INTERTIAL_CANCELING_FACTOR = 2.0f;
- const float MINIMUM_MOMENTUM = .01f;
-
- if (Input.touchCount == 0)
- {
- m_SwipeMomentum /= INTERTIAL_CANCELING_FACTOR;
- }
- else
- {
- m_SwipeMomentum = _GetTouchDelta();
- m_SwipeMomentum *= SWIPE_SCALING_FACTOR;
- }
-
- if (Mathf.Abs(m_SwipeMomentum) < MINIMUM_MOMENTUM)
- {
- m_SwipeMomentum = 0;
- }
-
- var overlayPercentage = BackgroundRenderer.BackgroundMaterial.GetFloat("_OverlayPercentage");
- overlayPercentage -= m_SwipeMomentum;
- BackgroundRenderer.BackgroundMaterial.SetFloat("_OverlayPercentage", Mathf.Clamp(overlayPercentage, 0.0f, 1.0f));
- }
-
- ///
- /// Gets the delta touch as a percentage of the screen.
- ///
- /// The delta touch as a percentage of the screen.
- private float _GetTouchDelta()
- {
- switch (Screen.orientation)
- {
- case ScreenOrientation.LandscapeLeft:
- return -Input.GetTouch(0).deltaPosition.x / Screen.width;
- case ScreenOrientation.LandscapeRight:
- return Input.GetTouch(0).deltaPosition.x / Screen.width;
- case ScreenOrientation.Portrait:
- return Input.GetTouch(0).deltaPosition.y / Screen.height;
- case ScreenOrientation.PortraitUpsideDown:
- return -Input.GetTouch(0).deltaPosition.y / Screen.height;
- default:
- return 0;
- }
- }
-
- ///
- /// Actually quit the application.
- ///
- private void DoQuit()
- {
- Application.Quit();
- }
-
- ///
- /// Quit the application if there was a connection error for the ARCore session.
- ///
- private void _QuitOnConnectionErrors()
- {
- if (m_IsQuitting)
- {
- return;
- }
-
- // Quit if ARCore was unable to connect and give Unity some time for the toast to appear.
- if (Session.Status == SessionStatus.ErrorPermissionNotGranted)
- {
- _ShowAndroidToastMessage("Camera permission is needed to run this application.");
- m_IsQuitting = true;
- Invoke("DoQuit", 0.5f);
- }
- else if (Session.Status == SessionStatus.FatalError)
- {
- _ShowAndroidToastMessage("ARCore encountered a problem connecting. Please start the app again.");
- m_IsQuitting = true;
- Invoke("DoQuit", 0.5f);
- }
- }
- }
-}
diff --git a/Assets/GoogleARCore/Examples/ComputerVision/Scripts/ComputerVisionController.cs.meta b/Assets/GoogleARCore/Examples/ComputerVision/Scripts/ComputerVisionController.cs.meta
deleted file mode 100644
index 820912a00..000000000
--- a/Assets/GoogleARCore/Examples/ComputerVision/Scripts/ComputerVisionController.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 0471ee42f4eac4098805c8b4aae4875c
-timeCreated: 1512755448
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/Examples/ComputerVision/Scripts/EdgeDetector.cs b/Assets/GoogleARCore/Examples/ComputerVision/Scripts/EdgeDetector.cs
deleted file mode 100644
index 13be4ec1b..000000000
--- a/Assets/GoogleARCore/Examples/ComputerVision/Scripts/EdgeDetector.cs
+++ /dev/null
@@ -1,114 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-namespace GoogleARCore.TextureReader
-{
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Text;
- using UnityEngine;
-
- ///
- /// Detects edges from input grayscale image.
- ///
- public class EdgeDetector
- {
- private static byte[] s_ImageBuffer = new byte[0];
- private static int s_ImageBufferSize = 0;
-
- ///
- /// Detects edges from input grayscale image.
- ///
- /// Output image buffer, which has a size of width * height.
- /// Pointer to raw image buffer, assuming one byte per pixel.
- /// Width of the input image, in pixels.
- /// Height of the input image, in pixels.
- /// False if the outputImage buffer is too small, True otherwise.
- public static bool Detect(byte[] outputImage, IntPtr pixelBuffer, int width, int height)
- {
- if (outputImage.Length < width * height)
- {
- Debug.Log("Input buffer is too small!");
- return false;
- }
-
- Sobel(outputImage, pixelBuffer, width, height);
-
- return true;
- }
-
- private static void Sobel(byte[] outputImage, IntPtr inputImage, int width, int height)
- {
- // Adjust buffer size if necessary.
- int bufferSize = width * height;
- if (bufferSize != s_ImageBufferSize || s_ImageBuffer.Length == 0)
- {
- s_ImageBufferSize = bufferSize;
- s_ImageBuffer = new byte[bufferSize];
- }
-
- // Move raw data into managed buffer.
- System.Runtime.InteropServices.Marshal.Copy(inputImage, s_ImageBuffer, 0, bufferSize);
-
- // Detect edges.
- int threshold = 128 * 128;
-
- for (int j = 1; j < height - 1; j++)
- {
- for (int i = 1; i < width - 1; i++)
- {
- // Offset of the pixel at [i, j] of the input image.
- int offset = (j * width) + i;
-
- // Neighbour pixels around the pixel at [i, j].
- int a00 = s_ImageBuffer[offset - width - 1];
- int a01 = s_ImageBuffer[offset - width];
- int a02 = s_ImageBuffer[offset - width + 1];
- int a10 = s_ImageBuffer[offset - 1];
- int a12 = s_ImageBuffer[offset + 1];
- int a20 = s_ImageBuffer[offset + width - 1];
- int a21 = s_ImageBuffer[offset + width];
- int a22 = s_ImageBuffer[offset + width + 1];
-
- // Sobel X filter:
- // -1, 0, 1,
- // -2, 0, 2,
- // -1, 0, 1
- int xSum = -a00 - (2 * a10) - a20 + a02 + (2 * a12) + a22;
-
- // Sobel Y filter:
- // 1, 2, 1,
- // 0, 0, 0,
- // -1, -2, -1
- int ySum = a00 + (2 * a01) + a02 - a20 - (2 * a21) - a22;
-
- if ((xSum * xSum) + (ySum * ySum) > threshold)
- {
- outputImage[(j * width) + i] = 0xFF;
- }
- else
- {
- outputImage[(j * width) + i] = 0x1F;
- }
- }
- }
- }
- }
-}
diff --git a/Assets/GoogleARCore/Examples/ComputerVision/Scripts/EdgeDetector.cs.meta b/Assets/GoogleARCore/Examples/ComputerVision/Scripts/EdgeDetector.cs.meta
deleted file mode 100644
index 564dbbec1..000000000
--- a/Assets/GoogleARCore/Examples/ComputerVision/Scripts/EdgeDetector.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 4efa5fefaf4064b6f944e9c9d1803813
-timeCreated: 1512175258
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/Examples/ComputerVision/Scripts/TextureReader.cs b/Assets/GoogleARCore/Examples/ComputerVision/Scripts/TextureReader.cs
deleted file mode 100644
index fa36c610f..000000000
--- a/Assets/GoogleARCore/Examples/ComputerVision/Scripts/TextureReader.cs
+++ /dev/null
@@ -1,214 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-namespace GoogleARCore.TextureReader
-{
- using System;
- using System.Collections.Generic;
- using GoogleARCore;
- using UnityEngine;
- using UnityEngine.Rendering;
-
- ///
- /// Component that provides CPU access to ArCore GPU texture.
- ///
- public class TextureReader : MonoBehaviour
- {
- ///
- /// Output image width, in pixels.
- ///
- public int ImageWidth = k_ARCoreTextureWidth;
-
- ///
- /// Output image height, in pixels.
- ///
- public int ImageHeight = k_ARCoreTextureHeight;
-
- ///
- /// Output image sampling option.
- ///
- public SampleMode ImageSampleMode = SampleMode.CoverFullViewport;
-
- ///
- /// Output image format.
- ///
- public TextureReaderApi.ImageFormatType ImageFormat = TextureReaderApi.ImageFormatType.ImageFormatGrayscale;
-
- private const int k_ARCoreTextureWidth = 1920;
- private const int k_ARCoreTextureHeight = 1080;
-
- private TextureReaderApi m_TextureReaderApi = null;
-
- private CommandType m_Command = CommandType.None;
-
- private int m_ImageBufferIndex = -1;
-
- ///
- /// Callback function type for receiving the output images.
- ///
- /// The format of the image.
- /// The width of the image, in pixels.
- /// The height of the image, in pixels.
- /// The pointer to the raw buffer of the image pixels.
- /// The size of the image buffer, in bytes.
- public delegate void OnImageAvailableCallbackFunc(TextureReaderApi.ImageFormatType format, int width, int height, IntPtr pixelBuffer, int bufferSize);
-
- ///
- /// Callback function handle for receiving the output images.
- ///
- public event OnImageAvailableCallbackFunc OnImageAvailableCallback = null;
-
- ///
- /// Options to sample the output image.
- ///
- public enum SampleMode
- {
- ///
- /// Keeps the same aspect ratio as the GPU texture. Crop image if necessary.
- ///
- KeepAspectRatio,
-
- ///
- /// Samples the entire texture and does not crop. The aspect ratio may be different from the texture aspect ratio.
- ///
- CoverFullViewport
- }
-
- private enum CommandType
- {
- None,
- ProcessNextFrame,
- Create,
- Reset,
- ReleasePreviousBuffer
- }
-
- ///
- /// Start is called on the frame when a script is enabled just before
- /// any of the Update methods is called the first time.
- ///
- public void Start()
- {
- if (m_TextureReaderApi == null)
- {
- m_TextureReaderApi = new TextureReaderApi();
- m_Command = CommandType.Create;
- m_ImageBufferIndex = -1;
- }
- }
-
- ///
- /// This function should be called after any public property is changed.
- ///
- public void Apply()
- {
- m_Command = CommandType.Reset;
- }
-
- ///
- /// Update is called every frame, if the MonoBehaviour is enabled.
- ///
- public void Update()
- {
- if (!enabled)
- {
- return;
- }
-
- // Process command.
- switch (m_Command)
- {
- case CommandType.Create:
- {
- m_TextureReaderApi.Create(ImageFormat, ImageWidth, ImageHeight, ImageSampleMode == SampleMode.KeepAspectRatio);
- break;
- }
-
- case CommandType.Reset:
- {
- m_TextureReaderApi.ReleaseFrame(m_ImageBufferIndex);
- m_TextureReaderApi.Destroy();
- m_TextureReaderApi.Create(ImageFormat, ImageWidth, ImageHeight, ImageSampleMode == SampleMode.KeepAspectRatio);
- m_ImageBufferIndex = -1;
- break;
- }
-
- case CommandType.ReleasePreviousBuffer:
- {
- // Clear previously used buffer, and submits a new request.
- m_TextureReaderApi.ReleaseFrame(m_ImageBufferIndex);
- m_ImageBufferIndex = -1;
- break;
- }
-
- case CommandType.ProcessNextFrame:
- {
- if (m_ImageBufferIndex >= 0)
- {
- // Get image pixels from previously submitted request.
- int bufferSize = 0;
- IntPtr pixelBuffer = m_TextureReaderApi.AcquireFrame(m_ImageBufferIndex, ref bufferSize);
-
- if (pixelBuffer != IntPtr.Zero && OnImageAvailableCallback != null)
- {
- OnImageAvailableCallback(ImageFormat, ImageWidth, ImageHeight, pixelBuffer, bufferSize);
- }
-
- // Release the texture reader internal buffer.
- m_TextureReaderApi.ReleaseFrame(m_ImageBufferIndex);
- }
-
- break;
- }
-
- case CommandType.None:
- default:
- break;
- }
-
- // Submit reading request for the next frame.
- int textureId = Frame.CameraImage.Texture.GetNativeTexturePtr().ToInt32();
- m_ImageBufferIndex = m_TextureReaderApi.SubmitFrame(textureId, k_ARCoreTextureWidth, k_ARCoreTextureHeight);
-
- // Set next command.
- m_Command = CommandType.ProcessNextFrame;
- }
-
- ///
- /// This function is called when the MonoBehaviour will be destroyed.
- ///
- private void OnDestroy()
- {
- if (m_TextureReaderApi != null)
- {
- m_TextureReaderApi.Destroy();
- m_TextureReaderApi = null;
- }
- }
-
- ///
- /// This function is called when the behaviour becomes disabled or inactive.
- ///
- private void OnDisable()
- {
- // Force to release previously used buffer.
- m_Command = CommandType.ReleasePreviousBuffer;
- }
- }
-}
\ No newline at end of file
diff --git a/Assets/GoogleARCore/Examples/ComputerVision/Scripts/TextureReader.cs.meta b/Assets/GoogleARCore/Examples/ComputerVision/Scripts/TextureReader.cs.meta
deleted file mode 100644
index e3a9262cf..000000000
--- a/Assets/GoogleARCore/Examples/ComputerVision/Scripts/TextureReader.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: b8ba03f2a23f74384ac6625e269b5f50
-timeCreated: 1512525798
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/Examples/ComputerVision/Scripts/TextureReaderApi.cs b/Assets/GoogleARCore/Examples/ComputerVision/Scripts/TextureReaderApi.cs
deleted file mode 100644
index 8d53ebbc2..000000000
--- a/Assets/GoogleARCore/Examples/ComputerVision/Scripts/TextureReaderApi.cs
+++ /dev/null
@@ -1,130 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-namespace GoogleARCore.TextureReader
-{
- using System;
- using System.Collections.Generic;
- using System.Diagnostics.CodeAnalysis;
- using System.Runtime.InteropServices;
- using GoogleARCore;
- using UnityEngine;
-
- ///
- /// API that provides CPU access to GPU texture.
- ///
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public class TextureReaderApi
- {
- ///
- /// Image format type.
- ///
- public enum ImageFormatType
- {
- ///
- /// Color image pixel format. Four bytes per pixel, in the order of R, G, B, and A.
- ///
- ImageFormatColor = 0,
-
- ///
- /// Grayscale image pixel format. One byte per pixel.
- ///
- ImageFormatGrayscale = 1
- }
-
- ///
- /// Creates the texture reader instance.
- ///
- /// Format of the output image pixel. Can be either eImageFormat_RGBA or eImageFormat_I8.
- /// Width of the output image, in pixels.
- /// Height of the output image, in pixels.
- /// Indicate whether or not to keep aspect ratio. If true, the output image may be cropped
- /// if the image aspect ratio is different from the texture aspect ratio. If false, the output image covers the entire
- /// texture scope and no cropping is applied.
- public void Create(ImageFormatType format, int width, int height, bool keepAspectRatio)
- {
- ExternApi.TextureReader_create((int)format, width, height, keepAspectRatio);
- }
-
- ///
- /// Destroys the texture reader instance and release internal resources.
- ///
- public void Destroy()
- {
- ExternApi.TextureReader_destroy();
- }
-
- ///
- /// Submits a texture reading request to GPU driver. The result of this request will be available in the next
- /// frame through AcquireFrame().
- ///
- /// The GLES texture id of the input camera texture. It has to be created as OES texture.
- /// Width of the texture, in pixels.
- /// Height of the texture, in pixels.
- /// The frame buffer index, which can be used to retrieve the frame later through AcquireFrame(). -1 if the submission fails.
- public int SubmitFrame(int textureId, int textureWidth, int textureHeight)
- {
- int bufferIndex = ExternApi.TextureReader_submitFrame(textureId, textureWidth, textureHeight);
- GL.InvalidateState();
- return bufferIndex;
- }
-
- ///
- /// Acquires the output image pixels from a previous reading request.
- ///
- /// The buffer index required by previous call to SubmitFrame().
- /// The size of the output image pixel buffer, in bytes.
- /// The pointer to the raw buffer of the output image. null if fails.
- public IntPtr AcquireFrame(int bufferIndex, ref int bufferSize)
- {
- IntPtr pixelBuffer = ExternApi.TextureReader_acquireFrame(bufferIndex, ref bufferSize);
- return pixelBuffer;
- }
-
- ///
- /// Releases a previously used frame buffer.
- ///
- /// The buffer index required by previous call to SubmitFrame().
- public void ReleaseFrame(int bufferIndex)
- {
- ExternApi.TextureReader_releaseFrame(bufferIndex);
- }
-
- private struct ExternApi
- {
- public const string ARCoreCameraUtilityAPI = "arcore_camera_utility";
-
- [DllImport(ARCoreCameraUtilityAPI)]
- public static extern void TextureReader_create(int format, int width, int height, bool keepAspectRatio);
-
- [DllImport(ARCoreCameraUtilityAPI)]
- public static extern void TextureReader_destroy();
-
- [DllImport(ARCoreCameraUtilityAPI)]
- public static extern int TextureReader_submitFrame(int textureId, int textureWidth, int textureHeight);
-
- [DllImport(ARCoreCameraUtilityAPI)]
- public static extern IntPtr TextureReader_acquireFrame(int bufferIndex, ref int bufferSize);
-
- [DllImport(ARCoreCameraUtilityAPI)]
- public static extern void TextureReader_releaseFrame(int bufferIndex);
- }
- }
-}
\ No newline at end of file
diff --git a/Assets/GoogleARCore/Examples/ComputerVision/Scripts/TextureReaderApi.cs.meta b/Assets/GoogleARCore/Examples/ComputerVision/Scripts/TextureReaderApi.cs.meta
deleted file mode 100644
index 6980ec53a..000000000
--- a/Assets/GoogleARCore/Examples/ComputerVision/Scripts/TextureReaderApi.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: b6c5057504d004df59cb05eeea4454ae
-timeCreated: 1511999811
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/Prefabs.meta b/Assets/GoogleARCore/Prefabs.meta
deleted file mode 100644
index 8d3121051..000000000
--- a/Assets/GoogleARCore/Prefabs.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: a00108229b1e04acd805e57abcdff773
-folderAsset: yes
-timeCreated: 1492558533
-licenseType: Pro
-DefaultImporter:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/Prefabs/ARCore Device.prefab b/Assets/GoogleARCore/Prefabs/ARCore Device.prefab
deleted file mode 100644
index b1f1c63bd..000000000
--- a/Assets/GoogleARCore/Prefabs/ARCore Device.prefab
+++ /dev/null
@@ -1,150 +0,0 @@
-%YAML 1.1
-%TAG !u! tag:unity3d.com,2011:
---- !u!1001 &100100000
-Prefab:
- m_ObjectHideFlags: 1
- serializedVersion: 2
- m_Modification:
- m_TransformParent: {fileID: 0}
- m_Modifications: []
- m_RemovedComponents: []
- m_ParentPrefab: {fileID: 0}
- m_RootGameObject: {fileID: 1772147192650458}
- m_IsPrefabParent: 1
---- !u!1 &1637996540812124
-GameObject:
- m_ObjectHideFlags: 0
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 100100000}
- serializedVersion: 5
- m_Component:
- - component: {fileID: 4497055787654456}
- - component: {fileID: 20155940112608238}
- - component: {fileID: 114963366853050710}
- - component: {fileID: 114876698896786350}
- m_Layer: 0
- m_Name: First Person Camera
- m_TagString: Untagged
- m_Icon: {fileID: 0}
- m_NavMeshLayer: 0
- m_StaticEditorFlags: 0
- m_IsActive: 1
---- !u!1 &1772147192650458
-GameObject:
- m_ObjectHideFlags: 0
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 100100000}
- serializedVersion: 5
- m_Component:
- - component: {fileID: 4442908887562770}
- - component: {fileID: 114451889682527732}
- m_Layer: 0
- m_Name: ARCore Device
- m_TagString: Untagged
- m_Icon: {fileID: 0}
- m_NavMeshLayer: 0
- m_StaticEditorFlags: 0
- m_IsActive: 1
---- !u!4 &4442908887562770
-Transform:
- m_ObjectHideFlags: 1
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 100100000}
- m_GameObject: {fileID: 1772147192650458}
- m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
- m_LocalPosition: {x: 0, y: 0, z: 0}
- m_LocalScale: {x: 1, y: 1, z: 1}
- m_Children:
- - {fileID: 4497055787654456}
- m_Father: {fileID: 0}
- m_RootOrder: 0
- m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
---- !u!4 &4497055787654456
-Transform:
- m_ObjectHideFlags: 1
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 100100000}
- m_GameObject: {fileID: 1637996540812124}
- m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
- m_LocalPosition: {x: 0, y: 0, z: 0}
- m_LocalScale: {x: 1, y: 1, z: 1}
- m_Children: []
- m_Father: {fileID: 4442908887562770}
- m_RootOrder: 0
- m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
---- !u!20 &20155940112608238
-Camera:
- m_ObjectHideFlags: 1
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 100100000}
- m_GameObject: {fileID: 1637996540812124}
- m_Enabled: 1
- serializedVersion: 2
- m_ClearFlags: 2
- m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
- m_NormalizedViewPortRect:
- serializedVersion: 2
- x: 0
- y: 0
- width: 1
- height: 1
- near clip plane: 0.05
- far clip plane: 200
- field of view: 60
- orthographic: 0
- orthographic size: 5
- m_Depth: 0
- m_CullingMask:
- serializedVersion: 2
- m_Bits: 4294967295
- m_RenderingPath: -1
- m_TargetTexture: {fileID: 0}
- m_TargetDisplay: 0
- m_TargetEye: 3
- m_HDR: 1
- m_AllowMSAA: 1
- m_AllowDynamicResolution: 0
- m_ForceIntoRT: 0
- m_OcclusionCulling: 1
- m_StereoConvergence: 10
- m_StereoSeparation: 0.022
---- !u!114 &114451889682527732
-MonoBehaviour:
- m_ObjectHideFlags: 1
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 100100000}
- m_GameObject: {fileID: 1772147192650458}
- m_Enabled: 1
- m_EditorHideFlags: 0
- m_Script: {fileID: 11500000, guid: d4ca0c6a3af6b4635b7e98c6ea0a0cf9, type: 3}
- m_Name:
- m_EditorClassIdentifier:
- SessionConfig: {fileID: 11400000, guid: 9586a84d6c32f46b6ab7aeb6042f160d, type: 2}
---- !u!114 &114876698896786350
-MonoBehaviour:
- m_ObjectHideFlags: 1
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 100100000}
- m_GameObject: {fileID: 1637996540812124}
- m_Enabled: 1
- m_EditorHideFlags: 0
- m_Script: {fileID: 11500000, guid: eb172c260d42e4f62945afda50892c0c, type: 3}
- m_Name:
- m_EditorClassIdentifier:
- BackgroundMaterial: {fileID: 2100000, guid: 03ad0130a037647aeb60218f61aca114, type: 2}
---- !u!114 &114963366853050710
-MonoBehaviour:
- m_ObjectHideFlags: 1
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 100100000}
- m_GameObject: {fileID: 1637996540812124}
- m_Enabled: 1
- m_EditorHideFlags: 0
- m_Script: {fileID: 1742909100, guid: 3a84de5cd0624681b6b6dcd8921d912a, type: 3}
- m_Name:
- m_EditorClassIdentifier:
- m_Device: 0
- m_PoseSource: 6
- m_TrackingType: 0
- m_UpdateType: 2
- m_UseRelativeTransform: 1
diff --git a/Assets/GoogleARCore/Prefabs/ARCore Device.prefab.meta b/Assets/GoogleARCore/Prefabs/ARCore Device.prefab.meta
deleted file mode 100644
index 2b3afe23b..000000000
--- a/Assets/GoogleARCore/Prefabs/ARCore Device.prefab.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: c10877f7cd5764de18d46d7b777d1faa
-timeCreated: 1501460862
-licenseType: Free
-NativeFormatImporter:
- externalObjects: {}
- mainObjectFileID: 100100000
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/Prefabs/Environmental Light.prefab b/Assets/GoogleARCore/Prefabs/Environmental Light.prefab
deleted file mode 100644
index f61b71f31..000000000
--- a/Assets/GoogleARCore/Prefabs/Environmental Light.prefab
+++ /dev/null
@@ -1,53 +0,0 @@
-%YAML 1.1
-%TAG !u! tag:unity3d.com,2011:
---- !u!1001 &100100000
-Prefab:
- m_ObjectHideFlags: 1
- serializedVersion: 2
- m_Modification:
- m_TransformParent: {fileID: 0}
- m_Modifications: []
- m_RemovedComponents: []
- m_ParentPrefab: {fileID: 0}
- m_RootGameObject: {fileID: 1248447649449928}
- m_IsPrefabParent: 1
---- !u!1 &1248447649449928
-GameObject:
- m_ObjectHideFlags: 0
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 100100000}
- serializedVersion: 5
- m_Component:
- - component: {fileID: 4461716624848968}
- - component: {fileID: 114136752755502098}
- m_Layer: 0
- m_Name: Environmental Light
- m_TagString: Untagged
- m_Icon: {fileID: 0}
- m_NavMeshLayer: 0
- m_StaticEditorFlags: 0
- m_IsActive: 1
---- !u!4 &4461716624848968
-Transform:
- m_ObjectHideFlags: 1
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 100100000}
- m_GameObject: {fileID: 1248447649449928}
- m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
- m_LocalPosition: {x: 0, y: 0, z: 0}
- m_LocalScale: {x: 1, y: 1, z: 1}
- m_Children: []
- m_Father: {fileID: 0}
- m_RootOrder: 0
- m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
---- !u!114 &114136752755502098
-MonoBehaviour:
- m_ObjectHideFlags: 1
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 100100000}
- m_GameObject: {fileID: 1248447649449928}
- m_Enabled: 1
- m_EditorHideFlags: 0
- m_Script: {fileID: 11500000, guid: 92a4cf446a0c7334aaceb5457be27894, type: 3}
- m_Name:
- m_EditorClassIdentifier:
diff --git a/Assets/GoogleARCore/Prefabs/Environmental Light.prefab.meta b/Assets/GoogleARCore/Prefabs/Environmental Light.prefab.meta
deleted file mode 100644
index 9b0bf7867..000000000
--- a/Assets/GoogleARCore/Prefabs/Environmental Light.prefab.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: cf498fc35b538884db557f7a9a2c0ef9
-timeCreated: 1512062703
-licenseType: Pro
-NativeFormatImporter:
- externalObjects: {}
- mainObjectFileID: 0
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK.meta b/Assets/GoogleARCore/SDK.meta
deleted file mode 100644
index f9de22ba7..000000000
--- a/Assets/GoogleARCore/SDK.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 84e45386d8da3497591c38deb2bccd02
-folderAsset: yes
-timeCreated: 1502400656
-licenseType: Free
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/InstantPreview.meta b/Assets/GoogleARCore/SDK/InstantPreview.meta
deleted file mode 100644
index 4a8208577..000000000
--- a/Assets/GoogleARCore/SDK/InstantPreview.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: e1e9a08d000a446c9ad506ecb3a4d083
-folderAsset: yes
-timeCreated: 1513969093
-licenseType: Pro
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/InstantPreview/Plugins.meta b/Assets/GoogleARCore/SDK/InstantPreview/Plugins.meta
deleted file mode 100644
index 6d4a6474e..000000000
--- a/Assets/GoogleARCore/SDK/InstantPreview/Plugins.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: ede998a9371e74aa6a759743f41b3eb6
-folderAsset: yes
-timeCreated: 1513969093
-licenseType: Pro
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64.meta b/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64.meta
deleted file mode 100644
index ed36e8810..000000000
--- a/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 42098948be8564f678777d26e6906df3
-folderAsset: yes
-timeCreated: 1513969093
-licenseType: Pro
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64/instant_preview_shared.dll b/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64/instant_preview_shared.dll
deleted file mode 100644
index 2e6e5f7e4..000000000
Binary files a/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64/instant_preview_shared.dll and /dev/null differ
diff --git a/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64/instant_preview_shared.dll.meta b/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64/instant_preview_shared.dll.meta
deleted file mode 100644
index aa02256a0..000000000
--- a/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64/instant_preview_shared.dll.meta
+++ /dev/null
@@ -1,95 +0,0 @@
-fileFormatVersion: 2
-guid: 3a5f7d59b4b729446a1d2a9999f62bdb
-timeCreated: 1513200317
-licenseType: Pro
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- - first:
- '': Any
- second:
- enabled: 0
- settings:
- Exclude Android: 1
- Exclude Editor: 0
- Exclude Linux: 1
- Exclude Linux64: 1
- Exclude LinuxUniversal: 1
- Exclude OSXUniversal: 1
- Exclude Win: 1
- Exclude Win64: 1
- - first:
- Android: Android
- second:
- enabled: 0
- settings:
- CPU: ARMv7
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 1
- settings:
- CPU: x86_64
- DefaultValueInitialized: true
- OS: Windows
- - first:
- Facebook: Win
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Facebook: Win64
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Linux
- second:
- enabled: 0
- settings:
- CPU: x86
- - first:
- Standalone: Linux64
- second:
- enabled: 0
- settings:
- CPU: x86_64
- - first:
- Standalone: LinuxUniversal
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Standalone: OSXUniversal
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Win
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Win64
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64/instant_preview_unity_plugin.bundle.meta b/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64/instant_preview_unity_plugin.bundle.meta
deleted file mode 100644
index 0683b5e74..000000000
--- a/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64/instant_preview_unity_plugin.bundle.meta
+++ /dev/null
@@ -1,101 +0,0 @@
-fileFormatVersion: 2
-guid: 1785ef67a37b1402f8f80e1f0658e486
-folderAsset: yes
-timeCreated: 1515110710
-licenseType: Pro
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- - first:
- '': Any
- second:
- enabled: 0
- settings:
- Exclude Editor: 0
- Exclude Linux: 1
- Exclude Linux64: 1
- Exclude LinuxUniversal: 1
- Exclude OSXUniversal: 1
- Exclude Win: 1
- Exclude Win64: 1
- - first:
- '': OSXIntel
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- '': OSXIntel64
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 1
- settings:
- CPU: x86_64
- DefaultValueInitialized: true
- OS: OSX
- - first:
- Facebook: Win
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Facebook: Win64
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Linux
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Standalone: Linux64
- second:
- enabled: 0
- settings:
- CPU: x86_64
- - first:
- Standalone: LinuxUniversal
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Standalone: OSXUniversal
- second:
- enabled: 0
- settings:
- CPU: x86_64
- - first:
- Standalone: Win
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Standalone: Win64
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64/instant_preview_unity_plugin.bundle/Contents.meta b/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64/instant_preview_unity_plugin.bundle/Contents.meta
deleted file mode 100644
index cdd5fcc29..000000000
--- a/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64/instant_preview_unity_plugin.bundle/Contents.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: c22c793c4b5f447bbb532e92cb93d5ac
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64/instant_preview_unity_plugin.bundle/Contents/MacOS.meta b/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64/instant_preview_unity_plugin.bundle/Contents/MacOS.meta
deleted file mode 100644
index ff6f0ebec..000000000
--- a/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64/instant_preview_unity_plugin.bundle/Contents/MacOS.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 33d076be2f74340b98cb58cefe9122f7
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64/instant_preview_unity_plugin.bundle/Contents/MacOS/instant_preview_unity_plugin b/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64/instant_preview_unity_plugin.bundle/Contents/MacOS/instant_preview_unity_plugin
deleted file mode 100644
index 5e21d15e5..000000000
Binary files a/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64/instant_preview_unity_plugin.bundle/Contents/MacOS/instant_preview_unity_plugin and /dev/null differ
diff --git a/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64/instant_preview_unity_plugin.bundle/Contents/MacOS/instant_preview_unity_plugin.meta b/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64/instant_preview_unity_plugin.bundle/Contents/MacOS/instant_preview_unity_plugin.meta
deleted file mode 100644
index 9eab1b004..000000000
--- a/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64/instant_preview_unity_plugin.bundle/Contents/MacOS/instant_preview_unity_plugin.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 27a7f7613c41541ef8517d1b5390962b
-timeCreated: 1516418595
-licenseType: Pro
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64/instant_preview_unity_plugin.bundle/Contents/MacOS/libinstant_preview_shared.dylib b/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64/instant_preview_unity_plugin.bundle/Contents/MacOS/libinstant_preview_shared.dylib
deleted file mode 100644
index a2c5a41e0..000000000
Binary files a/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64/instant_preview_unity_plugin.bundle/Contents/MacOS/libinstant_preview_shared.dylib and /dev/null differ
diff --git a/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64/instant_preview_unity_plugin.bundle/Contents/MacOS/libinstant_preview_shared.dylib.meta b/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64/instant_preview_unity_plugin.bundle/Contents/MacOS/libinstant_preview_shared.dylib.meta
deleted file mode 100644
index 481ccf42d..000000000
--- a/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64/instant_preview_unity_plugin.bundle/Contents/MacOS/libinstant_preview_shared.dylib.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 9a49dee3272c24e7794351bb17e92bd3
-timeCreated: 1516418595
-licenseType: Pro
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64/instant_preview_unity_plugin.dll b/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64/instant_preview_unity_plugin.dll
deleted file mode 100644
index 06e205666..000000000
Binary files a/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64/instant_preview_unity_plugin.dll and /dev/null differ
diff --git a/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64/instant_preview_unity_plugin.dll.meta b/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64/instant_preview_unity_plugin.dll.meta
deleted file mode 100644
index 54fbaede5..000000000
--- a/Assets/GoogleARCore/SDK/InstantPreview/Plugins/x86_64/instant_preview_unity_plugin.dll.meta
+++ /dev/null
@@ -1,95 +0,0 @@
-fileFormatVersion: 2
-guid: d80cb1919279b7348924bc747e2ada70
-timeCreated: 1513200317
-licenseType: Pro
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- - first:
- '': Any
- second:
- enabled: 0
- settings:
- Exclude Android: 1
- Exclude Editor: 0
- Exclude Linux: 1
- Exclude Linux64: 1
- Exclude LinuxUniversal: 1
- Exclude OSXUniversal: 1
- Exclude Win: 1
- Exclude Win64: 1
- - first:
- Android: Android
- second:
- enabled: 0
- settings:
- CPU: ARMv7
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 1
- settings:
- CPU: x86_64
- DefaultValueInitialized: true
- OS: Windows
- - first:
- Facebook: Win
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Facebook: Win64
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Linux
- second:
- enabled: 0
- settings:
- CPU: x86
- - first:
- Standalone: Linux64
- second:
- enabled: 0
- settings:
- CPU: x86_64
- - first:
- Standalone: LinuxUniversal
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Standalone: OSXUniversal
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Win
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Win64
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/InstantPreview/Scripts.meta b/Assets/GoogleARCore/SDK/InstantPreview/Scripts.meta
deleted file mode 100644
index c1960e641..000000000
--- a/Assets/GoogleARCore/SDK/InstantPreview/Scripts.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: a10b012db03ac404a87dcb0519846527
-folderAsset: yes
-timeCreated: 1513969093
-licenseType: Pro
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/InstantPreview/Scripts/InstantPreviewInput.cs b/Assets/GoogleARCore/SDK/InstantPreview/Scripts/InstantPreviewInput.cs
deleted file mode 100644
index f628d10a7..000000000
--- a/Assets/GoogleARCore/SDK/InstantPreview/Scripts/InstantPreviewInput.cs
+++ /dev/null
@@ -1,186 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCore
-{
- using System;
- using System.Diagnostics.CodeAnalysis;
- using System.Runtime.InteropServices;
- using GoogleARCoreInternal;
- using UnityEngine;
-
- ///
- /// Helper class that provides touch input in lieu of Input.GetTouch when
- /// running the Unity Editor.
- ///
- public static class InstantPreviewInput
- {
- private static Touch[] s_Touches = new Touch[0];
-
- ///
- /// Gets the available touch inputs from Instant Preview since the last
- /// update.
- ///
- [SuppressMessage("UnityRules.UnityStyleRules", "US1000:FieldsMustBeUpperCamelCase",
- Justification = "Overridden field.")]
- public static Touch[] touches
- {
- get
- {
- return s_Touches;
- }
- }
-
- ///
- /// Gets the number of touches available from Instant preview since the
- /// last update.
- ///
- [SuppressMessage("UnityRules.UnityStyleRules", "US1000:FieldsMustBeUpperCamelCase",
- Justification = "Overridden field.")]
- public static int touchCount
- {
- get
- {
- return touches.Length;
- }
- }
-
- ///
- /// Gets return value of Input.mousePosition.
- ///
- [SuppressMessage("UnityRules.UnityStyleRules", "US1000:FieldsMustBeUpperCamelCase",
- Justification = "Overridden field.")]
- public static Vector3 mousePosition
- {
- get
- {
- return Input.mousePosition;
- }
- }
-
- ///
- /// Gets a value indicating whether a mouse device is detected.
- ///
- [SuppressMessage("UnityRules.UnityStyleRules", "US1000:FieldsMustBeUpperCamelCase",
- Justification = "Overridden field.")]
- public static bool mousePresent
- {
- get
- {
- return Input.mousePresent;
- }
- }
-
- ///
- /// Gets a specific touch input from Instant Preview by index.
- ///
- /// Index of touch input to get.
- /// Touch data.
- public static Touch GetTouch(int index)
- {
- return touches[index];
- }
-
- ///
- /// Passthrough function to Input.GetKey.
- ///
- /// Key parameter to pass to Input.GetKey.
- /// Key state returned from Input.GetKey.
- public static bool GetKey(KeyCode keyCode)
- {
- return Input.GetKey(keyCode);
- }
-
- ///
- /// Passthrough function to Input.GetMouseButton.
- ///
- /// Button index.
- /// Return value of Input.GetMouseButton.
- public static bool GetMouseButton(int button)
- {
- return Input.GetMouseButton(button);
- }
-
- ///
- /// Passthrough function to Input.GetMouseButtonDown.
- ///
- /// Button index.
- /// Return value of Input.GetMouseButtonDown.
- public static bool GetMouseButtonDown(int button)
- {
- return Input.GetMouseButtonDown(button);
- }
-
- ///
- /// Passthrough function to Input.GetMouseButtonUp.
- ///
- /// Button index.
- /// Return value of Input.GetMouseButtonUp.
- public static bool GetMouseButtonUp(int button)
- {
- return Input.GetMouseButtonUp(button);
- }
-
- ///
- /// Refreshes touch inputs from Instant Preview to reflect the state
- /// since the last time Update was called.
- ///
- public static void Update()
- {
- if (!Application.isEditor)
- {
- return;
- }
-
- IntPtr nativeTouchesPtr;
- int nativeTouchCount;
- NativeApi.GetTouches(out nativeTouchesPtr, out nativeTouchCount);
-
- var structSize = Marshal.SizeOf(typeof(NativeTouch));
- s_Touches = new Touch[nativeTouchCount];
- for (var i = 0; i < nativeTouchCount; ++i)
- {
- var source = new IntPtr(nativeTouchesPtr.ToInt64() + (i * structSize));
- var nativeTouch = (NativeTouch)Marshal.PtrToStructure(source, typeof(NativeTouch));
-
- s_Touches[i] = new Touch()
- {
- phase = nativeTouch.Phase,
-
- // Note that the Unity's screen coordinate (0, 0) starts from bottom left.
- position = new Vector2(nativeTouch.X, Screen.height - nativeTouch.Y),
- };
- }
- }
-
- private struct NativeTouch
- {
- public TouchPhase Phase;
- public float X;
- public float Y;
- }
-
- private struct NativeApi
- {
- [DllImport(InstantPreviewManager.InstantPreviewNativeApi)]
- public static extern void GetTouches(out IntPtr touches, out int count);
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/InstantPreview/Scripts/InstantPreviewInput.cs.meta b/Assets/GoogleARCore/SDK/InstantPreview/Scripts/InstantPreviewInput.cs.meta
deleted file mode 100644
index 040ca2529..000000000
--- a/Assets/GoogleARCore/SDK/InstantPreview/Scripts/InstantPreviewInput.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: ed2d2995c742a6c4490fa51080dbf4cf
-timeCreated: 1512422473
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/InstantPreview/Scripts/InstantPreviewManager.cs b/Assets/GoogleARCore/SDK/InstantPreview/Scripts/InstantPreviewManager.cs
deleted file mode 100644
index a3d84f8b7..000000000
--- a/Assets/GoogleARCore/SDK/InstantPreview/Scripts/InstantPreviewManager.cs
+++ /dev/null
@@ -1,470 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System;
- using System.Collections;
- using System.IO;
- using System.Runtime.InteropServices;
- using System.Text;
- using System.Threading;
- using GoogleARCore;
- using UnityEngine;
- using UnityEngine.Rendering;
- using UnityEngine.SpatialTracking;
-
- ///
- /// Contains methods for managing communication to the Instant Preview
- /// plugin.
- ///
- public static class InstantPreviewManager
- {
- ///
- /// Name of the Instant Preview plugin library.
- ///
- public const string InstantPreviewNativeApi = "instant_preview_unity_plugin";
-
- // Guid is taken from meta file and should never change.
- private const string k_ApkGuid = "cf7b10762fe921e40a18151a6c92a8a6";
- private const string k_NoDevicesFoundAdbResult = "error: no devices/emulators found";
- private const float k_MaxTolerableAspectRatioDifference = 0.1f;
- private const string k_MismatchedAspectRatioWarningFormatString =
- "The aspect ratio of your game window is different from the aspect ratio of your Instant Preview camera " +
- "texture. Please resize your game window's aspect ratio to match, or your preview will be distorted. The " +
- "camera texture resolution is {0}, {1}.";
-
- private static readonly WaitForEndOfFrame k_WaitForEndOfFrame = new WaitForEndOfFrame();
-
- ///
- /// Coroutine method that communicates to the Instant Preview plugin
- /// every frame.
- ///
- /// If not running in the editor, this does nothing.
- ///
- /// Enumerator for a coroutine that updates Instant Preview
- /// every frame.
- public static IEnumerator InitializeIfNeeded()
- {
- // Terminates if not running in editor.
- if (!Application.isEditor)
- {
- yield break;
- }
-
- // User may have explicitly disabled Instant Preview.
- if (ARCoreProjectSettings.Instance != null &&
- !ARCoreProjectSettings.Instance.IsInstantPreviewEnabled)
- {
- yield break;
- }
-
- var adbPath = InstantPreviewManager.GetAdbPath();
- if (adbPath == null)
- {
- Debug.LogError("Instant Preview requires your Unity Android SDK path to be set. Please set it under " +
- "Preferences/External Tools/Android. You may need to install the Android SDK first.");
- yield break;
- }
- else if (!File.Exists(adbPath))
- {
- Debug.LogErrorFormat("adb not found at \"{0}\". Please add adb to your SDK path and restart the Unity editor.", adbPath);
- yield break;
- }
-
- string localVersion;
- if (!StartServer(adbPath, out localVersion))
- {
- yield break;
- }
-
- yield return InstallApkAndRunIfConnected(adbPath, localVersion);
-
- yield return UpdateLoop();
- }
-
- ///
- /// Uploads the latest camera video frame received from Instant Preview
- /// to the specified texture. The texture might be recreated if it is
- /// not the right size or null.
- ///
- /// Texture variable to store the latest
- /// Instant Preview video frame.
- /// True if InstantPreview updated the background texture,
- /// false if it did not and the texture still needs updating.
- public static bool UpdateBackgroundTextureIfNeeded(ref Texture2D backgroundTexture)
- {
- if (!Application.isEditor)
- {
- return false;
- }
-
- IntPtr pixelBytes;
- int width;
- int height;
- if (NativeApi.LockCameraTexture(out pixelBytes, out width, out height))
- {
- if (backgroundTexture == null || width != backgroundTexture.width ||
- height != backgroundTexture.height)
- {
- backgroundTexture = new Texture2D(width, height, TextureFormat.BGRA32, false);
- }
-
- backgroundTexture.LoadRawTextureData(pixelBytes, width * height * 4);
- backgroundTexture.Apply();
-
- NativeApi.UnlockCameraTexture();
- }
-
- return true;
- }
-
- private static IEnumerator UpdateLoop()
- {
- // Creates a target texture to capture the preview window onto.
- // Some video encoders prefer the dimensions to be a multiple of 16.
- var targetWidth = RoundUpToNearestMultipleOf16(Screen.width);
- var targetHeight = RoundUpToNearestMultipleOf16(Screen.height);
- var screenTexture = new RenderTexture(targetWidth, targetHeight, 0);
-
- var renderEventFunc = NativeApi.GetRenderEventFunc();
- var shouldConvertToBrgra = SystemInfo.graphicsDeviceType == GraphicsDeviceType.Direct3D11;
- var targetTexture = screenTexture;
- RenderTexture bgrTexture = null;
- if (shouldConvertToBrgra)
- {
- bgrTexture = new RenderTexture(screenTexture.width, screenTexture.height, 0, RenderTextureFormat.BGRA32);
- targetTexture = bgrTexture;
- }
-
- var loggedAspectRatioWarning = false;
-
- // Begins update loop. The coroutine will cease when the
- // ARCoreSession component it's called from is destroyed.
- for (;;)
- {
- yield return k_WaitForEndOfFrame;
- NativeApi.Update();
- InstantPreviewInput.Update();
- AddInstantPreviewTrackedPoseDriverWhenNeeded();
-
- Graphics.Blit(null, screenTexture);
-
- if (shouldConvertToBrgra)
- {
- Graphics.Blit(screenTexture, bgrTexture);
- }
-
- var cameraTexture = Frame.CameraImage.Texture;
- if (!loggedAspectRatioWarning && cameraTexture != null)
- {
- var sourceWidth = cameraTexture.width;
- var sourceHeight = cameraTexture.height;
- var sourceAspectRatio = (float)sourceWidth / sourceHeight;
- var destinationWidth = Screen.width;
- var destinationHeight = Screen.height;
- var destinationAspectRatio = (float)destinationWidth / destinationHeight;
-
- if (Mathf.Abs(sourceAspectRatio - destinationAspectRatio) >
- k_MaxTolerableAspectRatioDifference)
- {
- Debug.LogWarning(string.Format(k_MismatchedAspectRatioWarningFormatString, sourceWidth,
- sourceHeight));
- loggedAspectRatioWarning = true;
- }
- }
-
- NativeApi.SendFrame(targetTexture.GetNativeTexturePtr());
- GL.IssuePluginEvent(renderEventFunc, 69);
- }
- }
-
- private static void AddInstantPreviewTrackedPoseDriverWhenNeeded()
- {
- foreach (var poseDriver in Component.FindObjectsOfType())
- {
- poseDriver.enabled = false;
- var gameObject = poseDriver.gameObject;
- var hasInstantPreviewTrackedPoseDriver =
- gameObject.GetComponent() != null;
- if (!hasInstantPreviewTrackedPoseDriver)
- {
- gameObject.AddComponent();
- }
- }
- }
-
- private static string GetAdbPath()
- {
- string sdkRoot = null;
-#if UNITY_EDITOR
- // Gets adb path and starts instant preview server.
- sdkRoot = UnityEditor.EditorPrefs.GetString("AndroidSdkRoot");
-#endif // UNITY_EDITOR
-
- if (string.IsNullOrEmpty(sdkRoot))
- {
- return null;
- }
-
- // Gets adb path from known directory.
- var adbPath = Path.Combine(Path.GetFullPath(sdkRoot), "platform-tools" + Path.DirectorySeparatorChar + "adb");
-
- if (Application.platform == RuntimePlatform.WindowsEditor)
- {
- adbPath = Path.ChangeExtension(adbPath, "exe");
- }
-
- return adbPath;
- }
-
- ///
- /// Tries to install and run the Instant Preview android app.
- ///
- /// Path to adb to use for installing.
- /// Local version of Instant Preview plugin to compare installed APK against.
- /// Enumerator for coroutine that handles installation if necessary.
- private static IEnumerator InstallApkAndRunIfConnected(string adbPath, string localVersion)
- {
- string apkPath = null;
-
-#if UNITY_EDITOR
- apkPath = UnityEditor.AssetDatabase.GUIDToAssetPath(k_ApkGuid);
-#endif // !UNITY_EDITOR
-
- // Early outs if set to install but the apk can't be found.
- if (!File.Exists(apkPath))
- {
- Debug.LogError(
- string.Format("Trying to install Instant Preview apk but reference to InstantPreview.apk is " +
- "broken. Couldn't find an asset with .meta file guid={0}", k_ApkGuid));
- yield break;
- }
-
- Result result = new Result();
-
- Thread checkAdbThread = new Thread((object obj) =>
- {
- Result res = (Result)obj;
- string output;
- string errors;
-
- // Gets version of installed apk.
- RunAdbCommand(adbPath, "shell dumpsys package com.google.ar.core.instantpreview | grep versionName",
- out output, out errors);
- string installedVersion = null;
- if (!string.IsNullOrEmpty(output) && string.IsNullOrEmpty(errors))
- {
- installedVersion = output.Substring(output.IndexOf('=') + 1);
- }
-
- // Early outs if no device is connected.
- if (string.Compare(errors, k_NoDevicesFoundAdbResult) == 0)
- {
- return;
- }
-
- // Prints errors and exits on failure.
- if (!string.IsNullOrEmpty(errors))
- {
- Debug.LogError(errors);
- return;
- }
-
- if (installedVersion == null)
- {
- Debug.Log(string.Format(
- "Instant Preview: app not found on device, attempting to install it from {0}.",
- apkPath));
- }
- else if (installedVersion != localVersion)
- {
- Debug.Log(string.Format(
- "Instant Preview: installed version \"{0}\" does not match local version \"{1}\", attempting upgrade.",
- installedVersion, localVersion));
- }
-
- res.ShouldPromptForInstall = installedVersion != localVersion;
- });
- checkAdbThread.Start(result);
-
- while (!checkAdbThread.Join(0))
- {
- yield return 0;
- }
-
- if (result.ShouldPromptForInstall)
- {
- if (PromptToInstall())
- {
- Thread installThread = new Thread(() =>
- {
- string output;
- string errors;
-
- RunAdbCommand(adbPath,
- string.Format("uninstall com.google.ar.core.instantpreview", apkPath),
- out output, out errors);
-
- RunAdbCommand(adbPath,
- string.Format("install \"{0}\"", apkPath),
- out output, out errors);
-
- // Prints any output from trying to install.
- if (!string.IsNullOrEmpty(output))
- {
- Debug.Log(output);
- }
-
- if (!string.IsNullOrEmpty(errors))
- {
- if (string.Equals(errors, "Success"))
- {
- Debug.Log("Successfully installed Instant Preview app.");
- }
- else
- {
- Debug.LogError(errors);
- }
- }
- });
- installThread.Start();
-
- while (!installThread.Join(0))
- {
- yield return 0;
- }
- }
- else
- {
- yield break;
- }
- }
-
- if (!NativeApi.IsConnected())
- {
- new Thread(() =>
- {
- string output;
- string errors;
- RunAdbCommand(adbPath,
- "shell am start -n com.google.ar.core.instantpreview/.InstantPreviewActivity",
- out output, out errors);
- }).Start();
- }
- }
-
- private static bool PromptToInstall()
- {
-#if UNITY_EDITOR
- return UnityEditor.EditorUtility.DisplayDialog("Instant Preview",
- "To instantly reflect your changes on device, the " +
- "Instant Preview app will be installed on your " +
- "connected phone.\n\nTo permanently disable Instant Preview, " +
- "uncheck the InstantPreviewEnabled checkbox in Edit/Project Settings/ARCore Instant Preview Enabled.", "Okay", "Don't Install This Time");
-#else
- return false;
-#endif
- }
-
- private static void RunAdbCommand(string fileName, string arguments, out string output, out string errors)
- {
- using (var process = new System.Diagnostics.Process())
- {
- var startInfo = new System.Diagnostics.ProcessStartInfo(fileName, arguments);
- startInfo.UseShellExecute = false;
- startInfo.RedirectStandardError = true;
- startInfo.RedirectStandardOutput = true;
- startInfo.CreateNoWindow = true;
- process.StartInfo = startInfo;
-
- var outputBuilder = new StringBuilder();
- var errorBuilder = new StringBuilder();
- process.OutputDataReceived += (sender, ef) => outputBuilder.Append(ef.Data);
- process.ErrorDataReceived += (sender, ef) => errorBuilder.Append(ef.Data);
-
- process.Start();
- process.BeginOutputReadLine();
- process.BeginErrorReadLine();
- process.WaitForExit();
- process.Close();
-
- // Trims the output strings to make comparison easier.
- output = outputBuilder.ToString().Trim();
- errors = errorBuilder.ToString().Trim();
- }
- }
-
- private static bool StartServer(string adbPath, out string version)
- {
- // Tries to start server.
- const int k_InstantPreviewVersionStringMaxLength = 64;
- var versionStringBuilder = new StringBuilder(k_InstantPreviewVersionStringMaxLength);
- var started = NativeApi.InitializeInstantPreview(adbPath, versionStringBuilder,
- versionStringBuilder.Capacity);
- if (!started)
- {
- Debug.LogErrorFormat("Couldn't start Instant Preview server with adb path: {0}.", adbPath);
- version = null;
- return false;
- }
-
- version = versionStringBuilder.ToString();
- Debug.Log("Instant Preview Version: " + version);
- return true;
- }
-
- private static int RoundUpToNearestMultipleOf16(int value)
- {
- return (value + 15) & ~15;
- }
-
- private struct NativeApi
- {
- [DllImport(InstantPreviewNativeApi)]
- public static extern bool InitializeInstantPreview(
- string adbPath, StringBuilder version, int versionStringLength);
-
- [DllImport(InstantPreviewNativeApi)]
- public static extern void Update();
-
- [DllImport(InstantPreviewNativeApi)]
- public static extern IntPtr GetRenderEventFunc();
-
- [DllImport(InstantPreviewNativeApi)]
- public static extern void SendFrame(IntPtr renderTexture);
-
- [DllImport(InstantPreviewNativeApi)]
- public static extern bool LockCameraTexture(out IntPtr pixelBytes, out int width,
- out int height);
-
- [DllImport(InstantPreviewNativeApi)]
- public static extern void UnlockCameraTexture();
-
- [DllImport(InstantPreviewNativeApi)]
- public static extern bool IsConnected();
- }
-
- private class Result
- {
- public bool ShouldPromptForInstall = false;
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/InstantPreview/Scripts/InstantPreviewManager.cs.meta b/Assets/GoogleARCore/SDK/InstantPreview/Scripts/InstantPreviewManager.cs.meta
deleted file mode 100644
index 101cb5a44..000000000
--- a/Assets/GoogleARCore/SDK/InstantPreview/Scripts/InstantPreviewManager.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 8d78f35e6ec68ed4ba199eddf266e308
-timeCreated: 1513720134
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/InstantPreview/Scripts/InstantPreviewTrackedPoseDriver.cs b/Assets/GoogleARCore/SDK/InstantPreview/Scripts/InstantPreviewTrackedPoseDriver.cs
deleted file mode 100644
index 4515e1269..000000000
--- a/Assets/GoogleARCore/SDK/InstantPreview/Scripts/InstantPreviewTrackedPoseDriver.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCore
-{
- using UnityEngine;
-
- ///
- /// Drives cameras when using Instant Preview, since there is no easy way to
- /// provide data to Unity's TrackedPoseDriver.
- ///
- public class InstantPreviewTrackedPoseDriver : MonoBehaviour
- {
- ///
- /// Updates the game object's transform to that of the latest pose
- /// received by Instant Preview.
- ///
- public void Update()
- {
- if (!Application.isEditor)
- {
- return;
- }
-
- transform.position = Frame.Pose.position;
- transform.rotation = Frame.Pose.rotation;
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/InstantPreview/Scripts/InstantPreviewTrackedPoseDriver.cs.meta b/Assets/GoogleARCore/SDK/InstantPreview/Scripts/InstantPreviewTrackedPoseDriver.cs.meta
deleted file mode 100644
index f56757ea9..000000000
--- a/Assets/GoogleARCore/SDK/InstantPreview/Scripts/InstantPreviewTrackedPoseDriver.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 307167e96a9af144789862588807c91b
-timeCreated: 1512450063
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Materials.meta b/Assets/GoogleARCore/SDK/Materials.meta
deleted file mode 100644
index e6a762de2..000000000
--- a/Assets/GoogleARCore/SDK/Materials.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: b2c4e904b5e6b425f8ab111db67d7908
-folderAsset: yes
-timeCreated: 1497981256
-licenseType: Pro
-DefaultImporter:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Materials/ARBackground.mat b/Assets/GoogleARCore/SDK/Materials/ARBackground.mat
deleted file mode 100644
index 3b70f19f2..000000000
--- a/Assets/GoogleARCore/SDK/Materials/ARBackground.mat
+++ /dev/null
@@ -1,76 +0,0 @@
-%YAML 1.1
-%TAG !u! tag:unity3d.com,2011:
---- !u!21 &2100000
-Material:
- serializedVersion: 6
- m_ObjectHideFlags: 0
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 0}
- m_Name: ARBackground
- m_Shader: {fileID: 4800000, guid: 025775b2b3616154f9eec0261bb8a581, type: 3}
- m_ShaderKeywords:
- m_LightmapFlags: 4
- m_EnableInstancingVariants: 0
- m_DoubleSidedGI: 0
- m_CustomRenderQueue: -1
- stringTagMap: {}
- disabledShaderPasses: []
- m_SavedProperties:
- serializedVersion: 3
- m_TexEnvs:
- - _BumpMap:
- m_Texture: {fileID: 0}
- m_Scale: {x: 1, y: 1}
- m_Offset: {x: 0, y: 0}
- - _DetailAlbedoMap:
- m_Texture: {fileID: 0}
- m_Scale: {x: 1, y: 1}
- m_Offset: {x: 0, y: 0}
- - _DetailMask:
- m_Texture: {fileID: 0}
- m_Scale: {x: 1, y: 1}
- m_Offset: {x: 0, y: 0}
- - _DetailNormalMap:
- m_Texture: {fileID: 0}
- m_Scale: {x: 1, y: 1}
- m_Offset: {x: 0, y: 0}
- - _EmissionMap:
- m_Texture: {fileID: 0}
- m_Scale: {x: 1, y: 1}
- m_Offset: {x: 0, y: 0}
- - _MainTex:
- m_Texture: {fileID: 0}
- m_Scale: {x: 1, y: 1}
- m_Offset: {x: 0, y: 0}
- - _MetallicGlossMap:
- m_Texture: {fileID: 0}
- m_Scale: {x: 1, y: 1}
- m_Offset: {x: 0, y: 0}
- - _OcclusionMap:
- m_Texture: {fileID: 0}
- m_Scale: {x: 1, y: 1}
- m_Offset: {x: 0, y: 0}
- - _ParallaxMap:
- m_Texture: {fileID: 0}
- m_Scale: {x: 1, y: 1}
- m_Offset: {x: 0, y: 0}
- m_Floats:
- - _BumpScale: 1
- - _Cutoff: 0.5
- - _DetailNormalMapScale: 1
- - _DstBlend: 0
- - _GlossMapScale: 1
- - _Glossiness: 0.5
- - _GlossyReflections: 1
- - _Metallic: 0
- - _Mode: 0
- - _OcclusionStrength: 1
- - _Parallax: 0.02
- - _SmoothnessTextureChannel: 0
- - _SpecularHighlights: 1
- - _SrcBlend: 1
- - _UVSec: 0
- - _ZWrite: 1
- m_Colors:
- - _Color: {r: 1, g: 1, b: 1, a: 1}
- - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
diff --git a/Assets/GoogleARCore/SDK/Materials/ARBackground.mat.meta b/Assets/GoogleARCore/SDK/Materials/ARBackground.mat.meta
deleted file mode 100644
index 3e2e2dc47..000000000
--- a/Assets/GoogleARCore/SDK/Materials/ARBackground.mat.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 03ad0130a037647aeb60218f61aca114
-timeCreated: 1498003566
-licenseType: Pro
-NativeFormatImporter:
- mainObjectFileID: 2100000
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Materials/ARBackground.shader b/Assets/GoogleARCore/SDK/Materials/ARBackground.shader
deleted file mode 100644
index a05825d8d..000000000
--- a/Assets/GoogleARCore/SDK/Materials/ARBackground.shader
+++ /dev/null
@@ -1,117 +0,0 @@
-Shader "ARCore/ARBackground"
-{
- Properties {
- _MainTex ("Texture", 2D) = "white" {}
- _UvTopLeftRight ("UV of top corners", Vector) = (0, 1, 1, 1)
- _UvBottomLeftRight ("UV of bottom corners", Vector) = (0 , 0, 1, 0)
- }
-
- // For GLES3
- SubShader
- {
- Pass
- {
- ZWrite Off
-
- GLSLPROGRAM
-
- #pragma only_renderers gles3
-
- #ifdef SHADER_API_GLES3
- #extension GL_OES_EGL_image_external_essl3 : require
- #endif
-
- uniform vec4 _UvTopLeftRight;
- uniform vec4 _UvBottomLeftRight;
-
- #ifdef VERTEX
-
- varying vec2 textureCoord;
-
- void main()
- {
- #ifdef SHADER_API_GLES3
- vec2 uvTop = mix(_UvTopLeftRight.xy, _UvTopLeftRight.zw, gl_MultiTexCoord0.x);
- vec2 uvBottom = mix(_UvBottomLeftRight.xy, _UvBottomLeftRight.zw, gl_MultiTexCoord0.x);
- textureCoord = mix(uvTop, uvBottom, gl_MultiTexCoord0.y);
-
- gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
- #endif
- }
-
- #endif
-
- #ifdef FRAGMENT
- varying vec2 textureCoord;
- uniform samplerExternalOES _MainTex;
-
- void main()
- {
- #ifdef SHADER_API_GLES3
- gl_FragColor = texture(_MainTex, textureCoord);
- #endif
- }
-
- #endif
-
- ENDGLSL
- }
- }
-
- Subshader
- {
- Pass
- {
- ZWrite Off
-
- CGPROGRAM
-
- #pragma exclude_renderers gles3
- #pragma vertex vert
- #pragma fragment frag
-
- #include "UnityCG.cginc"
-
- uniform float4 _UvTopLeftRight;
- uniform float4 _UvBottomLeftRight;
-
- struct appdata
- {
- float4 vertex : POSITION;
- float2 uv : TEXCOORD0;
- };
-
- struct v2f
- {
- float2 uv : TEXCOORD0;
- float4 vertex : SV_POSITION;
- };
-
- v2f vert(appdata v)
- {
- float2 uvTop = lerp(_UvTopLeftRight.xy, _UvTopLeftRight.zw, v.uv.x);
- float2 uvBottom = lerp(_UvBottomLeftRight.xy, _UvBottomLeftRight.zw, v.uv.x);
-
- v2f o;
- o.vertex = UnityObjectToClipPos(v.vertex);
- o.uv = lerp(uvTop, uvBottom, v.uv.y);
-
- // Instant preview's texture is transformed differently.
- o.uv = o.uv.yx;
- o.uv.x = 1.0 - o.uv.x;
-
- return o;
- }
-
- sampler2D _MainTex;
-
- fixed4 frag(v2f i) : SV_Target
- {
- return tex2D(_MainTex, i.uv);
- }
- ENDCG
- }
- }
-
- FallBack Off
-}
diff --git a/Assets/GoogleARCore/SDK/Materials/ARBackground.shader.meta b/Assets/GoogleARCore/SDK/Materials/ARBackground.shader.meta
deleted file mode 100644
index 32b75c809..000000000
--- a/Assets/GoogleARCore/SDK/Materials/ARBackground.shader.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 025775b2b3616154f9eec0261bb8a581
-timeCreated: 1510285086
-licenseType: Pro
-ShaderImporter:
- externalObjects: {}
- defaultTextures: []
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Plugins.meta b/Assets/GoogleARCore/SDK/Plugins.meta
deleted file mode 100644
index a9072c24d..000000000
--- a/Assets/GoogleARCore/SDK/Plugins.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 93be2b9777c348648a2d9151b7e233fc
-folderAsset: yes
-timeCreated: 1501825151
-licenseType: Free
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Plugins/arcore_client.aar b/Assets/GoogleARCore/SDK/Plugins/arcore_client.aar
deleted file mode 100644
index 9d9732ffe..000000000
Binary files a/Assets/GoogleARCore/SDK/Plugins/arcore_client.aar and /dev/null differ
diff --git a/Assets/GoogleARCore/SDK/Plugins/arcore_client.aar.meta b/Assets/GoogleARCore/SDK/Plugins/arcore_client.aar.meta
deleted file mode 100644
index a5cc8b2e5..000000000
--- a/Assets/GoogleARCore/SDK/Plugins/arcore_client.aar.meta
+++ /dev/null
@@ -1,31 +0,0 @@
-fileFormatVersion: 2
-guid: 19eddef6ceb6961489b26fb8bf19f1e5
-timeCreated: 1517361316
-licenseType: Pro
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- - first:
- Android: Android
- second:
- enabled: 1
- settings: {}
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Plugins/google_ar_optional.aar b/Assets/GoogleARCore/SDK/Plugins/google_ar_optional.aar
deleted file mode 100644
index 8a1817891..000000000
Binary files a/Assets/GoogleARCore/SDK/Plugins/google_ar_optional.aar and /dev/null differ
diff --git a/Assets/GoogleARCore/SDK/Plugins/google_ar_optional.aar.meta b/Assets/GoogleARCore/SDK/Plugins/google_ar_optional.aar.meta
deleted file mode 100644
index b610eba46..000000000
--- a/Assets/GoogleARCore/SDK/Plugins/google_ar_optional.aar.meta
+++ /dev/null
@@ -1,31 +0,0 @@
-fileFormatVersion: 2
-guid: e2fd4640a9f7349438a5920ea2fb35f2
-timeCreated: 1518222616
-licenseType: Pro
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- - first:
- Android: Android
- second:
- enabled: 1
- settings: {}
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Plugins/google_ar_required.aar b/Assets/GoogleARCore/SDK/Plugins/google_ar_required.aar
deleted file mode 100644
index be40e73d9..000000000
Binary files a/Assets/GoogleARCore/SDK/Plugins/google_ar_required.aar and /dev/null differ
diff --git a/Assets/GoogleARCore/SDK/Plugins/google_ar_required.aar.meta b/Assets/GoogleARCore/SDK/Plugins/google_ar_required.aar.meta
deleted file mode 100644
index 3c485d19f..000000000
--- a/Assets/GoogleARCore/SDK/Plugins/google_ar_required.aar.meta
+++ /dev/null
@@ -1,31 +0,0 @@
-fileFormatVersion: 2
-guid: cb4b89ba21eac484797cfca938a1a5ea
-timeCreated: 1518222591
-licenseType: Pro
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- - first:
- Android: Android
- second:
- enabled: 1
- settings: {}
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Plugins/libarcore_unity_api.so b/Assets/GoogleARCore/SDK/Plugins/libarcore_unity_api.so
deleted file mode 100644
index 11694aa5f..000000000
Binary files a/Assets/GoogleARCore/SDK/Plugins/libarcore_unity_api.so and /dev/null differ
diff --git a/Assets/GoogleARCore/SDK/Plugins/libarcore_unity_api.so.meta b/Assets/GoogleARCore/SDK/Plugins/libarcore_unity_api.so.meta
deleted file mode 100644
index 9272c6dc6..000000000
--- a/Assets/GoogleARCore/SDK/Plugins/libarcore_unity_api.so.meta
+++ /dev/null
@@ -1,103 +0,0 @@
-fileFormatVersion: 2
-guid: d9b715dad41754ff39bd62a2954dadf9
-timeCreated: 1510001161
-licenseType: Free
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- - first:
- '': Any
- second:
- enabled: 0
- settings:
- Exclude Android: 0
- Exclude Editor: 1
- Exclude Linux: 1
- Exclude Linux64: 1
- Exclude LinuxUniversal: 1
- Exclude OSXUniversal: 1
- Exclude Win: 1
- Exclude Win64: 1
- Exclude iOS: 1
- - first:
- Android: Android
- second:
- enabled: 1
- settings:
- CPU: ARMv7
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- DefaultValueInitialized: true
- OS: AnyOS
- - first:
- Facebook: Win
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Facebook: Win64
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Linux
- second:
- enabled: 0
- settings:
- CPU: x86
- - first:
- Standalone: Linux64
- second:
- enabled: 0
- settings:
- CPU: x86_64
- - first:
- Standalone: LinuxUniversal
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Standalone: OSXUniversal
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Win
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Win64
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- iPhone: iOS
- second:
- enabled: 0
- settings:
- CompileFlags:
- FrameworkDependencies:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Plugins/libarpresto_api.so b/Assets/GoogleARCore/SDK/Plugins/libarpresto_api.so
deleted file mode 100644
index 2b010c931..000000000
Binary files a/Assets/GoogleARCore/SDK/Plugins/libarpresto_api.so and /dev/null differ
diff --git a/Assets/GoogleARCore/SDK/Plugins/libarpresto_api.so.meta b/Assets/GoogleARCore/SDK/Plugins/libarpresto_api.so.meta
deleted file mode 100644
index e803faa08..000000000
--- a/Assets/GoogleARCore/SDK/Plugins/libarpresto_api.so.meta
+++ /dev/null
@@ -1,95 +0,0 @@
-fileFormatVersion: 2
-guid: ccde220b10a8b441a9b728f80d014cfe
-timeCreated: 1513372698
-licenseType: Pro
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- - first:
- '': Any
- second:
- enabled: 0
- settings:
- Exclude Android: 0
- Exclude Editor: 1
- Exclude Linux: 1
- Exclude Linux64: 1
- Exclude LinuxUniversal: 1
- Exclude OSXUniversal: 1
- Exclude Win: 1
- Exclude Win64: 1
- - first:
- Android: Android
- second:
- enabled: 1
- settings:
- CPU: ARMv7
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- DefaultValueInitialized: true
- OS: AnyOS
- - first:
- Facebook: Win
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Facebook: Win64
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Linux
- second:
- enabled: 0
- settings:
- CPU: x86
- - first:
- Standalone: Linux64
- second:
- enabled: 0
- settings:
- CPU: x86_64
- - first:
- Standalone: LinuxUniversal
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Standalone: OSXUniversal
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Win
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Win64
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Plugins/unityandroidpermissions.aar b/Assets/GoogleARCore/SDK/Plugins/unityandroidpermissions.aar
deleted file mode 100644
index acb6aa5a5..000000000
Binary files a/Assets/GoogleARCore/SDK/Plugins/unityandroidpermissions.aar and /dev/null differ
diff --git a/Assets/GoogleARCore/SDK/Plugins/unityandroidpermissions.aar.meta b/Assets/GoogleARCore/SDK/Plugins/unityandroidpermissions.aar.meta
deleted file mode 100644
index d8a07c7db..000000000
--- a/Assets/GoogleARCore/SDK/Plugins/unityandroidpermissions.aar.meta
+++ /dev/null
@@ -1,31 +0,0 @@
-fileFormatVersion: 2
-guid: bd091fc8013c942f586c1672b8ee2b27
-timeCreated: 1500400815
-licenseType: Free
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- - first:
- Android: Android
- second:
- enabled: 1
- settings: {}
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Plugins/unitygar.aar b/Assets/GoogleARCore/SDK/Plugins/unitygar.aar
deleted file mode 100644
index e180693f9..000000000
Binary files a/Assets/GoogleARCore/SDK/Plugins/unitygar.aar and /dev/null differ
diff --git a/Assets/GoogleARCore/SDK/Plugins/unitygar.aar.meta b/Assets/GoogleARCore/SDK/Plugins/unitygar.aar.meta
deleted file mode 100644
index ee356f697..000000000
--- a/Assets/GoogleARCore/SDK/Plugins/unitygar.aar.meta
+++ /dev/null
@@ -1,31 +0,0 @@
-fileFormatVersion: 2
-guid: f62612db4b24deb43ada3a769754a2f7
-timeCreated: 1503511556
-licenseType: Free
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- - first:
- Android: Android
- second:
- enabled: 1
- settings: {}
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts.meta b/Assets/GoogleARCore/SDK/Scripts.meta
deleted file mode 100644
index 337aa52a5..000000000
--- a/Assets/GoogleARCore/SDK/Scripts.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 8f3875959d8dd4bdeb9620e0eb96fb3b
-folderAsset: yes
-timeCreated: 1501446012
-licenseType: Free
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/ARCoreBackgroundRenderer.cs b/Assets/GoogleARCore/SDK/Scripts/ARCoreBackgroundRenderer.cs
deleted file mode 100644
index cb49abfe8..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/ARCoreBackgroundRenderer.cs
+++ /dev/null
@@ -1,109 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCore
-{
- using System.Collections;
- using System.Collections.Generic;
- using GoogleARCoreInternal;
- using UnityEngine;
- using UnityEngine.XR;
-
- ///
- /// Renders the device's camera as a background to the attached Unity camera component.
- ///
- [RequireComponent(typeof(Camera))]
- public class ARCoreBackgroundRenderer : MonoBehaviour
- {
- ///
- /// A material used to render the AR background image.
- ///
- [Tooltip("A material used to render the AR background image.")]
- public Material BackgroundMaterial;
-
- private Camera m_Camera;
-
- private ARBackgroundRenderer m_BackgroundRenderer;
-
- private void OnEnable()
- {
- if (BackgroundMaterial == null)
- {
- Debug.LogError("ArCameraBackground:: No material assigned.");
- return;
- }
-
- m_Camera = GetComponent();
- }
-
- private void OnDisable()
- {
- Disable();
- }
-
- private void Update()
- {
- if (BackgroundMaterial == null)
- {
- Disable();
- return;
- }
-
- Texture backgroundTexture = Frame.CameraImage.Texture;
- if (backgroundTexture == null)
- {
- Disable();
- return;
- }
-
- const string mainTexVar = "_MainTex";
- const string topLeftRightVar = "_UvTopLeftRight";
- const string bottomLeftRightVar = "_UvBottomLeftRight";
-
- BackgroundMaterial.SetTexture(mainTexVar, backgroundTexture);
-
- var uvQuad = Frame.CameraImage.DisplayUvCoords;
- BackgroundMaterial.SetVector(topLeftRightVar,
- new Vector4(uvQuad.TopLeft.x, uvQuad.TopLeft.y, uvQuad.TopRight.x, uvQuad.TopRight.y));
- BackgroundMaterial.SetVector(bottomLeftRightVar,
- new Vector4(uvQuad.BottomLeft.x, uvQuad.BottomLeft.y, uvQuad.BottomRight.x, uvQuad.BottomRight.y));
-
- m_Camera.projectionMatrix = Frame.CameraImage.GetCameraProjectionMatrix(
- m_Camera.nearClipPlane, m_Camera.farClipPlane);
-
- if (m_BackgroundRenderer == null)
- {
- m_BackgroundRenderer = new ARBackgroundRenderer();
- m_BackgroundRenderer.backgroundMaterial = BackgroundMaterial;
- m_BackgroundRenderer.camera = m_Camera;
- m_BackgroundRenderer.mode = ARRenderMode.MaterialAsBackground;
- }
- }
-
- private void Disable()
- {
- if (m_BackgroundRenderer != null)
- {
- m_BackgroundRenderer.camera = null;
- m_BackgroundRenderer = null;
- }
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/ARCoreBackgroundRenderer.cs.meta b/Assets/GoogleARCore/SDK/Scripts/ARCoreBackgroundRenderer.cs.meta
deleted file mode 100644
index 675748ab8..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/ARCoreBackgroundRenderer.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: eb172c260d42e4f62945afda50892c0c
-timeCreated: 1510461368
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/ARCoreSession.cs b/Assets/GoogleARCore/SDK/Scripts/ARCoreSession.cs
deleted file mode 100644
index 29c000e1d..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/ARCoreSession.cs
+++ /dev/null
@@ -1,69 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCore
-{
- using GoogleARCoreInternal;
- using UnityEngine;
-
- ///
- /// A component that manages the ARCore Session in a Unity scene.
- ///
- public class ARCoreSession : MonoBehaviour
- {
- ///
- /// A scriptable object specifying the ARCore session configuration.
- ///
- [Tooltip("A scriptable object specifying the ARCore session configuration.")]
- public ARCoreSessionConfig SessionConfig;
-
- ///
- /// Unity Awake.
- ///
- public void Awake()
- {
- LifecycleManager.Instance.CreateSession(this);
- }
-
- ///
- /// Unity OnDestroy.
- ///
- public void OnDestroy()
- {
- LifecycleManager.Instance.DestroySession();
- }
-
- ///
- /// Unity OnEnable.
- ///
- public void OnEnable()
- {
- LifecycleManager.Instance.EnableSession();
- }
-
- ///
- /// Unity OnDisable.
- ///
- public void OnDisable()
- {
- LifecycleManager.Instance.DisableSession();
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/ARCoreSession.cs.meta b/Assets/GoogleARCore/SDK/Scripts/ARCoreSession.cs.meta
deleted file mode 100644
index 583f69aea..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/ARCoreSession.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: d4ca0c6a3af6b4635b7e98c6ea0a0cf9
-timeCreated: 1510461671
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/ARCoreSessionConfig.cs b/Assets/GoogleARCore/SDK/Scripts/ARCoreSessionConfig.cs
deleted file mode 100644
index b7b048188..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/ARCoreSessionConfig.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCore
-{
- using UnityEngine;
-
- ///
- /// Holds settings that are used to configure the session.
- ///
- [CreateAssetMenu(fileName = "ARCoreSessionConfig", menuName = "GoogleARCore/SessionConfig", order = 1)]
- public class ARCoreSessionConfig : ScriptableObject
- {
- ///
- /// Toggles whether the rendering frame rate matches the background camera frame rate.
- /// Setting this to true will also set QualitySetting.vSyncCount to 0, which will make your entire app to run at the background camera frame rate (including animations, UI interaction, etc.).
- /// Setting this to false could incur extra power overhead due to rendering the same background more than once.
- ///
- [Tooltip("Toggles whether the rendering frame rate matches the background camera frame rate")]
- public bool MatchCameraFramerate = true;
-
- ///
- /// Toggles whether plane finding is enabled.
- ///
- [Tooltip("Toggles whether plane finding is enabled.")]
- public bool EnablePlaneFinding = true;
-
- ///
- /// Toggles whether light estimation is enabled.
- ///
- [Tooltip("Toggles whether light estimation is enabled.")]
- public bool EnableLightEstimation = true;
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/ARCoreSessionConfig.cs.meta b/Assets/GoogleARCore/SDK/Scripts/ARCoreSessionConfig.cs.meta
deleted file mode 100644
index 378059c94..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/ARCoreSessionConfig.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 53ac32fab2599402fb6d154adf4c1e40
-timeCreated: 1510876906
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Anchor.cs b/Assets/GoogleARCore/SDK/Scripts/Anchor.cs
deleted file mode 100644
index b7e6dd43c..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Anchor.cs
+++ /dev/null
@@ -1,141 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCore
-{
- using System;
- using System.Collections.Generic;
- using System.Diagnostics.CodeAnalysis;
- using GoogleARCoreInternal;
- using UnityEngine;
-
- ///
- /// Attaches a GameObject to an ARCore {@link Trackable}. The transform of the GameObject will be updated to
- /// maintain the semantics of the attachment relationship, which varies between sub-types of Trackable.
- ///
- public class Anchor : MonoBehaviour
- {
- private static Dictionary s_AnchorDict = new Dictionary();
-
- private IntPtr m_AnchorNativeHandle = IntPtr.Zero;
-
- private NativeSession m_NativeSession;
-
- private TrackingState m_LastFrameTrackingState = TrackingState.Stopped;
-
- ///
- /// Gets the tracking state of the anchor.
- ///
- public TrackingState TrackingState
- {
- get
- {
- // TODO (b/73256094): Remove isTracking when fixed.
- var nativeSession = LifecycleManager.Instance.NativeSession;
- var isTracking = LifecycleManager.Instance.SessionStatus == SessionStatus.Tracking;
- if (nativeSession != m_NativeSession)
- {
- // Anchors from another session are considered stopped.
- return TrackingState.Stopped;
- }
- else if (!isTracking)
- {
- // If there are no new frames coming in we must manually return paused.
- return TrackingState.Paused;
- }
-
- return m_NativeSession.AnchorApi.GetTrackingState(m_AnchorNativeHandle);
- }
- }
-
- //// @cond EXCLUDE_FROM_DOXYGEN
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public static Anchor AnchorFactory(IntPtr anchorNativeHandle, NativeSession nativeApi, bool isCreate = true)
- {
- if (anchorNativeHandle == IntPtr.Zero)
- {
- return null;
- }
-
- Anchor result;
- if (s_AnchorDict.TryGetValue(anchorNativeHandle, out result))
- {
- // Release acquired handle and return cached result
- result.m_NativeSession.AnchorApi.Release(anchorNativeHandle);
- return result;
- }
-
- if (isCreate)
- {
- Anchor anchor = (new GameObject()).AddComponent();
- anchor.gameObject.name = "Anchor";
- anchor.m_AnchorNativeHandle = anchorNativeHandle;
- anchor.m_NativeSession = nativeApi;
- anchor.Update();
-
- s_AnchorDict.Add(anchorNativeHandle, anchor);
- return anchor;
- }
-
- return null;
- }
-
- //// @endcond
-
- private void Update()
- {
- if (m_AnchorNativeHandle == IntPtr.Zero)
- {
- Debug.LogError("Anchor components instantiated outside of ARCore are not supported. " +
- "Please use a 'Create' method within ARCore to instantiate anchors.");
- return;
- }
-
- var pose = m_NativeSession.AnchorApi.GetPose(m_AnchorNativeHandle);
- transform.position = pose.position;
- transform.rotation = pose.rotation;
-
- TrackingState currentFrameTrackingState = TrackingState;
- if (m_LastFrameTrackingState != currentFrameTrackingState)
- {
- bool isAnchorTracking = currentFrameTrackingState == TrackingState.Tracking;
- foreach (Transform child in transform)
- {
- child.gameObject.SetActive(isAnchorTracking);
- }
-
- m_LastFrameTrackingState = currentFrameTrackingState;
- }
- }
-
- private void OnDestroy()
- {
- if (m_AnchorNativeHandle == IntPtr.Zero)
- {
- return;
- }
-
- s_AnchorDict.Remove(m_AnchorNativeHandle);
- m_NativeSession.AnchorApi.Release(m_AnchorNativeHandle);
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Anchor.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Anchor.cs.meta
deleted file mode 100644
index 06b6167ee..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Anchor.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: bd5c45a099b834b8d847a3ba64b2c8ec
-timeCreated: 1502157890
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: -16000
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/AndroidPermissionsManager.cs b/Assets/GoogleARCore/SDK/Scripts/AndroidPermissionsManager.cs
deleted file mode 100644
index 36ed83f69..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/AndroidPermissionsManager.cs
+++ /dev/null
@@ -1,181 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCore
-{
- using System;
- using GoogleARCoreInternal;
- using UnityEngine;
-
- ///
- /// Manages Android permissions for the Unity application.
- ///
- public class AndroidPermissionsManager : AndroidJavaProxy
- {
- private static AndroidPermissionsManager s_Instance;
- private static AndroidJavaObject s_Activity;
- private static AndroidJavaObject s_PermissionService;
- private static AsyncTask s_CurrentRequest = null;
- private static Action s_OnPermissionsRequestFinished;
-
- /// @cond EXCLUDE_FROM_DOXYGEN
- ///
- /// Constructs a new AndroidPermissionsManager.
- ///
- public AndroidPermissionsManager() : base("com.unity3d.plugin.UnityAndroidPermissions$IPermissionRequestResult")
- {
- }
-
- /// @endcond
-
- ///
- /// Checks if an Android permission is granted to the application.
- ///
- /// The full name of the Android permission to check (e.g.
- /// android.permission.CAMERA).
- /// true if permissionName is granted to the application, otherwise
- /// false.
- public static bool IsPermissionGranted(string permissionName)
- {
- if (Application.isEditor)
- {
- return true;
- }
-
- return GetPermissionsService().Call("IsPermissionGranted", GetUnityActivity(), permissionName);
- }
-
- ///
- /// Requests an Android permission from the user.
- ///
- /// The permission to be requested (e.g. android.permission.CAMERA).
- /// An asynchronous task the completes when the user has accepted/rejected the requested permission
- /// and yields a {@link AndroidPermissionsRequestResult} that summarizes the result. If this method is called
- /// when another permissions request is pending null will be returned instead.
- public static AsyncTask RequestPermission(string permissionName)
- {
- if (AndroidPermissionsManager.IsPermissionGranted(permissionName))
- {
- return new AsyncTask(new AndroidPermissionsRequestResult(
- new string[] { permissionName }, new bool[] { true }));
- }
-
- if (s_CurrentRequest != null)
- {
- ARDebug.LogError("Attempted to make simultaneous Android permissions requests.");
- return null;
- }
-
- GetPermissionsService().Call("RequestPermissionAsync", GetUnityActivity(),
- new[] { permissionName }, GetInstance());
- s_CurrentRequest = new AsyncTask(out s_OnPermissionsRequestFinished);
-
- return s_CurrentRequest;
- }
-
- /// @cond EXCLUDE_FROM_DOXYGEN
- ///
- /// Callback fired when a permission is granted.
- ///
- /// The name of the permission that was granted.
- public virtual void OnPermissionGranted(string permissionName)
- {
- _OnPermissionResult(permissionName, true);
- }
-
- /// @endcond
-
- /// @cond EXCLUDE_FROM_DOXYGEN
- ///
- /// Callback fired when a permission is denied.
- ///
- /// The name of the permission that was denied.
- public virtual void OnPermissionDenied(string permissionName)
- {
- _OnPermissionResult(permissionName, false);
- }
-
- /// @endcond
-
- /// @cond EXCLUDE_FROM_DOXYGEN
- ///
- /// Callback fired on an Android activity result (unused part of UnityAndroidPermissions interface).
- ///
- public virtual void OnActivityResult()
- {
- }
-
- private static AndroidPermissionsManager GetInstance()
- {
- if (s_Instance == null)
- {
- s_Instance = new AndroidPermissionsManager();
- }
-
- return s_Instance;
- }
-
- private static AndroidJavaObject GetUnityActivity()
- {
- if (s_Activity == null)
- {
- AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
- s_Activity = unityPlayer.GetStatic("currentActivity");
- }
-
- return s_Activity;
- }
-
- private static AndroidJavaObject GetPermissionsService()
- {
- if (s_PermissionService == null)
- {
- s_PermissionService = new AndroidJavaObject("com.unity3d.plugin.UnityAndroidPermissions");
- }
-
- return s_PermissionService;
- }
-
- /// @endcond
-
- ///
- /// Callback fired on an Android permission result.
- ///
- /// The name of the permission.
- /// If permission is granted or not.
- private void _OnPermissionResult(string permissionName, bool granted)
- {
- if (s_OnPermissionsRequestFinished == null)
- {
- Debug.LogErrorFormat("AndroidPermissionsManager received an unexpected permissions result {0}",
- permissionName);
- return;
- }
-
- // Cache completion method and reset request state.
- var onRequestFinished = s_OnPermissionsRequestFinished;
- s_CurrentRequest = null;
- s_OnPermissionsRequestFinished = null;
-
- onRequestFinished(new AndroidPermissionsRequestResult(new string[] { permissionName },
- new bool[] { granted }));
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/AndroidPermissionsManager.cs.meta b/Assets/GoogleARCore/SDK/Scripts/AndroidPermissionsManager.cs.meta
deleted file mode 100644
index 6fb2f47bf..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/AndroidPermissionsManager.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: c0726c8b601b041069fad86754497703
-timeCreated: 1502330118
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/AndroidPermissionsRequestResult.cs b/Assets/GoogleARCore/SDK/Scripts/AndroidPermissionsRequestResult.cs
deleted file mode 100644
index 55f2ce56b..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/AndroidPermissionsRequestResult.cs
+++ /dev/null
@@ -1,76 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCore
-{
- using GoogleARCoreInternal;
- using UnityEngine;
-
- ///
- /// Structure holding data summarizing the result of an Android permissions request.
- ///
- public struct AndroidPermissionsRequestResult
- {
- ///
- /// Constructs a new AndroidPermissionsRequestResult.
- ///
- /// The value for PermissionNames.
- /// The value for GrantResults.
- public AndroidPermissionsRequestResult(string[] permissionNames, bool[] grantResults)
- {
- PermissionNames = permissionNames;
- GrantResults = grantResults;
- }
-
- ///
- /// Gets a collection of permissions requested.
- ///
- public string[] PermissionNames { get; private set; }
-
- ///
- /// Gets a collection of results corresponding to {@link PermissionNames}.
- ///
- public bool[] GrantResults { get; private set; }
-
- ///
- /// Gets a value indicating whether all permissions are granted.
- ///
- public bool IsAllGranted
- {
- get
- {
- if (PermissionNames == null || GrantResults == null)
- {
- return false;
- }
-
- for (int i = 0; i < GrantResults.Length; i++)
- {
- if (!GrantResults[i])
- {
- return false;
- }
- }
-
- return true;
- }
- }
- }
-}
\ No newline at end of file
diff --git a/Assets/GoogleARCore/SDK/Scripts/AndroidPermissionsRequestResult.cs.meta b/Assets/GoogleARCore/SDK/Scripts/AndroidPermissionsRequestResult.cs.meta
deleted file mode 100644
index 6d1418b13..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/AndroidPermissionsRequestResult.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: d7676570d2869469a8e061cbd3d90c9f
-timeCreated: 1502330118
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api.meta b/Assets/GoogleARCore/SDK/Scripts/Api.meta
deleted file mode 100644
index 9f5462908..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 11813694e8abb437eb9ef46ed1cc67c5
-folderAsset: yes
-timeCreated: 1502400396
-licenseType: Free
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/AnchorApi.cs b/Assets/GoogleARCore/SDK/Scripts/Api/AnchorApi.cs
deleted file mode 100644
index 266e9c5c8..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/AnchorApi.cs
+++ /dev/null
@@ -1,124 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System;
- using System.Collections.Generic;
- using System.Diagnostics.CodeAnalysis;
- using System.Runtime.InteropServices;
- using GoogleARCore;
- using UnityEngine;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public class AnchorApi
- {
- private NativeSession m_NativeSession;
-
- public AnchorApi(NativeSession nativeSession)
- {
- m_NativeSession = nativeSession;
- }
-
- public Pose GetPose(IntPtr anchorHandle)
- {
- var poseHandle = m_NativeSession.PoseApi.Create();
- ExternApi.ArAnchor_getPose(m_NativeSession.SessionHandle, anchorHandle, poseHandle);
- Pose resultPose = m_NativeSession.PoseApi.ExtractPoseValue(poseHandle);
- m_NativeSession.PoseApi.Destroy(poseHandle);
- return resultPose;
- }
-
- public TrackingState GetTrackingState(IntPtr anchorHandle)
- {
- ApiTrackingState trackingState = ApiTrackingState.Stopped;
- ExternApi.ArAnchor_getTrackingState(m_NativeSession.SessionHandle, anchorHandle,
- ref trackingState);
- return trackingState.ToTrackingState();
- }
-
- public void Detach(IntPtr anchorHandle)
- {
- ExternApi.ArAnchor_detach(m_NativeSession.SessionHandle, anchorHandle);
- }
-
- public void Release(IntPtr anchorHandle)
- {
- ExternApi.ArAnchor_release(anchorHandle);
- }
-
- public IntPtr CreateList()
- {
- IntPtr listHandle = IntPtr.Zero;
- ExternApi.ArAnchorList_create(m_NativeSession.SessionHandle, ref listHandle);
- return listHandle;
- }
-
- public int GetListSize(IntPtr anchorListHandle)
- {
- int size = 0;
- ExternApi.ArAnchorList_getSize(m_NativeSession.SessionHandle, anchorListHandle, ref size);
- return size;
- }
-
- public IntPtr AcquireListItem(IntPtr anchorListHandle, int index)
- {
- IntPtr anchorHandle = IntPtr.Zero;
- ExternApi.ArAnchorList_acquireItem(m_NativeSession.SessionHandle, anchorListHandle, index,
- ref anchorHandle);
- return anchorHandle;
- }
-
- public void DestroyList(IntPtr anchorListHandle)
- {
- ExternApi.ArAnchorList_destroy(anchorListHandle);
- }
-
- private struct ExternApi
- {
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArAnchor_getPose(IntPtr sessionHandle, IntPtr anchorHandle, IntPtr poseHandle);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArAnchor_getTrackingState(IntPtr sessionHandle, IntPtr anchorHandle,
- ref ApiTrackingState trackingState);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArAnchor_detach(IntPtr sessionHandle, IntPtr anchorHandle);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArAnchor_release(IntPtr anchorHandle);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArAnchorList_create(IntPtr sessionHandle, ref IntPtr outputAnchorListHandle);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArAnchorList_destroy(IntPtr anchorListHandle);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArAnchorList_getSize(IntPtr sessionHandle, IntPtr anchorListHandle, ref int outputSize);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArAnchorList_acquireItem(IntPtr sessionHandle, IntPtr anchorListHandle, int index,
- ref IntPtr outputAnchorHandle);
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/AnchorApi.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/AnchorApi.cs.meta
deleted file mode 100644
index 59b729114..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/AnchorApi.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 0301646575b004ceca83800c3b3c9f06
-timeCreated: 1509305507
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiApkInstallStatusExtensions.cs b/Assets/GoogleARCore/SDK/Scripts/Api/ApiApkInstallStatusExtensions.cs
deleted file mode 100644
index a719f1723..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiApkInstallStatusExtensions.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System.Collections.Generic;
- using System.Diagnostics.CodeAnalysis;
- using GoogleARCore;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public static class ApiApkInstallStatusExtensions
- {
- public static ApkInstallationStatus ToApkInstallationStatus(this ApiApkInstallationStatus apiStatus)
- {
- switch (apiStatus)
- {
- case ApiApkInstallationStatus.Uninitialized:
- return ApkInstallationStatus.Uninitialized;
- case ApiApkInstallationStatus.Requested:
- return ApkInstallationStatus.Requested;
- case ApiApkInstallationStatus.Success:
- return ApkInstallationStatus.Success;
- case ApiApkInstallationStatus.Error:
- return ApkInstallationStatus.Error;
- case ApiApkInstallationStatus.ErrorDeviceNotCompatible:
- return ApkInstallationStatus.ErrorDeviceNotCompatible;
- case ApiApkInstallationStatus.ErrorAndroidVersionNotSupported:
- return ApkInstallationStatus.ErrorAndroidVersionNotSupported;
- case ApiApkInstallationStatus.ErrorUserDeclined:
- return ApkInstallationStatus.ErrorUserDeclined;
- default:
- UnityEngine.Debug.LogErrorFormat("Unexpected ApiApkInstallStatus status {0}", apiStatus);
- return ApkInstallationStatus.Error;
- }
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiApkInstallStatusExtensions.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/ApiApkInstallStatusExtensions.cs.meta
deleted file mode 100644
index 2cac95948..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiApkInstallStatusExtensions.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 3345208dea93f4ca6a361f8852a87704
-timeCreated: 1517873495
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiApkInstallationStatus.cs b/Assets/GoogleARCore/SDK/Scripts/Api/ApiApkInstallationStatus.cs
deleted file mode 100644
index 5cb248468..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiApkInstallationStatus.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System.Diagnostics.CodeAnalysis;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public enum ApiApkInstallationStatus
- {
- Uninitialized = 0,
- Requested = 1,
- Success = 100,
- Error = 200,
- ErrorDeviceNotCompatible = 201,
- ErrorAndroidVersionNotSupported = 202,
- ErrorUserDeclined = 203,
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiApkInstallationStatus.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/ApiApkInstallationStatus.cs.meta
deleted file mode 100644
index ec82243b8..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiApkInstallationStatus.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 7aa753c5e597b4841b03ea5f7f21326f
-timeCreated: 1517874709
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiArStatus.cs b/Assets/GoogleARCore/SDK/Scripts/Api/ApiArStatus.cs
deleted file mode 100644
index 352de267e..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiArStatus.cs
+++ /dev/null
@@ -1,76 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2016 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System.Collections;
- using System.Diagnostics.CodeAnalysis;
- using UnityEngine;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public enum ApiArStatus
- {
- Success = 0,
-
- // Invalid argument handling: null pointers and invalid enums for void
- // functions are handled by logging and returning best-effort value.
- // Non-void functions additionally return AR_ERROR_INVALID_ARGUMENT.
- ErrorInvalidArgument = -1,
- ErrorFatal = -2,
- ErrorSessionPaused = -3,
- ErrorSessionNotPaused = -4,
- ErrorNotTracking = -5,
- ErrorTextureNotSet = -6,
- ErrorMissingGlContext = -7,
- ErrorUnsupportedConfiguration = -8,
- ErrorCameraPermissionNotGranted = -9,
-
- // Acquire failed because the object being acquired is already released.
- // This happens e.g. if the developer holds an old frame for too long, and
- // then tries to acquire a point cloud from it.
- ErrorDeadlineExceeded = -10,
-
- // Acquire failed because there are too many objects already acquired. For
- // example, the developer may acquire up to N point clouds.
- // N is determined by available resources, and is usually small, e.g. 8.
- // If the developer tries to acquire N+1 point clouds without releasing the
- // previously acquired ones, they will get this error.
- ErrorResourceExhausted = -11,
-
- // Acquire failed because the data isn't available yet for the current
- // frame. For example, acquire the image metadata may fail with this error
- // because the camera hasn't fully started.
- ErrorNotYetAvailable = -12,
-
- UnavailableArCoreNotInstalled = -100,
- UnavailableDeviceNotCompatible = -101,
- UnavailableAndroidVersionNotSupported = -102,
-
- // The ARCore APK currently installed on device is too old and needs to be
- // updated. For example, SDK v2.0.0 when APK is v1.0.0.
- UnavailableApkTooOld = -103,
-
- // The ARCore APK currently installed no longer supports the sdk that the
- // app was built with. For example, SDK v1.0.0 when APK includes support for
- // v2.0.0+.
- UnavailableSdkTooOld = -104,
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiArStatus.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/ApiArStatus.cs.meta
deleted file mode 100644
index e8c2b8eb8..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiArStatus.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 2632806855cc1405ca80cf82ad68f50a
-timeCreated: 1511201582
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiAvailability.cs b/Assets/GoogleARCore/SDK/Scripts/Api/ApiAvailability.cs
deleted file mode 100644
index e4d652cdb..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiAvailability.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System.Diagnostics.CodeAnalysis;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public enum ApiAvailability
- {
- UnknownError = 0,
- UnknownChecking = 1,
- UnknownTimedOut = 2,
- UnsupportedDeviceNotCapable = 100,
- SupportedNotInstalled = 201,
- SupportedApkTooOld = 202,
- SupportedInstalled = 203
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiAvailability.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/ApiAvailability.cs.meta
deleted file mode 100644
index 3d4bcc357..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiAvailability.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: a2ff5d80474fa4dcf979bc5ec9b89ca4
-timeCreated: 1517858100
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiAvailabilityExtensions.cs b/Assets/GoogleARCore/SDK/Scripts/Api/ApiAvailabilityExtensions.cs
deleted file mode 100644
index 70abf8e0b..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiAvailabilityExtensions.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System.Collections.Generic;
- using System.Diagnostics.CodeAnalysis;
- using GoogleARCore;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public static class ApiAvailabilityExtensions
- {
- public static ApkAvailabilityStatus ToApkAvailabilityStatus(this ApiAvailability apiStatus)
- {
- switch (apiStatus)
- {
- case ApiAvailability.UnknownError:
- return ApkAvailabilityStatus.UnknownError;
- case ApiAvailability.UnknownChecking:
- return ApkAvailabilityStatus.UnknownChecking;
- case ApiAvailability.UnknownTimedOut:
- return ApkAvailabilityStatus.UnknownTimedOut;
- case ApiAvailability.UnsupportedDeviceNotCapable:
- return ApkAvailabilityStatus.UnsupportedDeviceNotCapable;
- case ApiAvailability.SupportedNotInstalled:
- return ApkAvailabilityStatus.SupportedNotInstalled;
- case ApiAvailability.SupportedApkTooOld:
- return ApkAvailabilityStatus.SupportedApkTooOld;
- case ApiAvailability.SupportedInstalled:
- return ApkAvailabilityStatus.SupportedInstalled;
- default:
- UnityEngine.Debug.LogErrorFormat("Unexpected ApiAvailability status {0}", apiStatus);
- return ApkAvailabilityStatus.UnknownError;
- }
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiAvailabilityExtensions.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/ApiAvailabilityExtensions.cs.meta
deleted file mode 100644
index 8d50e66d7..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiAvailabilityExtensions.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: da78fe0b9a17c46dea099872f469ccd7
-timeCreated: 1517871435
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiCameraMetadata.cs b/Assets/GoogleARCore/SDK/Scripts/Api/ApiCameraMetadata.cs
deleted file mode 100644
index 9397faffc..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiCameraMetadata.cs
+++ /dev/null
@@ -1,75 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-[module: System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.DocumentationRules",
- "SA1649:FileHeaderFileNameDocumentationMustMatchTypeName", Justification = "Internal.")]
-
-namespace GoogleARCoreInternal
-{
- using System;
- using System.Diagnostics.CodeAnalysis;
- using System.Runtime.InteropServices;
- using UnityEngine;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public enum NdkCameraMetadataType
- {
- Byte = 0,
- Int32 = 1,
- Float = 2,
- Int64 = 3,
- Double = 4,
- Rational = 5,
- NumTypes,
- }
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public enum NdkCameraStatus
- {
- Ok = 0,
- ErrorBase = -10000,
- ErrorUnknown = ErrorBase,
- ErrorInvalidParameter = ErrorBase - 1,
- ErrorMetadataNotFound = ErrorBase - 4,
- }
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- [StructLayout(LayoutKind.Explicit)]
- public struct NdkCameraMetadata
- {
- [FieldOffset(0)]
- [MarshalAs(UnmanagedType.I4)]
- public int Tag;
-
- [FieldOffset(4)]
- [MarshalAs(UnmanagedType.I1)]
- public NdkCameraMetadataType Type;
-
- [FieldOffset(8)]
- [MarshalAs(UnmanagedType.I4)]
- public int Count;
-
- [FieldOffset(12)]
- public IntPtr Value;
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiCameraMetadata.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/ApiCameraMetadata.cs.meta
deleted file mode 100644
index 220e31a8b..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiCameraMetadata.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: bfdd6a8d3f3624cc68c5c22390d84305
-timeCreated: 1511898550
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiConstants.cs b/Assets/GoogleARCore/SDK/Scripts/Api/ApiConstants.cs
deleted file mode 100644
index 6bfa7a5b6..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiConstants.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System;
- using System.Collections.Generic;
- using System.Diagnostics.CodeAnalysis;
- using System.Runtime.InteropServices;
- using GoogleARCore;
- using UnityEngine;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public static class ApiConstants
- {
-#if !UNITY_EDITOR
- public const string ARCoreNativeApi = "arcore_sdk";
- public const string ARCoreShimApi = "arcore_unity_api";
-#else
- public const string ARCoreNativeApi = InstantPreviewManager.InstantPreviewNativeApi;
- public const string ARCoreShimApi = InstantPreviewManager.InstantPreviewNativeApi;
-#endif
-
- // NDK camera API is a system API after Android 24.
- public const string NdkCameraApi = "camera2ndk";
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiConstants.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/ApiConstants.cs.meta
deleted file mode 100644
index 83d208b2f..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiConstants.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 020d4ce00b42e47d2b46e7aa6244bedb
-timeCreated: 1509553365
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiDisplayUvCoords.cs b/Assets/GoogleARCore/SDK/Scripts/Api/ApiDisplayUvCoords.cs
deleted file mode 100644
index 49b4b0b51..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiDisplayUvCoords.cs
+++ /dev/null
@@ -1,54 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System.Diagnostics.CodeAnalysis;
- using System.Runtime.InteropServices;
- using UnityEngine;
-
- ///
- /// UV coordinates for the four corners of the display.
- ///
- [StructLayout(LayoutKind.Sequential)]
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public struct ApiDisplayUvCoords
- {
- ///
- /// Number of floats contained in this struct.
- ///
- public const int NumFloats = 8;
-
- public Vector2 TopLeft;
- public Vector2 TopRight;
- public Vector2 BottomLeft;
- public Vector2 BottomRight;
-
- public ApiDisplayUvCoords(Vector2 topLeft, Vector2 topRight,
- Vector2 bottomLeft, Vector2 bottomRight)
- {
- TopLeft = topLeft;
- TopRight = topRight;
- BottomLeft = bottomLeft;
- BottomRight = bottomRight;
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiDisplayUvCoords.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/ApiDisplayUvCoords.cs.meta
deleted file mode 100644
index 1329ca215..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiDisplayUvCoords.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: ed17abe8b8d17dc44ae53ea9840cd4dc
-timeCreated: 1510289770
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiLightEstimateState.cs b/Assets/GoogleARCore/SDK/Scripts/Api/ApiLightEstimateState.cs
deleted file mode 100644
index 5b49a9437..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiLightEstimateState.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System.Diagnostics.CodeAnalysis;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public enum ApiLightEstimateState
- {
- NotValid = 0,
- Valid = 1,
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiLightEstimateState.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/ApiLightEstimateState.cs.meta
deleted file mode 100644
index 93173fb1b..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiLightEstimateState.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: edc967aa80d4104418f83a5d540219ca
-timeCreated: 1510799673
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiLightEstimateStateExtensions.cs b/Assets/GoogleARCore/SDK/Scripts/Api/ApiLightEstimateStateExtensions.cs
deleted file mode 100644
index 7a714d4d6..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiLightEstimateStateExtensions.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System.Collections.Generic;
- using System.Diagnostics.CodeAnalysis;
- using GoogleARCore;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public static class ApiLightEstimateStateExtensions
- {
- public static LightEstimateState ToLightEstimateState(this ApiLightEstimateState apiState)
- {
- switch (apiState)
- {
- case ApiLightEstimateState.NotValid:
- return LightEstimateState.NotValid;
- case ApiLightEstimateState.Valid:
- return LightEstimateState.Valid;
- default:
- return LightEstimateState.NotValid;
- }
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiLightEstimateStateExtensions.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/ApiLightEstimateStateExtensions.cs.meta
deleted file mode 100644
index 2028905fe..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiLightEstimateStateExtensions.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 7b62de06fc1d1854d8e46bfb414db000
-timeCreated: 1510799673
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiLightEstimationMode.cs b/Assets/GoogleARCore/SDK/Scripts/Api/ApiLightEstimationMode.cs
deleted file mode 100644
index 39b0fcd7f..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiLightEstimationMode.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System.Diagnostics.CodeAnalysis;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public enum ApiLightEstimationMode
- {
- Disabled = 0,
- AmbientIntensity = 1,
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiLightEstimationMode.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/ApiLightEstimationMode.cs.meta
deleted file mode 100644
index e698b6147..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiLightEstimationMode.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 31136b31f422e49a5b4307c1b3bff384
-timeCreated: 1512782847
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiPlaneFindingMode.cs b/Assets/GoogleARCore/SDK/Scripts/Api/ApiPlaneFindingMode.cs
deleted file mode 100644
index 2326ff3cd..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiPlaneFindingMode.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System.Diagnostics.CodeAnalysis;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public enum ApiPlaneFindingMode
- {
- Disabled = 0,
- Horizontal = 1,
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiPlaneFindingMode.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/ApiPlaneFindingMode.cs.meta
deleted file mode 100644
index 36b8a3dbf..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiPlaneFindingMode.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: f21ec92bd25d0434ca6f063262f0ede5
-timeCreated: 1512178510
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiPoseData.cs b/Assets/GoogleARCore/SDK/Scripts/Api/ApiPoseData.cs
deleted file mode 100644
index 70ea6162a..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiPoseData.cs
+++ /dev/null
@@ -1,74 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System.Diagnostics.CodeAnalysis;
- using System.Runtime.InteropServices;
- using UnityEngine;
-
- ///
- /// Pose data container stored in ARCore frame.
- ///
- [StructLayout(LayoutKind.Sequential)]
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public struct ApiPoseData
- {
- [MarshalAs(UnmanagedType.R4)]
- public float Qx;
-
- [MarshalAs(UnmanagedType.R4)]
- public float Qy;
-
- [MarshalAs(UnmanagedType.R4)]
- public float Qz;
-
- [MarshalAs(UnmanagedType.R4)]
- public float Qw;
-
- [MarshalAs(UnmanagedType.R4)]
- public float X;
-
- [MarshalAs(UnmanagedType.R4)]
- public float Y;
-
- [MarshalAs(UnmanagedType.R4)]
- public float Z;
-
- public ApiPoseData(UnityEngine.Pose unityPose)
- {
- ConversionHelper.UnityPoseToApiPose(unityPose, out this);
- }
-
- public UnityEngine.Pose ToUnityPose()
- {
- Pose unityPose;
- ConversionHelper.ApiPoseToUnityPose(this, out unityPose);
- return unityPose;
- }
-
- public override string ToString()
- {
- return string.Format("qx: {0}, qy: {1}, qz: {2}, qw: {3}, x: {4}, y: {5}, z: {6}",
- Qx, Qy, Qz, Qw, X, Y, Z);
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiPoseData.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/ApiPoseData.cs.meta
deleted file mode 100644
index c87ff52c8..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiPoseData.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 2d4a3892884f34b018a13b62fd1615f1
-timeCreated: 1510174272
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiPrestoConfig.cs b/Assets/GoogleARCore/SDK/Scripts/Api/ApiPrestoConfig.cs
deleted file mode 100644
index 76e67235b..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiPrestoConfig.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System.Diagnostics.CodeAnalysis;
- using System.Runtime.InteropServices;
- using GoogleARCore;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- [StructLayout(LayoutKind.Sequential)]
- public struct ApiPrestoConfig
- {
- public ApiUpdateMode UpdateMode;
- public ApiPlaneFindingMode PlaneFindingMode;
- public ApiLightEstimationMode LightEstimationMode;
-
- public ApiPrestoConfig(ARCoreSessionConfig config)
- {
- UpdateMode = config.MatchCameraFramerate ?
- ApiUpdateMode.Blocking : ApiUpdateMode.LatestCameraImage;
- PlaneFindingMode = config.EnablePlaneFinding ?
- ApiPlaneFindingMode.Horizontal : ApiPlaneFindingMode.Disabled;
- LightEstimationMode = config.EnableLightEstimation ?
- ApiLightEstimationMode.AmbientIntensity : ApiLightEstimationMode.Disabled;
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiPrestoConfig.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/ApiPrestoConfig.cs.meta
deleted file mode 100644
index 66775228e..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiPrestoConfig.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: d8a0d471a5e1c486fb61de90a976a6d3
-timeCreated: 1518035095
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiPrestoStatus.cs b/Assets/GoogleARCore/SDK/Scripts/Api/ApiPrestoStatus.cs
deleted file mode 100644
index 85bdacc6a..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiPrestoStatus.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System.Diagnostics.CodeAnalysis;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public enum ApiPrestoStatus
- {
- Uninitialized = 0,
- RequestingApkInstall = 1,
- RequestingPermission = 2,
-
- Resumed = 100,
- ResumedNotTracking = 101,
- Paused = 102,
-
- ErrorFatal = 200,
- ErrorApkNotAvailable = 201,
- ErrorPermissionNotGranted = 202,
- ErrorSessionConfigurationNotSupported = 203,
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiPrestoStatus.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/ApiPrestoStatus.cs.meta
deleted file mode 100644
index 6125bc008..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiPrestoStatus.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: f77bf9ab0d39f4875b26d70fce838285
-timeCreated: 1513291504
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiPrestoStatusExtensions.cs b/Assets/GoogleARCore/SDK/Scripts/Api/ApiPrestoStatusExtensions.cs
deleted file mode 100644
index d223292f4..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiPrestoStatusExtensions.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System.Diagnostics.CodeAnalysis;
- using GoogleARCore;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public static class ApiPrestoStatusExtensions
- {
- public static SessionStatus ToSessionStatus(this ApiPrestoStatus prestoStatus)
- {
- switch (prestoStatus)
- {
- case ApiPrestoStatus.Uninitialized:
- return SessionStatus.None;
- case ApiPrestoStatus.RequestingApkInstall:
- case ApiPrestoStatus.RequestingPermission:
- return SessionStatus.Initializing;
- case ApiPrestoStatus.Resumed:
- return SessionStatus.Tracking;
- case ApiPrestoStatus.ResumedNotTracking:
- return SessionStatus.LostTracking;
- case ApiPrestoStatus.Paused:
- return SessionStatus.NotTracking;
- case ApiPrestoStatus.ErrorFatal:
- return SessionStatus.FatalError;
- case ApiPrestoStatus.ErrorApkNotAvailable:
- return SessionStatus.ErrorApkNotAvailable;
- case ApiPrestoStatus.ErrorPermissionNotGranted:
- return SessionStatus.ErrorPermissionNotGranted;
- case ApiPrestoStatus.ErrorSessionConfigurationNotSupported:
- return SessionStatus.ErrorSessionConfigurationNotSupported;
- default:
- UnityEngine.Debug.LogErrorFormat("Unexpected presto status {0}", prestoStatus);
- return SessionStatus.FatalError;
- }
- }
- }
-}
\ No newline at end of file
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiPrestoStatusExtensions.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/ApiPrestoStatusExtensions.cs.meta
deleted file mode 100644
index 1a53f6ab2..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiPrestoStatusExtensions.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 20257a5d02b574ec8a372bb9e319d8b3
-timeCreated: 1513294266
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackableType.cs b/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackableType.cs
deleted file mode 100644
index 58f6d662f..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackableType.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System.Diagnostics.CodeAnalysis;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public enum ApiTrackableType
- {
- Invalid = 0,
- BaseTrackable = 0x41520100,
- Plane = 0x41520101,
- Point = 0x41520102,
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackableType.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackableType.cs.meta
deleted file mode 100644
index d4fc32d87..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackableType.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: b8348fa5338bd4e8abfa9ebc30d296fb
-timeCreated: 1509300062
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackableTypeExtensions.cs b/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackableTypeExtensions.cs
deleted file mode 100644
index 0ab20884d..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackableTypeExtensions.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System;
- using System.Diagnostics.CodeAnalysis;
- using GoogleARCore;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public static class ApiTrackableTypeExtensions
- {
- public static ApiTrackableType GetApiTrackableType(this Type type)
- {
- if (type == typeof(TrackedPlane))
- {
- return ApiTrackableType.Plane;
- }
- else if (type == typeof(Trackable))
- {
- return ApiTrackableType.BaseTrackable;
- }
- else
- {
- return ApiTrackableType.Invalid;
- }
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackableTypeExtensions.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackableTypeExtensions.cs.meta
deleted file mode 100644
index 87c91779b..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackableTypeExtensions.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 9bc367d3f7ffd434dae127473b338fd4
-timeCreated: 1510614135
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackedPointOrientationMode.cs b/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackedPointOrientationMode.cs
deleted file mode 100644
index fdc72ad8b..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackedPointOrientationMode.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System.Diagnostics.CodeAnalysis;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public enum ApiTrackedPointOrientationMode
- {
- Identity = 0,
- SurfaceNormal = 1,
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackedPointOrientationMode.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackedPointOrientationMode.cs.meta
deleted file mode 100644
index ac3c10cfb..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackedPointOrientationMode.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 1e55289de34ec44b191ed1bdc5b17c9d
-timeCreated: 1517185900
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackedPointOrientationModeExtensions.cs b/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackedPointOrientationModeExtensions.cs
deleted file mode 100644
index ef3a7668b..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackedPointOrientationModeExtensions.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System;
- using System.Diagnostics.CodeAnalysis;
- using GoogleARCore;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public static class ApiTrackedPointOrientationModeExtensions
- {
- public static TrackedPointOrientationMode ToTrackedPointOrientationMode(
- this ApiTrackedPointOrientationMode apiMode)
- {
- switch (apiMode)
- {
- case ApiTrackedPointOrientationMode.Identity:
- return TrackedPointOrientationMode.Identity;
- case ApiTrackedPointOrientationMode.SurfaceNormal:
- return TrackedPointOrientationMode.SurfaceNormal;
- default:
- ARDebug.LogError("Invalid value for ApiTrackedPointOrientationMode.");
- return TrackedPointOrientationMode.Identity;
- }
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackedPointOrientationModeExtensions.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackedPointOrientationModeExtensions.cs.meta
deleted file mode 100644
index c73b189fc..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackedPointOrientationModeExtensions.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: f7f21e3757d39475aae8f4a13d02253a
-timeCreated: 1517185900
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackingState.cs b/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackingState.cs
deleted file mode 100644
index 9d3f0db71..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackingState.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System.Diagnostics.CodeAnalysis;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public enum ApiTrackingState
- {
- Tracking = 0,
- Paused = 1,
- Stopped = 2,
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackingState.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackingState.cs.meta
deleted file mode 100644
index 5ce346258..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackingState.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 226925a61d2444e8d9a12435697ce770
-timeCreated: 1510543828
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackingStateExtensions.cs b/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackingStateExtensions.cs
deleted file mode 100644
index f7121de9c..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackingStateExtensions.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System.Collections.Generic;
- using System.Diagnostics.CodeAnalysis;
- using GoogleARCore;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public static class ApiTrackingStateExtensions
- {
- public static TrackingState ToTrackingState(this ApiTrackingState apiTrackingState)
- {
- switch (apiTrackingState)
- {
- case ApiTrackingState.Tracking:
- return TrackingState.Tracking;
- case ApiTrackingState.Paused:
- return TrackingState.Paused;
- case ApiTrackingState.Stopped:
- return TrackingState.Stopped;
- default:
- return TrackingState.Stopped;
- }
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackingStateExtensions.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackingStateExtensions.cs.meta
deleted file mode 100644
index 86175fda4..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiTrackingStateExtensions.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: e227d0e11c8e0498a88231ab7e5f9da8
-timeCreated: 1510610474
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiUpdateMode.cs b/Assets/GoogleARCore/SDK/Scripts/Api/ApiUpdateMode.cs
deleted file mode 100644
index c4f9a6a2b..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiUpdateMode.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System.Diagnostics.CodeAnalysis;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public enum ApiUpdateMode
- {
- Blocking = 0,
- LatestCameraImage = 1,
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/ApiUpdateMode.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/ApiUpdateMode.cs.meta
deleted file mode 100644
index e4a3a0cb2..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/ApiUpdateMode.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 9d36ec8d5b9b14aefb9f136006e51d6a
-timeCreated: 1510876906
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/CameraApi.cs b/Assets/GoogleARCore/SDK/Scripts/Api/CameraApi.cs
deleted file mode 100644
index aadf63a4e..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/CameraApi.cs
+++ /dev/null
@@ -1,94 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System;
- using System.Collections.Generic;
- using System.Diagnostics.CodeAnalysis;
- using System.Runtime.InteropServices;
- using GoogleARCore;
- using UnityEngine;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public class CameraApi
- {
- private NativeSession m_NativeSession;
-
- public CameraApi(NativeSession nativeSession)
- {
- m_NativeSession = nativeSession;
- }
-
- public TrackingState GetTrackingState(IntPtr cameraHandle)
- {
- ApiTrackingState apiTrackingState = ApiTrackingState.Stopped;
- ExternApi.ArCamera_getTrackingState(m_NativeSession.SessionHandle,
- cameraHandle, ref apiTrackingState);
- return apiTrackingState.ToTrackingState();
- }
-
- public Pose GetPose(IntPtr cameraHandle)
- {
- if (cameraHandle == IntPtr.Zero)
- {
- return Pose.identity;
- }
-
- IntPtr poseHandle = m_NativeSession.PoseApi.Create();
- ExternApi.ArCamera_getDisplayOrientedPose(m_NativeSession.SessionHandle, cameraHandle,
- poseHandle);
- Pose resultPose = m_NativeSession.PoseApi.ExtractPoseValue(poseHandle);
- m_NativeSession.PoseApi.Destroy(poseHandle);
- return resultPose;
- }
-
- public Matrix4x4 GetProjectionMatrix(IntPtr cameraHandle, float near, float far)
- {
- Matrix4x4 matrix = Matrix4x4.identity;
- ExternApi.ArCamera_getProjectionMatrix(m_NativeSession.SessionHandle, cameraHandle,
- near, far, ref matrix);
- return matrix;
- }
-
- public void Release(IntPtr cameraHandle)
- {
- ExternApi.ArCamera_release(cameraHandle);
- }
-
- private struct ExternApi
- {
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArCamera_getTrackingState(IntPtr sessionHandle, IntPtr cameraHandle,
- ref ApiTrackingState outTrackingState);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArCamera_getDisplayOrientedPose(IntPtr sessionHandle, IntPtr cameraHandle, IntPtr outPose);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArCamera_getProjectionMatrix(IntPtr sessionHandle, IntPtr cameraHandle,
- float near, float far, ref Matrix4x4 outMatrix);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArCamera_release(IntPtr cameraHandle);
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/CameraApi.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/CameraApi.cs.meta
deleted file mode 100644
index 299bfef05..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/CameraApi.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 3fdb35ceae7cf491a978d2f4a1c45f2c
-timeCreated: 1510257333
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/CameraMetadataApi.cs b/Assets/GoogleARCore/SDK/Scripts/Api/CameraMetadataApi.cs
deleted file mode 100644
index bf92df7d5..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/CameraMetadataApi.cs
+++ /dev/null
@@ -1,155 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System;
- using System.Collections.Generic;
- using System.Diagnostics.CodeAnalysis;
- using System.Runtime.InteropServices;
- using GoogleARCore;
- using UnityEngine;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public class CameraMetadataApi
- {
- private NativeSession m_NativeSession;
-
- public CameraMetadataApi(NativeSession nativeSession)
- {
- m_NativeSession = nativeSession;
- }
-
- public void Release(IntPtr arCameraMetadataHandle)
- {
- ExternApi.ArImageMetadata_release(arCameraMetadataHandle);
- }
-
- public bool TryGetValues(IntPtr cameraMetadataHandle,
- CameraMetadataTag tag, List resultList)
- {
- IntPtr ndkMetadataHandle = IntPtr.Zero;
- ExternApi.ArImageMetadata_getNdkCameraMetadata(m_NativeSession.SessionHandle,
- cameraMetadataHandle, ref ndkMetadataHandle);
-
- resultList.Clear();
- NdkCameraMetadata entry = new NdkCameraMetadata();
- NdkCameraStatus status = ExternApi.ACameraMetadata_getConstEntry(ndkMetadataHandle, tag, ref entry);
- if (status != NdkCameraStatus.Ok)
- {
- ARDebug.LogErrorFormat("ACameraMetadata_getConstEntry error with native camera error code: {0}",
- status);
- return false;
- }
-
- for (int i = 0; i < entry.Count; i++)
- {
- switch (entry.Type)
- {
- case NdkCameraMetadataType.Byte:
- sbyte byteValue = (sbyte)Marshal.PtrToStructure(
- MarshalingHelper.GetPtrToUnmanagedArrayElement(entry.Value, i),
- typeof(sbyte));
- resultList.Add(new CameraMetadataValue(byteValue));
- break;
- case NdkCameraMetadataType.Int32:
- int intValue = (int)Marshal.PtrToStructure(
- MarshalingHelper.GetPtrToUnmanagedArrayElement(entry.Value, i),
- typeof(int));
- resultList.Add(new CameraMetadataValue(intValue));
- break;
- case NdkCameraMetadataType.Float:
- float floatValue = (float)Marshal.PtrToStructure(
- MarshalingHelper.GetPtrToUnmanagedArrayElement(entry.Value, i),
- typeof(float));
- resultList.Add(new CameraMetadataValue(floatValue));
- break;
- case NdkCameraMetadataType.Int64:
- long longValue = (long)Marshal.PtrToStructure(
- MarshalingHelper.GetPtrToUnmanagedArrayElement(entry.Value, i),
- typeof(long));
- resultList.Add(new CameraMetadataValue(longValue));
- break;
- case NdkCameraMetadataType.Double:
- double doubleValue = (double)Marshal.PtrToStructure(
- MarshalingHelper.GetPtrToUnmanagedArrayElement(entry.Value, i),
- typeof(double));
- resultList.Add(new CameraMetadataValue(doubleValue));
- break;
- case NdkCameraMetadataType.Rational:
- CameraMetadataRational rationalValue = (CameraMetadataRational)Marshal.PtrToStructure(
- MarshalingHelper.GetPtrToUnmanagedArrayElement(entry.Value, i),
- typeof(CameraMetadataRational));
- resultList.Add(new CameraMetadataValue(rationalValue));
- break;
- default:
- return false;
- }
- }
-
- return true;
- }
-
- public bool GetAllCameraMetadataTags(IntPtr cameraMetadataHandle, List resultList)
- {
- IntPtr ndkMetadataHandle = IntPtr.Zero;
- ExternApi.ArImageMetadata_getNdkCameraMetadata(m_NativeSession.SessionHandle,
- cameraMetadataHandle, ref ndkMetadataHandle);
-
- IntPtr tagsHandle = IntPtr.Zero;
- int tagsCount = 0;
- NdkCameraStatus status = ExternApi.ACameraMetadata_getAllTags(ndkMetadataHandle, ref tagsCount, ref tagsHandle);
- if (status != NdkCameraStatus.Ok)
- {
- ARDebug.LogErrorFormat("ACameraMetadata_getAllTags error with native camera error code: {0}",
- status);
- return false;
- }
-
- for (int i = 0; i < tagsCount; i++)
- {
- resultList.Add((CameraMetadataTag)Marshal.PtrToStructure(
- MarshalingHelper.GetPtrToUnmanagedArrayElement(tagsHandle, i),
- typeof(int)));
- }
-
- return true;
- }
-
- private struct ExternApi
- {
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArImageMetadata_getNdkCameraMetadata(IntPtr session, IntPtr image_metadata,
- ref IntPtr out_ndk_metadata);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArImageMetadata_release(IntPtr metadata);
-
- [DllImport(ApiConstants.NdkCameraApi)]
- public static extern NdkCameraStatus ACameraMetadata_getConstEntry(IntPtr ndkCameraMetadata,
- CameraMetadataTag tag, ref NdkCameraMetadata entry);
-
- [DllImport(ApiConstants.NdkCameraApi)]
- public static extern NdkCameraStatus ACameraMetadata_getAllTags(IntPtr ndkCameraMetadata,
- ref int numEntries, ref IntPtr tags);
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/CameraMetadataApi.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/CameraMetadataApi.cs.meta
deleted file mode 100644
index e73dd53cc..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/CameraMetadataApi.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: d972b11e53fb14a5cb38b3b81e420a7a
-timeCreated: 1511395337
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/FrameApi.cs b/Assets/GoogleARCore/SDK/Scripts/Api/FrameApi.cs
deleted file mode 100644
index a92eee9d0..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/FrameApi.cs
+++ /dev/null
@@ -1,144 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System;
- using System.Collections.Generic;
- using System.Diagnostics.CodeAnalysis;
- using System.Runtime.InteropServices;
- using GoogleARCore;
- using UnityEngine;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public class FrameApi
- {
- private NativeSession m_NativeSession;
-
- public FrameApi(NativeSession nativeSession)
- {
- m_NativeSession = nativeSession;
- }
-
- public long GetTimestamp()
- {
- long timestamp = 0;
- ExternApi.ArFrame_getTimestamp(m_NativeSession.SessionHandle, m_NativeSession.FrameHandle,
- ref timestamp);
- return timestamp;
- }
-
- public IntPtr AcquireCamera()
- {
- IntPtr cameraHandle = IntPtr.Zero;
- ExternApi.ArFrame_acquireCamera(m_NativeSession.SessionHandle, m_NativeSession.FrameHandle,
- ref cameraHandle);
- return cameraHandle;
- }
-
- public IntPtr AcquirePointCloud()
- {
- IntPtr pointCloudHandle = IntPtr.Zero;
- ExternApi.ArFrame_acquirePointCloud(m_NativeSession.SessionHandle, m_NativeSession.FrameHandle,
- ref pointCloudHandle);
- return pointCloudHandle;
- }
-
- public IntPtr AcquireImageMetadata()
- {
- IntPtr imageMetadataHandle = IntPtr.Zero;
- ExternApi.ArFrame_acquireImageMetadata(m_NativeSession.SessionHandle, m_NativeSession.FrameHandle,
- ref imageMetadataHandle);
- return imageMetadataHandle;
- }
-
- public LightEstimate GetLightEstimate()
- {
- IntPtr lightEstimateHandle = m_NativeSession.LightEstimateApi.Create();
- ExternApi.ArFrame_getLightEstimate(m_NativeSession.SessionHandle, m_NativeSession.FrameHandle,
- lightEstimateHandle);
-
- LightEstimateState state = m_NativeSession.LightEstimateApi.GetState(lightEstimateHandle);
- float pixelIntensity = m_NativeSession.LightEstimateApi.GetPixelIntensity(lightEstimateHandle);
-
- m_NativeSession.LightEstimateApi.Destroy(lightEstimateHandle);
-
- return new LightEstimate(state, pixelIntensity);
- }
-
- public void TransformDisplayUvCoords(ref ApiDisplayUvCoords uv)
- {
- ApiDisplayUvCoords uvOut = new ApiDisplayUvCoords();
- ExternApi.ArFrame_transformDisplayUvCoords(m_NativeSession.SessionHandle, m_NativeSession.FrameHandle,
- ApiDisplayUvCoords.NumFloats, ref uv, ref uvOut);
-
- uv = uvOut;
- }
-
- public void GetUpdatedTrackables(List trackables)
- {
- IntPtr listHandle = m_NativeSession.TrackableListApi.Create();
- ExternApi.ArFrame_getUpdatedTrackables(m_NativeSession.SessionHandle, m_NativeSession.FrameHandle,
- ApiTrackableType.BaseTrackable, listHandle);
-
- trackables.Clear();
- int count = m_NativeSession.TrackableListApi.GetCount(listHandle);
- for (int i = 0; i < count; i++)
- {
- IntPtr trackableHandle = m_NativeSession.TrackableListApi.AcquireItem(listHandle, i);
- trackables.Add(m_NativeSession.TrackableFactory(trackableHandle));
- }
-
- m_NativeSession.TrackableListApi.Destroy(listHandle);
- }
-
- private struct ExternApi
- {
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArFrame_getTimestamp(IntPtr sessionHandle,
- IntPtr frame, ref long timestamp);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern int ArFrame_acquireCamera(IntPtr sessionHandle, IntPtr frameHandle,
- ref IntPtr cameraHandle);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern int ArFrame_acquirePointCloud(IntPtr sessionHandle, IntPtr frameHandle,
- ref IntPtr pointCloudHandle);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArFrame_transformDisplayUvCoords(IntPtr session, IntPtr frame,
- int numElements, ref ApiDisplayUvCoords uvsIn, ref ApiDisplayUvCoords uvsOut);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArFrame_getUpdatedTrackables(IntPtr sessionHandle, IntPtr frameHandle,
- ApiTrackableType filterType, IntPtr outTrackableList);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArFrame_getLightEstimate(IntPtr sessionHandle, IntPtr frameHandle,
- IntPtr lightEstimateHandle);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArFrame_acquireImageMetadata(IntPtr sessionHandle, IntPtr frameHandle,
- ref IntPtr outMetadata);
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/FrameApi.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/FrameApi.cs.meta
deleted file mode 100644
index c000f6349..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/FrameApi.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 8343d1d4c171649e18d1c562131e1a22
-timeCreated: 1509578063
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/HitTestApi.cs b/Assets/GoogleARCore/SDK/Scripts/Api/HitTestApi.cs
deleted file mode 100644
index 0f6899503..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/HitTestApi.cs
+++ /dev/null
@@ -1,180 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System;
- using System.Collections.Generic;
- using System.Diagnostics.CodeAnalysis;
- using System.Runtime.InteropServices;
- using GoogleARCore;
- using UnityEngine;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public class HitTestApi
- {
- private NativeSession m_NativeSession;
-
- public HitTestApi(NativeSession nativeSession)
- {
- m_NativeSession = nativeSession;
- }
-
- public bool Raycast(IntPtr frameHandle, float x, float y, TrackableHitFlags filter,
- List outHitList, bool isOnlyQueryingNearestHit)
- {
- outHitList.Clear();
-
- IntPtr hitResultListHandle = IntPtr.Zero;
- ExternApi.ArHitResultList_create(m_NativeSession.SessionHandle, ref hitResultListHandle);
- ExternApi.ArFrame_hitTest(m_NativeSession.SessionHandle, frameHandle, x, y, hitResultListHandle);
-
- int hitListSize = 0;
- ExternApi.ArHitResultList_getSize(m_NativeSession.SessionHandle, hitResultListHandle, ref hitListSize);
-
- for (int i = 0; i < hitListSize; i++)
- {
- TrackableHit trackableHit;
- if (HitResultListGetItemAt(hitResultListHandle, i, out trackableHit))
- {
- if ((filter & trackableHit.Flags) != TrackableHitFlags.None)
- {
- outHitList.Add(trackableHit);
- }
- }
- }
-
- ExternApi.ArHitResultList_destroy(hitResultListHandle);
- return outHitList.Count != 0;
- }
-
- private bool HitResultListGetItemAt(IntPtr hitResultListHandle, int index, out TrackableHit outTrackableHit)
- {
- outTrackableHit = new TrackableHit();
-
- // Query the hit result.
- IntPtr hitResultHandle = IntPtr.Zero;
- ExternApi.ArHitResult_create(m_NativeSession.SessionHandle, ref hitResultHandle);
- ExternApi.ArHitResultList_getItem(m_NativeSession.SessionHandle, hitResultListHandle, index, hitResultHandle);
- if (hitResultHandle == IntPtr.Zero)
- {
- ExternApi.ArHitResult_destroy(hitResultHandle);
- return false;
- }
-
- // Query the pose from hit result.
- IntPtr poseHandle = m_NativeSession.PoseApi.Create();
- ExternApi.ArHitResult_getHitPose(m_NativeSession.SessionHandle, hitResultHandle, poseHandle);
- Pose hitPose = m_NativeSession.PoseApi.ExtractPoseValue(poseHandle);
-
- // Query the distance from hit result.
- float hitDistance = 0.0f;
- ExternApi.ArHitResult_getDistance(m_NativeSession.SessionHandle, hitResultHandle, ref hitDistance);
-
- // Query the trackable from hit result.
- IntPtr trackableHandle = IntPtr.Zero;
- ExternApi.ArHitResult_acquireTrackable(m_NativeSession.SessionHandle, hitResultHandle, ref trackableHandle);
- Trackable trackable = m_NativeSession.TrackableFactory(trackableHandle);
- m_NativeSession.TrackableApi.Release(trackableHandle);
-
- // Calculate trackable hit flags.
- TrackableHitFlags flag = TrackableHitFlags.None;
- if (trackable == null)
- {
- Debug.Log("Could not create trackable from hit result.");
- m_NativeSession.PoseApi.Destroy(poseHandle);
- return false;
- }
- else if (trackable is TrackedPlane)
- {
- if (m_NativeSession.PlaneApi.IsPoseInPolygon(trackableHandle, poseHandle))
- {
- flag |= TrackableHitFlags.PlaneWithinPolygon;
- }
-
- if (m_NativeSession.PlaneApi.IsPoseInExtents(trackableHandle, poseHandle))
- {
- flag |= TrackableHitFlags.PlaneWithinBounds;
- }
-
- flag |= TrackableHitFlags.PlaneWithinInfinity;
- }
- else if (trackable is TrackedPoint)
- {
- var point = trackable as TrackedPoint;
- flag |= TrackableHitFlags.FeaturePoint;
- if (point.OrientationMode == TrackedPointOrientationMode.SurfaceNormal)
- {
- flag |= TrackableHitFlags.FeaturePointWithSurfaceNormal;
- }
- }
- else
- {
- m_NativeSession.PoseApi.Destroy(poseHandle);
- return false;
- }
-
- outTrackableHit = new TrackableHit(hitPose, hitDistance, flag, trackable);
- m_NativeSession.PoseApi.Destroy(poseHandle);
- return true;
- }
-
- private struct ExternApi
- {
- // Hit test function.
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArFrame_hitTest(IntPtr session,
- IntPtr frame, float pixel_x, float pixel_y, IntPtr hit_result_list);
-
- // Hit list functions.
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArHitResultList_create(IntPtr session, ref IntPtr out_hit_result_list);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArHitResultList_destroy(IntPtr hit_result_list);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArHitResultList_getSize(IntPtr session, IntPtr hit_result_list, ref int out_size);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArHitResultList_getItem(IntPtr session, IntPtr hit_result_list,
- int index, IntPtr out_hit_result);
-
- // Hit Result funcitons.
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArHitResult_create(IntPtr session, ref IntPtr out_hit_result);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArHitResult_destroy(IntPtr hit_result);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArHitResult_getDistance(IntPtr session, IntPtr hit_result,
- ref float out_distance);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArHitResult_getHitPose(IntPtr session, IntPtr hit_result, IntPtr out_pose);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArHitResult_acquireTrackable(IntPtr session, IntPtr hit_result,
- ref IntPtr out_trackable);
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/HitTestApi.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/HitTestApi.cs.meta
deleted file mode 100644
index e3bb151d8..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/HitTestApi.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 9732fd9cd933b45b9b101341baf74b73
-timeCreated: 1510610167
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/LightEstimateApi.cs b/Assets/GoogleARCore/SDK/Scripts/Api/LightEstimateApi.cs
deleted file mode 100644
index ddf7da698..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/LightEstimateApi.cs
+++ /dev/null
@@ -1,84 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System;
- using System.Diagnostics.CodeAnalysis;
- using System.Runtime.InteropServices;
- using GoogleARCore;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public class LightEstimateApi
- {
- private NativeSession m_NativeSession;
-
- public LightEstimateApi(NativeSession nativeSession)
- {
- m_NativeSession = nativeSession;
- }
-
- public IntPtr Create()
- {
- IntPtr lightEstimateHandle = IntPtr.Zero;
- ExternApi.ArLightEstimate_create(m_NativeSession.SessionHandle, ref lightEstimateHandle);
- return lightEstimateHandle;
- }
-
- public void Destroy(IntPtr lightEstimateHandle)
- {
- ExternApi.ArLightEstimate_destroy(lightEstimateHandle);
- }
-
- public LightEstimateState GetState(IntPtr lightEstimateHandle)
- {
- ApiLightEstimateState state = ApiLightEstimateState.NotValid;
- ExternApi.ArLightEstimate_getState(m_NativeSession.SessionHandle, lightEstimateHandle, ref state);
- return state.ToLightEstimateState();
- }
-
- public float GetPixelIntensity(IntPtr lightEstimateHandle)
- {
- float pixelIntensity = 0;
- ExternApi.ArLightEstimate_getPixelIntensity(m_NativeSession.SessionHandle,
- lightEstimateHandle, ref pixelIntensity);
- return pixelIntensity;
- }
-
- private struct ExternApi
- {
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArLightEstimate_create(IntPtr sessionHandle,
- ref IntPtr lightEstimateHandle);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArLightEstimate_destroy(IntPtr lightEstimateHandle);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArLightEstimate_getState(IntPtr sessionHandle,
- IntPtr lightEstimateHandle, ref ApiLightEstimateState state);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArLightEstimate_getPixelIntensity(IntPtr sessionHandle,
- IntPtr lightEstimateHandle, ref float pixelIntensity);
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/LightEstimateApi.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/LightEstimateApi.cs.meta
deleted file mode 100644
index 9444edb77..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/LightEstimateApi.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 1208855bfb606b34092b04a38c785ff9
-timeCreated: 1510799673
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/NativeSession.cs b/Assets/GoogleARCore/SDK/Scripts/Api/NativeSession.cs
deleted file mode 100644
index 0c83d5545..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/NativeSession.cs
+++ /dev/null
@@ -1,161 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System;
- using System.Collections.Generic;
- using System.Diagnostics.CodeAnalysis;
- using System.Runtime.InteropServices;
- using GoogleARCore;
- using UnityEngine;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public class NativeSession
- {
- private IntPtr m_SessionHandle = IntPtr.Zero;
-
- private IntPtr m_FrameHandle = IntPtr.Zero;
-
- private IntPtr m_PointCloudHandle = IntPtr.Zero;
-
- private float m_LastReleasedPointcloudTimestamp = 0.0f;
-
- private TrackableManager m_TrackableManager = null;
-
- public NativeSession(IntPtr sessionHandle, IntPtr frameHandle)
- {
- m_SessionHandle = sessionHandle;
- m_FrameHandle = frameHandle;
- m_TrackableManager = new TrackableManager(this);
-
- AnchorApi = new AnchorApi(this);
- CameraApi = new CameraApi(this);
- CameraMetadataApi = new CameraMetadataApi(this);
- FrameApi = new FrameApi(this);
- HitTestApi = new HitTestApi(this);
- LightEstimateApi = new LightEstimateApi(this);
- PlaneApi = new PlaneApi(this);
- PointApi = new PointApi(this);
- PointCloudApi = new PointCloudApi(this);
- PoseApi = new PoseApi(this);
- SessionApi = new SessionApi(this);
- SessionConfigApi = new SessionConfigApi(this);
- TrackableApi = new TrackableApi(this);
- TrackableListApi = new TrackableListApi(this);
- }
-
- public IntPtr SessionHandle
- {
- get
- {
- return m_SessionHandle;
- }
- }
-
- public IntPtr FrameHandle
- {
- get
- {
- return m_FrameHandle;
- }
- }
-
- public IntPtr PointCloudHandle
- {
- get
- {
- return m_PointCloudHandle;
- }
- }
-
- public bool IsPointCloudNew
- {
- get
- {
- // TODO (b/73256094): Remove when fixed.
- if (LifecycleManager.Instance.SessionStatus != SessionStatus.Tracking)
- {
- var previousLastTimestamp = m_LastReleasedPointcloudTimestamp;
- m_LastReleasedPointcloudTimestamp = 0.0f;
- return previousLastTimestamp != 0;
- }
-
- return PointCloudApi.GetTimestamp(PointCloudHandle) != m_LastReleasedPointcloudTimestamp;
- }
- }
-
- public AnchorApi AnchorApi { get; private set; }
-
- public CameraApi CameraApi { get; private set; }
-
- public CameraMetadataApi CameraMetadataApi { get; private set; }
-
- public FrameApi FrameApi { get; private set; }
-
- public HitTestApi HitTestApi { get; private set; }
-
- public LightEstimateApi LightEstimateApi { get; private set; }
-
- public PlaneApi PlaneApi { get; private set; }
-
- public PointApi PointApi { get; private set; }
-
- public PointCloudApi PointCloudApi { get; private set; }
-
- public PoseApi PoseApi { get; private set; }
-
- public SessionApi SessionApi { get; private set; }
-
- public SessionConfigApi SessionConfigApi { get; private set; }
-
- public TrackableApi TrackableApi { get; private set; }
-
- public TrackableListApi TrackableListApi { get; private set; }
-
- public Trackable TrackableFactory(IntPtr nativeHandle)
- {
- return m_TrackableManager.TrackableFactory(nativeHandle);
- }
-
- public void GetTrackables(List trackables, TrackableQueryFilter filter) where T : Trackable
- {
- m_TrackableManager.GetTrackables(trackables, filter);
- }
-
- public void OnUpdate()
- {
- // After first frame, release previous frame's point cloud.
- if (m_PointCloudHandle != IntPtr.Zero)
- {
- m_LastReleasedPointcloudTimestamp = PointCloudApi.GetTimestamp(m_PointCloudHandle);
- PointCloudApi.Release(m_PointCloudHandle);
- m_PointCloudHandle = IntPtr.Zero;
- }
-
- // TODO (b/73256094): Remove when fixed.
- if (LifecycleManager.Instance.SessionStatus == SessionStatus.Tracking)
- {
- m_PointCloudHandle = FrameApi.AcquirePointCloud();
- }
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/NativeSession.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/NativeSession.cs.meta
deleted file mode 100644
index 23addb5f7..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/NativeSession.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: d592900cfcf4d46c69256dbe400dec56
-timeCreated: 1516388608
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/PlaneApi.cs b/Assets/GoogleARCore/SDK/Scripts/Api/PlaneApi.cs
deleted file mode 100644
index a8e752c9f..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/PlaneApi.cs
+++ /dev/null
@@ -1,178 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System;
- using System.Collections.Generic;
- using System.Diagnostics.CodeAnalysis;
- using System.Runtime.InteropServices;
- using GoogleARCore;
- using UnityEngine;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public class PlaneApi
- {
- private const int k_MaxPolygonSize = 1024;
- private NativeSession m_NativeSession;
- private float[] m_TmpPoints;
- private GCHandle m_TmpPointsHandle;
-
- public PlaneApi(NativeSession nativeSession)
- {
- m_NativeSession = nativeSession;
- m_TmpPoints = new float[k_MaxPolygonSize * 2];
- m_TmpPointsHandle = GCHandle.Alloc(m_TmpPoints, GCHandleType.Pinned);
- }
-
- ~PlaneApi()
- {
- m_TmpPointsHandle.Free();
- }
-
- public Pose GetCenterPose(IntPtr planeHandle)
- {
- var poseHandle = m_NativeSession.PoseApi.Create();
- ExternApi.ArPlane_getCenterPose(m_NativeSession.SessionHandle, planeHandle, poseHandle);
- Pose resultPose = m_NativeSession.PoseApi.ExtractPoseValue(poseHandle);
- m_NativeSession.PoseApi.Destroy(poseHandle);
- return resultPose;
- }
-
- public float GetExtentX(IntPtr planeHandle)
- {
- float extentX = 0.0f;
- ExternApi.ArPlane_getExtentX(m_NativeSession.SessionHandle, planeHandle, ref extentX);
- return extentX;
- }
-
- public float GetExtentZ(IntPtr planeHandle)
- {
- float extentZ = 0.0f;
- ExternApi.ArPlane_getExtentZ(m_NativeSession.SessionHandle, planeHandle, ref extentZ);
- return extentZ;
- }
-
- public void GetPolygon(IntPtr planeHandle, List points)
- {
- points.Clear();
- int pointCount = 0;
- ExternApi.ArPlane_getPolygonSize(m_NativeSession.SessionHandle, planeHandle, ref pointCount);
- if (pointCount < 1)
- {
- return;
- }
- else if (pointCount > k_MaxPolygonSize)
- {
- Debug.LogError("GetPolygon::Plane polygon size exceeds buffer capacity.");
- pointCount = k_MaxPolygonSize;
- }
-
- ExternApi.ArPlane_getPolygon(m_NativeSession.SessionHandle, planeHandle, m_TmpPointsHandle.AddrOfPinnedObject());
-
- var planeCenter = GetCenterPose(planeHandle);
- var unityWorldTPlane = Matrix4x4.TRS(planeCenter.position, planeCenter.rotation, Vector3.one);
- for (int i = pointCount - 2; i >= 0; i -= 2)
- {
- var point = unityWorldTPlane.MultiplyPoint3x4(new Vector3(m_TmpPoints[i], 0, -m_TmpPoints[i + 1]));
- points.Add(point);
- }
- }
-
- public TrackedPlane GetSubsumedBy(IntPtr planeHandle)
- {
- IntPtr subsumerHandle = IntPtr.Zero;
- ExternApi.ArPlane_acquireSubsumedBy(m_NativeSession.SessionHandle, planeHandle, ref subsumerHandle);
- return m_NativeSession.TrackableFactory(subsumerHandle) as TrackedPlane;
- }
-
- public bool IsPoseInExtents(IntPtr planeHandle, Pose pose)
- {
- // The int is used as a boolean value as the C API expects a int32_t value to represent a boolean.
- int isPoseInExtents = 0;
- var poseHandle = m_NativeSession.PoseApi.Create(pose);
- ExternApi.ArPlane_isPoseInExtents(m_NativeSession.SessionHandle, planeHandle, poseHandle, ref isPoseInExtents);
- m_NativeSession.PoseApi.Destroy(poseHandle);
- return isPoseInExtents != 0;
- }
-
- public bool IsPoseInExtents(IntPtr planeHandle, IntPtr poseHandle)
- {
- // The int is used as a boolean value as the C API expects a int32_t value to represent a boolean.
- int isPoseInExtents = 0;
- ExternApi.ArPlane_isPoseInExtents(m_NativeSession.SessionHandle, planeHandle, poseHandle, ref isPoseInExtents);
- return isPoseInExtents != 0;
- }
-
- public bool IsPoseInPolygon(IntPtr planeHandle, Pose pose)
- {
- // The int is used as a boolean value as the C API expects a int32_t value to represent a boolean.
- int isPoseInPolygon = 0;
- var poseHandle = m_NativeSession.PoseApi.Create(pose);
- ExternApi.ArPlane_isPoseInPolygon(m_NativeSession.SessionHandle, planeHandle, poseHandle, ref isPoseInPolygon);
- m_NativeSession.PoseApi.Destroy(poseHandle);
- return isPoseInPolygon != 0;
- }
-
- public bool IsPoseInPolygon(IntPtr planeHandle, IntPtr poseHandle)
- {
- // The int is used as a boolean value as the C API expects a int32_t value to represent a boolean.
- int isPoseInPolygon = 0;
- ExternApi.ArPlane_isPoseInPolygon(m_NativeSession.SessionHandle, planeHandle, poseHandle, ref isPoseInPolygon);
- return isPoseInPolygon != 0;
- }
-
- private struct ExternApi
- {
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArPlane_getCenterPose(IntPtr sessionHandle, IntPtr planeHandle,
- IntPtr poseHandle);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArPlane_acquireSubsumedBy(IntPtr sessionHandle, IntPtr planeHandle,
- ref IntPtr subsumerHandle);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArPlane_getExtentX(IntPtr sessionHandle, IntPtr planeHandle,
- ref float extentX);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArPlane_getExtentZ(IntPtr sessionHandle, IntPtr planeHandle,
- ref float extentZ);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArPlane_getPolygonSize(IntPtr sessionHandle, IntPtr planeHandle,
- ref int polygonSize);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArPlane_getPolygon(IntPtr sessionHandle, IntPtr planeHandle,
- IntPtr polygonXZ);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArPlane_isPoseInExtents(IntPtr sessionHandle, IntPtr planeHandle,
- IntPtr poseHandle, ref int isPoseInExtents);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArPlane_isPoseInPolygon(IntPtr sessionHandle, IntPtr planeHandle,
- IntPtr poseHandle, ref int isPoseInPolygon);
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/PlaneApi.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/PlaneApi.cs.meta
deleted file mode 100644
index 4bd2f36b5..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/PlaneApi.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: bc57253c2a28846679a773e6c2ee8c32
-timeCreated: 1509300062
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/PointApi.cs b/Assets/GoogleARCore/SDK/Scripts/Api/PointApi.cs
deleted file mode 100644
index 05a81f759..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/PointApi.cs
+++ /dev/null
@@ -1,69 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System;
- using System.Collections.Generic;
- using System.Diagnostics.CodeAnalysis;
- using System.Runtime.InteropServices;
- using GoogleARCore;
- using UnityEngine;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public class PointApi
- {
- private NativeSession m_NativeSession;
-
- public PointApi(NativeSession nativeSession)
- {
- m_NativeSession = nativeSession;
- }
-
- public Pose GetPose(IntPtr pointHandle)
- {
- var poseHandle = m_NativeSession.PoseApi.Create();
- ExternApi.ArPoint_getPose(m_NativeSession.SessionHandle, pointHandle, poseHandle);
- Pose resultPose = m_NativeSession.PoseApi.ExtractPoseValue(poseHandle);
- m_NativeSession.PoseApi.Destroy(poseHandle);
- return resultPose;
- }
-
- public TrackedPointOrientationMode GetOrientationMode(IntPtr pointHandle)
- {
- ApiTrackedPointOrientationMode orientationMode =
- ApiTrackedPointOrientationMode.Identity;
- ExternApi.ArPoint_getOrientationMode(m_NativeSession.SessionHandle, pointHandle,
- ref orientationMode);
- return orientationMode.ToTrackedPointOrientationMode();
- }
-
- private struct ExternApi
- {
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArPoint_getPose(IntPtr session, IntPtr point, IntPtr out_pose);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArPoint_getOrientationMode(IntPtr session, IntPtr point,
- ref ApiTrackedPointOrientationMode orientationMode);
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/PointApi.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/PointApi.cs.meta
deleted file mode 100644
index 379a59124..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/PointApi.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 71ae835ce954d488a85396c79162f733
-timeCreated: 1510617062
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/PointCloudApi.cs b/Assets/GoogleARCore/SDK/Scripts/Api/PointCloudApi.cs
deleted file mode 100644
index c120520c4..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/PointCloudApi.cs
+++ /dev/null
@@ -1,113 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System;
- using System.Collections.Generic;
- using System.Diagnostics.CodeAnalysis;
- using System.Runtime.InteropServices;
- using GoogleARCore;
- using UnityEngine;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public class PointCloudApi
- {
- private NativeSession m_NativeSession;
-
- private float[] m_CachedVector = new float[4];
-
- public PointCloudApi(NativeSession nativeSession)
- {
- m_NativeSession = nativeSession;
- }
-
- public long GetTimestamp(IntPtr pointCloudHandle)
- {
- long timestamp = 0;
- ExternApi.ArPointCloud_getTimestamp(m_NativeSession.SessionHandle, pointCloudHandle, ref timestamp);
- return timestamp;
- }
-
- public int GetNumberOfPoints(IntPtr pointCloudHandle)
- {
- int pointCount = 0;
- ExternApi.ArPointCloud_getNumberOfPoints(m_NativeSession.SessionHandle, pointCloudHandle, ref pointCount);
-
- return pointCount;
- }
-
- public Vector4 GetPoint(IntPtr pointCloudHandle, int index)
- {
- IntPtr pointCloudNativeHandle = IntPtr.Zero;
- ExternApi.ArPointCloud_getData(m_NativeSession.SessionHandle, pointCloudHandle, ref pointCloudNativeHandle);
- IntPtr pointHandle = new IntPtr(pointCloudNativeHandle.ToInt64() +
- (Marshal.SizeOf(typeof(Vector4)) * index));
- Marshal.Copy(pointHandle, m_CachedVector, 0, 4);
-
- // Negate z axis because points are returned in OpenGl space.
- return new Vector4(m_CachedVector[0], m_CachedVector[1], -m_CachedVector[2], m_CachedVector[3]);
- }
-
- public void CopyPoints(IntPtr pointCloudHandle, List points)
- {
- points.Clear();
-
- IntPtr pointCloudNativeHandle = IntPtr.Zero;
- int pointCloudSize = GetNumberOfPoints(pointCloudHandle);
-
- ExternApi.ArPointCloud_getData(m_NativeSession.SessionHandle, pointCloudHandle, ref pointCloudNativeHandle);
-
- MarshalingHelper.AddUnmanagedStructArrayToList(pointCloudNativeHandle,
- pointCloudSize, points);
-
- for (int i = 0; i < pointCloudSize; ++i)
- {
- // Negate z axis because points are returned in OpenGl space.
- points[i] = new Vector4(points[i].x, points[i].y,
- -points[i].z, points[i].w);
- }
- }
-
- public void Release(IntPtr pointCloudHandle)
- {
- ExternApi.ArPointCloud_release(pointCloudHandle);
- }
-
- private struct ExternApi
- {
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArPointCloud_getTimestamp(IntPtr session, IntPtr pointCloudHandle,
- ref long timestamp);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArPointCloud_getNumberOfPoints(IntPtr session, IntPtr pointCloudHandle,
- ref int pointCount);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArPointCloud_getData(IntPtr session, IntPtr pointCloudHandle,
- ref IntPtr pointCloudData);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArPointCloud_release(IntPtr pointCloudHandle);
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/PointCloudApi.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/PointCloudApi.cs.meta
deleted file mode 100644
index 41593bd57..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/PointCloudApi.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: d6fca0e25bb6e4612acb66cacc00f8ff
-timeCreated: 1509468914
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/PoseApi.cs b/Assets/GoogleARCore/SDK/Scripts/Api/PoseApi.cs
deleted file mode 100644
index b7b9ba203..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/PoseApi.cs
+++ /dev/null
@@ -1,80 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System;
- using System.Collections.Generic;
- using System.Diagnostics.CodeAnalysis;
- using System.Runtime.InteropServices;
- using GoogleARCore;
- using UnityEngine;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public class PoseApi
- {
- private NativeSession m_NativeSession;
-
- public PoseApi(NativeSession nativeSession)
- {
- m_NativeSession = nativeSession;
- }
-
- public IntPtr Create()
- {
- return Create(Pose.identity);
- }
-
- public IntPtr Create(Pose pose)
- {
- ApiPoseData rawPose = new ApiPoseData(pose);
-
- IntPtr poseHandle = IntPtr.Zero;
- ExternApi.ArPose_create(m_NativeSession.SessionHandle, ref rawPose, ref poseHandle);
- return poseHandle;
- }
-
- public void Destroy(IntPtr nativePose)
- {
- ExternApi.ArPose_destroy(nativePose);
- }
-
- public Pose ExtractPoseValue(IntPtr poseHandle)
- {
- ApiPoseData poseValue = new ApiPoseData(Pose.identity);
- ExternApi.ArPose_getPoseRaw(m_NativeSession.SessionHandle, poseHandle, ref poseValue);
- return poseValue.ToUnityPose();
- }
-
- private struct ExternApi
- {
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArPose_create(IntPtr session, ref ApiPoseData rawPose, ref IntPtr poseHandle);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArPose_destroy(IntPtr poseHandle);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArPose_getPoseRaw(IntPtr sessionHandle, IntPtr poseHandle,
- ref ApiPoseData rawPose);
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/PoseApi.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/PoseApi.cs.meta
deleted file mode 100644
index 2b102fb17..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/PoseApi.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 8bb1ac230a9054569b08d1ca210d8b01
-timeCreated: 1509300062
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/SessionApi.cs b/Assets/GoogleARCore/SDK/Scripts/Api/SessionApi.cs
deleted file mode 100644
index b57e0f2f9..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/SessionApi.cs
+++ /dev/null
@@ -1,160 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System;
- using System.Collections.Generic;
- using System.Diagnostics.CodeAnalysis;
- using System.Runtime.InteropServices;
- using GoogleARCore;
- using UnityEngine;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public class SessionApi
- {
- private NativeSession m_NativeSession;
-
- public SessionApi(NativeSession nativeSession)
- {
- m_NativeSession = nativeSession;
- }
-
- public void ReportEngineType()
- {
- ExternApi.ArSession_reportEngineType(m_NativeSession.SessionHandle, "Unity",
- Application.unityVersion);
- }
-
- public ApiArStatus CheckSupported(ARCoreSessionConfig config)
- {
- IntPtr configHandle;
- if (config == null)
- {
- configHandle = IntPtr.Zero;
- return ApiArStatus.ErrorUnsupportedConfiguration;
- }
- else
- {
- configHandle = m_NativeSession.SessionConfigApi.Create();
- m_NativeSession.SessionConfigApi.UpdateApiConfigWithArCoreSessionConfig(configHandle, config);
- }
-
- ApiArStatus ret = ExternApi.ArSession_checkSupported(m_NativeSession.SessionHandle, configHandle);
- m_NativeSession.SessionConfigApi.Destroy(configHandle);
- return ret;
- }
-
- public bool SetConfiguration(ARCoreSessionConfig sessionConfig)
- {
- IntPtr configHandle = m_NativeSession.SessionConfigApi.Create();
- m_NativeSession.SessionConfigApi.UpdateApiConfigWithArCoreSessionConfig(configHandle, sessionConfig);
-
- bool ret = ExternApi.ArSession_configure(m_NativeSession.SessionHandle, configHandle) == 0;
- m_NativeSession.SessionConfigApi.Destroy(configHandle);
-
- return ret;
- }
-
- public void GetAllTrackables(List trackables)
- {
- IntPtr listHandle = m_NativeSession.TrackableListApi.Create();
- ExternApi.ArSession_getAllTrackables(m_NativeSession.SessionHandle, ApiTrackableType.BaseTrackable, listHandle);
-
- trackables.Clear();
- int count = m_NativeSession.TrackableListApi.GetCount(listHandle);
- for (int i = 0; i < count; i++)
- {
- IntPtr trackableHandle = m_NativeSession.TrackableListApi.AcquireItem(listHandle, i);
- trackables.Add(m_NativeSession.TrackableFactory(trackableHandle));
- }
-
- m_NativeSession.TrackableListApi.Destroy(listHandle);
- }
-
- public Anchor CreateAnchor(Pose pose)
- {
- IntPtr poseHandle = m_NativeSession.PoseApi.Create(pose);
- IntPtr anchorHandle = IntPtr.Zero;
- ExternApi.ArSession_acquireNewAnchor(m_NativeSession.SessionHandle, poseHandle, ref anchorHandle);
- var anchorResult = Anchor.AnchorFactory(anchorHandle, m_NativeSession);
- m_NativeSession.PoseApi.Destroy(poseHandle);
-
- return anchorResult;
- }
-
- public void SetDisplayGeometry(ScreenOrientation orientation, int width, int height)
- {
- const int androidRotation0 = 0;
- const int androidRotation90 = 1;
- const int androidRotation180 = 2;
- const int androidRotation270 = 3;
-
- int androidOrientation = 0;
- switch (orientation)
- {
- case ScreenOrientation.LandscapeLeft:
- androidOrientation = androidRotation90;
- break;
- case ScreenOrientation.LandscapeRight:
- androidOrientation = androidRotation270;
- break;
- case ScreenOrientation.Portrait:
- androidOrientation = androidRotation0;
- break;
- case ScreenOrientation.PortraitUpsideDown:
- androidOrientation = androidRotation180;
- break;
- }
-
- ExternApi.ArSession_setDisplayGeometry(m_NativeSession.SessionHandle, androidOrientation, width, height);
- }
-
- private struct ExternApi
- {
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArSession_destroy(IntPtr sessionHandle);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern ApiArStatus ArSession_checkSupported(IntPtr sessionHandle, IntPtr config);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern int ArSession_configure(IntPtr sessionHandle, IntPtr config);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArSession_setDisplayGeometry(IntPtr sessionHandle, int rotation, int width,
- int height);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArSession_getAllTrackables(IntPtr sessionHandle, ApiTrackableType filterType,
- IntPtr trackableList);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArSession_reportEngineType(IntPtr sessionHandle,
- string engineType,
- string engineVersion);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern int ArSession_acquireNewAnchor(IntPtr sessionHandle, IntPtr poseHandle,
- ref IntPtr anchorHandle);
- }
- }
-}
\ No newline at end of file
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/SessionApi.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/SessionApi.cs.meta
deleted file mode 100644
index 24087e25c..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/SessionApi.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: e62f0c78c398d4404a32f71b57e153e4
-timeCreated: 1509504247
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/SessionConfigApi.cs b/Assets/GoogleARCore/SDK/Scripts/Api/SessionConfigApi.cs
deleted file mode 100644
index 8f9e91ad7..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/SessionConfigApi.cs
+++ /dev/null
@@ -1,104 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System;
- using System.Collections.Generic;
- using System.Diagnostics.CodeAnalysis;
- using System.Runtime.InteropServices;
- using GoogleARCore;
- using UnityEngine;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public class SessionConfigApi
- {
- private NativeSession m_NativeSession;
-
- public SessionConfigApi(NativeSession nativeSession)
- {
- m_NativeSession = nativeSession;
- }
-
- public IntPtr Create()
- {
- IntPtr configHandle = IntPtr.Zero;
- ExternApi.ArConfig_create(m_NativeSession.SessionHandle, ref configHandle);
- return configHandle;
- }
-
- public void Destroy(IntPtr configHandle)
- {
- ExternApi.ArConfig_destroy(configHandle);
- }
-
- public void UpdateApiConfigWithArCoreSessionConfig(IntPtr configHandle, ARCoreSessionConfig arCoreSessionConfig)
- {
- var lightingMode = ApiLightEstimationMode.Disabled;
- if (arCoreSessionConfig.EnableLightEstimation)
- {
- lightingMode = ApiLightEstimationMode.AmbientIntensity;
- }
-
- ExternApi.ArConfig_setLightEstimationMode(m_NativeSession.SessionHandle, configHandle, lightingMode);
-
- var planeFindingMode = ApiPlaneFindingMode.Disabled;
- if (arCoreSessionConfig.EnablePlaneFinding)
- {
- planeFindingMode = ApiPlaneFindingMode.Horizontal;
- }
-
- ExternApi.ArConfig_setPlaneFindingMode(m_NativeSession.SessionHandle, configHandle, planeFindingMode);
-
- var updateMode = ApiUpdateMode.LatestCameraImage;
- if (arCoreSessionConfig.MatchCameraFramerate)
- {
- updateMode = ApiUpdateMode.Blocking;
-
- // Set vSyncCount to 0 so frame in rendered only when we have a new background texture.
- QualitySettings.vSyncCount = 0;
- }
-
- ExternApi.ArConfig_setUpdateMode(m_NativeSession.SessionHandle, configHandle, updateMode);
- }
-
- private struct ExternApi
- {
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArConfig_create(IntPtr session, ref IntPtr out_config);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArConfig_destroy(IntPtr config);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArConfig_setLightEstimationMode(IntPtr session, IntPtr config,
- ApiLightEstimationMode light_estimation_mode);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArConfig_setPlaneFindingMode(IntPtr session, IntPtr config,
- ApiPlaneFindingMode plane_finding_mode);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArConfig_setUpdateMode(IntPtr session, IntPtr config,
- ApiUpdateMode update_mode);
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/SessionConfigApi.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/SessionConfigApi.cs.meta
deleted file mode 100644
index 07728a103..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/SessionConfigApi.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 5bad7cdbe53c84daa86747adecf2feb1
-timeCreated: 1510876906
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/TrackableApi.cs b/Assets/GoogleARCore/SDK/Scripts/Api/TrackableApi.cs
deleted file mode 100644
index 52290b99e..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/TrackableApi.cs
+++ /dev/null
@@ -1,117 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System;
- using System.Collections.Generic;
- using System.Diagnostics.CodeAnalysis;
- using System.Runtime.InteropServices;
- using GoogleARCore;
- using UnityEngine;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public class TrackableApi
- {
- private NativeSession m_NativeSession;
-
- public TrackableApi(NativeSession nativeSession)
- {
- m_NativeSession = nativeSession;
- }
-
- public ApiTrackableType GetType(IntPtr trackableHandle)
- {
- ApiTrackableType type = ApiTrackableType.Plane;
- ExternApi.ArTrackable_getType(m_NativeSession.SessionHandle, trackableHandle, ref type);
- return type;
- }
-
- public TrackingState GetTrackingState(IntPtr trackableHandle)
- {
- ApiTrackingState apiTrackingState = ApiTrackingState.Stopped;
- ExternApi.ArTrackable_getTrackingState(m_NativeSession.SessionHandle, trackableHandle,
- ref apiTrackingState);
- return apiTrackingState.ToTrackingState();
- }
-
- public bool AcquireNewAnchor(IntPtr trackableHandle, Pose pose, out IntPtr anchorHandle)
- {
- IntPtr poseHandle = m_NativeSession.PoseApi.Create(pose);
- anchorHandle = IntPtr.Zero;
- int status = ExternApi.ArTrackable_acquireNewAnchor(m_NativeSession.SessionHandle, trackableHandle, poseHandle,
- ref anchorHandle);
- m_NativeSession.PoseApi.Destroy(poseHandle);
- return status == 0;
- }
-
- public void Release(IntPtr trackableHandle)
- {
- ExternApi.ArTrackable_release(trackableHandle);
- }
-
- public void GetAnchors(IntPtr trackableHandle, List anchors)
- {
- IntPtr anchorListHandle = m_NativeSession.AnchorApi.CreateList();
- ExternApi.ArTrackable_getAnchors(m_NativeSession.SessionHandle, trackableHandle, anchorListHandle);
-
- anchors.Clear();
- int anchorCount = m_NativeSession.AnchorApi.GetListSize(anchorListHandle);
- for (int i = 0; i < anchorCount; i++)
- {
- IntPtr anchorHandle = m_NativeSession.AnchorApi.AcquireListItem(anchorListHandle, i);
- Anchor anchor = Anchor.AnchorFactory(anchorHandle, m_NativeSession, false);
- if (anchor == null)
- {
- Debug.LogFormat("Unable to find Anchor component for handle {0}", anchorHandle);
- }
- else
- {
- anchors.Add(anchor);
- }
- }
-
- m_NativeSession.AnchorApi.DestroyList(anchorListHandle);
- }
-
- private struct ExternApi
- {
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArTrackable_getType(IntPtr sessionHandle, IntPtr trackableHandle,
- ref ApiTrackableType trackableType);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArTrackable_getTrackingState(IntPtr sessionHandle,
- IntPtr trackableHandle, ref ApiTrackingState trackingState);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern int ArTrackable_acquireNewAnchor(IntPtr sessionHandle, IntPtr trackableHandle,
- IntPtr poseHandle, ref IntPtr anchorHandle);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArTrackable_release(IntPtr trackableHandle);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArTrackable_getAnchors(IntPtr sessionHandle, IntPtr trackableHandle,
- IntPtr outputListHandle);
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/TrackableApi.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/TrackableApi.cs.meta
deleted file mode 100644
index 45a485f52..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/TrackableApi.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 87745264d13d44f2a8295d25c2d6666e
-timeCreated: 1509300062
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/TrackableListApi.cs b/Assets/GoogleARCore/SDK/Scripts/Api/TrackableListApi.cs
deleted file mode 100644
index 44c4bd745..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/TrackableListApi.cs
+++ /dev/null
@@ -1,85 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System;
- using System.Collections.Generic;
- using System.Diagnostics.CodeAnalysis;
- using System.Runtime.InteropServices;
- using GoogleARCore;
- using UnityEngine;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public class TrackableListApi
- {
- private NativeSession m_NativeSession;
-
- public TrackableListApi(NativeSession nativeSession)
- {
- m_NativeSession = nativeSession;
- }
-
- public IntPtr Create()
- {
- IntPtr handle = IntPtr.Zero;
- ExternApi.ArTrackableList_create(m_NativeSession.SessionHandle, ref handle);
- return handle;
- }
-
- public void Destroy(IntPtr listHandle)
- {
- ExternApi.ArTrackableList_destroy(listHandle);
- }
-
- public int GetCount(IntPtr listHandle)
- {
- int count = 0;
- ExternApi.ArTrackableList_getSize(m_NativeSession.SessionHandle, listHandle, ref count);
- return count;
- }
-
- public IntPtr AcquireItem(IntPtr listHandle, int index)
- {
- IntPtr trackableHandle = IntPtr.Zero;
- ExternApi.ArTrackableList_acquireItem(m_NativeSession.SessionHandle, listHandle, index,
- ref trackableHandle);
- return trackableHandle;
- }
-
- private struct ExternApi
- {
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArTrackableList_create(IntPtr sessionHandle, ref IntPtr trackableListHandle);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArTrackableList_destroy(IntPtr trackableListHandle);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArTrackableList_getSize(IntPtr sessionHandle, IntPtr trackableListHandle,
- ref int outSize);
-
- [DllImport(ApiConstants.ARCoreNativeApi)]
- public static extern void ArTrackableList_acquireItem(IntPtr sessionHandle, IntPtr trackableListHandle,
- int index, ref IntPtr outTrackable);
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Api/TrackableListApi.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Api/TrackableListApi.cs.meta
deleted file mode 100644
index 7135e3bbb..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Api/TrackableListApi.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 1d2c4263ac8ea480e98fbaf3e7c08815
-timeCreated: 1510542389
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/ApkAvailabilityStatus.cs b/Assets/GoogleARCore/SDK/Scripts/ApkAvailabilityStatus.cs
deleted file mode 100644
index 67183481f..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/ApkAvailabilityStatus.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCore
-{
- ///
- /// Possible statuses for the ARCore APK availability on a device.
- ///
- public enum ApkAvailabilityStatus
- {
- UnknownError = 0,
- UnknownChecking = 1,
- UnknownTimedOut = 2,
- UnsupportedDeviceNotCapable = 100,
- SupportedNotInstalled = 201,
- SupportedApkTooOld = 202,
- SupportedInstalled = 203
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/ApkAvailabilityStatus.cs.meta b/Assets/GoogleARCore/SDK/Scripts/ApkAvailabilityStatus.cs.meta
deleted file mode 100644
index dfb8a7e0b..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/ApkAvailabilityStatus.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 56892237bd519491d9a60f5ebd3e0f72
-timeCreated: 1517868046
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/ApkInstallationStatus.cs b/Assets/GoogleARCore/SDK/Scripts/ApkInstallationStatus.cs
deleted file mode 100644
index c0d96a7b9..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/ApkInstallationStatus.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCore
-{
- ///
- /// Possible statuses for an ARCore APK installation request on a device.
- ///
- public enum ApkInstallationStatus
- {
- Uninitialized = 0,
- Requested = 1,
- Success = 100,
- Error = 200,
- ErrorDeviceNotCompatible = 201,
- ErrorAndroidVersionNotSupported = 202,
- ErrorUserDeclined = 203,
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/ApkInstallationStatus.cs.meta b/Assets/GoogleARCore/SDK/Scripts/ApkInstallationStatus.cs.meta
deleted file mode 100644
index a5e7994a5..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/ApkInstallationStatus.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: a1de1e6e76a30499e970bb552522dec7
-timeCreated: 1517858804
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Async.meta b/Assets/GoogleARCore/SDK/Scripts/Async.meta
deleted file mode 100644
index 7f0864161..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Async.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: b3aabcae5f79543dea8251d640bde6ad
-folderAsset: yes
-timeCreated: 1502330118
-licenseType: Free
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Async/WaitForTaskCompletionYieldInstruction.cs b/Assets/GoogleARCore/SDK/Scripts/Async/WaitForTaskCompletionYieldInstruction.cs
deleted file mode 100644
index f755b86a1..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Async/WaitForTaskCompletionYieldInstruction.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System.Diagnostics.CodeAnalysis;
- using GoogleARCore;
- using UnityEngine;
-
- ///
- /// A yield instruction that blocks a coroutine until an AsyncTask has completed.
- ///
- /// The type of the AsyncTask result.
- public class WaitForTaskCompletionYieldInstruction : CustomYieldInstruction
- {
- ///
- /// The AsyncTask the yield instruction waits on.
- ///
- private AsyncTask m_Task;
-
- ///
- /// Constructor for WaitForTaskCompletionYieldInstruction.
- ///
- /// The task to wait for completion.
- public WaitForTaskCompletionYieldInstruction(AsyncTask task)
- {
- m_Task = task;
- }
-
- ///
- /// Gets a value indicating whether the coroutine instruction should keep waiting.
- ///
- /// true if the task is incomplete, otherwise false.
- [SuppressMessage("UnityRules.UnityStyleRules", "US1000:FieldsMustBeUpperCamelCase",
- Justification = "Overridden method.")]
- public override bool keepWaiting
- {
- get
- {
- return !m_Task.IsComplete;
- }
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Async/WaitForTaskCompletionYieldInstruction.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Async/WaitForTaskCompletionYieldInstruction.cs.meta
deleted file mode 100644
index 4d911ede0..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Async/WaitForTaskCompletionYieldInstruction.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 2ba38d18d01304b4ab5105846c55aff1
-timeCreated: 1502330118
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/AsyncTask.cs b/Assets/GoogleARCore/SDK/Scripts/AsyncTask.cs
deleted file mode 100644
index 428ce1ef5..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/AsyncTask.cs
+++ /dev/null
@@ -1,166 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCore
-{
- using System;
- using System.Collections.Generic;
- using System.Threading;
- using GoogleARCoreInternal;
- using UnityEngine;
-
- ///
- /// A class used for monitoring the status of an asynchronous task.
- ///
- /// The resultant type of the task.
- public class AsyncTask
- {
- ///
- /// A collection of actons to perform on the main Unity thread after the task is complete.
- ///
- private List> m_ActionsUponTaskCompletion;
-
- /// @cond EXCLUDE_FROM_DOXYGEN
- ///
- /// Constructor for AsyncTask.
- ///
- /// A callback that, when invoked, changes the status of the task to
- /// complete and sets the result based on the argument supplied.
- public AsyncTask(out Action asyncOperationComplete)
- {
- IsComplete = false;
- asyncOperationComplete = delegate(T result)
- {
- this.Result = result;
- IsComplete = true;
- if (m_ActionsUponTaskCompletion != null)
- {
- AsyncTask.PerformActionInUpdate(() =>
- {
- for (int i = 0; i < m_ActionsUponTaskCompletion.Count; i++)
- {
- m_ActionsUponTaskCompletion[i](result);
- }
- });
- }
- };
- }
-
- /// @endcond
-
- /// @cond EXCLUDE_FROM_DOXYGEN
- ///
- /// Constructor for AsyncTask that creates a completed task.
- ///
- /// The result of the completed task.
- public AsyncTask(T result)
- {
- Result = result;
- IsComplete = true;
- }
-
- /// @endcond
-
- ///
- /// Gets a value indicating whether the task is complete.
- ///
- /// true if the task is complete, otherwise false.
- public bool IsComplete { get; private set; }
-
- ///
- /// Gets the result of a completed task.
- ///
- /// The result of the completed task.
- public T Result { get; private set; }
-
- ///
- /// Returns a yield instruction that monitors this task for completion within a coroutine.
- ///
- /// A yield instruction that monitors this task for completion.
- public CustomYieldInstruction WaitForCompletion()
- {
- return new WaitForTaskCompletionYieldInstruction(this);
- }
-
- ///
- /// Performs an action (callback) in the first Unity Update() call after task completion.
- ///
- /// The action to invoke when task is complete. The result of the task will
- /// be passed as an argument to the action.
- /// The invoking asynchronous task.
- public AsyncTask ThenAction(Action doAfterTaskComplete)
- {
- // Perform action now if task is already complete.
- if (IsComplete)
- {
- doAfterTaskComplete(Result);
- return this;
- }
-
- // Allocate list if needed (avoids allocation if then is not used).
- if (m_ActionsUponTaskCompletion == null)
- {
- m_ActionsUponTaskCompletion = new List>();
- }
-
- m_ActionsUponTaskCompletion.Add(doAfterTaskComplete);
- return this;
- }
- }
-
- /// @cond EXCLUDE_FROM_DOXYGEN
- ///
- /// Helper methods for dealing with asynchronous tasks.
- ///
- public class AsyncTask
- {
- private static Queue s_UpdateActionQueue = new Queue();
- private static object s_LockObject = new object();
-
- ///
- /// Queues an action to be performed on Unity thread in Update(). This method can be called by any thread.
- ///
- /// The action to perform.
- public static void PerformActionInUpdate(Action action)
- {
- lock (s_LockObject)
- {
- s_UpdateActionQueue.Enqueue(action);
- }
- }
-
- ///
- /// An Update handler called each frame.
- ///
- public static void OnUpdate()
- {
- lock (s_LockObject)
- {
- while (s_UpdateActionQueue.Count > 0)
- {
- Action action = s_UpdateActionQueue.Dequeue();
- action();
- }
- }
- }
- }
-
- /// @endcond
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/AsyncTask.cs.meta b/Assets/GoogleARCore/SDK/Scripts/AsyncTask.cs.meta
deleted file mode 100644
index 62982e194..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/AsyncTask.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: d48675563f8a14e85bb73c0a6d45d9f0
-timeCreated: 1503943281
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/CameraMetadataTag.cs b/Assets/GoogleARCore/SDK/Scripts/CameraMetadataTag.cs
deleted file mode 100644
index f54dc35ca..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/CameraMetadataTag.cs
+++ /dev/null
@@ -1,327 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCore
-{
- ///
- /// This enum follows the layout of NdkCameraMetadataTags.
- /// The values in the file are used for requesting / marshaling camera image's metadata.
- /// The comments have been removed to keep the code readable. Please refer to
- /// NdkCameraMetadataTags.h for documentation:
- /// https://developer.android.com/ndk/reference/ndk_camera_metadata_tags_8h.html .
- ///
- public enum CameraMetadataTag
- {
- SectionColorCorrection = 0,
- SectionControl = 1,
- SectionEdge = 3,
- SectionFlash = 4,
- SectionFlashInfo = 5,
- SectionHotPixel = 6,
- SectionJpeg = 7,
- SectionLens = 8,
- SectionLensInfo = 9,
- SectionNoiseReduction = 10,
- SectionRequest = 12,
- SectionScaler = 13,
- SectionSensor = 14,
- SectionSensorInfo = 15,
- SectionShading = 16,
- SectionStatistics = 17,
- SectionStatisticsInfo = 18,
- SectionTonemap = 19,
- SectionInfo = 21,
- SectionBlackLevel = 22,
- SectionSync = 23,
- SectionDepth = 25,
-
- // Start Value Of Each Section.
- ColorCorrectionStart = SectionColorCorrection << 16,
- ControlStart = SectionControl << 16,
- EdgeStart = SectionEdge << 16,
- FlashStart = SectionFlash << 16,
- FlashInfoStart = SectionFlashInfo << 16,
- HotPixelStart = SectionHotPixel << 16,
- JpegStart = SectionJpeg << 16,
- LensStart = SectionLens << 16,
- LensInfoStart = SectionLensInfo << 16,
- NoiseReductionStart = SectionNoiseReduction << 16,
- RequestStart = SectionRequest << 16,
- ScalerStart = SectionScaler << 16,
- SensorStart = SectionSensor << 16,
- SensorInfoStart = SectionSensorInfo << 16,
- ShadingStart = SectionShading << 16,
- StatisticsStart = SectionStatistics << 16,
- StatisticsInfoStart = SectionStatisticsInfo << 16,
- TonemapStart = SectionTonemap << 16,
- InfoStart = SectionInfo << 16,
- BlackLevelStart = SectionBlackLevel << 16,
- SyncStart = SectionSync << 16,
- DepthStart = SectionDepth << 16,
-
- // Note that we only expose the keys that could be used in the camera metadata from the capture
- // result. The keys may only appear in CameraCharacteristics are not exposed here.
- ColorCorrectionMode = // Byte (Enum)
- ColorCorrectionStart,
-
- ColorCorrectionTransform = // Rational[33]
- ColorCorrectionStart + 1,
-
- ColorCorrectionGains = // Float[4]
- ColorCorrectionStart + 2,
-
- ColorCorrectionAberrationMode = // Byte (Enum)
- ColorCorrectionStart + 3,
-
- ControlAeAntibandingMode = // Byte (Enum)
- ControlStart,
-
- ControlAeExposureCompensation = // Int32
- ControlStart + 1,
-
- ControlAeLock = // Byte (Enum)
- ControlStart + 2,
-
- ControlAeMode = // Byte (Enum)
- ControlStart + 3,
-
- ControlAeRegions = // Int32[5areaCount]
- ControlStart + 4,
-
- ControlAeTargetFpsRange = // Int32[2]
- ControlStart + 5,
-
- ControlAePrecaptureTrigger = // Byte (Enum)
- ControlStart + 6,
-
- ControlAfMode = // Byte (Enum)
- ControlStart + 7,
-
- ControlAfRegions = // Int32[5areaCount]
- ControlStart + 8,
-
- ControlAfTrigger = // Byte (Enum)
- ControlStart + 9,
-
- ControlAwbLock = // Byte (Enum)
- ControlStart + 10,
-
- ControlAwbMode = // Byte (Enum)
- ControlStart + 11,
-
- ControlAwbRegions = // Int32[5areaCount]
- ControlStart + 12,
-
- ControlCaptureIntent = // Byte (Enum)
- ControlStart + 13,
-
- ControlEffectMode = // Byte (Enum)
- ControlStart + 14,
-
- ControlMode = // Byte (Enum)
- ControlStart + 15,
-
- ControlSceneMode = // Byte (Enum)
- ControlStart + 16,
-
- ControlVideoStabilizationMode = // Byte (Enum)
- ControlStart + 17,
-
- ControlAeState = // Byte (Enum)
- ControlStart + 31,
-
- ControlAfState = // Byte (Enum)
- ControlStart + 32,
-
- ControlAwbState = // Byte (Enum)
- ControlStart + 34,
-
- ControlPostRawSensitivityBoost = // Int32
- ControlStart + 40,
-
- EdgeMode = // Byte (Enum)
- EdgeStart,
-
- FlashMode = // Byte (Enum)
- FlashStart + 2,
-
- FlashState = // Byte (Enum)
- FlashStart + 5,
-
- HotPixelMode = // Byte (Enum)
- HotPixelStart,
-
- JpegGpsCoordinates = // Double[3]
- JpegStart,
-
- JpegGpsProcessingMethod = // Byte
- JpegStart + 1,
-
- JpegGpsTimestamp = // Int64
- JpegStart + 2,
-
- JpegOrientation = // Int32
- JpegStart + 3,
-
- JpegQuality = // Byte
- JpegStart + 4,
-
- JpegThumbnailQuality = // Byte
- JpegStart + 5,
-
- JpegThumbnailSize = // Int32[2]
- JpegStart + 6,
-
- LensAperture = // Float
- LensStart,
-
- LensFilterDensity = // Float
- LensStart + 1,
-
- LensFocalLength = // Float
- LensStart + 2,
-
- LensFocusDistance = // Float
- LensStart + 3,
-
- LensOpticalStabilizationMode = // Byte (Enum)
- LensStart + 4,
-
- LensPoseRotation = // Float[4]
- LensStart + 6,
-
- LensPoseTranslation = // Float[3]
- LensStart + 7,
-
- LensFocusRange = // Float[2]
- LensStart + 8,
-
- LensState = // Byte (Enum)
- LensStart + 9,
-
- LensIntrinsicCalibration = // Float[5]
- LensStart + 10,
-
- LensRadialDistortion = // Float[6]
- LensStart + 11,
-
- NoiseReductionMode = // Byte (Enum)
- NoiseReductionStart,
-
- RequestPipelineDepth = // Byte
- RequestStart + 9,
-
- ScalerCropRegion = // Int32[4]
- ScalerStart,
-
- SensorExposureTime = // Int64
- SensorStart,
-
- SensorFrameDuration = // Int64
- SensorStart + 1,
-
- SensorSensitivity = // Int32
- SensorStart + 2,
-
- SensorTimestamp = // Int64
- SensorStart + 16,
-
- SensorNeutralColorPoint = // Rational[3]
- SensorStart + 18,
-
- SensorNoiseProfile = // Double[2Cfa Channels]
- SensorStart + 19,
-
- SensorGreenSplit = // Float
- SensorStart + 22,
-
- SensorTestPatternData = // Int32[4]
- SensorStart + 23,
-
- SensorTestPatternMode = // Int32 (Enum)
- SensorStart + 24,
-
- SensorRollingShutterSkew = // Int64
- SensorStart + 26,
-
- SensorDynamicBlackLevel = // Float[4]
- SensorStart + 28,
-
- SensorDynamicWhiteLevel = // Int32
- SensorStart + 29,
-
- ShadingMode = // Byte (Enum)
- ShadingStart,
-
- StatisticsFaceDetectMode = // Byte (Enum)
- StatisticsStart,
-
- StatisticsHotPixelMapMode = // Byte (Enum)
- StatisticsStart + 3,
-
- StatisticsFaceIds = // Int32[N]
- StatisticsStart + 4,
-
- StatisticsFaceLandmarks = // Int32[N6]
- StatisticsStart + 5,
-
- StatisticsFaceRectangles = // Int32[N4]
- StatisticsStart + 6,
-
- StatisticsFaceScores = // Byte[N]
- StatisticsStart + 7,
-
- StatisticsLensShadingMap = // Float[4nm]
- StatisticsStart + 11,
-
- StatisticsSceneFlicker = // Byte (Enum)
- StatisticsStart + 14,
-
- StatisticsHotPixelMap = // Int32[2n]
- StatisticsStart + 15,
-
- StatisticsLensShadingMapMode = // Byte (Enum)
- StatisticsStart + 16,
-
- TonemapCurveBlue = // Float[N2]
- TonemapStart,
-
- TonemapCurveGreen = // Float[N2]
- TonemapStart + 1,
-
- TonemapCurveRed = // Float[N2]
- TonemapStart + 2,
-
- TonemapMode = // Byte (Enum)
- TonemapStart + 3,
-
- TonemapGamma = // Float
- TonemapStart + 6,
-
- TonemapPresetCurve = // Byte (Enum)
- TonemapStart + 7,
-
- BlackLevelLock = // Byte (Enum)
- BlackLevelStart,
-
- SyncFrameNumber = // Int64 (Enum)
- SyncStart,
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/CameraMetadataTag.cs.meta b/Assets/GoogleARCore/SDK/Scripts/CameraMetadataTag.cs.meta
deleted file mode 100644
index 0ed78a81d..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/CameraMetadataTag.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 68f2bf600965540b080a2244b1221f8e
-timeCreated: 1511913936
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/CameraMetadataValue.cs b/Assets/GoogleARCore/SDK/Scripts/CameraMetadataValue.cs
deleted file mode 100644
index f91296059..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/CameraMetadataValue.cs
+++ /dev/null
@@ -1,271 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCore
-{
- using System;
- using System.Runtime.InteropServices;
- using GoogleARCoreInternal;
- using UnityEngine;
-
- ///
- /// Struct to contain camera metadata's value. When querying data from the struct, caller is responsible
- /// for making sure the querying data type matches the m_type.
- ///
- /// For example: if m_type is NdkCameraMetadataType.Byte, caller should only use
- /// CameraMetadataValue.AsByte() to access the value.
- ///
- [StructLayout(LayoutKind.Explicit)]
- public struct CameraMetadataValue
- {
- [FieldOffset(0)]
- private NdkCameraMetadataType m_Type;
- [FieldOffset(4)]
- private sbyte m_ByteValue;
- [FieldOffset(4)]
- private int m_IntValue;
- [FieldOffset(4)]
- private long m_LongValue;
- [FieldOffset(4)]
- private float m_FloatValue;
- [FieldOffset(4)]
- private double m_DoubleValue;
- [FieldOffset(4)]
- private CameraMetadataRational m_RationalValue;
-
- ///
- /// Constructs CameraMetadataValue using sbyte. This constructor only sets the sbyte field
- /// in the struct, leaving the rest of the data to default value.
- ///
- /// The byte value set to the struct.
- public CameraMetadataValue(sbyte byteValue)
- {
- m_IntValue = 0;
- m_LongValue = 0;
- m_FloatValue = 0;
- m_DoubleValue = 0;
- m_RationalValue = new CameraMetadataRational();
-
- m_Type = NdkCameraMetadataType.Byte;
- m_ByteValue = byteValue;
- }
-
- ///
- /// Constructs CameraMetadataValue using int. This constructor only sets the int field
- /// in the struct, leaving the rest of the data to default value.
- ///
- /// The int value set to the struct.
- public CameraMetadataValue(int intValue)
- {
- m_ByteValue = 0;
- m_LongValue = 0;
- m_FloatValue = 0;
- m_DoubleValue = 0;
- m_RationalValue = new CameraMetadataRational();
-
- m_Type = NdkCameraMetadataType.Int32;
- m_IntValue = intValue;
- }
-
- ///
- /// Constructs CameraMetadataValue using long. This constructor only sets the long field
- /// in the struct, leaving the rest of the data to default value.
- ///
- /// The long value set to the struct.
- public CameraMetadataValue(long longValue)
- {
- m_ByteValue = 0;
- m_IntValue = 0;
- m_FloatValue = 0;
- m_DoubleValue = 0;
- m_RationalValue = new CameraMetadataRational();
-
- m_Type = NdkCameraMetadataType.Int64;
- m_LongValue = longValue;
- }
-
- ///
- /// Constructs CameraMetadataValue using float. This constructor only sets the float field
- /// in the struct, leaving the rest of the data to default value.
- ///
- /// The float value set to the struct.
- public CameraMetadataValue(float floatValue)
- {
- m_ByteValue = 0;
- m_IntValue = 0;
- m_LongValue = 0;
- m_DoubleValue = 0;
- m_RationalValue = new CameraMetadataRational();
-
- m_Type = NdkCameraMetadataType.Float;
- m_FloatValue = floatValue;
- }
-
- ///
- /// Constructs CameraMetadataValue using double. This constructor only sets the double field
- /// in the struct, leaving the rest of the data to default value.
- ///
- /// The double value set to the struct.
- public CameraMetadataValue(double doubleValue)
- {
- m_ByteValue = 0;
- m_IntValue = 0;
- m_LongValue = 0;
- m_FloatValue = 0;
- m_RationalValue = new CameraMetadataRational();
-
- m_Type = NdkCameraMetadataType.Double;
- m_DoubleValue = doubleValue;
- }
-
- ///
- /// Constructs CameraMetadataValue using CameraMetadataRational. This constructor only sets the CameraMetadataRational field
- /// in the struct, leaving the rest of the data to default value.
- ///
- /// The CameraMetadataRational value set to the struct.
- public CameraMetadataValue(CameraMetadataRational rationalValue)
- {
- m_ByteValue = 0;
- m_IntValue = 0;
- m_LongValue = 0;
- m_FloatValue = 0;
- m_DoubleValue = 0;
-
- m_Type = NdkCameraMetadataType.Rational;
- m_RationalValue = rationalValue;
- }
-
- ///
- /// Gets sbyte value from the struct. This function checks if the querying type matches the internal
- /// type field, and logs error if the types do not match.
- ///
- /// Returns sbyte value stored in the struct.
- public sbyte AsByte()
- {
- if (m_Type != NdkCameraMetadataType.Byte)
- {
- LogError(NdkCameraMetadataType.Byte);
- }
-
- return m_ByteValue;
- }
-
- ///
- /// Gets int value from the struct. This function checks if the querying type matches the internal
- /// type field, and logs error if the types do not match.
- ///
- /// Returns int value stored in the struct.
- public int AsInt()
- {
- if (m_Type != NdkCameraMetadataType.Int32)
- {
- LogError(NdkCameraMetadataType.Int32);
- }
-
- return m_IntValue;
- }
-
- ///
- /// Gets float value from the struct. This function checks if the querying type matches the internal
- /// type field, and logs error if the types do not match.
- ///
- /// Returns float value stored in the struct.
- public float AsFloat()
- {
- if (m_Type != NdkCameraMetadataType.Float)
- {
- LogError(NdkCameraMetadataType.Float);
- }
-
- return m_FloatValue;
- }
-
- ///
- /// Gets long value from the struct. This function checks if the querying type matches the internal
- /// type field, and logs error if the types do not match.
- ///
- /// Returns long value stored in the struct.
- public long AsLong()
- {
- if (m_Type != NdkCameraMetadataType.Int64)
- {
- LogError(NdkCameraMetadataType.Int64);
- }
-
- return m_LongValue;
- }
-
- ///
- /// Gets double value from the struct. This function checks if the querying type matches the internal
- /// type field, and logs error if the types do not match.
- ///
- /// Returns double value stored in the struct.
- public double AsDouble()
- {
- if (m_Type != NdkCameraMetadataType.Double)
- {
- LogError(NdkCameraMetadataType.Double);
- }
-
- return m_DoubleValue;
- }
-
- ///
- /// Gets CameraMetadataRational value from the struct. This function checks if the querying type matches the internal
- /// type field, and logs error if the types do not match.
- ///
- /// Returns CameraMetadataRational value stored in the struct.
- public CameraMetadataRational AsRational()
- {
- if (m_Type != NdkCameraMetadataType.Rational)
- {
- LogError(NdkCameraMetadataType.Rational);
- }
-
- return m_RationalValue;
- }
-
- private void LogError(NdkCameraMetadataType requestedType)
- {
- ARDebug.LogErrorFormat("Error getting value from CameraMetadataType due to type mismatch. " +
- "requested type = {0}, internal type = {1}\n" +
- "Are you sure you are querying the correct type?", requestedType, m_Type);
- }
- }
-
- ///
- /// CameraMetadataRational follows the layout of ACameraMetadata_rational struct in NDK.
- /// Please refer to NdkCameraMetadata.h for documentation:
- /// https://developer.android.com/ndk/reference/ndk_camera_metadata_8h.html .
- ///
- [StructLayout(LayoutKind.Sequential)]
- public struct CameraMetadataRational
- {
- ///
- /// The numerator of the metadata rational.
- ///
- public int Numerator;
-
- ///
- /// The denominator of the metadata rational.
- ///
- public int Denominator;
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/CameraMetadataValue.cs.meta b/Assets/GoogleARCore/SDK/Scripts/CameraMetadataValue.cs.meta
deleted file mode 100644
index 282edeff9..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/CameraMetadataValue.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: e7bf42f9fcf4548e8bfeb90b36d40891
-timeCreated: 1511904539
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Editor.meta b/Assets/GoogleARCore/SDK/Scripts/Editor.meta
deleted file mode 100644
index 2aad0c912..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Editor.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: cfb05be3ca34b4826b62df99f182da2b
-folderAsset: yes
-timeCreated: 1518226182
-licenseType: Pro
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Editor/ARCoreRequiredMenuItem.cs b/Assets/GoogleARCore/SDK/Scripts/Editor/ARCoreRequiredMenuItem.cs
deleted file mode 100644
index d82e27edb..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Editor/ARCoreRequiredMenuItem.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System;
- using System.Diagnostics.CodeAnalysis;
- using System.IO;
- using UnityEditor;
- using UnityEngine;
-
- [InitializeOnLoad]
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public static class ARCoreRequiredMenuItem
- {
- private const string k_MenuName = "Edit/Project Settings/ARCore/ARCore Required";
- private const int k_MenuPriority = 901;
-
- [MenuItem(k_MenuName, false, k_MenuPriority)]
- private static void ToggleARCoreRequiredMenuItem()
- {
- ARCoreProjectSettings.Instance.IsARCoreRequired = !ARCoreProjectSettings.Instance.IsARCoreRequired;
- ARCoreProjectSettings.Instance.Save();
- }
-
- [MenuItem(k_MenuName, true, k_MenuPriority)]
- private static bool ValidateARCoreRequiredMenuItem()
- {
- Menu.SetChecked(k_MenuName, ARCoreProjectSettings.Instance.IsARCoreRequired);
- return true;
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Editor/ARCoreRequiredMenuItem.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Editor/ARCoreRequiredMenuItem.cs.meta
deleted file mode 100644
index eb0f191dc..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Editor/ARCoreRequiredMenuItem.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 09ecd63d3da8a410a90244cc9a8a049f
-timeCreated: 1518228501
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Editor/BuildHelper.cs b/Assets/GoogleARCore/SDK/Scripts/Editor/BuildHelper.cs
deleted file mode 100644
index 47c82f310..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Editor/BuildHelper.cs
+++ /dev/null
@@ -1,77 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System.Diagnostics.CodeAnalysis;
- using UnityEditor;
- using UnityEditor.Build;
-#if UNITY_2018_1_OR_NEWER
- using UnityEditor.Build.Reporting;
-#endif
- using UnityEngine;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
-#if UNITY_2018_1_OR_NEWER
- public class BuildHelper : IPreprocessBuildWithReport
-#else
- public class BuildHelper : IPreprocessBuild
-#endif
- {
- [SuppressMessage("UnityRules.UnityStyleRules", "US1000:FieldsMustBeUpperCamelCase",
- Justification = "Overriden property.")]
- public int callbackOrder
- {
- get
- {
- return 0;
- }
- }
-
-#if UNITY_2018_1_OR_NEWER
- public void OnPreprocessBuild(BuildReport report)
- {
-#else
- public void OnPreprocessBuild(BuildTarget target, string path)
- {
-#endif
- var isARCoreRequired = ARCoreProjectSettings.Instance.IsARCoreRequired;
-
- Debug.LogFormat("Building application with {0} ARCore support.",
- isARCoreRequired ? "REQUIRED" : "OPTIONAL");
-
- const string k_RequiredAARPath = "Assets/GoogleARCore/SDK/Plugins/google_ar_required.aar";
- const string k_OptionalAARPath = "Assets/GoogleARCore/SDK/Plugins/google_ar_optional.aar";
- PluginImporter arRequiredAAR = AssetImporter.GetAtPath(k_RequiredAARPath) as PluginImporter;
- PluginImporter arOptionalAAR = AssetImporter.GetAtPath(k_OptionalAARPath) as PluginImporter;
-
- if (arRequiredAAR == null || arOptionalAAR == null)
- {
- throw new UnityEditor.Build.BuildFailedException(
- "Not finding google_ar_required.aar and google_ar_optional.aar files needed for ARCore support. " +
- "Were they moved from the ARCore SDK?");
- }
-
- arRequiredAAR.SetCompatibleWithPlatform(BuildTarget.Android, isARCoreRequired);
- arOptionalAAR.SetCompatibleWithPlatform(BuildTarget.Android, !isARCoreRequired);
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Editor/BuildHelper.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Editor/BuildHelper.cs.meta
deleted file mode 100644
index 8bc81ad30..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Editor/BuildHelper.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 51b018421df5e4defbf0a70c95a5f749
-timeCreated: 1518228237
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/EnvironmentalLight.cs b/Assets/GoogleARCore/SDK/Scripts/EnvironmentalLight.cs
deleted file mode 100644
index cbc94c62d..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/EnvironmentalLight.cs
+++ /dev/null
@@ -1,74 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCore
-{
- using UnityEngine;
- using UnityEngine.Rendering;
-
- ///
- /// A component that automatically adjust lighting settings for the scene
- /// to be inline with those estimated by ARCore.
- ///
- [ExecuteInEditMode]
- public class EnvironmentalLight : MonoBehaviour
- {
- ///
- /// Unity update method that sets global light estimation shader constant to match
- /// ARCore's calculated values.
- ///
- public void Update()
- {
-#if UNITY_EDITOR
- // Set _GlobalLightEstimation to 1 in editor, if the value is not set, all materials
- // using light estimation shaders will be black.
- Shader.SetGlobalFloat("_GlobalLightEstimation", 1.0f);
-#else
- if (Frame.LightEstimate.State != LightEstimateState.Valid)
- {
- return;
- }
-
- // Use the following function to compute color scale:
- // * linear growth from (0.0, 0.0) to (1.0, LinearRampThreshold)
- // * slow growth from (1.0, LinearRampThreshold)
- const float linearRampThreshold = 0.8f;
- const float middleGray = 0.18f;
- const float inclination = 0.4f;
-
- float normalizedIntensity = Frame.LightEstimate.PixelIntensity / middleGray;
- float colorScale = 1.0f;
-
- if (normalizedIntensity < 1.0f)
- {
- colorScale = normalizedIntensity * linearRampThreshold;
- }
- else
- {
- float b = (linearRampThreshold / inclination) - 1.0f;
- float a = (b + 1.0f) / b * linearRampThreshold;
- colorScale = a * (1.0f - (1.0f / ((b * normalizedIntensity) + 1.0f)));
- }
-
- Shader.SetGlobalFloat("_GlobalLightEstimation", colorScale);
-#endif
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/EnvironmentalLight.cs.meta b/Assets/GoogleARCore/SDK/Scripts/EnvironmentalLight.cs.meta
deleted file mode 100644
index a844d1981..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/EnvironmentalLight.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 92a4cf446a0c7334aaceb5457be27894
-timeCreated: 1510799851
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Frame.cs b/Assets/GoogleARCore/SDK/Scripts/Frame.cs
deleted file mode 100644
index c0b77463c..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Frame.cs
+++ /dev/null
@@ -1,322 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCore
-{
- using System;
- using System.Collections.Generic;
- using GoogleARCoreInternal;
- using UnityEngine;
-
- ///
- /// Provides a snapshot of the state of ARCore at a specific timestamp associated with the current frame. Frame
- /// holds information about ARCore's state including tracking status, the pose of the camera relative to the world,
- /// estimated lighting parameters, and information on updates to objects (like Planes or Point Clouds) that ARCore
- /// is tracking.
- ///
- public class Frame
- {
- //// @cond EXCLUDE_FROM_DOXYGEN
-
- private static List s_TmpTrackableHitList = new List();
-
- //// @endcond
-
- ///
- /// Gets the pose of the ARCore device for the frame in Unity world coordinates.
- ///
- public static Pose Pose
- {
- get
- {
- var nativeSession = LifecycleManager.Instance.NativeSession;
- if (nativeSession == null)
- {
- return Pose.identity;
- }
-
- var cameraHandle = nativeSession.FrameApi.AcquireCamera();
- Pose result = nativeSession.CameraApi.GetPose(cameraHandle);
- nativeSession.CameraApi.Release(cameraHandle);
- return result;
- }
- }
-
- ///
- /// Gets the current light estimate for this frame.
- ///
- public static LightEstimate LightEstimate
- {
- get
- {
- // TODO (b/73256094): Remove isTracking when fixed.
- var nativeSession = LifecycleManager.Instance.NativeSession;
- var isTracking = LifecycleManager.Instance.SessionStatus == SessionStatus.Tracking;
- if (nativeSession == null || !isTracking)
- {
- return new LightEstimate(LightEstimateState.NotValid, 0.0f);
- }
-
- return nativeSession.FrameApi.GetLightEstimate();
- }
- }
-
- ///
- /// Performs a raycast against physical objects being tracked by ARCore.
- /// Output the closest hit from the camera.
- /// Note that the Unity's screen coordinate (0, 0)
- /// starts from bottom left.
- ///
- /// Horizontal touch position in Unity's screen coordiante.
- /// Vertical touch position in Unity's screen coordiante.
- /// A filter bitmask where each {@link TrackableHitFlag} which is set represents a category
- /// of raycast hits the method call should consider valid.
- /// A {@link TrackableHit} that will be set if the raycast is successful.
- /// true if the raycast had a hit, otherwise false.
- public static bool Raycast(float x, float y, TrackableHitFlags filter,
- out TrackableHit hitResult)
- {
- hitResult = new TrackableHit();
- var nativeSession = LifecycleManager.Instance.NativeSession;
- if (nativeSession == null)
- {
- return false;
- }
-
- // Note that the Unity's screen coordinate (0, 0) starts from bottom left.
- bool foundHit = nativeSession.HitTestApi.Raycast(nativeSession.FrameHandle, x, Screen.height - y, filter,
- s_TmpTrackableHitList, true);
-
- if (foundHit && s_TmpTrackableHitList.Count != 0)
- {
- hitResult = s_TmpTrackableHitList[0];
- }
-
- return foundHit;
- }
-
- ///
- /// Performs a raycast against physical objects being tracked by ARCore.
- /// Output all hits from the camera.
- /// Note that the Unity's screen coordinate (0, 0)
- /// starts from bottom left.
- ///
- /// Horizontal touch position in Unity's screen coordiante.
- /// Vertical touch position in Unity's screen coordiante.
- /// A filter bitmask where each {@link TrackableHitFlag} which is set represents a category
- /// of raycast hits the method call should consider valid.
- /// A list of {@link TrackableHit} that will be set if the raycast is successful.
- /// true if the raycast had a hit, otherwise false.
- public static bool RaycastAll(float x, float y, TrackableHitFlags filter, List hitResults)
- {
- hitResults.Clear();
- var nativeSession = LifecycleManager.Instance.NativeSession;
- if (nativeSession == null)
- {
- return false;
- }
-
- return nativeSession.HitTestApi.Raycast(nativeSession.FrameHandle, x, Screen.height - y, filter, hitResults, true);
- }
-
- ///
- /// Container for state related to the ARCore camera image metadata for the Frame.
- ///
- public static class CameraMetadata
- {
- ///
- /// Get camera image metadata value. The querying value type needs to match the returned type.
- /// The type could be checked in CameraMetadata.cs.
- ///
- /// Metadata type.
- /// Result list of the requested values.
- /// true if getting metadata value successfully, otherwise false.
- public static bool TryGetValues(CameraMetadataTag metadataTag, List outMetadataList)
- {
- outMetadataList.Clear();
- var nativeSession = LifecycleManager.Instance.NativeSession;
- if (nativeSession == null)
- {
- return false;
- }
-
- var metadataHandle = nativeSession.FrameApi.AcquireImageMetadata();
- var isSuccess = nativeSession.CameraMetadataApi.TryGetValues(metadataHandle, metadataTag, outMetadataList);
- nativeSession.CameraMetadataApi.Release(metadataHandle);
- return isSuccess;
- }
-
- ///
- /// Get all available tags in the current frame's metadata.
- ///
- /// Result list of the tags.
- /// true if getting tags successfully, otherwise false.
- public static bool GetAllCameraMetadataTags(List outMetadataTags)
- {
- outMetadataTags.Clear();
- var nativeSession = LifecycleManager.Instance.NativeSession;
- if (nativeSession == null)
- {
- return false;
- }
-
- var metadataHandle = nativeSession.FrameApi.AcquireImageMetadata();
- var isSuccess = nativeSession.CameraMetadataApi.GetAllCameraMetadataTags(metadataHandle,
- outMetadataTags);
- nativeSession.CameraMetadataApi.Release(metadataHandle);
- return isSuccess;
- }
- }
-
- ///
- /// Container for state related to the ARCore point cloud for the Frame.
- ///
- public static class PointCloud
- {
- ///
- /// Gets a value indicating whether new point cloud data became available in the current frame.
- ///
- /// true if new point cloud data became available in the current frame, otherwise
- /// false.
- public static bool IsUpdatedThisFrame
- {
- get
- {
- var nativeSession = LifecycleManager.Instance.NativeSession;
- if (nativeSession == null)
- {
- return false;
- }
-
- return nativeSession.IsPointCloudNew;
- }
- }
-
- ///
- /// Gets the count of point cloud points in the frame.
- ///
- public static int PointCount
- {
- get
- {
- // TODO (b/73256094): Remove isTracking when fixed.
- var nativeSession = LifecycleManager.Instance.NativeSession;
- var isTracking = LifecycleManager.Instance.SessionStatus == SessionStatus.Tracking;
- if (nativeSession == null || !isTracking)
- {
- return 0;
- }
-
- return nativeSession.PointCloudApi.GetNumberOfPoints(nativeSession.PointCloudHandle);
- }
- }
-
- ///
- /// Gets a point from the point cloud collection at an index.
- ///
- /// The index of the point cloud point to get.
- /// The point from the point cloud at index.
- public static Vector3 GetPoint(int index)
- {
- var nativeSession = LifecycleManager.Instance.NativeSession;
- if (nativeSession == null)
- {
- return Vector3.zero;
- }
-
- return nativeSession.PointCloudApi.GetPoint(nativeSession.PointCloudHandle, index);
- }
-
- ///
- /// Copies the point cloud for a frame into a supplied list reference.
- ///
- /// A list that will be filled with point cloud points by this method call.
- public static void CopyPoints(List points)
- {
- points.Clear();
- var nativeSession = LifecycleManager.Instance.NativeSession;
- if (nativeSession == null)
- {
- return;
- }
-
- nativeSession.PointCloudApi.CopyPoints(nativeSession.PointCloudHandle, points);
- }
- }
-
- ///
- /// Container for state related to the ARCore camera for the frame.
- ///
- public static class CameraImage
- {
- ///
- /// Gets a texture used from the device's rear camera.
- ///
- public static Texture Texture
- {
- get
- {
- return LifecycleManager.Instance.BackgroundTexture;
- }
- }
-
- ///
- /// Gets a ApiDisplayUvCoords to properly display the camera texture.
- ///
- public static ApiDisplayUvCoords DisplayUvCoords
- {
- get
- {
- ApiDisplayUvCoords displayUvCoords = new ApiDisplayUvCoords(new Vector2(0, 1),
- new Vector2(1, 1), new Vector2(0, 0), new Vector2(1, 0));
-
- var nativeSession = LifecycleManager.Instance.NativeSession;
- if (nativeSession == null || Texture == null)
- {
- return displayUvCoords;
- }
-
- nativeSession.FrameApi.TransformDisplayUvCoords(ref displayUvCoords);
- return displayUvCoords;
- }
- }
-
- ///
- /// Gets the projection matrix for the frame.
- ///
- /// The near clipping plane for the projection matrix.
- /// The far clipping plane for the projection matrix.
- /// The projection matrix for the frame.
- public static Matrix4x4 GetCameraProjectionMatrix(float nearClipping, float farClipping)
- {
- var nativeSession = LifecycleManager.Instance.NativeSession;
- if (nativeSession == null || Texture == null)
- {
- return Matrix4x4.identity;
- }
-
- var cameraHandle = nativeSession.FrameApi.AcquireCamera();
- var result = nativeSession.CameraApi.GetProjectionMatrix(cameraHandle, nearClipping, farClipping);
- nativeSession.CameraApi.Release(cameraHandle);
- return result;
- }
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Frame.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Frame.cs.meta
deleted file mode 100644
index 5921558ef..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Frame.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: f23179d83fac54b6898d7f842a3ecf83
-timeCreated: 1503161028
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/LightEstimate.cs b/Assets/GoogleARCore/SDK/Scripts/LightEstimate.cs
deleted file mode 100644
index e4be3aa60..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/LightEstimate.cs
+++ /dev/null
@@ -1,54 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCore
-{
- using UnityEngine;
-
- ///
- /// An estimate of lighting conditions in the environment corresponding to
- /// an AR frame.
- ///
- public struct LightEstimate
- {
- ///
- /// Constructor for a LightEstimate.
- ///
- /// State of the estimate.
- /// Average pixel intensity. Values range from 0.0
- /// to 1.0, where 0.0 represents black and 1.0 represents white.
- public LightEstimate(LightEstimateState state, float pixelIntensity)
- {
- State = state;
- PixelIntensity = pixelIntensity;
- }
-
- ///
- /// Gets the state of the current estimate.
- ///
- public LightEstimateState State { get; private set; }
-
- ///
- /// Gets an average pixel intensity. Values range from 0.0 to 1.0, where 0.0
- /// represents black and 1.0 represents white.
- ///
- public float PixelIntensity { get; private set; }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/LightEstimate.cs.meta b/Assets/GoogleARCore/SDK/Scripts/LightEstimate.cs.meta
deleted file mode 100644
index d70fb4250..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/LightEstimate.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: fda591ded80f4d6489368b5527603e86
-timeCreated: 1502160887
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/LightEstimateState.cs b/Assets/GoogleARCore/SDK/Scripts/LightEstimateState.cs
deleted file mode 100644
index 1707c6f0d..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/LightEstimateState.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCore
-{
- ///
- /// Possible states for .
- ///
- public enum LightEstimateState
- {
- ///
- /// Estimate is not valid and should not be used.
- ///
- NotValid,
-
- ///
- /// Estimate is valid.
- ///
- Valid,
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/LightEstimateState.cs.meta b/Assets/GoogleARCore/SDK/Scripts/LightEstimateState.cs.meta
deleted file mode 100644
index fe600dea8..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/LightEstimateState.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 4f3ad9d6ff6f214438ef1a961ef9b921
-timeCreated: 1510799673
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Managers.meta b/Assets/GoogleARCore/SDK/Scripts/Managers.meta
deleted file mode 100644
index fd4ba9179..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Managers.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 0e71c3224f80341e8bce7e10bfca6462
-folderAsset: yes
-timeCreated: 1510945633
-licenseType: Free
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Managers/LifecycleManager.cs b/Assets/GoogleARCore/SDK/Scripts/Managers/LifecycleManager.cs
deleted file mode 100644
index 27daf42d2..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Managers/LifecycleManager.cs
+++ /dev/null
@@ -1,361 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System;
- using System.Collections.Generic;
- using System.Diagnostics.CodeAnalysis;
- using System.Runtime.InteropServices;
- using GoogleARCore;
- using UnityEngine;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public class LifecycleManager
- {
- private static LifecycleManager s_Instance = new LifecycleManager();
-
- private CheckApkAvailabilityResultCallback m_CheckApkAvailabilityResultCallback;
-
- private RequestApkInstallationResultCallback m_RequestApkInstallationResultCallback;
-
- private CameraPermissionRequestProvider m_RequestCameraPermissionCallback;
-
- private EarlyUpdateCallback m_EarlyUpdateCallback;
-
- private Texture2D m_BackgroundTexture;
-
- private ARCoreSession m_SessionComponent;
-
- private NativeSession m_NativeSession;
-
- private List> m_PendingAvailabilityCheckCallbacks =
- new List>();
-
- private List> m_PendingInstallationRequestCallbacks =
- new List>();
-
- static LifecycleManager()
- {
- Instance._Initialize();
- }
-
- private delegate void CheckApkAvailabilityResultCallback(ApiAvailability status,
- IntPtr context);
-
- private delegate void RequestApkInstallationResultCallback(
- ApiApkInstallationStatus status, IntPtr context);
-
- private delegate void CameraPermissionsResultCallback(bool granted,
- IntPtr context);
-
- private delegate void CameraPermissionRequestProvider(
- CameraPermissionsResultCallback onComplete, IntPtr context);
-
- private delegate void SessionCreationResultCallback(
- IntPtr sessionHandle, IntPtr frameHandle, IntPtr context, ApiArStatus status);
-
- private delegate void EarlyUpdateCallback();
-
- public static LifecycleManager Instance
- {
- get
- {
- return s_Instance;
- }
- }
-
- public Texture2D BackgroundTexture
- {
- get
- {
- return m_BackgroundTexture;
- }
- }
-
- public NativeSession NativeSession
- {
- get
- {
- if (m_NativeSession != null)
- {
- return m_NativeSession;
- }
-
- IntPtr sessionHandle = IntPtr.Zero;
- ExternApi.ArPresto_getSession(ref sessionHandle);
-
- IntPtr frameHandle = IntPtr.Zero;
- ExternApi.ArPresto_getFrame(ref frameHandle);
-
- if (sessionHandle == IntPtr.Zero || frameHandle == IntPtr.Zero)
- {
- return null;
- }
-
- m_NativeSession = new NativeSession(sessionHandle, frameHandle);
- return m_NativeSession;
- }
- }
-
- public SessionStatus SessionStatus
- {
- get
- {
- ApiPrestoStatus prestoStatus = ApiPrestoStatus.Uninitialized;
- ExternApi.ArPresto_getStatus(ref prestoStatus);
- return prestoStatus.ToSessionStatus();
- }
- }
-
- public void CreateSession(ARCoreSession session)
- {
- session.StartCoroutine(InstantPreviewManager.InitializeIfNeeded());
-
- if (m_SessionComponent != null)
- {
- Debug.LogError("Multiple session components cannot exist in the scene. " +
- "Destroying the newest.");
- GameObject.Destroy(session);
- return;
- }
-
- m_SessionComponent = session;
- }
-
- public void EnableSession()
- {
- var config = m_SessionComponent.SessionConfig;
- if (config != null)
- {
- ExternApi.ArPresto_setConfiguration(new ApiPrestoConfig(config));
- }
-
- ExternApi.ArPresto_setEnabled(true);
- }
-
- public void DisableSession()
- {
- ExternApi.ArPresto_setEnabled(false);
- }
-
- public void DestroySession()
- {
- m_SessionComponent = null;
- }
-
- public AsyncTask CheckApkAvailability()
- {
- Action onComplete;
- AsyncTask task =
- new AsyncTask(out onComplete);
-
- ExternApi.ArPresto_checkApkAvailability(m_CheckApkAvailabilityResultCallback,
- IntPtr.Zero);
-
- m_PendingAvailabilityCheckCallbacks.Add(onComplete);
-
- return task;
- }
-
- public AsyncTask RequestApkInstallation(bool userRequested)
- {
- Action onComplete;
- AsyncTask task =
- new AsyncTask(out onComplete);
-
- ExternApi.ArPresto_requestApkInstallation(userRequested,
- m_RequestApkInstallationResultCallback, IntPtr.Zero);
-
- m_PendingInstallationRequestCallbacks.Add(onComplete);
-
- return task;
- }
-
- [AOT.MonoPInvokeCallback(typeof(CheckApkAvailabilityResultCallback))]
- private static void OnCheckApkAvailabilityResultTrampoline(
- ApiAvailability status, IntPtr context)
- {
- Instance._OnCheckApkAvailabilityResult(status.ToApkAvailabilityStatus());
- }
-
- [AOT.MonoPInvokeCallback(typeof(RequestApkInstallationResultCallback))]
- private static void OnApkInstallationResultTrampoline(
- ApiApkInstallationStatus status, IntPtr context)
- {
- Instance._OnRequestApkInstallationResult(status.ToApkInstallationStatus());
- }
-
- [AOT.MonoPInvokeCallback(typeof(CameraPermissionRequestProvider))]
- private static void RequestCameraPermissionTrampoline(
- CameraPermissionsResultCallback onComplete, IntPtr context)
- {
- Instance._RequestCameraPermission(onComplete, context);
- }
-
- [AOT.MonoPInvokeCallback(typeof(EarlyUpdateCallback))]
- private static void EarlyUpdateTrampoline()
- {
- Instance._EarlyUpdate();
- }
-
- private void _Initialize()
- {
- m_EarlyUpdateCallback = new EarlyUpdateCallback(EarlyUpdateTrampoline);
- ExternApi.ArCoreUnity_setArPrestoInitialized(m_EarlyUpdateCallback);
-
- IntPtr javaVMHandle = IntPtr.Zero;
- IntPtr activityHandle = IntPtr.Zero;
- ExternApi.ArCoreUnity_getJniInfo(ref javaVMHandle, ref activityHandle);
-
- m_CheckApkAvailabilityResultCallback =
- new CheckApkAvailabilityResultCallback(OnCheckApkAvailabilityResultTrampoline);
-
- m_RequestApkInstallationResultCallback =
- new RequestApkInstallationResultCallback(OnApkInstallationResultTrampoline);
-
- m_RequestCameraPermissionCallback =
- new CameraPermissionRequestProvider(RequestCameraPermissionTrampoline);
-
- ExternApi.ArPresto_initialize(javaVMHandle, activityHandle,
- m_RequestCameraPermissionCallback);
- }
-
- private void _RequestCameraPermission(CameraPermissionsResultCallback onComplete,
- IntPtr context)
- {
- const string cameraPermissionName = "android.permission.CAMERA";
- AndroidPermissionsManager.RequestPermission(cameraPermissionName).ThenAction((grantResult) =>
- {
- onComplete(grantResult.IsAllGranted, context);
- });
- }
-
- private void _EarlyUpdate()
- {
- AsyncTask.OnUpdate();
- _UpdateTextureIfNeeded();
-
- if (m_NativeSession != null)
- {
- m_NativeSession.SessionApi.SetDisplayGeometry(
- Screen.orientation, Screen.width, Screen.height);
- m_NativeSession.OnUpdate();
- }
- }
-
- private void _OnCheckApkAvailabilityResult(ApkAvailabilityStatus status)
- {
- foreach (var onComplete in m_PendingAvailabilityCheckCallbacks)
- {
- onComplete(status);
- }
-
- m_PendingAvailabilityCheckCallbacks.Clear();
- }
-
- private void _OnRequestApkInstallationResult(ApkInstallationStatus status)
- {
- foreach (var onComplete in m_PendingInstallationRequestCallbacks)
- {
- onComplete(status);
- }
-
- m_PendingInstallationRequestCallbacks.Clear();
- }
-
- private void _UpdateTextureIfNeeded()
- {
- // If running in editor, updates background texture from Instant Preview only.
- if (InstantPreviewManager.UpdateBackgroundTextureIfNeeded(ref m_BackgroundTexture))
- {
- return;
- }
-
- int backgroundTextureId = ExternApi.ArCoreUnity_getBackgroundTextureId();
-
- if (NativeSession == null)
- {
- // This prevents using a texture that has not been filled out by ARCore.
- return;
- }
- else if (backgroundTextureId == -1)
- {
- return;
- }
- else if (m_BackgroundTexture != null &&
- m_BackgroundTexture.GetNativeTexturePtr().ToInt32() == backgroundTextureId)
- {
- return;
- }
- else if (m_BackgroundTexture == null)
- {
- // The Unity-cached size and format of the texture (0x0, ARGB) is not the
- // actual format of the texture. This is okay because the texture is not
- // accessed by pixels, it is accessed with UV coordinates.
- m_BackgroundTexture = Texture2D.CreateExternalTexture(0, 0, TextureFormat.ARGB32, false,
- false, new IntPtr(backgroundTextureId));
- return;
- }
-
- m_BackgroundTexture.UpdateExternalTexture(new IntPtr(backgroundTextureId));
- }
-
- private struct ExternApi
- {
- [DllImport(ApiConstants.ARCoreShimApi)]
- public static extern void ArCoreUnity_getJniInfo(ref IntPtr javaVM, ref IntPtr activity);
-
- [DllImport(ApiConstants.ARCoreShimApi)]
- public static extern void ArCoreUnity_setArPrestoInitialized(EarlyUpdateCallback onEarlyUpdate);
-
- [DllImport(ApiConstants.ARCoreShimApi)]
- public static extern int ArCoreUnity_getBackgroundTextureId();
-
- [DllImport(ApiConstants.ARCoreShimApi)]
- public static extern void ArPresto_initialize(IntPtr javaVM, IntPtr activity,
- CameraPermissionRequestProvider requestCameraPermission);
-
- [DllImport(ApiConstants.ARCoreShimApi)]
- public static extern void ArPresto_checkApkAvailability(
- CheckApkAvailabilityResultCallback onResult, IntPtr context);
-
- [DllImport(ApiConstants.ARCoreShimApi)]
- public static extern void ArPresto_requestApkInstallation(bool user_requested,
- RequestApkInstallationResultCallback onResult, IntPtr context);
-
- [DllImport(ApiConstants.ARCoreShimApi)]
- public static extern void ArPresto_getSession(ref IntPtr sessionHandle);
-
- [DllImport(ApiConstants.ARCoreShimApi)]
- public static extern void ArPresto_setConfiguration(ApiPrestoConfig config);
-
- [DllImport(ApiConstants.ARCoreShimApi)]
- public static extern void ArPresto_setEnabled(bool isEnabled);
-
- [DllImport(ApiConstants.ARCoreShimApi)]
- public static extern void ArPresto_getFrame(ref IntPtr frameHandle);
-
- [DllImport(ApiConstants.ARCoreShimApi)]
- public static extern void ArPresto_getStatus(ref ApiPrestoStatus prestoStatus);
- }
- }
-}
\ No newline at end of file
diff --git a/Assets/GoogleARCore/SDK/Scripts/Managers/LifecycleManager.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Managers/LifecycleManager.cs.meta
deleted file mode 100644
index 47689ce8e..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Managers/LifecycleManager.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 864c8242be03c4aec8427b8a2286c601
-timeCreated: 1517519681
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Managers/TrackableManager.cs b/Assets/GoogleARCore/SDK/Scripts/Managers/TrackableManager.cs
deleted file mode 100644
index 0484e0925..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Managers/TrackableManager.cs
+++ /dev/null
@@ -1,151 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System;
- using System.Collections.Generic;
- using System.Diagnostics.CodeAnalysis;
- using GoogleARCore;
- using UnityEngine;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public class TrackableManager
- {
- private Dictionary m_TrackableDict =
- new Dictionary(new IntPtrEqualityComparer());
-
- private NativeSession m_NativeSession;
-
- private int m_LastUpdateFrame = -1;
-
- private List m_NewTrackables = new List();
-
- private List m_AllTrackables = new List();
-
- private List m_UpdatedTrackables = new List();
-
- private HashSet m_OldTrackables = new HashSet();
-
- public TrackableManager(NativeSession nativeSession)
- {
- m_NativeSession = nativeSession;
- }
-
- ///
- /// Factory method for creating and reusing TrackedPlane references from native handles.
- ///
- /// A native handle to a plane that has been acquired. RELEASE WILL BE HANDLED BY
- /// THIS METHOD.
- /// A reference to a tracked plane.
- public Trackable TrackableFactory(IntPtr nativeHandle)
- {
- if (nativeHandle == IntPtr.Zero)
- {
- return null;
- }
-
- Trackable result;
- if (m_TrackableDict.TryGetValue(nativeHandle, out result))
- {
- // Release aquired handle and return cached result.
- m_NativeSession.TrackableApi.Release(nativeHandle);
- return result;
- }
-
- ApiTrackableType trackableType = m_NativeSession.TrackableApi.GetType(nativeHandle);
- if (trackableType == ApiTrackableType.Plane)
- {
- result = new TrackedPlane(nativeHandle, m_NativeSession);
- }
- else if (trackableType == ApiTrackableType.Point)
- {
- result = new TrackedPoint(nativeHandle, m_NativeSession);
- }
- else
- {
- UnityEngine.Debug.LogFormat("Cant find {0}", trackableType);
- throw new NotImplementedException("TrackableFactory:: No constructor for requested trackable type.");
- }
-
- m_TrackableDict.Add(nativeHandle, result);
- return result;
- }
-
- public void GetTrackables(List trackables, TrackableQueryFilter filter) where T : Trackable
- {
- if (m_LastUpdateFrame < Time.frameCount)
- {
- // Get trackables updated this frame.
- m_NativeSession.FrameApi.GetUpdatedTrackables(m_UpdatedTrackables);
-
- // Get all the trackables in the session.
- m_NativeSession.SessionApi.GetAllTrackables(m_AllTrackables);
-
- // Find trackables that are not in the hashset (new).
- m_NewTrackables.Clear();
- for (int i = 0; i < m_AllTrackables.Count; i++)
- {
- Trackable trackable = m_AllTrackables[i];
- if (!m_OldTrackables.Contains(trackable))
- {
- m_NewTrackables.Add(trackable);
- m_OldTrackables.Add(trackable);
- }
- }
-
- m_LastUpdateFrame = Time.frameCount;
- }
-
- trackables.Clear();
-
- if (filter == TrackableQueryFilter.All)
- {
- for (int i = 0; i < m_AllTrackables.Count; i++)
- {
- _SafeAdd(m_AllTrackables[i], trackables);
- }
- }
- else if (filter == TrackableQueryFilter.New)
- {
- for (int i = 0; i < m_NewTrackables.Count; i++)
- {
- _SafeAdd(m_NewTrackables[i], trackables);
- }
- }
- else if (filter == TrackableQueryFilter.Updated)
- {
- for (int i = 0; i < m_NewTrackables.Count; i++)
- {
- _SafeAdd(m_UpdatedTrackables[i], trackables);
- }
- }
- }
-
- private void _SafeAdd(Trackable trackable, List trackables) where T : Trackable
- {
- if (trackable is T)
- {
- trackables.Add(trackable as T);
- }
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Managers/TrackableManager.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Managers/TrackableManager.cs.meta
deleted file mode 100644
index 0bcf08ffd..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Managers/TrackableManager.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 27167ddd916ef43bbaacd5878c2ae213
-timeCreated: 1510945633
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/PointCloudPoint.cs b/Assets/GoogleARCore/SDK/Scripts/PointCloudPoint.cs
deleted file mode 100644
index e8959a653..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/PointCloudPoint.cs
+++ /dev/null
@@ -1,83 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCore
-{
- using UnityEngine;
-
- ///
- /// A point in a point cloud.
- ///
- public struct PointCloudPoint
- {
- ///
- /// The x-position of the point.
- ///
- public float X;
-
- ///
- /// The y-position of the point.
- ///
- public float Y;
-
- ///
- /// The z-position of the point.
- ///
- public float Z;
-
- ///
- /// A normalized confidence value for the point.
- ///
- public float Confidence;
-
- ///
- /// Constructs a new PointCloudPoint.
- ///
- /// The x-position of the point.
- /// The y-position of the point.
- /// The z-position of the point.
- /// The confidence of the point.
- public PointCloudPoint(float x, float y, float z, float confidence)
- {
- this.X = x;
- this.Y = y;
- this.Z = z;
- this.Confidence = confidence;
- }
-
- ///
- /// Implicitly converts a PointCloudPoint to a Vector4.
- ///
- /// The point to convert.
- public static implicit operator Vector4(PointCloudPoint point)
- {
- return new Vector4(point.X, point.Y, point.Z, point.Confidence);
- }
-
- ///
- /// Implicitly converts a Vector4 to a PointCloudPoint.
- ///
- /// The Vector3 to convert.
- public static implicit operator PointCloudPoint(Vector4 vectorPoint)
- {
- return new PointCloudPoint(vectorPoint.x, vectorPoint.y, vectorPoint.z, vectorPoint.w);
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/PointCloudPoint.cs.meta b/Assets/GoogleARCore/SDK/Scripts/PointCloudPoint.cs.meta
deleted file mode 100644
index 8855f91e8..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/PointCloudPoint.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: f24ed3047ed4646bfab6a8a530dc432c
-timeCreated: 1510947955
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Session.cs b/Assets/GoogleARCore/SDK/Scripts/Session.cs
deleted file mode 100644
index 0cb911cd0..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Session.cs
+++ /dev/null
@@ -1,112 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCore
-{
- using System;
- using System.Collections.Generic;
- using GoogleARCoreInternal;
- using UnityEngine;
-
- ///
- /// Represents an ARCore session, which is an attachment point from the app
- /// to the ARCore service. Holds information about the global state for
- /// ARCore, manages tracking of Anchors and Planes, and performs hit tests
- /// against objects ARCore is tracking in the world.
- ///
- public static class Session
- {
- ///
- /// Gets current session status.
- ///
- public static SessionStatus Status
- {
- get
- {
- return LifecycleManager.Instance.SessionStatus;
- }
- }
-
- ///
- /// Creates a new Anchor at the given Pose that is attached to the Trackable.
- /// If trackable is null, it creates a new anchor at a world pose.
- /// As ARCore updates its understading of the space, it will update the
- /// virtual pose of the of the anchor to attempt to keep the anchor in the same real world location.
- ///
- /// The Unity world pose where the anchor is to be creates.
- /// The Trackable to attach the Anchor to.
- /// The newly created anchor or null.
- public static Anchor CreateAnchor(Pose pose, Trackable trackable = null)
- {
- var nativeSession = LifecycleManager.Instance.NativeSession;
- if (nativeSession == null)
- {
- return null;
- }
-
- if (trackable == null)
- {
- return nativeSession.SessionApi.CreateAnchor(pose);
- }
- else
- {
- return trackable.CreateAnchor(pose);
- }
- }
-
- ///
- /// Gets Trackables ARCore has tracked.
- ///
- /// The Trackable type to get.
- /// A reference to a list of T that will be filled by the method call.
- /// A filter on the type of data to return.
- public static void GetTrackables(List trackables, TrackableQueryFilter filter = TrackableQueryFilter.All) where T : Trackable
- {
- trackables.Clear();
- var nativeSession = LifecycleManager.Instance.NativeSession;
- if (nativeSession == null)
- {
- return;
- }
-
- nativeSession.GetTrackables(trackables, filter);
- }
-
- ///
- /// Checks the availability of the ARCore APK on the device.
- ///
- /// An AsyncTask that completes with an ApkAvailabilityStatus when the availability is known.
- public static AsyncTask CheckApkAvailability()
- {
- return LifecycleManager.Instance.CheckApkAvailability();
- }
-
- ///
- /// Requests an installation of the ARCore APK on the device.
- ///
- /// Whether the installation was requested explicity by a user action.
- /// An AsyncTask that completes with an ApkInstallationStatus when the installation
- /// status is resolved.
- public static AsyncTask RequestApkInstallation(bool userRequested)
- {
- return LifecycleManager.Instance.RequestApkInstallation(userRequested);
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Session.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Session.cs.meta
deleted file mode 100644
index d1b01983d..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Session.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 37d4175d892ef4e6190e38f26d22434c
-timeCreated: 1502156672
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/SessionStatus.cs b/Assets/GoogleARCore/SDK/Scripts/SessionStatus.cs
deleted file mode 100644
index 6de73ac2c..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/SessionStatus.cs
+++ /dev/null
@@ -1,74 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCore
-{
- ///
- /// Possible states for the ARCore session.
- ///
- public enum SessionStatus
- {
- ///
- /// The ARCore session has not been initialized.
- ///
- None = 0,
-
- ///
- /// The ARCore session is initializing.
- ///
- Initializing = 1,
-
- ///
- /// The ARCore session is tracking.
- ///
- Tracking = 100,
-
- ///
- /// The ARCore session has lost tracking and is attempting to recover.
- ///
- LostTracking = 101,
-
- ///
- /// The ARCore session is paused.
- ///
- NotTracking = 102,
-
- ///
- /// An ARCore session cannot begin tracking because a fatal error was encountered.
- ///
- FatalError = 200,
-
- ///
- /// An ARCore session cannot begin tracking because the ARCore service APK is not available on the device.
- ///
- ErrorApkNotAvailable = 201,
-
- ///
- /// An ARCore session cannot begin tracking because the Android camera permission is not granted.
- ///
- ErrorPermissionNotGranted = 202,
-
- ///
- /// An ARCore session cannot begin tracking because the session configuration supplied is not supported or no
- /// session configuration was supplied.
- ///
- ErrorSessionConfigurationNotSupported = 203,
- }
-}
\ No newline at end of file
diff --git a/Assets/GoogleARCore/SDK/Scripts/SessionStatus.cs.meta b/Assets/GoogleARCore/SDK/Scripts/SessionStatus.cs.meta
deleted file mode 100644
index 40427c87d..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/SessionStatus.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 30a41262cba2646c98f6d3cf4e46fb2a
-timeCreated: 1516741153
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/SessionStatusExtensions.cs b/Assets/GoogleARCore/SDK/Scripts/SessionStatusExtensions.cs
deleted file mode 100644
index 6a0851328..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/SessionStatusExtensions.cs
+++ /dev/null
@@ -1,70 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCore
-{
- using System.Collections.Generic;
- using System.Diagnostics.CodeAnalysis;
-
- ///
- /// Extension methods for the SessionStatus enumeration.
- ///
- public static class SessionStatusExtensions
- {
- private const int k_NotInitializedGroupStart = 0;
- private const int k_ValidSessionGroupStart = 100;
- private const int k_ErrorGroupStart = 200;
-
- ///
- /// Gets whether a SessionStatus is not yet initialized.
- ///
- /// The SessionStatus to check.
- /// true if the SessionStatus is not initialized, otherwise false.
- public static bool IsNotInitialized(this SessionStatus status)
- {
- int normalizedValue = (int)status - k_NotInitializedGroupStart;
- return normalizedValue >= 0 && normalizedValue < 100;
- }
-
- ///
- /// Gets whether a SessionStatus is initialized and valid.
- ///
- /// The SessionStatus to check.
- /// true if the SessionStatus is initialized and valid,
- /// otherwise false.
- public static bool IsValid(this SessionStatus status)
- {
- int normalizedValue = (int)status - k_ValidSessionGroupStart;
- return normalizedValue >= 0 && normalizedValue < 100;
- }
-
- ///
- /// Gets whether a SessionStatus is an error.
- ///
- /// The SessionStatus to check.
- /// true if the SessionStatus is an error,
- /// otherwise false.
- public static bool IsError(this SessionStatus status)
- {
- int normalizedValue = (int)status - k_ErrorGroupStart;
- return normalizedValue >= 0 && normalizedValue < 100;
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/SessionStatusExtensions.cs.meta b/Assets/GoogleARCore/SDK/Scripts/SessionStatusExtensions.cs.meta
deleted file mode 100644
index 5e626eed2..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/SessionStatusExtensions.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: b8d6e0fc3b3bc44218e96690668c05b4
-timeCreated: 1517519681
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Trackable.cs b/Assets/GoogleARCore/SDK/Scripts/Trackable.cs
deleted file mode 100644
index e6da5d780..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Trackable.cs
+++ /dev/null
@@ -1,125 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCore
-{
- using System;
- using System.Collections.Generic;
- using GoogleARCoreInternal;
- using UnityEngine;
-
- ///
- /// An object ARCore is tracking in the real world.
- ///
- public abstract class Trackable
- {
- //// @cond EXCLUDE_FROM_DOXYGEN
-
- ///
- /// A native handle for the ARCore trackable.
- ///
- protected IntPtr m_TrackableNativeHandle = IntPtr.Zero;
-
- ///
- /// The native api for ARCore.
- ///
- protected NativeSession m_NativeSession;
-
- ///
- /// Constructs a new ARCore Trackable.
- ///
- protected Trackable()
- {
- }
-
- ///
- /// Constructs a new ARCore Trackable.
- ///
- /// The native handle.
- /// The native session.
- protected Trackable(IntPtr trackableNativeHandle, NativeSession nativeSession)
- {
- m_TrackableNativeHandle = trackableNativeHandle;
- m_NativeSession = nativeSession;
- }
-
- ~Trackable()
- {
- m_NativeSession.TrackableApi.Release(m_TrackableNativeHandle);
- }
-
- //// @endcond
-
- ///
- /// Gets the tracking state of for the Trackable in the current frame.
- ///
- /// The tracking state of for the Trackable in the current frame.
- public virtual TrackingState TrackingState
- {
- get
- {
- // TODO (b/73256094): Remove isTracking when fixed.
- var nativeSession = LifecycleManager.Instance.NativeSession;
- var isTracking = LifecycleManager.Instance.SessionStatus == SessionStatus.Tracking;
- if (nativeSession != m_NativeSession)
- {
- // Trackables from another session are considered stopped.
- return TrackingState.Stopped;
- }
- else if (!isTracking)
- {
- // If there are no new frames coming in we must manually return paused.
- return TrackingState.Paused;
- }
-
- return m_NativeSession.TrackableApi.GetTrackingState(m_TrackableNativeHandle);
- }
- }
-
- ///
- /// Creates an Anchor at the given Pose that is attached to the Trackable where semantics of the
- /// attachment relationship are defined by the subcass of Trackable (e.g. TrackedPlane). Note that the
- /// relative offset between the Pose of multiple Anchors attached to the same Trackable may change
- /// over time as ARCore refines its understanding of the world.
- ///
- /// The Pose of the location to create the anchor.
- /// An Anchor attached to the Trackable at Pose.
- public virtual Anchor CreateAnchor(Pose pose)
- {
- IntPtr anchorHandle;
- if (!m_NativeSession.TrackableApi.AcquireNewAnchor(m_TrackableNativeHandle, pose, out anchorHandle))
- {
- Debug.Log("Failed to create anchor on trackable.");
- return null;
- }
-
- return Anchor.AnchorFactory(anchorHandle, m_NativeSession);
- }
-
- ///
- /// Gets all anchors attached to the Trackable.
- ///
- /// A list of anchors to be filled by the method.
- public virtual void GetAllAnchors(List anchors)
- {
- m_NativeSession.TrackableApi.GetAnchors(m_TrackableNativeHandle, anchors);
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Trackable.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Trackable.cs.meta
deleted file mode 100644
index b545d65a7..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Trackable.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: df152580aca434d62a87d4dfefe9ca93
-timeCreated: 1508869129
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/TrackableHit.cs b/Assets/GoogleARCore/SDK/Scripts/TrackableHit.cs
deleted file mode 100644
index 6033a99cf..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/TrackableHit.cs
+++ /dev/null
@@ -1,70 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCore
-{
- using UnityEngine;
-
- ///
- /// Contains information about a raycast hit against a physical object tracked by ARCore.
- ///
- public struct TrackableHit
- {
- //// @cond EXCLUDE_FROM_DOXYGEN
-
- ///
- /// Constructs a TrackableHit.
- ///
- /// Hit's pose.
- /// Hit's distance from the origin of the ray to the hit.
- /// Type of the hit.
- /// Trackable object of the hit.
- public TrackableHit(Pose pose, float distance, TrackableHitFlags flags, Trackable trackable)
- {
- Pose = pose;
- Distance = distance;
- Flags = flags;
- Trackable = trackable;
- }
-
- //// @endcond
-
- ///
- /// Gets the pose where the raycast hit the object in Unity world coordinates.
- ///
- public Pose Pose { get; private set; }
-
- ///
- /// Gets the distance from the origin of the ray to the hit.
- ///
- public float Distance { get; private set; }
-
- ///
- /// Gets a bitmask where set TrackableHitFlag flags correspond to categories of objects
- /// the hit belongs to.
- ///
- public TrackableHitFlags Flags { get; private set; }
-
- ///
- /// Gets the hit's trackable object.
- ///
- public Trackable Trackable { get; private set; }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/TrackableHit.cs.meta b/Assets/GoogleARCore/SDK/Scripts/TrackableHit.cs.meta
deleted file mode 100644
index ba3ce6fe9..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/TrackableHit.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: f69a232195c4d4a699cc8501f6ee7649
-timeCreated: 1502302494
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/TrackableHitFlags.cs b/Assets/GoogleARCore/SDK/Scripts/TrackableHitFlags.cs
deleted file mode 100644
index 8827d6e9e..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/TrackableHitFlags.cs
+++ /dev/null
@@ -1,66 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCore
-{
- using System;
- using UnityEngine;
-
- ///
- /// Flags representing categories of raycast hits.
- ///
- [Flags]
- public enum TrackableHitFlags
- {
- ///
- /// This value is returned on a TrackableHit to indicate no collision occurred.
- ///
- /// If you pass this into Raycast, you will not get any collision results.
- ///
- None = 0,
-
- ///
- /// The collision is within the the TrackedPlane's convex bounding polygon.
- ///
- PlaneWithinPolygon = 1 << 0,
-
- ///
- /// The collision is within the TrackedPlane's bounding box.
- ///
- PlaneWithinBounds = 1 << 1,
-
- ///
- /// The collision is on the TrackedPlane, but not limited to the bounding box or polygon.
- /// This acts as if the plane extends out to infinity.
- ///
- PlaneWithinInfinity = 1 << 2,
-
- ///
- /// The collision is on a feature point in the current frame's point cloud.
- ///
- FeaturePoint = 1 << 3,
-
- ///
- /// The collision is on a feature point in the current frame's point cloud
- /// that has a surface normal estimate (orientation).
- ///
- FeaturePointWithSurfaceNormal = 1 << 4,
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/TrackableHitFlags.cs.meta b/Assets/GoogleARCore/SDK/Scripts/TrackableHitFlags.cs.meta
deleted file mode 100644
index 449b096f9..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/TrackableHitFlags.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: a541164e523764394a27cc3803637e58
-timeCreated: 1502302494
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/TrackableQueryFilter.cs b/Assets/GoogleARCore/SDK/Scripts/TrackableQueryFilter.cs
deleted file mode 100644
index 4b5fe7bf3..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/TrackableQueryFilter.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCore
-{
- using System;
- using System.Collections.Generic;
- using GoogleARCoreInternal;
- using UnityEngine;
-
- ///
- /// A filter for trackable queries.
- ///
- public enum TrackableQueryFilter
- {
- ///
- /// Indicates available trackables.
- ///
- All,
-
- ///
- /// Indicates new trackables detected in the current ARCore Frame.
- ///
- New,
-
- ///
- /// Indicates trackables that were updated in the current ARCore Frame.
- ///
- Updated,
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/TrackableQueryFilter.cs.meta b/Assets/GoogleARCore/SDK/Scripts/TrackableQueryFilter.cs.meta
deleted file mode 100644
index 7d2ff60e3..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/TrackableQueryFilter.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 21d75659f8470494cbefd71c8b7f25bd
-timeCreated: 1510770155
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/TrackedPlane.cs b/Assets/GoogleARCore/SDK/Scripts/TrackedPlane.cs
deleted file mode 100644
index 5d7ee6e48..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/TrackedPlane.cs
+++ /dev/null
@@ -1,105 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCore
-{
- using System;
- using System.Collections.Generic;
- using System.Diagnostics.CodeAnalysis;
- using GoogleARCoreInternal;
- using UnityEngine;
-
- ///
- /// A planar surface in the real world detected and tracked by ARCore.
- ///
- public class TrackedPlane : Trackable
- {
- //// @cond EXCLUDE_FROM_DOXYGEN
-
- ///
- /// Construct TrackedPlane from a native handle.
- ///
- /// A handle to the native ARCore API Trackable.
- /// The ARCore native api.
- public TrackedPlane(IntPtr nativeHandle, NativeSession nativeApi)
- : base(nativeHandle, nativeApi)
- {
- m_TrackableNativeHandle = nativeHandle;
- m_NativeSession = nativeApi;
- }
-
- //// @endcond
-
- ///
- /// Gets a reference to the plane subsuming this plane, if any. If not null, only the subsuming plane should be
- /// considered valid for rendering.
- ///
- public TrackedPlane SubsumedBy
- {
- get
- {
- return m_NativeSession.PlaneApi.GetSubsumedBy(m_TrackableNativeHandle);
- }
- }
-
- ///
- /// Gets the position and orientation of the plane's center.
- ///
- public Pose CenterPose
- {
- get
- {
- return m_NativeSession.PlaneApi.GetCenterPose(m_TrackableNativeHandle);
- }
- }
-
- ///
- /// Gets the extent of the plane in the X dimension, centered on the plane position.
- ///
- public float ExtentX
- {
- get
- {
- return m_NativeSession.PlaneApi.GetExtentX(m_TrackableNativeHandle);
- }
- }
-
- ///
- /// Gets the extent of the plane in the Z dimension, centered on the plane position.
- ///
- public float ExtentZ
- {
- get
- {
- return m_NativeSession.PlaneApi.GetExtentZ(m_TrackableNativeHandle);
- }
- }
-
- ///
- /// Gets a list of points (in clockwise order) in Unity world space representing a boundary polygon for
- /// the plane.
- ///
- /// A list of Vector3 to be filled by the method call.
- public void GetBoundaryPolygon(List boundaryPolygonPoints)
- {
- m_NativeSession.PlaneApi.GetPolygon(m_TrackableNativeHandle, boundaryPolygonPoints);
- }
- }
-}
\ No newline at end of file
diff --git a/Assets/GoogleARCore/SDK/Scripts/TrackedPlane.cs.meta b/Assets/GoogleARCore/SDK/Scripts/TrackedPlane.cs.meta
deleted file mode 100644
index e1cc6ecdd..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/TrackedPlane.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: f2d0f75c2c2744f5c8b7c0a18da840a6
-timeCreated: 1502152830
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/TrackedPoint.cs b/Assets/GoogleARCore/SDK/Scripts/TrackedPoint.cs
deleted file mode 100644
index b7c90a01b..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/TrackedPoint.cs
+++ /dev/null
@@ -1,69 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCore
-{
- using System;
- using System.Collections.Generic;
- using System.Diagnostics.CodeAnalysis;
- using GoogleARCoreInternal;
- using UnityEngine;
-
- ///
- /// A point in the real world tracked by ARCore.
- ///
- public class TrackedPoint : Trackable
- {
- //// @cond EXCLUDE_FROM_DOXYGEN
-
- ///
- /// Construct TrackedPoint from a native handle.
- ///
- /// A handle to the native ARCore API Trackable.
- /// The ARCore native api.
- public TrackedPoint(IntPtr nativeHandle, NativeSession nativeApi) : base(nativeHandle, nativeApi)
- {
- }
-
- //// @endcond
-
- ///
- /// Gets the pose of the TrackedPoint.
- ///
- public Pose Pose
- {
- get
- {
- return m_NativeSession.PointApi.GetPose(m_TrackableNativeHandle);
- }
- }
-
- ///
- /// Gets the orientation mode of the TrackedPoint.
- ///
- public TrackedPointOrientationMode OrientationMode
- {
- get
- {
- return m_NativeSession.PointApi.GetOrientationMode(m_TrackableNativeHandle);
- }
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/TrackedPoint.cs.meta b/Assets/GoogleARCore/SDK/Scripts/TrackedPoint.cs.meta
deleted file mode 100644
index dfc1e35eb..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/TrackedPoint.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: d7990c0cac50a48a29eba12ee1f730bc
-timeCreated: 1510616957
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/TrackedPointOrientationMode.cs b/Assets/GoogleARCore/SDK/Scripts/TrackedPointOrientationMode.cs
deleted file mode 100644
index bd381cc8b..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/TrackedPointOrientationMode.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCore
-{
- ///
- /// The orientation mode for a TrackedPoint.
- ///
- public enum TrackedPointOrientationMode
- {
- Identity = 0,
- SurfaceNormal = 1,
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/TrackedPointOrientationMode.cs.meta b/Assets/GoogleARCore/SDK/Scripts/TrackedPointOrientationMode.cs.meta
deleted file mode 100644
index 582f1e37b..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/TrackedPointOrientationMode.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: f605e8f0dd31a453083b47fb68477792
-timeCreated: 1516989852
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/TrackingState.cs b/Assets/GoogleARCore/SDK/Scripts/TrackingState.cs
deleted file mode 100644
index def6f4f5a..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/TrackingState.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCore
-{
- ///
- /// Possible tracking states for ARCore.
- ///
- public enum TrackingState
- {
- ///
- /// The entity is actively being tracked.
- ///
- Tracking = 0,
-
- ///
- /// ARCore has paused tracking the entity but may resume tracking it in the future.
- ///
- Paused = 1,
-
- ///
- /// ARCore has stopped tracking the entity and will never resume tracking it.
- ///
- Stopped = 2,
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/TrackingState.cs.meta b/Assets/GoogleARCore/SDK/Scripts/TrackingState.cs.meta
deleted file mode 100644
index caac85131..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/TrackingState.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 190efca65a78647b7a60e0e4b2288b27
-timeCreated: 1510509514
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Utility.meta b/Assets/GoogleARCore/SDK/Scripts/Utility.meta
deleted file mode 100644
index 7f35db098..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Utility.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: df74476279e4c4797bdcc1ff52177a3e
-folderAsset: yes
-timeCreated: 1502401080
-licenseType: Free
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Utility/ARCoreProjectSettings.cs b/Assets/GoogleARCore/SDK/Scripts/Utility/ARCoreProjectSettings.cs
deleted file mode 100644
index 35461c2c6..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Utility/ARCoreProjectSettings.cs
+++ /dev/null
@@ -1,75 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System;
- using System.Diagnostics.CodeAnalysis;
- using System.IO;
- using UnityEngine;
-
- [Serializable]
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public class ARCoreProjectSettings
- {
- public string Version;
- public bool IsARCoreRequired;
- public bool IsInstantPreviewEnabled;
- private const string k_VersionString = "V1.0.0";
- private const string k_ProjectSettingsPath = "ProjectSettings/ARCoreProjectSettings.json";
-
- static ARCoreProjectSettings()
- {
- if (Application.isEditor)
- {
- Instance = new ARCoreProjectSettings();
- Instance.Load();
- }
- else
- {
- Instance = null;
- Debug.LogError("Cannot access ARCoreProjectSettings outside of Unity Editor.");
- }
- }
-
- public static ARCoreProjectSettings Instance { get; private set; }
-
- public void Load()
- {
- Version = k_VersionString;
- IsARCoreRequired = true;
- IsInstantPreviewEnabled = false;
-
- if (File.Exists(k_ProjectSettingsPath))
- {
- ARCoreProjectSettings settings = JsonUtility.FromJson(
- File.ReadAllText(k_ProjectSettingsPath));
- Version = settings.Version;
- IsARCoreRequired = settings.IsARCoreRequired;
- }
- }
-
- public void Save()
- {
- File.WriteAllText(k_ProjectSettingsPath, JsonUtility.ToJson(this));
- }
- }
-}
\ No newline at end of file
diff --git a/Assets/GoogleARCore/SDK/Scripts/Utility/ARCoreProjectSettings.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Utility/ARCoreProjectSettings.cs.meta
deleted file mode 100644
index 5a47a84f5..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Utility/ARCoreProjectSettings.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 68605a05829544832b871afc8bf03168
-timeCreated: 1518470830
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Utility/ARDebug.cs b/Assets/GoogleARCore/SDK/Scripts/Utility/ARDebug.cs
deleted file mode 100644
index ea335f1f4..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Utility/ARDebug.cs
+++ /dev/null
@@ -1,54 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2016 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System;
- using System.Diagnostics;
- using UnityEngine;
-
- ///
- /// A custom class similar to Unity's Debug.
- ///
- public class ARDebug
- {
- ///
- /// Logs an error with a stack trace.
- ///
- /// The error message.
- public static void LogError(object message)
- {
- UnityEngine.Debug.LogErrorFormat(message + "\n{0}", new StackTrace(1));
- }
-
- ///
- /// Logs an error with a stack trace.
- ///
- /// The string format.
- /// The output arguments.
- public static void LogErrorFormat(string format, params object[] args)
- {
- object[] newArgs = new object[args.Length + 1];
- Array.Copy(args, newArgs, args.Length);
- newArgs[args.Length] = new StackTrace(1);
- UnityEngine.Debug.LogErrorFormat(format + "\n{" + args.Length + "}", newArgs);
- }
- }
-}
\ No newline at end of file
diff --git a/Assets/GoogleARCore/SDK/Scripts/Utility/ARDebug.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Utility/ARDebug.cs.meta
deleted file mode 100644
index 1fd07e548..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Utility/ARDebug.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 84b5f07f2795d472e9c6e7bc3ed8bf35
-timeCreated: 1502425714
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Utility/ConversionHelper.cs b/Assets/GoogleARCore/SDK/Scripts/Utility/ConversionHelper.cs
deleted file mode 100644
index 824e9e374..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Utility/ConversionHelper.cs
+++ /dev/null
@@ -1,66 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2016 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System;
- using System.Collections.Generic;
- using System.Diagnostics.CodeAnalysis;
- using System.Runtime.InteropServices;
- using UnityEngine;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public class ConversionHelper
- {
- public static void UnityPoseToApiPose(Pose unityPose, out ApiPoseData apiPose)
- {
- Matrix4x4 glWorld_T_glLocal = Matrix4x4.TRS(unityPose.position, unityPose.rotation, Vector3.one);
- Matrix4x4 unityWorld_T_glWorld = Matrix4x4.Scale(new Vector3(1, 1, -1));
- Matrix4x4 unityWorld_T_unityLocal = unityWorld_T_glWorld * glWorld_T_glLocal * unityWorld_T_glWorld.inverse;
-
- Vector3 position = unityWorld_T_unityLocal.GetColumn(3);
- Quaternion rotation = Quaternion.LookRotation(unityWorld_T_unityLocal.GetColumn(2),
- unityWorld_T_unityLocal.GetColumn(1));
-
- apiPose.X = position.x;
- apiPose.Y = position.y;
- apiPose.Z = position.z;
- apiPose.Qx = rotation.x;
- apiPose.Qy = rotation.y;
- apiPose.Qz = rotation.z;
- apiPose.Qw = rotation.w;
- }
-
- public static void ApiPoseToUnityPose(ApiPoseData apiPose, out Pose unityPose)
- {
- Matrix4x4 glWorld_T_glLocal = Matrix4x4.TRS(new Vector3(apiPose.X, apiPose.Y, apiPose.Z),
- new Quaternion(apiPose.Qx, apiPose.Qy, apiPose.Qz, apiPose.Qw), Vector3.one);
- Matrix4x4 unityWorld_T_glWorld = Matrix4x4.Scale(new Vector3(1, 1, -1));
- Matrix4x4 unityWorld_T_unityLocal = unityWorld_T_glWorld * glWorld_T_glLocal * unityWorld_T_glWorld.inverse;
-
- Vector3 position = unityWorld_T_unityLocal.GetColumn(3);
- Quaternion rotation = Quaternion.LookRotation(unityWorld_T_unityLocal.GetColumn(2),
- unityWorld_T_unityLocal.GetColumn(1));
-
- unityPose = new Pose(position, rotation);
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Utility/ConversionHelper.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Utility/ConversionHelper.cs.meta
deleted file mode 100644
index 7295e4317..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Utility/ConversionHelper.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 1a1be6e2816d24b2ea1d6ec5f4be479d
-timeCreated: 1510266639
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Utility/IntPtrEqualityComparer.cs b/Assets/GoogleARCore/SDK/Scripts/Utility/IntPtrEqualityComparer.cs
deleted file mode 100644
index 64d89703e..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Utility/IntPtrEqualityComparer.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2017 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System;
- using System.Collections.Generic;
- using System.Diagnostics.CodeAnalysis;
- using System.Runtime.InteropServices;
- using GoogleARCore;
- using UnityEngine;
-
- [SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
- Justification = "Internal")]
- public class IntPtrEqualityComparer : IEqualityComparer
- {
- public bool Equals(IntPtr intPtr1, IntPtr intPtr2)
- {
- return intPtr1 == intPtr2;
- }
-
- public int GetHashCode(IntPtr intPtr)
- {
- return intPtr.GetHashCode();
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Utility/IntPtrEqualityComparer.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Utility/IntPtrEqualityComparer.cs.meta
deleted file mode 100644
index 2b8db03bd..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Utility/IntPtrEqualityComparer.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: ef23faba8749e46a5bd33fa98d0b4445
-timeCreated: 1513114243
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/GoogleARCore/SDK/Scripts/Utility/MarshalingHelper.cs b/Assets/GoogleARCore/SDK/Scripts/Utility/MarshalingHelper.cs
deleted file mode 100644
index ccdd62af9..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Utility/MarshalingHelper.cs
+++ /dev/null
@@ -1,65 +0,0 @@
-//-----------------------------------------------------------------------
-//
-//
-// Copyright 2016 Google Inc. 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.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-//
-//-----------------------------------------------------------------------
-
-namespace GoogleARCoreInternal
-{
- using System;
- using System.Collections.Generic;
- using System.Runtime.InteropServices;
- using GoogleARCore;
-
- ///
- /// A helper class for mashalling data.
- ///
- public class MarshalingHelper
- {
- ///
- /// Adds the contents of an unmanaged struct array to a list.
- ///
- /// A pointer to the unmanged array.
- /// The length of the unmanaged array.
- /// A list to append array elements to.
- /// The type contained by the unmanaged array.
- public static void AddUnmanagedStructArrayToList(IntPtr arrayPtr, int arrayLength, List list) where T : struct
- {
- if (arrayPtr == IntPtr.Zero || list == null)
- {
- return;
- }
-
- for (int i = 0; i < arrayLength; i++)
- {
- list.Add((T)Marshal.PtrToStructure(GetPtrToUnmanagedArrayElement(arrayPtr, i), typeof(T)));
- }
- }
-
- ///
- /// Returns a pointer to an element within an unmanaged array.
- ///
- /// A pointer to the desired unmanaged array element.
- /// A pointer to the start of the array.
- /// The index of the desired element pointer.
- /// The type contained by the unmanaged array.
- public static IntPtr GetPtrToUnmanagedArrayElement(IntPtr arrayPtr, int arrayIndex) where T : struct
- {
- return new IntPtr(arrayPtr.ToInt64() + (Marshal.SizeOf(typeof(T)) * arrayIndex));
- }
- }
-}
diff --git a/Assets/GoogleARCore/SDK/Scripts/Utility/MarshalingHelper.cs.meta b/Assets/GoogleARCore/SDK/Scripts/Utility/MarshalingHelper.cs.meta
deleted file mode 100644
index 2ecb0636f..000000000
--- a/Assets/GoogleARCore/SDK/Scripts/Utility/MarshalingHelper.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: ced698934296748419bf72ad4ac8a66b
-timeCreated: 1502400449
-licenseType: Free
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox.meta b/Assets/Mapbox.meta
deleted file mode 100644
index 7abfcfe48..000000000
--- a/Assets/Mapbox.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 3ea1e493e9ceb4c06bdaaeeacb2e4d7c
-folderAsset: yes
-timeCreated: 1480534607
-licenseType: Free
-DefaultImporter:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core.meta b/Assets/Mapbox/Core.meta
deleted file mode 100644
index ec23c4474..000000000
--- a/Assets/Mapbox/Core.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 9baba017b10fa4eaeab33dade1902adb
-folderAsset: yes
-timeCreated: 1481925241
-licenseType: Pro
-DefaultImporter:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins.meta b/Assets/Mapbox/Core/Plugins.meta
deleted file mode 100644
index 3489c7af2..000000000
--- a/Assets/Mapbox/Core/Plugins.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 59e7e6a60c29840a5b9d84b2ee53671a
-folderAsset: yes
-timeCreated: 1491243030
-licenseType: Pro
-DefaultImporter:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Android.meta b/Assets/Mapbox/Core/Plugins/Android.meta
deleted file mode 100644
index e4128b6c3..000000000
--- a/Assets/Mapbox/Core/Plugins/Android.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: e191eb758d41cba41b7f997ada0d41eb
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Android/UniAndroidPermission.meta b/Assets/Mapbox/Core/Plugins/Android/UniAndroidPermission.meta
deleted file mode 100644
index c581b4719..000000000
--- a/Assets/Mapbox/Core/Plugins/Android/UniAndroidPermission.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 4aa6de0d65164fe48a9b01246c856fc8
-folderAsset: yes
-timeCreated: 1521070590
-licenseType: Pro
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Android/UniAndroidPermission/AndroidManifest-uniRP.xml b/Assets/Mapbox/Core/Plugins/Android/UniAndroidPermission/AndroidManifest-uniRP.xml
deleted file mode 100644
index 4aa919abd..000000000
--- a/Assets/Mapbox/Core/Plugins/Android/UniAndroidPermission/AndroidManifest-uniRP.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Assets/Mapbox/Core/Plugins/Android/UniAndroidPermission/AndroidManifest-uniRP.xml.meta b/Assets/Mapbox/Core/Plugins/Android/UniAndroidPermission/AndroidManifest-uniRP.xml.meta
deleted file mode 100644
index cb3e6e4fd..000000000
--- a/Assets/Mapbox/Core/Plugins/Android/UniAndroidPermission/AndroidManifest-uniRP.xml.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 9a957c06543b147a1b950f050282d728
-timeCreated: 1458403910
-licenseType: Free
-TextScriptImporter:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Android/UniAndroidPermission/UniAndroidPermission.cs b/Assets/Mapbox/Core/Plugins/Android/UniAndroidPermission/UniAndroidPermission.cs
deleted file mode 100644
index 245b0676d..000000000
--- a/Assets/Mapbox/Core/Plugins/Android/UniAndroidPermission/UniAndroidPermission.cs
+++ /dev/null
@@ -1,111 +0,0 @@
-using System;
-using UnityEngine;
-
-public class UniAndroidPermission : MonoBehaviour
-{
- const string PackageName = "net.sanukin.PermissionManager";
-
- static Action onAllowCallback;
- static Action onDenyCallback;
- static Action onDenyAndNeverAskAgainCallback;
-
- void Awake()
- {
- DontDestroyOnLoad(gameObject);
- }
-
- public static bool IsPermitted(AndroidPermission permission)
- {
-#if !UNITY_EDITOR && UNITY_ANDROID
- using (var permissionManager = new AndroidJavaClass(PackageName))
- {
- return permissionManager.CallStatic("hasPermission", GetPermittionStr(permission));
- }
-#else
- return true;
-#endif
- }
-
- public static void RequestPermission(AndroidPermission permission, Action onAllow = null, Action onDeny = null, Action onDenyAndNeverAskAgain = null)
- {
-#if !UNITY_EDITOR && UNITY_ANDROID
- using (var permissionManager = new AndroidJavaClass(PackageName))
- {
- permissionManager.CallStatic("requestPermission", GetPermittionStr(permission));
- onAllowCallback = onAllow;
- onDenyCallback = onDeny;
- onDenyAndNeverAskAgainCallback = onDenyAndNeverAskAgain;
- }
-#else
- Debug.LogWarning("UniAndroidPermission works only Androud Devices.");
-#endif
- }
-
- private static string GetPermittionStr(AndroidPermission permittion)
- {
- return "android.permission." + permittion.ToString();
- }
-
- private void OnAllow()
- {
- if (onAllowCallback != null)
- {
- onAllowCallback();
- }
- ResetAllCallBacks();
- }
-
- private void OnDeny()
- {
- if (onDenyCallback != null)
- {
- onDenyCallback();
- }
- ResetAllCallBacks();
- }
-
- private void OnDenyAndNeverAskAgain()
- {
- if (onDenyAndNeverAskAgainCallback != null)
- {
- onDenyAndNeverAskAgainCallback();
- }
- ResetAllCallBacks();
- }
-
- private void ResetAllCallBacks(){
- onAllowCallback = null;
- onDenyCallback = null;
- onDenyAndNeverAskAgainCallback = null;
- }
-}
-
-// Protection level: dangerous permissions 2015/11/25
-// http://developer.android.com/intl/ja/reference/android/Manifest.permission.html
-public enum AndroidPermission
-{
- ACCESS_COARSE_LOCATION,
- ACCESS_FINE_LOCATION,
- ADD_VOICEMAIL,
- BODY_SENSORS,
- CALL_PHONE,
- CAMERA,
- GET_ACCOUNTS,
- PROCESS_OUTGOING_CALLS,
- READ_CALENDAR,
- READ_CALL_LOG,
- READ_CONTACTS,
- READ_EXTERNAL_STORAGE,
- READ_PHONE_STATE,
- READ_SMS,
- RECEIVE_MMS,
- RECEIVE_SMS,
- RECEIVE_WAP_PUSH,
- RECORD_AUDIO,
- SEND_SMS,
- USE_SIP,
- WRITE_CALENDAR,
- WRITE_CALL_LOG,
- WRITE_CONTACTS,
- WRITE_EXTERNAL_STORAGE
-}
diff --git a/Assets/Mapbox/Core/Plugins/Android/UniAndroidPermission/UniAndroidPermission.cs.meta b/Assets/Mapbox/Core/Plugins/Android/UniAndroidPermission/UniAndroidPermission.cs.meta
deleted file mode 100644
index 245fad8be..000000000
--- a/Assets/Mapbox/Core/Plugins/Android/UniAndroidPermission/UniAndroidPermission.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 7df6f555c4d344871bf935752b861a45
-timeCreated: 1448444718
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Android/UniAndroidPermission/UniAndroidPermission.prefab b/Assets/Mapbox/Core/Plugins/Android/UniAndroidPermission/UniAndroidPermission.prefab
deleted file mode 100644
index ffbe3042e..000000000
--- a/Assets/Mapbox/Core/Plugins/Android/UniAndroidPermission/UniAndroidPermission.prefab
+++ /dev/null
@@ -1,53 +0,0 @@
-%YAML 1.1
-%TAG !u! tag:unity3d.com,2011:
---- !u!1 &134968
-GameObject:
- m_ObjectHideFlags: 0
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 100100000}
- serializedVersion: 5
- m_Component:
- - component: {fileID: 408032}
- - component: {fileID: 11480548}
- m_Layer: 0
- m_Name: UniAndroidPermission
- m_TagString: Untagged
- m_Icon: {fileID: 0}
- m_NavMeshLayer: 0
- m_StaticEditorFlags: 0
- m_IsActive: 1
---- !u!4 &408032
-Transform:
- m_ObjectHideFlags: 1
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 100100000}
- m_GameObject: {fileID: 134968}
- m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
- m_LocalPosition: {x: 0, y: 0, z: 0}
- m_LocalScale: {x: 1, y: 1, z: 1}
- m_Children: []
- m_Father: {fileID: 0}
- m_RootOrder: 0
- m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
---- !u!114 &11480548
-MonoBehaviour:
- m_ObjectHideFlags: 1
- m_PrefabParentObject: {fileID: 0}
- m_PrefabInternal: {fileID: 100100000}
- m_GameObject: {fileID: 134968}
- m_Enabled: 1
- m_EditorHideFlags: 0
- m_Script: {fileID: 11500000, guid: 7df6f555c4d344871bf935752b861a45, type: 3}
- m_Name:
- m_EditorClassIdentifier:
---- !u!1001 &100100000
-Prefab:
- m_ObjectHideFlags: 1
- serializedVersion: 2
- m_Modification:
- m_TransformParent: {fileID: 0}
- m_Modifications: []
- m_RemovedComponents: []
- m_ParentPrefab: {fileID: 0}
- m_RootGameObject: {fileID: 134968}
- m_IsPrefabParent: 1
diff --git a/Assets/Mapbox/Core/Plugins/Android/UniAndroidPermission/UniAndroidPermission.prefab.meta b/Assets/Mapbox/Core/Plugins/Android/UniAndroidPermission/UniAndroidPermission.prefab.meta
deleted file mode 100644
index 0e191e279..000000000
--- a/Assets/Mapbox/Core/Plugins/Android/UniAndroidPermission/UniAndroidPermission.prefab.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: a83b9ab9f1dc0439fa3caaf9912be67d
-timeCreated: 1448447048
-licenseType: Pro
-NativeFormatImporter:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Android/UniAndroidPermission/UniAndroidPermission_v1_2.jar b/Assets/Mapbox/Core/Plugins/Android/UniAndroidPermission/UniAndroidPermission_v1_2.jar
deleted file mode 100644
index e8e93742a..000000000
Binary files a/Assets/Mapbox/Core/Plugins/Android/UniAndroidPermission/UniAndroidPermission_v1_2.jar and /dev/null differ
diff --git a/Assets/Mapbox/Core/Plugins/Android/UniAndroidPermission/UniAndroidPermission_v1_2.jar.meta b/Assets/Mapbox/Core/Plugins/Android/UniAndroidPermission/UniAndroidPermission_v1_2.jar.meta
deleted file mode 100644
index 43c98c731..000000000
--- a/Assets/Mapbox/Core/Plugins/Android/UniAndroidPermission/UniAndroidPermission_v1_2.jar.meta
+++ /dev/null
@@ -1,31 +0,0 @@
-fileFormatVersion: 2
-guid: d6467263296c74b919030e7bfae469ca
-timeCreated: 1516304615
-licenseType: Pro
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- - first:
- Android: Android
- second:
- enabled: 1
- settings: {}
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Android/animated-vector-drawable-25.1.0.aar b/Assets/Mapbox/Core/Plugins/Android/animated-vector-drawable-25.1.0.aar
deleted file mode 100644
index f4681dbb6..000000000
Binary files a/Assets/Mapbox/Core/Plugins/Android/animated-vector-drawable-25.1.0.aar and /dev/null differ
diff --git a/Assets/Mapbox/Core/Plugins/Android/animated-vector-drawable-25.1.0.aar.meta b/Assets/Mapbox/Core/Plugins/Android/animated-vector-drawable-25.1.0.aar.meta
deleted file mode 100644
index 483f6e80e..000000000
--- a/Assets/Mapbox/Core/Plugins/Android/animated-vector-drawable-25.1.0.aar.meta
+++ /dev/null
@@ -1,24 +0,0 @@
-fileFormatVersion: 2
-guid: 8dfdf5ea5fe324ed1bc8d2be7c19fae5
-timeCreated: 1495653440
-licenseType: Pro
-PluginImporter:
- serializedVersion: 1
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- Android:
- enabled: 1
- settings: {}
- Any:
- enabled: 0
- settings: {}
- Editor:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Android/appcompat-v7-25.1.0.aar b/Assets/Mapbox/Core/Plugins/Android/appcompat-v7-25.1.0.aar
deleted file mode 100644
index e28d367bd..000000000
Binary files a/Assets/Mapbox/Core/Plugins/Android/appcompat-v7-25.1.0.aar and /dev/null differ
diff --git a/Assets/Mapbox/Core/Plugins/Android/appcompat-v7-25.1.0.aar.meta b/Assets/Mapbox/Core/Plugins/Android/appcompat-v7-25.1.0.aar.meta
deleted file mode 100644
index 41e0e9c83..000000000
--- a/Assets/Mapbox/Core/Plugins/Android/appcompat-v7-25.1.0.aar.meta
+++ /dev/null
@@ -1,24 +0,0 @@
-fileFormatVersion: 2
-guid: 73194dfc41e074142a2b6f12dbc17753
-timeCreated: 1495651291
-licenseType: Pro
-PluginImporter:
- serializedVersion: 1
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- Android:
- enabled: 1
- settings: {}
- Any:
- enabled: 0
- settings: {}
- Editor:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Android/gson-2.8.5.jar b/Assets/Mapbox/Core/Plugins/Android/gson-2.8.5.jar
deleted file mode 100644
index 0d5baf3fa..000000000
Binary files a/Assets/Mapbox/Core/Plugins/Android/gson-2.8.5.jar and /dev/null differ
diff --git a/Assets/Mapbox/Core/Plugins/Android/gson-2.8.5.jar.meta b/Assets/Mapbox/Core/Plugins/Android/gson-2.8.5.jar.meta
deleted file mode 100644
index 76d6bb707..000000000
--- a/Assets/Mapbox/Core/Plugins/Android/gson-2.8.5.jar.meta
+++ /dev/null
@@ -1,31 +0,0 @@
-fileFormatVersion: 2
-guid: 722d3995c52ed44d5b6e94102a354ae5
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- defineConstraints: []
- isPreloaded: 0
- isOverridable: 0
- isExplicitlyReferenced: 0
- platformData:
- - first:
- Android: Android
- second:
- enabled: 1
- settings: {}
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Android/libcore-release.aar b/Assets/Mapbox/Core/Plugins/Android/libcore-release.aar
deleted file mode 100644
index e40f9f179..000000000
Binary files a/Assets/Mapbox/Core/Plugins/Android/libcore-release.aar and /dev/null differ
diff --git a/Assets/Mapbox/Core/Plugins/Android/libcore-release.aar.meta b/Assets/Mapbox/Core/Plugins/Android/libcore-release.aar.meta
deleted file mode 100644
index d087230b5..000000000
--- a/Assets/Mapbox/Core/Plugins/Android/libcore-release.aar.meta
+++ /dev/null
@@ -1,31 +0,0 @@
-fileFormatVersion: 2
-guid: 042faa3fe836242dd9534732f1a4214d
-timeCreated: 1570582048
-licenseType: Pro
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- - first:
- Android: Android
- second:
- enabled: 1
- settings: {}
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Android/libtelemetry-full-release.aar b/Assets/Mapbox/Core/Plugins/Android/libtelemetry-full-release.aar
deleted file mode 100644
index 11d6cdf99..000000000
Binary files a/Assets/Mapbox/Core/Plugins/Android/libtelemetry-full-release.aar and /dev/null differ
diff --git a/Assets/Mapbox/Core/Plugins/Android/libtelemetry-full-release.aar.meta b/Assets/Mapbox/Core/Plugins/Android/libtelemetry-full-release.aar.meta
deleted file mode 100644
index 571d62058..000000000
--- a/Assets/Mapbox/Core/Plugins/Android/libtelemetry-full-release.aar.meta
+++ /dev/null
@@ -1,31 +0,0 @@
-fileFormatVersion: 2
-guid: 49ff07903ab144ea4b84e994f55f875b
-timeCreated: 1570582048
-licenseType: Pro
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- - first:
- Android: Android
- second:
- enabled: 1
- settings: {}
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Android/okhttp-3.8.0.jar b/Assets/Mapbox/Core/Plugins/Android/okhttp-3.8.0.jar
deleted file mode 100644
index 5019d2fc2..000000000
Binary files a/Assets/Mapbox/Core/Plugins/Android/okhttp-3.8.0.jar and /dev/null differ
diff --git a/Assets/Mapbox/Core/Plugins/Android/okhttp-3.8.0.jar.meta b/Assets/Mapbox/Core/Plugins/Android/okhttp-3.8.0.jar.meta
deleted file mode 100644
index 363a95a9f..000000000
--- a/Assets/Mapbox/Core/Plugins/Android/okhttp-3.8.0.jar.meta
+++ /dev/null
@@ -1,23 +0,0 @@
-fileFormatVersion: 2
-guid: 62c5caa5230134240a6fdc0f7852937b
-timeCreated: 1495631325
-licenseType: Pro
-PluginImporter:
- serializedVersion: 1
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- platformData:
- Android:
- enabled: 1
- settings: {}
- Editor:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- data:
- enabled: 0
- settings: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Android/okio-1.13.0.jar b/Assets/Mapbox/Core/Plugins/Android/okio-1.13.0.jar
deleted file mode 100644
index 02c302f82..000000000
Binary files a/Assets/Mapbox/Core/Plugins/Android/okio-1.13.0.jar and /dev/null differ
diff --git a/Assets/Mapbox/Core/Plugins/Android/okio-1.13.0.jar.meta b/Assets/Mapbox/Core/Plugins/Android/okio-1.13.0.jar.meta
deleted file mode 100644
index 78175645f..000000000
--- a/Assets/Mapbox/Core/Plugins/Android/okio-1.13.0.jar.meta
+++ /dev/null
@@ -1,23 +0,0 @@
-fileFormatVersion: 2
-guid: 3bf40023b8d50c0438abda790c4fc791
-timeCreated: 1495640456
-licenseType: Pro
-PluginImporter:
- serializedVersion: 1
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- platformData:
- Android:
- enabled: 1
- settings: {}
- Editor:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- data:
- enabled: 0
- settings: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Android/support-compat-25.1.0.aar b/Assets/Mapbox/Core/Plugins/Android/support-compat-25.1.0.aar
deleted file mode 100644
index 8d19b2a8c..000000000
Binary files a/Assets/Mapbox/Core/Plugins/Android/support-compat-25.1.0.aar and /dev/null differ
diff --git a/Assets/Mapbox/Core/Plugins/Android/support-compat-25.1.0.aar.meta b/Assets/Mapbox/Core/Plugins/Android/support-compat-25.1.0.aar.meta
deleted file mode 100644
index 4cbade92c..000000000
--- a/Assets/Mapbox/Core/Plugins/Android/support-compat-25.1.0.aar.meta
+++ /dev/null
@@ -1,24 +0,0 @@
-fileFormatVersion: 2
-guid: e17a471b7620c4bfea1b492c6dc05b6a
-timeCreated: 1495653735
-licenseType: Pro
-PluginImporter:
- serializedVersion: 1
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- Android:
- enabled: 1
- settings: {}
- Any:
- enabled: 0
- settings: {}
- Editor:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Android/support-core-ui-25.1.0.aar b/Assets/Mapbox/Core/Plugins/Android/support-core-ui-25.1.0.aar
deleted file mode 100644
index a1d7215ee..000000000
Binary files a/Assets/Mapbox/Core/Plugins/Android/support-core-ui-25.1.0.aar and /dev/null differ
diff --git a/Assets/Mapbox/Core/Plugins/Android/support-core-ui-25.1.0.aar.meta b/Assets/Mapbox/Core/Plugins/Android/support-core-ui-25.1.0.aar.meta
deleted file mode 100644
index 3e4b88fab..000000000
--- a/Assets/Mapbox/Core/Plugins/Android/support-core-ui-25.1.0.aar.meta
+++ /dev/null
@@ -1,24 +0,0 @@
-fileFormatVersion: 2
-guid: 039af650ac259437e8c7929c7ee6728f
-timeCreated: 1495653813
-licenseType: Pro
-PluginImporter:
- serializedVersion: 1
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- Android:
- enabled: 1
- settings: {}
- Any:
- enabled: 0
- settings: {}
- Editor:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Android/support-core-utils-25.1.0.aar b/Assets/Mapbox/Core/Plugins/Android/support-core-utils-25.1.0.aar
deleted file mode 100644
index a9117895f..000000000
Binary files a/Assets/Mapbox/Core/Plugins/Android/support-core-utils-25.1.0.aar and /dev/null differ
diff --git a/Assets/Mapbox/Core/Plugins/Android/support-core-utils-25.1.0.aar.meta b/Assets/Mapbox/Core/Plugins/Android/support-core-utils-25.1.0.aar.meta
deleted file mode 100644
index 793e8903d..000000000
--- a/Assets/Mapbox/Core/Plugins/Android/support-core-utils-25.1.0.aar.meta
+++ /dev/null
@@ -1,24 +0,0 @@
-fileFormatVersion: 2
-guid: f2bbfd04df8ed4471b7d29d26096ede5
-timeCreated: 1495653777
-licenseType: Pro
-PluginImporter:
- serializedVersion: 1
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- Android:
- enabled: 1
- settings: {}
- Any:
- enabled: 0
- settings: {}
- Editor:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Android/support-media-compat-25.1.0.aar b/Assets/Mapbox/Core/Plugins/Android/support-media-compat-25.1.0.aar
deleted file mode 100644
index a38752bd8..000000000
Binary files a/Assets/Mapbox/Core/Plugins/Android/support-media-compat-25.1.0.aar and /dev/null differ
diff --git a/Assets/Mapbox/Core/Plugins/Android/support-media-compat-25.1.0.aar.meta b/Assets/Mapbox/Core/Plugins/Android/support-media-compat-25.1.0.aar.meta
deleted file mode 100644
index 10e85c151..000000000
--- a/Assets/Mapbox/Core/Plugins/Android/support-media-compat-25.1.0.aar.meta
+++ /dev/null
@@ -1,24 +0,0 @@
-fileFormatVersion: 2
-guid: e5800669c4138443ab05c67805c05d5a
-timeCreated: 1495653736
-licenseType: Pro
-PluginImporter:
- serializedVersion: 1
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- Android:
- enabled: 1
- settings: {}
- Any:
- enabled: 0
- settings: {}
- Editor:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Android/support-v4-25.1.0.aar b/Assets/Mapbox/Core/Plugins/Android/support-v4-25.1.0.aar
deleted file mode 100644
index f1e1c0be2..000000000
Binary files a/Assets/Mapbox/Core/Plugins/Android/support-v4-25.1.0.aar and /dev/null differ
diff --git a/Assets/Mapbox/Core/Plugins/Android/support-v4-25.1.0.aar.meta b/Assets/Mapbox/Core/Plugins/Android/support-v4-25.1.0.aar.meta
deleted file mode 100644
index e702acd66..000000000
--- a/Assets/Mapbox/Core/Plugins/Android/support-v4-25.1.0.aar.meta
+++ /dev/null
@@ -1,24 +0,0 @@
-fileFormatVersion: 2
-guid: bbcd24fa0afca44758499ceab55cf537
-timeCreated: 1495654023
-licenseType: Pro
-PluginImporter:
- serializedVersion: 1
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- Android:
- enabled: 1
- settings: {}
- Any:
- enabled: 0
- settings: {}
- Editor:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Android/support-vector-drawable-25.1.0.aar b/Assets/Mapbox/Core/Plugins/Android/support-vector-drawable-25.1.0.aar
deleted file mode 100644
index 55a459bc2..000000000
Binary files a/Assets/Mapbox/Core/Plugins/Android/support-vector-drawable-25.1.0.aar and /dev/null differ
diff --git a/Assets/Mapbox/Core/Plugins/Android/support-vector-drawable-25.1.0.aar.meta b/Assets/Mapbox/Core/Plugins/Android/support-vector-drawable-25.1.0.aar.meta
deleted file mode 100644
index baf30f622..000000000
--- a/Assets/Mapbox/Core/Plugins/Android/support-vector-drawable-25.1.0.aar.meta
+++ /dev/null
@@ -1,24 +0,0 @@
-fileFormatVersion: 2
-guid: 189b15356a17c426097dc0cdedbdfb13
-timeCreated: 1495653440
-licenseType: Pro
-PluginImporter:
- serializedVersion: 1
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- Android:
- enabled: 1
- settings: {}
- Any:
- enabled: 0
- settings: {}
- Editor:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Mapbox.meta b/Assets/Mapbox/Core/Plugins/Mapbox.meta
deleted file mode 100644
index 0d769c91c..000000000
--- a/Assets/Mapbox/Core/Plugins/Mapbox.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 2a5f99af2ce83514f822383e20066c54
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Mapbox/MapboxAccounts.meta b/Assets/Mapbox/Core/Plugins/Mapbox/MapboxAccounts.meta
deleted file mode 100644
index 53df8ad08..000000000
--- a/Assets/Mapbox/Core/Plugins/Mapbox/MapboxAccounts.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 379fde954e5274342ba547171ed89a78
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Mapbox/MapboxAccounts/net35.meta b/Assets/Mapbox/Core/Plugins/Mapbox/MapboxAccounts/net35.meta
deleted file mode 100644
index b9f880e03..000000000
--- a/Assets/Mapbox/Core/Plugins/Mapbox/MapboxAccounts/net35.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: f957f1079856147339d60a82ed5500b5
-folderAsset: yes
-timeCreated: 1567722208
-licenseType: Pro
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Mapbox/MapboxAccounts/net35/MapboxAccountsUnity.dll b/Assets/Mapbox/Core/Plugins/Mapbox/MapboxAccounts/net35/MapboxAccountsUnity.dll
deleted file mode 100644
index f683315d6..000000000
Binary files a/Assets/Mapbox/Core/Plugins/Mapbox/MapboxAccounts/net35/MapboxAccountsUnity.dll and /dev/null differ
diff --git a/Assets/Mapbox/Core/Plugins/Mapbox/MapboxAccounts/net35/MapboxAccountsUnity.dll.meta b/Assets/Mapbox/Core/Plugins/Mapbox/MapboxAccounts/net35/MapboxAccountsUnity.dll.meta
deleted file mode 100644
index 44494f5d2..000000000
--- a/Assets/Mapbox/Core/Plugins/Mapbox/MapboxAccounts/net35/MapboxAccountsUnity.dll.meta
+++ /dev/null
@@ -1,112 +0,0 @@
-fileFormatVersion: 2
-guid: a4d62bb9038704a8c84da77840aa84d1
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- defineConstraints: []
- isPreloaded: 0
- isOverridable: 0
- isExplicitlyReferenced: 0
- validateReferences: 1
- platformData:
- - first:
- '': Any
- second:
- enabled: 0
- settings:
- Exclude Android: 1
- Exclude Editor: 0
- Exclude Linux: 1
- Exclude Linux64: 1
- Exclude LinuxUniversal: 1
- Exclude OSXUniversal: 1
- Exclude WebGL: 1
- Exclude Win: 1
- Exclude Win64: 1
- Exclude iOS: 1
- - first:
- Android: Android
- second:
- enabled: 0
- settings:
- CPU: ARMv7
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- DefaultValueInitialized: true
- OS: AnyOS
- - first:
- Facebook: Win
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Facebook: Win64
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Linux
- second:
- enabled: 0
- settings:
- CPU: x86
- - first:
- Standalone: Linux64
- second:
- enabled: 0
- settings:
- CPU: x86_64
- - first:
- Standalone: LinuxUniversal
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Standalone: OSXUniversal
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Win
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Win64
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Windows Store Apps: WindowsStoreApps
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- iPhone: iOS
- second:
- enabled: 0
- settings:
- AddToEmbeddedBinaries: false
- CompileFlags:
- FrameworkDependencies:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Mapbox/MapboxAccounts/net4x.meta b/Assets/Mapbox/Core/Plugins/Mapbox/MapboxAccounts/net4x.meta
deleted file mode 100644
index 7cc0e7b8d..000000000
--- a/Assets/Mapbox/Core/Plugins/Mapbox/MapboxAccounts/net4x.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: cc3724da731c645189d6f773016d164e
-folderAsset: yes
-timeCreated: 1567722324
-licenseType: Pro
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Mapbox/MapboxAccounts/net4x/MapboxAccountsUnity.dll b/Assets/Mapbox/Core/Plugins/Mapbox/MapboxAccounts/net4x/MapboxAccountsUnity.dll
deleted file mode 100644
index dd44c122a..000000000
Binary files a/Assets/Mapbox/Core/Plugins/Mapbox/MapboxAccounts/net4x/MapboxAccountsUnity.dll and /dev/null differ
diff --git a/Assets/Mapbox/Core/Plugins/Mapbox/MapboxAccounts/net4x/MapboxAccountsUnity.dll.meta b/Assets/Mapbox/Core/Plugins/Mapbox/MapboxAccounts/net4x/MapboxAccountsUnity.dll.meta
deleted file mode 100644
index 83c0158cb..000000000
--- a/Assets/Mapbox/Core/Plugins/Mapbox/MapboxAccounts/net4x/MapboxAccountsUnity.dll.meta
+++ /dev/null
@@ -1,116 +0,0 @@
-fileFormatVersion: 2
-guid: 8d4cadd22d7994af2ae2a249b9d2a913
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- defineConstraints: []
- isPreloaded: 0
- isOverridable: 0
- isExplicitlyReferenced: 0
- validateReferences: 1
- platformData:
- - first:
- '': Any
- second:
- enabled: 0
- settings:
- Exclude Android: 0
- Exclude Editor: 1
- Exclude Linux: 0
- Exclude Linux64: 0
- Exclude LinuxUniversal: 0
- Exclude OSXUniversal: 0
- Exclude WebGL: 0
- Exclude Win: 0
- Exclude Win64: 0
- Exclude iOS: 0
- - first:
- Android: Android
- second:
- enabled: 1
- settings:
- CPU: ARMv7
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- DefaultValueInitialized: true
- OS: AnyOS
- - first:
- Facebook: Win
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Facebook: Win64
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Linux
- second:
- enabled: 1
- settings:
- CPU: x86
- - first:
- Standalone: Linux64
- second:
- enabled: 1
- settings:
- CPU: x86_64
- - first:
- Standalone: LinuxUniversal
- second:
- enabled: 1
- settings: {}
- - first:
- Standalone: OSXUniversal
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Win
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Win64
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- - first:
- WebGL: WebGL
- second:
- enabled: 1
- settings: {}
- - first:
- Windows Store Apps: WindowsStoreApps
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- iPhone: iOS
- second:
- enabled: 1
- settings:
- AddToEmbeddedBinaries: false
- CompileFlags:
- FrameworkDependencies:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs.meta b/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs.meta
deleted file mode 100644
index 99e8e9ded..000000000
--- a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 5bf0a0cf94d3de74c8fe0a4ad76cfa8f
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/net46.meta b/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/net46.meta
deleted file mode 100644
index 747a3b373..000000000
--- a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/net46.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: cf3b967d3d4405a4093e868e0440cf8a
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/net46/Mapbox.VectorTile.ExtensionMethods.dll b/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/net46/Mapbox.VectorTile.ExtensionMethods.dll
deleted file mode 100644
index 9f27d274c..000000000
Binary files a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/net46/Mapbox.VectorTile.ExtensionMethods.dll and /dev/null differ
diff --git a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/net46/Mapbox.VectorTile.ExtensionMethods.dll.meta b/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/net46/Mapbox.VectorTile.ExtensionMethods.dll.meta
deleted file mode 100644
index 7051eefa9..000000000
--- a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/net46/Mapbox.VectorTile.ExtensionMethods.dll.meta
+++ /dev/null
@@ -1,110 +0,0 @@
-fileFormatVersion: 2
-guid: c864373fac3727545b44f740cc59abab
-timeCreated: 18446744011573954816
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- - first:
- '': Any
- second:
- enabled: 0
- settings:
- Exclude Android: 0
- Exclude Editor: 0
- Exclude Linux: 0
- Exclude Linux64: 0
- Exclude LinuxUniversal: 0
- Exclude OSXUniversal: 0
- Exclude WebGL: 0
- Exclude Win: 0
- Exclude Win64: 0
- Exclude WindowsStoreApps: 1
- Exclude iOS: 0
- - first:
- Android: Android
- second:
- enabled: 1
- settings: {}
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 1
- settings:
- DefaultValueInitialized: true
- - first:
- Facebook: Win
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Facebook: Win64
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Linux
- second:
- enabled: 1
- settings:
- CPU: x86
- - first:
- Standalone: Linux64
- second:
- enabled: 1
- settings:
- CPU: x86_64
- - first:
- Standalone: LinuxUniversal
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- - first:
- Standalone: OSXUniversal
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Win
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Win64
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- - first:
- WebGL: WebGL
- second:
- enabled: 1
- settings: {}
- - first:
- Windows Store Apps: WindowsStoreApps
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- iPhone: iOS
- second:
- enabled: 1
- settings: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/net46/Mapbox.VectorTile.Geometry.dll b/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/net46/Mapbox.VectorTile.Geometry.dll
deleted file mode 100644
index c63dd971e..000000000
Binary files a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/net46/Mapbox.VectorTile.Geometry.dll and /dev/null differ
diff --git a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/net46/Mapbox.VectorTile.Geometry.dll.meta b/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/net46/Mapbox.VectorTile.Geometry.dll.meta
deleted file mode 100644
index 624d68c20..000000000
--- a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/net46/Mapbox.VectorTile.Geometry.dll.meta
+++ /dev/null
@@ -1,110 +0,0 @@
-fileFormatVersion: 2
-guid: 902ec3a15243ce7459db8517c8de3f12
-timeCreated: 18446744011573954816
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- - first:
- '': Any
- second:
- enabled: 0
- settings:
- Exclude Android: 0
- Exclude Editor: 0
- Exclude Linux: 0
- Exclude Linux64: 0
- Exclude LinuxUniversal: 0
- Exclude OSXUniversal: 0
- Exclude WebGL: 0
- Exclude Win: 0
- Exclude Win64: 0
- Exclude WindowsStoreApps: 1
- Exclude iOS: 0
- - first:
- Android: Android
- second:
- enabled: 1
- settings: {}
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 1
- settings:
- DefaultValueInitialized: true
- - first:
- Facebook: Win
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Facebook: Win64
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Linux
- second:
- enabled: 1
- settings:
- CPU: x86
- - first:
- Standalone: Linux64
- second:
- enabled: 1
- settings:
- CPU: x86_64
- - first:
- Standalone: LinuxUniversal
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- - first:
- Standalone: OSXUniversal
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Win
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Win64
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- - first:
- WebGL: WebGL
- second:
- enabled: 1
- settings: {}
- - first:
- Windows Store Apps: WindowsStoreApps
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- iPhone: iOS
- second:
- enabled: 1
- settings: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/net46/Mapbox.VectorTile.PbfReader.dll b/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/net46/Mapbox.VectorTile.PbfReader.dll
deleted file mode 100644
index 43a24a4dc..000000000
Binary files a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/net46/Mapbox.VectorTile.PbfReader.dll and /dev/null differ
diff --git a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/net46/Mapbox.VectorTile.PbfReader.dll.meta b/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/net46/Mapbox.VectorTile.PbfReader.dll.meta
deleted file mode 100644
index fccb1a49a..000000000
--- a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/net46/Mapbox.VectorTile.PbfReader.dll.meta
+++ /dev/null
@@ -1,110 +0,0 @@
-fileFormatVersion: 2
-guid: 34fcb52f9df13934786c32587147e4a0
-timeCreated: 18446744011573954816
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- - first:
- '': Any
- second:
- enabled: 0
- settings:
- Exclude Android: 0
- Exclude Editor: 0
- Exclude Linux: 0
- Exclude Linux64: 0
- Exclude LinuxUniversal: 0
- Exclude OSXUniversal: 0
- Exclude WebGL: 0
- Exclude Win: 0
- Exclude Win64: 0
- Exclude WindowsStoreApps: 1
- Exclude iOS: 0
- - first:
- Android: Android
- second:
- enabled: 1
- settings: {}
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 1
- settings:
- DefaultValueInitialized: true
- - first:
- Facebook: Win
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Facebook: Win64
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Linux
- second:
- enabled: 1
- settings:
- CPU: x86
- - first:
- Standalone: Linux64
- second:
- enabled: 1
- settings:
- CPU: x86_64
- - first:
- Standalone: LinuxUniversal
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- - first:
- Standalone: OSXUniversal
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Win
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Win64
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- - first:
- WebGL: WebGL
- second:
- enabled: 1
- settings: {}
- - first:
- Windows Store Apps: WindowsStoreApps
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- iPhone: iOS
- second:
- enabled: 1
- settings: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/net46/Mapbox.VectorTile.VectorTileReader.dll b/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/net46/Mapbox.VectorTile.VectorTileReader.dll
deleted file mode 100644
index bc1e8ff25..000000000
Binary files a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/net46/Mapbox.VectorTile.VectorTileReader.dll and /dev/null differ
diff --git a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/net46/Mapbox.VectorTile.VectorTileReader.dll.meta b/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/net46/Mapbox.VectorTile.VectorTileReader.dll.meta
deleted file mode 100644
index 58dd43426..000000000
--- a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/net46/Mapbox.VectorTile.VectorTileReader.dll.meta
+++ /dev/null
@@ -1,110 +0,0 @@
-fileFormatVersion: 2
-guid: 57cd912f9e6427a44ac217871c381c40
-timeCreated: 18446744011573954816
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- - first:
- '': Any
- second:
- enabled: 0
- settings:
- Exclude Android: 0
- Exclude Editor: 0
- Exclude Linux: 0
- Exclude Linux64: 0
- Exclude LinuxUniversal: 0
- Exclude OSXUniversal: 0
- Exclude WebGL: 0
- Exclude Win: 0
- Exclude Win64: 0
- Exclude WindowsStoreApps: 1
- Exclude iOS: 0
- - first:
- Android: Android
- second:
- enabled: 1
- settings: {}
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 1
- settings:
- DefaultValueInitialized: true
- - first:
- Facebook: Win
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Facebook: Win64
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Linux
- second:
- enabled: 1
- settings:
- CPU: x86
- - first:
- Standalone: Linux64
- second:
- enabled: 1
- settings:
- CPU: x86_64
- - first:
- Standalone: LinuxUniversal
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- - first:
- Standalone: OSXUniversal
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Win
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Win64
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- - first:
- WebGL: WebGL
- second:
- enabled: 1
- settings: {}
- - first:
- Windows Store Apps: WindowsStoreApps
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- iPhone: iOS
- second:
- enabled: 1
- settings: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/portable-net45+uap10.meta b/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/portable-net45+uap10.meta
deleted file mode 100644
index 3c92cd226..000000000
--- a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/portable-net45+uap10.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 97ce4689e1585a044b7e4dffd6bbc56c
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/portable-net45+uap10/Mapbox.VectorTile.ExtensionMethods.dll b/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/portable-net45+uap10/Mapbox.VectorTile.ExtensionMethods.dll
deleted file mode 100644
index 918eb9491..000000000
Binary files a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/portable-net45+uap10/Mapbox.VectorTile.ExtensionMethods.dll and /dev/null differ
diff --git a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/portable-net45+uap10/Mapbox.VectorTile.ExtensionMethods.dll.meta b/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/portable-net45+uap10/Mapbox.VectorTile.ExtensionMethods.dll.meta
deleted file mode 100644
index 99573707b..000000000
--- a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/portable-net45+uap10/Mapbox.VectorTile.ExtensionMethods.dll.meta
+++ /dev/null
@@ -1,93 +0,0 @@
-fileFormatVersion: 2
-guid: aa8511f503d809c42a273bde2c2f2021
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- - first:
- '': Any
- second:
- enabled: 0
- settings:
- Exclude Android: 1
- Exclude Editor: 1
- Exclude Linux: 1
- Exclude Linux64: 1
- Exclude LinuxUniversal: 1
- Exclude OSXUniversal: 1
- Exclude WebGL: 1
- Exclude Win: 1
- Exclude Win64: 1
- Exclude WindowsStoreApps: 0
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- - first:
- Facebook: Win
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Facebook: Win64
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Standalone: Linux
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Standalone: Linux64
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Standalone: LinuxUniversal
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Standalone: OSXUniversal
- second:
- enabled: 0
- settings:
- CPU: x86
- - first:
- Standalone: Win
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Standalone: Win64
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Windows Store Apps: WindowsStoreApps
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/portable-net45+uap10/Mapbox.VectorTile.Geometry.dll b/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/portable-net45+uap10/Mapbox.VectorTile.Geometry.dll
deleted file mode 100644
index 3f69e5453..000000000
Binary files a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/portable-net45+uap10/Mapbox.VectorTile.Geometry.dll and /dev/null differ
diff --git a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/portable-net45+uap10/Mapbox.VectorTile.Geometry.dll.meta b/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/portable-net45+uap10/Mapbox.VectorTile.Geometry.dll.meta
deleted file mode 100644
index ca3f26e90..000000000
--- a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/portable-net45+uap10/Mapbox.VectorTile.Geometry.dll.meta
+++ /dev/null
@@ -1,105 +0,0 @@
-fileFormatVersion: 2
-guid: 752172c26201c084c8526c6e9a837897
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- - first:
- '': Any
- second:
- enabled: 0
- settings:
- Exclude Android: 1
- Exclude Editor: 1
- Exclude Linux: 1
- Exclude Linux64: 1
- Exclude LinuxUniversal: 1
- Exclude OSXUniversal: 1
- Exclude WebGL: 1
- Exclude Win: 1
- Exclude Win64: 1
- Exclude WindowsStoreApps: 0
- - first:
- Android: Android
- second:
- enabled: 0
- settings:
- CPU: ARMv7
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- DefaultValueInitialized: true
- OS: AnyOS
- - first:
- Facebook: Win
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Facebook: Win64
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Standalone: Linux
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Standalone: Linux64
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Standalone: LinuxUniversal
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Standalone: OSXUniversal
- second:
- enabled: 0
- settings:
- CPU: x86
- - first:
- Standalone: Win
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Standalone: Win64
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Windows Store Apps: WindowsStoreApps
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- DontProcess: false
- PlaceholderPath: Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/net46/Mapbox.VectorTile.Geometry.dll
- SDK: AnySDK
- ScriptingBackend: AnyScriptingBackend
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/portable-net45+uap10/Mapbox.VectorTile.PbfReader.dll b/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/portable-net45+uap10/Mapbox.VectorTile.PbfReader.dll
deleted file mode 100644
index 308efa4b9..000000000
Binary files a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/portable-net45+uap10/Mapbox.VectorTile.PbfReader.dll and /dev/null differ
diff --git a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/portable-net45+uap10/Mapbox.VectorTile.PbfReader.dll.meta b/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/portable-net45+uap10/Mapbox.VectorTile.PbfReader.dll.meta
deleted file mode 100644
index a261da2ee..000000000
--- a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/portable-net45+uap10/Mapbox.VectorTile.PbfReader.dll.meta
+++ /dev/null
@@ -1,93 +0,0 @@
-fileFormatVersion: 2
-guid: 11d5b9a726730e34ea222ff8e6b1def9
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- - first:
- '': Any
- second:
- enabled: 0
- settings:
- Exclude Android: 1
- Exclude Editor: 1
- Exclude Linux: 1
- Exclude Linux64: 1
- Exclude LinuxUniversal: 1
- Exclude OSXUniversal: 1
- Exclude WebGL: 1
- Exclude Win: 1
- Exclude Win64: 1
- Exclude WindowsStoreApps: 0
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- - first:
- Facebook: Win
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Facebook: Win64
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Standalone: Linux
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Standalone: Linux64
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Standalone: LinuxUniversal
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Standalone: OSXUniversal
- second:
- enabled: 0
- settings:
- CPU: x86
- - first:
- Standalone: Win
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Standalone: Win64
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Windows Store Apps: WindowsStoreApps
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/portable-net45+uap10/Mapbox.VectorTile.VectorTileReader.dll b/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/portable-net45+uap10/Mapbox.VectorTile.VectorTileReader.dll
deleted file mode 100644
index ed33611a9..000000000
Binary files a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/portable-net45+uap10/Mapbox.VectorTile.VectorTileReader.dll and /dev/null differ
diff --git a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/portable-net45+uap10/Mapbox.VectorTile.VectorTileReader.dll.meta b/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/portable-net45+uap10/Mapbox.VectorTile.VectorTileReader.dll.meta
deleted file mode 100644
index 574e65279..000000000
--- a/Assets/Mapbox/Core/Plugins/Mapbox/vector-tile-cs/portable-net45+uap10/Mapbox.VectorTile.VectorTileReader.dll.meta
+++ /dev/null
@@ -1,93 +0,0 @@
-fileFormatVersion: 2
-guid: ea87c215fce9c204abdb685f22703bd0
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- - first:
- '': Any
- second:
- enabled: 0
- settings:
- Exclude Android: 1
- Exclude Editor: 1
- Exclude Linux: 1
- Exclude Linux64: 1
- Exclude LinuxUniversal: 1
- Exclude OSXUniversal: 1
- Exclude WebGL: 1
- Exclude Win: 1
- Exclude Win64: 1
- Exclude WindowsStoreApps: 0
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- - first:
- Facebook: Win
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Facebook: Win64
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Standalone: Linux
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Standalone: Linux64
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Standalone: LinuxUniversal
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Standalone: OSXUniversal
- second:
- enabled: 0
- settings:
- CPU: x86
- - first:
- Standalone: Win
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Standalone: Win64
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Windows Store Apps: WindowsStoreApps
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/ThirdParty.meta b/Assets/Mapbox/Core/Plugins/ThirdParty.meta
deleted file mode 100644
index 848e3502b..000000000
--- a/Assets/Mapbox/Core/Plugins/ThirdParty.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: c104ec983f3ab8449b282d2575d121be
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.IO.Compression.meta b/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.IO.Compression.meta
deleted file mode 100644
index 467d11efa..000000000
--- a/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.IO.Compression.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: d48f48be6a9fdf541a5f1be3255c1fab
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.IO.Compression/net35.meta b/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.IO.Compression/net35.meta
deleted file mode 100644
index 695e39017..000000000
--- a/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.IO.Compression/net35.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 24c715a612ec20a42a86ac2009f2abb7
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.IO.Compression/net35/Mapbox.IO.Compression.dll b/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.IO.Compression/net35/Mapbox.IO.Compression.dll
deleted file mode 100644
index bc7328dbc..000000000
Binary files a/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.IO.Compression/net35/Mapbox.IO.Compression.dll and /dev/null differ
diff --git a/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.IO.Compression/net35/Mapbox.IO.Compression.dll.meta b/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.IO.Compression/net35/Mapbox.IO.Compression.dll.meta
deleted file mode 100644
index f00e32e5b..000000000
--- a/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.IO.Compression/net35/Mapbox.IO.Compression.dll.meta
+++ /dev/null
@@ -1,133 +0,0 @@
-fileFormatVersion: 2
-guid: 5702dec8310c4074e984765a688fa0d2
-timeCreated: 1489780328
-licenseType: Pro
-PluginImporter:
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- data:
- first:
- Android: Android
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- data:
- first:
- Any:
- second:
- enabled: 0
- settings: {}
- data:
- first:
- Editor: Editor
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- DefaultValueInitialized: true
- OS: AnyOS
- data:
- first:
- Facebook: WebGL
- second:
- enabled: 1
- settings: {}
- data:
- first:
- Facebook: Win
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- data:
- first:
- Facebook: Win64
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- data:
- first:
- Standalone: Linux
- second:
- enabled: 1
- settings:
- CPU: x86
- data:
- first:
- Standalone: Linux64
- second:
- enabled: 1
- settings:
- CPU: x86_64
- data:
- first:
- Standalone: LinuxUniversal
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- data:
- first:
- Standalone: OSXIntel
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- data:
- first:
- Standalone: OSXIntel64
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- data:
- first:
- Standalone: OSXUniversal
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- data:
- first:
- Standalone: Win
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- data:
- first:
- Standalone: Win64
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- data:
- first:
- WebGL: WebGL
- second:
- enabled: 1
- settings: {}
- data:
- first:
- Windows Store Apps: WindowsStoreApps
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- data:
- first:
- iPhone: iOS
- second:
- enabled: 1
- settings:
- CompileFlags:
- FrameworkDependencies:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.IO.Compression/uap10.meta b/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.IO.Compression/uap10.meta
deleted file mode 100644
index 46e00ae09..000000000
--- a/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.IO.Compression/uap10.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: fcefe66a47d635d4e80cca2549f55493
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.IO.Compression/uap10/Mapbox.IO.Compression.dll b/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.IO.Compression/uap10/Mapbox.IO.Compression.dll
deleted file mode 100644
index cd7f7bab5..000000000
Binary files a/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.IO.Compression/uap10/Mapbox.IO.Compression.dll and /dev/null differ
diff --git a/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.IO.Compression/uap10/Mapbox.IO.Compression.dll.meta b/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.IO.Compression/uap10/Mapbox.IO.Compression.dll.meta
deleted file mode 100644
index 2962b55a8..000000000
--- a/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.IO.Compression/uap10/Mapbox.IO.Compression.dll.meta
+++ /dev/null
@@ -1,100 +0,0 @@
-fileFormatVersion: 2
-guid: ce2a229872b27d142b0962c2e5e2ebc2
-timeCreated: 1490036479
-licenseType: Pro
-PluginImporter:
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- data:
- first:
- Any:
- second:
- enabled: 0
- settings: {}
- data:
- first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- DefaultValueInitialized: true
- OS: AnyOS
- data:
- first:
- Facebook: Win
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- data:
- first:
- Facebook: Win64
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- data:
- first:
- Standalone: Linux
- second:
- enabled: 0
- settings:
- CPU: x86
- data:
- first:
- Standalone: Linux64
- second:
- enabled: 0
- settings:
- CPU: x86_64
- data:
- first:
- Standalone: OSXIntel
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- data:
- first:
- Standalone: OSXIntel64
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- data:
- first:
- Standalone: Win
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- data:
- first:
- Standalone: Win64
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- data:
- first:
- Windows Store Apps: WindowsStoreApps
- second:
- enabled: 1
- settings:
- CPU: AnyCPU
- data:
- first:
- iPhone: iOS
- second:
- enabled: 0
- settings:
- CompileFlags:
- FrameworkDependencies:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.Json.meta b/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.Json.meta
deleted file mode 100644
index 05b8c31b1..000000000
--- a/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.Json.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: bdaa6d5093c737940a8a9f76e2c9e5ce
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.Json/Net35.meta b/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.Json/Net35.meta
deleted file mode 100644
index 07a6ae99e..000000000
--- a/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.Json/Net35.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: d1e6581f49522654daece42d507c423d
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.Json/Net35/Mapbox.Json.dll b/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.Json/Net35/Mapbox.Json.dll
deleted file mode 100644
index 4d03b8a5b..000000000
Binary files a/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.Json/Net35/Mapbox.Json.dll and /dev/null differ
diff --git a/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.Json/Net35/Mapbox.Json.dll.meta b/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.Json/Net35/Mapbox.Json.dll.meta
deleted file mode 100644
index db44d228d..000000000
--- a/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.Json/Net35/Mapbox.Json.dll.meta
+++ /dev/null
@@ -1,70 +0,0 @@
-fileFormatVersion: 2
-guid: 5c4fdb215216a4b30aa29f0fa1b4ab1d
-timeCreated: 1489780328
-licenseType: Pro
-PluginImporter:
- serializedVersion: 1
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- platformData:
- Any:
- enabled: 0
- settings: {}
- Editor:
- enabled: 1
- settings:
- CPU: AnyCPU
- DefaultValueInitialized: true
- OS: AnyOS
- Linux:
- enabled: 1
- settings:
- CPU: x86
- Android:
- enabled: 1
- settings:
- CPU: AnyCPU
- Linux64:
- enabled: 1
- settings:
- CPU: x86_64
- LinuxUniversal:
- enabled: 1
- settings:
- CPU: AnyCPU
- OSXIntel:
- enabled: 1
- settings:
- CPU: AnyCPU
- OSXIntel64:
- enabled: 1
- settings:
- CPU: AnyCPU
- OSXUniversal:
- enabled: 1
- settings:
- CPU: AnyCPU
- WebGL:
- enabled: 1
- settings: {}
- Win:
- enabled: 1
- settings:
- CPU: AnyCPU
- Win64:
- enabled: 1
- settings:
- CPU: AnyCPU
- WindowsStoreApps:
- enabled: 0
- settings:
- CPU: AnyCPU
- iOS:
- enabled: 1
- settings:
- CompileFlags:
- FrameworkDependencies:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.Json/Portable.meta b/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.Json/Portable.meta
deleted file mode 100644
index db5cca269..000000000
--- a/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.Json/Portable.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 21756548d9556494f90734f953cd7fcf
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.Json/Portable/Mapbox.Json.dll b/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.Json/Portable/Mapbox.Json.dll
deleted file mode 100644
index 1e140a047..000000000
Binary files a/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.Json/Portable/Mapbox.Json.dll and /dev/null differ
diff --git a/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.Json/Portable/Mapbox.Json.dll.meta b/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.Json/Portable/Mapbox.Json.dll.meta
deleted file mode 100644
index f53049843..000000000
--- a/Assets/Mapbox/Core/Plugins/ThirdParty/Mapbox.Json/Portable/Mapbox.Json.dll.meta
+++ /dev/null
@@ -1,55 +0,0 @@
-fileFormatVersion: 2
-guid: 17a28c5bac36f4e7bbf6e500e16cf2f3
-timeCreated: 1490036479
-licenseType: Pro
-PluginImporter:
- serializedVersion: 1
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- platformData:
- Any:
- enabled: 0
- settings: {}
- Editor:
- enabled: 0
- settings:
- CPU: AnyCPU
- DefaultValueInitialized: true
- OS: AnyOS
- Linux:
- enabled: 0
- settings:
- CPU: x86
- Linux64:
- enabled: 0
- settings:
- CPU: x86_64
- OSXIntel:
- enabled: 0
- settings:
- CPU: AnyCPU
- OSXIntel64:
- enabled: 0
- settings:
- CPU: AnyCPU
- Win:
- enabled: 0
- settings:
- CPU: AnyCPU
- Win64:
- enabled: 0
- settings:
- CPU: AnyCPU
- WindowsStoreApps:
- enabled: 1
- settings:
- CPU: AnyCPU
- iOS:
- enabled: 0
- settings:
- CompileFlags:
- FrameworkDependencies:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/iOS.meta b/Assets/Mapbox/Core/Plugins/iOS.meta
deleted file mode 100644
index 6591da8ae..000000000
--- a/Assets/Mapbox/Core/Plugins/iOS.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 9e8a419c652caf246ad3b669af2971f6
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/iOS/MapboxMetricsClient.m b/Assets/Mapbox/Core/Plugins/iOS/MapboxMetricsClient.m
deleted file mode 100644
index cb5ed5cf0..000000000
--- a/Assets/Mapbox/Core/Plugins/iOS/MapboxMetricsClient.m
+++ /dev/null
@@ -1,18 +0,0 @@
-#import
-
-void initialize(const char* accessToken, const char* userAgentBase, const char* hostSDKVersion) {
- [[MMEEventsManager sharedManager] initializeWithAccessToken:[NSString stringWithUTF8String:accessToken]
- userAgentBase:[NSString stringWithUTF8String:userAgentBase]
- hostSDKVersion:[NSString stringWithUTF8String:hostSDKVersion]];
-}
-
-void sendTurnstileEvent() {
- [[MMEEventsManager sharedManager] sendTurnstileEvent];
-}
-
-void setLocationCollectionState(bool enable) {
- [MMEEventsManager sharedManager].metricsEnabled = enable;
-}
-void setSkuId(const char* skuId){
- [MMEEventsManager sharedManager].skuId = [NSString stringWithUTF8String:skuId];
-}
diff --git a/Assets/Mapbox/Core/Plugins/iOS/MapboxMetricsClient.m.meta b/Assets/Mapbox/Core/Plugins/iOS/MapboxMetricsClient.m.meta
deleted file mode 100644
index 30936fbbb..000000000
--- a/Assets/Mapbox/Core/Plugins/iOS/MapboxMetricsClient.m.meta
+++ /dev/null
@@ -1,26 +0,0 @@
-fileFormatVersion: 2
-guid: 4172b185b7b5c4f4ab2f6d7bd134ea29
-timeCreated: 1495158819
-licenseType: Free
-PluginImporter:
- serializedVersion: 1
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- platformData:
- Editor:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- data:
- enabled: 0
- settings: {}
- iOS:
- enabled: 1
- settings: {}
- tvOS:
- enabled: 1
- settings: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents.meta b/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents.meta
deleted file mode 100644
index 3158b417d..000000000
--- a/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 3fd6399794525486eb643e088be91043
-folderAsset: yes
-timeCreated: 1570559658
-licenseType: Pro
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include.meta b/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include.meta
deleted file mode 100644
index 38bd5974c..000000000
--- a/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: e7e2d4a394d304e08bdabe8230a7df35
-folderAsset: yes
-timeCreated: 1570559763
-licenseType: Pro
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents.meta b/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents.meta
deleted file mode 100644
index 71f9c926f..000000000
--- a/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 942001b48b74c4874a534a287e791e27
-folderAsset: yes
-timeCreated: 1570559763
-licenseType: Pro
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents/MMEConstants.h b/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents/MMEConstants.h
deleted file mode 100644
index a3f3b3d1a..000000000
--- a/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents/MMEConstants.h
+++ /dev/null
@@ -1,197 +0,0 @@
-#import
-#import "MMETypes.h"
-
-extern NSString * const MMEAPIClientBaseURL;
-extern NSString * const MMEAPIClientBaseAPIURL;
-extern NSString * const MMEAPIClientBaseChinaEventsURL;
-extern NSString * const MMEAPIClientBaseChinaAPIURL;
-extern NSString * const MMEAPIClientEventsPath;
-extern NSString * const MMEAPIClientEventsConfigPath;
-extern NSString * const MMEAPIClientAttachmentsPath;
-extern NSString * const MMEAPIClientHeaderFieldUserAgentKey;
-extern NSString * const MMEAPIClientHeaderFieldContentTypeKey;
-extern NSString * const MMEAPIClientHeaderFieldContentTypeValue;
-extern NSString * const MMEAPIClientAttachmentsHeaderFieldContentTypeValue;
-extern NSString * const MMEAPIClientHeaderFieldContentEncodingKey;
-extern NSString * const MMEAPIClientHTTPMethodPost;
-extern NSString * const MMEAPIClientHTTPMethodGet;
-
-// Debug types
-extern NSString * const MMEDebugEventType;
-extern NSString * const MMEDebugEventTypeError;
-extern NSString * const MMEDebugEventTypeFlush;
-extern NSString * const MMEDebugEventTypePush;
-extern NSString * const MMEDebugEventTypePost;
-extern NSString * const MMEDebugEventTypePostFailed;
-extern NSString * const MMEDebugEventTypeTurnstile;
-extern NSString * const MMEDebugEventTypeTurnstileFailed;
-extern NSString * const MMEDebugEventTypeBackgroundTask;
-extern NSString * const MMEDebugEventTypeMetricCollection;
-extern NSString * const MMEDebugEventTypeLocationManager;
-extern NSString * const MMEDebugEventTypeTelemetryMetrics;
-extern NSString * const MMEDebugEventTypeCertPinning;
-
-// Event types
-extern NSString * const MMEEventTypeAppUserTurnstile;
-extern NSString * const MMEEventTypeTelemetryMetrics;
-extern NSString * const MMEEventTypeMapLoad;
-extern NSString * const MMEEventTypeLocation;
-extern NSString * const MMEEventTypeVisit;
-extern NSString * const MMEEventTypeLocalDebug;
-extern NSString * const MMEventTypeOfflineDownloadStart;
-extern NSString * const MMEventTypeOfflineDownloadEnd;
-
-// Event keys
-extern NSString * const MMEEventKeyArrivalDate;
-extern NSString * const MMEEventKeyDepartureDate;
-extern NSString * const MMEEventKeyLatitude;
-extern NSString * const MMEEventKeyLongitude;
-extern NSString * const MMEEventKeyZoomLevel;
-extern NSString * const MMEEventKeyMaxZoomLevel;
-extern NSString * const MMEEventKeyMinZoomLevel;
-extern NSString * const MMEEventKeyEvent;
-extern NSString * const MMEEventKeyCreated;
-extern NSString * const MMEEventKeyStyleURL;
-extern NSString * const MMEEventKeyVendorId;
-extern NSString * const MMEEventKeyModel;
-extern NSString * const MMEEventKeyDevice;
-extern NSString * const MMEEventKeySkuId;
-extern NSString * const MMEEventKeyEnabledTelemetry;
-extern NSString * const MMEEventKeyOperatingSystem;
-extern NSString * const MMEEventKeyResolution;
-extern NSString * const MMEEventKeyAccessibilityFontScale;
-extern NSString * const MMEEventKeyOrientation;
-extern NSString * const MMEEventKeyPluggedIn;
-extern NSString * const MMEEventKeyWifi;
-extern NSString * const MMEEventKeyShapeForOfflineRegion;
-extern NSString * const MMEEventKeySource;
-extern NSString * const MMEEventKeySessionId;
-extern NSString * const MMEEventKeyApplicationState;
-extern NSString * const MMEEventKeyAltitude;
-extern NSString * const MMEEventKeyLocationAuthorization;
-extern NSString * const MMEEventKeyLocationEnabled;
-extern NSString * const MMEEventHorizontalAccuracy;
-extern NSString * const MMEEventSDKIdentifier;
-extern NSString * const MMEEventSDKVersion;
-extern NSString * const MMEEventKeyLocalDebugDescription;
-extern NSString * const MMEEventKeyErrorCode;
-extern NSString * const MMEEventKeyErrorDomain;
-extern NSString * const MMEEventKeyErrorDescription;
-extern NSString * const MMEEventKeyErrorFailureReason;
-extern NSString * const MMEEventKeyErrorNoReason;
-extern NSString * const MMEEventKeyErrorNoDomain;
-extern NSString * const MMEEventKeyFailedRequests;
-extern NSString * const MMEEventKeyHeader;
-extern NSString * const MMEEventKeyPlatform;
-extern NSString * const MMEEventKeyUserAgent;
-extern NSString * const MMEEventKeyiOS;
-extern NSString * const MMEEventKeyMac;
-extern NSString * const MMENavigationEventPrefix;
-extern NSString * const MMEVisionEventPrefix;
-extern NSString * const MMEEventTypeNavigationDepart;
-extern NSString * const MMEEventTypeNavigationArrive;
-extern NSString * const MMEEventTypeNavigationCancel;
-extern NSString * const MMEEventTypeNavigationFeedback;
-extern NSString * const MMEEventTypeNavigationReroute;
-extern NSString * const MMEventTypeNavigationCarplayConnect;
-extern NSString * const MMEventTypeNavigationCarplayDisconnect;
-extern NSString * const MMEEventTypeSearchSelected;
-extern NSString * const MMEEventTypeSearchFeedback;
-extern NSString * const MMESearchEventPrefix;
-extern NSString * const MMEEventDateUTC;
-extern NSString * const MMEEventRequests;
-extern NSString * const MMEEventTotalDataSent;
-extern NSString * const MMEEventCellDataSent;
-extern NSString * const MMEEventWiFiDataSent;
-extern NSString * const MMEEventTotalDataReceived;
-extern NSString * const MMEEventCellDataReceived;
-extern NSString * const MMEEventWiFiDataReceived;
-extern NSString * const MMEEventAppWakeups;
-extern NSString * const MMEEventEventCountPerType;
-extern NSString * const MMEEventEventCountFailed;
-extern NSString * const MMEEventEventCountTotal;
-extern NSString * const MMEEventEventCountMax;
-extern NSString * const MMEEventDeviceLat;
-extern NSString * const MMEEventDeviceLon;
-extern NSString * const MMEEventDeviceTimeDrift;
-extern NSString * const MMEEventConfigResponse;
-extern NSString * const MMEEventStatusDenied;
-extern NSString * const MMEEventStatusRestricted;
-extern NSString * const MMEEventStatusNotDetermined;
-extern NSString * const MMEEventStatusAuthorizedAlways;
-extern NSString * const MMEEventStatusAuthorizedWhenInUse;
-extern NSString * const MMEEventUnknown;
-
-extern NSString * const MMEResponseKey;
-
-/*! @brief SDK event source */
-extern NSString * const MMEEventSource;
-
-#pragma mark - mobile.crash Keys
-
-extern NSString * const MMEEventMobileCrash;
-extern NSString * const MMEEventKeyOSVersion;
-extern NSString * const MMEEventKeyBuildType;
-extern NSString * const MMEEventKeyIsSilentCrash;
-extern NSString * const MMEEventKeyStackTrace;
-extern NSString * const MMEEventKeyStackTraceHash;
-extern NSString * const MMEEventKeyInstallationId;
-extern NSString * const MMEEventKeyThreadDetails;
-extern NSString * const MMEEventKeyAppId;
-extern NSString * const MMEEventKeyAppVersion;
-extern NSString * const MMEEventKeyAppStartDate;
-extern NSString * const MMEEventKeyCustomData;
-
-#pragma mark - MMEErrorDomain
-
-/*! @brief NSErrorDomain for MapboxMobileEvents */
-extern NSErrorDomain const MMEErrorDomain;
-
-/*! @brief MMEErrorDomain Error Numbers
- - MMENoError: No Error
- - MMEErrorException for exceptions
- - MMEErrorEventInit for errors when initlizing events
- - MMEErrorEventInitMissingKey if the event attributes dictionary does not include the event key,
- - MMEErrorEventInitException if an exception occured durring initWithAttributes:error:,
- - MMEErrorEventInitInvalid if the provided eventAttributes cannot be converted to JSON objects
-*/
-typedef NS_ENUM(NSInteger, MMEErrorNumber) {
- MMENoError = 0,
- MMEErrorException = 10001,
- MMEErrorEventInit = 10002,
- MMEErrorEventInitMissingKey = 10003,
- MMEErrorEventInitException = 10004,
- MMEErrorEventInitInvalid = 10005,
- MMEErrorEventEncoding = 10006,
- MMEErrorEventCounting = 10007
-};
-
-/*! @brief key for MMEErrorEventInit userInfo dictionary containing the attributes which failed to create the event */
-extern NSString * const MMEErrorEventAttributesKey;
-
-/*! @brief key for MMEErrorDomain userInfo dictionary containing the underlying exception which triggered the error */
-extern NSString * const MMEErrorUnderlyingExceptionKey;
-
-#pragma mark - Deprecated
-
-extern NSString * const MMEErrorDescriptionKey; MME_DEPRECATED_MSG("Use NSLocalizedDescriptionKey")
-
-extern NSString * const MMEEventKeyVendorID MME_DEPRECATED_MSG("Use MMEEventKeyVendorId");
-extern NSString * const MMEEventKeyInstallationID MME_DEPRECATED_MSG("Use MMEEventKeyInstallationId");
-extern NSString * const MMEEventKeyAppID MME_DEPRECATED_MSG("Use MMEEventKeyInstallationId");
-
-extern NSString * const MMELoggerHTML MME_DEPRECATED;
-extern NSString * const MMELoggerShareableHTML MME_DEPRECATED;
-
-extern NSString * const MMEEventKeyGestureId MME_DEPRECATED;
-extern NSString * const MMEEventKeyGestureID MME_DEPRECATED;
-extern NSString * const MMEEventGestureSingleTap MME_DEPRECATED;
-extern NSString * const MMEEventGestureDoubleTap MME_DEPRECATED;
-extern NSString * const MMEEventGestureTwoFingerSingleTap MME_DEPRECATED;
-extern NSString * const MMEEventGestureQuickZoom MME_DEPRECATED;
-extern NSString * const MMEEventGesturePanStart MME_DEPRECATED;
-extern NSString * const MMEEventGesturePinchStart MME_DEPRECATED;
-extern NSString * const MMEEventGestureRotateStart MME_DEPRECATED;
-extern NSString * const MMEEventGesturePitchStart MME_DEPRECATED;
-extern NSString * const MMEEventTypeMapTap MME_DEPRECATED;
-extern NSString * const MMEEventTypeMapDragEnd MME_DEPRECATED;
diff --git a/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents/MMEConstants.h.meta b/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents/MMEConstants.h.meta
deleted file mode 100644
index 5d663a63d..000000000
--- a/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents/MMEConstants.h.meta
+++ /dev/null
@@ -1,26 +0,0 @@
-fileFormatVersion: 2
-guid: 6718394795f184698a40cb2aaeb50e0f
-timeCreated: 1570560566
-licenseType: Pro
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- - first:
- Any:
- second:
- enabled: 1
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents/MMEEvent.h b/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents/MMEEvent.h
deleted file mode 100644
index d2a85e440..000000000
--- a/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents/MMEEvent.h
+++ /dev/null
@@ -1,172 +0,0 @@
-#import
-#import "MMETypes.h"
-
-NS_ASSUME_NONNULL_BEGIN
-
-@class MMECommonEventData;
-
-/*! @brief represents a telemetry event, with a name, date and attributes */
-@interface MMEEvent : NSObject
-
-/*! @brief date on which the event occured - MMEEventKeyDateCreated */
-@property (nonatomic, readonly, copy) NSDate *date;
-
-/*! @brief name of the event, from MMEConstants.h - MMEEventKeyEvent */
-@property (nonatomic, readonly, copy) NSString *name;
-
-/*! @brief attributes of the event, a dictionary for which [NSJSONSerialization isValidJSONObject:] returns YES */
-@property (nonatomic, readonly, copy) NSDictionary *attributes;
-
-/*! @brief Designated Initilizer for events
- @param eventAttributes attributes of the event
- @param error present if the event could not be created with the properties provided
- @return a new event with the date, name and attributes provided
-*/
-- (instancetype)initWithAttributes:(NSDictionary *)eventAttributes error:(NSError **)error NS_DESIGNATED_INITIALIZER;
-
-#pragma mark - Generic Events
-
-/*! @brief eventWithAttributes: - initilization errors are reported to the EventsManagerDelegate
- @param attributes attrs
- @return event
-*/
-+ (instancetype)eventWithAttributes:(NSDictionary *)attributes;
-
-/*! @brief eventWithAttributes: - initilization errors are reported to the EventsManagerDelegate
- @param attributes attrs
- @return event
-*/
-+ (instancetype)eventWithAttributes:(NSDictionary *)attributes error:(NSError **)error;
-
-#pragma mark - Custom Events
-
-/*! @brief turnstileEventWithAttributes:
- @param attributes event attrs
- @return turnstile event
-*/
-+ (instancetype)turnstileEventWithAttributes:(NSDictionary *)attributes;
-
-/*! @brief visitEventWithAttributes:
- @param attributes attrs
- @return event
-*/
-+ (instancetype)visitEventWithAttributes:(NSDictionary *)attributes;
-
-#pragma mark - Crash Events
-
-/*! @brief crashEventReporting:error:
- @param eventsError error to report
- @param createError pointer to an error creating the report
- @return event
-*/
-+ (instancetype)crashEventReporting:(NSError *)eventsError error:(NSError **)createError;
-
-#pragma mark - Debug Devents
-
-/*! @brief debugEventWithAttributes: debug logging event with attributes provided
- @param attributes attrs
- @return event
-*/
-+ (instancetype)debugEventWithAttributes:(NSDictionary *)attributes MME_DEPRECATED;
-
-/*! @brief debugEventWithError: debug logging event with the error provided
- @param error error
- @return event
-*/
-+ (instancetype)debugEventWithError:(NSError *)error MME_DEPRECATED;
-
-/*! @brief debugEventWithException: debug logging event the the exception provided
- @param except exception
- @return event
-*/
-+ (instancetype)debugEventWithException:(NSException *)except MME_DEPRECATED;
-
-#pragma mark - Deprecated
-
-#pragma mark - Deprecated (MMECommonEventData)
-
-/*! @brief deprecated in MabboxMobileEvents 1.0.0 or later
- @note please use eventWithAttributes:error:
-*/
-+ (instancetype)locationEventWithAttributes:(NSDictionary *)attributes instanceIdentifer:(NSString *)instanceIdentifer commonEventData:(MMECommonEventData *)commonEventData
- MME_DEPRECATED_GOTO("use eventWithAttributes:error:", "-eventWithAttributes:error:");
-
-/*! @brief deprecated in MabboxMobileEvents 1.0.0 or later
- @note replacment TBD
-*/
-+ (instancetype)mapLoadEventWithDateString:(NSString *)dateString commonEventData:(MMECommonEventData *)commonEventData
- MME_DEPRECATED_GOTO("use eventWithAttributes:error:", "-eventWithAttributes:error:");
-
-#pragma mark - Deprecated (Event Name)
-
-/*! @brief deprecated in MabboxMobileEvents 1.0.0 or later
- @note please use eventWithAttributes:error:
-*/
-+ (instancetype)eventWithName:(NSString *)eventName attributes:(NSDictionary *)attributes
- MME_DEPRECATED_GOTO("use eventWithAttributes:error:", "-eventWithAttributes:error:");
-
-/*! @brief deprecated in MabboxMobileEvents 1.0.0 or later
- @note please use eventWithAttributes:error:
-*/
-+ (instancetype)navigationEventWithName:(NSString *)name attributes:(NSDictionary *)attributes
- MME_DEPRECATED_GOTO("use eventWithAttributes:error:", "-eventWithAttributes:error:");
-
-/*! @brief deprecated in MabboxMobileEvents 1.0.0 or later
- @note please use eventWithAttributes:error:
-*/
-+ (instancetype)visionEventWithName:(NSString *)name attributes:(NSDictionary *)attributes
- MME_DEPRECATED_GOTO("use eventWithAttributes:error:", "-eventWithAttributes:error:");
-
-/*! @brief deprecated in MabboxMobileEvents 1.0.0 or later
- @note please use eventWithAttributes:error:
-*/
-+ (instancetype)searchEventWithName:(NSString *)name attributes:(NSDictionary *)attributes
- MME_DEPRECATED_GOTO("use eventWithAttributes:error:", "-eventWithAttributes:error:");
-
-/*! brief deprecated in MabboxMobileEvents 1.0.0 or later
- @note please use eventWithAttributes:error:
-*/
-+ (instancetype)carplayEventWithName:(NSString *)name attributes:(NSDictionary *)attributes
- MME_DEPRECATED_GOTO("use eventWithAttributes:error:", "-eventWithAttributes:error:");
-
-#pragma mark - Deprecated (Date String)
-
-/*! @brief deprecated in MabboxMobileEvents 1.0.0 or later
- @note please use eventWithName:attributes:
-*/
-+ (instancetype)telemetryMetricsEventWithDateString:(NSString *)dateString attributes:(NSDictionary *)attributes
- MME_DEPRECATED_GOTO("use eventWithAttributes:error:", "-eventWithAttributes:error:");
-
-/*! @brief deprecated in MabboxMobileEvents 1.0.0 or later
- @note map gesture events are no longer supported
-*/
-+ (instancetype)mapTapEventWithDateString:(NSString *)dateString attributes:(NSDictionary *)attributes
- MME_DEPRECATED_MSG("map gesture events are no longer supported");
-
-/*! @brief deprecated in MabboxMobileEvents 1.0.0 or later
- @note map gesture events are no longer supported
-*/
-+ (instancetype)mapDragEndEventWithDateString:(NSString *)dateString attributes:(NSDictionary *)attributes
- MME_DEPRECATED_MSG("map gesture events are no longer supported");
-
-/*! @brief deprecated in MabboxMobileEvents 1.0.0 or later
- @note please use eventWithName:attributes:
-*/
-+ (instancetype)mapOfflineDownloadStartEventWithDateString:(NSString *)dateString attributes:(NSDictionary *)attributes
- MME_DEPRECATED_GOTO("use eventWithAttributes:error:", "-eventWithAttributes:error:");
-
-/*! @brief deprecated in MabboxMobileEvents 1.0.0 or later
- @note please use eventWithName:attributes:
-*/
-+ (instancetype)mapOfflineDownloadEndEventWithDateString:(NSString *)dateString attributes:(NSDictionary *)attributes
- MME_DEPRECATED_GOTO("use eventWithAttributes:error:", "-eventWithAttributes:error:");
-
-/*! @brief deprecated in MabboxMobileEvents 1.0.0 or later
- @note please use eventWithName:attributes:
-*/
-+ (instancetype)eventWithDateString:(NSString *)dateString name:(NSString *)name attributes:(NSDictionary *)attributes
- MME_DEPRECATED_GOTO("use eventWithAttributes:error:", "-eventWithAttributes:error:");
-
-@end
-
-NS_ASSUME_NONNULL_END
diff --git a/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents/MMEEvent.h.meta b/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents/MMEEvent.h.meta
deleted file mode 100644
index 99867fb7b..000000000
--- a/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents/MMEEvent.h.meta
+++ /dev/null
@@ -1,26 +0,0 @@
-fileFormatVersion: 2
-guid: 6c1879202f10e4c3da36b4eac7f010e1
-timeCreated: 1570560566
-licenseType: Pro
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- - first:
- Any:
- second:
- enabled: 1
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents/MMEEventsManager.h b/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents/MMEEventsManager.h
deleted file mode 100644
index ea13bdcd2..000000000
--- a/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents/MMEEventsManager.h
+++ /dev/null
@@ -1,152 +0,0 @@
-#import
-#import
-
-#import "MMETypes.h"
-
-@class MMEEvent;
-@protocol MMEEventsManagerDelegate;
-
-NS_ASSUME_NONNULL_BEGIN
-
-/*! @brief Mapbox Mobile Events Manager */
-@interface MMEEventsManager : NSObject
-
-/*! @brief events manager delegate */
-@property (nonatomic, weak) id delegate;
-
-/*! @brief YES if metrics collection is enabled */
-@property (nonatomic, getter=isMetricsEnabled) BOOL metricsEnabled;
-
-/*! @brief YES if metrics collection is enabled in the simulator */
-@property (nonatomic, getter=isMetricsEnabledInSimulator) BOOL metricsEnabledInSimulator;
-
-/*! @brief YES if metrics collection is enabled when the app is in use */
-@property (nonatomic, getter=isMetricsEnabledForInUsePermissions) BOOL metricsEnabledForInUsePermissions;
-
-/*! @brief YES if debug logging is enabled */
-@property (nonatomic, getter=isDebugLoggingEnabled) BOOL debugLoggingEnabled;
-
-/*! @brief UserAgent base string, in RFC 2616 format
- @link https://www.ietf.org/rfc/rfc2616.txt */
-@property (nonatomic, readonly) NSString *userAgentBase;
-
-/*! @brief SDK version, in Semantic Versioning 2.0.0 format
- @link https://semver.org */
-@property (nonatomic, readonly) NSString *hostSDKVersion;
-
-/*! @brief SKU Identifier */
-@property (nonatomic, copy) NSString *skuId;
-
-/*! @brief Mapbox Access Token
- @link https://account.mapbox.com */
-@property (nonatomic, copy) NSString *accessToken;
-
-/*! @brief baseURL */
-@property (nonatomic, null_resettable) NSURL *baseURL;
-
-/*! @brief accountType */
-@property (nonatomic) NSInteger accountType;
-
-#pragma mark -
-
-/*! @brief Shared Mabpox Mobile Events Manager */
-+ (instancetype)sharedManager;
-
-#pragma mark - Exception Free API
-
-/*!
- @brief designated initilizer
- @param accessToken Mapbox Access Token
- @param userAgentBase UserAgent base string, in RFC 2616 format
- @param hostSDKVersion SDK version, in Semantic Versioning 2.0.0 format
- @throws no exceptions
-*/
-- (void)initializeWithAccessToken:(NSString *)accessToken userAgentBase:(NSString *)userAgentBase hostSDKVersion:(NSString *)hostSDKVersion;
-
-/*! @brief pauseOrResumeMetricsCollectionIfRequired
- @throws no exceptions */
-- (void)pauseOrResumeMetricsCollectionIfRequired;
-
-/*! @brief flush the events pipeline, sending any pending events
- @throws no exceptions */
-- (void)flush;
-
-/*! @brief resetEventQueuing
- @throws no exceptions */
-- (void)resetEventQueuing;
-
-/*! @brief sendTurnstileEvent
- @throws no exceptions */
-- (void)sendTurnstileEvent;
-
-/*! @brief sendTelemetryMetricsEvent
- @throws no exceptions */
-- (void)sendTelemetryMetricsEvent;
-
-/*! @brief disableLocationMetrics */
-- (void)disableLocationMetrics;
-
-#pragma mark -
-
-/*! @brief enqueueEventWithName:
- @param name event name */
-- (void)enqueueEventWithName:(NSString *)name;
-
-/*! @brief enqueueEventWithName:attributes:
- @param name event name
- @param attributes event attributes */
-- (void)enqueueEventWithName:(NSString *)name attributes:(MMEMapboxEventAttributes *)attributes;
-
-/*! @brief postMetadata:filePaths:completionHander:
- @param metadata array of metadat
- @param filePaths array of file paths
- @param completionHandler completion handler block
-*/
-- (void)postMetadata:(NSArray *)metadata filePaths:(NSArray *)filePaths completionHandler:(nullable void (^)(NSError * _Nullable error))completionHandler;
-
-- (void)displayLogFileFromDate:(NSDate *)logDate MME_DEPRECATED;
-
-#pragma mark - Error & Exception Reporting
-
-/*! @brief report an error to the telemetry service
- @return the report event, for inspection or logging
- @throws no exceptions */
-- (MMEEvent *)reportError:(NSError *)eventsError;
-
-/*! @brief report an exception to the telemetry service
- @return the report event, for inspection or logging
- @throws no exceptions */
-- (MMEEvent *)reportException:(NSException *)eventException;
-
-@end
-
-#pragma mark -
-
-/*! @brief delegate methods for MMEEventsManager */
-@protocol MMEEventsManagerDelegate
-
-@optional
-
-/*! @brief eventsManager:didUpdateLocations: reports location updates to the delegate
- @param eventsManager shared manager
- @param locations array of CLLocations
-*/
-- (void)eventsManager:(MMEEventsManager *)eventsManager didUpdateLocations:(NSArray *)locations;
-
-#if TARGET_OS_IOS
-/*! @brief eventsManager:didVisit: reports visits to the delegate
- @param eventsManager shared manager
- @param visit CLVisit
-*/
-- (void)eventsManager:(MMEEventsManager *)eventsManager didVisit:(CLVisit *)visit;
-#endif
-
-/** @brief reports errors encoutered by the Events Manager to the delegate
- @param eventsManager the shared events manager
- @param error the encountered NSError object
-*/
-- (void)eventsManager:(MMEEventsManager *)eventsManager didEncounterError:(NSError *)error;
-
-@end
-
-NS_ASSUME_NONNULL_END
diff --git a/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents/MMEEventsManager.h.meta b/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents/MMEEventsManager.h.meta
deleted file mode 100644
index 73df47acb..000000000
--- a/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents/MMEEventsManager.h.meta
+++ /dev/null
@@ -1,26 +0,0 @@
-fileFormatVersion: 2
-guid: 3edca867bab9748d6be5abf6b6006229
-timeCreated: 1570560566
-licenseType: Pro
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- - first:
- Any:
- second:
- enabled: 1
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents/MMETypes.h b/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents/MMETypes.h
deleted file mode 100644
index ab032c5ee..000000000
--- a/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents/MMETypes.h
+++ /dev/null
@@ -1,54 +0,0 @@
-#import
-
-#ifndef NS_ARRAY_OF
- // Foundation collection classes adopted lightweight generics in iOS 9.0 and OS X 10.11 SDKs.
- #if __has_feature(objc_generics) && (__IPHONE_OS_VERSION_MAX_ALLOWED >= 90000 || __MAC_OS_X_VERSION_MAX_ALLOWED >= 101100)
- /** Inserts a type specifier for a pointer to a lightweight generic with the given collection and object classes. Use a `*` for any non-`id` object classes but no `*` for the collection class. */
- #define NS_ARRAY_OF(ObjectClass...) NSArray
- #define NS_MUTABLE_ARRAY_OF(ObjectClass...) NSMutableArray
- #define NS_SET_OF(ObjectClass...) NSSet
- #define NS_MUTABLE_SET_OF(ObjectClass...) NSMutableSet
- #define NS_DICTIONARY_OF(ObjectClass...) NSDictionary
- #define NS_MUTABLE_DICTIONARY_OF(ObjectClass...) NSMutableDictionary
- #else
- #define NS_ARRAY_OF(ObjectClass...) NSArray
- #define NS_MUTABLE_ARRAY_OF(ObjectClass...) NSMutableArray
- #define NS_SET_OF(ObjectClass...) NSSet
- #define NS_MUTABLE_SET_OF(ObjectClass...) NSMutableSet
- #define NS_DICTIONARY_OF(ObjectClass...) NSDictionary
- #define NS_MUTABLE_DICTIONARY_OF(ObjectClass...) NSMutableDictionary
- #endif
-#endif
-
-typedef NS_DICTIONARY_OF(NSString *, id) MMEMapboxEventAttributes;
-typedef NS_MUTABLE_DICTIONARY_OF(NSString *, id) MMEMutableMapboxEventAttributes;
-
-#ifdef MME_DEPRECATION_WARNINGS
-
-#ifndef MME_DEPRECATED
- #define MME_DEPRECATED __attribute__((deprecated))
-#endif
-
-#ifndef MME_DEPRECATED_MSG
- #define MME_DEPRECATED_MSG(msg) __attribute((deprecated((msg))))
-#endif
-
-#ifndef MME_DEPRECATED_GOTO
- #define MME_DEPRECATED_GOTO(msg,label) __attribute((deprecated((msg),(label))))
-#endif
-
-#else
-
-#ifndef MME_DEPRECATED
- #define MME_DEPRECATED
-#endif
-
-#ifndef MME_DEPRECATED_MSG
- #define MME_DEPRECATED_MSG(msg)
-#endif
-
-#ifndef MME_DEPRECATED_GOTO
- #define MME_DEPRECATED_GOTO(msg,label)
-#endif
-
-#endif // MME_DEPRECATION_WARNINGS
diff --git a/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents/MMETypes.h.meta b/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents/MMETypes.h.meta
deleted file mode 100644
index 8e637fbdc..000000000
--- a/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents/MMETypes.h.meta
+++ /dev/null
@@ -1,26 +0,0 @@
-fileFormatVersion: 2
-guid: 7743c930e90e943f4941ec6e3ad1a58f
-timeCreated: 1570560566
-licenseType: Pro
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- - first:
- Any:
- second:
- enabled: 1
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents/MapboxMobileEvents.h b/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents/MapboxMobileEvents.h
deleted file mode 100644
index a90ea2b6a..000000000
--- a/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents/MapboxMobileEvents.h
+++ /dev/null
@@ -1,14 +0,0 @@
-#import
-
-//! Project version number for MapboxMobileEvents.
-FOUNDATION_EXPORT double MapboxMobileEventsVersionNumber;
-
-//! Project version string for MapboxMobileEvents
-FOUNDATION_EXPORT const unsigned char MapboxMobileEventsVersionString[];
-
-// In this header, you should import all the public headers of your framework using statements like #import
-
-#import
-#import
-#import
-#import
diff --git a/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents/MapboxMobileEvents.h.meta b/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents/MapboxMobileEvents.h.meta
deleted file mode 100644
index f9ed3dc7b..000000000
--- a/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/include/MapboxMobileEvents/MapboxMobileEvents.h.meta
+++ /dev/null
@@ -1,26 +0,0 @@
-fileFormatVersion: 2
-guid: 458ba4499a3bc4d2aafae9f55ca4c37e
-timeCreated: 1570560566
-licenseType: Pro
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- - first:
- Any:
- second:
- enabled: 1
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- DefaultValueInitialized: true
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/libMapboxMobileEventsStatic.a b/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/libMapboxMobileEventsStatic.a
deleted file mode 100644
index 5185661bf..000000000
Binary files a/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/libMapboxMobileEventsStatic.a and /dev/null differ
diff --git a/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/libMapboxMobileEventsStatic.a.meta b/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/libMapboxMobileEventsStatic.a.meta
deleted file mode 100644
index 4fcd74dc6..000000000
--- a/Assets/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/libMapboxMobileEventsStatic.a.meta
+++ /dev/null
@@ -1,106 +0,0 @@
-fileFormatVersion: 2
-guid: 902cd5fd1c6e74a17a41d7527de5b07b
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- defineConstraints: []
- isPreloaded: 0
- isOverridable: 0
- isExplicitlyReferenced: 0
- validateReferences: 1
- platformData:
- - first:
- '': Any
- second:
- enabled: 0
- settings:
- Exclude Android: 1
- Exclude Editor: 1
- Exclude Linux: 1
- Exclude Linux64: 1
- Exclude LinuxUniversal: 1
- Exclude OSXUniversal: 1
- Exclude WebGL: 1
- Exclude Win: 1
- Exclude Win64: 1
- Exclude iOS: 0
- - first:
- Android: Android
- second:
- enabled: 0
- settings:
- CPU: ARMv7
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- DefaultValueInitialized: true
- OS: AnyOS
- - first:
- Facebook: Win
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Facebook: Win64
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Linux
- second:
- enabled: 0
- settings:
- CPU: x86
- - first:
- Standalone: Linux64
- second:
- enabled: 0
- settings:
- CPU: x86_64
- - first:
- Standalone: LinuxUniversal
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Standalone: OSXUniversal
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Win
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Win64
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- iPhone: iOS
- second:
- enabled: 1
- settings:
- AddToEmbeddedBinaries: false
- CompileFlags:
- FrameworkDependencies:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/link.xml b/Assets/Mapbox/Core/Plugins/link.xml
deleted file mode 100644
index d316281b6..000000000
--- a/Assets/Mapbox/Core/Plugins/link.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Assets/Mapbox/Core/Plugins/link.xml.meta b/Assets/Mapbox/Core/Plugins/link.xml.meta
deleted file mode 100644
index 9a564e60a..000000000
--- a/Assets/Mapbox/Core/Plugins/link.xml.meta
+++ /dev/null
@@ -1,7 +0,0 @@
-fileFormatVersion: 2
-guid: 4cdb20be19794f045b7be9be4b5c0411
-TextScriptImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/sqlite.meta b/Assets/Mapbox/Core/Plugins/sqlite.meta
deleted file mode 100644
index 75588d989..000000000
--- a/Assets/Mapbox/Core/Plugins/sqlite.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 9b6db522e589f6648ac1c512b86ffee7
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/sqlite/Android.meta b/Assets/Mapbox/Core/Plugins/sqlite/Android.meta
deleted file mode 100644
index fc385e8b0..000000000
--- a/Assets/Mapbox/Core/Plugins/sqlite/Android.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: f9aa937fca8cbd945a3a1c9a32a2aeca
-folderAsset: yes
-timeCreated: 1445131378
-licenseType: Free
-DefaultImporter:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/sqlite/Android/libs.meta b/Assets/Mapbox/Core/Plugins/sqlite/Android/libs.meta
deleted file mode 100644
index cffbabb9b..000000000
--- a/Assets/Mapbox/Core/Plugins/sqlite/Android/libs.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 8ecc37cde00565d439803ae86521a2be
-folderAsset: yes
-timeCreated: 1445131378
-licenseType: Free
-DefaultImporter:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/sqlite/Android/libs/arm64-v8a.meta b/Assets/Mapbox/Core/Plugins/sqlite/Android/libs/arm64-v8a.meta
deleted file mode 100644
index 9a815b85b..000000000
--- a/Assets/Mapbox/Core/Plugins/sqlite/Android/libs/arm64-v8a.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 2325a98c27e0cd84a821f71d86995361
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/sqlite/Android/libs/arm64-v8a/libsqlite3.so b/Assets/Mapbox/Core/Plugins/sqlite/Android/libs/arm64-v8a/libsqlite3.so
deleted file mode 100644
index 246d02787..000000000
Binary files a/Assets/Mapbox/Core/Plugins/sqlite/Android/libs/arm64-v8a/libsqlite3.so and /dev/null differ
diff --git a/Assets/Mapbox/Core/Plugins/sqlite/Android/libs/arm64-v8a/libsqlite3.so.meta b/Assets/Mapbox/Core/Plugins/sqlite/Android/libs/arm64-v8a/libsqlite3.so.meta
deleted file mode 100644
index 6c5aaed39..000000000
--- a/Assets/Mapbox/Core/Plugins/sqlite/Android/libs/arm64-v8a/libsqlite3.so.meta
+++ /dev/null
@@ -1,94 +0,0 @@
-fileFormatVersion: 2
-guid: aff4a781acb7b3e44ad44913092f0136
-PluginImporter:
- externalObjects: {}
- serializedVersion: 2
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- isOverridable: 0
- platformData:
- - first:
- '': Any
- second:
- enabled: 0
- settings:
- Exclude Android: 0
- Exclude Editor: 1
- Exclude Linux: 1
- Exclude Linux64: 1
- Exclude LinuxUniversal: 1
- Exclude OSXUniversal: 1
- Exclude WebGL: 1
- Exclude Win: 1
- Exclude Win64: 1
- - first:
- Android: Android
- second:
- enabled: 1
- settings:
- CPU: ARM64
- - first:
- Any:
- second:
- enabled: 0
- settings: {}
- - first:
- Editor: Editor
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- DefaultValueInitialized: true
- OS: AnyOS
- - first:
- Facebook: Win
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Facebook: Win64
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Linux
- second:
- enabled: 0
- settings:
- CPU: x86
- - first:
- Standalone: Linux64
- second:
- enabled: 0
- settings:
- CPU: x86_64
- - first:
- Standalone: LinuxUniversal
- second:
- enabled: 0
- settings:
- CPU: None
- - first:
- Standalone: OSXUniversal
- second:
- enabled: 0
- settings:
- CPU: x86
- - first:
- Standalone: Win
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- - first:
- Standalone: Win64
- second:
- enabled: 0
- settings:
- CPU: AnyCPU
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/sqlite/Android/libs/armeabi-v7a.meta b/Assets/Mapbox/Core/Plugins/sqlite/Android/libs/armeabi-v7a.meta
deleted file mode 100644
index 9c3fb54a0..000000000
--- a/Assets/Mapbox/Core/Plugins/sqlite/Android/libs/armeabi-v7a.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 08b2651045c57a441975bfde798f2859
-folderAsset: yes
-timeCreated: 1445131378
-licenseType: Free
-DefaultImporter:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/sqlite/Android/libs/armeabi-v7a/libsqlite3.so b/Assets/Mapbox/Core/Plugins/sqlite/Android/libs/armeabi-v7a/libsqlite3.so
deleted file mode 100644
index d69ba56f8..000000000
Binary files a/Assets/Mapbox/Core/Plugins/sqlite/Android/libs/armeabi-v7a/libsqlite3.so and /dev/null differ
diff --git a/Assets/Mapbox/Core/Plugins/sqlite/Android/libs/armeabi-v7a/libsqlite3.so.meta b/Assets/Mapbox/Core/Plugins/sqlite/Android/libs/armeabi-v7a/libsqlite3.so.meta
deleted file mode 100644
index db7f4be4a..000000000
--- a/Assets/Mapbox/Core/Plugins/sqlite/Android/libs/armeabi-v7a/libsqlite3.so.meta
+++ /dev/null
@@ -1,70 +0,0 @@
-fileFormatVersion: 2
-guid: a00620409803a41f598cabed0c2ecf9f
-PluginImporter:
- serializedVersion: 1
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- platformData:
- Android:
- enabled: 1
- settings:
- CPU: ARMv7
- Any:
- enabled: 0
- settings: {}
- Editor:
- enabled: 0
- settings:
- CPU: AnyCPU
- DefaultValueInitialized: true
- OS: AnyOS
- Linux:
- enabled: 0
- settings:
- CPU: x86
- Linux64:
- enabled: 0
- settings:
- CPU: x86_64
- OSXIntel:
- enabled: 0
- settings:
- CPU: AnyCPU
- OSXIntel64:
- enabled: 0
- settings:
- CPU: AnyCPU
- SamsungTV:
- enabled: 0
- settings:
- STV_MODEL: STANDARD_13
- WP8:
- enabled: 0
- settings:
- CPU: AnyCPU
- DontProcess: False
- PlaceholderPath:
- Win:
- enabled: 0
- settings:
- CPU: AnyCPU
- Win64:
- enabled: 0
- settings:
- CPU: AnyCPU
- WindowsStoreApps:
- enabled: 0
- settings:
- CPU: AnyCPU
- DontProcess: False
- PlaceholderPath:
- SDK: AnySDK
- iOS:
- enabled: 0
- settings:
- CompileFlags:
- FrameworkDependencies:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/sqlite/Android/libs/x86.meta b/Assets/Mapbox/Core/Plugins/sqlite/Android/libs/x86.meta
deleted file mode 100644
index d396f999a..000000000
--- a/Assets/Mapbox/Core/Plugins/sqlite/Android/libs/x86.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 450e0a9c89bf4a040b26f1fef13f5655
-folderAsset: yes
-timeCreated: 1445131378
-licenseType: Free
-DefaultImporter:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/sqlite/Android/libs/x86/libsqlite3.so b/Assets/Mapbox/Core/Plugins/sqlite/Android/libs/x86/libsqlite3.so
deleted file mode 100644
index d4d12035b..000000000
Binary files a/Assets/Mapbox/Core/Plugins/sqlite/Android/libs/x86/libsqlite3.so and /dev/null differ
diff --git a/Assets/Mapbox/Core/Plugins/sqlite/Android/libs/x86/libsqlite3.so.meta b/Assets/Mapbox/Core/Plugins/sqlite/Android/libs/x86/libsqlite3.so.meta
deleted file mode 100644
index 2c6eee9ac..000000000
--- a/Assets/Mapbox/Core/Plugins/sqlite/Android/libs/x86/libsqlite3.so.meta
+++ /dev/null
@@ -1,55 +0,0 @@
-fileFormatVersion: 2
-guid: fa9cbdc3a67e5fd4baeb5d0dd3f4cf71
-timeCreated: 1445131383
-licenseType: Free
-PluginImporter:
- serializedVersion: 1
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- platformData:
- Android:
- enabled: 1
- settings:
- CPU: x86
- Any:
- enabled: 0
- settings: {}
- Editor:
- enabled: 0
- settings:
- CPU: AnyCPU
- DefaultValueInitialized: true
- OS: AnyOS
- Linux:
- enabled: 0
- settings:
- CPU: x86
- Linux64:
- enabled: 0
- settings:
- CPU: x86_64
- OSXIntel:
- enabled: 0
- settings:
- CPU: AnyCPU
- OSXIntel64:
- enabled: 0
- settings:
- CPU: AnyCPU
- Win:
- enabled: 0
- settings:
- CPU: AnyCPU
- Win64:
- enabled: 0
- settings:
- CPU: AnyCPU
- iOS:
- enabled: 0
- settings:
- CompileFlags:
- FrameworkDependencies:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/sqlite/x64.meta b/Assets/Mapbox/Core/Plugins/sqlite/x64.meta
deleted file mode 100644
index 049d532e2..000000000
--- a/Assets/Mapbox/Core/Plugins/sqlite/x64.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: d080ad26255213a459eabfbd537e41b5
-folderAsset: yes
-timeCreated: 1445131378
-licenseType: Free
-DefaultImporter:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/sqlite/x64/sqlite3.dll b/Assets/Mapbox/Core/Plugins/sqlite/x64/sqlite3.dll
deleted file mode 100644
index 6f07d5e7a..000000000
Binary files a/Assets/Mapbox/Core/Plugins/sqlite/x64/sqlite3.dll and /dev/null differ
diff --git a/Assets/Mapbox/Core/Plugins/sqlite/x64/sqlite3.dll.meta b/Assets/Mapbox/Core/Plugins/sqlite/x64/sqlite3.dll.meta
deleted file mode 100644
index 245e977ba..000000000
--- a/Assets/Mapbox/Core/Plugins/sqlite/x64/sqlite3.dll.meta
+++ /dev/null
@@ -1,63 +0,0 @@
-fileFormatVersion: 2
-guid: a3fee75616c5ab0449e841e6fc8a5172
-timeCreated: 1445131383
-licenseType: Free
-PluginImporter:
- serializedVersion: 1
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- platformData:
- Android:
- enabled: 0
- settings:
- CPU: AnyCPU
- Editor:
- enabled: 1
- settings:
- CPU: x86_64
- DefaultValueInitialized: true
- OS: AnyOS
- Linux:
- enabled: 1
- settings:
- CPU: x86
- Linux64:
- enabled: 1
- settings:
- CPU: x86_64
- LinuxUniversal:
- enabled: 1
- settings:
- CPU: AnyCPU
- OSXIntel:
- enabled: 1
- settings:
- CPU: AnyCPU
- OSXIntel64:
- enabled: 1
- settings:
- CPU: AnyCPU
- OSXUniversal:
- enabled: 1
- settings:
- CPU: AnyCPU
- Win:
- enabled: 0
- settings:
- CPU: None
- Win64:
- enabled: 1
- settings:
- CPU: AnyCPU
- data:
- enabled: 0
- settings: {}
- iOS:
- enabled: 1
- settings:
- CompileFlags:
- FrameworkDependencies:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/sqlite/x86.meta b/Assets/Mapbox/Core/Plugins/sqlite/x86.meta
deleted file mode 100644
index a43b7b4dd..000000000
--- a/Assets/Mapbox/Core/Plugins/sqlite/x86.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 854bb0734038dc44e81cdde1d571a00f
-folderAsset: yes
-timeCreated: 1445131378
-licenseType: Free
-DefaultImporter:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/Plugins/sqlite/x86/sqlite3.dll b/Assets/Mapbox/Core/Plugins/sqlite/x86/sqlite3.dll
deleted file mode 100644
index 4cd5a1122..000000000
Binary files a/Assets/Mapbox/Core/Plugins/sqlite/x86/sqlite3.dll and /dev/null differ
diff --git a/Assets/Mapbox/Core/Plugins/sqlite/x86/sqlite3.dll.meta b/Assets/Mapbox/Core/Plugins/sqlite/x86/sqlite3.dll.meta
deleted file mode 100644
index e2f12967a..000000000
--- a/Assets/Mapbox/Core/Plugins/sqlite/x86/sqlite3.dll.meta
+++ /dev/null
@@ -1,63 +0,0 @@
-fileFormatVersion: 2
-guid: 34afd3dfc3051f3438965ecf7bd8c8df
-timeCreated: 1445131383
-licenseType: Free
-PluginImporter:
- serializedVersion: 1
- iconMap: {}
- executionOrder: {}
- isPreloaded: 0
- platformData:
- Android:
- enabled: 0
- settings:
- CPU: AnyCPU
- Editor:
- enabled: 1
- settings:
- CPU: x86
- DefaultValueInitialized: true
- OS: AnyOS
- Linux:
- enabled: 1
- settings:
- CPU: x86
- Linux64:
- enabled: 1
- settings:
- CPU: x86_64
- LinuxUniversal:
- enabled: 1
- settings:
- CPU: AnyCPU
- OSXIntel:
- enabled: 1
- settings:
- CPU: AnyCPU
- OSXIntel64:
- enabled: 1
- settings:
- CPU: AnyCPU
- OSXUniversal:
- enabled: 1
- settings:
- CPU: AnyCPU
- Win:
- enabled: 1
- settings:
- CPU: AnyCPU
- Win64:
- enabled: 0
- settings:
- CPU: None
- data:
- enabled: 0
- settings: {}
- iOS:
- enabled: 0
- settings:
- CompileFlags:
- FrameworkDependencies:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/cheap-ruler-cs.meta b/Assets/Mapbox/Core/cheap-ruler-cs.meta
deleted file mode 100644
index 3b9d2a3aa..000000000
--- a/Assets/Mapbox/Core/cheap-ruler-cs.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 49cd92bb9fe9ed9428a22e83866f702c
-folderAsset: yes
-timeCreated: 1510755841
-licenseType: Pro
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/cheap-ruler-cs/CheapRuler.cs b/Assets/Mapbox/Core/cheap-ruler-cs/CheapRuler.cs
deleted file mode 100644
index 9850c990f..000000000
--- a/Assets/Mapbox/Core/cheap-ruler-cs/CheapRuler.cs
+++ /dev/null
@@ -1,164 +0,0 @@
-namespace Mapbox.CheapRulerCs
-{
-
- using System;
-
-
- public enum CheapRulerUnits
- {
- Kilometers,
- Miles,
- NauticalMiles,
- Meters,
- Yards,
- Feet,
- Inches
- }
-
- public class CheapRuler
- {
-
-
- private double _kx;
- private double _ky;
-
-
- ///
- /// Creates a ruler object that will approximate measurements around the given latitude. Units are one of: kilometers
- ///
- ///
- public CheapRuler(double latitude, CheapRulerUnits outputUnits = CheapRulerUnits.Kilometers)
- {
-
- double factor;
-
- switch (outputUnits)
- {
- case CheapRulerUnits.Kilometers:
- factor = 1.0d;
- break;
- case CheapRulerUnits.Miles:
- factor = 1000.0d / 1609.344;
- break;
- case CheapRulerUnits.NauticalMiles:
- factor = 1000.0d / 1852.0d;
- break;
- case CheapRulerUnits.Meters:
- factor = 1000.0d;
- break;
- case CheapRulerUnits.Yards:
- factor = 1000.0d / 0.9144;
- break;
- case CheapRulerUnits.Feet:
- factor = 1000.0d / 0.3048;
- break;
- case CheapRulerUnits.Inches:
- factor = 1000.0d / 0.0254;
- break;
- default:
- factor = 1.0d;
- break;
- }
-
- var cos = Math.Cos(latitude * Math.PI / 180);
- var cos2 = 2 * cos * cos - 1;
- var cos3 = 2 * cos * cos2 - cos;
- var cos4 = 2 * cos * cos3 - cos2;
- var cos5 = 2 * cos * cos4 - cos3;
-
- // multipliers for converting longitude and latitude degrees into distance (http://1.usa.gov/1Wb1bv7)
- _kx = factor * (111.41513 * cos - 0.09455 * cos3 + 0.00012 * cos5);
- _ky = factor * (111.13209 - 0.56605 * cos2 + 0.0012 * cos4);
- }
-
-
- ///
- /// Creates a ruler object from tile coordinates.
- ///
- /// Y TileId
- /// Zoom Level
- ///
- ///
- public static CheapRuler FromTile(int y, int z, CheapRulerUnits units = CheapRulerUnits.Kilometers)
- {
- var n = Math.PI * (1 - 2 * (y + 0.5) / Math.Pow(2, z));
- var lat = Math.Atan(0.5 * (Math.Exp(n) - Math.Exp(-n))) * 180 / Math.PI;
- return new CheapRuler(lat, units);
- }
-
-
- ///
- /// Given two points returns the distance.
- ///
- /// point [longitude, latitude]
- /// point [longitude, latitude]
- /// Distance
- public double Distance(double[] a, double[] b)
- {
- var dx = (a[0] - b[0]) * _kx;
- var dy = (a[1] - b[1]) * _ky;
- return Math.Sqrt(dx * dx + dy * dy);
- }
-
-
- ///
- /// Returns the bearing between two points in angles.
- ///
- /// a point [longitude, latitude]
- /// b point [longitude, latitude]
- /// Bearing
- public double Bearing(double[] a, double[] b)
- {
- var dx = (b[0] - a[0]) * _kx;
- var dy = (b[1] - a[1]) * _ky;
- if (dx == 0 && dy == 0)
- {
- return 0;
- }
- var bearing = Math.Atan2(dx, dy) * 180 / Math.PI;
- if (bearing > 180)
- {
- bearing -= 360;
- }
- return bearing;
- }
-
-
- ///
- /// Returns a new point given distance and bearing from the starting point.
- ///
- ///
- ///
- /// point [longitude, latitude]
- ///
- public double[] Destination(double[] p, double distance, double bearing)
- {
- var a = (90 - bearing) * Math.PI / 180;
- return offset(
- p
- , Math.Cos(a) * distance
- , Math.Sin(a) * distance
- );
- }
-
-
- ///
- /// Returns a new point given easting and northing offsets (in ruler units) from the starting point.
- ///
- /// point [longitude, latitude]
- /// dx easting
- /// dy northing
- /// point [longitude, latitude]
- private double[] offset(double[] p, double dx, double dy)
- {
- return new double[]
- {
- p[0] + dx / _kx,
- p[1] + dy / _ky
- };
- }
-
-
-
- }
-}
diff --git a/Assets/Mapbox/Core/cheap-ruler-cs/CheapRuler.cs.meta b/Assets/Mapbox/Core/cheap-ruler-cs/CheapRuler.cs.meta
deleted file mode 100644
index d8e07f9a2..000000000
--- a/Assets/Mapbox/Core/cheap-ruler-cs/CheapRuler.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 70ae2609c58a0494fa3d7f9f58915037
-timeCreated: 1510756014
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/cheap-ruler-cs/Tests.meta b/Assets/Mapbox/Core/cheap-ruler-cs/Tests.meta
deleted file mode 100644
index 240aa35e3..000000000
--- a/Assets/Mapbox/Core/cheap-ruler-cs/Tests.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: ad956bac3800e2347b757d68a78545fe
-folderAsset: yes
-timeCreated: 1515511351
-licenseType: Pro
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/cheap-ruler-cs/Tests/Editor.meta b/Assets/Mapbox/Core/cheap-ruler-cs/Tests/Editor.meta
deleted file mode 100644
index 5f57978b3..000000000
--- a/Assets/Mapbox/Core/cheap-ruler-cs/Tests/Editor.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 4f535415528489e4994bafd61109a75e
-folderAsset: yes
-timeCreated: 1515511390
-licenseType: Pro
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/cheap-ruler-cs/Tests/Editor/MapboxUnitTests_CheapRulerCs.cs b/Assets/Mapbox/Core/cheap-ruler-cs/Tests/Editor/MapboxUnitTests_CheapRulerCs.cs
deleted file mode 100644
index 36ef2e3ed..000000000
--- a/Assets/Mapbox/Core/cheap-ruler-cs/Tests/Editor/MapboxUnitTests_CheapRulerCs.cs
+++ /dev/null
@@ -1,122 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-// TODO: figure out how run tests outside of Unity with .NET framework, something like '#if !UNITY'
-
-namespace Mapbox.CheapRulerCs.UnitTest
-{
-
-
- using NUnit.Framework;
- using System.Collections.Generic;
- using UnityEngine;
- using Mapbox.CheapRulerCs;
- using Mapbox.Json.Linq;
-
- [TestFixture]
- internal class CheapRulerCsTest
- {
-
-
- // TODO more tests ////////////////////
- // see https://github.com/mapbox/cheap-ruler/blob/master/test/test.js
- //////////////////////////
-
-
- internal class point { public double x; public double y; }
- internal class line
- {
- public List vertices = new List();
- public void Add(double x, double y) { vertices.Add(new point() { x = x, y = y }); }
- }
-
- private List _lineFixtures;
-
- [SetUp]
- public void SetUp()
- {
- _lineFixtures = loadFixtures();
- }
-
-
-
- [Test, Order(1)]
- public void FixturesLoaded()
- {
- Assert.AreEqual(58, _lineFixtures.Count);
- }
-
-
-
- [Test]
- public void DistanceInMiles()
- {
- CheapRuler ruler = new CheapRuler(32.8351);
- CheapRuler rulerMiles = new CheapRuler(32.8351, CheapRulerUnits.Miles);
-
- double distKm = ruler.Distance(new double[] { 30.5, 32.8351 }, new double[] { 30.51, 32.8451 });
- double distMiles = rulerMiles.Distance(new double[] { 30.5, 32.8351 }, new double[] { 30.51, 32.8451 });
-
- Debug.LogFormat("{0} {1}", distKm, distMiles);
- Assert.AreEqual(1.609344, distKm / distMiles, 1e-12, "wrong distance in miles");
- }
-
-
- [Test]
- public void DistanceInNauticalMiles()
- {
- CheapRuler ruler = new CheapRuler(32.8351);
- CheapRuler rulerMiles = new CheapRuler(32.8351, CheapRulerUnits.Miles);
- CheapRuler rulerNauticalMiles = new CheapRuler(32.8351, CheapRulerUnits.NauticalMiles);
-
- double distKm = ruler.Distance(new double[] { 30.5, 32.8351 }, new double[] { 30.51, 32.8451 });
- double distMiles = rulerMiles.Distance(new double[] { 30.5, 32.8351 }, new double[] { 30.51, 32.8451 });
- double distNauticalMiles = rulerNauticalMiles.Distance(new double[] { 30.5, 32.8351 }, new double[] { 30.51, 32.8451 });
-
- Debug.LogFormat("{0} {1}", distKm, distNauticalMiles);
- Assert.AreEqual(1.852, distKm / distNauticalMiles, 1e-12, "wrong distance km vs nautical miles");
- Assert.AreEqual(1.15078, distMiles / distNauticalMiles, 1e-6, "wrong distance miles vs nautical miles");
- }
-
-
- [Test]
- public void FromTile()
- {
- CheapRuler ruler1 = new CheapRuler(50.5);
- CheapRuler ruler2 = CheapRuler.FromTile(11041, 15);
-
- var p1 = new double[] { 30.5, 50.5 };
- var p2 = new double[] { 30.51, 50.51 };
-
- Assert.AreEqual(ruler1.Distance(p1, p2), ruler2.Distance(p1, p2), 3e-5, "CheapRuler.FromTile distance");
- }
-
-
-
- private List loadFixtures()
- {
- TextAsset fixturesAsset = Resources.Load("ChearRulerCs_fixtures");
- var json = JArray.Parse(fixturesAsset.text);
- List fixtures = new List();
-
- foreach (var line in json)
- {
- line fixtureLine = new line();
-
- foreach (var coordinates in line)
- {
- fixtureLine.Add(coordinates[0].Value(), coordinates[1].Value());
- }
- fixtures.Add(fixtureLine);
- }
-
- return fixtures;
- }
-
-
-
- }
-}
diff --git a/Assets/Mapbox/Core/cheap-ruler-cs/Tests/Editor/MapboxUnitTests_CheapRulerCs.cs.meta b/Assets/Mapbox/Core/cheap-ruler-cs/Tests/Editor/MapboxUnitTests_CheapRulerCs.cs.meta
deleted file mode 100644
index 4d882e851..000000000
--- a/Assets/Mapbox/Core/cheap-ruler-cs/Tests/Editor/MapboxUnitTests_CheapRulerCs.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: a618de68ec1d47d4895ef5b3200b2c88
-timeCreated: 1522309080
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs.meta
deleted file mode 100644
index de99404c5..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 0573f298307b74fceabb0e3093a486d5
-folderAsset: yes
-timeCreated: 1491243030
-licenseType: Pro
-DefaultImporter:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Directions.meta
deleted file mode 100644
index 727165f69..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 17120e4ab0b97434486f85ff6e0a9196
-folderAsset: yes
-timeCreated: 1491243030
-licenseType: Pro
-DefaultImporter:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/DirectionResource.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/DirectionResource.cs
deleted file mode 100644
index 6bb31f3b6..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/DirectionResource.cs
+++ /dev/null
@@ -1,244 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.Directions
-{
- using System;
- using System.Collections.Generic;
- using Mapbox.Utils;
- using Platform;
-
- /// A directions request.
- public class DirectionResource : Resource
- {
- private string apiEndpoint = "directions/v5/";
-
- // Required
- private RoutingProfile profile;
-
- // Optional
- private Vector2d[] coordinates;
-
- // Optional
- private bool? alternatives;
-
- // Optional
- private BearingFilter[] bearings;
-
- // Optional
- private bool? continueStraight;
-
- // Optional
- private Overview overview;
-
- // Optional
- private double[] radiuses;
-
- // Optional
- private bool? steps;
-
- /// Initializes a new instance of the class.
- ///
- /// Array of LatLng points along route, between 2 and 25 elements in length.
- ///
- ///
- /// A routing profile, for all profile options.
- ///
- public DirectionResource(Vector2d[] coordinates, RoutingProfile profile)
- {
- this.Coordinates = coordinates;
- this.RoutingProfile = profile;
- }
-
- /// Gets the API endpoint as a partial URL path.
- public override string ApiEndpoint {
- get {
- return this.apiEndpoint;
- }
- }
-
- ///
- /// Gets or sets the coordinates. Array of LatLng points along route,
- /// between 2 and 25 elements in length.
- ///
- public Vector2d[] Coordinates {
- get {
- return this.coordinates;
- }
-
- set {
- if (value.Length < 2 || value.Length > 25)
- {
- throw new Exception("Must be between 2 and 25 elements in coordinates array.");
- }
-
- this.coordinates = value;
- }
- }
-
- ///
- /// Gets or sets the routing profile, for all profile options.
- ///
- public RoutingProfile RoutingProfile {
- get {
- return this.profile;
- }
-
- set {
- this.profile = value;
- }
- }
-
- ///
- /// Gets or sets the alternative option. Controls whether direction request should
- /// return alternative routes.
- ///
- public bool? Alternatives {
- get {
- return this.alternatives;
- }
-
- set {
- this.alternatives = value;
- }
- }
-
- ///
- /// Gets or sets the bearing option. An array of bearing filters. Each filter is composed of
- /// a bearing as decimal degrees clockwise between 0 and 360, and a range of variation from
- /// the bearing as decimal degrees between 0 and 180.
- ///
- public BearingFilter[] Bearings {
- get {
- return this.bearings;
- }
-
- set {
- if (value != null && value.Length != this.coordinates.Length)
- {
- throw new Exception("There must be as many bearings as there are coordinates in the request.");
- }
-
- this.bearings = value;
- }
- }
-
- ///
- /// Gets or sets the continue_straight option. Controls whether to route will
- /// continue in same direction of travel or if route may continue in opposite
- /// direction of travel at intermediate waypoints.
- ///
- public bool? ContinueStraight {
- get {
- return this.continueStraight;
- }
-
- set {
- this.continueStraight = value;
- }
- }
-
- ///
- /// Gets or sets the overview option. See for all overview options.
- ///
- public Overview Overview {
- get {
- return this.overview;
- }
-
- set {
- this.overview = value;
- }
- }
-
- ///
- /// Gets or sets the radiuses option. Controls maximum distance in meters that
- /// each coordinate is allowed to move when snapped to a nearby road segment.
- ///
- public double[] Radiuses {
- get {
- return this.radiuses;
- }
-
- set {
- if (value != null)
- {
- if (value.Length != this.coordinates.Length)
- {
- throw new Exception("There must be as many radiuses as there are coordinates in the request.");
- }
-
- for (int i = 0; i < value.Length; i++)
- {
- if (value[i] <= 0)
- {
- throw new Exception("Radius must be greater than 0");
- }
- }
- }
-
- this.radiuses = value;
- }
- }
-
- /// Gets or sets the steps option. Controls whether to return steps and turn-by-turn instructions.
- public bool? Steps {
- get {
- return this.steps;
- }
-
- set {
- this.steps = value;
- }
- }
-
- ///
- /// Gets the URL string.
- ///
- /// The URL string.
- public override string GetUrl()
- {
- Dictionary opts = new Dictionary();
-
- if (this.Alternatives != null)
- {
- opts.Add("alternatives", this.Alternatives.ToString().ToLower());
- }
-
- if (this.Bearings != null)
- {
- opts.Add("bearings", GetUrlQueryFromArray(this.Bearings, ";"));
- }
-
- if (this.ContinueStraight != null)
- {
- opts.Add("continue_straight", this.ContinueStraight.ToString().ToLower());
- }
-
- if (this.Overview != null)
- {
- opts.Add("overview", this.Overview.ToString());
- }
-
- if (this.Radiuses != null)
- {
- opts.Add("radiuses", GetUrlQueryFromArray(this.Radiuses));
- }
-
- if (this.Steps != null)
- {
- opts.Add("steps", this.Steps.ToString().ToLower());
- }
-
- return Constants.BaseAPI +
- this.ApiEndpoint +
- this.RoutingProfile +
- GetUrlQueryFromArray(this.Coordinates, ";") +
- ".json" +
- EncodeQueryString(opts);
- }
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/DirectionResource.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/DirectionResource.cs.meta
deleted file mode 100644
index 5b13be910..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/DirectionResource.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 78ecfcb30aefc4289b8d2a83619a2d89
-timeCreated: 1493218361
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Directions.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Directions.cs
deleted file mode 100644
index 0906539e2..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Directions.cs
+++ /dev/null
@@ -1,69 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.Directions
-{
- using System;
- using System.Text;
- using Mapbox.Json;
- using Mapbox.Platform;
- using Mapbox.Utils.JsonConverters;
-
- ///
- /// Wrapper around the
- /// Mapbox Directions API. The Mapbox Directions API will show you how to get where
- /// you're going.
- ///
- public sealed class Directions
- {
- private readonly IFileSource fileSource;
-
- /// Initializes a new instance of the class.
- /// Network access abstraction.
- public Directions(IFileSource fileSource)
- {
- this.fileSource = fileSource;
- }
-
- /// Performs asynchronously a directions lookup.
- /// Direction resource.
- /// Callback to be called after the request is completed.
- ///
- /// Returns a that can be used for canceling a pending
- /// request. This handle can be completely ignored if there is no intention of ever
- /// canceling the request.
- ///
- public IAsyncRequest Query(DirectionResource direction, Action callback)
- {
- return this.fileSource.Request(
- direction.GetUrl(),
- (Response response) =>
- {
- var str = Encoding.UTF8.GetString(response.Data);
-
- var data = Deserialize(str);
-
- callback(data);
- });
- }
-
- ///
- /// Deserialize the geocode response string into a .
- ///
- /// JSON String.
- /// A .
- public DirectionsResponse Deserialize(string str)
- {
- return JsonConvert.DeserializeObject(str, JsonConverters.Converters);
- }
-
- public string Serialize(DirectionsResponse response)
- {
- return JsonConvert.SerializeObject(response, JsonConverters.Converters);
- }
-
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Directions.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Directions.cs.meta
deleted file mode 100644
index 1f1a8d8a3..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Directions.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: a4fc862e3db034a0b8591a58cd15afdc
-timeCreated: 1491243034
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Overview.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Overview.cs
deleted file mode 100644
index d8367888d..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Overview.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.Directions
-{
- ///
- /// Type of returned overview geometry. Can be full (the most detailed geometry available),
- /// simplified (a simplified version of the full geometry), or false (no overview geometry).
- ///
- public sealed class Overview
- {
- /// Use the most detailed geometry available.
- public static readonly Overview Full = new Overview("full");
-
- /// Use simplified geometry. This is the default value.
- public static readonly Overview Simplified = new Overview("simplified");
-
- /// Use no overview geometry.
- public static readonly Overview False = new Overview("false");
-
- private readonly string overview;
-
- private Overview(string overview)
- {
- this.overview = overview;
- }
-
- /// Converts the overview type to a string.
- /// A string to use as an optional value in the direction query URL.
- public override string ToString()
- {
- return this.overview;
- }
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Overview.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Overview.cs.meta
deleted file mode 100644
index e087bb72b..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Overview.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 794258e75ed8d4cee96d4b5ba225cfc8
-timeCreated: 1491243034
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response.meta
deleted file mode 100644
index 1ef48ec4a..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 41da431a6ab1548a29eecc30eebabe26
-folderAsset: yes
-timeCreated: 1491243031
-licenseType: Pro
-DefaultImporter:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Annotation.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Annotation.cs
deleted file mode 100644
index 139c8a73f..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Annotation.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.Directions
-{
- using System.Collections.Generic;
- using Mapbox.Json;
-
- ///
- /// An annotations object contains additional details about each line segment along the route geometry.
- /// Each entry in an annotations field corresponds to a coordinate along the route geometry.
- ///
- public class Annotation
- {
-
-
- [JsonProperty("distance")]
- public double[] Distance { get; set; }
-
-
- [JsonProperty("duration")]
- public double[] Duration { get; set; }
-
-
- [JsonProperty("speed")]
- public string[] Speed { get; set; }
-
-
- [JsonProperty("congestion")]
- public string[] Congestion { get; set; }
-
-
-
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Annotation.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Annotation.cs.meta
deleted file mode 100644
index 85ed38a16..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Annotation.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 204896b65f98440449415ca9b9c1d643
-timeCreated: 1508343130
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/DirectionsResponse.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/DirectionsResponse.cs
deleted file mode 100644
index 704382593..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/DirectionsResponse.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.Directions {
- using System;
- using System.Collections.Generic;
- using Mapbox.Json;
-
- ///
- /// Directions response.
- ///
-#if !WINDOWS_UWP
- // http://stackoverflow.com/a/12903628
- [Serializable]
-#endif
- public class DirectionsResponse {
- ///
- /// Gets or sets the routes.
- ///
- /// The routes.
- [JsonProperty("routes")]
- public List Routes { get; set; }
-
- ///
- /// Gets or sets the waypoints.
- ///
- /// The waypoints.
- [JsonProperty("waypoints")]
- public List Waypoints { get; set; }
-
- ///
- /// Gets or sets the code.
- ///
- /// The code.
- [JsonProperty("code")]
- public string Code { get; set; }
- }
-}
\ No newline at end of file
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/DirectionsResponse.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/DirectionsResponse.cs.meta
deleted file mode 100644
index 61d74badb..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/DirectionsResponse.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: f69de6bfcf63e4d2ab766574bca2caf6
-timeCreated: 1491243035
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Intersection.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Intersection.cs
deleted file mode 100644
index a533a8d39..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Intersection.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.Directions
-{
- using System.Collections.Generic;
- using Mapbox.Json;
- using Mapbox.Utils;
- using Mapbox.Utils.JsonConverters;
-
- ///
- /// An Intersection from a Directions API call.
- ///
- public class Intersection
- {
- ///
- /// Gets or sets the out.
- ///
- /// The out.
- [JsonProperty("out", Order = 0)]
- public int Out { get; set; }
-
- ///
- /// Gets or sets the entry.
- ///
- /// The entry.
- [JsonProperty("entry", Order = 1)]
- public List Entry { get; set; }
-
- ///
- /// Gets or sets the bearings.
- ///
- /// The bearings.
- [JsonProperty("bearings", Order = 2)]
- public List Bearings { get; set; }
-
- ///
- /// Gets or sets the location.
- ///
- /// The location.
- [JsonProperty("location", Order = 3)]
- [JsonConverter(typeof(LonLatToVector2dConverter))]
- public Vector2d Location { get; set; }
-
- ///
- /// Gets or sets the in.
- ///
- /// The in.
- [JsonProperty("in", Order = 4, NullValueHandling = NullValueHandling.Ignore)]
- public int? In { get; set; }
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Intersection.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Intersection.cs.meta
deleted file mode 100644
index 7c9b26cf3..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Intersection.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 38b89d19d5fc44375966036ad1331f3d
-timeCreated: 1493218361
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Leg.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Leg.cs
deleted file mode 100644
index aebeab8d3..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Leg.cs
+++ /dev/null
@@ -1,58 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.Directions
-{
- using System.Collections.Generic;
- using Mapbox.Json;
-
-
- ///
- /// A Leg from a Directions API call.
- ///
- public class Leg
- {
-
-
- ///
- /// Depending on the steps parameter, either an Array of RouteStep objects (true, default) or an empty array (false)
- ///
- /// The steps.
- [JsonProperty("steps")]
- public List Steps { get; set; }
-
-
- ///
- /// Depending on the summary parameter, either a String summarizing the route (true, default) or an empty String (false).
- ///
- /// The summary.
- [JsonProperty("summary")]
- public string Summary { get; set; }
-
-
- ///
- /// Number indicating the estimated travel time in seconds.
- ///
- [JsonProperty("duration")]
- public double Duration { get; set; }
-
-
- ///
- /// Number indicating the distance traveled in meters.
- ///
- [JsonProperty("distance")]
- public double Distance { get; set; }
-
-
- ///
- /// An annotations object that contains additional details about each line segment along the route geometry. Each entry in an annotations field corresponds to a coordinate along the route geometry.
- ///
- [JsonProperty("annotation")]
- public Annotation Annotation { get; set; }
-
-
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Leg.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Leg.cs.meta
deleted file mode 100644
index c63fac23d..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Leg.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 7847e2706c04347a19461bd848b5e1bd
-timeCreated: 1491243034
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Maneuver.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Maneuver.cs
deleted file mode 100644
index 1cf756d6d..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Maneuver.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.Directions
-{
- using Mapbox.Json;
- using Mapbox.Utils;
-
- ///
- /// A Maneuver from a directions API call.
- ///
- public class Maneuver
- {
- ///
- /// Gets or sets the bearing after.
- ///
- /// The bearing after.
- [JsonProperty("bearing_after")]
- public int BearingAfter { get; set; }
-
- ///
- /// Gets or sets the type.
- ///
- /// The type.
- [JsonProperty("type")]
- public string Type { get; set; }
-
- ///
- /// Gets or sets the modifier.
- ///
- /// The modifier.
- [JsonProperty("modifier")]
- public string Modifier { get; set; }
-
- ///
- /// Gets or sets the bearing before.
- ///
- /// The bearing before.
- [JsonProperty("bearing_before")]
- public int BearingBefore { get; set; }
-
- ///
- /// Gets or sets the location.
- ///
- /// The location.
- [JsonProperty("Location")]
- public Vector2d Location { get; set; }
-
- ///
- /// Gets or sets the instruction.
- ///
- /// The instruction.
- [JsonProperty("instruction")]
- public string Instruction { get; set; }
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Maneuver.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Maneuver.cs.meta
deleted file mode 100644
index fb0333013..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Maneuver.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 41f778a9c28ef4b17ace4d80f89dbc7a
-timeCreated: 1493218361
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Route.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Route.cs
deleted file mode 100644
index 7b5366980..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Route.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.Directions
-{
- using System.Collections.Generic;
- using Mapbox.Json;
- using Mapbox.Utils;
- using Mapbox.Utils.JsonConverters;
-
- ///
- /// A Route from a Directions API call.
- ///
- public class Route
- {
- ///
- /// Gets or sets the legs.
- ///
- /// The legs.
- [JsonProperty("legs")]
- public List Legs { get; set; }
-
- ///
- /// Gets or sets the geometry. Polyline is an array of LatLng's.
- ///
- /// The geometry.
- [JsonProperty("geometry")]
- [JsonConverter(typeof(PolylineToVector2dListConverter))]
- public List Geometry { get; set; }
-
- ///
- /// Gets or sets the duration.
- ///
- /// The duration.
- [JsonProperty("duration")]
- public double Duration { get; set; }
-
- ///
- /// Gets or sets the distance.
- ///
- /// The distance.
- [JsonProperty("distance")]
- public double Distance { get; set; }
-
- ///
- /// Float indicating the weight in units described by 'weight_name'.
- ///
- [JsonProperty("weight")]
- public float Weight { get; set; }
-
- ///
- /// String indicating which weight was used. The default is routability which is duration based, with additional penalties for less desirable maneuvers.
- ///
- [JsonProperty("weight_name")]
- public string WeightName { get; set; }
-
- }
-}
\ No newline at end of file
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Route.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Route.cs.meta
deleted file mode 100644
index df9799c5d..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Route.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 67e17dbf44b85417d90ee1b71d9749f3
-timeCreated: 1493218361
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Step.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Step.cs
deleted file mode 100644
index a928e17f1..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Step.cs
+++ /dev/null
@@ -1,69 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.Directions
-{
- using System.Collections.Generic;
- using Mapbox.Json;
- using Mapbox.Utils;
- using Mapbox.Utils.JsonConverters;
-
- ///
- /// A step from a Directions API call.
- ///
- public class Step
- {
- ///
- /// Gets or sets the intersections.
- ///
- /// The intersections.
- [JsonProperty("intersections")]
- public List Intersections { get; set; }
-
- ///
- /// Gets or sets the geometry.
- ///
- /// The geometry.
- [JsonProperty("geometry")]
- [JsonConverter(typeof(PolylineToVector2dListConverter))]
- public List Geometry { get; set; }
-
- ///
- /// Gets or sets the maneuver.
- ///
- /// The maneuver.
- [JsonProperty("maneuver")]
- public Maneuver Maneuver { get; set; }
-
- ///
- /// Gets or sets the duration.
- ///
- /// The duration.
- [JsonProperty("duration")]
- public double Duration { get; set; }
-
- ///
- /// Gets or sets the distance.
- ///
- /// The distance.
- [JsonProperty("distance")]
- public double Distance { get; set; }
-
- ///
- /// Gets or sets the name.
- ///
- /// The name.
- [JsonProperty("name")]
- public string Name { get; set; }
-
- ///
- /// Gets or sets the mode.
- ///
- /// The mode.
- [JsonProperty("mode")]
- public string Mode { get; set; }
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Step.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Step.cs.meta
deleted file mode 100644
index cdb7ec8f7..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Step.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: cb67b81b6de1f41fca077297633b5a7d
-timeCreated: 1493218361
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Waypoint.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Waypoint.cs
deleted file mode 100644
index a0cd87ef1..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Waypoint.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.Directions
-{
- using Mapbox.Json;
- using Mapbox.Utils;
- using Mapbox.Utils.JsonConverters;
-
- ///
- /// A Waypoint from a Directions API call.
- ///
- public class Waypoint
- {
- ///
- /// Gets or sets the name.
- ///
- /// The name.
- [JsonProperty("name")]
- public string Name { get; set; }
-
- ///
- /// Gets or sets the location.
- ///
- /// The location.
- [JsonProperty("location")]
- [JsonConverter(typeof(LonLatToVector2dConverter))]
- public Vector2d Location { get; set; }
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Waypoint.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Waypoint.cs.meta
deleted file mode 100644
index c6b395dcd..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/Response/Waypoint.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 813ff4647909949fdbd67f232221cab3
-timeCreated: 1493218361
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/RoutingProfile.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/RoutingProfile.cs
deleted file mode 100644
index e9280bc71..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/RoutingProfile.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.Directions
-{
- ///
- /// Routing profile, affects how the route is calculated, prioritizing routes that fit
- /// the profile the best.
- ///
- public sealed class RoutingProfile
- {
- /// The driving profile.
- public static readonly RoutingProfile Driving = new RoutingProfile("mapbox/driving/");
-
- /// The walking profile.
- public static readonly RoutingProfile Walking = new RoutingProfile("mapbox/walking/");
-
- /// The cycling profile.
- public static readonly RoutingProfile Cycling = new RoutingProfile("mapbox/cycling/");
-
- private readonly string profile;
-
- private RoutingProfile(string profile)
- {
- this.profile = profile;
- }
-
- /// Converts the profile to a URL snippet.
- /// A string to be appened to the direction query URL.
- public override string ToString()
- {
- return this.profile;
- }
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/RoutingProfile.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/RoutingProfile.cs.meta
deleted file mode 100644
index 76ea7ba86..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Directions/RoutingProfile.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 02efec76b920540358fd490e1c105268
-timeCreated: 1491243033
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding.meta
deleted file mode 100644
index 54d218ad1..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: d1dc4d11759e044eabaa4d5496a96275
-folderAsset: yes
-timeCreated: 1491243031
-licenseType: Pro
-DefaultImporter:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/ForwardGeocodeResource.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/ForwardGeocodeResource.cs
deleted file mode 100644
index 300425c28..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/ForwardGeocodeResource.cs
+++ /dev/null
@@ -1,206 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.Geocoding
-{
- using System;
- using System.Collections.Generic;
- using Mapbox.Utils;
- using UnityEngine;
-
- /// A forward geocode request.
- public sealed class ForwardGeocodeResource : GeocodeResource
- {
- ///
- /// ISO 3166-1 alpha-2 country codes.
- /// See for all options.
- ///
- private static readonly List CountryCodes = new List()
- {
- "ad", "ae", "af", "ag", "ai", "al", "am", "ao", "aq", "ar", "as", "at", "au", "aw", "ax", "az", "ba", "bb", "bd", "be", "bf", "bg", "bh", "bi", "bj", "bl", "bm", "bn", "bo", "bq", "br", "bs", "bt", "bv", "bw", "by", "bz", "ca", "cc", "cd", "cf", "cg", "ch", "ci", "ck", "cl", "cm", "cn", "co", "cr", "cu", "cv", "cw", "cx", "cy", "cz", "de", "dj", "dk", "dm", "do", "dz", "ec", "ee", "eg", "eh", "er", "es", "et", "fi", "fj", "fk", "fm", "fo", "fr", "ga", "gb", "gd", "ge", "gf", "gg", "gh", "gi", "gl", "gm", "gn", "gp", "gq", "gr", "gs", "gt", "gu", "gw", "gy", "hk", "hm", "hn", "hr", "ht", "hu", "id", "ie", "il", "im", "in", "io", "iq", "ir", "is", "it", "je", "jm", "jo", "jp", "ke", "kg", "kh", "ki", "km", "kn", "kp", "kr", "kw", "ky", "kz", "la", "lb", "lc", "li", "lk", "lr", "ls", "lt", "lu", "lv", "ly", "ma", "mc", "md", "me", "mf", "mg", "mh", "mk", "ml", "mm", "mn", "mo", "mp", "mq", "mr", "ms", "mt", "mu", "mv", "mw", "mx", "my", "mz", "na", "nc", "ne", "nf", "ng", "ni", "nl", "no", "np", "nr", "nu", "nz", "om", "pa", "pe", "pf", "pg", "ph", "pk", "pl", "pm", "pn", "pr", "ps", "pt", "pw", "py", "qa", "re", "ro", "rs", "ru", "rw", "sa", "sb", "sc", "sd", "se", "sg", "sh", "si", "sj", "sk", "sl", "sm", "sn", "so", "sr", "ss", "st", "sv", "sx", "sy", "sz", "tc", "td", "tf", "tg", "th", "tj", "tk", "tl", "tm", "tn", "to", "tr", "tt", "tv", "tw", "tz", "ua", "ug", "um", "us", "uy", "uz", "va", "vc", "ve", "vg", "vi", "vn", "vu", "wf", "ws", "ye", "yt", "za", "zm", "zw"
- };
-
- // Required
- private string query;
-
- // Optional
- private bool? autocomplete;
-
- // Optional
- private string[] country;
-
- // Optional
- private Vector2d? proximity;
-
- // Optional
- private Vector2dBounds? bbox;
-
- /// Initializes a new instance of the class.
- /// Place name for forward geocoding.
- public ForwardGeocodeResource(string query)
- {
- this.Query = query;
- }
-
- /// Gets or sets the place name for forward geocoding.
- public override string Query
- {
- get
- {
- return this.query;
- }
-
- set
- {
- this.query = value;
- }
- }
-
- /// Gets or sets the autocomplete option.
- public bool? Autocomplete
- {
- get
- {
- return this.autocomplete;
- }
-
- set
- {
- this.autocomplete = value;
- }
- }
-
- ///
- /// Gets or sets the bounding box option. Bounding box is a rectangle within which to
- /// limit results, given as .
- ///
- public Vector2dBounds? Bbox
- {
- get
- {
- return this.bbox;
- }
-
- set
- {
- this.bbox = value;
- }
- }
-
- ///
- /// Gets or sets the country option. Country is an Array of ISO 3166 alpha 2 country codes.
- /// For all possible values, .
- ///
- public string[] Country
- {
- get
- {
- return this.country;
- }
-
- set
- {
- if (value == null)
- {
- this.country = value;
- return;
- }
-
- for (int i = 0; i < value.Length; i++)
- {
- // Validate that provided countries exist
- if (!CountryCodes.Contains(value[i]))
- {
- throw new Exception("Invalid country shortcode. See https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2.");
- }
- }
-
- this.country = value;
- }
- }
-
- ///
- /// Gets or sets the proximity option, which is a location around which to bias results,
- /// given as .
- ///
- public Vector2d? Proximity
- {
- get
- {
- return this.proximity;
- }
-
- set
- {
- this.proximity = value;
- }
- }
-
- /// Builds a forward geocode URL string.
- /// A complete, valid forward geocode URL.
- public override string GetUrl()
- {
- Dictionary opts = new Dictionary();
-
- if (this.Autocomplete != null)
- {
- opts.Add("autocomplete", this.Autocomplete.ToString().ToLower());
- }
-
- if (this.Bbox != null)
- {
- var nonNullableBbox = (Vector2dBounds)this.Bbox;
- opts.Add("bbox", nonNullableBbox.ToString());
- }
-
- if (this.Country != null)
- {
- opts.Add("country", ForwardGeocodeResource.GetUrlQueryFromArray(this.Country));
- }
-
- if (this.Proximity != null)
- {
- var nonNullableProx = (Vector2d)this.Proximity;
- opts.Add("proximity", nonNullableProx.ToString());
- }
-
- if (this.Types != null)
- {
- opts.Add("types", GetUrlQueryFromArray(this.Types));
- }
-
- // !!!!!!!!!! HACK !!!!!!!
- // we are seeing super weird behaviour on some iOS devices:
- // crashes with properly escaped whitespaces %20 and commas %2C - and other special characters
- // 'NSAllowsArbitraryLoads' and 'NSURLConnection finished with error - code - 1002'
- // Use 'CFNETWORK_DIAGNOSTICS=1' in XCode to get more details https://stackoverflow.com/a/46748461
-
- // trying to get rid of at least the most common characters - other will still crash
-#if UNITY_IOS
- Query = Query
- .Replace(",", " ")
- .Replace(".", " ")
- .Replace("-", " ");
-#endif
-
- return
- Constants.BaseAPI +
- ApiEndpoint +
- Mode +
-#if UNITY_IOS
-#if UNITY_2017_1_OR_NEWER
- UnityEngine.Networking.UnityWebRequest.EscapeURL(Query) +
-#else
- WWW.EscapeURL(Query) +
-#endif
-#else
- Uri.EscapeDataString(Query) +
-#endif
- ".json" +
- EncodeQueryString(opts);
- }
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/ForwardGeocodeResource.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/ForwardGeocodeResource.cs.meta
deleted file mode 100644
index 527f7c62d..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/ForwardGeocodeResource.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 33cb5b2bc4f6f4397a21fdd87dfa0048
-timeCreated: 1493833265
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/GeocodeResource.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/GeocodeResource.cs
deleted file mode 100644
index d800aaf93..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/GeocodeResource.cs
+++ /dev/null
@@ -1,73 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.Geocoding
-{
- using System;
- using System.Collections.Generic;
- using Mapbox.Platform;
-
- /// Base geocode class.
- /// Type of Query field (either string or LatLng).
- public abstract class GeocodeResource : Resource
- {
- /// A List of all possible geocoding feature types.
- public static readonly List FeatureTypes = new List
- {
- "country", "region", "postcode", "place", "locality", "neighborhood", "address", "poi"
- };
-
- private readonly string apiEndpoint = "geocoding/v5/";
-
- private readonly string mode = "mapbox.places/";
-
- // Optional
- private string[] types;
-
- /// Gets or sets the query.
- public abstract T Query { get; set; }
-
- /// Gets the API endpoint as a partial URL path.
- public override string ApiEndpoint {
- get {
- return this.apiEndpoint;
- }
- }
-
- /// Gets the mode.
- public string Mode {
- get {
- return this.mode;
- }
- }
-
- /// Gets or sets which feature types to return results for.
- public string[] Types {
- get {
- return this.types;
- }
-
- set {
- if (value == null)
- {
- this.types = value;
- return;
- }
-
- for (int i = 0; i < value.Length; i++)
- {
- // Validate provided types
- if (!FeatureTypes.Contains(value[i]))
- {
- throw new Exception("Invalid type. Must be \"country\", \"region\", \"postcode\", \"place\", \"locality\", \"neighborhood\", \"address\", or \"poi\".");
- }
- }
-
- this.types = value;
- }
- }
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/GeocodeResource.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/GeocodeResource.cs.meta
deleted file mode 100644
index f735cd3cf..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/GeocodeResource.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: aba88323b8d91474fb3b991eb0bd9349
-timeCreated: 1491243034
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/Geocoder.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/Geocoder.cs
deleted file mode 100644
index 893d47848..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/Geocoder.cs
+++ /dev/null
@@ -1,87 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.Geocoding
-{
- using System;
- using System.Text;
- using Mapbox.Json;
- using Mapbox.Platform;
- using Mapbox.Utils.JsonConverters;
-
- ///
- /// Wrapper around the
- /// Mapbox Geocoding API. The Geocoder does two things: geocoding and reverse geocoding.
- ///
- public sealed class Geocoder
- {
- private readonly IFileSource fileSource;
-
- /// Initializes a new instance of the class.
- /// Network access abstraction.
- public Geocoder(IFileSource fileSource)
- {
- this.fileSource = fileSource;
- }
-
- /// Performs asynchronously a geocoding lookup.
- /// Geocode resource.
- /// Callback to be called after the request is completed.
- /// String or LngLat. Should be automatically inferred.
- ///
- /// Returns a that can be used for canceling a pending
- /// request. This handle can be completely ignored if there is no intention of ever
- /// canceling the request.
- ///
- public IAsyncRequest Geocode(GeocodeResource geocode, Action callback)
- {
- return this.fileSource.Request(
- geocode.GetUrl(),
- (Response response) =>
- {
- var str = Encoding.UTF8.GetString(response.Data);
-
- var data = Deserialize(str);
-
- callback(data);
- });
- }
-
- /// Performs asynchronously a geocoding lookup.
- /// Geocode resource.
- /// Callback to be called after the request is completed.
- /// String or LngLat. Should be automatically inferred.
- ///
- /// Returns a that can be used for canceling a pending
- /// request. This handle can be completely ignored if there is no intention of ever
- /// canceling the request.
- ///
- public IAsyncRequest Geocode(GeocodeResource geocode, Action callback)
- {
- return this.fileSource.Request(
- geocode.GetUrl(),
- (Response response) =>
- {
- var str = Encoding.UTF8.GetString(response.Data);
-
- var data = Deserialize(str);
-
- callback(data);
- });
- }
-
- ///
- /// Deserialize the geocode response string into a .
- ///
- /// JSON String.
- /// A .
- /// Forward or reverse geocode.
- public T Deserialize(string str)
- {
- return JsonConvert.DeserializeObject(str, JsonConverters.Converters);
- }
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/Geocoder.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/Geocoder.cs.meta
deleted file mode 100644
index 6c6b64c0e..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/Geocoder.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: d304b174589dd496993060116409b23c
-timeCreated: 1491336250
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/Response.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/Response.meta
deleted file mode 100644
index d9c5e71c0..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/Response.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 5ef566ef707b848c4bac9b1f13fccf17
-folderAsset: yes
-timeCreated: 1491243031
-licenseType: Pro
-DefaultImporter:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/Response/Feature.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/Response/Feature.cs
deleted file mode 100644
index c215539d2..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/Response/Feature.cs
+++ /dev/null
@@ -1,96 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.Geocoding {
- using System;
- using System.Collections.Generic;
- using Mapbox.Json;
- using Mapbox.Utils;
- using Mapbox.Utils.JsonConverters;
-
- /// A GeoJSON FeatureCollection of points returned by geocoding API.
-#if !WINDOWS_UWP
- //http://stackoverflow.com/a/12903628
- [Serializable]
-#endif
- public class Feature {
- /// Gets or sets the id. Ids are unique in the Mapbox geocoder.
- /// The id.
- [JsonProperty("id")]
- public string Id { get; set; }
-
- ///
- /// Gets or sets feature type. One of country, region, postcode, place, locality, neighborhood, address, poi.
- ///
- /// The type.
- [JsonProperty("type")]
- public string Type { get; set; }
-
- ///
- /// Gets or sets the text.
- ///
- /// The text.
- [JsonProperty("text")]
- public string Text { get; set; }
-
- ///
- /// Gets or sets the name of the place.
- ///
- /// The name of the place.
- [JsonProperty("place_name")]
- public string PlaceName { get; set; }
-
- ///
- /// Gets or sets the relevance.
- ///
- /// The relevance.
- [JsonProperty("relevance")]
- public double Relevance { get; set; }
-
- ///
- /// Gets or sets the properties.
- ///
- /// The properties.
- [JsonProperty("properties")]
- public Dictionary Properties { get; set; }
-
- ///
- /// Gets or sets the bbox.
- ///
- /// The bbox.
- [JsonProperty("bbox", NullValueHandling = NullValueHandling.Ignore)]
- [JsonConverter(typeof(BboxToVector2dBoundsConverter))]
- public Vector2dBounds? Bbox { get; set; }
-
- ///
- /// Gets or sets the center.
- ///
- /// The center.
- [JsonProperty("center")]
- [JsonConverter(typeof(LonLatToVector2dConverter))]
- public Vector2d Center { get; set; }
-
- ///
- /// Gets or sets the geometry.
- ///
- /// The geometry.
- [JsonProperty("geometry")]
- public Geometry Geometry { get; set; }
-
- ///
- /// Gets or sets the address.
- ///
- [JsonProperty("address", NullValueHandling = NullValueHandling.Ignore)]
- public string Address { get; set; }
-
- ///
- /// Gets or sets the context.
- ///
- /// The context.
- [JsonProperty("context", NullValueHandling = NullValueHandling.Ignore)]
- public List> Context { get; set; }
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/Response/Feature.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/Response/Feature.cs.meta
deleted file mode 100644
index 2c3e1f2b6..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/Response/Feature.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: f0645486f47864cd390751dd94d0302f
-timeCreated: 1493218361
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/Response/GeocodeResponse.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/Response/GeocodeResponse.cs
deleted file mode 100644
index 10a740235..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/Response/GeocodeResponse.cs
+++ /dev/null
@@ -1,71 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.Geocoding {
- using System;
- using System.Collections.Generic;
- using Mapbox.Json;
-
- /// Base geocode response.
-#if !WINDOWS_UWP
- //http://stackoverflow.com/a/12903628
- [Serializable]
-#endif
- public abstract class GeocodeResponse {
- ///
- /// Gets or sets the type.
- ///
- /// The type.
- [JsonProperty("type", Order = 0)]
- public string Type { get; set; }
-
- ///
- /// Gets or sets the features.
- ///
- /// The features.
- [JsonProperty("features", Order = 2)]
- public List Features { get; set; }
-
- ///
- /// Gets or sets the attribution.
- ///
- /// The attribution.
- [JsonProperty("attribution", Order = 3)]
- public string Attribution { get; set; }
- }
-
- ///
- /// Reverse Geocode response.
- ///
-#if !WINDOWS_UWP
- //http://stackoverflow.com/a/12903628
- [Serializable]
-#endif
- public class ReverseGeocodeResponse : GeocodeResponse {
- ///
- /// Gets or sets the query.
- ///
- /// The query.
- [JsonProperty("query", Order = 1)]
- public List Query { get; set; }
- }
-
- ///
- /// Forward geocode response.
- ///
-#if !WINDOWS_UWP
- //http://stackoverflow.com/a/12903628
- [Serializable]
-#endif
- public class ForwardGeocodeResponse : GeocodeResponse {
- ///
- /// Gets or sets the query.
- ///
- /// The query.
- [JsonProperty("query", Order = 1)]
- public List Query { get; set; }
- }
-}
\ No newline at end of file
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/Response/GeocodeResponse.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/Response/GeocodeResponse.cs.meta
deleted file mode 100644
index 05bcd4952..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/Response/GeocodeResponse.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: f1cccf508c40144308be9518f5085a69
-timeCreated: 1491243035
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/Response/Geometry.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/Response/Geometry.cs
deleted file mode 100644
index a22397eae..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/Response/Geometry.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.Geocoding {
- using System;
- using Mapbox.Json;
- using Mapbox.Utils;
- using Mapbox.Utils.JsonConverters;
-
- /// Point geometry representing location of geocode result.
-#if !WINDOWS_UWP
- //http://stackoverflow.com/a/12903628
- [Serializable]
-#endif
- public class Geometry {
- ///
- /// Gets or sets type. Geocode results will always be type: point.
- ///
- /// The GeoJSON geometry type.
- [JsonProperty("type")]
- public string Type { get; set; }
-
- ///
- /// Gets or sets coordinates. Because they are points, Geocode results will always be a single Geocoordinate.
- ///
- /// The coordinates.
- [JsonConverter(typeof(LonLatToVector2dConverter))]
- [JsonProperty("coordinates")]
- public Vector2d Coordinates { get; set; }
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/Response/Geometry.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/Response/Geometry.cs.meta
deleted file mode 100644
index 158cea7fb..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/Response/Geometry.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: b599e78a14b3d42c8822cec5d5775397
-timeCreated: 1493218361
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/ReverseGeocodeResource.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/ReverseGeocodeResource.cs
deleted file mode 100644
index 8d60464f1..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/ReverseGeocodeResource.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.Geocoding
-{
- using System.Collections.Generic;
- using Mapbox.Utils;
-
- /// A reverse geocode request.
- public sealed class ReverseGeocodeResource : GeocodeResource
- {
- // Required
- private Vector2d query;
-
- /// Initializes a new instance of the class.
- /// Location to reverse geocode.
- public ReverseGeocodeResource(Vector2d query)
- {
- this.Query = query;
- }
-
- /// Gets or sets the location.
- public override Vector2d Query {
- get {
- return this.query;
- }
-
- set {
- this.query = value;
- }
- }
-
- /// Builds a complete reverse geocode URL string.
- /// A complete, valid reverse geocode URL string.
- public override string GetUrl()
- {
- Dictionary opts = new Dictionary();
-
- if (this.Types != null)
- {
- opts.Add("types", GetUrlQueryFromArray(this.Types));
- }
-
- return Constants.BaseAPI +
- this.ApiEndpoint +
- this.Mode +
- this.Query.ToString() +
- ".json" +
- EncodeQueryString(opts);
- }
- }
-}
\ No newline at end of file
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/ReverseGeocodeResource.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/ReverseGeocodeResource.cs.meta
deleted file mode 100644
index e77ee515d..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Geocoding/ReverseGeocodeResource.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 23c6d0bd3662648d3859495c35635b64
-timeCreated: 1493833265
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Map.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Map.meta
deleted file mode 100644
index 5043e9f55..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Map.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 67003c49d480847189c0d8e81c14da83
-folderAsset: yes
-timeCreated: 1491243031
-licenseType: Pro
-DefaultImporter:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/CanonicalTileId.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Map/CanonicalTileId.cs
deleted file mode 100644
index 20f1f2590..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/CanonicalTileId.cs
+++ /dev/null
@@ -1,117 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.Map
-{
- using System;
- using Mapbox.Utils;
-
- ///
- /// Data type to store Web Mercator tile scheme.
- /// See tile IDs in action.
- ///
- public struct CanonicalTileId : IEquatable
- {
- /// The zoom level.
- public readonly int Z;
-
- /// The X coordinate in the tile grid.
- public readonly int X;
-
- /// The Y coordinate in the tile grid.
- public readonly int Y;
-
- ///
- /// Initializes a new instance of the struct,
- /// representing a tile coordinate in a slippy map.
- ///
- /// The z coordinate or the zoom level.
- /// The x coordinate.
- /// The y coordinate.
- public CanonicalTileId(int z, int x, int y)
- {
- this.Z = z;
- this.X = x;
- this.Y = y;
- }
-
- internal CanonicalTileId(UnwrappedTileId unwrapped)
- {
- var z = unwrapped.Z;
- var x = unwrapped.X;
- var y = unwrapped.Y;
-
- var wrap = (x < 0 ? x - (1 << z) + 1 : x) / (1 << z);
-
- this.Z = z;
- this.X = x - wrap * (1 << z);
- this.Y = y < 0 ? 0 : Math.Min(y, (1 << z) - 1);
- }
-
- ///
- /// Get the cordinate at the top left of corner of the tile.
- ///
- /// The coordinate.
- public Vector2d ToVector2d()
- {
- double n = Math.PI - ((2.0 * Math.PI * this.Y) / Math.Pow(2.0, this.Z));
-
- double lat = 180.0 / Math.PI * Math.Atan(Math.Sinh(n));
- double lng = (this.X / Math.Pow(2.0, this.Z) * 360.0) - 180.0;
-
- // FIXME: Super hack because of rounding issues.
- return new Vector2d(lat - 0.0001, lng + 0.0001);
- }
-
- ///
- /// Returns a that represents the current
- /// .
- ///
- ///
- /// A that represents the current
- /// .
- ///
- public override string ToString()
- {
- return this.Z + "/" + this.X + "/" + this.Y;
- }
-
- #region Equality
- public bool Equals(CanonicalTileId other)
- {
- return this.X == other.X && this.Y == other.Y && this.Z == other.Z;
- }
-
- public override int GetHashCode()
- {
- return X ^ Y ^ Z;
- }
-
- public static bool operator ==(CanonicalTileId a, CanonicalTileId b)
- {
- return a.X == b.X && a.Y == b.Y && a.Z == b.Z;
- }
-
- public static bool operator !=(CanonicalTileId a, CanonicalTileId b)
- {
- return !(a == b);
- }
-
- public override bool Equals(object obj)
- {
- if (obj is CanonicalTileId)
- {
- return this.Equals((CanonicalTileId)obj);
- }
- else
- {
- return false;
- }
- }
-
- #endregion
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/CanonicalTileId.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Map/CanonicalTileId.cs.meta
deleted file mode 100644
index 8b00bd220..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/CanonicalTileId.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: b032ac6adcdd94a899ef544e06b9e828
-timeCreated: 1493952209
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/ClassicRasterTile.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Map/ClassicRasterTile.cs
deleted file mode 100644
index ffdf33577..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/ClassicRasterTile.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.Map
-{
- ///
- /// A raster tile from the Mapbox Map API, a encoded image representing a geographic
- /// bounding box. Usually JPEG or PNG encoded.
- /// See for usage.
- /// Read more about static classic maps .
- ///
- public class ClassicRasterTile : RasterTile
- {
- internal override TileResource MakeTileResource(string tilesetId)
- {
- return TileResource.MakeClassicRaster(Id, tilesetId);
- }
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/ClassicRasterTile.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Map/ClassicRasterTile.cs.meta
deleted file mode 100644
index c721171fb..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/ClassicRasterTile.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 26ff02ff702b3417b9d4514af452c64f
-timeCreated: 1494603018
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/ClassicRetinaRasterTile.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Map/ClassicRetinaRasterTile.cs
deleted file mode 100644
index 945ca4e0f..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/ClassicRetinaRasterTile.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.Map
-{
- ///
- /// A retina-resolution raster tile from the Mapbox Map API, a encoded image representing a geographic
- /// bounding box. Usually JPEG or PNG encoded.
- /// Like , but higher resolution.
- /// See retina documentation .
- ///
- public class ClassicRetinaRasterTile : ClassicRasterTile
- {
- internal override TileResource MakeTileResource(string tilesetId)
- {
- return TileResource.MakeClassicRetinaRaster(Id, tilesetId);
- }
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/ClassicRetinaRasterTile.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Map/ClassicRetinaRasterTile.cs.meta
deleted file mode 100644
index 1969c5220..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/ClassicRetinaRasterTile.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 83237273afa4e4a8a9a0600d8c694e38
-timeCreated: 1494603018
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/Map.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Map/Map.cs
deleted file mode 100644
index dbed73cb0..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/Map.cs
+++ /dev/null
@@ -1,236 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.Map
-{
- using System;
- using System.Collections.Generic;
- using Mapbox.Platform;
- using Mapbox.Utils;
-
- ///
- /// The Mapbox Map abstraction will take care of fetching and decoding
- /// data for a geographic bounding box at a certain zoom level.
- ///
- ///
- /// The tile type, currently or
- /// .
- ///
- ///
- /// Request a map of the whole world:
- ///
- /// var map = new Map<RasterTile>(MapboxAccess.Instance);
- /// map.Zoom = 2
- /// map.Vector2dBounds = Vector2dBounds.World();
- /// map.TilesetId = "mapbox://styles/mapbox/streets-v10
- ///
- /// // Register for tile updates.
- /// map.Subscribe(this);
- ///
- /// // Trigger the request.
- /// map.Update();
- ///
- ///
- public sealed class Map : Mapbox.Utils.IObservable where T : Tile, new()
- {
- ///
- /// Arbitrary limit of tiles this class will handle simultaneously.
- ///
- public const int TileMax = 256;
-
- private readonly IFileSource fs;
- private Vector2dBounds latLngBounds;
- private int zoom;
- private string tilesetId;
-
- private HashSet tiles = new HashSet();
- private List> observers = new List>();
-
- ///
- /// Initializes a new instance of the class.
- ///
- /// The data source abstraction.
- public Map(IFileSource fs)
- {
- this.fs = fs;
- this.latLngBounds = new Vector2dBounds();
- this.zoom = 0;
- }
-
- ///
- /// Gets or sets the tileset ID. If not set, it will use the default
- /// tileset ID for the tile type. I.e. "mapbox.satellite" for raster tiles
- /// and "mapbox.mapbox-streets-v7" for vector tiles.
- ///
- ///
- /// The tileset ID, usually in the format "user.mapid". Exceptionally,
- /// will take the full style URL
- /// from where the tile is composited from, like "mapbox://styles/mapbox/streets-v9".
- ///
- public string TilesetId
- {
- get
- {
- return this.tilesetId;
- }
-
- set
- {
- if (this.tilesetId == value)
- {
- return;
- }
-
- this.tilesetId = value;
-
- foreach (Tile tile in this.tiles)
- {
- tile.Cancel();
- }
-
- this.tiles.Clear();
- }
- }
-
- ///
- /// Gets the tiles, vector or raster. Tiles might be
- /// in a incomplete state.
- ///
- /// The tiles.
- public HashSet Tiles
- {
- get
- {
- return this.tiles;
- }
- }
-
- /// Gets or sets a geographic bounding box.
- /// New geographic bounding box.
- public Vector2dBounds Vector2dBounds
- {
- get
- {
- return this.latLngBounds;
- }
-
- set
- {
- this.latLngBounds = value;
- }
- }
-
- /// Gets or sets the central coordinate of the map.
- /// The central coordinate.
- public Vector2d Center
- {
- get
- {
- return this.latLngBounds.Center;
- }
-
- set
- {
- this.latLngBounds.Center = value;
- }
- }
-
- /// Gets or sets the map zoom level.
- /// The new zoom level.
- public int Zoom
- {
- get
- {
- return this.zoom;
- }
-
- set
- {
- this.zoom = Math.Max(0, Math.Min(20, value));
- }
- }
-
- ///
- /// Sets the coordinates bounds and zoom at once.
- ///
- /// Coordinates bounds.
- /// Zoom level.
- public void SetVector2dBoundsZoom(Vector2dBounds bounds, int zoom)
- {
- this.latLngBounds = bounds;
- this.zoom = zoom;
- }
-
- /// Add an to the observer list.
- /// The object subscribing to events.
- public void Subscribe(Mapbox.Utils.IObserver observer)
- {
- this.observers.Add(observer);
- }
-
- /// Remove an to the observer list.
- /// The object unsubscribing to events.
- public void Unsubscribe(Mapbox.Utils.IObserver observer)
- {
- this.observers.Remove(observer);
- }
-
- private void NotifyNext(T next)
- {
- var copy = new List>(this.observers);
-
- foreach (Mapbox.Utils.IObserver observer in copy)
- {
- observer.OnNext(next);
- }
- }
-
- ///
- /// Request tiles after changing map properties.
- ///
- public void Update()
- {
- var cover = TileCover.Get(this.latLngBounds, this.zoom);
-
- if (cover.Count > TileMax)
- {
- return;
- }
-
- // Do not request tiles that we are already requesting
- // but at the same time exclude the ones we don't need
- // anymore, cancelling the network request.
- this.tiles.RemoveWhere((T tile) =>
- {
- if (cover.Remove(tile.Id))
- {
- return false;
- }
- else
- {
- tile.Cancel();
- this.NotifyNext(tile);
-
- return true;
- }
- });
-
- foreach (CanonicalTileId id in cover)
- {
- var tile = new T();
-
- Tile.Parameters param;
- param.Id = id;
- param.TilesetId = this.tilesetId;
- param.Fs = this.fs;
-
- tile.Initialize(param, () => { this.NotifyNext(tile); });
-
- this.tiles.Add(tile);
- }
- }
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/Map.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Map/Map.cs.meta
deleted file mode 100644
index 44379ba01..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/Map.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 24bb3ef727dad4e1385a77beef324ff0
-timeCreated: 1494441866
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/MapUtils.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Map/MapUtils.cs
deleted file mode 100644
index cdfb48d7a..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/MapUtils.cs
+++ /dev/null
@@ -1,58 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.Map
-{
- using System;
- using Mapbox.Utils;
-
- ///
- /// Utilities for working with Map APIs.
- ///
- public static class MapUtils
- {
- ///
- /// Normalizes a static style URL.
- ///
- /// The static style URL.
- /// A url, either a Mapbox URI (mapbox://{username}/{styleid}) or a full url to a map.
- public static string NormalizeStaticStyleURL(string url)
- {
- bool isMapboxUrl = url.StartsWith("mapbox://", StringComparison.Ordinal);
-
- // Support full Mapbox URLs by returning here if a mapbox URL is not detected.
- if (!isMapboxUrl)
- {
- return url;
- }
-
- string[] split = url.Split('/');
- var user = split[3];
- var style = split[4];
- var draft = string.Empty;
-
- if (split.Length > 5)
- {
- draft = "/draft";
- }
-
- return Constants.BaseAPI + "styles/v1/" + user + "/" + style + draft + "/tiles";
- }
-
- ///
- /// Converts a TilesetId to a URL.
- ///
- /// The identifier to URL.
- /// The style id.
- public static string TilesetIdToUrl(string id)
- {
- // TODO: Validate that id is a real id
- const string MapBaseApi = Constants.BaseAPI + "v4/";
-
- return MapBaseApi + id;
- }
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/MapUtils.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Map/MapUtils.cs.meta
deleted file mode 100644
index 7a2249305..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/MapUtils.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: a237cc1b965e34670a7c74ecf2bdbee3
-timeCreated: 1491243034
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/RasterTile.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Map/RasterTile.cs
deleted file mode 100644
index cc9839882..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/RasterTile.cs
+++ /dev/null
@@ -1,69 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.Map
-{
- ///
- /// A raster tile from the Mapbox Style API, an encoded image representing a geographic
- /// bounding box. Usually JPEG or PNG encoded.
- ///
- ///
- /// Making a RasterTile request:
- ///
- /// var parameters = new Tile.Parameters();
- /// parameters.Fs = MapboxAccess.Instance;
- /// parameters.Id = new CanonicalTileId(_zoom, _tileCoorindateX, _tileCoordinateY);
- /// parameters.TilesetId = "mapbox://styles/mapbox/satellite-v9";
- /// var rasterTile = new RasterTile();
- ///
- /// // Make the request.
- /// rasterTile.Initialize(parameters, (Action)(() =>
- /// {
- /// if (!string.IsNullOrEmpty(rasterTile.Error))
- /// {
- /// // Handle the error.
- /// }
- ///
- /// // Consume the .
- /// }));
- ///
- ///
- public class RasterTile : Tile
- {
- private byte[] data;
-
- /// Gets the raster tile raw data.
- /// The raw data, usually an encoded JPEG or PNG.
- ///
- /// Consuming data in Unity to create a Texture2D:
- ///
- /// var texture = new Texture2D(0, 0);
- /// texture.LoadImage(rasterTile.Data);
- /// _sampleMaterial.mainTexture = texture;
- ///
- ///
- public byte[] Data
- {
- get
- {
- return this.data;
- }
- }
-
- internal override TileResource MakeTileResource(string tilesetId)
- {
- return TileResource.MakeRaster(Id, tilesetId);
- }
-
- internal override bool ParseTileData(byte[] data)
- {
- // We do not parse raster tiles as they are
- this.data = data;
-
- return true;
- }
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/RasterTile.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Map/RasterTile.cs.meta
deleted file mode 100644
index f543bd346..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/RasterTile.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 01d65e8417e21498f88939119e4fe3ab
-timeCreated: 1493756686
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/RawPngRasterTile.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Map/RawPngRasterTile.cs
deleted file mode 100644
index b7e8bbe6d..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/RawPngRasterTile.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.Map
-{
- ///
- /// A raster tile containing an encoded RGBA PNG.
- /// Read about global elevation data.
- ///
- ///
- /// Print the real world height, in meters, for each pixel:
- ///
- /// var texture = new Texture2D(0, 0);
- /// texture.LoadImage(tile.Data);
- /// for (int i = 0; i < texture.width; i++)
- /// {
- /// for (int j = 0; j < texture.height; j++)
- /// {
- /// var color = texture.GetPixel(i, j);
- /// var height = Conversions.GetAbsoluteHeightFromColor(color);
- /// Console.Write("Height: " + height);
- /// }
- /// }
- ///
- ///
- public sealed class RawPngRasterTile : RasterTile
- {
- internal override TileResource MakeTileResource(string tilesetId)
- {
- return TileResource.MakeRawPngRaster(Id, tilesetId);
- }
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/RawPngRasterTile.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Map/RawPngRasterTile.cs.meta
deleted file mode 100644
index c820bc5b5..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/RawPngRasterTile.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: ab4a5e34c15df42b3b4d5bf5c9b6b9b1
-timeCreated: 1493952209
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/RetinaRasterTile.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Map/RetinaRasterTile.cs
deleted file mode 100644
index e0ea43cd7..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/RetinaRasterTile.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.Map
-{
- ///
- /// A retin-resolution raster tile from the Mapbox Style API, an encoded image representing a geographic
- /// bounding box. Usually JPEG or PNG encoded.
- /// Like , but higher resolution.
- /// See retina documentation .
- ///
- public class RetinaRasterTile : RasterTile
- {
- internal override TileResource MakeTileResource(string tilesetId)
- {
- return TileResource.MakeRetinaRaster(Id, tilesetId);
- }
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/RetinaRasterTile.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Map/RetinaRasterTile.cs.meta
deleted file mode 100644
index c16fe7fbd..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/RetinaRasterTile.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 9cd3514d26c4b4c7685f804af02d388b
-timeCreated: 1494603018
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/Tile.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Map/Tile.cs
deleted file mode 100644
index fc697bcd4..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/Tile.cs
+++ /dev/null
@@ -1,277 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.Map
-{
- using System;
- using Mapbox.Platform;
- using System.Linq;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- using Mapbox.Unity.Utilities;
-
-
- ///
- /// A Map tile, a square with vector or raster data representing a geographic
- /// bounding box. More info
- /// here .
- ///
- public abstract class Tile : IAsyncRequest
- {
-
-
- private CanonicalTileId _id;
- private List _exceptions;
- private State _state = State.New;
- private IAsyncRequest _request;
- private Action _callback;
-
- /// Tile state.
- public enum State
- {
- /// New tile, not yet initialized.
- New,
- /// Loading data.
- Loading,
- /// Data loaded and parsed.
- Loaded,
- /// Data loading cancelled.
- Canceled,
- /// Data has been loaded before and got updated.
- Updated
- }
-
- /// Gets the identifier.
- /// The canonical tile identifier.
- public CanonicalTileId Id
- {
- get { return _id; }
- set { _id = value; }
- }
-
-
- /// Flag to indicate if the request was successful
- public bool HasError
- {
- get
- {
- return _exceptions == null ? false : _exceptions.Count > 0;
- }
- }
-
-
- /// Exceptions that might have occured during creation of the tile.
- public ReadOnlyCollection Exceptions
- {
- get { return null == _exceptions ? null : _exceptions.AsReadOnly(); }
- }
-
-
- /// Messages of exceptions otherwise empty string.
- public string ExceptionsAsString
- {
- get
- {
- if (null == _exceptions || _exceptions.Count == 0) { return string.Empty; }
- return string.Join(Environment.NewLine, _exceptions.Select(e => e.Message).ToArray());
- }
- }
-
-
- ///
- /// Sets the error message.
- ///
- ///
- internal void AddException(Exception ex)
- {
- if (null == _exceptions) { _exceptions = new List(); }
- _exceptions.Add(ex);
- }
-
-
- ///
- /// Gets the current state. When fully loaded, you must
- /// check if the data actually arrived and if the tile
- /// is accusing any error.
- ///
- /// The tile state.
- public State CurrentState
- {
- get
- {
- return _state;
- }
- }
-
-
- public HttpRequestType RequestType { get { return _request.RequestType; } }
-
-
- public bool IsCompleted
- {
- get
- {
- return _state == State.Loaded;
- }
- }
-
- ///
- /// Initializes the object. It will
- /// start a network request and fire the callback when completed.
- ///
- /// Initialization parameters.
- /// The completion callback.
- public void Initialize(Parameters param, Action callback)
- {
- Cancel();
-
- _state = State.Loading;
- _id = param.Id;
- _callback = callback;
- _request = param.Fs.Request(MakeTileResource(param.TilesetId).GetUrl(), HandleTileResponse, tileId: _id, tilesetId: param.TilesetId);
- }
-
- internal void Initialize(IFileSource fileSource, CanonicalTileId canonicalTileId, string tilesetId, Action p)
- {
- Cancel();
-
- _state = State.Loading;
- _id = canonicalTileId;
- _callback = p;
- _request = fileSource.Request(MakeTileResource(tilesetId).GetUrl(), HandleTileResponse, tileId: _id, tilesetId: tilesetId);
- }
-
- ///
- /// Returns a that represents the current
- /// .
- ///
- ///
- /// A that represents the current
- /// .
- ///
- public override string ToString()
- {
- return Id.ToString();
- }
-
-
- ///
- /// Cancels the request for the object.
- /// It will stop a network request and set the tile's state to Canceled.
- ///
- ///
- ///
- /// // Do not request tiles that we are already requesting
- /// // but at the same time exclude the ones we don't need
- /// // anymore, cancelling the network request.
- /// tiles.RemoveWhere((T tile) =>
- /// {
- /// if (cover.Remove(tile.Id))
- /// {
- /// return false;
- /// }
- /// else
- /// {
- /// tile.Cancel();
- /// NotifyNext(tile);
- /// return true;
- /// }
- /// });
- ///
- ///
- public void Cancel()
- {
- if (_request != null)
- {
- _request.Cancel();
- _request = null;
- }
-
- _state = State.Canceled;
- }
-
-
- // Get the tile resource (raster/vector/etc).
- internal abstract TileResource MakeTileResource(string tilesetId);
-
-
- // Decode the tile.
- internal abstract bool ParseTileData(byte[] data);
-
-
- // TODO: Currently the tile decoding is done on the main thread. We must implement
- // a Worker class to abstract this, so on platforms that support threads (like Unity
- // on the desktop, Android, etc) we can use worker threads and when building for
- // the browser, we keep it single-threaded.
- List ids = new List();
- private void HandleTileResponse(Response response)
- {
-
- if (response.HasError)
- {
- if (!ids.Contains(_id.ToString()))
- ids.Add(_id.ToString());
- else
- return;
-
- response.Exceptions.ToList().ForEach(e => AddException(e));
- }
- else
- {
- // only try to parse if request was successful
-
- // current implementation doesn't need to check if parsing is successful:
- // * Mapbox.Map.VectorTile.ParseTileData() already adds any exception to the list
- // * Mapbox.Map.RasterTile.ParseTileData() doesn't do any parsing
- ParseTileData(response.Data);
- }
-
- // Cancelled is not the same as loaded!
- if (_state != State.Canceled)
- {
- if (response.IsUpdate)
- {
- _state = State.Updated;
- }
- else
- {
- _state = State.Loaded;
- }
- }
- _callback();
- }
-
-
- ///
- /// Parameters for initializing a Tile object.
- ///
- ///
- ///
- /// var parameters = new Tile.Parameters();
- /// parameters.Fs = MapboxAccess.Instance;
- /// parameters.Id = new CanonicalTileId(_zoom, _tileCoorindateX, _tileCoordinateY);
- /// parameters.TilesetId = "mapbox.mapbox-streets-v7";
- ///
- ///
- public struct Parameters
- {
- /// The tile id.
- public CanonicalTileId Id;
-
- ///
- /// The tileset ID, usually in the format "user.mapid". Exceptionally,
- /// will take the full style URL
- /// from where the tile is composited from, like mapbox://styles/mapbox/streets-v9.
- ///
- public string TilesetId;
-
- /// The data source abstraction.
- public IFileSource Fs;
- }
-
-
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/Tile.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Map/Tile.cs.meta
deleted file mode 100644
index 35484c62b..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/Tile.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 8010c0fffeba24190a0e4a5a5f4317c6
-timeCreated: 1494951007
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/TileCover.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Map/TileCover.cs
deleted file mode 100644
index 40f25d665..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/TileCover.cs
+++ /dev/null
@@ -1,159 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.Map
-{
- using System;
- using System.Collections.Generic;
- using Mapbox.Utils;
- using UnityEngine;
-
- ///
- /// Helper funtions to get a tile cover, i.e. a set of tiles needed for
- /// covering a bounding box.
- ///
- public static class TileCover
- {
- /// Get a tile cover for the specified bounds and zoom.
- /// Geographic bounding box.
- /// Zoom level.
- /// The tile cover set.
- ///
- /// Build a map of Colorado using TileCover:
- ///
- /// var sw = new Vector2d(36.997749, -109.0524961);
- /// var ne = new Vector2d(41.0002612, -102.0609668);
- /// var coloradoBounds = new Vector2dBounds(sw, ne);
- /// var tileCover = TileCover.Get(coloradoBounds, 8);
- /// Console.Write("Tiles Needed: " + tileCover.Count);
- /// foreach (var id in tileCover)
- /// {
- /// var tile = new RasterTile();
- /// var parameters = new Tile.Parameters();
- /// parameters.Id = id;
- /// parameters.Fs = MapboxAccess.Instance;
- /// parameters.TilesetId = "mapbox://styles/mapbox/outdoors-v10";
- /// tile.Initialize(parameters, (Action)(() =>
- /// {
- /// // Place tiles and load textures.
- /// }));
- /// }
- ///
- ///
- public static HashSet Get(Vector2dBounds bounds, int zoom)
- {
- var tiles = new HashSet();
-
- if (bounds.IsEmpty() ||
- bounds.South > Constants.LatitudeMax ||
- bounds.North < -Constants.LatitudeMax)
- {
- return tiles;
- }
-
- var hull = Vector2dBounds.FromCoordinates(
- new Vector2d(Math.Max(bounds.South, -Constants.LatitudeMax), bounds.West),
- new Vector2d(Math.Min(bounds.North, Constants.LatitudeMax), bounds.East));
-
- var sw = CoordinateToTileId(hull.SouthWest, zoom);
- var ne = CoordinateToTileId(hull.NorthEast, zoom);
-
- // Scanlines.
- for (var x = sw.X; x <= ne.X; ++x)
- {
- for (var y = ne.Y; y <= sw.Y; ++y)
- {
- tiles.Add(new UnwrappedTileId(zoom, x, y).Canonical);
- }
- }
-
- return tiles;
- }
-
-
- public static HashSet GetWithWebMerc(Vector2dBounds bounds, int zoom)
- {
- HashSet tiles = new HashSet();
- HashSet canonicalTiles = new HashSet();
-
- if (bounds.IsEmpty()) { return tiles; }
-
- //stay within WebMerc bounds
- Vector2d swWebMerc = new Vector2d(Math.Max(bounds.SouthWest.x, -Constants.WebMercMax), Math.Max(bounds.SouthWest.y, -Constants.WebMercMax));
- Vector2d neWebMerc = new Vector2d(Math.Min(bounds.NorthEast.x, Constants.WebMercMax), Math.Min(bounds.NorthEast.y, Constants.WebMercMax));
-
- UnwrappedTileId swTile = WebMercatorToTileId(swWebMerc, zoom);
- UnwrappedTileId neTile = WebMercatorToTileId(neWebMerc, zoom);
-
- for (int x = swTile.X; x <= neTile.X; x++)
- {
- for (int y = neTile.Y; y <= swTile.Y; y++)
- {
- UnwrappedTileId uwtid = new UnwrappedTileId(zoom, x, y);
- //hack: currently too many tiles are created at lower zoom levels
- //investigate formulas, this worked before
- if (!canonicalTiles.Contains(uwtid.Canonical))
- {
- tiles.Add(uwtid);
- canonicalTiles.Add(uwtid.Canonical);
- }
- }
- }
-
- return tiles;
- }
-
-
- /// Converts a coordinate to a tile identifier.
- /// Geographic coordinate.
- /// Zoom level.
- /// The to tile identifier.
- ///
- /// Convert a geocoordinate to a TileId:
- ///
- /// var unwrappedTileId = TileCover.CoordinateToTileId(new Vector2d(40.015, -105.2705), 18);
- /// Console.Write("UnwrappedTileId: " + unwrappedTileId.ToString());
- ///
- ///
- public static UnwrappedTileId CoordinateToTileId(Vector2d coord, int zoom)
- {
- var lat = coord.x;
- var lng = coord.y;
-
- // See: http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames
- var x = (int)Math.Floor((lng + 180.0) / 360.0 * Math.Pow(2.0, zoom));
- var y = (int)Math.Floor((1.0 - Math.Log(Math.Tan(lat * Math.PI / 180.0)
- + 1.0 / Math.Cos(lat * Math.PI / 180.0)) / Math.PI) / 2.0 * Math.Pow(2.0, zoom));
-
- return new UnwrappedTileId(zoom, x, y);
- }
-
-
-
- ///
- /// Converts a Web Mercator coordinate to a tile identifier. https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames#Derivation_of_tile_names
- ///
- /// Web Mercator coordinate
- /// Zoom level
- /// The to tile identifier.
- public static UnwrappedTileId WebMercatorToTileId(Vector2d webMerc, int zoom)
- {
- // See: https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames#Derivation_of_tile_names
- double tileCount = Math.Pow(2, zoom);
-
- //this SDK defines Vector2d.x as latitude and Vector2d.y as longitude
- //same for WebMerc, so we have to flip x/y to make this formula work
- double dblX = webMerc.x / Constants.WebMercMax;
- double dblY = webMerc.y / Constants.WebMercMax;
-
- int x = (int)Math.Floor((1 + dblX) / 2 * tileCount);
- int y = (int)Math.Floor((1 - dblY) / 2 * tileCount);
- return new UnwrappedTileId(zoom, x, y);
- }
-
-
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/TileCover.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Map/TileCover.cs.meta
deleted file mode 100644
index e19e3f49e..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/TileCover.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: fc67290bfffab4457b83802ef2f4c824
-timeCreated: 1494945808
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/TileErrorEventArgs.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Map/TileErrorEventArgs.cs
deleted file mode 100644
index c01a1a90f..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/TileErrorEventArgs.cs
+++ /dev/null
@@ -1,63 +0,0 @@
-namespace Mapbox.Map
-{
- using System;
- using Mapbox.Unity.MeshGeneration.Data;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
-
- public class TileErrorEventArgs : EventArgs
- {
-
- ///
- /// The tile identifier.
- ///
- public CanonicalTileId TileId;
- ///
- /// The exceptions.
- ///
- public List Exceptions;
- ///
- /// The unity tile instance.
- ///
- public UnityTile UnityTileInstance;
- ///
- /// The type of the tile.
- ///
- public Type TileType;
-
- ///
- /// Initializes a new instance of the class.
- ///
- /// Tile identifier.
- /// Tile type.
- /// Unity tile instance.
- /// Exceptions as a List
- public TileErrorEventArgs(CanonicalTileId TileId, Type TileType, UnityTile UnityTileInstance, List Exceptions)
- {
- this.TileId = TileId;
- this.Exceptions = Exceptions;
- this.UnityTileInstance = UnityTileInstance;
- this.TileType = TileType;
- }
-
- ///
- /// Initializes a new instance of the class.
- ///
- /// Tile identifier.
- /// Tile type.
- /// Unity tile instance.
- /// Exceptions as a ReadOnlyCollection
- public TileErrorEventArgs(CanonicalTileId TileId, Type TileType, UnityTile UnityTileInstance, ReadOnlyCollection Exceptions)
- {
- this.TileId = TileId;
- List _exceptions = new List();
- foreach (var exception in Exceptions)
- {
- _exceptions.Add(exception);
- }
- this.Exceptions = _exceptions;
- this.UnityTileInstance = UnityTileInstance;
- this.TileType = TileType;
- }
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/TileErrorEventArgs.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Map/TileErrorEventArgs.cs.meta
deleted file mode 100644
index 1c57d97b4..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/TileErrorEventArgs.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 59c42a951767c4031966d5ae5c20a47a
-timeCreated: 1509068021
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/TileResource.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Map/TileResource.cs
deleted file mode 100644
index f1e7e85c9..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/TileResource.cs
+++ /dev/null
@@ -1,67 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-namespace Mapbox.Map
-{
- using Platform;
- using System;
- using Mapbox.Unity.Telemetry;
-
- public sealed class TileResource : IResource
- {
- readonly string _query;
-
- internal TileResource(string query)
- {
- _query = query;
- }
-
- public static TileResource MakeRaster(CanonicalTileId id, string styleUrl)
- {
- return new TileResource(string.Format("{0}/{1}", MapUtils.NormalizeStaticStyleURL(styleUrl ?? "mapbox://styles/mapbox/satellite-v9"), id));
- }
-
- internal static TileResource MakeRetinaRaster(CanonicalTileId id, string styleUrl)
- {
- return new TileResource(string.Format("{0}/{1}@2x", MapUtils.NormalizeStaticStyleURL(styleUrl ?? "mapbox://styles/mapbox/satellite-v9"), id));
- }
-
- public static TileResource MakeClassicRaster(CanonicalTileId id, string tilesetId)
- {
- return new TileResource(string.Format("{0}/{1}.png", MapUtils.TilesetIdToUrl(tilesetId ?? "mapbox.satellite"), id));
- }
-
- internal static TileResource MakeClassicRetinaRaster(CanonicalTileId id, string tilesetId)
- {
- return new TileResource(string.Format("{0}/{1}@2x.png", MapUtils.TilesetIdToUrl(tilesetId ?? "mapbox.satellite"), id));
- }
-
- public static TileResource MakeRawPngRaster(CanonicalTileId id, string tilesetId)
- {
- return new TileResource(string.Format("{0}/{1}.pngraw", MapUtils.TilesetIdToUrl(tilesetId ?? "mapbox.terrain-rgb"), id));
- }
-
- public static TileResource MakeVector(CanonicalTileId id, string tilesetId)
- {
- return new TileResource(string.Format("{0}/{1}.vector.pbf", MapUtils.TilesetIdToUrl(tilesetId ?? "mapbox.mapbox-streets-v7"), id));
- }
-
- internal static TileResource MakeStyleOptimizedVector(CanonicalTileId id, string tilesetId, string optimizedStyleId, string modifiedDate)
- {
- return new TileResource(string.Format("{0}/{1}.vector.pbf?style={2}@{3}", MapUtils.TilesetIdToUrl(tilesetId ?? "mapbox.mapbox-streets-v7"), id, optimizedStyleId, modifiedDate));
- }
-
- public string GetUrl()
- {
- var uriBuilder = new UriBuilder(_query);
- if (uriBuilder.Query != null && uriBuilder.Query.Length > 1)
- {
- uriBuilder.Query = uriBuilder.Query.Substring(1);
- }
- //return uriBuilder.ToString();
- return uriBuilder.Uri.ToString();
- }
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/TileResource.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Map/TileResource.cs.meta
deleted file mode 100644
index 1a413269c..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/TileResource.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: b56f5c7f0b51844c19d1267530b5acb1
-timeCreated: 1494603018
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/UnwrappedTileId.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Map/UnwrappedTileId.cs
deleted file mode 100644
index c0aa3c2cb..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/UnwrappedTileId.cs
+++ /dev/null
@@ -1,147 +0,0 @@
-using System;
-
-namespace Mapbox.Map
-{
- ///
- /// Unwrapped tile identifier in a slippy map. Similar to ,
- /// but might go around the globe.
- ///
- public struct UnwrappedTileId : IEquatable
- {
- /// The zoom level.
- public readonly int Z;
-
- /// The X coordinate in the tile grid.
- public readonly int X;
-
- /// The Y coordinate in the tile grid.
- public readonly int Y;
-
- ///
- /// Initializes a new instance of the struct,
- /// representing a tile coordinate in a slippy map that might go around the
- /// globe.
- ///
- /// The z coordinate.
- /// The x coordinate.
- /// The y coordinate.
- public UnwrappedTileId(int z, int x, int y)
- {
- this.Z = z;
- this.X = x;
- this.Y = y;
- }
-
- /// Gets the canonical tile identifier.
- /// The canonical tile identifier.
- public CanonicalTileId Canonical
- {
- get
- {
- return new CanonicalTileId(this);
- }
- }
-
- ///
- /// Returns a that represents the current
- /// .
- ///
- ///
- /// A that represents the current
- /// .
- ///
- public override string ToString()
- {
- return this.Z + "/" + this.X + "/" + this.Y;
- }
-
- public bool Equals(UnwrappedTileId other)
- {
- return this.X == other.X && this.Y == other.Y && this.Z == other.Z;
- }
-
- public override int GetHashCode()
- {
- return (X << 6) ^ (Y << 16) ^ (Z << 8);
- }
-
- public override bool Equals(object obj)
- {
- return this.X == ((UnwrappedTileId)obj).X && this.Y == ((UnwrappedTileId)obj).Y && this.Z == ((UnwrappedTileId)obj).Z;
- }
-
- public static bool operator ==(UnwrappedTileId a, UnwrappedTileId b)
- {
- return a.X == b.X && a.Y == b.Y && a.Z == b.Z;
- }
-
- public static bool operator !=(UnwrappedTileId a, UnwrappedTileId b)
- {
- return !(a == b);
- }
-
- public UnwrappedTileId North
- {
- get
- {
- return new UnwrappedTileId(Z, X, Y - 1);
- }
- }
-
- public UnwrappedTileId East
- {
- get
- {
- return new UnwrappedTileId(Z, X + 1, Y);
- }
- }
-
- public UnwrappedTileId South
- {
- get
- {
- return new UnwrappedTileId(Z, X, Y + 1);
- }
- }
-
- public UnwrappedTileId West
- {
- get
- {
- return new UnwrappedTileId(Z, X - 1, Y);
- }
- }
-
- public UnwrappedTileId NorthEast
- {
- get
- {
- return new UnwrappedTileId(Z, X + 1, Y - 1);
- }
- }
-
- public UnwrappedTileId SouthEast
- {
- get
- {
- return new UnwrappedTileId(Z, X + 1, Y + 1);
- }
- }
-
- public UnwrappedTileId NorthWest
- {
- get
- {
- return new UnwrappedTileId(Z, X - 1, Y - 1);
- }
- }
-
- public UnwrappedTileId SouthWest
- {
- get
- {
- return new UnwrappedTileId(Z, X - 1, Y + 1);
- }
- }
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/UnwrappedTileId.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Map/UnwrappedTileId.cs.meta
deleted file mode 100644
index 0d4a8ad28..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/UnwrappedTileId.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: b05b9f9c791be434db474b25089ff310
-timeCreated: 1494945808
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/VectorTile.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Map/VectorTile.cs
deleted file mode 100644
index 5dca85a70..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/VectorTile.cs
+++ /dev/null
@@ -1,211 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.Map
-{
- using System.Collections.ObjectModel;
- using Mapbox.Utils;
- using Mapbox.VectorTile;
- using Mapbox.VectorTile.ExtensionMethods;
- using System;
-
- ///
- /// A decoded vector tile, as specified by the
- ///
- /// Mapbox Vector Tile specification.
- /// See available layers and features here.
- /// The tile might be incomplete if the network request and parsing are still pending.
- ///
- ///
- /// Making a VectorTile request:
- ///
- /// var parameters = new Tile.Parameters();
- /// parameters.Fs = MapboxAccess.Instance;
- /// parameters.Id = new CanonicalTileId(_zoom, _tileCoorindateX, _tileCoordinateY);
- /// parameters.TilesetId = "mapbox.mapbox-streets-v7";
- /// var vectorTile = new VectorTile();
- ///
- /// // Make the request.
- /// vectorTile.Initialize(parameters, (Action)(() =>
- /// {
- /// if (!string.IsNullOrEmpty(vectorTile.Error))
- /// {
- /// // Handle the error.
- /// }
- ///
- /// // Consume the .
- /// }));
- ///
- ///
- public sealed class VectorTile : Tile, IDisposable
- {
- // FIXME: Namespace here is very confusing and conflicts (sematically)
- // with his class. Something has to be renamed here.
- private Mapbox.VectorTile.VectorTile data;
-
- bool _isStyleOptimized = false;
-
- string _optimizedStyleId;
-
- string _modifiedDate;
-
- private bool isDisposed = false;
-
- /// Gets the vector decoded using Mapbox.VectorTile library.
- /// The GeoJson data.
- public Mapbox.VectorTile.VectorTile Data
- {
- get
- {
- return this.data;
- }
- }
-
- public VectorTile()
- {
- _isStyleOptimized = false;
- }
-
- public VectorTile(string styleId, string modifiedDate)
- {
- if (string.IsNullOrEmpty(styleId) || string.IsNullOrEmpty(modifiedDate))
- {
- UnityEngine.Debug.LogWarning("Style Id or Modified Time cannot be empty for style optimized tilesets. Switching to regular tilesets!");
- _isStyleOptimized = false;
- }
- else
- {
- _isStyleOptimized = true;
- _optimizedStyleId = styleId;
- _modifiedDate = modifiedDate;
- }
- }
-
- //TODO: uncomment if 'VectorTile' class changes from 'sealed'
- //protected override void Dispose(bool disposeManagedResources)
- //~VectorTile()
- //{
- // Dispose(false);
- //}
-
-
- public void Dispose()
- {
- Dispose(true);
- GC.SuppressFinalize(this);
- }
-
- //TODO: change signature if 'VectorTile' class changes from 'sealed'
- //protected override void Dispose(bool disposeManagedResources)
- public void Dispose(bool disposeManagedResources)
- {
- if (!isDisposed)
- {
- if (disposeManagedResources)
- {
- //TODO implement IDisposable with Mapbox.VectorTile.VectorTile
- if (null != data)
- {
- data = null;
- }
- }
- }
- }
-
-
- ///
- /// Gets the vector in a GeoJson format.
- ///
- /// This method should be avoided as it fully decodes the whole tile and might pose performance and memory bottle necks.
- ///
- ///
- /// The GeoJson data.
- ///
- /// Inspect the GeoJson.
- ///
- /// var json = VectorTile.GeoJson;
- /// Console.Write("GeoJson: " + json);
- ///
- ///
- public string GeoJson
- {
- get
- {
- return this.data.ToGeoJson((ulong)Id.Z, (ulong)Id.X, (ulong)Id.Y, 0);
- }
- }
-
-
- ///
- /// Gets all availble layer names.
- /// See available layers and features here.
- ///
- /// Collection of availble layers.
- ///
- /// Inspect the LayerNames.
- ///
- /// var layerNames = vectorTile.LayerNames();
- /// foreach (var layer in layerNames)
- /// {
- /// Console.Write("Layer: " + layer);
- /// }
- ///
- ///
- public ReadOnlyCollection LayerNames()
- {
- return this.data.LayerNames();
- }
-
- // FIXME: Why don't these work?
- ///
- /// Decodes the requested layer.
- ///
- /// Name of the layer to decode.
- /// Decoded VectorTileLayer or 'null' if an invalid layer name was specified.
- ///
- /// Inspect a layer of the vector tile.
- ///
- /// var countryLabelLayer = vectorTile.GetLayer("country_label");
- /// var count = countryLabelLayer.Keys.Count;
- /// for (int i = 0; i < count; i++)
- /// {
- /// Console.Write(string.Format("{0}:{1}", countryLabelLayer.Keys[i], countryLabelLayer.Values[i]));
- /// }
- ///
- ///
- public VectorTileLayer GetLayer(string layerName)
- {
- return this.data.GetLayer(layerName);
- }
-
-
- internal override TileResource MakeTileResource(string tilesetId)
- {
-
- return (_isStyleOptimized) ?
- TileResource.MakeStyleOptimizedVector(Id, tilesetId, _optimizedStyleId, _modifiedDate)
- : TileResource.MakeVector(Id, tilesetId);
- }
-
-
- internal override bool ParseTileData(byte[] data)
- {
- try
- {
- var decompressed = Compression.Decompress(data);
- this.data = new Mapbox.VectorTile.VectorTile(decompressed);
- return true;
- }
- catch (Exception ex)
- {
- AddException(ex);
- return false;
- }
- }
-
-
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/VectorTile.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Map/VectorTile.cs.meta
deleted file mode 100644
index fc053b530..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Map/VectorTile.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: bfd8ce307104a47389d62ff6cd67802c
-timeCreated: 1494951007
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching.meta
deleted file mode 100644
index 0ce8cecc3..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching.meta
+++ /dev/null
@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 2878fdebfe9305f4cab4f21e3c398837
-folderAsset: yes
-timeCreated: 1508237858
-licenseType: Pro
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/MapMatcher.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/MapMatcher.cs
deleted file mode 100644
index d1794d3c4..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/MapMatcher.cs
+++ /dev/null
@@ -1,74 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2017 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.MapMatching
-{
- using System;
- using System.Text;
- using Mapbox.Json;
- using Mapbox.Platform;
- using Mapbox.Utils.JsonConverters;
-
- ///
- /// Wrapper around the
- /// Mapbox Map Matching API.
- ///
- public class MapMatcher
- {
- private readonly IFileSource _fileSource;
- private int _timeout;
-
- /// Initializes a new instance of the class.
- /// Network access abstraction.
- public MapMatcher(IFileSource fileSource, int timeout)
- {
- _fileSource = fileSource;
- _timeout = timeout;
- }
-
- /// Performs asynchronously a geocoding lookup.
- /// Geocode resource.
- /// Callback to be called after the request is completed.
- /// String or LngLat. Should be automatically inferred.
- ///
- /// Returns a that can be used for canceling a pending
- /// request. This handle can be completely ignored if there is no intention of ever
- /// canceling the request.
- ///
- public IAsyncRequest Match(MapMatchingResource match, Action callback)
- {
- string url = match.GetUrl();
- return _fileSource.Request(
- url,
- (Response response) =>
- {
- var str = Encoding.UTF8.GetString(response.Data);
- var data = Deserialize(str);
-
- if (response.HasError)
- {
- data.SetRequestExceptions(response.Exceptions);
- }
-
- callback(data);
- },
- _timeout
- );
- }
-
-
- ///
- /// Deserialize the map match response string into a .
- ///
- /// JSON String.
- /// A .
- /// Map Matcher.
- internal T Deserialize(string str)
- {
- return JsonConvert.DeserializeObject(str, JsonConverters.Converters);
- }
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/MapMatcher.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/MapMatcher.cs.meta
deleted file mode 100644
index a0a8a9f53..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/MapMatcher.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: dfdfc6d95bc72494e8ae78580d2e6b44
-timeCreated: 1508239177
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/MapMatchingParameters.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/MapMatchingParameters.cs
deleted file mode 100644
index eb1524280..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/MapMatchingParameters.cs
+++ /dev/null
@@ -1,115 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2017 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-using System;
-using System.ComponentModel;
-using Mapbox.VectorTile.Geometry;
-
-namespace Mapbox.MapMatching
-{
- /// Directions profile id
- public enum Profile
- {
- [Description("mapbox/driving")]
- MapboxDriving,
- [Description("mapbox/driving-traffic")]
- MapboxDrivingTraffic,
- [Description("mapbox/walking")]
- MapboxWalking,
- [Description("mapbox/cycling")]
- MapboxCycling
- }
-
-
- /// Format of the returned geometry. Default value 'Polyline' with precision 5.
- public enum Geometries
- {
- /// Default, precision 5.
- [Description("polyline")]
- Polyline,
- /// Precision 6.
- [Description("polyline6")]
- Polyline6,
- /// Geojson.
- [Description("geojson")]
- GeoJson
- }
-
-
- /// Type of returned overview geometry.
- public enum Overview
- {
- /// The most detailed geometry available
- [Description("full")]
- Full,
- /// A simplified version of the full geometry
- [Description("simplified")]
- Simplified,
- /// No overview geometry
- [Description("false")]
- None
- }
-
-
- /// Whether or not to return additional metadata along the route. Several annotations can be used.
- [System.Flags]
- public enum Annotations
- {
- [Description("duration")]
- Duration,
- [Description("distance")]
- Distance,
- [Description("speed")]
- Speed,
- [Description("congestion")]
- Congestion
- }
-
-
- ///
- /// https://www.mapbox.com/api-documentation/navigation/#retrieve-directions
- ///
- public enum InstructionLanguages
- {
- [Description("de")]
- German,
- [Description("en")]
- English,
- [Description("eo")]
- Esperanto,
- [Description("es")]
- Spanish,
- [Description("es-ES")]
- SpanishSpain,
- [Description("fr")]
- French,
- [Description("id")]
- Indonesian,
- [Description("it")]
- Italian,
- [Description("nl")]
- Dutch,
- [Description("pl")]
- Polish,
- [Description("pt-BR")]
- PortugueseBrazil,
- [Description("ro")]
- Romanian,
- [Description("ru")]
- Russian,
- [Description("sv")]
- Swedish,
- [Description("tr")]
- Turkish,
- [Description("uk")]
- Ukrainian,
- [Description("vi")]
- Vietnamese,
- [Description("zh-Hans")]
- ChineseSimplified
- }
-
-
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/MapMatchingParameters.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/MapMatchingParameters.cs.meta
deleted file mode 100644
index 2bef6664b..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/MapMatchingParameters.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 991f42eef2c18204cb4a6b79c6f98eed
-timeCreated: 1508237904
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/MapMatchingResource.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/MapMatchingResource.cs
deleted file mode 100644
index bbb9e1e0c..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/MapMatchingResource.cs
+++ /dev/null
@@ -1,209 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2017 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.MapMatching
-{
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using Mapbox.Platform;
- using Mapbox.Utils;
- using Mapbox.VectorTile.ExtensionMethods;
-
- /// Base geocode class.
- /// Type of Query field (either string or LatLng).
- public class MapMatchingResource : Resource
- {
-
- private readonly string _apiEndpoint = "matching/v5/";
- private Vector2d[] _coordinates;
- private uint[] _radiuses;
- private long[] _timestamps;
-
-
- /// Gets the API endpoint as a partial URL path.
- public override string ApiEndpoint
- {
- get { return _apiEndpoint; }
- }
-
-
- /// A directions profile ID.
- public Profile Profile = Profile.MapboxDriving;
-
-
- /// Coordinate to visit in order; there can be between 2 and 100 coordinates.
- public Vector2d[] Coordinates
- {
- get { return _coordinates; }
- set
- {
- if (null == value)
- {
- throw new Exception("Coordinates cannot be null.");
- }
- if (value.Length < 2 || value.Length > 100)
- {
- throw new Exception("Must be between 2 and 100 elements in coordinates array");
- }
-
- _coordinates = value;
- }
- }
-
-
- ///
- /// Format of the returned geometry.
- /// Allowed values are: geojson (as LineString ), polyline with precision 5, polyline6 (polyline with precision 6).
- /// The default value is polyline.
- ///
- public Nullable Geometries;
-
-
- ///
- /// A list of uints in meters indicating the assumed precision of the used tracking device.
- /// There must be as many radiuses as there are coordinates in the request.
- /// Values can be a number between 0 and 30.
- /// Use higher numbers (20-30) for noisy traces and lower numbers (1-10) for clean traces.
- /// The default value is 5.
- ///
- public uint[] Radiuses
- {
- get { return _radiuses; }
- set
- {
- if (null == _coordinates) { throw new Exception("Coordinates not set"); }
- //allow for nulling radiuses
- if (null == value)
- {
- _radiuses = null;
- return;
- }
- if (value.Length != _coordinates.Length) { throw new Exception("There must be as many radiuses as there are coordinates in the request."); }
- if (value.Where(r => r == 0).Count() > 0) { throw new Exception("Radius must be greater than 0"); }
-
- _radiuses = value;
- }
- }
-
-
- ///
- /// Whether to return steps and turn-by-turn instructions.
- /// Can be true or false.
- /// The default is false.
- ///
- public bool? Steps;
-
-
- ///
- /// Type of returned overview geometry.
- /// Can be full (the most detailed geometry available), simplified (a simplified version of the full geometry), or none (no overview geometry).
- /// The default is simplified.
- ///
- public Nullable Overview;
-
-
- ///
- /// Timestamps corresponding to each coordinate provided in the request.
- /// Must be numbers in Unix time (seconds since the Unix epoch).
- /// There must be as many timestamps as there are coordinates in the request.
- ///
- public long[] Timestamps
- {
- get { return _timestamps; }
- set
- {
- if (null == _coordinates) { throw new Exception("Coordinates not set"); }
- //allow for nulling timestamps
- if (null == value)
- {
- _timestamps = null;
- return;
- }
- if (value.Length != _coordinates.Length) { throw new Exception("There must be as many timestapms as there are coordinates in the request."); }
-
- _timestamps = value;
- }
- }
-
-
- ///
- /// Whether or not to return additional metadata along the route.
- /// Possible values are: duration, distance and speed.
- /// Several annotations can be used.
- /// Combine via '|'.
- ///
- public Nullable Annotations;
-
-
- ///
- /// Whether or not to transparently remove clusters and re-sample traces for improved map matching results.
- /// Removed tracepoints are set to 'null' in the response!
- /// Can be true or false.
- /// The default is false.
- ///
- public bool? Tidy;
-
-
- ///
- /// Language of returned turn-by-turn text instructions.
- /// The default is English.
- ///
- public Nullable Language;
-
-
- public override string GetUrl()
- {
- if (null == _coordinates)
- {
- throw new Exception("Coordinates cannot be null.");
- }
-
- Dictionary options = new Dictionary();
-
- if (Geometries.HasValue) { options.Add("geometries", Geometries.Value.Description()); }
- if (null != _radiuses) { options.Add("radiuses", GetUrlQueryFromArray(_radiuses, ";")); }
- if (Steps.HasValue) { options.Add("steps", Steps.ToString().ToLower()); }
- if (Overview.HasValue) { options.Add("overview", Overview.Value.Description()); }
- if (null != _timestamps) { options.Add("timestamps", GetUrlQueryFromArray(_timestamps, ";")); }
- if (Annotations.HasValue) { options.Add("annotations", getUrlQueryFromAnnotations(Annotations.Value, ",")); }
- if (Tidy.HasValue) { options.Add("tidy", Tidy.Value.ToString().ToLower()); }
- if (Language.HasValue) { options.Add("language", Language.Value.Description()); }
-
- return
- Constants.BaseAPI
- + _apiEndpoint
- + Profile.Description() + "/"
- + GetUrlQueryFromArray(_coordinates, ";")
- + ".json"
- + EncodeQueryString(options);
- }
-
-
-
- ///
- /// Convert Annotations (several could be combined) into a string of their descriptions.
- ///
- /// Current annotation
- /// Character to use for separating items in string.
- ///
- private string getUrlQueryFromAnnotations(Annotations anno, string separator)
- {
- List descriptions = new List();
-
- //iterate through all possible 'Annotations' values
- foreach (var a in Enum.GetValues(typeof(Annotations)).Cast())
- {
- //if current value is set, add its description
- if (a == (anno & a)) { descriptions.Add(a.Description()); }
- }
-
- return string.Join(separator, descriptions.ToArray());
- }
-
-
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/MapMatchingResource.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/MapMatchingResource.cs.meta
deleted file mode 100644
index 83c2217a2..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/MapMatchingResource.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 8762d1b8a83c7ba4b91f9a1c64717bee
-timeCreated: 1508240506
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/MapMatchingResponse.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/MapMatchingResponse.cs
deleted file mode 100644
index ef4d14dda..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/MapMatchingResponse.cs
+++ /dev/null
@@ -1,72 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.MapMatching
-{
- using System;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- using Mapbox.Json;
-
- /// Base geocode response.
-#if !WINDOWS_UWP
- //http://stackoverflow.com/a/12903628
- [Serializable]
-#endif
- public class MapMatchingResponse
- {
- /// Simple constructor for deserialization
- public MapMatchingResponse() { }
-
- [JsonProperty("code")]
- public string Code;
- [JsonProperty("message")]
- public string Message;
- [JsonProperty("tracepoints")]
- public Tracepoint[] Tracepoints;
- [JsonProperty("matchings")]
- public MatchObject[] Matchings;
-#if !WINDOWS_UWP
- /// Error occured during matching
- public bool HasMatchingError { get { return !"ok".Equals(Code, StringComparison.InvariantCultureIgnoreCase); } }
-#else
- /// Error occured during matching
- public bool HasMatchingError { get { return !"ok".Equals(Code, StringComparison.OrdinalIgnoreCase); } }
-#endif
-
- public string MatchingError
- {
- get
- {
- string matchCode = Code.ToLower();
- switch (matchCode)
- {
- case "ok": return "";
- case "nomatch": return "The input did not produce any matches. features will be an empty array.";
- case "toomanycoordinates": return "There are to many points in the request.";
- case "InvalidInput": return "Invalid input: 'message' will hold an explanation of the invalid input.";
- case "ProfileNotFound": return "Invalid profile.";
- case "nosegment": return "Could not find a matching segment for input coordinates.";
- default:
- return "Unexpected error: check 'message'";
- }
- }
- }
-
- /// Errors occured during web request
- public bool HasRequestError { get { return _requestExceptions.Count > 0; } }
-
- private ReadOnlyCollection _requestExceptions = new List().AsReadOnly();
- /// Errors of underlying web request
- public ReadOnlyCollection RequestExceptions { get { return _requestExceptions; } }
- /// Assign errors of underlying web request
- public void SetRequestExceptions(ReadOnlyCollection exceptions) { _requestExceptions = exceptions; }
- }
-
-
-
-
-}
\ No newline at end of file
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/MapMatchingResponse.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/MapMatchingResponse.cs.meta
deleted file mode 100644
index 9bf693286..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/MapMatchingResponse.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 6b0f824b73d2d8f41aeed79f2a15666d
-timeCreated: 1508247612
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/MatchObject.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/MatchObject.cs
deleted file mode 100644
index 142dc0621..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/MatchObject.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2017 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.MapMatching
-{
- using Mapbox.Directions;
- using Mapbox.Json;
-
- ///
- /// A Match object from a Map Matching API call.
- ///
- public class MatchObject : Route
- {
- ///
- /// A number between 0 (low) and 1 (high) indicating level of confidence in the returned match
- ///
- [JsonProperty("confidence")]
- public float Confidence { get; set; }
-
-
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/MatchObject.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/MatchObject.cs.meta
deleted file mode 100644
index 8cd1ebedc..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/MatchObject.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: d6d1f89031e0a60479b516a76cf1a96a
-timeCreated: 1508309612
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/Tracepoint.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/Tracepoint.cs
deleted file mode 100644
index 092a13bbe..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/Tracepoint.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2017 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-namespace Mapbox.MapMatching
-{
- using Mapbox.Directions;
- using Mapbox.Json;
- using Mapbox.Utils;
- using Mapbox.Utils.JsonConverters;
-
- ///
- /// A Waypoint from a Directions API call.
- ///
- public class Tracepoint: Waypoint
- {
- ///
- /// Index of the waypoint inside the matched route.
- ///
- [JsonProperty("waypoint_index")]
- public int WaypointIndex { get; set; }
-
- ///
- /// Index to the match object in matchings the sub-trace was matched to.
- ///
- [JsonProperty("matchings_index")]
- public int MatchingsIndex { get; set; }
-
- ///
- /// Number of probable alternative matchings for this trace point. A value of zero indicates that this point was matched unambiguously. Split the trace at these points for incremental map matching.
- ///
- [JsonProperty("alternatives_count")]
- public int AlternativesCount { get; set; }
-
-
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/Tracepoint.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/Tracepoint.cs.meta
deleted file mode 100644
index cf819f4c5..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/MapMatching/Tracepoint.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: cd23eaecbb5aa1947ad2b7a595c2393e
-timeCreated: 1508251969
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Platform.meta
deleted file mode 100644
index 10ba2ece4..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 271709ca6cfd047e9ab142950d086b5f
-folderAsset: yes
-timeCreated: 1491243031
-licenseType: Pro
-DefaultImporter:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache.meta
deleted file mode 100644
index b553e8933..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 15f35c4d53ec8ae459a497d0bee43f77
-folderAsset: yes
-timeCreated: 1495030845
-licenseType: Pro
-DefaultImporter:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/CacheItem.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/CacheItem.cs
deleted file mode 100644
index b3be547f5..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/CacheItem.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-
-namespace Mapbox.Platform.Cache
-{
-
- using System;
-
-
- public class CacheItem
- {
- /// Raw response data-
- public byte[] Data;
- /// UTC ticks when item was added to the cache.
- public long AddedToCacheTicksUtc;
- /// ETag value of API response. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag
- public string ETag;
- /// Can be 'null' as not all APIs populated this value. Last-Modified value of API response in GMT: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Last-Modified
- public DateTime? LastModified;
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/CacheItem.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/CacheItem.cs.meta
deleted file mode 100644
index 452583767..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/CacheItem.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 3bad456c58de85d47b4ff050dbd99915
-timeCreated: 1510665832
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/CachingWebFileSource.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/CachingWebFileSource.cs
deleted file mode 100644
index b881516ff..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/CachingWebFileSource.cs
+++ /dev/null
@@ -1,321 +0,0 @@
-namespace Mapbox.Platform.Cache
-{
- using System;
- using Mapbox.Platform;
- using System.Collections.Generic;
- using Mapbox.Unity.Utilities;
- using Mapbox.Map;
- using System.Collections;
- using System.Linq;
-
-
- public class CachingWebFileSource : IFileSource, IDisposable
- {
-
-
-#if MAPBOX_DEBUG_CACHE
- private string _className;
-#endif
- private bool _disposed;
- private List _caches = new List();
- private string _accessToken;
- private Func _getMapsSkuToken;
- private bool _autoRefreshCache;
-
-
- public CachingWebFileSource(string accessToken, Func getMapsSkuToken, bool autoRefreshCache)
- {
-#if MAPBOX_DEBUG_CACHE
- _className = this.GetType().Name;
-#endif
- _accessToken = accessToken;
- _getMapsSkuToken = getMapsSkuToken;
- _autoRefreshCache = autoRefreshCache;
- }
-
-
-#region idisposable
-
-
- ~CachingWebFileSource()
- {
- Dispose(false);
- }
-
- public void Dispose()
- {
- Dispose(true);
- GC.SuppressFinalize(this);
- }
-
- protected virtual void Dispose(bool disposeManagedResources)
- {
- if (!_disposed)
- {
- if (disposeManagedResources)
- {
- for (int i = 0; i < _caches.Count; i++)
- {
- IDisposable cache = _caches[i] as IDisposable;
- if (null != cache)
- {
- cache.Dispose();
- cache = null;
- }
- }
- }
- _disposed = true;
- }
- }
-
-
-#endregion
-
-
- ///
- /// Add an ICache instance
- ///
- /// Implementation of ICache
- ///
- public CachingWebFileSource AddCache(ICache cache)
- {
- // don't add cache when cache size is 0
- if (0 == cache.MaxCacheSize)
- {
- return this;
- }
-
- _caches.Add(cache);
- return this;
- }
-
-
- ///
- /// Clear all caches
- ///
- public void Clear()
- {
- foreach (var cache in _caches)
- {
- cache.Clear();
- }
- }
-
-
- public void ReInit() {
- foreach (var cache in _caches)
- {
- cache.ReInit();
- }
- }
-
-
- public IAsyncRequest Request(
- string uri
- , Action callback
- , int timeout = 10
- , CanonicalTileId tileId = new CanonicalTileId()
- , string tilesetId = null
- )
- {
-
- if (string.IsNullOrEmpty(tilesetId))
- {
- throw new Exception("Cannot cache without a tileset id");
- }
-
- CacheItem cachedItem = null;
-
- // go through existing caches and check if we already have the requested tile available
- foreach (var cache in _caches)
- {
- cachedItem = cache.Get(tilesetId, tileId);
- if (null != cachedItem)
- {
- break;
- }
- }
-
- var uriBuilder = new UriBuilder(uri);
- if (!string.IsNullOrEmpty(_accessToken))
- {
- string accessTokenQuery = "access_token=" + _accessToken;
- string mapsSkuToken = "sku=" + _getMapsSkuToken();
- if (uriBuilder.Query != null && uriBuilder.Query.Length > 1)
- {
- uriBuilder.Query = uriBuilder.Query.Substring(1) + "&" + accessTokenQuery + "&" + mapsSkuToken;
- }
- else
- {
- uriBuilder.Query = accessTokenQuery + "&" + mapsSkuToken;
- }
- }
- string finalUrl = uriBuilder.ToString();
-
-#if MAPBOX_DEBUG_CACHE
- string methodName = _className + "." + new System.Diagnostics.StackFrame().GetMethod().Name;
-#endif
-
- // if tile was available call callback with it, propagate to all other caches and check if a newer one is available
- if (null != cachedItem)
- {
-#if MAPBOX_DEBUG_CACHE
- UnityEngine.Debug.LogFormat("{0} {1} {2} {3}", methodName, tilesetId, tileId, null != cachedItem.Data ? cachedItem.Data.Length.ToString() : "cachedItem.Data is NULL");
-#endif
- // immediately return cached tile
- callback(Response.FromCache(cachedItem.Data));
-
- // check for updated tiles online if this is enabled in the settings
- if (_autoRefreshCache)
- {
- // check if tile on the web is newer than the one we already have locally
- IAsyncRequestFactory.CreateRequest(
- finalUrl,
- (Response headerOnly) =>
- {
- // on error getting information from API just return. tile we have locally has already been returned above
- if (headerOnly.HasError)
- {
- return;
- }
-
- // TODO: remove Debug.Log before PR
- //UnityEngine.Debug.LogFormat(
- // "{1}{0}cached:{2}{0}header:{3}"
- // , Environment.NewLine
- // , finalUrl
- // , cachedItem.ETag
- // , headerOnly.Headers["ETag"]
- //);
-
- // data from cache is the same as on the web:
- // * tile has already been returned above
- // * make sure all all other caches have it too, but don't force insert via cache.add(false)
- // additional ETag empty check: for backwards compability with old caches
- if (!string.IsNullOrEmpty(cachedItem.ETag) && cachedItem.ETag.Equals(headerOnly.Headers["ETag"]))
- {
- foreach (var cache in _caches)
- {
- cache.Add(tilesetId, tileId, cachedItem, false);
- }
- }
- else
- {
- // TODO: remove Debug.Log before PR
- UnityEngine.Debug.LogWarningFormat(
- "updating cached tile {1} tilesetId:{2}{0}cached etag:{3}{0}remote etag:{4}{0}{5}"
- , Environment.NewLine
- , tileId
- , tilesetId
- , cachedItem.ETag
- , headerOnly.Headers["ETag"]
- , finalUrl
- );
-
- // request updated tile and pass callback to return new data to subscribers
- requestTileAndCache(finalUrl, tilesetId, tileId, timeout, callback);
- }
- }
- , timeout
- , HttpRequestType.Head
- );
- }
-
- return new MemoryCacheAsyncRequest(uri);
- }
- else
- {
- // requested tile is not in any of the caches yet, get it
-#if MAPBOX_DEBUG_CACHE
- UnityEngine.Debug.LogFormat("{0} {1} {2} not cached", methodName, tilesetId, tileId);
-#endif
- return requestTileAndCache(finalUrl, tilesetId, tileId, timeout, callback);
- }
- }
-
-
- private IAsyncRequest requestTileAndCache(string url, string tilesetId, CanonicalTileId tileId, int timeout, Action callback)
- {
- return IAsyncRequestFactory.CreateRequest(
- url,
- (Response r) =>
- {
- // if the request was successful add tile to all caches
- if (!r.HasError && null != r.Data)
- {
- string eTag = string.Empty;
- DateTime? lastModified = null;
-
- if (!r.Headers.ContainsKey("ETag"))
- {
- UnityEngine.Debug.LogWarningFormat("no 'ETag' header present in response for {0}", url);
- }
- else
- {
- eTag = r.Headers["ETag"];
- }
-
- // not all APIs populate 'Last-Modified' header
- // don't log error if it's missing
- if (r.Headers.ContainsKey("Last-Modified"))
- {
- lastModified = DateTime.ParseExact(r.Headers["Last-Modified"], "r", null);
- }
-
- // propagate to all caches forcing update
- foreach (var cache in _caches)
- {
- cache.Add(
- tilesetId
- , tileId
- , new CacheItem()
- {
- Data = r.Data,
- ETag = eTag,
- LastModified = lastModified
- }
- , true // force insert/update
- );
- }
- }
- if (null != callback)
- {
- r.IsUpdate = true;
- callback(r);
- }
- }, timeout);
- }
-
-
- class MemoryCacheAsyncRequest : IAsyncRequest
- {
-
-
- public string RequestUrl { get; private set; }
-
-
- public MemoryCacheAsyncRequest(string requestUrl)
- {
- RequestUrl = requestUrl;
- }
-
-
- public bool IsCompleted
- {
- get
- {
- return true;
- }
- }
-
-
- public HttpRequestType RequestType { get { return HttpRequestType.Get; } }
-
-
- public void Cancel()
- {
- // Empty. We can't cancel an instantaneous response.
- }
- }
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/CachingWebFileSource.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/CachingWebFileSource.cs.meta
deleted file mode 100644
index ccfbe27de..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/CachingWebFileSource.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 149bb7da83149324dab3982be7bc8cca
-timeCreated: 1494581732
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/ICache.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/ICache.cs
deleted file mode 100644
index d94192c29..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/ICache.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-
-namespace Mapbox.Platform.Cache
-{
-
- using Mapbox.Map;
- using System;
-
-
- public interface ICache
- {
-
- ///
- /// Maximum number of tiles to store
- ///
- uint MaxCacheSize { get; }
-
-
- ///
- /// Add tile data to the cache
- ///
- /// Tile set name
- /// Item to cache
- /// Force insert even if item already exists.
- void Add(string tilesetId, CanonicalTileId tileId, CacheItem item, bool replaceIfExists);
-
-
- ///
- /// Get tile
- ///
- ///
- ///
- /// byte[] with tile data. Null if requested tile is not in cache
- CacheItem Get(string tilesetId, CanonicalTileId tileId);
-
-
- /// Clear cache for all tile sets
- void Clear();
-
-
- ///
- /// Clear cache for one tile set
- ///
- ///
- void Clear(string tilesetId);
-
-
- ///
- /// Reinitialize cache. Might be needed after 'Clear', eg for SQLiteCache
- ///
- void ReInit();
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/ICache.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/ICache.cs.meta
deleted file mode 100644
index 6a3856927..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/ICache.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 4ebb2d197f248a7469620904e2adb43e
-timeCreated: 1494580896
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/MemoryCache.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/MemoryCache.cs
deleted file mode 100644
index 9a3254695..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/MemoryCache.cs
+++ /dev/null
@@ -1,112 +0,0 @@
-using Mapbox.Map;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-
-
-namespace Mapbox.Platform.Cache
-{
-
-
- public class MemoryCache : ICache
- {
-
-
- // TODO: add support for disposal strategy (timestamp, distance, etc.)
- public MemoryCache(uint maxCacheSize)
- {
-#if MAPBOX_DEBUG_CACHE
- _className = this.GetType().Name;
-#endif
- _maxCacheSize = maxCacheSize;
- _cachedResponses = new Dictionary();
- }
-
-
-#if MAPBOX_DEBUG_CACHE
- private string _className;
-#endif
- private uint _maxCacheSize;
- private object _lock = new object();
- private Dictionary _cachedResponses;
-
-
- public uint MaxCacheSize
- {
- get { return _maxCacheSize; }
- }
-
-
- public void ReInit()
- {
- _cachedResponses = new Dictionary();
- }
-
-
- public void Add(string mapdId, CanonicalTileId tilesetId, CacheItem item, bool forceInsert)
- {
- string key = mapdId + "||" + tilesetId;
-
- lock (_lock)
- {
- if (_cachedResponses.Count >= _maxCacheSize)
- {
- _cachedResponses.Remove(_cachedResponses.OrderBy(c => c.Value.AddedToCacheTicksUtc).First().Key);
- }
-
- // TODO: forceInsert
- if (!_cachedResponses.ContainsKey(key))
- {
- item.AddedToCacheTicksUtc = DateTime.UtcNow.Ticks;
- _cachedResponses.Add(key, item);
- }
- }
- }
-
-
- public CacheItem Get(string tilesetId, CanonicalTileId tileId)
- {
- string key = tilesetId + "||" + tileId;
-
-#if MAPBOX_DEBUG_CACHE
- string methodName = _className + "." + new System.Diagnostics.StackFrame().GetMethod().Name;
- UnityEngine.Debug.LogFormat("{0} {1}", methodName, key);
-#endif
-
- lock (_lock)
- {
- if (!_cachedResponses.ContainsKey(key))
- {
- return null;
- }
-
- return _cachedResponses[key];
- }
- }
-
-
- public void Clear()
- {
- lock (_lock)
- {
- _cachedResponses.Clear();
- }
- }
-
-
- public void Clear(string tilesetId)
- {
- lock (_lock)
- {
- tilesetId += "||";
- List toDelete = _cachedResponses.Keys.Where(k => k.Contains(tilesetId)).ToList();
- foreach (string key in toDelete)
- {
- _cachedResponses.Remove(key);
- }
- }
- }
-
-
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/MemoryCache.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/MemoryCache.cs.meta
deleted file mode 100644
index 6880288c9..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/MemoryCache.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 2bd70b309ec2fd645af3e189d1d7ea5f
-timeCreated: 1494580911
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/SQLiteCache.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/SQLiteCache.meta
deleted file mode 100644
index cf805fc4c..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/SQLiteCache.meta
+++ /dev/null
@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: c6f1c408c0acc43538b678d17f6ea53d
-folderAsset: yes
-timeCreated: 1497883478
-licenseType: Pro
-DefaultImporter:
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/SQLiteCache/SQLiteCache.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/SQLiteCache/SQLiteCache.cs
deleted file mode 100644
index a221ce117..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/SQLiteCache/SQLiteCache.cs
+++ /dev/null
@@ -1,485 +0,0 @@
-namespace Mapbox.Platform.Cache
-{
-
- using Mapbox.Map;
- using Mapbox.Utils;
- using SQLite4Unity3d;
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
- using UnityEngine;
-
- public class SQLiteCache : ICache, IDisposable
- {
-
-
- ///
- /// maximum number tiles that get cached
- ///
- public uint MaxCacheSize { get { return _maxTileCount; } }
-
-
- ///
- /// Check cache size every n inserts
- ///
- public uint PruneCacheDelta { get { return _pruneCacheDelta; } }
-
-
-#if MAPBOX_DEBUG_CACHE
- private string _className;
-#endif
- private bool _disposed;
- private string _dbName;
- private string _dbPath;
- private SQLiteConnection _sqlite;
- private readonly uint _maxTileCount;
- /// check cache size only every '_pruneCacheDelta' calls to 'Add()' to avoid being too chatty with the database
- private const int _pruneCacheDelta = 20;
- /// counter to keep track of calls to `Add()`
- private int _pruneCacheCounter = 0;
- private object _lock = new object();
-
-
- public SQLiteCache(uint? maxTileCount = null, string dbName = "cache.db")
- {
- _maxTileCount = maxTileCount ?? 3000;
- _dbName = dbName;
- init();
- }
-
-
- #region idisposable
-
-
- ~SQLiteCache()
- {
- Dispose(false);
- }
-
- public void Dispose()
- {
- Dispose(true);
- GC.SuppressFinalize(this);
- }
-
- protected virtual void Dispose(bool disposeManagedResources)
- {
- if (!_disposed)
- {
- if (disposeManagedResources)
- {
- if (null != _sqlite)
- {
- _sqlite.Execute("VACUUM;"); // compact db to keep file size small
- _sqlite.Close();
- _sqlite.Dispose();
- _sqlite = null;
- }
- }
- _disposed = true;
- }
- }
-
-
- #endregion
-
-
- private void init()
- {
-
-#if MAPBOX_DEBUG_CACHE
- _className = this.GetType().Name;
-#endif
- openOrCreateDb(_dbName);
-
- //hrmpf: multiple PKs not supported by sqlite.net
- //https://github.com/praeclarum/sqlite-net/issues/282
- //do it via plain SQL
-
- List colInfoTileset = _sqlite.GetTableInfo(typeof(tilesets).Name);
- if (0 == colInfoTileset.Count)
- {
- string cmdCreateTableTilesets = @"CREATE TABLE tilesets(
-id INTEGER PRIMARY KEY ASC AUTOINCREMENT NOT NULL UNIQUE,
-name STRING NOT NULL
-);";
- _sqlite.Execute(cmdCreateTableTilesets);
- string cmdCreateIdxNames = @"CREATE UNIQUE INDEX idx_names ON tilesets (name ASC);";
- _sqlite.Execute(cmdCreateIdxNames);
- }
-
- List colInfoTiles = _sqlite.GetTableInfo(typeof(tiles).Name);
- if (0 == colInfoTiles.Count)
- {
-
- string cmdCreateTableTiles = @"CREATE TABLE tiles(
-tile_set INTEGER REFERENCES tilesets (id) ON DELETE CASCADE ON UPDATE CASCADE,
-zoom_level INTEGER NOT NULL,
-tile_column BIGINT NOT NULL,
-tile_row BIGINT NOT NULL,
-tile_data BLOB NOT NULL,
-timestamp INTEGER NOT NULL,
-etag TEXT,
-lastmodified INTEGER,
- PRIMARY KEY(
- tile_set ASC,
- zoom_level ASC,
- tile_column ASC,
- tile_row ASC
- )
-);";
- _sqlite.Execute(cmdCreateTableTiles);
-
- string cmdIdxTileset = "CREATE INDEX idx_tileset ON tiles (tile_set ASC);";
- _sqlite.Execute(cmdIdxTileset);
- string cmdIdxTimestamp = "CREATE INDEX idx_timestamp ON tiles (timestamp ASC);";
- _sqlite.Execute(cmdIdxTimestamp);
- }
-
-
- // some pragmas to speed things up a bit :-)
- // inserting 1,000 tiles takes 1-2 sec as opposed to ~20 sec
- string[] cmds = new string[]
- {
- "PRAGMA synchronous=OFF",
- "PRAGMA count_changes=OFF",
- "PRAGMA journal_mode=MEMORY",
- "PRAGMA temp_store=MEMORY"
- };
- foreach (var cmd in cmds)
- {
- try
- {
- _sqlite.Execute(cmd);
- }
- catch (SQLiteException ex)
- {
- // workaround for sqlite.net's exeception:
- // https://stackoverflow.com/a/23839503
- if (ex.Result != SQLite3.Result.Row)
- {
- UnityEngine.Debug.LogErrorFormat("{0}: {1}", cmd, ex);
- // TODO: when mapbox-sdk-cs gets backported to its own repo -> throw
- //throw; // to throw or not to throw???
- }
- }
- }
- }
-
-
- private void openOrCreateDb(string dbName)
- {
- _dbPath = GetFullDbPath(dbName);
- _sqlite = new SQLiteConnection(_dbPath, SQLiteOpenFlags.ReadWrite | SQLiteOpenFlags.Create);
- }
-
-
- ///
- /// Reinitialize cache.
- /// This is needed after 'Clear()' to recreate the cache database.
- /// And has been implemented on purpose to not hold on to any references to the cache directory after 'Clear()'
- ///
- public void ReInit()
- {
- if (null != _sqlite)
- {
- _sqlite.Dispose();
- _sqlite = null;
- }
-
- init();
- }
-
-
- public static string GetFullDbPath(string dbName)
- {
- string dbPath = Path.Combine(Application.persistentDataPath, "cache");
-#if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN || UNITY_WSA
- dbPath = Path.GetFullPath(dbPath);
-#endif
- if (!Directory.Exists(dbPath)) { Directory.CreateDirectory(dbPath); }
- dbPath = Path.Combine(dbPath, dbName);
-
- return dbPath;
- }
-
-
-
- public void Add(string tilesetName, CanonicalTileId tileId, CacheItem item, bool forceInsert = false)
- {
-
-#if MAPBOX_DEBUG_CACHE
- string methodName = _className + "." + new System.Diagnostics.StackFrame().GetMethod().Name;
- UnityEngine.Debug.LogFormat("{0} {1} {2} forceInsert:{3}", methodName, tileset, tileId, forceInsert);
-#endif
- try
- {
- // tile exists and we don't want to overwrite -> exit early
- if (
- TileExists(tilesetName, tileId)
- && !forceInsert
- )
- {
- return;
- }
-
- int? tilesetId = null;
- lock (_lock)
- {
- tilesetId = getTilesetId(tilesetName);
- if (!tilesetId.HasValue)
- {
- tilesetId = insertTileset(tilesetName);
- }
- }
-
- if (tilesetId < 0)
- {
- Debug.LogErrorFormat("could not get tilesetID for [{0}] tile: {1}", tilesetName, tileId);
- return;
- }
-
- int rowsAffected = _sqlite.InsertOrReplace(new tiles
- {
- tile_set = tilesetId.Value,
- zoom_level = tileId.Z,
- tile_column = tileId.X,
- tile_row = tileId.Y,
- tile_data = item.Data,
- timestamp = (int)UnixTimestampUtils.To(DateTime.Now),
- etag = item.ETag
- });
- if (1 != rowsAffected)
- {
- throw new Exception(string.Format("tile [{0} / {1}] was not inserted, rows affected:{2}", tilesetName, tileId, rowsAffected));
- }
- }
- catch (Exception ex)
- {
- Debug.LogErrorFormat("Error inserting {0} {1} {2} ", tilesetName, tileId, ex);
- }
-
- // update counter only when new tile gets inserted
- if (!forceInsert)
- {
- _pruneCacheCounter++;
- }
- if (0 == _pruneCacheCounter % _pruneCacheDelta)
- {
- _pruneCacheCounter = 0;
- prune();
- }
- }
-
-
- private void prune()
- {
-
- long tileCnt = _sqlite.ExecuteScalar("SELECT COUNT(zoom_level) FROM tiles");
-
- if (tileCnt < _maxTileCount) { return; }
-
- long toDelete = tileCnt - _maxTileCount;
-
-#if MAPBOX_DEBUG_CACHE
- string methodName = _className + "." + new System.Diagnostics.StackFrame().GetMethod().Name;
- Debug.LogFormat("{0} {1} about to prune()", methodName, _tileset);
-#endif
-
- try
- {
- // no 'ORDER BY' or 'LIMIT' possible if sqlite hasn't been compiled with 'SQLITE_ENABLE_UPDATE_DELETE_LIMIT'
- // https://sqlite.org/compile.html#enable_update_delete_limit
- _sqlite.Execute("DELETE FROM tiles WHERE rowid IN ( SELECT rowid FROM tiles ORDER BY timestamp ASC LIMIT ? );", toDelete);
- }
- catch (Exception ex)
- {
- Debug.LogErrorFormat("error pruning: {0}", ex);
- }
- }
-
-
- ///
- /// Returns the tile data, otherwise null
- ///
- /// Canonical tile id to identify the tile
- /// tile data as byte[], if tile is not cached returns null
- public CacheItem Get(string tilesetName, CanonicalTileId tileId)
- {
-#if MAPBOX_DEBUG_CACHE
- string methodName = _className + "." + new System.Diagnostics.StackFrame().GetMethod().Name;
- Debug.LogFormat("{0} {1} {2}", methodName, _tileset, tileId);
-#endif
- tiles tile = null;
-
- try
- {
- int? tilesetId = getTilesetId(tilesetName);
- if (!tilesetId.HasValue)
- {
- return null;
- }
-
- tile = _sqlite
- .Table()
- .Where(t =>
- t.tile_set == tilesetId.Value
- && t.zoom_level == tileId.Z
- && t.tile_column == tileId.X
- && t.tile_row == tileId.Y
- )
- .FirstOrDefault();
- }
- catch (Exception ex)
- {
- Debug.LogErrorFormat("error getting tile {1} {2} from cache{0}{3}", Environment.NewLine, tilesetName, tileId, ex);
- return null;
- }
- if (null == tile)
- {
- return null;
- }
-
- DateTime? lastModified = null;
- if (tile.lastmodified.HasValue) { lastModified = UnixTimestampUtils.From((double)tile.lastmodified.Value); }
-
- return new CacheItem()
- {
- Data = tile.tile_data,
- AddedToCacheTicksUtc = tile.timestamp,
- ETag = tile.etag,
- LastModified = lastModified
- };
- }
-
-
- ///
- /// Check if tile exists
- ///
- /// Canonical tile id
- /// True if tile exists
- public bool TileExists(string tilesetName, CanonicalTileId tileId)
- {
- int? tilesetId = getTilesetId(tilesetName);
- if (!tilesetId.HasValue)
- {
- return false;
- }
-
- return null != _sqlite
- .Table()
- .Where(t =>
- t.tile_set == tilesetId.Value
- && t.zoom_level == tileId.Z
- && t.tile_column == tileId.X
- && t.tile_row == tileId.Y
- )
- .FirstOrDefault();
- }
-
-
- private int insertTileset(string tilesetName)
- {
- try
- {
- _sqlite.BeginTransaction(true);
- tilesets newTileset = new tilesets { name = tilesetName };
- int rowsAffected = _sqlite.Insert(newTileset);
- if (1 != rowsAffected)
- {
- throw new Exception(string.Format("tileset [{0}] was not inserted, rows affected:{1}", tilesetName, rowsAffected));
- }
- return newTileset.id;
- }
- catch (Exception ex)
- {
- Debug.LogErrorFormat("could not insert tileset [{0}]: {1}", tilesetName, ex);
- return -1;
- }
- finally
- {
- _sqlite.Commit();
- }
- }
-
-
- private int? getTilesetId(string tilesetName)
- {
- tilesets tileset = _sqlite
- .Table()
- .Where(ts => ts.name.Equals(tilesetName))
- .FirstOrDefault();
- return null == tileset ? (int?)null : tileset.id;
- }
-
-
- ///
- /// FOR INTERNAL DEBUGGING ONLY - DON'T RELY ON IN PRODUCTION
- ///
- ///
- ///
- public long TileCount(string tilesetName)
- {
- int? tilesetId = getTilesetId(tilesetName);
- if (!tilesetId.HasValue) { return 0; }
-
- return _sqlite
- .Table()
- .Where(t => t.tile_set == tilesetId.Value)
- .LongCount();
- }
-
-
- ///
- /// Clear cache for one tile set
- ///
- ///
- public void Clear(string tilesetName)
- {
- int? tilesetId = getTilesetId(tilesetName);
- if (!tilesetId.HasValue) { return; }
- //just delete on table 'tilesets', we've setup cascading which should take care of tabls 'tiles'
- _sqlite.Delete(tilesetId.Value);
- }
-
-
- ///
- /// Delete the database file.
- /// Call 'ReInit()' if you intend to continue using the cache after 'Clear()!
- ///
- public void Clear()
- {
- //already disposed
- if (null == _sqlite) { return; }
-
- _sqlite.Close();
- _sqlite.Dispose();
- _sqlite = null;
-
- Debug.LogFormat("deleting {0}", _dbPath);
-
- // try several times in case SQLite needs a bit more time to dispose
- for (int i = 0; i < 5; i++)
- {
- try
- {
- File.Delete(_dbPath);
- return;
- }
- catch
- {
-#if !WINDOWS_UWP
- System.Threading.Thread.Sleep(100);
-#else
- System.Threading.Tasks.Task.Delay(100).Wait();
-#endif
- }
- }
-
- // if we got till here, throw on last try
- File.Delete(_dbPath);
- }
-
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/SQLiteCache/SQLiteCache.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/SQLiteCache/SQLiteCache.cs.meta
deleted file mode 100644
index 93776d875..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/SQLiteCache/SQLiteCache.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 8aeee08edfa6c46648cf1dc623b72a1e
-timeCreated: 1497883479
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/SQLiteCache/Tiles.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/SQLiteCache/Tiles.cs
deleted file mode 100644
index 18629526b..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/SQLiteCache/Tiles.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-using SQLite4Unity3d;
-
-namespace Mapbox.Platform.Cache
-{
-
- ///
- /// Don't change the class name: sqlite-net uses it for table creation
- ///
- public class tiles
- {
-
- public int tile_set { get; set; }
-
- //hrmpf: multiple PKs not supported by sqlite.net
- //https://github.com/praeclarum/sqlite-net/issues/282
- //TODO: do it via plain SQL
- //[PrimaryKey]
- public int zoom_level { get; set; }
-
- //[PrimaryKey]
- public long tile_column { get; set; }
-
- //[PrimaryKey]
- public long tile_row { get; set; }
-
- public byte[] tile_data { get; set; }
-
- /// Unix epoch for simple FIFO pruning
- public int timestamp { get; set; }
-
- /// ETag Header value of the reponse for auto updating cache
- public string etag { get; set; }
-
- /// Last-Modified header value of API response. Not all APIs populate it, will be -1 in that case.
- public int? lastmodified { get; set; }
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/SQLiteCache/Tiles.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/SQLiteCache/Tiles.cs.meta
deleted file mode 100644
index 0bac32305..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/SQLiteCache/Tiles.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 7d8f9ca4f2240481ba4023eff7781487
-timeCreated: 1497883479
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/SQLiteCache/Tilesets.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/SQLiteCache/Tilesets.cs
deleted file mode 100644
index ebd47aa28..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/SQLiteCache/Tilesets.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-using SQLite4Unity3d;
-
-namespace Mapbox.Platform.Cache
-{
-
- ///
- /// Don't change the class name: sqlite-net uses it for table creation
- ///
- public class tilesets
- {
-
- //hrmpf: multiple PKs not supported by sqlite.net
- //https://github.com/praeclarum/sqlite-net/issues/282
- //TODO: do it via plain SQL
- [PrimaryKey, AutoIncrement]
- public int id { get; set; }
-
- public string name { get; set; }
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/SQLiteCache/Tilesets.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/SQLiteCache/Tilesets.cs.meta
deleted file mode 100644
index 6ee5789f7..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/SQLiteCache/Tilesets.cs.meta
+++ /dev/null
@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: bb0cc61c516c1984f8ab3ac0ce3c3e64
-timeCreated: 1527515199
-licenseType: Pro
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/FileSource.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/FileSource.cs
deleted file mode 100644
index 3225832c1..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/FileSource.cs
+++ /dev/null
@@ -1,255 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-//
-//-----------------------------------------------------------------------
-
-using Mapbox.Unity;
-
-namespace Mapbox.Platform
-{
- using Mapbox.Map;
- using Mapbox.Unity.Utilities;
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
- using System.Net;
- using System.Net.Security;
-#if !NETFX_CORE
- using System.Security.Cryptography.X509Certificates;
-#endif
-#if !UNITY_5_3_OR_NEWER
- using System.Threading;
-#endif
-#if UNITY_EDITOR
- using UnityEditor;
-#endif
-#if UNITY_5_3_OR_NEWER
- using UnityEngine;
-#endif
-
- ///
- /// Mono implementation of the FileSource class. It will use Mono's
- /// runtime to
- /// asynchronously fetch data from the network via HTTP or HTTPS requests.
- ///
- ///
- /// This implementation requires .NET 4.5 and later. The access token is expected to
- /// be exported to the environment as MAPBOX_ACCESS_TOKEN.
- ///
- public sealed class FileSource : IFileSource
- {
-
- private Func _getMapsSkuToken;
- private readonly Dictionary _requests = new Dictionary();
- private readonly string _accessToken;
- private readonly object _lock = new object();
-
- /// Length of rate-limiting interval in seconds. https://www.mapbox.com/api-documentation/#rate-limit-headers
-#pragma warning disable 0414
- private int? XRateLimitInterval;
- /// Maximum number of requests you may make in the current interval before reaching the limit. https://www.mapbox.com/api-documentation/#rate-limit-headers
- private long? XRateLimitLimit;
- /// Timestamp of when the current interval will end and the ratelimit counter is reset. https://www.mapbox.com/api-documentation/#rate-limit-headers
- private DateTime? XRateLimitReset;
-#pragma warning restore 0414
-
-
- public FileSource(Func getMapsSkuToken, string acessToken = null)
- {
- _getMapsSkuToken = getMapsSkuToken;
- if (string.IsNullOrEmpty(acessToken))
- {
- _accessToken = Environment.GetEnvironmentVariable("MAPBOX_ACCESS_TOKEN");
- }
- else
- {
- _accessToken = acessToken;
- }
- }
-
- /// Performs a request asynchronously.
- /// The HTTP/HTTPS url.
- /// Callback to be called after the request is completed.
- ///
- /// Returns a that can be used for canceling a pending
- /// request. This handle can be completely ignored if there is no intention of ever
- /// canceling the request.
- ///
- public IAsyncRequest Request(
- string url
- , Action callback
- , int timeout = 10
- , CanonicalTileId tileId = new CanonicalTileId()
- , string tilesetId = null
- )
- {
- if (!string.IsNullOrEmpty(_accessToken))
- {
- var uriBuilder = new UriBuilder(url);
- string accessTokenQuery = "access_token=" + _accessToken;
- string skuToken = "sku=" + _getMapsSkuToken();
- if (uriBuilder.Query != null && uriBuilder.Query.Length > 1)
- {
- uriBuilder.Query = uriBuilder.Query.Substring(1) + "&" + accessTokenQuery + "&" + skuToken;;
- }
- else
- {
- uriBuilder.Query = accessTokenQuery + "&" + skuToken;
- }
-
- url = uriBuilder.ToString();
- }
-
- // TODO:
- // * add queue for requests
- // * evaluate rate limits (headers and status code)
- // * throttle requests accordingly
- //var request = new HTTPRequest(url, callback);
- //IEnumerator proxy = proxyResponse(url, callback);
- //proxy.MoveNext();
- //IAsyncRequest request = proxy.Current;
-
- //return request;
-
- return proxyResponse(url, callback, timeout, tileId, tilesetId);
- }
-
-
- // TODO: look at requests and implement throttling if needed
- //private IEnumerator proxyResponse(string url, Action callback) {
- private IAsyncRequest proxyResponse(
- string url
- , Action callback
- , int timeout
- , CanonicalTileId tileId
- , string tilesetId
- )
- {
-
- // TODO: plugin caching somewhere around here
-
- var request = IAsyncRequestFactory.CreateRequest(
- url
- , (Response response) =>
- {
- if (response.XRateLimitInterval.HasValue) { XRateLimitInterval = response.XRateLimitInterval; }
- if (response.XRateLimitLimit.HasValue) { XRateLimitLimit = response.XRateLimitLimit; }
- if (response.XRateLimitReset.HasValue) { XRateLimitReset = response.XRateLimitReset; }
- callback(response);
- lock (_lock)
- {
- //another place to catch if request has been cancelled
- try
- {
- _requests.Remove(response.Request);
- }
- catch (Exception ex)
- {
- System.Diagnostics.Debug.WriteLine(ex);
- }
- }
- }
- , timeout
- );
- lock (_lock)
- {
- //sometimes we get here after the request has already finished
- if (!request.IsCompleted)
- {
- _requests.Add(request, 0);
- }
- }
- //yield return request;
- return request;
- }
-
-
-#if UNITY_5_3_OR_NEWER
- ///
- /// Block until all the requests are processed.
- ///
- public IEnumerator WaitForAllRequests()
- {
- while (_requests.Count > 0)
- {
- lock (_lock)
- {
- List reqs = _requests.Keys.ToList();
- for (int i = reqs.Count - 1; i > -1; i--)
- {
- if (reqs[i].IsCompleted)
- {
- // another place to watch out if request has been cancelled
- try
- {
- _requests.Remove(reqs[i]);
- }
- catch (Exception ex)
- {
- System.Diagnostics.Debug.WriteLine(ex);
- }
- }
- }
- }
- yield return new WaitForSeconds(0.2f);
- }
- }
-#endif
-
-
-
-#if !UNITY_5_3_OR_NEWER
- ///
- /// Block until all the requests are processed.
- ///
- public void WaitForAllRequests()
- {
- int waitTimeMs = 200;
- while (_requests.Count > 0)
- {
- lock (_lock)
- {
- List reqs = _requests.Keys.ToList();
- for (int i = reqs.Count - 1; i > -1; i--)
- {
- if (reqs[i].IsCompleted)
- {
- // another place to watch out if request has been cancelled
- try
- {
- _requests.Remove(reqs[i]);
- }
- catch (Exception ex)
- {
- System.Diagnostics.Debug.WriteLine(ex);
- }
- }
- }
- }
-
-#if WINDOWS_UWP
- System.Threading.Tasks.Task.Delay(waitTimeMs).Wait();
-#else
- //Thread.Sleep(50);
- // TODO: get rid of DoEvents!!! and find non-blocking wait that works for Net3.5
- //System.Windows.Forms.Application.DoEvents();
-
- var resetEvent = new ManualResetEvent(false);
- ThreadPool.QueueUserWorkItem(new WaitCallback(delegate
- {
- Thread.Sleep(waitTimeMs);
- resetEvent.Set();
- }), null);
- UnityEngine.Debug.Log("before waitOne " + DateTime.Now.Ticks);
- resetEvent.WaitOne();
- UnityEngine.Debug.Log("after waitOne " + DateTime.Now.Ticks);
- resetEvent.Close();
- resetEvent = null;
-#endif
- }
- }
-#endif
- }
-}
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/FileSource.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/FileSource.cs.meta
deleted file mode 100644
index 165abc85c..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/FileSource.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: a17c999e5ca80474584c39dfa7d5a62a
-timeCreated: 1494952070
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/HTTPRequestNonThreaded.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/HTTPRequestNonThreaded.cs
deleted file mode 100644
index 3421f99e0..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/HTTPRequestNonThreaded.cs
+++ /dev/null
@@ -1,236 +0,0 @@
-#if UNITY_EDITOR || UNITY_STANDALONE || UNITY_ANDROID || UNITY_WP_8_1 || UNITY_WSA || UNITY_WEBGL || UNITY_IOS || UNITY_PS4 || UNITY_SAMSUNGTV || UNITY_XBOXONE || UNITY_TIZEN || UNITY_TVOS
-#define UNITY
-#endif
-
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-// Based on http://stackoverflow.com/a/12606963 and http://wiki.unity3d.com/index.php/WebAsync
-//
-//-----------------------------------------------------------------------
-
-#if !UNITY
-
-namespace Mapbox.Platform {
-
-
- using System;
- using System.Net;
-#if !UNITY && !NETFX_CORE
- using System.Net.Cache;
-#endif
- using System.IO;
- using System.Collections.Generic;
- using System.Threading;
- using System.ComponentModel;
- using Utils;
-#if NETFX_CORE
- using System.Net.Http;
- using System.Linq;
-#endif
-
- internal sealed class HTTPRequestNonThreaded : IAsyncRequest {
-
-
- public bool IsCompleted { get; private set; }
-
-
- private Action _callback;
-#if !NETFX_CORE
- private HttpWebRequest _request;
-#else
- private HttpClient _request;
- private CancellationTokenSource _cancellationTokenSource = new CancellationTokenSource();
-#endif
-#if !UNITY
- private SynchronizationContext _sync = AsyncOperationManager.SynchronizationContext;
-#endif
- private int _timeOut;
- private string _requestUrl;
- private readonly string _userAgent = "mapbox-sdk-cs";
-
-
- ///
- ///
- ///
- ///
- ///
- /// seconds
- public HTTPRequestNonThreaded(string url, Action callback, int timeOut = 10) {
-
- IsCompleted = false;
- _callback = callback;
- _timeOut = timeOut;
- _requestUrl = url;
-
- setupRequest();
-
- Action a = () => { getResponseNonThreaded(_request, EvaluateResponse); };
- //Fire and forget ;-)
- a.BeginInvoke(a.EndInvoke, null);
- }
-
-
- private void setupRequest() {
-
-#if !NETFX_CORE
- _request = WebRequest.Create(_requestUrl) as HttpWebRequest;
- _request.UserAgent = _userAgent;
- //_hwr.UserAgent = "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36";
- //_hwr.CachePolicy = new RequestCachePolicy(RequestCacheLevel.NoCacheNoStore);
- _request.Credentials = CredentialCache.DefaultCredentials;
- _request.KeepAlive = true;
- _request.ProtocolVersion = HttpVersion.Version11; // improved performance
-
- // improved performance.
- // ServicePointManager.DefaultConnectionLimit doesn't seem to change anything
- // set ConnectionLimit per request
- // https://msdn.microsoft.com/en-us/library/system.net.httpwebrequest(v=vs.90).aspx#Remarks
- // use a value that is 12 times the number of CPUs on the local computer
- _request.ServicePoint.ConnectionLimit = Environment.ProcessorCount * 6;
-
- _request.ServicePoint.UseNagleAlgorithm = true;
- _request.ServicePoint.Expect100Continue = false;
- _request.ServicePoint.MaxIdleTime = 2000;
- _request.Method = "GET";
- _request.Headers.Add(HttpRequestHeader.AcceptEncoding, "gzip,deflate");
- _request.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate;
- //_hwr.Timeout = timeOut * 1000; doesn't work in async calls, see below
-
-#else
- HttpClientHandler handler = new HttpClientHandler() {
- AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate,
- AllowAutoRedirect = true,
- UseDefaultCredentials = true
-
- };
- _request = new HttpClient(handler);
- _request.DefaultRequestHeaders.Add("User-Agent", _userAgent);
- _request.Timeout = TimeSpan.FromSeconds(_timeOut);
-
- // TODO: how to set ConnectionLimit? ServicePoint.ConnectionLimit doesn't seem to be available.
-#endif
-
-#if !UNITY && !NETFX_CORE
- // 'NoCacheNoStore' greatly reduced the number of faulty request
- // seems that .Net caching and Mapbox API don't play well together
- _request.CachePolicy = new System.Net.Cache.RequestCachePolicy(System.Net.Cache.RequestCacheLevel.NoCacheNoStore);
-#endif
- }
-
-
-
-#if NETFX_CORE
- private async void getResponseNonThreaded(HttpClient request, Action gotResponse) {
-
- // TODO: implement a strategy similar to the full .Net one to avoid blocking of 'GetAsync()'
- // see 'Remarks' https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient.timeout?view=netcore-1.1#System_Net_Http_HttpClient_Timeout
- // "A Domain Name System (DNS) query may take up to 15 seconds to return or time out."
-
- HttpResponseMessage response = null;
- try {
- response = await request.GetAsync(_requestUrl, _cancellationTokenSource.Token);
- gotResponse(response, null);
- }
- catch (Exception ex) {
- gotResponse(response, ex);
- }
-
- }
-
-
- private async void EvaluateResponse(HttpResponseMessage apiResponse, Exception apiEx) {
-
- var response = await Response.FromWebResponse(this, apiResponse, apiEx);
-
- // post (async) callback back to the main/UI thread
- // Unity: SynchronizationContext doesn't do anything
- // use the Dispatcher
-#if !UNITY
- _sync.Post(delegate { callCallbackAndcleanUp(response); }, null);
-#else
- UnityToolbag.Dispatcher.InvokeAsync(() => { callCallbackAndcleanUp(response); });
-#endif
- }
-
-#endif
-
-
-#if !NETFX_CORE
- private void getResponseNonThreaded(HttpWebRequest request, Action gotResponse) {
-
- HttpWebResponse response = null;
- try {
- response = (HttpWebResponse)request.GetResponse();
- gotResponse(response, null);
- }
- catch (WebException wex) {
- //another place to watchout for HttpWebRequest.Abort to occur
- if (wex.Status == WebExceptionStatus.RequestCanceled) {
- gotResponse(null, wex);
- } else {
- HttpWebResponse hwr = wex.Response as HttpWebResponse;
- if (null == hwr) {
- gotResponse(null, wex);
- } else {
- gotResponse(hwr, wex);
- }
- }
- }
- catch (Exception ex) {
- gotResponse(response, ex);
- }
- }
-
-
- private void EvaluateResponse(HttpWebResponse apiResponse, Exception apiEx) {
-
- var response = Response.FromWebResponse(this, apiResponse, apiEx);
-
-#if !UNITY
- // post (async) callback back to the main/UI thread
- // Unity: SynchronizationContext doesn't do anything
- // use the Dispatcher
- _sync.Post(delegate { callCallbackAndcleanUp(response); }, null);
-#else
- // Unity is playing
- if (UnityToolbag.Dispatcher._instanceExists) {
- UnityToolbag.Dispatcher.InvokeAsync(() => { callCallbackAndcleanUp(response); });
- } else { // Unity is in Edit Mode
-#if UNITY_EDITOR
- Mapbox.Unity.DispatcherEditor.InvokeAsync(() => { callCallbackAndcleanUp(response); });
-#endif
- }
-#endif
- }
-#endif
-
-
- private void callCallbackAndcleanUp(Response response) {
- _callback(response);
- IsCompleted = true;
- _callback = null;
-#if NETFX_CORE
- if (null != _request) {
- _request.Dispose();
- _request = null;
- }
-#endif
- }
-
-
- public void Cancel() {
-
-#if !NETFX_CORE
- if (null != _request) {
- _request.Abort();
- }
-#else
- _cancellationTokenSource.Cancel();
-#endif
- }
-
-
- }
-}
-#endif
\ No newline at end of file
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/HTTPRequestNonThreaded.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/HTTPRequestNonThreaded.cs.meta
deleted file mode 100644
index 942353d38..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/HTTPRequestNonThreaded.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: ca6d4261d474b4de0b14637c81b1795c
-timeCreated: 1494952070
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/HTTPRequestThreaded.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/HTTPRequestThreaded.cs
deleted file mode 100644
index c8274b5aa..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/HTTPRequestThreaded.cs
+++ /dev/null
@@ -1,318 +0,0 @@
-//-----------------------------------------------------------------------
-//
-// Copyright (c) 2016 Mapbox. All rights reserved.
-// Based on http://stackoverflow.com/a/12606963 and http://wiki.unity3d.com/index.php/WebAsync
-//
-//-----------------------------------------------------------------------
-
-#if UNITY_EDITOR || UNITY_STANDALONE || UNITY_ANDROID || UNITY_WP_8_1 || UNITY_WSA || UNITY_WEBGL || UNITY_IOS || UNITY_PS4 || UNITY_SAMSUNGTV || UNITY_XBOXONE || UNITY_TIZEN || UNITY_TVOS
-#define UNITY
-#endif
-
-#if !UNITY
-
-namespace Mapbox.Platform {
-
-
- using System;
- using System.Net;
-#if !UNITY && !NETFX_CORE
- using System.Net.Cache;
-#endif
- using System.IO;
- using System.Collections.Generic;
- using System.Threading;
- using System.ComponentModel;
- using Utils;
-#if NETFX_CORE
- using System.Net.Http;
- using System.Linq;
-#endif
-
- //using System.Windows.Threading;
-
- internal sealed class HTTPRequestThreaded : IAsyncRequest {
-
-
- public bool IsCompleted { get; private set; }
-
-
- private Action _callback;
-#if !NETFX_CORE
- private HttpWebRequest _request;
-#else
- private HttpClient _request;
- private CancellationTokenSource _cancellationTokenSource = new CancellationTokenSource();
-#endif
-#if !UNITY
- private SynchronizationContext _sync = AsyncOperationManager.SynchronizationContext;
-#endif
- private int _timeOut;
- private string _requestUrl;
- private readonly string _userAgent = "mapbox-sdk-cs";
-
-
- ///
- ///
- ///
- ///
- ///
- /// seconds
- public HTTPRequestThreaded(string url, Action callback, int timeOut = 10) {
-
- IsCompleted = false;
- _callback = callback;
- _timeOut = timeOut;
- _requestUrl = url;
-
- setupRequest();
- getResponseAsync(_request, EvaluateResponse);
- }
-
-
- private void setupRequest() {
-
-#if !NETFX_CORE
- _request = WebRequest.Create(_requestUrl) as HttpWebRequest;
- _request.UserAgent = _userAgent;
- //_hwr.UserAgent = "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36";
- //_hwr.CachePolicy = new RequestCachePolicy(RequestCacheLevel.NoCacheNoStore);
- _request.Credentials = CredentialCache.DefaultCredentials;
- _request.KeepAlive = true;
- _request.ProtocolVersion = HttpVersion.Version11; // improved performance
-
- // improved performance.
- // ServicePointManager.DefaultConnectionLimit doesn't seem to change anything
- // set ConnectionLimit per request
- // https://msdn.microsoft.com/en-us/library/system.net.httpwebrequest(v=vs.90).aspx#Remarks
- // use a value that is 12 times the number of CPUs on the local computer
- _request.ServicePoint.ConnectionLimit = Environment.ProcessorCount * 6;
-
- _request.ServicePoint.UseNagleAlgorithm = true;
- _request.ServicePoint.Expect100Continue = false;
- _request.ServicePoint.MaxIdleTime = 2000;
- _request.Method = "GET";
- _request.Headers.Add(HttpRequestHeader.AcceptEncoding, "gzip,deflate");
- _request.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate;
- //_hwr.Timeout = timeOut * 1000; doesn't work in async calls, see below
-
-#else
- HttpClientHandler handler = new HttpClientHandler() {
- AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate,
- AllowAutoRedirect = true,
- UseDefaultCredentials = true
-
- };
- _request = new HttpClient(handler);
- _request.DefaultRequestHeaders.Add("User-Agent", _userAgent);
- _request.Timeout = TimeSpan.FromSeconds(_timeOut);
-
- // TODO: how to set ConnectionLimit? ServicePoint.ConnectionLimit doesn't seem to be available.
-#endif
-
-#if !UNITY && !NETFX_CORE
- // 'NoCacheNoStore' greatly reduced the number of faulty request
- // seems that .Net caching and Mapbox API don't play well together
- _request.CachePolicy = new System.Net.Cache.RequestCachePolicy(System.Net.Cache.RequestCacheLevel.NoCacheNoStore);
-#endif
- }
-
-
-
-#if NETFX_CORE
-
- private async void getResponseAsync(HttpClient request, Action gotResponse) {
-
- // TODO: implement a strategy similar to the full .Net one to avoid blocking of 'GetAsync()'
- // see 'Remarks' https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient.timeout?view=netcore-1.1#System_Net_Http_HttpClient_Timeout
- // "A Domain Name System (DNS) query may take up to 15 seconds to return or time out."
-
- HttpResponseMessage response = null;
- try {
- response = await request.GetAsync(_requestUrl, _cancellationTokenSource.Token);
- gotResponse(response, null);
- }
- catch (Exception ex) {
- gotResponse(response, ex);
- }
-
- }
-
-
- private async void EvaluateResponse(HttpResponseMessage apiResponse, Exception apiEx) {
-
- var response = await Response.FromWebResponse(this, apiResponse, apiEx);
-
- // post (async) callback back to the main/UI thread
- // Unity: SynchronizationContext doesn't do anything
- // use the Dispatcher
-#if !UNITY
- _sync.Post(delegate {
- _callback(response);
- IsCompleted = true;
- _callback = null;
-#if NETFX_CORE
- if (null != _request) {
- _request.Dispose();
- _request = null;
- }
-#endif
- }, null);
-#else
- UnityToolbag.Dispatcher.InvokeAsync(() => {
- _callback(response);
- IsCompleted = true;
- _callback = null;
-#if NETFX_CORE
- if (null != _request) {
- _request.Dispose();
- _request = null;
- }
-#endif
- });
-#endif
- }
-
-#endif
-
-
-#if !NETFX_CORE
- private void getResponseAsync(HttpWebRequest request, Action gotResponse) {
-
- // create an additional action wrapper, because of:
- // https://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.begingetresponse.aspx
- // The BeginGetResponse method requires some synchronous setup tasks to complete (DNS resolution,
- //proxy detection, and TCP socket connection, for example) before this method becomes asynchronous.
- // As a result, this method should never be called on a user interface (UI) thread because it might
- // take considerable time(up to several minutes depending on network settings) to complete the
- // initial synchronous setup tasks before an exception for an error is thrown or the method succeeds.
-
- Action actionWrapper = () => {
- try {
- // BeginInvoke runs on a thread of the thread pool (!= main/UI thread)
- // that's why we need SynchronizationContext when
- // TODO: how to influence threadpool: nr of threads etc.
- long startTicks = DateTime.Now.Ticks;
- request.BeginGetResponse((asycnResult) => {
- try { // there's a try/catch here because execution path is different from invokation one, exception here may cause a crash
- long beforeEndGet = DateTime.Now.Ticks;
- HttpWebResponse response = (HttpWebResponse)request.EndGetResponse(asycnResult);
- //long finished = DateTime.Now.Ticks;
- //long duration = finished - startTicks;
- //TimeSpan ts = TimeSpan.FromTicks(duration);
- //TimeSpan tsEndGet = TimeSpan.FromTicks(finished - beforeEndGet);
- //TimeSpan tsBeginGet = TimeSpan.FromTicks(beforeEndGet - startTicks);
- //UnityEngine.Debug.Log("received response - " + ts.Milliseconds + "ms" + " BeginGet: " + tsBeginGet.Milliseconds + " EndGet: " + tsEndGet.Milliseconds + " CompletedSynchronously: " + asycnResult.CompletedSynchronously);
- gotResponse(response, null);
- }
- // EndGetResponse() throws on on some status codes, try to get response anyway (and status codes)
- catch (WebException wex) {
- //another place to watchout for HttpWebRequest.Abort to occur
- if (wex.Status == WebExceptionStatus.RequestCanceled) {
- gotResponse(null, wex);
- } else {
- HttpWebResponse hwr = wex.Response as HttpWebResponse;
- if (null == hwr) {
- throw;
- }
- gotResponse(hwr, wex);
- }
- }
- catch (Exception ex) {
- gotResponse(null, ex);
- }
- }
- , null);
- }
- catch (Exception ex) {
- //catch exception from HttpWebRequest.Abort
- gotResponse(null, ex);
- }
- };
-
- try {
- actionWrapper.BeginInvoke(new AsyncCallback((iAsyncResult) => {
- var action = (Action)iAsyncResult.AsyncState;
- action.EndInvoke(iAsyncResult);
- })
- , actionWrapper);
- }
- catch (Exception ex) {
- gotResponse(null, ex);
- }
- }
-
-
-
- private void EvaluateResponse(HttpWebResponse apiResponse, Exception apiEx) {
-
- var response = Response.FromWebResponse(this, apiResponse,apiEx);
-
- // post (async) callback back to the main/UI thread
- // Unity: SynchronizationContext doesn't do anything
- // use the Dispatcher
-#if !UNITY
- _sync.Post(delegate {
- _callback(response);
- IsCompleted = true;
- _callback = null;
-#if NETFX_CORE
- if (null != _request) {
- _request.Dispose();
- _request = null;
- }
-#endif
- }, null);
-#else
- // Unity is playing
- if (UnityToolbag.Dispatcher._instanceExists) {
- UnityToolbag.Dispatcher.InvokeAsync(() => {
- _callback(response);
- IsCompleted = true;
- _callback = null;
-#if NETFX_CORE
- if (null != _request) {
- _request.Dispose();
- _request = null;
- }
-#endif
- });
- } else { // Unity is in Edit Mode
-#if UNITY_EDITOR
- Mapbox.Unity.DispatcherEditor.InvokeAsync(() => {
- _callback(response);
- IsCompleted = true;
- _callback = null;
-#if NETFX_CORE
- if (null != _request) {
- _request.Dispose();
- _request = null;
- }
-#endif
- });
-#endif
-
- }
-#endif
- }
-#endif
-
-
-
- public void Cancel() {
-
-#if !NETFX_CORE
- if (null != _request) {
- _request.Abort();
- }
-#else
- _cancellationTokenSource.Cancel();
-#endif
- }
-
-
- }
-}
-
-
-#endif
\ No newline at end of file
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/HTTPRequestThreaded.cs.meta b/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/HTTPRequestThreaded.cs.meta
deleted file mode 100644
index 7c2ae3bab..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/HTTPRequestThreaded.cs.meta
+++ /dev/null
@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 7952dd05dd1ff40d0bff547dacc6e714
-timeCreated: 1494952070
-licenseType: Pro
-MonoImporter:
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/IAsyncRequest.cs b/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/IAsyncRequest.cs
deleted file mode 100644
index f26596af1..000000000
--- a/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/IAsyncRequest.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-//-----------------------------------------------------------------------
-//