mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 07:49:44 +08:00
fix(logsender): remove references to AndroidX annotations
This commit is contained in:
Generated
+17
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="deploymentTargetDropDown">
|
||||
<runningDeviceTargetSelectedWithDropDown>
|
||||
<Target>
|
||||
<type value="RUNNING_DEVICE_TARGET" />
|
||||
<deviceKey>
|
||||
<Key>
|
||||
<type value="SERIAL_NUMBER" />
|
||||
<value value="fd22c9e0" />
|
||||
</Key>
|
||||
</deviceKey>
|
||||
</Target>
|
||||
</runningDeviceTargetSelectedWithDropDown>
|
||||
<timeTargetWasSelectedWithDropDown value="2023-08-10T16:17:43.676001889Z" />
|
||||
</component>
|
||||
</project>
|
||||
@@ -21,7 +21,6 @@ import android.app.Service;
|
||||
import android.content.Intent;
|
||||
import android.os.IBinder;
|
||||
import android.widget.Toast;
|
||||
import androidx.annotation.Nullable;
|
||||
import com.itsaky.androidide.logsender.utils.Logger;
|
||||
|
||||
/**
|
||||
@@ -33,7 +32,6 @@ public class LogSenderService extends Service {
|
||||
|
||||
private final LogSender logSender = new LogSender();
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public IBinder onBind(Intent intent) {
|
||||
return null;
|
||||
|
||||
-5
@@ -17,9 +17,6 @@
|
||||
|
||||
package com.itsaky.androidide.logsender.socket;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
/**
|
||||
* Base class for socket commands.
|
||||
*
|
||||
@@ -27,12 +24,10 @@ import androidx.annotation.Nullable;
|
||||
*/
|
||||
public abstract class AbstractSocketCommand implements ISocketCommand {
|
||||
|
||||
@Nullable
|
||||
protected String[] getParams() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@NonNull
|
||||
@Override
|
||||
public String toString() {
|
||||
final StringBuilder sb = new StringBuilder("/");
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
|
||||
package com.itsaky.androidide.logsender.socket;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import java.io.File;
|
||||
|
||||
/**
|
||||
|
||||
@@ -17,8 +17,6 @@
|
||||
|
||||
package com.itsaky.androidide.logsender.socket;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
/**
|
||||
* Command containing information about the log sender.
|
||||
*
|
||||
@@ -40,7 +38,6 @@ public class SenderInfoCommand extends AbstractSocketCommand {
|
||||
return NAME;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
protected String[] getParams() {
|
||||
return new String[]{this.senderId, this.packageName};
|
||||
|
||||
-4
@@ -17,7 +17,6 @@
|
||||
|
||||
package com.itsaky.androidide.logsender.socket;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
@@ -25,7 +24,6 @@ import java.util.UUID;
|
||||
*/
|
||||
public final class SocketCommandParser {
|
||||
|
||||
@Nullable
|
||||
public static ISocketCommand parse(String line) {
|
||||
// remove leading '/'
|
||||
line = line.substring(1);
|
||||
@@ -41,7 +39,6 @@ public final class SocketCommandParser {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
private static ISocketCommand create(String name) {
|
||||
if (name.equals(SignalCommand.STOP.getName())) {
|
||||
return SignalCommand.STOP;
|
||||
@@ -50,7 +47,6 @@ public final class SocketCommandParser {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
private static ISocketCommand createParameterized(String[] segments) {
|
||||
final String command = segments[0];
|
||||
if (SenderInfoCommand.NAME.equals(command)) {
|
||||
|
||||
Reference in New Issue
Block a user