Skip to content

Commit 15e2cc1

Browse files
committed
Update for v77 of the Platform SDK
1 parent e1f30ae commit 15e2cc1

File tree

5 files changed

+51
-3
lines changed

5 files changed

+51
-3
lines changed

.github/workflows/build-addon-on-push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ env:
1010
# Only used for the cache key. Increment version to force clean build.
1111
GODOT_BASE_BRANCH: main
1212
SCONS_CACHE: ${{ github.workspace }}/.scons-cache/
13-
# Meta Platform SDK v71.0.
14-
META_PLATFORM_SDK_URL: "https://securecdn.oculus.com/binaries/download/?id=6945981485525494"
13+
# Meta Platform SDK v77.0.
14+
META_PLATFORM_SDK_URL: "https://securecdn.oculus.com/binaries/download/?id=8090152191108412"
1515

1616
jobs:
1717
build:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ git submodule update --init --recursive
1616
Then download the [Oculus Platform SDK](https://developer.oculus.com/downloads/package/oculus-platform-sdk/) and extract
1717
it into `thirdparty/ovr_platform_sdk`, such that `thirdparty/ovr_platform_sdk/Include/OVR_Platform.h` exists.
1818

19-
We've tested with v71 of the Platform SDK.
19+
We've tested with v77 of the Platform SDK.
2020

2121
### Build the toolkit
2222

doc_classes/MetaPlatformSDK.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -966,6 +966,15 @@
966966
If successful, obtain the result by calling [method MetaPlatformSDK_Message.get_party] or accessing the [member MetaPlatformSDK_Message.data] property, which will be a [MetaPlatformSDK_Party] in this case.
967967
</description>
968968
</method>
969+
<method name="push_notification_register_async">
970+
<return type="MetaPlatformSDK_Request" />
971+
<description>
972+
Register the device to receive push notifications. The registered notification ID can be fetched from [member MetaPlatformSDK_PushNotificationResult.id].
973+
Returns a [MetaPlatformSDK_Request] which will emit the [signal MetaPlatformSDK_Request.completed] signal on completion with a [MetaPlatformSDK_Message] object.
974+
First call [method MetaPlatformSDK_Message.is_error] to check if the request resulted in an error, or was successful.
975+
If successful, obtain the result by calling [method MetaPlatformSDK_Message.get_push_notification_result] or accessing the [member MetaPlatformSDK_Message.data] property, which will be a [MetaPlatformSDK_PushNotificationResult] in this case.
976+
</description>
977+
</method>
969978
<method name="rich_presence_get_destinations_async">
970979
<return type="MetaPlatformSDK_Request" />
971980
<description>
@@ -1033,6 +1042,17 @@
10331042
If successful, obtain the result by calling [method MetaPlatformSDK_Message.get_blocked_user_array] or accessing the [member MetaPlatformSDK_Message.data] property, which will be a [MetaPlatformSDK_BlockedUserArray] in this case.
10341043
</description>
10351044
</method>
1045+
<method name="user_get_linked_accounts_async">
1046+
<return type="MetaPlatformSDK_Request" />
1047+
<param index="0" name="user_options" type="MetaPlatformSDK_UserOptions" />
1048+
<description>
1049+
Gets a list of linked accounts that are associated with the specified service providers.
1050+
- [param user_options]: Options for which services providers should be retrieved.
1051+
Returns a [MetaPlatformSDK_Request] which will emit the [signal MetaPlatformSDK_Request.completed] signal on completion with a [MetaPlatformSDK_Message] object.
1052+
First call [method MetaPlatformSDK_Message.is_error] to check if the request resulted in an error, or was successful.
1053+
If successful, obtain the result by calling [method MetaPlatformSDK_Message.get_linked_account_array] or accessing the [member MetaPlatformSDK_Message.data] property, which will be a [MetaPlatformSDK_LinkedAccountArray] in this case.
1054+
</description>
1055+
</method>
10361056
<method name="user_get_logged_in_user_async">
10371057
<return type="MetaPlatformSDK_Request" />
10381058
<description>
@@ -1613,6 +1633,9 @@
16131633
<constant name="MESSAGE_PARTY_GET_CURRENT" value="1200830304" enum="MessageType">
16141634
Indicates [method MetaPlatformSDK_Message.get_party] should be called to get the message payload.
16151635
</constant>
1636+
<constant name="MESSAGE_PUSH_NOTIFICATION_REGISTER" value="1715112799" enum="MessageType">
1637+
Indicates [method MetaPlatformSDK_Message.get_push_notification_result] should be called to get the message payload.
1638+
</constant>
16161639
<constant name="MESSAGE_RICH_PRESENCE_CLEAR" value="1471632051" enum="MessageType">
16171640
Indicates [method MetaPlatformSDK_Message.is_success] should be called to get the message payload.
16181641
</constant>
@@ -1640,6 +1663,9 @@
16401663
<constant name="MESSAGE_USER_GET_BLOCKED_USERS" value="2099254614" enum="MessageType">
16411664
Indicates [method MetaPlatformSDK_Message.get_blocked_user_array] should be called to get the message payload.
16421665
</constant>
1666+
<constant name="MESSAGE_USER_GET_LINKED_ACCOUNTS" value="1469314134" enum="MessageType">
1667+
Indicates [method MetaPlatformSDK_Message.get_linked_account_array] should be called to get the message payload.
1668+
</constant>
16431669
<constant name="MESSAGE_USER_GET_LOGGED_IN_USER" value="1131361373" enum="MessageType">
16441670
Indicates [method MetaPlatformSDK_Message.get_user] should be called to get the message payload.
16451671
</constant>

doc_classes/MetaPlatformSDK_Message.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,12 @@
360360
Returns a [MetaPlatformSDK_PurchaseArray] if that is the payload of this message; otherwise, it returns [code]null[/code].
361361
</description>
362362
</method>
363+
<method name="get_push_notification_result" qualifiers="const">
364+
<return type="MetaPlatformSDK_PushNotificationResult" />
365+
<description>
366+
Returns a [MetaPlatformSDK_PushNotificationResult] if that is the payload of this message; otherwise, it returns [code]null[/code].
367+
</description>
368+
</method>
363369
<method name="get_rejoin_dialog_result" qualifiers="const">
364370
<return type="MetaPlatformSDK_RejoinDialogResult" />
365371
<description>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<class name="MetaPlatformSDK_PushNotificationResult" inherits="RefCounted" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/godotengine/godot/master/doc/class.xsd">
3+
<brief_description>
4+
Represents the result of registering for push notifications.
5+
</brief_description>
6+
<description>
7+
Represents the result of registering for push notifications.
8+
</description>
9+
<tutorials>
10+
</tutorials>
11+
<members>
12+
<member name="id" type="String" setter="" getter="get_id" default="&quot;&quot;">
13+
The registered notification ID, which you can push notifications to.
14+
</member>
15+
</members>
16+
</class>

0 commit comments

Comments
 (0)