Skip to content

Commit

Permalink
Merge pull request #13 from ViroCommunity/arcore-1.26.0
Browse files Browse the repository at this point in the history
arcore-1.26.0
  • Loading branch information
doranteseduardo authored Sep 5, 2021
2 parents e576b76 + 172700d commit 88cbdb2
Show file tree
Hide file tree
Showing 56 changed files with 3,051 additions and 1,323 deletions.
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ android {
compileSdkVersion 30

defaultConfig {
minSdkVersion 21
minSdkVersion 24
targetSdkVersion 30

ndk {
// Specifies the ABI configurations of your native
// libraries Gradle should build and package with your APK.
abiFilters "armeabi-v7a", "arm64-v8a"
abiFilters "arm64-v8a", "armeabi-v7a"
}
}

Expand Down
2 changes: 1 addition & 1 deletion android/libs/arcore/build.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configurations.maybeCreate("default")
artifacts.add("default", file('core-1.10.0.aar'))
artifacts.add("default", file('core-1.26.0.aar'))
Binary file removed android/libs/arcore/core-1.10.0.aar
Binary file not shown.
Binary file added android/libs/arcore/core-1.26.0.aar
Binary file not shown.
4,207 changes: 2,974 additions & 1,233 deletions android/libs/arcore/include/arcore_c_api.h

Large diffs are not rendered by default.

7 changes: 1 addition & 6 deletions android/memoryleaktest/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ android {
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
missingDimensionStrategy 'product', 'viro_core'
ndk {
abiFilters "armeabi-v7a", "arm64-v8a"
abiFilters "arm64-v8a", "armeabi-v7a"
}
}
buildTypes {
Expand Down Expand Up @@ -52,11 +52,6 @@ android {
}
sourceSets { main { assets.srcDirs = ['src/main/assets', 'src/main/assets/'] } }

// Keep the following configuration in order to target Java 8.
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {
Expand Down
6 changes: 4 additions & 2 deletions android/memoryleaktest/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.memoryleaktest">

<queries>
<package android:name="com.google.ar.core"/>
</queries>

<!-- Required for AR -->
<uses-permission android:name="android.permission.CAMERA"/>

Expand All @@ -11,8 +15,6 @@
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<meta-data android:name="com.viromedia.API_KEY"
android:value="7EEDCB99-2C3B-4681-AE17-17BC165BF792" />

<activity android:name=".MainActivity">
<intent-filter>
Expand Down
4 changes: 2 additions & 2 deletions android/nativetest/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ android {

defaultConfig {
applicationId "com.viro.nativetest"
minSdkVersion 21
minSdkVersion 24
targetSdkVersion 30
versionCode 1
versionName "1.0"
missingDimensionStrategy 'product', 'viro_core'
ndk {
abiFilters "armeabi-v7a", "arm64-v8a"
abiFilters "arm64-v8a", "armeabi-v7a"
}
}
buildTypes {
Expand Down
4 changes: 4 additions & 0 deletions android/nativetest/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.viromedia.nativetest">

<queries>
<package android:name="com.google.ar.core"/>
</queries>

<!-- Required to read the paired viewer's distortion parameters -->
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>

Expand Down
8 changes: 2 additions & 6 deletions android/releasetest/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ android {
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
missingDimensionStrategy 'product', 'viro_core'
ndk {
abiFilters "armeabi-v7a", "arm64-v8a"
abiFilters "arm64-v8a", "armeabi-v7a"
}
}
buildTypes {
Expand Down Expand Up @@ -71,11 +71,7 @@ android {
showStandardStreams true
}
}
// Keep the following configuration in order to target Java 8.
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

}

dependencies {
Expand Down
4 changes: 4 additions & 0 deletions android/releasetest/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.viromedia.releasetest">

<queries>
<package android:name="com.google.ar.core"/>
</queries>

<!-- Required to read the paired viewer's distortion parameters -->
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

Expand Down
5 changes: 3 additions & 2 deletions android/renderertest/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ android {

defaultConfig {
applicationId "com.viromedia.renderertest"
minSdkVersion 21
minSdkVersion 24
targetSdkVersion 30
versionCode 1
versionName "1.0"
missingDimensionStrategy 'product', 'viro_core'
ndk {
abiFilters "armeabi-v7a", "arm64-v8a"
abiFilters "arm64-v8a", "armeabi-v7a"
}
}
buildTypes {
Expand All @@ -21,6 +21,7 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

productFlavors {
gvr {
dimension "target_platform"
Expand Down
4 changes: 4 additions & 0 deletions android/renderertest/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.viromedia.renderertest">

<queries>
<package android:name="com.google.ar.core"/>
</queries>

<uses-permission android:name="android.permission.INTERNET" />

<!-- Required to read the paired viewer's distortion parameters -->
Expand Down
2 changes: 1 addition & 1 deletion android/viroar/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ android {
targetSdkVersion 30

ndk {
abiFilters "armeabi-v7a", "arm64-v8a"
abiFilters "arm64-v8a", "armeabi-v7a"
}
externalNativeBuild {
cmake {
Expand Down
Binary file modified android/viroar/src/main/jniLibs/arm64-v8a/libarcore_sdk_c.so
Binary file not shown.
Binary file modified android/viroar/src/main/jniLibs/armeabi-v7a/libarcore_sdk_c.so
Binary file not shown.
Binary file modified android/viroar/src/main/jniLibs/x86/libarcore_sdk_c.so
Binary file not shown.
Binary file modified android/viroar/src/main/jniLibs/x86_64/libarcore_sdk_c.so
Binary file not shown.
4 changes: 2 additions & 2 deletions android/virocore/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ android {
compileSdkVersion 30

defaultConfig {
minSdkVersion 21
minSdkVersion 24
targetSdkVersion 30

ndk {
abiFilters "armeabi-v7a", "arm64-v8a"
abiFilters "arm64-v8a", "armeabi-v7a"
}

externalNativeBuild {
Expand Down
4 changes: 2 additions & 2 deletions android/viroreact/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ android {
compileSdkVersion 30

defaultConfig {
minSdkVersion 21
minSdkVersion 24
targetSdkVersion 30

ndk {
// React Native does not support arm64-v8a yet, so don't bother including
// it here.
// Tracking issue for RN: https://github.com/facebook/react-native/issues/2814
abiFilters "armeabi-v7a", "arm64-v8a"
abiFilters "arm64-v8a", "armeabi-v7a"
}

// Note that viro_arcore does not use STL, so we can still use static STL in viro_native
Expand Down
9 changes: 2 additions & 7 deletions code-samples/ARBlackPanther/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ android {
defaultConfig {
applicationId "com.example.virosample"
applicationIdSuffix ".arcore"
minSdkVersion 21
minSdkVersion 24
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
ndk {
abiFilters "armeabi-v7a", "x86", "armeabi", "mips"
abiFilters "arm64-v8a", "armeabi-v7a", "x86", "armeabi", "mips"
}
}
buildTypes {
Expand All @@ -36,9 +36,4 @@ dependencies {
implementation project(':arcore_client')
implementation project(':viro_core')
implementation 'com.google.protobuf.nano:protobuf-javanano:3.0.0-alpha-7'
implementation 'com.amazonaws:aws-android-sdk-core:2.2.+'
implementation 'com.amazonaws:aws-android-sdk-ddb:2.2.+'
implementation 'com.amazonaws:aws-android-sdk-ddb-mapper:2.2.+'
implementation 'com.amazonaws:aws-android-sdk-cognito:2.2.+'
implementation 'com.amazonaws:aws-android-sdk-cognitoidentityprovider:2.2.+'
}
8 changes: 4 additions & 4 deletions code-samples/ARBlackPanther/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.virosample">

<queries>
<package android:name="com.google.ar.core"/>
</queries>

<!-- Required for AR -->
<uses-permission android:name="android.permission.CAMERA"/>

Expand All @@ -16,10 +20,6 @@
android:supportsRtl="true"
android:theme="@style/AppTheme">

<meta-data
android:name="com.viromedia.API_KEY"
android:value="Your-API-Key-Here" />

<activity
android:name="com.example.virosample.ViroActivityAR"
android:configChanges="keyboardHidden|orientation|screenSize"
Expand Down
2 changes: 1 addition & 1 deletion code-samples/ARBlackPanther/arcore_client/build.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configurations.maybeCreate("default")
artifacts.add("default", file('core-1.10.0.aar'))
artifacts.add("default", file('core-1.26.0.aar'))
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion code-samples/ARBlackPanther/viro_core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configurations.maybeCreate("default")
artifacts.add("default", file('virocore-release-v_1_17_0.aar'))
artifacts.add("default", file('virocore-release.aar'))
Binary file not shown.
9 changes: 2 additions & 7 deletions code-samples/ARHelloWorldAndroid/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ android {

defaultConfig {
applicationId "com.example.virosample"
minSdkVersion 21
minSdkVersion 24
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
ndk {
abiFilters "armeabi-v7a", "x86", "armeabi", "mips"
abiFilters "arm64-v8a", "armeabi-v7a", "x86", "armeabi", "mips"
}
}

Expand Down Expand Up @@ -40,9 +40,4 @@ dependencies {
implementation project(':arcore_client')
implementation project(':viro_core')
implementation 'com.google.protobuf.nano:protobuf-javanano:3.0.0-alpha-7'
implementation 'com.amazonaws:aws-android-sdk-core:2.7.7'
implementation 'com.amazonaws:aws-android-sdk-ddb:2.7.7'
implementation 'com.amazonaws:aws-android-sdk-ddb-mapper:2.7.7'
implementation 'com.amazonaws:aws-android-sdk-cognito:2.7.7'
implementation 'com.amazonaws:aws-android-sdk-cognitoidentityprovider:2.7.7'
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.virosample">

<queries>
<package android:name="com.google.ar.core"/>
</queries>

<!-- Required for AR -->
<uses-permission android:name="android.permission.CAMERA"/>

Expand All @@ -16,10 +20,6 @@
android:supportsRtl="true"
android:theme="@style/AppTheme">

<meta-data
android:name="com.viromedia.API_KEY"
android:value="API_KEY_HERE" />

<meta-data android:name="com.google.ar.core" android:value="optional" />

<activity
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configurations.maybeCreate("default")
artifacts.add("default", file('core-1.10.0.aar'))
artifacts.add("default", file('core-1.26.0.aar'))
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion code-samples/ARHelloWorldAndroid/viro_core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configurations.maybeCreate("default")
artifacts.add("default", file('virocore-release-v_1_17_0.aar'))
artifacts.add("default", file('virocore-release.aar'))
Binary file not shown.
14 changes: 7 additions & 7 deletions code-samples/ARPlacingObjects/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ android {

defaultConfig {
applicationId "com.example.virosample"
minSdkVersion 21
minSdkVersion 24
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
ndk {
abiFilters "armeabi-v7a", "x86", "armeabi", "mips"
abiFilters "arm64-v8a", "armeabi-v7a", "x86", "armeabi", "mips"
}
}

Expand All @@ -25,6 +25,11 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
pickFirst 'lib/armeabi-v7a/libarcore_sdk_c.so'
pickFirst 'lib/arm64-v8a/libarcore_sdk_c.so'
pickFirst 'lib/x86_64/libarcore_sdk_c.so'
}
}

dependencies {
Expand All @@ -40,9 +45,4 @@ dependencies {
implementation project(':arcore_client')
implementation project(':viro_core')
implementation 'com.google.protobuf.nano:protobuf-javanano:3.0.0-alpha-7'
implementation 'com.amazonaws:aws-android-sdk-core:2.7.7'
implementation 'com.amazonaws:aws-android-sdk-ddb:2.7.7'
implementation 'com.amazonaws:aws-android-sdk-ddb-mapper:2.7.7'
implementation 'com.amazonaws:aws-android-sdk-cognito:2.7.7'
implementation 'com.amazonaws:aws-android-sdk-cognitoidentityprovider:2.7.7'
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.virosample">

<queries>
<package android:name="com.google.ar.core"/>
</queries>

<!-- Required for AR -->
<uses-permission android:name="android.permission.CAMERA"/>

Expand All @@ -15,10 +19,7 @@
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">

<meta-data
android:name="com.viromedia.API_KEY"
android:value="7EEDCB99-2C3B-4681-AE17-17BC165BF792" />

<meta-data android:name="com.google.ar.core" android:value="optional" />

<activity
Expand Down
2 changes: 1 addition & 1 deletion code-samples/ARPlacingObjects/arcore_client/build.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configurations.maybeCreate("default")
artifacts.add("default", file('core-1.10.0.aar'))
artifacts.add("default", file('core-1.26.0.aar'))
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion code-samples/ARPlacingObjects/viro_core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configurations.maybeCreate("default")
artifacts.add("default", file('virocore-release-v_1_17_0.aar'))
artifacts.add("default", file('virocore-release.aar'))
Binary file not shown.
Loading

0 comments on commit 88cbdb2

Please sign in to comment.