0
0
Fork 0
mirror of https://github.com/YTVanced/VancedMicroG synced 2024-12-02 16:07:25 +00:00

Credentials: Fix copyright headers

This commit is contained in:
Marvin W 2021-05-05 23:30:35 +02:00
parent a37b14eda3
commit 3c1cb13e32
No known key found for this signature in database
GPG key ID: 072E9235DB996F2A
6 changed files with 37 additions and 69 deletions

View file

@ -1,17 +1,9 @@
/* /*
* Copyright (C) 2013-2017 microG Project Team * SPDX-FileCopyrightText: 2016, microG Project Team
* * SPDX-License-Identifier: Apache-2.0
* Licensed under the Apache License, Version 2.0 (the "License"); * Notice: Portions of this file are reproduced from work created and shared by Google and used
* you may not use this file except in compliance with the License. * according to terms described in the Creative Commons 4.0 Attribution License.
* You may obtain a copy of the License at * See https://developers.google.com/readme/policies for details.
*
* 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.android.gms.auth.api.credentials; package com.google.android.gms.auth.api.credentials;
@ -30,28 +22,22 @@ import java.util.Locale;
@PublicApi @PublicApi
public class Credential extends AutoSafeParcelable { public class Credential extends AutoSafeParcelable {
@SafeParceled(1000) @Field(1000)
private int versionCode = 1; private int versionCode = 1;
@SafeParceled(1) @Field(1)
private String id; private String id;
@Field(2)
@SafeParceled(2)
private String name; private String name;
@Field(3)
@SafeParceled(3)
private Uri profilePictureUri; private Uri profilePictureUri;
@Field(value = 4, subClass = IdToken.class)
@SafeParceled(value = 4, subClass = IdToken.class)
private List<IdToken> tokens; private List<IdToken> tokens;
@Field(5)
@SafeParceled(5)
private String password; private String password;
@Field(6)
@SafeParceled(6)
private String accountType; private String accountType;
@Field(7)
@SafeParceled(7)
private String generatedPassword; private String generatedPassword;
private Credential() { private Credential() {

View file

@ -1,17 +1,9 @@
/* /*
* Copyright (C) 2013-2017 microG Project Team * SPDX-FileCopyrightText: 2016, microG Project Team
* * SPDX-License-Identifier: Apache-2.0
* Licensed under the Apache License, Version 2.0 (the "License"); * Notice: Portions of this file are reproduced from work created and shared by Google and used
* you may not use this file except in compliance with the License. * according to terms described in the Creative Commons 4.0 Attribution License.
* You may obtain a copy of the License at * See https://developers.google.com/readme/policies for details.
*
* 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.android.gms.auth.api.credentials; package com.google.android.gms.auth.api.credentials;

View file

@ -1,17 +1,9 @@
/* /*
* Copyright (C) 2013-2017 microG Project Team * SPDX-FileCopyrightText: 2016, microG Project Team
* * SPDX-License-Identifier: Apache-2.0
* Licensed under the Apache License, Version 2.0 (the "License"); * Notice: Portions of this file are reproduced from work created and shared by Google and used
* you may not use this file except in compliance with the License. * according to terms described in the Creative Commons 4.0 Attribution License.
* You may obtain a copy of the License at * See https://developers.google.com/readme/policies for details.
*
* 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.android.gms.auth.api.credentials; package com.google.android.gms.auth.api.credentials;

View file

@ -1,6 +1,9 @@
/* /*
* SPDX-FileCopyrightText: 2021, microG Project Team * SPDX-FileCopyrightText: 2021, microG Project Team
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* Notice: Portions of this file are reproduced from work created and shared by Google and used
* according to terms described in the Creative Commons 4.0 Attribution License.
* See https://developers.google.com/readme/policies for details.
*/ */
package com.google.android.gms.auth.api.credentials; package com.google.android.gms.auth.api.credentials;

View file

@ -1,17 +1,9 @@
/* /*
* Copyright (C) 2013-2017 microG Project Team * SPDX-FileCopyrightText: 2016, microG Project Team
* * SPDX-License-Identifier: Apache-2.0
* Licensed under the Apache License, Version 2.0 (the "License"); * Notice: Portions of this file are reproduced from work created and shared by Google and used
* you may not use this file except in compliance with the License. * according to terms described in the Creative Commons 4.0 Attribution License.
* You may obtain a copy of the License at * See https://developers.google.com/readme/policies for details.
*
* 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.android.gms.auth.api.credentials; package com.google.android.gms.auth.api.credentials;
@ -23,13 +15,13 @@ import org.microg.safeparcel.SafeParceled;
@PublicApi @PublicApi
public class IdToken extends AutoSafeParcelable { public class IdToken extends AutoSafeParcelable {
@SafeParceled(1000) @Field(1000)
private int versionCode = 1; private int versionCode = 1;
@SafeParceled(1) @Field(1)
private String accountType; private String accountType;
@SafeParceled(2) @Field(2)
private String id; private String id;
private IdToken() { private IdToken() {

View file

@ -1,6 +1,9 @@
/* /*
* SPDX-FileCopyrightText: 2021, microG Project Team * SPDX-FileCopyrightText: 2021, microG Project Team
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* Notice: Portions of this file are reproduced from work created and shared by Google and used
* according to terms described in the Creative Commons 4.0 Attribution License.
* See https://developers.google.com/readme/policies for details.
*/ */
package com.google.android.gms.auth.api.credentials; package com.google.android.gms.auth.api.credentials;