Skip to content
This repository was archived by the owner on Nov 8, 2019. It is now read-only.

Commit cf95fd0

Browse files
author
Noel Victor
committed
GVR SDK Android 1.160.0
1 parent a075e0b commit cf95fd0

File tree

96 files changed

+49070
-56
lines changed

Some content is hidden

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

96 files changed

+49070
-56
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,7 @@ For first time users, see the
1111
[Get Started with Google VR on Android](//developers.google.com/vr/android/get-started)
1212
guide.
1313

14+
SDK releases are availble from the
15+
[releases](//github.com/googlevr/gvr-android-sdk/releases) page.
16+
1417
Please note, we do not accept pull requests.

apks/controller_emulator.apk

56.2 KB
Binary file not shown.

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ task clean(type: Delete) {
3535
// The dependencies for NDK builds live inside the .aar files so they need to
3636
// be extracted before NDK targets can build.
3737
task extractAudioSo(type: Copy) {
38-
from zipTree("${project.rootDir}/libraries/sdk-audio-1.150.0.aar")
38+
from zipTree("${project.rootDir}/libraries/sdk-audio-1.160.0.aar")
3939
into "${project.rootDir}/libraries/"
4040
include "jni/**/libgvr_audio.so"
4141
}
4242

4343
task extractGvrSo(type: Copy) {
44-
from zipTree("${project.rootDir}/libraries/sdk-base-1.150.0.aar")
44+
from zipTree("${project.rootDir}/libraries/sdk-base-1.160.0.aar")
4545
into "${project.rootDir}/libraries/"
4646
include "jni/**/libgvr.so"
4747
}

libraries/headers/vr/gvr/capi/include/gvr_version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ extern "C" {
2323
/// A string representation of the current GVR build version. This is of
2424
/// the form "MAJOR.MINOR.PATCH". Note that this may differ from the runtime
2525
/// GVR version as reported by gvr_get_version_string().
26-
#define GVR_SDK_VERSION_STRING "1.150.0"
26+
#define GVR_SDK_VERSION_STRING "1.160.0"
2727

2828
/// Semantic components for the current GVR build version. Note that these
2929
/// values may differ from the runtime GVR version as reported by
3030
/// gvr_get_version().
3131
enum {
3232
GVR_SDK_MAJOR_VERSION = 1,
33-
GVR_SDK_MINOR_VERSION = 150,
33+
GVR_SDK_MINOR_VERSION = 160,
3434
GVR_SDK_PATCH_VERSION = 0,
3535
};
3636

libraries/sdk-audio-1.150.0.aar

-1.27 MB
Binary file not shown.

libraries/sdk-audio-1.160.0.aar

1.25 MB
Binary file not shown.

libraries/sdk-audio-1.150.0.pom renamed to libraries/sdk-audio-1.160.0.pom

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.google.vr</groupId>
66
<artifactId>sdk-audio</artifactId>
7-
<version>1.150.0</version>
7+
<version>1.160.0</version>
88
<packaging>aar</packaging>
99

1010
<name>Google VR SDK-Audio</name>
@@ -19,7 +19,7 @@
1919
<groupId>com.google.vr</groupId>
2020
<artifactId>sdk-base</artifactId>
2121
<type>aar</type>
22-
<version>1.150.0</version>
22+
<version>1.160.0</version>
2323
</dependency>
2424
</dependencies>
2525
</project>

libraries/sdk-base-1.150.0.aar

-2.69 MB
Binary file not shown.

libraries/sdk-base-1.160.0.aar

2.66 MB
Binary file not shown.

libraries/sdk-base-1.150.0.pom renamed to libraries/sdk-base-1.160.0.pom

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.google.vr</groupId>
66
<artifactId>sdk-base</artifactId>
7-
<version>1.150.0</version>
7+
<version>1.160.0</version>
88
<packaging>aar</packaging>
99

1010
<name>Google VR SDK-Base</name>
@@ -19,7 +19,7 @@
1919
<groupId>com.google.vr</groupId>
2020
<artifactId>sdk-common</artifactId>
2121
<type>aar</type>
22-
<version>1.150.0</version>
22+
<version>1.160.0</version>
2323
</dependency>
2424
</dependencies>
2525
</project>

libraries/sdk-common-1.150.0.aar

-498 KB
Binary file not shown.

libraries/sdk-common-1.160.0.aar

487 KB
Binary file not shown.

libraries/sdk-common-1.150.0.pom renamed to libraries/sdk-common-1.160.0.pom

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.google.vr</groupId>
66
<artifactId>sdk-common</artifactId>
7-
<version>1.150.0</version>
7+
<version>1.160.0</version>
88
<packaging>aar</packaging>
99

1010
<name>Google VR SDK-Common</name>

libraries/sdk-commonwidget-1.150.0.pom renamed to libraries/sdk-commonwidget-1.160.0.pom

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.google.vr</groupId>
66
<artifactId>sdk-commonwidget</artifactId>
7-
<version>1.150.0</version>
7+
<version>1.160.0</version>
88
<packaging>aar</packaging>
99

1010
<name>Google VR SDK-CommonWidget</name>
@@ -19,7 +19,7 @@
1919
<groupId>com.google.vr</groupId>
2020
<artifactId>sdk-common</artifactId>
2121
<type>aar</type>
22-
<version>1.150.0</version>
22+
<version>1.160.0</version>
2323
</dependency>
2424
</dependencies>
2525
</project>

libraries/sdk-controller-1.150.0.pom renamed to libraries/sdk-controller-1.160.0.pom

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.google.vr</groupId>
66
<artifactId>sdk-controller</artifactId>
7-
<version>1.150.0</version>
7+
<version>1.160.0</version>
88
<packaging>aar</packaging>
99

1010
<name>Google VR SDK-Controller</name>
@@ -19,7 +19,7 @@
1919
<groupId>com.google.vr</groupId>
2020
<artifactId>sdk-base</artifactId>
2121
<type>aar</type>
22-
<version>1.150.0</version>
22+
<version>1.160.0</version>
2323
</dependency>
2424
</dependencies>
2525
</project>

libraries/sdk-panowidget-1.150.0.aar

-3.26 MB
Binary file not shown.

libraries/sdk-panowidget-1.160.0.aar

3.23 MB
Binary file not shown.

libraries/sdk-panowidget-1.150.0.pom renamed to libraries/sdk-panowidget-1.160.0.pom

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.google.vr</groupId>
66
<artifactId>sdk-panowidget</artifactId>
7-
<version>1.150.0</version>
7+
<version>1.160.0</version>
88
<packaging>aar</packaging>
99

1010
<name>Google VR SDK-CommonWidget</name>
@@ -19,7 +19,7 @@
1919
<groupId>com.google.vr</groupId>
2020
<artifactId>sdk-commonwidget</artifactId>
2121
<type>aar</type>
22-
<version>1.150.0</version>
22+
<version>1.160.0</version>
2323
</dependency>
2424
</dependencies>
2525
</project>

libraries/sdk-videowidget-1.150.0.aar

-3.56 MB
Binary file not shown.

libraries/sdk-videowidget-1.160.0.aar

3.41 MB
Binary file not shown.

libraries/sdk-videowidget-1.150.0.pom renamed to libraries/sdk-videowidget-1.160.0.pom

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.google.vr</groupId>
66
<artifactId>sdk-videowidget</artifactId>
7-
<version>1.150.0</version>
7+
<version>1.160.0</version>
88
<packaging>aar</packaging>
99

1010
<name>Google VR SDK-CommonWidget</name>
@@ -32,7 +32,7 @@
3232
<groupId>com.google.vr</groupId>
3333
<artifactId>sdk-commonwidget</artifactId>
3434
<type>aar</type>
35-
<version>1.150.0</version>
35+
<version>1.160.0</version>
3636
</dependency>
3737
</dependencies>
3838
</project>

samples/ndk-controllerpaint/build.gradle

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

4343

4444
dependencies {
45-
compile 'com.google.vr:sdk-base:1.150.0'
45+
compile 'com.google.vr:sdk-base:1.160.0'
4646
}
4747

4848
build.dependsOn(':extractNdk')

samples/ndk-controllerpaint/src/main/AndroidManifest.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
package="com.google.vr.ndk.samples.controllerpaint"
4-
android:versionCode="180423014"
5-
android:versionName="1.150.0">
4+
android:versionCode="180604046"
5+
android:versionName="1.160.0">
66

77
<!-- The Daydream SDK requires API 24+ and OpenGL ES 3.2+. -->
88
<uses-sdk android:minSdkVersion="24" android:targetSdkVersion="24" />
@@ -40,7 +40,7 @@
4040
android:name=".MainActivity"
4141
android:label="@string/app_name"
4242
android:screenOrientation="landscape"
43-
android:configChanges="orientation|keyboardHidden|screenSize|uiMode|navigation"
43+
android:configChanges="orientation|keyboardHidden|screenSize|uiMode|navigation|density"
4444
android:enableVrMode="@string/gvr_vr_mode_component"
4545
android:resizeableActivity="false">
4646

samples/ndk-hellovr/CMakeLists.txt

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# For more information about using CMake with Android Studio, read the
2+
# documentation: https://d.android.com/studio/projects/add-native-code.html
3+
4+
cmake_minimum_required(VERSION 3.4.1)
5+
6+
# Configure the sample code.
7+
file(GLOB native_srcs "src/main/jni/*.cc")
8+
add_library(hellovr_jni
9+
SHARED
10+
${native_srcs})
11+
12+
# Include the GVR headers & libraries.
13+
include_directories(${GVR_INCLUDE})
14+
15+
add_library(gvr-lib SHARED IMPORTED)
16+
set_target_properties(
17+
gvr-lib
18+
PROPERTIES IMPORTED_LOCATION ${GVR_LIBPATH}/${ANDROID_ABI}/libgvr.so)
19+
20+
add_library(gvraudio-lib SHARED IMPORTED)
21+
set_target_properties(
22+
gvraudio-lib
23+
PROPERTIES IMPORTED_LOCATION ${GVR_LIBPATH}/${ANDROID_ABI}/libgvr_audio.so)
24+
25+
# Include general Android libraries.
26+
find_library(android-lib android)
27+
find_library(EGL-lib EGL)
28+
find_library(GLESv2-lib GLESv2)
29+
find_library(log-lib log)
30+
31+
# Build final libhellovr_jni.so
32+
target_link_libraries(hellovr_jni
33+
gvr-lib
34+
gvraudio-lib
35+
36+
${android-lib}
37+
${EGL-lib}
38+
${GLESv2-lib}
39+
${log-lib} )

samples/ndk-hellovr/build.gradle

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
/*
2+
* Copyright 2018 Google Inc. All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
apply plugin: 'com.android.application'
18+
19+
android {
20+
compileSdkVersion 26
21+
defaultConfig {
22+
applicationId "com.google.vr.ndk.samples.hellovr"
23+
minSdkVersion 19
24+
targetSdkVersion 24
25+
versionCode 1
26+
versionName "1.0"
27+
externalNativeBuild {
28+
cmake {
29+
cppFlags "-std=gnu++11"
30+
arguments "-DGVR_LIBPATH=${project.rootDir}/libraries/jni",
31+
"-DGVR_INCLUDE=${project.rootDir}/libraries/headers"
32+
}
33+
}
34+
buildTypes {
35+
release {
36+
minifyEnabled = true
37+
proguardFiles.add(file("${project.rootDir}/proguard-gvr.txt"))
38+
}
39+
}
40+
ndk {
41+
// This sample builds all architectures by default. Note that if you
42+
// only want to build for a specific architecture, you need to
43+
// remove the appropriate lines below. You also need to remove the
44+
// .so files from the apk using
45+
// "packagingOptions {exclude('lib/armeabi-v7a/*')}" in the android
46+
// section.
47+
abiFilters "arm64-v8a"
48+
abiFilters "armeabi-v7a"
49+
abiFilters "x86"
50+
}
51+
}
52+
externalNativeBuild {
53+
cmake {
54+
path "CMakeLists.txt"
55+
}
56+
}
57+
}
58+
59+
60+
dependencies {
61+
compile 'com.google.vr:sdk-audio:1.160.0'
62+
compile 'com.google.vr:sdk-base:1.160.0'
63+
}
64+
65+
build.dependsOn(':extractNdk')
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.google.vr.ndk.samples.hellovr"
4+
android:versionCode="180604046"
5+
android:versionName="1.160.0">
6+
7+
<!-- The GVR SDK requires API 19+ and OpenGL ES 2+. -->
8+
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="24" />
9+
<uses-feature android:glEsVersion="0x00020000" android:required="true" />
10+
11+
<!-- Required for vibration feedback when the trigger action is performed. -->
12+
<uses-permission android:name="android.permission.VIBRATE"/>
13+
<!-- Required to read the paired viewer's distortion parameters. -->
14+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
15+
16+
<!-- Make accelerometer and gyroscope hard requirements for good head tracking. -->
17+
<uses-feature android:name="android.hardware.sensor.accelerometer" android:required="true"/>
18+
<uses-feature android:name="android.hardware.sensor.gyroscope" android:required="true"/>
19+
20+
<!-- Indicates use of Android's VR-mode, available only on Android N+. -->
21+
<uses-feature android:name="android.software.vr.mode" android:required="false"/>
22+
<!-- Indicates use of VR features that are available only on Daydream-ready devices. -->
23+
<uses-feature android:name="android.hardware.vr.high_performance" android:required="false"/>
24+
25+
<!-- Indicates that head tracking should be done in 6DoF, if available -->
26+
<uses-feature
27+
android:name="android.hardware.vr.headtracking"
28+
android:version="1"
29+
android:required="false"/>
30+
31+
<application
32+
android:allowBackup="true"
33+
android:label="HelloVrActivity"
34+
android:theme="@style/VrActivityTheme"
35+
android:icon="@drawable/ic_launcher_hello_vr_round">
36+
<activity
37+
android:name=".HelloVrActivity"
38+
android:label="@string/app_name"
39+
android:screenOrientation="landscape"
40+
android:configChanges="orientation|keyboardHidden|screenSize|uiMode|navigation|density"
41+
android:enableVrMode="@string/gvr_vr_mode_component"
42+
android:resizeableActivity="false">
43+
44+
<!-- The VR icon to be used in Daydream Home comes in two parts:
45+
a foreground icon and a background icon. -->
46+
<meta-data android:name="com.google.android.vr.icon"
47+
android:resource="@drawable/hello_vr_icon_front" />
48+
<meta-data android:name="com.google.android.vr.icon_background"
49+
android:resource="@drawable/hello_vr_icon_back" />
50+
51+
<!-- Intent filter that enables this app to be launched from the
52+
Daydream Home menu. -->
53+
<intent-filter>
54+
<action android:name="android.intent.action.MAIN" />
55+
<category android:name="android.intent.category.LAUNCHER" />
56+
<category android:name="com.google.intent.category.DAYDREAM"/>
57+
</intent-filter>
58+
59+
<!-- Intent filter that enables this app to be launched from the
60+
Cardboard app and from the traditional launcher. -->
61+
<intent-filter>
62+
<action android:name="android.intent.action.MAIN" />
63+
<category android:name="android.intent.category.LAUNCHER" />
64+
<category android:name="com.google.intent.category.CARDBOARD" />
65+
</intent-filter>
66+
</activity>
67+
</application>
68+
</manifest>

0 commit comments

Comments
 (0)