Skip to content

Commit

Permalink
ARCore Android SDK v1.47.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Fine committed Dec 12, 2024
1 parent bf322eb commit dc7ef72
Show file tree
Hide file tree
Showing 21 changed files with 28 additions and 29 deletions.
2 changes: 1 addition & 1 deletion samples/augmented_faces_java/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ android {

dependencies {
// ARCore (Google Play Services for AR) library.
implementation 'com.google.ar:core:1.46.0'
implementation 'com.google.ar:core:1.47.0'

// Obj - a simple Wavefront OBJ file loader
// https://github.com/javagl/Obj
Expand Down
4 changes: 2 additions & 2 deletions samples/augmented_image_c/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ android {

dependencies {
// ARCore (Google Play Services for AR) library.
implementation 'com.google.ar:core:1.46.0'
natives 'com.google.ar:core:1.46.0'
implementation 'com.google.ar:core:1.47.0'
natives 'com.google.ar:core:1.47.0'

implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.google.android.material:material:1.1.0'
Expand Down
2 changes: 1 addition & 1 deletion samples/augmented_image_java/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ android {

dependencies {
// ARCore (Google Play Services for AR) library.
implementation 'com.google.ar:core:1.46.0'
implementation 'com.google.ar:core:1.47.0'

// Obj - a simple Wavefront OBJ file loader
// https://github.com/javagl/Obj
Expand Down
2 changes: 1 addition & 1 deletion samples/cloud_anchor_java/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ android {

dependencies {
// ARCore (Google Play Services for AR) library.
implementation 'com.google.ar:core:1.46.0'
implementation 'com.google.ar:core:1.47.0'

// Obj - a simple Wavefront OBJ file loader
// https://github.com/javagl/Obj
Expand Down
4 changes: 2 additions & 2 deletions samples/computervision_c/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ android {

dependencies {
// ARCore (Google Play Services for AR) library.
implementation 'com.google.ar:core:1.46.0'
natives 'com.google.ar:core:1.46.0'
implementation 'com.google.ar:core:1.47.0'
natives 'com.google.ar:core:1.47.0'

implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.google.android.material:material:1.1.0'
Expand Down
2 changes: 1 addition & 1 deletion samples/computervision_java/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ android {

dependencies {
// ARCore (Google Play Services for AR) library.
implementation 'com.google.ar:core:1.46.0'
implementation 'com.google.ar:core:1.47.0'

// Obj - a simple Wavefront OBJ file loader
// https://github.com/javagl/Obj
Expand Down
2 changes: 1 addition & 1 deletion samples/geospatial_java/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ android {

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

Expand Down
4 changes: 2 additions & 2 deletions samples/hardwarebuffer_c/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ android {

dependencies {
// ARCore (Google Play Services for AR) library.
implementation 'com.google.ar:core:1.46.0'
natives 'com.google.ar:core:1.46.0'
implementation 'com.google.ar:core:1.47.0'
natives 'com.google.ar:core:1.47.0'

implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.google.android.material:material:1.1.0'
Expand Down
4 changes: 2 additions & 2 deletions samples/hardwarebuffer_java/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ android {

dependencies {
// ARCore (Google Play Services for AR) library.
implementation 'com.google.ar:core:1.46.0'
natives 'com.google.ar:core:1.46.0'
implementation 'com.google.ar:core:1.47.0'
natives 'com.google.ar:core:1.47.0'

// Obj - a simple Wavefront OBJ file loader
// https://github.com/javagl/Obj
Expand Down
5 changes: 2 additions & 3 deletions samples/hardwarebuffer_java/app/src/main/cpp/jni_interface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,14 @@ jint JNI_OnLoad(JavaVM *vm, void *) {

JNI_METHOD(jlong, createEglImage)
(JNIEnv *env, jclass, jobject hardware_buffer) {
#if (__ANDROID_API__ >= 26)
#if (__ANDROID_API__ >= 27)
EGLImageKHR image = opengl_helper->CreateEglImage(
AHardwareBuffer_fromHardwareBuffer(env, hardware_buffer));

return image == EGL_NO_IMAGE ? 0 : reinterpret_cast<intptr_t>(image);
#else
jclass jcls = env->FindClass("java/lang/UnsupportedOperationException");
env->ThrowNew(jcls,
"Hardware Buffer is not supported on compiled NDK level.");
env->ThrowNew(jcls, "Hardware Buffer is only supported on Android 27+.");
return 0;
#endif
}
Expand Down
4 changes: 2 additions & 2 deletions samples/hello_ar_c/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ android {

dependencies {
// ARCore (Google Play Services for AR) library.
implementation 'com.google.ar:core:1.46.0'
natives 'com.google.ar:core:1.46.0'
implementation 'com.google.ar:core:1.47.0'
natives 'com.google.ar:core:1.47.0'

implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.google.android.material:material:1.1.0'
Expand Down
2 changes: 1 addition & 1 deletion samples/hello_ar_java/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ android {

dependencies {
// ARCore (Google Play Services for AR) library.
implementation 'com.google.ar:core:1.46.0'
implementation 'com.google.ar:core:1.47.0'

// Obj - a simple Wavefront OBJ file loader
// https://github.com/javagl/Obj
Expand Down
2 changes: 1 addition & 1 deletion samples/hello_ar_kotlin/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ android {

dependencies {
// ARCore (Google Play Services for AR) library.
implementation 'com.google.ar:core:1.46.0'
implementation 'com.google.ar:core:1.47.0'

// Obj - a simple Wavefront OBJ file loader
// https://github.com/javagl/Obj
Expand Down
4 changes: 2 additions & 2 deletions samples/hello_ar_vulkan_c/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ android {

dependencies {
// ARCore (Google Play Services for AR) library.
implementation 'com.google.ar:core:1.46.0'
natives 'com.google.ar:core:1.46.0'
implementation 'com.google.ar:core:1.47.0'
natives 'com.google.ar:core:1.47.0'

implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.google.android.material:material:1.1.0'
Expand Down
2 changes: 1 addition & 1 deletion samples/hello_eis_kotlin/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ android {

dependencies {
// ARCore (Google Play Services for AR) library.
implementation 'com.google.ar:core:1.46.0'
implementation 'com.google.ar:core:1.47.0'

// Obj - a simple Wavefront OBJ file loader
// https://github.com/javagl/Obj
Expand Down
2 changes: 1 addition & 1 deletion samples/ml_kotlin/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ dependencies {
implementation 'com.google.mlkit:object-detection-custom:16.3.1'

// ARCore (Google Play Services for AR) library.
implementation 'com.google.ar:core:1.46.0'
implementation 'com.google.ar:core:1.47.0'

// Obj - a simple Wavefront OBJ file loader
// https://github.com/javagl/Obj
Expand Down
2 changes: 1 addition & 1 deletion samples/persistent_cloud_anchor_java/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ repositories {

dependencies {
// ARCore (Google Play Services for AR) library.
implementation 'com.google.ar:core:1.46.0'
implementation 'com.google.ar:core:1.47.0'

// Obj - a simple Wavefront OBJ file loader
// https://github.com/javagl/Obj
Expand Down
2 changes: 1 addition & 1 deletion samples/raw_depth_java/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ android {

dependencies {
// ARCore (Google Play Services for AR) library.
implementation 'com.google.ar:core:1.46.0'
implementation 'com.google.ar:core:1.47.0'

// Obj - a simple Wavefront OBJ file loader
// https://github.com/javagl/Obj
Expand Down
2 changes: 1 addition & 1 deletion samples/recording_playback_java/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ android {

dependencies {
// ARCore (Google Play Services for AR) library.
implementation 'com.google.ar:core:1.46.0'
implementation 'com.google.ar:core:1.47.0'

// Obj - a simple Wavefront OBJ file loader
// https://github.com/javagl/Obj
Expand Down
2 changes: 1 addition & 1 deletion samples/semantics_java/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ android {

dependencies {
// ARCore (Google Play Services for AR) library.
implementation 'com.google.ar:core:1.46.0'
implementation 'com.google.ar:core:1.47.0'

// Obj - a simple Wavefront OBJ file loader
// https://github.com/javagl/Obj
Expand Down
2 changes: 1 addition & 1 deletion samples/shared_camera_java/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ android {

dependencies {
// ARCore (Google Play Services for AR) library.
implementation 'com.google.ar:core:1.46.0'
implementation 'com.google.ar:core:1.47.0'

// Obj - a simple Wavefront OBJ file loader
// https://github.com/javagl/Obj
Expand Down

0 comments on commit dc7ef72

Please sign in to comment.