| /* |
| * Copyright (C) 2022 The Android Open Source Project |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| package com.google.gct.login; |
| |
| public class LoginContext { |
| |
| private static final String DEFAULT_ID = "73723532827-bbn1q3u70e1711t3a6ngm0pkgt9ictjq.apps.googleusercontent.com"; |
| private static final String DEFAULT_INFO = "ejfLik02xkOoWwOOt13UN4oC"; |
| |
| // TODO(b/236141170): Remove properties once bug reporting completed |
| private static final String LOGIN_ID_KEY = "studio.login.id.override"; |
| private static final String LOGIN_INFO_KEY = "studio.login.info.override"; |
| |
| public LoginContext() { |
| } |
| |
| public static String getId() { |
| return System.getProperty(LOGIN_ID_KEY, DEFAULT_ID); |
| } |
| |
| public static String getInfo() { |
| return System.getProperty(LOGIN_INFO_KEY, DEFAULT_INFO); |
| } |
| } |