Skip to content

Commit dc7ef72

Browse files
author
Mark Fine
committed
ARCore Android SDK v1.47.0
1 parent bf322eb commit dc7ef72

File tree

21 files changed

+28
-29
lines changed

21 files changed

+28
-29
lines changed

samples/augmented_faces_java/app/build.gradle

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

4343
dependencies {
4444
// ARCore (Google Play Services for AR) library.
45-
implementation 'com.google.ar:core:1.46.0'
45+
implementation 'com.google.ar:core:1.47.0'
4646

4747
// Obj - a simple Wavefront OBJ file loader
4848
// 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
@@ -69,8 +69,8 @@ android {
6969

7070
dependencies {
7171
// ARCore (Google Play Services for AR) library.
72-
implementation 'com.google.ar:core:1.46.0'
73-
natives 'com.google.ar:core:1.46.0'
72+
implementation 'com.google.ar:core:1.47.0'
73+
natives 'com.google.ar:core:1.47.0'
7474

7575
implementation 'androidx.appcompat:appcompat:1.1.0'
7676
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
@@ -42,7 +42,7 @@ android {
4242

4343
dependencies {
4444
// ARCore (Google Play Services for AR) library.
45-
implementation 'com.google.ar:core:1.46.0'
45+
implementation 'com.google.ar:core:1.47.0'
4646

4747
// Obj - a simple Wavefront OBJ file loader
4848
// 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
@@ -42,7 +42,7 @@ android {
4242

4343
dependencies {
4444
// ARCore (Google Play Services for AR) library.
45-
implementation 'com.google.ar:core:1.46.0'
45+
implementation 'com.google.ar:core:1.47.0'
4646

4747
// Obj - a simple Wavefront OBJ file loader
4848
// 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
@@ -69,8 +69,8 @@ android {
6969

7070
dependencies {
7171
// ARCore (Google Play Services for AR) library.
72-
implementation 'com.google.ar:core:1.46.0'
73-
natives 'com.google.ar:core:1.46.0'
72+
implementation 'com.google.ar:core:1.47.0'
73+
natives 'com.google.ar:core:1.47.0'
7474

7575
implementation 'androidx.appcompat:appcompat:1.1.0'
7676
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
@@ -42,7 +42,7 @@ android {
4242

4343
dependencies {
4444
// ARCore (Google Play Services for AR) library.
45-
implementation 'com.google.ar:core:1.46.0'
45+
implementation 'com.google.ar:core:1.47.0'
4646

4747
// Obj - a simple Wavefront OBJ file loader
4848
// https://github.com/javagl/Obj

samples/geospatial_java/app/build.gradle

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

4343
dependencies {
4444
// ARCore (Google Play Services for AR) library.
45-
implementation 'com.google.ar:core:1.46.0'
45+
implementation 'com.google.ar:core:1.47.0'
4646
implementation 'com.google.android.gms:play-services-location:19.0.1'
4747
implementation 'com.google.android.gms:play-services-auth:19.0.0'
4848

samples/hardwarebuffer_c/app/build.gradle

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

7272
dependencies {
7373
// ARCore (Google Play Services for AR) library.
74-
implementation 'com.google.ar:core:1.46.0'
75-
natives 'com.google.ar:core:1.46.0'
74+
implementation 'com.google.ar:core:1.47.0'
75+
natives 'com.google.ar:core:1.47.0'
7676

7777
implementation 'androidx.appcompat:appcompat:1.1.0'
7878
implementation 'com.google.android.material:material:1.1.0'

samples/hardwarebuffer_java/app/build.gradle

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

6868
dependencies {
6969
// ARCore (Google Play Services for AR) library.
70-
implementation 'com.google.ar:core:1.46.0'
71-
natives 'com.google.ar:core:1.46.0'
70+
implementation 'com.google.ar:core:1.47.0'
71+
natives 'com.google.ar:core:1.47.0'
7272

7373
// Obj - a simple Wavefront OBJ file loader
7474
// https://github.com/javagl/Obj

samples/hardwarebuffer_java/app/src/main/cpp/jni_interface.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,14 @@ jint JNI_OnLoad(JavaVM *vm, void *) {
5151

5252
JNI_METHOD(jlong, createEglImage)
5353
(JNIEnv *env, jclass, jobject hardware_buffer) {
54-
#if (__ANDROID_API__ >= 26)
54+
#if (__ANDROID_API__ >= 27)
5555
EGLImageKHR image = opengl_helper->CreateEglImage(
5656
AHardwareBuffer_fromHardwareBuffer(env, hardware_buffer));
5757

5858
return image == EGL_NO_IMAGE ? 0 : reinterpret_cast<intptr_t>(image);
5959
#else
6060
jclass jcls = env->FindClass("java/lang/UnsupportedOperationException");
61-
env->ThrowNew(jcls,
62-
"Hardware Buffer is not supported on compiled NDK level.");
61+
env->ThrowNew(jcls, "Hardware Buffer is only supported on Android 27+.");
6362
return 0;
6463
#endif
6564
}

0 commit comments

Comments
 (0)