Add Google client ID fallback
This commit is contained in:
parent
0cde10d2c7
commit
2302fe1449
@ -11,7 +11,8 @@ const legacyJarvisApiUrl = 'http://80.211.202.74';
|
|||||||
const appVersionLabel = 'v1.0.0+1';
|
const appVersionLabel = 'v1.0.0+1';
|
||||||
const googleCalendarServerClientId = String.fromEnvironment(
|
const googleCalendarServerClientId = String.fromEnvironment(
|
||||||
'GOOGLE_SERVER_CLIENT_ID',
|
'GOOGLE_SERVER_CLIENT_ID',
|
||||||
defaultValue: '',
|
defaultValue:
|
||||||
|
'878009721400-319kqgal05noce291ptcdqt47srancqf.apps.googleusercontent.com',
|
||||||
);
|
);
|
||||||
|
|
||||||
const avatarPresets = [
|
const avatarPresets = [
|
||||||
@ -209,7 +210,9 @@ class AppSettings {
|
|||||||
? JarvisSettings.fromJson(rawJarvisSettings)
|
? JarvisSettings.fromJson(rawJarvisSettings)
|
||||||
: JarvisSettings.defaults(),
|
: JarvisSettings.defaults(),
|
||||||
googleServerClientId:
|
googleServerClientId:
|
||||||
json['googleServerClientId'] as String? ?? googleCalendarServerClientId,
|
(json['googleServerClientId'] as String?)?.trim().isNotEmpty == true
|
||||||
|
? (json['googleServerClientId'] as String).trim()
|
||||||
|
: googleCalendarServerClientId,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user