optimize memory and image size. remove unnecessary language file
This commit is contained in:
@@ -4,7 +4,6 @@ import android.support.annotation.Nullable;
|
||||
import android.util.Log;
|
||||
|
||||
import com.stardust.autojs.runtime.ScriptStopException;
|
||||
import com.stardust.autojs.runtime.api.Console;
|
||||
|
||||
/**
|
||||
* Created by Stardust on 2017/5/1.
|
||||
@@ -24,6 +23,12 @@ public abstract class AbstractConsole implements Console {
|
||||
return String.format(data.toString(), options);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void print(int level, Object data, Object... options) {
|
||||
write(level, format(data, options));
|
||||
}
|
||||
|
||||
protected abstract void write(int level, CharSequence data);
|
||||
|
||||
@Override
|
||||
public void verbose(@Nullable Object data, Object... options) {
|
||||
|
||||
@@ -16,6 +16,9 @@ public interface Console {
|
||||
@ScriptInterface
|
||||
void log(@Nullable Object data, Object... options);
|
||||
|
||||
@ScriptInterface
|
||||
void print(int level, Object data, Object... options);
|
||||
|
||||
@ScriptInterface
|
||||
void info(@Nullable Object data, Object... options);
|
||||
|
||||
|
||||
@@ -151,7 +151,6 @@ public class UiSelector extends UiGlobalSelector {
|
||||
} else {
|
||||
super.id(id);
|
||||
}
|
||||
Intent intent;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -160,6 +159,11 @@ public class UiSelector extends UiGlobalSelector {
|
||||
return untilFind().performAction(action, arguments);
|
||||
}
|
||||
|
||||
public boolean exists() {
|
||||
UiObjectCollection collection = find();
|
||||
return collection != null && collection.size() > 0;
|
||||
}
|
||||
|
||||
@ScriptInterface
|
||||
public boolean click() {
|
||||
return performAction(ACTION_CLICK);
|
||||
|
||||
Reference in New Issue
Block a user