optimize memory and image size. remove unnecessary language file

This commit is contained in:
hyb1996
2017-05-10 15:42:58 +08:00
parent e5ade55519
commit 1222e00adc
77 changed files with 590 additions and 436 deletions

View File

@@ -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) {

View File

@@ -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);

View File

@@ -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);