mirror of
https://github.com/YTVanced/VancedMicroG
synced 2024-11-23 11:45:11 +00:00
Add parts of dynamite API and firebase database API
This commit is contained in:
parent
b9cb95d39b
commit
e057a9daae
13 changed files with 180 additions and 0 deletions
|
@ -0,0 +1,10 @@
|
|||
package com.google.android.gms.dynamite;
|
||||
|
||||
import com.google.android.gms.dynamic.IObjectWrapper;
|
||||
|
||||
interface IDynamiteLoader {
|
||||
int getModuleVersion(IObjectWrapper context, String moduleId) = 0;
|
||||
int getModuleVersion2(IObjectWrapper context, String moduleId, boolean updateConfigIfRequired) = 2;
|
||||
|
||||
IObjectWrapper createModuleContext(IObjectWrapper context, String moduleId, int minVersion) = 1;
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
package com.google.firebase.database.connection.idl;
|
||||
|
||||
parcelable CompoundHashParcelable;
|
|
@ -0,0 +1,3 @@
|
|||
package com.google.firebase.database.connection.idl;
|
||||
|
||||
parcelable ConnectionConfig;
|
|
@ -0,0 +1,7 @@
|
|||
package com.google.firebase.database.connection.idl;
|
||||
|
||||
import com.google.firebase.database.connection.idl.IGetTokenCallback;
|
||||
|
||||
interface IConnectionAuthTokenProvider {
|
||||
void zero(boolean var1, IGetTokenCallback var2) = 0;
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
package com.google.firebase.database.connection.idl;
|
||||
|
||||
interface IGetTokenCallback {
|
||||
void zero(String s) = 0;
|
||||
void onError(String s) = 1;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
package com.google.firebase.database.connection.idl;
|
||||
|
||||
import com.google.firebase.database.connection.idl.CompoundHashParcelable;
|
||||
|
||||
interface IListenHashProvider {
|
||||
String zzPY() = 0;
|
||||
|
||||
boolean zzPZ() = 1;
|
||||
|
||||
CompoundHashParcelable zzQF() = 2;
|
||||
}
|
|
@ -0,0 +1,44 @@
|
|||
package com.google.firebase.database.connection.idl;
|
||||
|
||||
import com.google.android.gms.dynamic.IObjectWrapper;
|
||||
|
||||
import com.google.firebase.database.connection.idl.ConnectionConfig;
|
||||
import com.google.firebase.database.connection.idl.IConnectionAuthTokenProvider;
|
||||
import com.google.firebase.database.connection.idl.IListenHashProvider;
|
||||
import com.google.firebase.database.connection.idl.IPersistentConnectionDelegate;
|
||||
import com.google.firebase.database.connection.idl.IRequestResultCallback;
|
||||
|
||||
|
||||
interface IPersistentConnection {
|
||||
void setup(in ConnectionConfig var1, IConnectionAuthTokenProvider var2, IObjectWrapper var3, IPersistentConnectionDelegate var4) = 0;
|
||||
|
||||
void initialize() = 1;
|
||||
|
||||
void shutdown() = 2;
|
||||
|
||||
void refreshAuthToken() = 3;
|
||||
|
||||
void listen(in List<String> var1, IObjectWrapper var2, IListenHashProvider var3, long var4, IRequestResultCallback var6) = 4;
|
||||
|
||||
void unlisten(in List<String> var1, IObjectWrapper var2) = 5;
|
||||
|
||||
void purgeOutstandingWrites() = 6;
|
||||
|
||||
void put(in List<String> var1, IObjectWrapper var2, IRequestResultCallback var3) = 7;
|
||||
|
||||
void compareAndPut(in List<String> var1, IObjectWrapper var2, String var3, IRequestResultCallback var4) = 8;
|
||||
|
||||
void merge(in List<String> var1, IObjectWrapper var2, IRequestResultCallback var3) = 9;
|
||||
|
||||
void onDisconnectPut(in List<String> var1, IObjectWrapper var2, IRequestResultCallback var3) = 10;
|
||||
|
||||
void onDisconnectMerge(in List<String> var1, IObjectWrapper var2, IRequestResultCallback var3) = 11;
|
||||
|
||||
void onDisconnectCancel(in List<String> var1, IRequestResultCallback var2) = 12;
|
||||
|
||||
void interrupt(String var1) = 13;
|
||||
|
||||
void resume(String var1) = 14;
|
||||
|
||||
boolean isInterrupted(String var1) = 15;
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
package com.google.firebase.database.connection.idl;
|
||||
|
||||
import com.google.android.gms.dynamic.IObjectWrapper;
|
||||
|
||||
import com.google.firebase.database.connection.idl.RangeParcelable;
|
||||
|
||||
interface IPersistentConnectionDelegate {
|
||||
void zero(in List<String> var1, IObjectWrapper var2, boolean var3, long var4) = 0;
|
||||
|
||||
void one(in List<String> var1, in List<RangeParcelable> var2, IObjectWrapper var3, long var4) = 1;
|
||||
|
||||
void two() = 2;
|
||||
|
||||
void onDisconnect() = 3;
|
||||
|
||||
void four(boolean var1) = 4;
|
||||
|
||||
void five(IObjectWrapper var1) = 5;
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
package com.google.firebase.database.connection.idl;
|
||||
|
||||
interface IRequestResultCallback {
|
||||
void zero(String var1, String var2) = 0;
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
package com.google.firebase.database.connection.idl;
|
||||
|
||||
parcelable RangeParcelable;
|
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* Copyright 2013-2016 microG 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.firebase.database.connection.idl;
|
||||
|
||||
import org.microg.safeparcel.AutoSafeParcelable;
|
||||
|
||||
public class CompoundHashParcelable extends AutoSafeParcelable {
|
||||
public static final Creator<CompoundHashParcelable> CREATOR = new AutoCreator<CompoundHashParcelable>(CompoundHashParcelable.class);
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* Copyright 2013-2016 microG 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.firebase.database.connection.idl;
|
||||
|
||||
import org.microg.safeparcel.AutoSafeParcelable;
|
||||
|
||||
public class ConnectionConfig extends AutoSafeParcelable {
|
||||
public static final Creator<ConnectionConfig> CREATOR = new AutoCreator<ConnectionConfig>(ConnectionConfig.class);
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* Copyright 2013-2016 microG 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.firebase.database.connection.idl;
|
||||
|
||||
import org.microg.safeparcel.AutoSafeParcelable;
|
||||
|
||||
public class RangeParcelable extends AutoSafeParcelable {
|
||||
public static final Creator<RangeParcelable> CREATOR = new AutoCreator<RangeParcelable>(RangeParcelable.class);
|
||||
}
|
Loading…
Reference in a new issue