mirror of
https://github.com/Ujwal223/FocusGram.git
synced 2026-04-01 17:10:23 +02:00
feat: Add Google Play Core split install and task management components, and Flutter generated plugin registrant.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
package com.google.android.play.core.splitcompat;
|
||||
import android.app.Application;
|
||||
public class SplitCompatApplication extends Application {}
|
||||
@@ -0,0 +1,4 @@
|
||||
package com.google.android.play.core.splitinstall;
|
||||
public class SplitInstallException extends Exception {
|
||||
public int getErrorCode() { return 0; }
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
package com.google.android.play.core.splitinstall;
|
||||
public interface SplitInstallManager {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.google.android.play.core.splitinstall;
|
||||
import android.content.Context;
|
||||
public class SplitInstallManagerFactory {
|
||||
public static SplitInstallManager create(Context context) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.google.android.play.core.splitinstall;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
public class SplitInstallRequest {
|
||||
public List<String> getModuleNames() { return new ArrayList<>(); }
|
||||
public static class Builder {
|
||||
public Builder addModule(String moduleName) { return this; }
|
||||
public SplitInstallRequest build() { return new SplitInstallRequest(); }
|
||||
}
|
||||
public static Builder newBuilder() { return new Builder(); }
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.google.android.play.core.splitinstall;
|
||||
public class SplitInstallSessionState {
|
||||
public int sessionId() { return 0; }
|
||||
public int status() { return 0; }
|
||||
public long bytesDownloaded() { return 0; }
|
||||
public long totalBytesToDownload() { return 0; }
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package com.google.android.play.core.splitinstall;
|
||||
public interface SplitInstallStateUpdatedListener {
|
||||
void onStateUpdate(SplitInstallSessionState state);
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package com.google.android.play.core.tasks;
|
||||
public interface OnFailureListener {
|
||||
void onFailure(Exception e);
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package com.google.android.play.core.tasks;
|
||||
public interface OnSuccessListener<TResult> {
|
||||
void onSuccess(TResult result);
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.google.android.play.core.tasks;
|
||||
public abstract class Task<TResult> {
|
||||
public abstract boolean isComplete();
|
||||
public abstract boolean isSuccessful();
|
||||
public abstract TResult getResult();
|
||||
public abstract Exception getException();
|
||||
public abstract Task<TResult> addOnSuccessListener(OnSuccessListener<? super TResult> listener);
|
||||
public abstract Task<TResult> addOnFailureListener(OnFailureListener listener);
|
||||
}
|
||||
Reference in New Issue
Block a user