mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 07:49:44 +08:00
fix(logsender): remove unused/unnecessary dependencies
This commit is contained in:
@@ -32,9 +32,6 @@ android {
|
||||
dependencies {
|
||||
implementation(projects.logger)
|
||||
|
||||
implementation(libs.google.material)
|
||||
implementation(libs.androidx.appcompat)
|
||||
|
||||
testImplementation(libs.tests.junit)
|
||||
testImplementation(libs.tests.robolectric)
|
||||
testImplementation(libs.tests.google.truth)
|
||||
|
||||
@@ -24,8 +24,6 @@ import android.content.ServiceConnection;
|
||||
import android.os.IBinder;
|
||||
import android.os.Process;
|
||||
import android.os.RemoteException;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import com.itsaky.androidide.logsender.utils.LogReader;
|
||||
import com.itsaky.androidide.logsender.utils.Logger;
|
||||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
@@ -37,16 +35,12 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
||||
*/
|
||||
public class LogSender extends ILogSender.Stub implements ServiceConnection {
|
||||
|
||||
@NonNull
|
||||
private final AtomicBoolean installed = new AtomicBoolean(false);
|
||||
|
||||
@Nullable
|
||||
private LogReader reader;
|
||||
|
||||
@Nullable
|
||||
private ILogReceiver receiver;
|
||||
|
||||
@Nullable
|
||||
private String packageName;
|
||||
|
||||
public static final LogSender INSTANCE = new LogSender();
|
||||
|
||||
+9
-12
@@ -22,8 +22,6 @@ import android.content.ContentProvider;
|
||||
import android.content.ContentValues;
|
||||
import android.database.Cursor;
|
||||
import android.net.Uri;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import com.itsaky.androidide.logsender.LogSender;
|
||||
|
||||
/**
|
||||
@@ -46,35 +44,34 @@ public class LogSenderInstaller extends ContentProvider {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
@Override
|
||||
public Cursor query(@NonNull Uri uri, @Nullable String[] projection, @Nullable String selection,
|
||||
@Nullable String[] selectionArgs, @Nullable String sortOrder
|
||||
public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,
|
||||
String sortOrder
|
||||
) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
@Override
|
||||
public String getType(@NonNull Uri uri) {
|
||||
public String getType(Uri uri) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
@Override
|
||||
public Uri insert(@NonNull Uri uri, @Nullable ContentValues values) {
|
||||
public Uri insert(Uri uri, ContentValues values) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int delete(@NonNull Uri uri, @Nullable String selection, @Nullable String[] selectionArgs
|
||||
public int delete(Uri uri, String selection, String[] selectionArgs
|
||||
) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int update(@NonNull Uri uri, @Nullable ContentValues values, @Nullable String selection,
|
||||
@Nullable String[] selectionArgs
|
||||
public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs
|
||||
) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user