Skip to content

Commit

Permalink
ARCore Android SDK v1.46.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Fine committed Oct 10, 2024
1 parent 8d888a7 commit bf322eb
Show file tree
Hide file tree
Showing 85 changed files with 326 additions and 154 deletions.
11 changes: 6 additions & 5 deletions samples/augmented_faces_java/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,21 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 34
namespace "com.google.ar.core.examples.java.augmentedfaces"
compileSdkVersion 35
defaultConfig {
applicationId "com.google.ar.core.examples.java.augmentedfaces"

// AR Optional apps must declare minSdkVersion >= 14.
// AR Required apps must declare minSdkVersion >= 24.
minSdkVersion 24
targetSdkVersion 34
targetSdkVersion 35
versionCode 1
versionName '1.0'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
buildTypes {
release {
Expand All @@ -41,7 +42,7 @@ android {

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

// Obj - a simple Wavefront OBJ file loader
// https://github.com/javagl/Obj
Expand Down
7 changes: 7 additions & 0 deletions samples/augmented_faces_java/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@
package="com.google.ar.core.examples.java.augmentedfaces">

<uses-permission android:name="android.permission.CAMERA"/>
<!-- Required to post notifications for Android T+ devices -->

<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<!-- Google Play assumes that certain hardware related permissions indicate that the underlying
hardware features are required by default.
(https://developer.android.com/topic/arc/manifest.html#implied-features). -->
<uses-feature android:name="android.hardware.camera" android:required="true" />
<!-- Limits app visibility in the Google Play Store to ARCore supported devices
(https://developers.google.com/ar/devices). -->
<uses-feature android:name="android.hardware.camera.ar" android:required="true"/>
Expand Down
2 changes: 1 addition & 1 deletion samples/augmented_faces_java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
classpath 'com.android.tools.build:gradle:8.4.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
13 changes: 7 additions & 6 deletions samples/augmented_image_c/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ def arcore_libpath = "${buildDir}/arcore-native"
configurations { natives }

android {
compileSdkVersion 34
namespace "com.google.ar.core.examples.c.augmentedimage"
compileSdkVersion 35
defaultConfig {
applicationId "com.google.ar.core.examples.c.augmentedimage"

// "AR Optional" apps must declare minSdkVersion >= 14.
// "AR Required" apps must declare minSdkVersion >= 24.
minSdkVersion 24
targetSdkVersion 34
targetSdkVersion 35
versionCode 1
versionName '1.0'

Expand All @@ -50,8 +51,8 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
buildTypes {
release {
Expand All @@ -68,8 +69,8 @@ android {

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

implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.google.android.material:material:1.1.0'
Expand Down
7 changes: 7 additions & 0 deletions samples/augmented_image_c/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
package="com.google.ar.core.examples.c.augmentedimage">

<uses-permission android:name="android.permission.CAMERA"/>
<!-- Required to post notifications for Android T+ devices -->

<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<!-- Google Play assumes that certain hardware related permissions indicate that the underlying
hardware features are required by default.
(https://developer.android.com/topic/arc/manifest.html#implied-features). -->
<uses-feature android:name="android.hardware.camera" android:required="true" />
<!-- Limits app visibility in the Google Play Store to ARCore supported devices
(https://developers.google.com/ar/devices). -->
<uses-feature android:name="android.hardware.camera.ar" android:required="true"/>
Expand Down
2 changes: 2 additions & 0 deletions samples/augmented_image_c/app/src/main/cpp/glm.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
#define C_ARCORE_AUGMENTED_IMAGE_GLM_H_

#define GLM_FORCE_RADIANS 1
#ifndef GLM_ENABLE_EXPERIMENTAL
#define GLM_ENABLE_EXPERIMENTAL
#endif
#include "glm.hpp"
#include "gtc/matrix_transform.hpp"
#include "gtc/type_ptr.hpp"
Expand Down
2 changes: 1 addition & 1 deletion samples/augmented_image_c/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
classpath 'com.android.tools.build:gradle:8.4.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
11 changes: 6 additions & 5 deletions samples/augmented_image_java/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,21 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 34
namespace "com.google.ar.core.examples.java.augmentedimage"
compileSdkVersion 35
defaultConfig {
applicationId "com.google.ar.core.examples.java.augmentedimage"

// "AR Optional" apps must declare minSdkVersion >= 14.
// "AR Required" apps must declare minSdkVersion >= 24.
minSdkVersion 24
targetSdkVersion 34
targetSdkVersion 35
versionCode 1
versionName '1.0'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
buildTypes {
release {
Expand All @@ -41,7 +42,7 @@ android {

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

// Obj - a simple Wavefront OBJ file loader
// https://github.com/javagl/Obj
Expand Down
7 changes: 7 additions & 0 deletions samples/augmented_image_java/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@
package="com.google.ar.core.examples.java.augmentedimage">

<uses-permission android:name="android.permission.CAMERA"/>
<!-- Required to post notifications for Android T+ devices -->

<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<!-- Google Play assumes that certain hardware related permissions indicate that the underlying
hardware features are required by default.
(https://developer.android.com/topic/arc/manifest.html#implied-features). -->
<uses-feature android:name="android.hardware.camera" android:required="true" />
<!-- Limits app visibility in the Google Play Store to ARCore supported devices
(https://developers.google.com/ar/devices). -->
<uses-feature android:name="android.hardware.camera.ar" android:required="true"/>
Expand Down
2 changes: 1 addition & 1 deletion samples/augmented_image_java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
classpath 'com.android.tools.build:gradle:8.4.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
11 changes: 6 additions & 5 deletions samples/cloud_anchor_java/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,21 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 34
namespace "com.google.ar.core.examples.java.cloudanchor"
compileSdkVersion 35
defaultConfig {
applicationId "com.google.ar.core.examples.java.cloudanchor"

// "AR Optional" apps must declare minSdkVersion >= 14.
// "AR Required" apps must declare minSdkVersion >= 24.
minSdkVersion 24
targetSdkVersion 34
targetSdkVersion 35
versionCode 1
versionName '1.0'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
buildTypes {
release {
Expand All @@ -41,7 +42,7 @@ android {

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

// Obj - a simple Wavefront OBJ file loader
// https://github.com/javagl/Obj
Expand Down
7 changes: 7 additions & 0 deletions samples/cloud_anchor_java/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@
<uses-permission android:name="android.permission.INTERNET" />

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<!-- Required to post notifications for Android T+ devices -->

<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<!-- Google Play assumes that certain hardware related permissions indicate that the underlying
hardware features are required by default.
(https://developer.android.com/topic/arc/manifest.html#implied-features). -->
<uses-feature android:name="android.hardware.camera" android:required="true" />
<!-- Limits app visibility in the Google Play Store to ARCore supported devices
(https://developers.google.com/ar/devices). -->
<uses-feature android:name="android.hardware.camera.ar" android:required="true"/>
Expand Down
4 changes: 2 additions & 2 deletions samples/cloud_anchor_java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
classpath 'com.google.gms:google-services:4.3.10'
classpath 'com.android.tools.build:gradle:8.4.0'
classpath 'com.google.gms:google-services:4.3.15'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
13 changes: 7 additions & 6 deletions samples/computervision_c/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ def arcore_libpath = "${buildDir}/arcore-native"
configurations { natives }

android {
compileSdkVersion 34
namespace "com.google.ar.core.examples.c.computervision"
compileSdkVersion 35
defaultConfig {
applicationId "com.google.ar.core.examples.c.computervision"

// "AR Optional" apps must declare minSdkVersion >= 14.
// "AR Required" apps must declare minSdkVersion >= 24.
minSdkVersion 24
targetSdkVersion 34
targetSdkVersion 35
versionCode 1
versionName '1.0'

Expand All @@ -50,8 +51,8 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
buildTypes {
release {
Expand All @@ -68,8 +69,8 @@ android {

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

implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.google.android.material:material:1.1.0'
Expand Down
7 changes: 7 additions & 0 deletions samples/computervision_c/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
package="com.google.ar.core.examples.c.computervision">

<uses-permission android:name="android.permission.CAMERA"/>
<!-- Required to post notifications for Android T+ devices -->

<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<!-- Google Play assumes that certain hardware related permissions indicate that the underlying
hardware features are required by default.
(https://developer.android.com/topic/arc/manifest.html#implied-features). -->
<uses-feature android:name="android.hardware.camera" android:required="true" />
<!-- Limits app visibility in the Google Play Store to ARCore supported devices
(https://developers.google.com/ar/devices). -->
<uses-feature android:name="android.hardware.camera.ar" android:required="true"/>
Expand Down
2 changes: 1 addition & 1 deletion samples/computervision_c/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
classpath 'com.android.tools.build:gradle:8.4.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
11 changes: 6 additions & 5 deletions samples/computervision_java/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,21 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 34
namespace "com.google.ar.core.examples.java.computervision"
compileSdkVersion 35
defaultConfig {
applicationId "com.google.ar.core.examples.java.computervision"

// "AR Optional" apps must declare minSdkVersion >= 14.
// "AR Required" apps must declare minSdkVersion >= 24.
minSdkVersion 24
targetSdkVersion 34
targetSdkVersion 35
versionCode 1
versionName '1.0'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
buildTypes {
release {
Expand All @@ -41,7 +42,7 @@ android {

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

// Obj - a simple Wavefront OBJ file loader
// https://github.com/javagl/Obj
Expand Down
7 changes: 7 additions & 0 deletions samples/computervision_java/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@
package="com.google.ar.core.examples.java.computervision">

<uses-permission android:name="android.permission.CAMERA"/>
<!-- Required to post notifications for Android T+ devices -->

<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<!-- Google Play assumes that certain hardware related permissions indicate that the underlying
hardware features are required by default.
(https://developer.android.com/topic/arc/manifest.html#implied-features). -->
<uses-feature android:name="android.hardware.camera" android:required="true" />
<!-- Limits app visibility in the Google Play Store to ARCore supported devices
(https://developers.google.com/ar/devices). -->
<uses-feature android:name="android.hardware.camera.ar" android:required="true"/>
Expand Down
2 changes: 1 addition & 1 deletion samples/computervision_java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
classpath 'com.android.tools.build:gradle:8.4.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
Loading

0 comments on commit bf322eb

Please sign in to comment.