Skip to content

Commit 3c21e80

Browse files
committed
ARCore Android SDK v1.34.0
1 parent d1f5285 commit 3c21e80

File tree

28 files changed

+846
-166
lines changed

28 files changed

+846
-166
lines changed

LICENSE

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2676,6 +2676,43 @@ Developed at SunSoft, a Sun Microsystems, Inc. business.
26762676
Permission to use, copy, modify, and distribute this
26772677
software is freely granted, provided that this notice
26782678
is preserved.
2679+
*******************************************************************************
2680+
Protocol Buffers
2681+
*******************************************************************************
2682+
Copyright 2008, Google Inc.
2683+
All rights reserved.
2684+
2685+
Redistribution and use in source and binary forms, with or without
2686+
modification, are permitted provided that the following conditions are
2687+
met:
2688+
2689+
* Redistributions of source code must retain the above copyright
2690+
notice, this list of conditions and the following disclaimer.
2691+
* Redistributions in binary form must reproduce the above
2692+
copyright notice, this list of conditions and the following disclaimer
2693+
in the documentation and/or other materials provided with the
2694+
distribution.
2695+
* Neither the name of Google Inc. nor the names of its
2696+
contributors may be used to endorse or promote products derived from
2697+
this software without specific prior written permission.
2698+
2699+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
2700+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
2701+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
2702+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
2703+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2704+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
2705+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2706+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2707+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2708+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2709+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2710+
2711+
Code generated by the Protocol Buffer compiler is owned by the owner
2712+
of the input file used when generating it. This code is not
2713+
standalone and requires a support library to be linked with it. This
2714+
support library is itself covered by the above license.
2715+
26792716
*******************************************************************************
26802717
Protocol Buffers for Java
26812718
*******************************************************************************

libraries/include/arcore_c_api.h

Lines changed: 327 additions & 60 deletions
Large diffs are not rendered by default.

samples/augmented_faces_java/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ android {
2626

2727
dependencies {
2828
// ARCore (Google Play Services for AR) library.
29-
implementation 'com.google.ar:core:1.33.0'
29+
implementation 'com.google.ar:core:1.34.0'
3030

3131
// Obj - a simple Wavefront OBJ file loader
3232
// https://github.com/javagl/Obj

samples/augmented_image_c/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ android {
5353

5454
dependencies {
5555
// ARCore (Google Play Services for AR) library.
56-
implementation 'com.google.ar:core:1.33.0'
57-
natives 'com.google.ar:core:1.33.0'
56+
implementation 'com.google.ar:core:1.34.0'
57+
natives 'com.google.ar:core:1.34.0'
5858

5959
implementation 'androidx.appcompat:appcompat:1.1.0'
6060
implementation 'com.google.android.material:material:1.1.0'

samples/augmented_image_java/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ android {
2626

2727
dependencies {
2828
// ARCore (Google Play Services for AR) library.
29-
implementation 'com.google.ar:core:1.33.0'
29+
implementation 'com.google.ar:core:1.34.0'
3030

3131
// Obj - a simple Wavefront OBJ file loader
3232
// https://github.com/javagl/Obj

samples/cloud_anchor_java/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ android {
2626

2727
dependencies {
2828
// ARCore (Google Play Services for AR) library.
29-
implementation 'com.google.ar:core:1.33.0'
29+
implementation 'com.google.ar:core:1.34.0'
3030

3131
// Obj - a simple Wavefront OBJ file loader
3232
// https://github.com/javagl/Obj

samples/computervision_c/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ android {
5353

5454
dependencies {
5555
// ARCore (Google Play Services for AR) library.
56-
implementation 'com.google.ar:core:1.33.0'
57-
natives 'com.google.ar:core:1.33.0'
56+
implementation 'com.google.ar:core:1.34.0'
57+
natives 'com.google.ar:core:1.34.0'
5858

5959
implementation 'androidx.appcompat:appcompat:1.1.0'
6060
implementation 'com.google.android.material:material:1.1.0'

samples/computervision_java/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ android {
2626

2727
dependencies {
2828
// ARCore (Google Play Services for AR) library.
29-
implementation 'com.google.ar:core:1.33.0'
29+
implementation 'com.google.ar:core:1.34.0'
3030

3131
// Obj - a simple Wavefront OBJ file loader
3232
// https://github.com/javagl/Obj

samples/geospatial_java/app/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ android {
77

88
// AR Optional apps must declare minSdkVersion >= 14.
99
// AR Required apps must declare minSdkVersion >= 24.
10-
minSdkVersion 24
10+
minSdkVersion 28
1111
targetSdkVersion 33
1212
versionCode 1
1313
versionName '1.0'
@@ -26,7 +26,7 @@ android {
2626

2727
dependencies {
2828
// ARCore (Google Play Services for AR) library.
29-
implementation 'com.google.ar:core:1.33.0'
29+
implementation 'com.google.ar:core:1.34.0'
3030
implementation 'com.google.android.gms:play-services-location:19.0.1'
3131

3232
// Obj - a simple Wavefront OBJ file loader
@@ -35,4 +35,6 @@ dependencies {
3535

3636
implementation 'androidx.appcompat:appcompat:1.1.0'
3737
implementation 'com.google.android.material:material:1.1.0'
38+
implementation 'androidx.concurrent:concurrent-futures:1.1.0'
39+
implementation 'com.google.guava:guava:31.1-android'
3840
}

samples/geospatial_java/app/src/main/assets/shaders/cubemap_filter.frag

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ vec4 Filter(const vec3 n) {
8282
tangentToWorld[1] = cross(n, tangentToWorld[0]);
8383
tangentToWorld[2] = n;
8484

85-
ImportanceSampleCache cache = u_ImportanceSampleCaches[u_RoughnessLevel - 1];
85+
// TODO(b/243456272): This clamp should not be necessary, but is here due to a
86+
// driver issue with certain devices.
87+
ImportanceSampleCache cache = u_ImportanceSampleCaches[max(0, u_RoughnessLevel - 1)];
8688
vec3 radiance = vec3(0.0);
8789
for (int i = 0; i < cache.number_of_entries; ++i) {
8890
ImportanceSampleCacheEntry entry = cache.entries[i];

0 commit comments

Comments
 (0)