Skip to content

Commit bf322eb

Browse files
author
Mark Fine
committed
ARCore Android SDK v1.46.0
1 parent 8d888a7 commit bf322eb

File tree

85 files changed

+326
-154
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+326
-154
lines changed

samples/augmented_faces_java/app/build.gradle

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,21 @@
1616
apply plugin: 'com.android.application'
1717

1818
android {
19-
compileSdkVersion 34
19+
namespace "com.google.ar.core.examples.java.augmentedfaces"
20+
compileSdkVersion 35
2021
defaultConfig {
2122
applicationId "com.google.ar.core.examples.java.augmentedfaces"
2223

2324
// AR Optional apps must declare minSdkVersion >= 14.
2425
// AR Required apps must declare minSdkVersion >= 24.
2526
minSdkVersion 24
26-
targetSdkVersion 34
27+
targetSdkVersion 35
2728
versionCode 1
2829
versionName '1.0'
2930
}
3031
compileOptions {
31-
sourceCompatibility JavaVersion.VERSION_1_8
32-
targetCompatibility JavaVersion.VERSION_1_8
32+
sourceCompatibility JavaVersion.VERSION_17
33+
targetCompatibility JavaVersion.VERSION_17
3334
}
3435
buildTypes {
3536
release {
@@ -41,7 +42,7 @@ android {
4142

4243
dependencies {
4344
// ARCore (Google Play Services for AR) library.
44-
implementation 'com.google.ar:core:1.45.0'
45+
implementation 'com.google.ar:core:1.46.0'
4546

4647
// Obj - a simple Wavefront OBJ file loader
4748
// https://github.com/javagl/Obj

samples/augmented_faces_java/app/src/main/AndroidManifest.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@
1919
package="com.google.ar.core.examples.java.augmentedfaces">
2020

2121
<uses-permission android:name="android.permission.CAMERA"/>
22+
<!-- Required to post notifications for Android T+ devices -->
23+
24+
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
25+
<!-- Google Play assumes that certain hardware related permissions indicate that the underlying
26+
hardware features are required by default.
27+
(https://developer.android.com/topic/arc/manifest.html#implied-features). -->
28+
<uses-feature android:name="android.hardware.camera" android:required="true" />
2229
<!-- Limits app visibility in the Google Play Store to ARCore supported devices
2330
(https://developers.google.com/ar/devices). -->
2431
<uses-feature android:name="android.hardware.camera.ar" android:required="true"/>

samples/augmented_faces_java/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ buildscript {
2121
mavenCentral()
2222
}
2323
dependencies {
24-
classpath 'com.android.tools.build:gradle:7.1.2'
24+
classpath 'com.android.tools.build:gradle:8.4.0'
2525
// NOTE: Do not place your application dependencies here; they belong
2626
// in the individual module build.gradle files
2727
}

samples/augmented_faces_java/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip

samples/augmented_image_c/app/build.gradle

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,15 @@ def arcore_libpath = "${buildDir}/arcore-native"
2525
configurations { natives }
2626

2727
android {
28-
compileSdkVersion 34
28+
namespace "com.google.ar.core.examples.c.augmentedimage"
29+
compileSdkVersion 35
2930
defaultConfig {
3031
applicationId "com.google.ar.core.examples.c.augmentedimage"
3132

3233
// "AR Optional" apps must declare minSdkVersion >= 14.
3334
// "AR Required" apps must declare minSdkVersion >= 24.
3435
minSdkVersion 24
35-
targetSdkVersion 34
36+
targetSdkVersion 35
3637
versionCode 1
3738
versionName '1.0'
3839

@@ -50,8 +51,8 @@ android {
5051
}
5152
}
5253
compileOptions {
53-
sourceCompatibility JavaVersion.VERSION_1_8
54-
targetCompatibility JavaVersion.VERSION_1_8
54+
sourceCompatibility JavaVersion.VERSION_17
55+
targetCompatibility JavaVersion.VERSION_17
5556
}
5657
buildTypes {
5758
release {
@@ -68,8 +69,8 @@ android {
6869

6970
dependencies {
7071
// ARCore (Google Play Services for AR) library.
71-
implementation 'com.google.ar:core:1.45.0'
72-
natives 'com.google.ar:core:1.45.0'
72+
implementation 'com.google.ar:core:1.46.0'
73+
natives 'com.google.ar:core:1.46.0'
7374

7475
implementation 'androidx.appcompat:appcompat:1.1.0'
7576
implementation 'com.google.android.material:material:1.1.0'

samples/augmented_image_c/app/src/main/AndroidManifest.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@
1818
package="com.google.ar.core.examples.c.augmentedimage">
1919

2020
<uses-permission android:name="android.permission.CAMERA"/>
21+
<!-- Required to post notifications for Android T+ devices -->
22+
23+
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
24+
<!-- Google Play assumes that certain hardware related permissions indicate that the underlying
25+
hardware features are required by default.
26+
(https://developer.android.com/topic/arc/manifest.html#implied-features). -->
27+
<uses-feature android:name="android.hardware.camera" android:required="true" />
2128
<!-- Limits app visibility in the Google Play Store to ARCore supported devices
2229
(https://developers.google.com/ar/devices). -->
2330
<uses-feature android:name="android.hardware.camera.ar" android:required="true"/>

samples/augmented_image_c/app/src/main/cpp/glm.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
#define C_ARCORE_AUGMENTED_IMAGE_GLM_H_
1818

1919
#define GLM_FORCE_RADIANS 1
20+
#ifndef GLM_ENABLE_EXPERIMENTAL
2021
#define GLM_ENABLE_EXPERIMENTAL
22+
#endif
2123
#include "glm.hpp"
2224
#include "gtc/matrix_transform.hpp"
2325
#include "gtc/type_ptr.hpp"

samples/augmented_image_c/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ buildscript {
2121
mavenCentral()
2222
}
2323
dependencies {
24-
classpath 'com.android.tools.build:gradle:7.1.2'
24+
classpath 'com.android.tools.build:gradle:8.4.0'
2525
// NOTE: Do not place your application dependencies here; they belong
2626
// in the individual module build.gradle files
2727
}

samples/augmented_image_c/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip

samples/augmented_image_java/app/build.gradle

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,21 @@
1616
apply plugin: 'com.android.application'
1717

1818
android {
19-
compileSdkVersion 34
19+
namespace "com.google.ar.core.examples.java.augmentedimage"
20+
compileSdkVersion 35
2021
defaultConfig {
2122
applicationId "com.google.ar.core.examples.java.augmentedimage"
2223

2324
// "AR Optional" apps must declare minSdkVersion >= 14.
2425
// "AR Required" apps must declare minSdkVersion >= 24.
2526
minSdkVersion 24
26-
targetSdkVersion 34
27+
targetSdkVersion 35
2728
versionCode 1
2829
versionName '1.0'
2930
}
3031
compileOptions {
31-
sourceCompatibility JavaVersion.VERSION_1_8
32-
targetCompatibility JavaVersion.VERSION_1_8
32+
sourceCompatibility JavaVersion.VERSION_17
33+
targetCompatibility JavaVersion.VERSION_17
3334
}
3435
buildTypes {
3536
release {
@@ -41,7 +42,7 @@ android {
4142

4243
dependencies {
4344
// ARCore (Google Play Services for AR) library.
44-
implementation 'com.google.ar:core:1.45.0'
45+
implementation 'com.google.ar:core:1.46.0'
4546

4647
// Obj - a simple Wavefront OBJ file loader
4748
// https://github.com/javagl/Obj

0 commit comments

Comments
 (0)