mirror of
https://github.com/TeamVanced/VancedMicroG
synced 2024-12-13 06:07:44 +01:00
Add missing AuthManager method
This commit is contained in:
parent
19b0b0f1d7
commit
5ef9d262b4
@ -1,6 +1,10 @@
|
|||||||
package com.google.android.auth;
|
package com.google.android.auth;
|
||||||
|
|
||||||
|
import com.google.android.gms.auth.AccountChangeEventsResponse;
|
||||||
|
import com.google.android.gms.auth.AccountChangeEventsRequest;
|
||||||
|
|
||||||
interface IAuthManagerService {
|
interface IAuthManagerService {
|
||||||
Bundle getToken(String accountName, String scope, in Bundle extras);
|
Bundle getToken(String accountName, String scope, in Bundle extras);
|
||||||
Bundle clearToken(String token, in Bundle extras);
|
Bundle clearToken(String token, in Bundle extras);
|
||||||
|
AccountChangeEventsResponse getChangeEvents(in AccountChangeEventsRequest request);
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
package com.google.android.gms.auth;
|
package com.google.android.gms.auth;
|
||||||
|
|
||||||
public class AccountChangeEvent {
|
import org.microg.safeparcel.AutoSafeParcelable;
|
||||||
|
|
||||||
|
public class AccountChangeEvent extends AutoSafeParcelable {
|
||||||
|
public static Creator<AccountChangeEvent> CREATOR = new AutoCreator<>(AccountChangeEvent.class);
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,3 @@
|
|||||||
|
package com.google.android.gms.auth;
|
||||||
|
|
||||||
|
parcelable AccountChangeEventsRequest;
|
@ -0,0 +1,37 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2013-2015 µg Project Team
|
||||||
|
*
|
||||||
|
* 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.android.gms.auth;
|
||||||
|
|
||||||
|
import org.microg.safeparcel.AutoSafeParcelable;
|
||||||
|
import org.microg.safeparcel.SafeParceled;
|
||||||
|
|
||||||
|
public class AccountChangeEventsRequest extends AutoSafeParcelable {
|
||||||
|
@SafeParceled(1)
|
||||||
|
private final int versionCode;
|
||||||
|
@SafeParceled(2)
|
||||||
|
private int i;
|
||||||
|
@SafeParceled(3)
|
||||||
|
private String s;
|
||||||
|
|
||||||
|
|
||||||
|
private AccountChangeEventsRequest() {
|
||||||
|
versionCode = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Creator<AccountChangeEventsRequest> CREATOR = new AutoCreator<>(AccountChangeEventsRequest.class);
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,3 @@
|
|||||||
|
package com.google.android.gms.auth;
|
||||||
|
|
||||||
|
parcelable AccountChangeEventsResponse;
|
@ -0,0 +1,37 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2013-2015 µg Project Team
|
||||||
|
*
|
||||||
|
* 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.android.gms.auth;
|
||||||
|
|
||||||
|
import org.microg.safeparcel.AutoSafeParcelable;
|
||||||
|
import org.microg.safeparcel.SafeParceled;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class AccountChangeEventsResponse extends AutoSafeParcelable {
|
||||||
|
@SafeParceled(1)
|
||||||
|
private final int versionCode;
|
||||||
|
@SafeParceled(value = 2, subType = "com.google.android.gms.auth.AccountChangeEvent")
|
||||||
|
private List<AccountChangeEvent> events;
|
||||||
|
|
||||||
|
public AccountChangeEventsResponse() {
|
||||||
|
versionCode = 1;
|
||||||
|
events = new ArrayList<>();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static Creator<AccountChangeEventsResponse> CREATOR = new AutoCreator<>(AccountChangeEventsResponse.class);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user