Skip to content

Commit

Permalink
feat: Automated regeneration of FCM client
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation committed Nov 5, 2024
1 parent 9bd4424 commit 297eeb6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion clients/fcm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding

```elixir
def deps do
[{:google_api_fcm, "~> 0.12"}]
[{:google_api_fcm, "~> 0.13"}]
end
```

Expand Down
2 changes: 1 addition & 1 deletion clients/fcm/lib/google_api/fcm/v1/metadata.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.FCM.V1 do
API client metadata for GoogleApi.FCM.V1.
"""

@discovery_revision "20240524"
@discovery_revision "20241101"

def discovery_revision(), do: @discovery_revision
end
3 changes: 3 additions & 0 deletions clients/fcm/lib/google_api/fcm/v1/model/apns_config.ex
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ defmodule GoogleApi.FCM.V1.Model.ApnsConfig do
* `fcmOptions` (*type:* `GoogleApi.FCM.V1.Model.ApnsFcmOptions.t`, *default:* `nil`) - Options for features provided by the FCM SDK for iOS.
* `headers` (*type:* `map()`, *default:* `nil`) - HTTP request headers defined in Apple Push Notification Service. Refer to [APNs request headers](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns) for supported headers such as `apns-expiration` and `apns-priority`. The backend sets a default value for `apns-expiration` of 30 days and a default value for `apns-priority` of 10 if not explicitly set.
* `liveActivityToken` (*type:* `String.t`, *default:* `nil`) - Optional. [Apple Live Activity](https://developer.apple.com/design/human-interface-guidelines/live-activities) token to send updates to. This token can either be a push token or [push-to-start](https://developer.apple.com/documentation/activitykit/activity/pushtostarttoken) token from Apple.
* `payload` (*type:* `map()`, *default:* `nil`) - APNs payload as a JSON object, including both `aps` dictionary and custom payload. See [Payload Key Reference](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/generating_a_remote_notification). If present, it overrides google.firebase.fcm.v1.Notification.title and google.firebase.fcm.v1.Notification.body.
"""

Expand All @@ -31,11 +32,13 @@ defmodule GoogleApi.FCM.V1.Model.ApnsConfig do
@type t :: %__MODULE__{
:fcmOptions => GoogleApi.FCM.V1.Model.ApnsFcmOptions.t() | nil,
:headers => map() | nil,
:liveActivityToken => String.t() | nil,
:payload => map() | nil
}

field(:fcmOptions, as: GoogleApi.FCM.V1.Model.ApnsFcmOptions)
field(:headers, type: :map)
field(:liveActivityToken)
field(:payload, type: :map)
end

Expand Down
2 changes: 1 addition & 1 deletion clients/fcm/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.FCM.Mixfile do
use Mix.Project

@version "0.12.0"
@version "0.13.0"

def project() do
[
Expand Down

0 comments on commit 297eeb6

Please sign in to comment.