10000 Revert "feat(fcm): Enabled direct_boot_ok Android Config parameter." · firebase/firebase-admin-python@7245194 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7245194

Browse files
committed
Revert "feat(fcm): Enabled direct_boot_ok Android Config parameter."
This reverts commit 6651302.
1 parent 1a1b3f0 commit 7245194

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

firebase_admin/_messaging_encoder.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -160,15 +160,6 @@ def check_analytics_label(cls, label, value):
160160
raise ValueError('Malformed {}.'.format(label))
161161
return value
162162

163-
@classmethod
164-
def check_boolean(cls, label, value):
165-
"""Checks if the given value is boolean."""
166-
if value is None:
167-
return None
168-
if not isinstance(value, bool):
169-
raise ValueError('{0} must be a boolean.'.format(label))
170-
return value
171-
172163
@classmethod
173164
def check_datetime(cls, label, value):
174165
"""Checks if the given value is a datetime."""
@@ -223,8 +214,6 @@ def encode_android_fcm_options(cls, fcm_options):
223214
result = {
224215
'analytics_label': _Validators.check_analytics_label(
225216
'AndroidFCMOptions.analytics_label', fcm_options.analytics_label),
226-
'direct_boot_ok': _Validators.check_boolean(
227-
'AndroidFCMOptions.direct_boot_ok', fcm_options.direct_boot_ok)
228217
}
229218
result = cls.remove_null_values(result)
230219
return result

firebase_admin/_messaging_utils.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,10 @@ class AndroidFCMOptions:
203203
Args:
204204
analytics_label: contains additional options for features provided by the FCM Android SDK
205205
(optional).
206-
direct_boot_ok: A boolean indicating whether messages will be allowed to be delivered to
207-
the app while the device is in direct boot mode.
208206
"""
209207

210-
def __init__(self, analytics_label=None, direct_boot_ok=None):
208+
def __init__(self, analytics_label=None):
211209
self.analytics_label = analytics_label
212-
self.direct_boot_ok = direct_boot_ok
213210

214211

215212
class WebpushConfig:

0 commit comments

Comments
 (0)
0