use lsp stub

This commit is contained in:
327135569 2021-04-12 12:17:52 +08:00
parent 49a39ab7ed
commit 8d05d3498d
4 changed files with 1 additions and 61 deletions

View File

@ -62,4 +62,5 @@ android {
dependencies { dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar']) implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(path: ':lspcore') implementation project(path: ':lspcore')
compileOnly project(":hiddenapi-stubs")
} }

View File

@ -1,22 +0,0 @@
package android.app;
import android.content.pm.ApplicationInfo;
import android.content.res.CompatibilityInfo;
public final class ActivityThread {
public static ActivityThread currentActivityThread() {
throw new UnsupportedOperationException("STUB");
}
public static Application currentApplication() {
throw new UnsupportedOperationException("STUB");
}
public static String currentPackageName() {
throw new UnsupportedOperationException("STUB");
}
public final LoadedApk getPackageInfoNoCheck(ApplicationInfo ai, CompatibilityInfo compatInfo) {
throw new UnsupportedOperationException("STUB");
}
}

View File

@ -1,21 +0,0 @@
package android.app;
import android.content.pm.ApplicationInfo;
public final class LoadedApk {
public ApplicationInfo getApplicationInfo() {
throw new UnsupportedOperationException("STUB");
}
public ClassLoader getClassLoader() {
throw new UnsupportedOperationException("STUB");
}
public String getPackageName() {
throw new UnsupportedOperationException("STUB");
}
public String getResDir() {
throw new UnsupportedOperationException("STUB");
}
}

View File

@ -1,18 +0,0 @@
package android.content.res;
import android.os.Parcel;
import android.os.Parcelable;
public class CompatibilityInfo implements Parcelable {
public static final Parcelable.Creator<CompatibilityInfo> CREATOR = null;
@Override
public int describeContents() {
throw new UnsupportedOperationException("STUB");
}
@Override
public void writeToParcel(Parcel dest, int flags) {
throw new UnsupportedOperationException("STUB");
}
}