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

Commit 233e7fe

Browse files
committed
GVR Android SDK v1.130.0
1 parent 3bd22d7 commit 233e7fe

Some content is hidden

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

49 files changed

+98
-770
lines changed

NOTICE

Lines changed: 0 additions & 706 deletions
Large diffs are not rendered by default.

apks/controller_emulator.apk

-63.3 KB
Binary file not shown.

build.gradle

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

4141
task extractGvrSo(type: Copy) {
42-
from zipTree("${project.rootDir}/libraries/sdk-base-1.120.0.aar")
42+
from zipTree("${project.rootDir}/libraries/sdk-base-1.130.0.aar")
4343
into "${project.rootDir}/libraries/"
4444
include "jni/**/libgvr.so"
4545
}

gradle/wrapper/gradle-wrapper.jar

-4 Bytes
Binary file not shown.

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

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -707,10 +707,17 @@ gvr_swap_chain* gvr_swap_chain_create(gvr_context* gvr,
707707
const gvr_buffer_spec** buffers,
708708
int32_t count);
709709

710-
/// Destroys the swap chain and nulls the pointer.
710+
/// Destroys the swap chain and nulls the pointer that is passed in. This
711+
/// should be called after rendering is finished to free all the buffers that
712+
/// have been allocated in the swap chain.
713+
///
714+
/// @param swap_chain The swap chain to destroy.
711715
void gvr_swap_chain_destroy(gvr_swap_chain** swap_chain);
712716

713717
/// Gets the number of buffers in each frame of the swap chain.
718+
///
719+
/// @param swap_chain The swap chain to query.
720+
/// @return The number of buffers in the swap chain.
714721
int32_t gvr_swap_chain_get_buffer_count(const gvr_swap_chain* swap_chain);
715722

716723
/// Retrieves the size of the specified pixel buffer. Note that if the buffer
@@ -800,6 +807,10 @@ AHardwareBuffer* gvr_frame_get_hardware_buffer(const gvr_frame* frame,
800807
/// Submits the frame for distortion and display on the screen. The passed
801808
/// pointer is nulled to prevent reuse.
802809
///
810+
/// Note: On Cardboard devices, this function makes OpenGL commands in the
811+
/// current thread's GL context; this can affect various GL state such as
812+
/// texture bindings, depth testing, backface culling, and blending.
813+
///
803814
/// @param frame The frame to submit.
804815
/// @param list Buffer view configuration to be used for this frame.
805816
/// @param head_space_from_start_space Transform from start space (space with
@@ -1457,7 +1468,7 @@ class GvrApi {
14571468
if (!context) {
14581469
return nullptr;
14591470
}
1460-
return std::unique_ptr<GvrApi>(new GvrApi(context, true /* owned */));
1471+
return std::unique_ptr<GvrApi>(new GvrApi(context, /*owned=*/true));
14611472
}
14621473
#else
14631474
/// Instantiates and returns a GvrApi instance that owns a gvr_context.
@@ -1468,7 +1479,7 @@ class GvrApi {
14681479
if (!context) {
14691480
return nullptr;
14701481
}
1471-
return std::unique_ptr<GvrApi>(new GvrApi(context, true /* owned */));
1482+
return std::unique_ptr<GvrApi>(new GvrApi(context, /*owned=*/true));
14721483
}
14731484
#endif // #ifdef __ANDROID__
14741485

@@ -1699,7 +1710,7 @@ class GvrApi {
16991710
/// @param context Pointer to a non-null, non-owned gvr_context instance.
17001711
/// @return unique_ptr to the created GvrApi instance. Never null.
17011712
static std::unique_ptr<GvrApi> WrapNonOwned(gvr_context* context) {
1702-
return std::unique_ptr<GvrApi>(new GvrApi(context, false /* owned */));
1713+
return std::unique_ptr<GvrApi>(new GvrApi(context, /*owned=*/false));
17031714
}
17041715
/// @}
17051716

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ extern "C" {
355355
/// position_x,
356356
/// position_y,
357357
/// position_z);
358-
/// gvr_audio_api->PlaySound(source_id, true /* looped playback */);
358+
/// gvr_audio_api->PlaySound(source_id, /*looped playback=*/true);
359359
///
360360

361361
/// @{

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,10 +378,13 @@ typedef enum {
378378
GVR_CONTROLLER_BUTTON_APP = 3,
379379
GVR_CONTROLLER_BUTTON_VOLUME_UP = 4,
380380
GVR_CONTROLLER_BUTTON_VOLUME_DOWN = 5,
381+
GVR_CONTROLLER_BUTTON_RESERVED0 = 6,
382+
GVR_CONTROLLER_BUTTON_RESERVED1 = 7,
383+
GVR_CONTROLLER_BUTTON_RESERVED2 = 8,
381384

382-
/// Note: there are 5 buttons on the controller, but the state arrays have
385+
/// Note: there are 8 buttons on the controller, but the state arrays have
383386
/// this many elements due to the inclusion of a dummy "none" button.
384-
GVR_CONTROLLER_BUTTON_COUNT = 6,
387+
GVR_CONTROLLER_BUTTON_COUNT = 9,
385388
} gvr_controller_button;
386389

387390
/// Controller battery states.

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.120.0"
26+
#define GVR_SDK_VERSION_STRING "1.130.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 = 120,
33+
GVR_SDK_MINOR_VERSION = 130,
3434
GVR_SDK_PATCH_VERSION = 0,
3535
};
3636

libraries/sdk-audio-1.120.0.aar

-834 KB
Binary file not shown.

libraries/sdk-audio-1.130.0.aar

1.25 MB
Binary file not shown.

libraries/sdk-audio-1.120.0.pom renamed to libraries/sdk-audio-1.130.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.120.0</version>
7+
<version>1.130.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.120.0</version>
22+
<version>1.130.0</version>
2323
</dependency>
2424
</dependencies>
2525
</project>

libraries/sdk-base-1.120.0.aar

-2.64 MB
Binary file not shown.

libraries/sdk-base-1.130.0.aar

2.55 MB
Binary file not shown.

libraries/sdk-base-1.120.0.pom renamed to libraries/sdk-base-1.130.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.120.0</version>
7+
<version>1.130.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.120.0</version>
22+
<version>1.130.0</version>
2323
</dependency>
2424
</dependencies>
2525
</project>

libraries/sdk-common-1.120.0.aar

-752 KB
Binary file not shown.

libraries/sdk-common-1.130.0.aar

710 KB
Binary file not shown.

libraries/sdk-common-1.120.0.pom renamed to libraries/sdk-common-1.130.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.120.0</version>
7+
<version>1.130.0</version>
88
<packaging>aar</packaging>
99

1010
<name>Google VR SDK-Common</name>
-31.2 KB
Binary file not shown.
31.2 KB
Binary file not shown.

libraries/sdk-commonwidget-1.120.0.pom renamed to libraries/sdk-commonwidget-1.130.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.120.0</version>
7+
<version>1.130.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.120.0</version>
22+
<version>1.130.0</version>
2323
</dependency>
2424
</dependencies>
2525
</project>

libraries/sdk-controller-1.120.0.pom renamed to libraries/sdk-controller-1.130.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.120.0</version>
7+
<version>1.130.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.120.0</version>
22+
<version>1.130.0</version>
2323
</dependency>
2424
</dependencies>
2525
</project>

libraries/sdk-panowidget-1.120.0.aar

-3.21 MB
Binary file not shown.

libraries/sdk-panowidget-1.130.0.aar

3.1 MB
Binary file not shown.

libraries/sdk-panowidget-1.120.0.pom renamed to libraries/sdk-panowidget-1.130.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.120.0</version>
7+
<version>1.130.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.120.0</version>
22+
<version>1.130.0</version>
2323
</dependency>
2424
</dependencies>
2525
</project>

libraries/sdk-videowidget-1.120.0.aar

-3.66 MB
Binary file not shown.

libraries/sdk-videowidget-1.130.0.aar

3.6 MB
Binary file not shown.

libraries/sdk-videowidget-1.120.0.pom renamed to libraries/sdk-videowidget-1.130.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.120.0</version>
7+
<version>1.130.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.120.0</version>
35+
<version>1.130.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
@@ -53,7 +53,7 @@ model {
5353
}
5454

5555
dependencies {
56-
compile 'com.google.vr:sdk-base:1.120.0'
56+
compile 'com.google.vr:sdk-base:1.130.0'
5757
}
5858

5959
build.dependsOn(':extractNdk')

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

Lines changed: 9 additions & 2 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="171114033"
5-
android:versionName="1.120.0">
4+
android:versionCode="180130033"
5+
android:versionName="1.130.0">
66

77
<!-- The Daydream SDK requires API 24+ and OpenGL ES 3.2+. -->
88
<uses-sdk android:minSdkVersion="24" android:targetSdkVersion="24" />
@@ -21,6 +21,13 @@
2121
For a Cardboard-compatible app, this should be android:required="false" -->
2222
<uses-feature android:name="android.hardware.vr.high_performance" android:required="true"/>
2323

24+
<!-- Indicates support for 6DoF headtracking (version 1). This is required to receive 6DoF
25+
poses through the new 6DoF head tracking API, and will implicitly enable 6DoF poses through
26+
the (legacy) 3DoF head tracking API. -->
27+
<uses-feature android:name="android.hardware.vr.headtracking"
28+
android:version="1"
29+
android:required="false" />
30+
2431
<!-- NOTE: even though the controller is a bluetooth device, you do NOT need
2532
to add bluetooth permissions to your app, because the controller is handled
2633
directly by the Google VR Services layer. -->

samples/ndk-treasurehunt/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ model {
5454
}
5555

5656
dependencies {
57-
compile 'com.google.vr:sdk-audio:1.120.0'
58-
compile 'com.google.vr:sdk-base:1.120.0'
57+
compile 'com.google.vr:sdk-audio:1.130.0'
58+
compile 'com.google.vr:sdk-base:1.130.0'
5959
}
6060

6161
build.dependsOn(':extractNdk')

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

Lines changed: 9 additions & 2 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.treasurehunt"
4-
android:versionCode="171114033"
5-
android:versionName="1.120.0">
4+
android:versionCode="180130033"
5+
android:versionName="1.130.0">
66

77
<!-- The GVR SDK requires API 19+ and OpenGL ES 2+. -->
88
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="24" />
@@ -22,6 +22,13 @@
2222
<!-- Indicates use of VR features that are available only on Daydream-ready devices. -->
2323
<uses-feature android:name="android.hardware.vr.high_performance" android:required="false"/>
2424

25+
<!-- Indicates support for 6DoF head tracking (version 1). This is required to receive 6DoF
26+
poses through the new 6DoF head tracking API, and will implicitly enable 6DoF poses through
27+
the (legacy) 3DoF head tracking API. -->
28+
<uses-feature android:name="android.hardware.vr.headtracking"
29+
android:version="1"
30+
android:required="false" />
31+
2532
<application
2633
android:allowBackup="true"
2734
android:label="MainActivity"

samples/sdk-controllerclient/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ model {
3737
}
3838

3939
dependencies {
40-
compile 'com.google.vr:sdk-base:1.120.0'
41-
compile 'com.google.vr:sdk-controller:1.120.0'
40+
compile 'com.google.vr:sdk-base:1.130.0'
41+
compile 'com.google.vr:sdk-controller:1.130.0'
4242
}

samples/sdk-controllerclient/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 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.sdk.samples.controllerclient"
4-
android:versionCode="171114033"
5-
android:versionName="1.120.0">
4+
android:versionCode="180130033"
5+
android:versionName="1.130.0">
66
<uses-sdk android:minSdkVersion="24" android:targetSdkVersion="24" />
77
<uses-feature android:glEsVersion="0x00030002" android:required="true" />
88

samples/sdk-simplepanowidget/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ model {
3737
}
3838

3939
dependencies {
40-
compile 'com.google.vr:sdk-panowidget:1.120.0'
40+
compile 'com.google.vr:sdk-panowidget:1.130.0'
4141
}

samples/sdk-simplepanowidget/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 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.sdk.samples.simplepanowidget"
4-
android:versionCode="171114033"
5-
android:versionName="1.120.0">
4+
android:versionCode="180130033"
5+
android:versionName="1.130.0">
66
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="22" />
77
<uses-feature android:glEsVersion="0x00020000" android:required="true" />
88

samples/sdk-simplevideowidget/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ model {
3737
}
3838

3939
dependencies {
40-
compile 'com.google.vr:sdk-videowidget:1.120.0'
40+
compile 'com.google.vr:sdk-videowidget:1.130.0'
4141
}

samples/sdk-simplevideowidget/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 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.sdk.samples.simplevideowidget"
4-
android:versionCode="171114033"
5-
android:versionName="1.120.0">
4+
android:versionCode="180130033"
5+
android:versionName="1.130.0">
66

77
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="22" />
88
<uses-feature android:glEsVersion="0x00020000" android:required="true" />

samples/sdk-treasurehunt/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ model {
3737
}
3838

3939
dependencies {
40-
compile 'com.google.vr:sdk-audio:1.120.0'
41-
compile 'com.google.vr:sdk-base:1.120.0'
40+
compile 'com.google.vr:sdk-audio:1.130.0'
41+
compile 'com.google.vr:sdk-base:1.130.0'
4242
}

samples/sdk-treasurehunt/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 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.sdk.samples.treasurehunt"
4-
android:versionCode="171114033"
5-
android:versionName="1.120.0">
4+
android:versionCode="180130033"
5+
android:versionName="1.130.0">
66

77
<!-- The GVR SDK requires API 19+ and OpenGL ES 2+. -->
88
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="24" />

samples/sdk-treasurehunt/src/main/java/com/google/vr/sdk/samples/treasurehunt/TreasureHuntActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ private String readRawTextFile(int resId) {
402402
reader.close();
403403
return sb.toString();
404404
} catch (IOException e) {
405-
e.printStackTrace();
405+
Log.e(TAG, "Failed to load text file: " + e);
406406
}
407407
return null;
408408
}

samples/sdk-video360/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ model {
3838

3939
dependencies {
4040
compile 'com.android.support:appcompat-v7:26.1.0'
41-
compile 'com.google.vr:sdk-base:1.120.0'
42-
compile 'com.google.vr:sdk-controller:1.120.0'
41+
compile 'com.google.vr:sdk-base:1.130.0'
42+
compile 'com.google.vr:sdk-controller:1.130.0'
4343
}

0 commit comments

Comments
 (0)