From 13ade9d022995a8bd3351db3f876fb778358eddb Mon Sep 17 00:00:00 2001 From: SuperMonster003 Date: Wed, 15 Jan 2025 01:26:29 +0800 Subject: [PATCH] =?UTF-8?q?6.6.2=20-=20Alpha2=20-=20=E5=8E=BB=E9=99=A4?= =?UTF-8?q?=E5=B9=B6=E6=95=B4=E5=90=88=20redirect=20=E5=86=85=E7=BD=AE?= =?UTF-8?q?=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/assets/modules/redirect.js | 437 -------------- app/src/main/java/com/stardust/Redirect.kt | 538 ++++++++++++++++++ .../java/org/autojs/autojs/core/pref/Pref.kt | 7 - .../autojs/autojs/runtime/ScriptRuntime.kt | 1 - app/src/main/res/values-ar/strings.xml | 3 - app/src/main/res/values-en/strings.xml | 3 - app/src/main/res/values-en/strings_legacy.xml | 171 ++++++ app/src/main/res/values-es/strings.xml | 3 - app/src/main/res/values-fr/strings.xml | 3 - app/src/main/res/values-ja/strings.xml | 3 - app/src/main/res/values-ko/strings.xml | 3 - app/src/main/res/values-ru/strings.xml | 3 - app/src/main/res/values-zh-rHK/strings.xml | 3 - app/src/main/res/values-zh-rTW/strings.xml | 3 - app/src/main/res/values-zh/strings.xml | 3 - app/src/main/res/values/bools.xml | 1 - app/src/main/res/values/colors_legacy.xml | 33 ++ app/src/main/res/values/dimens_legacy.xml | 14 + app/src/main/res/values/ids_legacy.xml | 15 + app/src/main/res/values/strings.xml | 4 - app/src/main/res/values/strings_legacy.xml | 464 +++++++++++++++ app/src/main/res/xml/fragment_preferences.xml | 315 +++++----- version.properties | 4 +- 23 files changed, 1388 insertions(+), 646 deletions(-) delete mode 100644 app/src/main/assets/modules/redirect.js create mode 100644 app/src/main/java/com/stardust/Redirect.kt create mode 100644 app/src/main/res/values-en/strings_legacy.xml create mode 100644 app/src/main/res/values/colors_legacy.xml create mode 100644 app/src/main/res/values/dimens_legacy.xml create mode 100644 app/src/main/res/values/ids_legacy.xml create mode 100644 app/src/main/res/values/strings_legacy.xml diff --git a/app/src/main/assets/modules/redirect.js b/app/src/main/assets/modules/redirect.js deleted file mode 100644 index 5f539218..00000000 --- a/app/src/main/assets/modules/redirect.js +++ /dev/null @@ -1,437 +0,0 @@ -let map = { - BuildConfig: org.autojs.autojs6.BuildConfig, - R: org.autojs.autojs6.R, - app: { - AppOpsKt: org.autojs.autojs.app.AppOps, - DialogUtils: org.autojs.autojs.app.DialogUtils, - FragmentPagerAdapterBuilder: org.autojs.autojs.app.FragmentPagerAdapterBuilder, - GlobalAppContext: org.autojs.autojs.app.GlobalAppContext, - OnActivityResultDelegate: org.autojs.autojs.app.OnActivityResultDelegate, - OperationDialogBuilder: org.autojs.autojs.app.CircularMenuOperationDialogBuilder, - SimpleActivityLifecycleCallbacks: org.autojs.autojs.app.SimpleActivityLifecycleCallbacks, - isUsageStatsPermissionGranted: org.autojs.autojs.app.AppOps.isUsageStatsPermissionGranted, - }, - autojs: { - BuildConfig: org.autojs.autojs6.BuildConfig, - R: org.autojs.autojs6.R, - ScriptEngineService: org.autojs.autojs.engine.ScriptEngineService, - annotation: { - ScriptClass: org.autojs.autojs.annotation.ScriptClass, - ScriptInterface: org.autojs.autojs.annotation.ScriptInterface, - ScriptVariable: org.autojs.autojs.annotation.ScriptVariable, - }, - codegeneration: { - CodeGenerator: org.autojs.autojs.codegeneration.CodeGenerator, - }, - core: { - accessibility: { - AccessibilityBridge: org.autojs.autojs.core.accessibility.AccessibilityBridge, - AccessibilityServiceTool: org.autojs.autojs.core.accessibility.AccessibilityServiceTool, - SimpleActionAutomator: org.autojs.autojs.core.accessibility.SimpleActionAutomator, - UiSelector: org.autojs.autojs.core.accessibility.UiSelector, - }, - activity: { - ActivityInfoProvider: org.autojs.autojs.core.activity.ActivityInfoProvider, - }, - broadcast: { - BroadcastEmitter: org.autojs.autojs.core.broadcast.BroadcastEmitter, - }, - console: { - ConsoleImpl: org.autojs.autojs.core.console.ConsoleImpl, - ConsoleView: org.autojs.autojs.core.console.ConsoleView, - GlobalConsole: org.autojs.autojs.core.console.GlobalConsole, - }, - eventloop: { - EventEmitter: org.autojs.autojs.core.eventloop.EventEmitter, - SimpleEvent: org.autojs.autojs.core.eventloop.SimpleEvent, - }, - floaty: { - BaseResizableFloatyWindow: org.autojs.autojs.core.floaty.BaseResizableFloatyWindow, - RawWindow: org.autojs.autojs.core.floaty.RawWindow, - }, - graphics: { - ScriptCanvasView: org.autojs.autojs.core.graphics.ScriptCanvasView, - }, - image: { - ColorFinder: org.autojs.autojs.core.image.ColorFinder, - Colors: org.autojs.autojs.core.image.Colors, - ImageWrapper: org.autojs.autojs.core.image.ImageWrapper, - TemplateMatching: org.autojs.autojs.core.image.TemplateMatching, - capture: { - ScreenCaptureRequestActivity: org.autojs.autojs.core.image.capture.ScreenCaptureRequestActivity, - ScreenCaptureRequester: org.autojs.autojs.core.image.capture.ScreenCaptureRequester, - ScreenCapturer: org.autojs.autojs.core.image.capture.ScreenCapturer, - ScreenCapturerForegroundService: org.autojs.autojs.core.image.capture.ScreenCapturerForegroundService, - }, - }, - inputevent: { - InputDevices: org.autojs.autojs.core.inputevent.InputDevices, - InputEventCodes: org.autojs.autojs.core.inputevent.InputEventCodes, - InputEventObserver: org.autojs.autojs.core.inputevent.InputEventObserver, - RootAutomator: org.autojs.autojs.core.inputevent.RootAutomator, - ShellKeyObserver: org.autojs.autojs.core.inputevent.ShellKeyObserver, - TouchObserver: org.autojs.autojs.core.inputevent.TouchObserver, - }, - internal: { - Functions: org.autojs.autojs.core.internal.Functions, - }, - looper: { - LooperHelper: org.autojs.autojs.core.looper.LooperHelper, - Loopers: org.autojs.autojs.core.looper.Loopers, - MainThreadProxy: org.autojs.autojs.core.looper.MainThreadProxy, - Timer: org.autojs.autojs.core.looper.Timer, - TimerThread: org.autojs.autojs.core.looper.TimerThread, - }, - opencv: { - Mat: org.autojs.autojs.core.opencv.Mat, - MatOfPoint: org.autojs.autojs.core.opencv.MatOfPoint, - OpenCVHelper: org.autojs.autojs.core.opencv.OpenCVHelper, - }, - permission: { - OnRequestPermissionsResultCallback: org.autojs.autojs.core.permission.OnRequestPermissionsResultCallback, - PermissionRequestProxyActivity: org.autojs.autojs.core.permission.PermissionRequestProxyActivity, - Permissions: org.autojs.autojs.permission.Base, - RequestPermissionCallbacks: org.autojs.autojs.core.permission.RequestPermissionCallbacks, - }, - plugin: { - Plugin: org.autojs.autojs.core.plugin.Plugin, - }, - pref: { - Pref: org.autojs.autojs.pref.Pref, - }, - record: { - Recorder: org.autojs.autojs.core.record.Recorder, - accessibility: { - AccessibilityActionRecorder: org.autojs.autojs.core.record.accessibility.AccessibilityActionRecorder, - }, - inputevent: { - EventFormatException: org.autojs.autojs.core.record.inputevent.EventFormatException, - InputEventRecorder: org.autojs.autojs.core.record.inputevent.InputEventRecorder, - InputEventToAutoFileRecorder: org.autojs.autojs.core.record.inputevent.InputEventToAutoFileRecorder, - InputEventToRootAutomatorRecorder: org.autojs.autojs.core.record.inputevent.InputEventToRootAutomatorRecorder, - TouchRecorder: org.autojs.autojs.core.record.inputevent.TouchRecorder, - }, - }, - ui: { - BaseEvent: org.autojs.autojs.core.ui.BaseEvent, - JsViewHelper: org.autojs.autojs.core.ui.JsViewHelper, - ViewExtras: org.autojs.autojs.core.ui.ViewExtras, - attribute: { - ViewAttributes: org.autojs.autojs.core.ui.attribute.ViewAttributes, - ViewAttributesFactory: org.autojs.autojs.core.ui.attribute.ViewAttributesFactory, - }, - dialog: { - BlockedMaterialDialog: org.autojs.autojs.core.ui.dialog.BlockedMaterialDialog, - JsDialogBuilder: org.autojs.autojs.core.ui.dialog.JsDialogBuilder, - }, - inflater: { - DynamicLayoutInflater: org.autojs.autojs.core.ui.inflater.DynamicLayoutInflater, - ImageLoader: org.autojs.autojs.core.ui.inflater.ImageLoader, - ResourceParser: org.autojs.autojs.core.ui.inflater.ResourceParser, - ShouldCallOnFinishInflate: org.autojs.autojs.core.ui.inflater.ShouldCallOnFinishInflate, - ViewCreator: org.autojs.autojs.core.ui.inflater.ViewCreator, - ViewInflater: org.autojs.autojs.core.ui.inflater.ViewInflater, - inflaters: { - AppBarInflater: org.autojs.autojs.core.ui.inflater.inflaters.AppBarInflater, - BaseViewInflater: org.autojs.autojs.core.ui.inflater.inflaters.BaseViewInflater, - CanvasViewInflater: org.autojs.autojs.core.ui.inflater.inflaters.CanvasViewInflater, - DatePickerInflater: org.autojs.autojs.core.ui.inflater.inflaters.DatePickerInflater, - Exceptions: org.autojs.autojs.core.ui.inflater.inflaters.Exceptions, - FrameLayoutInflater: org.autojs.autojs.core.ui.inflater.inflaters.FrameLayoutInflater, - ImageViewInflater: org.autojs.autojs.core.ui.inflater.inflaters.ImageViewInflater, - JsGridViewInflater: org.autojs.autojs.core.ui.inflater.inflaters.JsGridViewInflater, - JsImageViewInflater: org.autojs.autojs.core.ui.inflater.inflaters.JsImageViewInflater, - JsListViewInflater: org.autojs.autojs.core.ui.inflater.inflaters.JsListViewInflater, - LinearLayoutInflater: org.autojs.autojs.core.ui.inflater.inflaters.LinearLayoutInflater, - ProgressBarInflater: org.autojs.autojs.core.ui.inflater.inflaters.ProgressBarInflater, - RadioGroupInflater: org.autojs.autojs.core.ui.inflater.inflaters.RadioGroupInflater, - SpinnerInflater: org.autojs.autojs.core.ui.inflater.inflaters.SpinnerInflater, - TabLayoutInflater: org.autojs.autojs.core.ui.inflater.inflaters.TabLayoutInflater, - TextViewInflater: org.autojs.autojs.core.ui.inflater.inflaters.TextViewInflater, - TimePickerInflater: org.autojs.autojs.core.ui.inflater.inflaters.TimePickerInflater, - ToolbarInflater: org.autojs.autojs.core.ui.inflater.inflaters.ToolbarInflater, - ViewGroupInflater: org.autojs.autojs.core.ui.inflater.inflaters.ViewGroupInflater, - }, - util: { - Colors: org.autojs.autojs.core.ui.inflater.util.Colors, - Dimensions: org.autojs.autojs.core.ui.inflater.util.Dimensions, - Drawables: org.autojs.autojs.core.ui.inflater.util.Drawables, - Gravities: org.autojs.autojs.core.ui.inflater.util.Gravities, - Ids: org.autojs.autojs.core.ui.inflater.util.Ids, - Res: org.autojs.autojs.core.ui.inflater.util.Res, - Strings: org.autojs.autojs.core.ui.inflater.util.Strings, - ValueMapper: org.autojs.autojs.core.ui.inflater.util.ValueMapper, - }, - }, - nativeview: { - NativeView: org.autojs.autojs.core.ui.nativeview.NativeView, - ViewPrototype: org.autojs.autojs.core.ui.nativeview.ViewPrototype, - }, - widget: { - CustomSnackbar: org.autojs.autojs.core.ui.widget.CustomSnackbar, - JsButton: org.autojs.autojs.core.ui.widget.JsButton, - JsEditText: org.autojs.autojs.core.ui.widget.JsEditText, - JsFrameLayout: org.autojs.autojs.core.ui.widget.JsFrameLayout, - JsGridView: org.autojs.autojs.core.ui.widget.JsGridView, - JsImageView: org.autojs.autojs.core.ui.widget.JsImageView, - JsLinearLayout: org.autojs.autojs.core.ui.widget.JsLinearLayout, - JsListView: org.autojs.autojs.core.ui.widget.JsListView, - JsRelativeLayout: org.autojs.autojs.core.ui.widget.JsRelativeLayout, - JsSpinner: org.autojs.autojs.core.ui.widget.JsSpinner, - JsTabLayout: org.autojs.autojs.core.ui.widget.JsTabLayout, - JsTextView: org.autojs.autojs.core.ui.widget.JsTextView, - JsTextViewLegacy: org.autojs.autojs.core.ui.widget.JsTextViewLegacy, - JsToolbar: org.autojs.autojs.core.ui.widget.JsToolbar, - JsViewPager: org.autojs.autojs.core.ui.widget.JsViewPager, - JsWebView: org.autojs.autojs.core.ui.widget.JsWebView, - }, - xml: { - XmlConverter: org.autojs.autojs.core.ui.xml.XmlConverter, - }, - }, - util: { - ProcessShell: org.autojs.autojs.runtime.api.ProcessShell, - ScriptPromiseAdapter: org.autojs.autojs.runtime.api.ScriptPromiseAdapter, - Shell: org.autojs.autojs.runtime.api.Shell, - }, - }, - engine: { - JavaScriptEngine: org.autojs.autojs.engine.JavaScriptEngine, - LoopBasedJavaScriptEngine: org.autojs.autojs.engine.LoopBasedJavaScriptEngine, - RhinoJavaScriptEngine: org.autojs.autojs.engine.RhinoJavaScriptEngine, - RootAutomatorEngine: org.autojs.autojs.engine.RootAutomatorEngine, - ScriptEngine: org.autojs.autojs.engine.ScriptEngine, - ScriptEngineManager: org.autojs.autojs.engine.ScriptEngineManager, - encryption: { - ScriptEncryption: org.autojs.autojs.engine.encryption.ScriptEncryption, - }, - module: { - AssetAndUrlModuleSourceProvider: org.autojs.autojs.engine.module.AssetAndUrlModuleSourceProvider, - }, - preprocess: { - MultiLinePreprocessor: org.autojs.autojs.engine.preprocess.MultiLinePreprocessor, - }, - }, - execution: { - ExecutionConfig: org.autojs.autojs.execution.ExecutionConfig, - LoopedBasedJavaScriptExecution: org.autojs.autojs.execution.LoopedBasedJavaScriptExecution, - RunnableScriptExecution: org.autojs.autojs.execution.RunnableScriptExecution, - ScriptExecuteActivity: org.autojs.autojs.execution.ScriptExecuteActivity, - ScriptExecution: org.autojs.autojs.execution.ScriptExecution, - ScriptExecutionListener: org.autojs.autojs.execution.ScriptExecutionListener, - ScriptExecutionObserver: org.autojs.autojs.execution.ScriptExecutionObserver, - ScriptExecutionTask: org.autojs.autojs.execution.ScriptExecutionTask, - SimpleScriptExecutionListener: org.autojs.autojs.execution.SimpleScriptExecutionListener, - }, - // inrt: { - // BuildConfig: org.autojs.autojs.inrt.BuildConfig, - // LogActivity: org.autojs.autojs.inrt.LogActivity, - // Pref: org.autojs.autojs.inrt.Pref, - // R: org.autojs.autojs.inrt.R, - // SettingsActivity: org.autojs.autojs.inrt.SettingsActivity, - // autojs: { - // AutoJs: org.autojs.autojs.inrt.autojs.AutoJs, - // GlobalKeyObserver: org.autojs.autojs.inrt.autojs.GlobalKeyObserver, - // }, - // launch: { - // GlobalProjectLauncher: org.autojs.autojs.inrt.launch.GlobalProjectLauncher, - // }, - // }, - project: { - BuildInfo: org.autojs.autojs.project.BuildInfo, - ProjectConfig: org.autojs.autojs.project.ProjectConfig, - ProjectLauncher: org.autojs.autojs.project.ProjectLauncher, - ScriptConfig: org.autojs.autojs.project.ScriptConfig, - }, - rhino: { - AndroidClassLoader: org.autojs.autojs.rhino.AndroidClassLoader, - AutoJsContext: org.autojs.autojs.rhino.AutoJsContext, - InterruptibleAndroidContextFactory: org.autojs.autojs.rhino.InterruptibleAndroidContextFactory, - NativeJavaObjectWithPrototype: org.autojs.autojs.rhino.NativeJavaObjectWithPrototype, - ProxyObject: org.autojs.autojs.rhino.ProxyObject, - RhinoAndroidHelper: org.autojs.autojs.rhino.RhinoAndroidHelper, - TokenStream: org.autojs.autojs.rhino.TokenStream, - TopLevelScope: org.autojs.autojs.rhino.TopLevelScope, - continuation: { - Continuation: org.autojs.autojs.rhino.continuation.Continuation, - }, - debug: { - DebugCallback: org.autojs.autojs.rhino.debug.DebugCallback, - Debugger: org.autojs.autojs.rhino.debug.Debugger, - Dim: org.autojs.autojs.rhino.debug.Dim, - }, - }, - runtime: { - ScriptBridges: org.autojs.autojs.runtime.ScriptBridges, - ScriptRuntime: org.autojs.autojs.runtime.ScriptRuntime, - accessibility: { - AccessibilityConfig: org.autojs.autojs.runtime.accessibility.AccessibilityConfig, - }, - api: { - AbstractConsole: org.autojs.autojs.runtime.api.AbstractConsole, - AbstractShell: org.autojs.autojs.runtime.api.AbstractShell, - AppUtils: org.autojs.autojs.runtime.api.AppUtils, - Console: org.autojs.autojs.runtime.api.Console, - Device: org.autojs.autojs.runtime.api.Device, - Dialogs: org.autojs.autojs.runtime.api.Dialogs, - Engines: org.autojs.autojs.runtime.api.Engines, - Events: org.autojs.autojs.runtime.api.Events, - Files: org.autojs.autojs.runtime.api.Files, - Floaty: org.autojs.autojs.runtime.api.Floaty, - Images: org.autojs.autojs.runtime.api.Images, - Media: org.autojs.autojs.runtime.api.Media, - Plugins: org.autojs.autojs.runtime.api.Plugins, - Sensors: org.autojs.autojs.runtime.api.Sensors, - Threads: org.autojs.autojs.runtime.api.Threads, - Timers: org.autojs.autojs.runtime.api.Timers, - UI: org.autojs.autojs.runtime.api.UI, - }, - exception: { - ScriptEnvironmentException: org.autojs.autojs.runtime.exception.ScriptEnvironmentException, - ScriptException: org.autojs.autojs.runtime.exception.ScriptException, - ScriptInterruptedException: org.autojs.autojs.runtime.exception.ScriptInterruptedException, - }, - }, - script: { - AutoFileSource: org.autojs.autojs.script.AutoFileSource, - EncryptedScriptFileHeader: org.autojs.autojs.script.EncryptedScriptFileHeader, - JavaScriptFileSource: org.autojs.autojs.script.JavaScriptFileSource, - JavaScriptSource: org.autojs.autojs.script.JavaScriptSource, - JsBeautifier: org.autojs.autojs.script.JsBeautifier, - ScriptSource: org.autojs.autojs.script.ScriptSource, - SequenceScriptSource: org.autojs.autojs.script.SequenceScriptSource, - StringScriptSource: org.autojs.autojs.script.StringScriptSource, - }, - util: { - FloatingPermission: { - ensurePermissionGranted(context) { - let oo = new org.autojs.autojs.permission.DisplayOverOtherAppsPermission(context); - return Boolean(oo.has() || oo.request()); - }, - }, - ForegroundServiceCreator: org.autojs.autojs.tool.ForegroundServiceCreator, - ForegroundServiceUtils: org.autojs.autojs.util.ForegroundServiceUtils, - ProcessUtils: org.autojs.autojs.util.ProcessUtils, - }, - workground: { - WrapContentLinearLayoutManager: org.autojs.autojs.groundwork.WrapContentLinearLayoutManager, - }, - }, - automator: { - ActionArgument: org.autojs.autojs.core.automator.ActionArgument, - BuildConfig: org.autojs.autojs6.BuildConfig, - GlobalActionAutomator: org.autojs.autojs.core.automator.GlobalActionAutomator, - UiGlobalSelector: org.autojs.autojs.core.accessibility.UiSelector, - UiObject: org.autojs.autojs.core.automator.UiObject, - UiObjectCollection: org.autojs.autojs.core.automator.UiObjectCollection, - filter: { - Filter: org.autojs.autojs.core.automator.filter.Filter, - }, - search: { - BFS: org.autojs.autojs.core.automator.search.BFS, - DFS: org.autojs.autojs.core.automator.search.DFS, - SearchAlgorithm: org.autojs.autojs.core.automator.search.SearchAlgorithm, - }, - simple_action: { - ActionFactory: org.autojs.autojs.core.automator.action.ActionFactory, - ActionTarget: org.autojs.autojs.core.automator.action.ActionTarget, - FilterAction: org.autojs.autojs.core.automator.action.FilterAction, - SimpleAction: org.autojs.autojs.core.automator.action.SimpleAction, - }, - test: { - TestUiObject: org.autojs.autojs.core.automator.test.TestUiObject, - }, - }, - concurrent: { - VolatileBox: org.autojs.autojs.concurrent.VolatileBox, - VolatileDispose: org.autojs.autojs.concurrent.VolatileDispose, - }, - event: { - EventDispatcher: org.autojs.autojs.event.EventDispatcher, - }, - ext: { - ifNull: org.autojs.autojs.util.KotlinUtils.ifNull, - }, - io: { - ConcatReader: org.autojs.autojs.io.ConcatReader, - Zip: org.autojs.autojs.io.Zip, - }, - lang: { - ThreadCompat: org.autojs.autojs.lang.ThreadCompat, - }, - notification: { - Notification: org.autojs.autojs.core.notification.Notification, - NotificationListenerService: org.autojs.autojs.core.notification.NotificationListenerService, - }, - pio: { - PFile: org.autojs.autojs.pio.PFile, - PFileInterface: org.autojs.autojs.pio.PFileInterface, - PFiles: org.autojs.autojs.pio.PFiles, - UncheckedIOException: org.autojs.autojs.pio.UncheckedIOException, - }, - theme: { - ThemeColor: org.autojs.autojs.theme.ThemeColor, - ThemeColorHelper: org.autojs.autojs.theme.ThemeColorHelper, - ThemeColorManager: org.autojs.autojs.theme.ThemeColorManager, - ThemeColorMutable: org.autojs.autojs.theme.ThemeColorMutable, - app: { - ColorSelectActivity: org.autojs.autojs.theme.app.ColorSelectActivity, - }, - internal: { - DrawableTool: org.autojs.autojs.util.DrawableUtils, - ScrollingViewEdgeGlowColorHelper: org.autojs.autojs.theme.internal.ScrollingViewEdgeGlowColorHelper, - }, - preference: { - ThemeColorPreferenceFragment: org.autojs.autojs.theme.preference.ThemeColorPreferenceFragment, - }, - util: { - ListBuilder: org.autojs.autojs.theme.util.ListBuilder, - }, - }, - util: { - AdvancedEncryptionStandard: org.autojs.autojs.engine.encryption.AdvancedEncryptionStandard, - ArrayUtils: org.autojs.autojs.util.ArrayUtils, - BackPressedHandler: org.autojs.autojs.event.BackPressedHandler, - BiMap: org.autojs.autojs.core.ui.BiMap, - BiMaps: org.autojs.autojs.core.ui.BiMaps, - Callback: org.autojs.autojs.tool.Callback, - ClipboardUtil: org.autojs.autojs.util.ClipboardUtils, - Consumer: org.autojs.autojs.tool.Consumer, - DeveloperUtils: org.autojs.autojs.util.DeveloperUtils, - DrawerAutoClose: org.autojs.autojs.ui.widget.DrawerAutoClose, - Func1: org.autojs.autojs.tool.Func1, - HashUtils: org.autojs.autojs.util.MD5Utils, - IntentExtras: org.autojs.autojs.tool.IntentExtras, - IntentUtil: org.autojs.autojs.util.IntentUtils, - MD5: org.autojs.autojs.util.MD5Utils, - MapBuilder: org.autojs.autojs.tool.MapBuilder, - MimeTypes: org.autojs.autojs.util.MimeTypesUtils, - Nath: org.autojs.autojs.util.MathUtils, - Objects: org.autojs.autojs.util.Objects, - ScreenMetrics: org.autojs.autojs.runtime.api.ScreenMetrics, - SdkVersionUtil: org.autojs.autojs.util.SdkVersionUtils, - SparseArrayEntries: org.autojs.autojs.tool.SparseArrayEntries, - Supplier: org.autojs.autojs.tool.Supplier, - TextUtils: org.autojs.autojs.util.StringUtils, - UiHandler: org.autojs.autojs.tool.UiHandler, - ViewUtil: org.autojs.autojs.util.ViewUtils, - ViewUtils: org.autojs.autojs.util.ViewUtils, - sortedArrayOf: org.autojs.autojs.util.KotlinUtils.sortedArrayOf, - }, - view: { - accessibility: { - AccessibilityDelegate: org.autojs.autojs.core.accessibility.AccessibilityDelegate, - AccessibilityNodeInfoAllocator: org.autojs.autojs.core.accessibility.AccessibilityNodeInfoAllocator, - AccessibilityNodeInfoHelper: org.autojs.autojs.core.accessibility.AccessibilityNodeInfoHelper, - AccessibilityNotificationObserver: org.autojs.autojs.core.accessibility.AccessibilityNotificationObserver, - AccessibilityService: org.autojs.autojs.core.accessibility.AccessibilityService, - KeyInterceptor: org.autojs.autojs.core.accessibility.KeyInterceptor, - LayoutInspector: org.autojs.autojs.core.accessibility.LayoutInspector, - NodeInfo: org.autojs.autojs.core.accessibility.NodeInfo, - NotificationListener: org.autojs.autojs.core.accessibility.NotificationListener, - OnKeyListener: org.autojs.autojs.core.accessibility.OnKeyListener, - }, - }, -}; - -module.exports = Object.assign(com.stardust, map); diff --git a/app/src/main/java/com/stardust/Redirect.kt b/app/src/main/java/com/stardust/Redirect.kt new file mode 100644 index 00000000..991fabc8 --- /dev/null +++ b/app/src/main/java/com/stardust/Redirect.kt @@ -0,0 +1,538 @@ +@file:Suppress("ClassName", "unused", "SpellCheckingInspection", "MayBeConstant") + +package com.stardust + +import org.autojs.autojs6.R as AutoJs6R +import org.autojs.autojs6.BuildConfig as AutoJs6BuildConfig + +object R { + + object string { + @JvmField val apk_builder_build = AutoJs6R.string.legacy_apk_builder_build + @JvmField val apk_builder_clean = AutoJs6R.string.legacy_apk_builder_clean + @JvmField val apk_builder_package = AutoJs6R.string.legacy_apk_builder_package + @JvmField val apk_builder_plugin_version_too_low = AutoJs6R.string.legacy_apk_builder_plugin_version_too_low + @JvmField val apk_builder_prepare = AutoJs6R.string.legacy_apk_builder_prepare + @JvmField val app_name = AutoJs6R.string.legacy_app_name + @JvmField val cancel = AutoJs6R.string.legacy_cancel + @JvmField val confirm_overwrite_file = AutoJs6R.string.legacy_confirm_overwrite_file + @JvmField val copyright = AutoJs6R.string.legacy_copyright + @JvmField val crash_feedback = AutoJs6R.string.legacy_crash_feedback + @JvmField val debug = AutoJs6R.string.legacy_debug + @JvmField val default_main_file_name = AutoJs6R.string.legacy_default_main_file_name + @JvmField val default_value_script_dir_path = AutoJs6R.string.legacy_default_value_script_dir_path + @JvmField val description_stable_mode = AutoJs6R.string.legacy_description_stable_mode + @JvmField val description_usage_stats_permission = AutoJs6R.string.legacy_description_usage_stats_permission + @JvmField val developer = AutoJs6R.string.legacy_developer + @JvmField val dex_crcs = AutoJs6R.string.legacy_dex_crcs + @JvmField val edit_and_run_handle_intent_error = AutoJs6R.string.legacy_edit_and_run_handle_intent_error + @JvmField val edit_exit_without_save_warn = AutoJs6R.string.legacy_edit_exit_without_save_warn + @JvmField val email = AutoJs6R.string.legacy_email + @JvmField val error_activity_not_found_for_apk_installing = AutoJs6R.string.legacy_error_activity_not_found_for_apk_installing + @JvmField val error_cannot_rename = AutoJs6R.string.legacy_error_cannot_rename + @JvmField val error_connect_to_remote = AutoJs6R.string.legacy_error_connect_to_remote + @JvmField val error_empty_selection = AutoJs6R.string.legacy_error_empty_selection + @JvmField val error_pattern_syntax = AutoJs6R.string.legacy_error_pattern_syntax + @JvmField val error_regex_find_prev = AutoJs6R.string.legacy_error_regex_find_prev + @JvmField val exception_notification_service_disabled = AutoJs6R.string.legacy_exception_notification_service_disabled + @JvmField val explain_accessibility_permission = AutoJs6R.string.legacy_explain_accessibility_permission + @JvmField val foreground_notification_channel_name = AutoJs6R.string.legacy_foreground_notification_channel_name + @JvmField val foreground_notification_text = AutoJs6R.string.legacy_foreground_notification_text + @JvmField val foreground_notification_title = AutoJs6R.string.legacy_foreground_notification_title + @JvmField val format_build_successfully = AutoJs6R.string.legacy_format_build_successfully + @JvmField val format_debug_bar_title = AutoJs6R.string.legacy_format_debug_bar_title + @JvmField val format_default_package_name = AutoJs6R.string.legacy_format_default_package_name + @JvmField val format_editor_info = AutoJs6R.string.legacy_format_editor_info + @JvmField val format_file_downloaded = AutoJs6R.string.legacy_format_file_downloaded + @JvmField val github = AutoJs6R.string.legacy_github + @JvmField val go_to_accessibility_settings = AutoJs6R.string.legacy_go_to_accessibility_settings + @JvmField val hint_long_click_run_to_debug = AutoJs6R.string.legacy_hint_long_click_run_to_debug + @JvmField val hint_loop_delay = AutoJs6R.string.legacy_hint_loop_delay + @JvmField val hint_loop_times = AutoJs6R.string.legacy_hint_loop_times + @JvmField val hint_regex = AutoJs6R.string.legacy_hint_regex + @JvmField val key_documentation_source = AutoJs6R.string.legacy_key_documentation_source + @JvmField val key_enable_accessibility_service_by_root = AutoJs6R.string.legacy_key_enable_accessibility_service_by_root + @JvmField val key_enable_observe_key = AutoJs6R.string.legacy_key_enable_observe_key + @JvmField val key_foreground_servie = AutoJs6R.string.legacy_key_foreground_servie + @JvmField val key_guard_mode = AutoJs6R.string.legacy_key_guard_mode + @JvmField val key_max_length_for_code_completion = AutoJs6R.string.legacy_key_max_length_for_code_completion + @JvmField val key_night_mode = AutoJs6R.string.legacy_key_night_mode + @JvmField val key_record_toast = AutoJs6R.string.legacy_key_record_toast + @JvmField val key_root_record_out_file_type = AutoJs6R.string.legacy_key_root_record_out_file_type + @JvmField val key_script_dir_path = AutoJs6R.string.legacy_key_script_dir_path + @JvmField val key_stable_mode = AutoJs6R.string.legacy_key_stable_mode + @JvmField val key_use_volume_control_record = AutoJs6R.string.legacy_key_use_volume_control_record + @JvmField val key_use_volume_control_running = AutoJs6R.string.legacy_key_use_volume_control_running + @JvmField val my_github = AutoJs6R.string.legacy_my_github + @JvmField val nodebb_error_change_password_error_length = AutoJs6R.string.legacy_nodebb_error_change_password_error_length + @JvmField val nodebb_error_change_password_error_match = AutoJs6R.string.legacy_nodebb_error_change_password_error_match + @JvmField val nodebb_error_email_taken = AutoJs6R.string.legacy_nodebb_error_email_taken + @JvmField val nodebb_error_forbidden = AutoJs6R.string.legacy_nodebb_error_forbidden + @JvmField val nodebb_error_invalid_login_credentials = AutoJs6R.string.legacy_nodebb_error_invalid_login_credentials + @JvmField val notice_no_running_script = AutoJs6R.string.legacy_notice_no_running_script + @JvmField val not_login = AutoJs6R.string.legacy_not_login + @JvmField val no_apk_builder_plugin = AutoJs6R.string.legacy_no_apk_builder_plugin + @JvmField val no_read_phone_state_permissin = AutoJs6R.string.legacy_no_read_phone_state_permissin + @JvmField val no_write_settings_permissin = AutoJs6R.string.legacy_no_write_settings_permissin + @JvmField val ok = AutoJs6R.string.legacy_ok + @JvmField val prompt_device_not_rooted = AutoJs6R.string.legacy_prompt_device_not_rooted + @JvmField val qq = AutoJs6R.string.legacy_qq + @JvmField val share_app = AutoJs6R.string.legacy_share_app + @JvmField val summary_enable_accessibility_service_by_root = AutoJs6R.string.legacy_summary_enable_accessibility_service_by_root + @JvmField val summary_guard_mode = AutoJs6R.string.legacy_summary_guard_mode + @JvmField val summary_pre_execute_script = AutoJs6R.string.legacy_summary_pre_execute_script + @JvmField val summary_stable_mode = AutoJs6R.string.legacy_summary_stable_mode + @JvmField val summary_use_volume_control_record = AutoJs6R.string.legacy_summary_use_volume_control_record + @JvmField val text_about = AutoJs6R.string.legacy_text_about + @JvmField val text_about_me_and_repo = AutoJs6R.string.legacy_text_about_me_and_repo + @JvmField val text_accessibility_service = AutoJs6R.string.legacy_text_accessibility_service + @JvmField val text_accessibility_service_description = AutoJs6R.string.legacy_text_accessibility_service_description + @JvmField val text_accessibility_settings = AutoJs6R.string.legacy_text_accessibility_settings + @JvmField val text_action = AutoJs6R.string.legacy_text_action + @JvmField val text_again = AutoJs6R.string.legacy_text_again + @JvmField val text_again_and_again = AutoJs6R.string.legacy_text_again_and_again + @JvmField val text_again_and_again_again = AutoJs6R.string.legacy_text_again_and_again_again + @JvmField val text_again_and_again_again_again = AutoJs6R.string.legacy_text_again_and_again_again_again + @JvmField val text_alert = AutoJs6R.string.legacy_text_alert + @JvmField val text_already_copy_to_clip = AutoJs6R.string.legacy_text_already_copy_to_clip + @JvmField val text_already_create = AutoJs6R.string.legacy_text_already_create + @JvmField val text_already_delete = AutoJs6R.string.legacy_text_already_delete + @JvmField val text_already_stop_n_scripts = AutoJs6R.string.legacy_text_already_stop_n_scripts + @JvmField val text_annunciation = AutoJs6R.string.legacy_text_annunciation + @JvmField val text_apk_builder_plugin_unavailable = AutoJs6R.string.legacy_text_apk_builder_plugin_unavailable + @JvmField val text_appearance = AutoJs6R.string.legacy_text_appearance + @JvmField val text_app_name = AutoJs6R.string.legacy_text_app_name + @JvmField val text_are_you_sure_to_delete = AutoJs6R.string.legacy_text_are_you_sure_to_delete + @JvmField val text_attribute = AutoJs6R.string.legacy_text_attribute + @JvmField val text_auto_operate_service = AutoJs6R.string.legacy_text_auto_operate_service + @JvmField val text_auto_operate_service_enabled_but_not_running = AutoJs6R.string.legacy_text_auto_operate_service_enabled_but_not_running + @JvmField val text_binary = AutoJs6R.string.legacy_text_binary + @JvmField val text_broadcast_action = AutoJs6R.string.legacy_text_broadcast_action + @JvmField val text_broadcast_action_prefix = AutoJs6R.string.legacy_text_broadcast_action_prefix + @JvmField val text_build_apk = AutoJs6R.string.legacy_text_build_apk + @JvmField val text_build_failed = AutoJs6R.string.legacy_text_build_failed + @JvmField val text_build_successfully = AutoJs6R.string.legacy_text_build_successfully + @JvmField val text_cancel = AutoJs6R.string.legacy_text_cancel + @JvmField val text_cancel_download = AutoJs6R.string.legacy_text_cancel_download + @JvmField val text_cannot_read_file = AutoJs6R.string.legacy_text_cannot_read_file + @JvmField val text_change_script_dir = AutoJs6R.string.legacy_text_change_script_dir + @JvmField val text_checking_update = AutoJs6R.string.legacy_text_checking_update + @JvmField val text_check_for_updates = AutoJs6R.string.legacy_text_check_for_updates + @JvmField val text_check_update_error = AutoJs6R.string.legacy_text_check_update_error + @JvmField val text_class_or_package_name = AutoJs6R.string.legacy_text_class_or_package_name + @JvmField val text_clear = AutoJs6R.string.legacy_text_clear + @JvmField val text_clear_file_selection = AutoJs6R.string.legacy_text_clear_file_selection + @JvmField val text_clear_pre_execute_script = AutoJs6R.string.legacy_text_clear_pre_execute_script + @JvmField val text_click = AutoJs6R.string.legacy_text_click + @JvmField val text_clicked = AutoJs6R.string.legacy_text_clicked + @JvmField val text_click_too_frequently = AutoJs6R.string.legacy_text_click_too_frequently + @JvmField val text_close = AutoJs6R.string.legacy_text_close + @JvmField val text_code = AutoJs6R.string.legacy_text_code + @JvmField val text_code_beautify = AutoJs6R.string.legacy_text_code_beautify + @JvmField val text_community = AutoJs6R.string.legacy_text_community + @JvmField val text_community_category = AutoJs6R.string.legacy_text_community_category + @JvmField val text_community_popular = AutoJs6R.string.legacy_text_community_popular + @JvmField val text_community_recent = AutoJs6R.string.legacy_text_community_recent + @JvmField val text_community_tags = AutoJs6R.string.legacy_text_community_tags + @JvmField val text_community_unread = AutoJs6R.string.legacy_text_community_unread + @JvmField val text_config = AutoJs6R.string.legacy_text_config + @JvmField val text_console = AutoJs6R.string.legacy_text_console + @JvmField val text_copy = AutoJs6R.string.legacy_text_copy + @JvmField val text_copy_all = AutoJs6R.string.legacy_text_copy_all + @JvmField val text_copy_debug_info = AutoJs6R.string.legacy_text_copy_debug_info + @JvmField val text_copy_line = AutoJs6R.string.legacy_text_copy_line + @JvmField val text_copy_to_clip = AutoJs6R.string.legacy_text_copy_to_clip + @JvmField val text_copy_to_my_scripts = AutoJs6R.string.legacy_text_copy_to_my_scripts + @JvmField val text_copy_value = AutoJs6R.string.legacy_text_copy_value + @JvmField val text_crash = AutoJs6R.string.legacy_text_crash + @JvmField val text_create_fail = AutoJs6R.string.legacy_text_create_fail + @JvmField val text_current_activity = AutoJs6R.string.legacy_text_current_activity + @JvmField val text_current_package = AutoJs6R.string.legacy_text_current_package + @JvmField val text_daily_task = AutoJs6R.string.legacy_text_daily_task + @JvmField val text_day1 = AutoJs6R.string.legacy_text_day1 + @JvmField val text_day2 = AutoJs6R.string.legacy_text_day2 + @JvmField val text_day3 = AutoJs6R.string.legacy_text_day3 + @JvmField val text_day4 = AutoJs6R.string.legacy_text_day4 + @JvmField val text_day5 = AutoJs6R.string.legacy_text_day5 + @JvmField val text_day6 = AutoJs6R.string.legacy_text_day6 + @JvmField val text_day7 = AutoJs6R.string.legacy_text_day7 + @JvmField val text_debug = AutoJs6R.string.legacy_text_debug + @JvmField val text_debug_resume_script = AutoJs6R.string.legacy_text_debug_resume_script + @JvmField val text_debug_step_into = AutoJs6R.string.legacy_text_debug_step_into + @JvmField val text_debug_step_out = AutoJs6R.string.legacy_text_debug_step_out + @JvmField val text_debug_step_over = AutoJs6R.string.legacy_text_debug_step_over + @JvmField val text_delete = AutoJs6R.string.legacy_text_delete + @JvmField val text_delete_failed = AutoJs6R.string.legacy_text_delete_failed + @JvmField val text_delete_line = AutoJs6R.string.legacy_text_delete_line + @JvmField val text_detail = AutoJs6R.string.legacy_text_detail + @JvmField val text_device_not_rooted = AutoJs6R.string.legacy_text_device_not_rooted + @JvmField val text_device_rooted = AutoJs6R.string.legacy_text_device_rooted + @JvmField val text_directly_download = AutoJs6R.string.legacy_text_directly_download + @JvmField val text_directory = AutoJs6R.string.legacy_text_directory + @JvmField val text_disposable_task = AutoJs6R.string.legacy_text_disposable_task + @JvmField val text_disposable_task_time_before_now = AutoJs6R.string.legacy_text_disposable_task_time_before_now + @JvmField val text_documentation_source = AutoJs6R.string.legacy_text_documentation_source + @JvmField val text_done = AutoJs6R.string.legacy_text_done + @JvmField val text_download = AutoJs6R.string.legacy_text_download + @JvmField val text_download_failed = AutoJs6R.string.legacy_text_download_failed + @JvmField val text_download_url = AutoJs6R.string.legacy_text_download_url + @JvmField val text_downvote = AutoJs6R.string.legacy_text_downvote + @JvmField val text_do_not_ask_again_for_this_version = AutoJs6R.string.legacy_text_do_not_ask_again_for_this_version + @JvmField val text_do_not_remind_again = AutoJs6R.string.legacy_text_do_not_remind_again + @JvmField val text_drawer_close = AutoJs6R.string.legacy_text_drawer_close + @JvmField val text_drawer_open = AutoJs6R.string.legacy_text_drawer_open + @JvmField val text_edit = AutoJs6R.string.legacy_text_edit + @JvmField val text_editor_theme = AutoJs6R.string.legacy_text_editor_theme + @JvmField val text_edit_prepare_script = AutoJs6R.string.legacy_text_edit_prepare_script + @JvmField val text_edit_script = AutoJs6R.string.legacy_text_edit_script + @JvmField val text_email = AutoJs6R.string.legacy_text_email + @JvmField val text_email_cannot_be_empty = AutoJs6R.string.legacy_text_email_cannot_be_empty + @JvmField val text_email_format_error = AutoJs6R.string.legacy_text_email_format_error + @JvmField val text_enable_accessibility_service_by_root = AutoJs6R.string.legacy_text_enable_accessibility_service_by_root + @JvmField val text_enable_accessibility_service_by_root_timeout = AutoJs6R.string.legacy_text_enable_accessibility_service_by_root_timeout + @JvmField val text_enable_accessibitliy_service_by_root_failed = AutoJs6R.string.legacy_text_enable_accessibitliy_service_by_root_failed + @JvmField val text_en_import = AutoJs6R.string.legacy_text_en_import + @JvmField val text_error = AutoJs6R.string.legacy_text_error + @JvmField val text_error_copy_file = AutoJs6R.string.legacy_text_error_copy_file + @JvmField val text_error_report = AutoJs6R.string.legacy_text_error_report + @JvmField val text_execute = AutoJs6R.string.legacy_text_execute + @JvmField val text_execute_code = AutoJs6R.string.legacy_text_execute_code + @JvmField val text_execution_finished = AutoJs6R.string.legacy_text_execution_finished + @JvmField val text_exit = AutoJs6R.string.legacy_text_exit + @JvmField val text_exit_directly = AutoJs6R.string.legacy_text_exit_directly + @JvmField val text_exit_floating_window = AutoJs6R.string.legacy_text_exit_floating_window + @JvmField val text_file = AutoJs6R.string.legacy_text_file + @JvmField val text_file_exists = AutoJs6R.string.legacy_text_file_exists + @JvmField val text_file_not_exists = AutoJs6R.string.legacy_text_file_not_exists + @JvmField val text_file_write_fail = AutoJs6R.string.legacy_text_file_write_fail + @JvmField val text_find = AutoJs6R.string.legacy_text_find + @JvmField val text_find_next = AutoJs6R.string.legacy_text_find_next + @JvmField val text_find_one = AutoJs6R.string.legacy_text_find_one + @JvmField val text_find_or_replace = AutoJs6R.string.legacy_text_find_or_replace + @JvmField val text_find_prev = AutoJs6R.string.legacy_text_find_prev + @JvmField val text_floating_window = AutoJs6R.string.legacy_text_floating_window + @JvmField val text_force_stop = AutoJs6R.string.legacy_text_force_stop + @JvmField val text_foreground_service = AutoJs6R.string.legacy_text_foreground_service + @JvmField val text_forgot_password = AutoJs6R.string.legacy_text_forgot_password + @JvmField val text_generate = AutoJs6R.string.legacy_text_generate + @JvmField val text_generated_code = AutoJs6R.string.legacy_text_generated_code + @JvmField val text_generate_code = AutoJs6R.string.legacy_text_generate_code + @JvmField val text_generate_fail = AutoJs6R.string.legacy_text_generate_fail + @JvmField val text_go_to_setting = AutoJs6R.string.legacy_text_go_to_setting + @JvmField val text_guard_mode = AutoJs6R.string.legacy_text_guard_mode + @JvmField val text_help = AutoJs6R.string.legacy_text_help + @JvmField val text_icon = AutoJs6R.string.legacy_text_icon + @JvmField val text_import = AutoJs6R.string.legacy_text_import + @JvmField val text_import_fail = AutoJs6R.string.legacy_text_import_fail + @JvmField val text_import_script = AutoJs6R.string.legacy_text_import_script + @JvmField val text_import_succeed = AutoJs6R.string.legacy_text_import_succeed + @JvmField val text_info = AutoJs6R.string.legacy_text_info + @JvmField val text_inspect_layout = AutoJs6R.string.legacy_text_inspect_layout + @JvmField val text_inspect_layout_bounds = AutoJs6R.string.legacy_text_inspect_layout_bounds + @JvmField val text_inspect_layout_hierarchy = AutoJs6R.string.legacy_text_inspect_layout_hierarchy + @JvmField val text_install = AutoJs6R.string.legacy_text_install + @JvmField val text_invalid_package_name = AutoJs6R.string.legacy_text_invalid_package_name + @JvmField val text_invalid_project = AutoJs6R.string.legacy_text_invalid_project + @JvmField val text_issue_report = AutoJs6R.string.legacy_text_issue_report + @JvmField val text_is_latest_version = AutoJs6R.string.legacy_text_is_latest_version + @JvmField val text_it_is_the_developer_of_app = AutoJs6R.string.legacy_text_it_is_the_developer_of_app + @JvmField val text_js_file = AutoJs6R.string.legacy_text_js_file + @JvmField val text_jump = AutoJs6R.string.legacy_text_jump + @JvmField val text_jump_to_end = AutoJs6R.string.legacy_text_jump_to_end + @JvmField val text_jump_to_line = AutoJs6R.string.legacy_text_jump_to_line + @JvmField val text_jump_to_line_end = AutoJs6R.string.legacy_text_jump_to_line_end + @JvmField val text_jump_to_line_start = AutoJs6R.string.legacy_text_jump_to_line_start + @JvmField val text_jump_to_start = AutoJs6R.string.legacy_text_jump_to_start + @JvmField val text_launch_config = AutoJs6R.string.legacy_text_launch_config + @JvmField val text_launch_debugger = AutoJs6R.string.legacy_text_launch_debugger + @JvmField val text_layout_inspector_is_dumping = AutoJs6R.string.legacy_text_layout_inspector_is_dumping + @JvmField val text_licenses = AutoJs6R.string.legacy_text_licenses + @JvmField val text_log = AutoJs6R.string.legacy_text_log + @JvmField val text_login = AutoJs6R.string.legacy_text_login + @JvmField val text_logining = AutoJs6R.string.legacy_text_logining + @JvmField val text_login_fail = AutoJs6R.string.legacy_text_login_fail + @JvmField val text_login_succeed = AutoJs6R.string.legacy_text_login_succeed + @JvmField val text_logout = AutoJs6R.string.legacy_text_logout + @JvmField val text_long_click = AutoJs6R.string.legacy_text_long_click + @JvmField val text_long_clicked = AutoJs6R.string.legacy_text_long_clicked + @JvmField val text_loop_delay = AutoJs6R.string.legacy_text_loop_delay + @JvmField val text_loop_interval = AutoJs6R.string.legacy_text_loop_interval + @JvmField val text_loop_times = AutoJs6R.string.legacy_text_loop_times + @JvmField val text_main_file_name = AutoJs6R.string.legacy_text_main_file_name + @JvmField val text_manage = AutoJs6R.string.legacy_text_manage + @JvmField val text_market = AutoJs6R.string.legacy_text_market + @JvmField val text_max_length_for_code_completion = AutoJs6R.string.legacy_text_max_length_for_code_completion + @JvmField val text_mobile_qq_not_installed = AutoJs6R.string.legacy_text_mobile_qq_not_installed + @JvmField val text_more = AutoJs6R.string.legacy_text_more + @JvmField val text_name = AutoJs6R.string.legacy_text_name + @JvmField val text_need_to_enable_accessibility_service = AutoJs6R.string.legacy_text_need_to_enable_accessibility_service + @JvmField val text_new_file = AutoJs6R.string.legacy_text_new_file + @JvmField val text_new_project = AutoJs6R.string.legacy_text_new_project + @JvmField val text_new_version = AutoJs6R.string.legacy_text_new_version + @JvmField val text_new_watching_variable = AutoJs6R.string.legacy_text_new_watching_variable + @JvmField val text_next_run_time = AutoJs6R.string.legacy_text_next_run_time + @JvmField val text_night_mode = AutoJs6R.string.legacy_text_night_mode + @JvmField val text_notification = AutoJs6R.string.legacy_text_notification + @JvmField val text_notification_permission = AutoJs6R.string.legacy_text_notification_permission + @JvmField val text_no_accessibility_permission = AutoJs6R.string.legacy_text_no_accessibility_permission + @JvmField val text_no_accessibility_permission_to_capture = AutoJs6R.string.legacy_text_no_accessibility_permission_to_capture + @JvmField val text_no_brower = AutoJs6R.string.legacy_text_no_brower + @JvmField val text_no_file_rw_permission = AutoJs6R.string.legacy_text_no_file_rw_permission + @JvmField val text_no_floating_window_permission = AutoJs6R.string.legacy_text_no_floating_window_permission + @JvmField val text_no_root = AutoJs6R.string.legacy_text_no_root + @JvmField val text_no_running_script = AutoJs6R.string.legacy_text_no_running_script + @JvmField val text_number_format_error = AutoJs6R.string.legacy_text_number_format_error + @JvmField val text_on_progress = AutoJs6R.string.legacy_text_on_progress + @JvmField val text_open = AutoJs6R.string.legacy_text_open + @JvmField val text_open_by_other_apps = AutoJs6R.string.legacy_text_open_by_other_apps + @JvmField val text_open_main_activity = AutoJs6R.string.legacy_text_open_main_activity + @JvmField val text_open_with = AutoJs6R.string.legacy_text_open_with + @JvmField val text_options = AutoJs6R.string.legacy_text_options + @JvmField val text_others = AutoJs6R.string.legacy_text_others + @JvmField val text_output_apk_path = AutoJs6R.string.legacy_text_output_apk_path + @JvmField val text_package_name = AutoJs6R.string.legacy_text_package_name + @JvmField val text_password = AutoJs6R.string.legacy_text_password + @JvmField val text_password_cannot_be_empty = AutoJs6R.string.legacy_text_password_cannot_be_empty + @JvmField val text_path_is_empty = AutoJs6R.string.legacy_text_path_is_empty + @JvmField val text_please_choose = AutoJs6R.string.legacy_text_please_choose + @JvmField val text_please_choose_a_script = AutoJs6R.string.legacy_text_please_choose_a_script + @JvmField val text_please_input_name = AutoJs6R.string.legacy_text_please_input_name + @JvmField val text_pointer_location = AutoJs6R.string.legacy_text_pointer_location + @JvmField val text_press_again_to_exit = AutoJs6R.string.legacy_text_press_again_to_exit + @JvmField val text_preview = AutoJs6R.string.legacy_text_preview + @JvmField val text_pre_execute_script = AutoJs6R.string.legacy_text_pre_execute_script + @JvmField val text_processing = AutoJs6R.string.legacy_text_processing + @JvmField val text_project = AutoJs6R.string.legacy_text_project + @JvmField val text_project_location = AutoJs6R.string.legacy_text_project_location + @JvmField val text_project_save_error = AutoJs6R.string.legacy_text_project_save_error + @JvmField val text_project_save_success = AutoJs6R.string.legacy_text_project_save_success + @JvmField val text_recorded = AutoJs6R.string.legacy_text_recorded + @JvmField val text_record_msg = AutoJs6R.string.legacy_text_record_msg + @JvmField val text_redo = AutoJs6R.string.legacy_text_redo + @JvmField val text_refresh = AutoJs6R.string.legacy_text_refresh + @JvmField val text_regex = AutoJs6R.string.legacy_text_regex + @JvmField val text_register = AutoJs6R.string.legacy_text_register + @JvmField val text_registering = AutoJs6R.string.legacy_text_registering + @JvmField val text_register_fail = AutoJs6R.string.legacy_text_register_fail + @JvmField val text_register_succeed = AutoJs6R.string.legacy_text_register_succeed + @JvmField val text_release_notes = AutoJs6R.string.legacy_text_release_notes + @JvmField val text_remove_all_breakpoints = AutoJs6R.string.legacy_text_remove_all_breakpoints + @JvmField val text_rename = AutoJs6R.string.legacy_text_rename + @JvmField val text_replace = AutoJs6R.string.legacy_text_replace + @JvmField val text_replace_all = AutoJs6R.string.legacy_text_replace_all + @JvmField val text_report_fail = AutoJs6R.string.legacy_text_report_fail + @JvmField val text_report_succeed = AutoJs6R.string.legacy_text_report_succeed + @JvmField val text_requires_app_version_to_run_the_script = AutoJs6R.string.legacy_text_requires_app_version_to_run_the_script + @JvmField val text_requires_sdk_version_to_run_the_script = AutoJs6R.string.legacy_text_requires_sdk_version_to_run_the_script + @JvmField val text_reset_password = AutoJs6R.string.legacy_text_reset_password + @JvmField val text_reset_succeed = AutoJs6R.string.legacy_text_reset_succeed + @JvmField val text_reset_to_initial_content = AutoJs6R.string.legacy_text_reset_to_initial_content + @JvmField val text_result = AutoJs6R.string.legacy_text_result + @JvmField val text_root = AutoJs6R.string.legacy_text_root + @JvmField val text_root_record_out_file_type = AutoJs6R.string.legacy_text_root_record_out_file_type + @JvmField val text_run = AutoJs6R.string.legacy_text_run + @JvmField val text_running_task = AutoJs6R.string.legacy_text_running_task + @JvmField val text_run_on_battery_change = AutoJs6R.string.legacy_text_run_on_battery_change + @JvmField val text_run_on_boot = AutoJs6R.string.legacy_text_run_on_boot + @JvmField val text_run_on_broadcast = AutoJs6R.string.legacy_text_run_on_broadcast + @JvmField val text_run_on_config_change = AutoJs6R.string.legacy_text_run_on_config_change + @JvmField val text_run_on_conn_change = AutoJs6R.string.legacy_text_run_on_conn_change + @JvmField val text_run_on_headset_plug = AutoJs6R.string.legacy_text_run_on_headset_plug + @JvmField val text_run_on_other_broadcast = AutoJs6R.string.legacy_text_run_on_other_broadcast + @JvmField val text_run_on_package_install = AutoJs6R.string.legacy_text_run_on_package_install + @JvmField val text_run_on_package_uninstall = AutoJs6R.string.legacy_text_run_on_package_uninstall + @JvmField val text_run_on_package_update = AutoJs6R.string.legacy_text_run_on_package_update + @JvmField val text_run_on_power_connect = AutoJs6R.string.legacy_text_run_on_power_connect + @JvmField val text_run_on_power_disconnect = AutoJs6R.string.legacy_text_run_on_power_disconnect + @JvmField val text_run_on_screen_off = AutoJs6R.string.legacy_text_run_on_screen_off + @JvmField val text_run_on_screen_on = AutoJs6R.string.legacy_text_run_on_screen_on + @JvmField val text_run_on_screen_unlock = AutoJs6R.string.legacy_text_run_on_screen_unlock + @JvmField val text_run_on_startup = AutoJs6R.string.legacy_text_run_on_startup + @JvmField val text_run_on_time_tick = AutoJs6R.string.legacy_text_run_on_time_tick + @JvmField val text_run_repeatedly = AutoJs6R.string.legacy_text_run_repeatedly + @JvmField val text_run_script = AutoJs6R.string.legacy_text_run_script + @JvmField val text_sample = AutoJs6R.string.legacy_text_sample + @JvmField val text_save = AutoJs6R.string.legacy_text_save + @JvmField val text_save_and_exit = AutoJs6R.string.legacy_text_save_and_exit + @JvmField val text_script_record = AutoJs6R.string.legacy_text_script_record + @JvmField val text_script_running = AutoJs6R.string.legacy_text_script_running + @JvmField val text_script_save_successfully = AutoJs6R.string.legacy_text_script_save_successfully + @JvmField val text_scrolled = AutoJs6R.string.legacy_text_scrolled + @JvmField val text_scroll_backward = AutoJs6R.string.legacy_text_scroll_backward + @JvmField val text_scroll_forward = AutoJs6R.string.legacy_text_scroll_forward + @JvmField val text_search = AutoJs6R.string.legacy_text_search + @JvmField val text_search_java_class = AutoJs6R.string.legacy_text_search_java_class + @JvmField val text_select = AutoJs6R.string.legacy_text_select + @JvmField val text_selector_exists = AutoJs6R.string.legacy_text_selector_exists + @JvmField val text_select_file_to_import = AutoJs6R.string.legacy_text_select_file_to_import + @JvmField val text_select_file_to_upload = AutoJs6R.string.legacy_text_select_file_to_upload + @JvmField val text_select_icon = AutoJs6R.string.legacy_text_select_icon + @JvmField val text_select_image = AutoJs6R.string.legacy_text_select_image + @JvmField val text_select_save_path = AutoJs6R.string.legacy_text_select_save_path + @JvmField val text_send = AutoJs6R.string.legacy_text_send + @JvmField val text_send_shortcut = AutoJs6R.string.legacy_text_send_shortcut + @JvmField val text_server_address = AutoJs6R.string.legacy_text_server_address + @JvmField val text_service = AutoJs6R.string.legacy_text_service + @JvmField val text_setting = AutoJs6R.string.legacy_text_setting + @JvmField val text_set_breakpoint = AutoJs6R.string.legacy_text_set_breakpoint + @JvmField val text_set_text = AutoJs6R.string.legacy_text_set_text + @JvmField val text_should_enable_gesture_observing = AutoJs6R.string.legacy_text_should_enable_gesture_observing + @JvmField val text_should_enable_key_observing = AutoJs6R.string.legacy_text_should_enable_key_observing + @JvmField val text_should_not_be_empty = AutoJs6R.string.legacy_text_should_not_be_empty + @JvmField val text_show_layout_bounds = AutoJs6R.string.legacy_text_show_layout_bounds + @JvmField val text_show_layout_hierarchy = AutoJs6R.string.legacy_text_show_layout_hierarchy + @JvmField val text_show_widget_infomation = AutoJs6R.string.legacy_text_show_widget_infomation + @JvmField val text_size = AutoJs6R.string.legacy_text_size + @JvmField val text_size_current_value = AutoJs6R.string.legacy_text_size_current_value + @JvmField val text_size_max_value = AutoJs6R.string.legacy_text_size_max_value + @JvmField val text_size_min_value = AutoJs6R.string.legacy_text_size_min_value + @JvmField val text_source_file_path = AutoJs6R.string.legacy_text_source_file_path + @JvmField val text_stable_mode = AutoJs6R.string.legacy_text_stable_mode + @JvmField val text_star = AutoJs6R.string.legacy_text_star + @JvmField val text_start_record = AutoJs6R.string.legacy_text_start_record + @JvmField val text_start_running = AutoJs6R.string.legacy_text_start_running + @JvmField val text_stop = AutoJs6R.string.legacy_text_stop + @JvmField val text_text_changed = AutoJs6R.string.legacy_text_text_changed + @JvmField val text_text_size = AutoJs6R.string.legacy_text_text_size + @JvmField val text_theme_color = AutoJs6R.string.legacy_text_theme_color + @JvmField val text_time = AutoJs6R.string.legacy_text_time + @JvmField val text_timed_task = AutoJs6R.string.legacy_text_timed_task + @JvmField val text_timing = AutoJs6R.string.legacy_text_timing + @JvmField val text_tutorial = AutoJs6R.string.legacy_text_tutorial + @JvmField val text_type = AutoJs6R.string.legacy_text_type + @JvmField val text_undo = AutoJs6R.string.legacy_text_undo + @JvmField val text_until_find = AutoJs6R.string.legacy_text_until_find + @JvmField val text_update = AutoJs6R.string.legacy_text_update + @JvmField val text_upvote = AutoJs6R.string.legacy_text_upvote + @JvmField val text_usage_stats_permission = AutoJs6R.string.legacy_text_usage_stats_permission + @JvmField val text_username = AutoJs6R.string.legacy_text_username + @JvmField val text_username_cannot_be_empty = AutoJs6R.string.legacy_text_username_cannot_be_empty + @JvmField val text_use_android_n_shortcut = AutoJs6R.string.legacy_text_use_android_n_shortcut + @JvmField val text_use_volume_control_record = AutoJs6R.string.legacy_text_use_volume_control_record + @JvmField val text_use_volume_to_stop_running = AutoJs6R.string.legacy_text_use_volume_to_stop_running + @JvmField val text_using_desc_selector = AutoJs6R.string.legacy_text_using_desc_selector + @JvmField val text_using_id_selector = AutoJs6R.string.legacy_text_using_id_selector + @JvmField val text_using_text_selector = AutoJs6R.string.legacy_text_using_text_selector + @JvmField val text_value = AutoJs6R.string.legacy_text_value + @JvmField val text_variable_or_expr = AutoJs6R.string.legacy_text_variable_or_expr + @JvmField val text_version_code = AutoJs6R.string.legacy_text_version_code + @JvmField val text_version_name = AutoJs6R.string.legacy_text_version_name + @JvmField val text_version_too_old = AutoJs6R.string.legacy_text_version_too_old + @JvmField val text_view_docs = AutoJs6R.string.legacy_text_view_docs + @JvmField val text_volume_down_control = AutoJs6R.string.legacy_text_volume_down_control + @JvmField val text_wait_for = AutoJs6R.string.legacy_text_wait_for + @JvmField val text_weekly_task = AutoJs6R.string.legacy_text_weekly_task + @JvmField val text_weekly_task_should_check_day_of_week = AutoJs6R.string.legacy_text_weekly_task_should_check_day_of_week + @JvmField val warning_version_too_old = AutoJs6R.string.legacy_warning_version_too_old + + @JvmField val air_dialog_action_failed = AutoJs6R.string.legacy_air_dialog_action_failed + @JvmField val air_dialog_description_failed_invalid_token = AutoJs6R.string.legacy_air_dialog_description_failed_invalid_token + @JvmField val air_dialog_description_failed_issues_not_available = AutoJs6R.string.legacy_air_dialog_description_failed_issues_not_available + @JvmField val air_dialog_description_failed_unknown = AutoJs6R.string.legacy_air_dialog_description_failed_unknown + @JvmField val air_dialog_description_failed_wrong_credentials = AutoJs6R.string.legacy_air_dialog_description_failed_wrong_credentials + @JvmField val air_dialog_title_failed = AutoJs6R.string.legacy_air_dialog_title_failed + @JvmField val air_dialog_title_loading = AutoJs6R.string.legacy_air_dialog_title_loading + @JvmField val air_error_no_description = AutoJs6R.string.legacy_air_error_no_description + @JvmField val air_error_no_email = AutoJs6R.string.legacy_air_error_no_email + @JvmField val air_error_no_password = AutoJs6R.string.legacy_air_error_no_password + @JvmField val air_error_no_title = AutoJs6R.string.legacy_air_error_no_title + @JvmField val air_error_no_username = AutoJs6R.string.legacy_air_error_no_username + @JvmField val air_label_device_info = AutoJs6R.string.legacy_air_label_device_info + @JvmField val air_label_email = AutoJs6R.string.legacy_air_label_email + @JvmField val air_label_email_optional = AutoJs6R.string.legacy_air_label_email_optional + @JvmField val air_label_issue_description = AutoJs6R.string.legacy_air_label_issue_description + @JvmField val air_label_issue_title = AutoJs6R.string.legacy_air_label_issue_title + @JvmField val air_label_use_email = AutoJs6R.string.legacy_air_label_use_email + @JvmField val air_label_use_guest = AutoJs6R.string.legacy_air_label_use_guest + @JvmField val air_title_issue = AutoJs6R.string.legacy_air_title_issue + @JvmField val air_title_report_issue = AutoJs6R.string.legacy_air_title_report_issue + + @JvmField val theme_color_red = AutoJs6R.string.legacy_theme_color_red + @JvmField val theme_color_pink = AutoJs6R.string.legacy_theme_color_pink + @JvmField val theme_color_purple = AutoJs6R.string.legacy_theme_color_purple + @JvmField val theme_color_dark_purple = AutoJs6R.string.legacy_theme_color_dark_purple + @JvmField val theme_color_indigo = AutoJs6R.string.legacy_theme_color_indigo + @JvmField val theme_color_blue = AutoJs6R.string.legacy_theme_color_blue + @JvmField val theme_color_light_blue = AutoJs6R.string.legacy_theme_color_light_blue + @JvmField val theme_color_blue_green = AutoJs6R.string.legacy_theme_color_blue_green + @JvmField val theme_color_cyan = AutoJs6R.string.legacy_theme_color_cyan + @JvmField val theme_color_green = AutoJs6R.string.legacy_theme_color_green + @JvmField val theme_color_light_green = AutoJs6R.string.legacy_theme_color_light_green + @JvmField val theme_color_yellow_green = AutoJs6R.string.legacy_theme_color_yellow_green + @JvmField val theme_color_yellow = AutoJs6R.string.legacy_theme_color_yellow + @JvmField val theme_color_amber = AutoJs6R.string.legacy_theme_color_amber + @JvmField val theme_color_orange = AutoJs6R.string.legacy_theme_color_orange + @JvmField val theme_color_dark_orange = AutoJs6R.string.legacy_theme_color_dark_orange + @JvmField val theme_color_brown = AutoJs6R.string.legacy_theme_color_brown + @JvmField val theme_color_gray = AutoJs6R.string.legacy_theme_color_gray + @JvmField val theme_color_blue_gray = AutoJs6R.string.legacy_theme_color_blue_gray + } + + object color { + @JvmField val colorPrimary = AutoJs6R.color.legacy_colorPrimary + @JvmField val colorPrimaryDark = AutoJs6R.color.legacy_colorPrimaryDark + @JvmField val colorAccent = AutoJs6R.color.legacy_colorAccent + @JvmField val sliding_up_panel_shadow_color = AutoJs6R.color.legacy_sliding_up_panel_shadow_color + @JvmField val bubble_bg = AutoJs6R.color.legacy_bubble_bg + @JvmField val color_r = AutoJs6R.color.legacy_color_r + @JvmField val color_j = AutoJs6R.color.legacy_color_j + @JvmField val prefTextColorSecondary = AutoJs6R.color.legacy_prefTextColorSecondary + @JvmField val prefTextColorPrimary = AutoJs6R.color.legacy_prefTextColorPrimary + @JvmField val divider_functions_keyboard = AutoJs6R.color.legacy_divider_functions_keyboard + @JvmField val theme_color_black = AutoJs6R.color.legacy_theme_color_black + @JvmField val window_background = AutoJs6R.color.legacy_window_background + @JvmField val item_background = AutoJs6R.color.legacy_item_background + @JvmField val item_background_dark = AutoJs6R.color.legacy_item_background_dark + @JvmField val text_color_secondary = AutoJs6R.color.legacy_text_color_secondary + @JvmField val text_color_thirdly = AutoJs6R.color.legacy_text_color_thirdly + @JvmField val divider = AutoJs6R.color.legacy_divider + @JvmField val drawer_menu_item_text_color = AutoJs6R.color.legacy_drawer_menu_item_text_color + @JvmField val drawer_menu_group_text_color = AutoJs6R.color.legacy_drawer_menu_group_text_color + @JvmField val tab_indicator = AutoJs6R.color.legacy_tab_indicator + @JvmField val tab_text = AutoJs6R.color.legacy_tab_text + @JvmField val toolbar = AutoJs6R.color.legacy_toolbar + @JvmField val toolbar_disabled = AutoJs6R.color.legacy_toolbar_disabled + @JvmField val console_debug = AutoJs6R.color.legacy_console_debug + @JvmField val console_verbose = AutoJs6R.color.legacy_console_verbose + @JvmField val market_button_selected = AutoJs6R.color.legacy_market_button_selected + @JvmField val market_button_unselected = AutoJs6R.color.legacy_market_button_unselected + } + + object id { + @JvmField val rename = AutoJs6R.id.legacy_rename + @JvmField val open_by_other_apps = AutoJs6R.id.legacy_open_by_other_apps + @JvmField val create_shortcut = AutoJs6R.id.legacy_create_shortcut + @JvmField val delete = AutoJs6R.id.legacy_delete + @JvmField val package_name = AutoJs6R.id.legacy_package_name + @JvmField val class_name = AutoJs6R.id.legacy_class_name + @JvmField val open_launcher = AutoJs6R.id.legacy_open_launcher + @JvmField val accessibility_service = AutoJs6R.id.legacy_accessibility_service + @JvmField val layout_bounds = AutoJs6R.id.legacy_layout_bounds + @JvmField val layout_hierarchy = AutoJs6R.id.legacy_layout_hierarchy + @JvmField val pointer_location = AutoJs6R.id.legacy_pointer_location + @JvmField val disable_pointer_location = AutoJs6R.id.legacy_disable_pointer_location + } + + object dimen { + @JvmField val level_beam_view_padding_left = AutoJs6R.dimen.legacy_level_beam_view_padding_left + @JvmField val level_beam_view_line_width = AutoJs6R.dimen.legacy_level_beam_view_line_width + @JvmField val level_beam_view_line_offset = AutoJs6R.dimen.legacy_level_beam_view_line_offset + @JvmField val level_beam_view_padding_right = AutoJs6R.dimen.legacy_level_beam_view_padding_right + @JvmField val script_and_folder_list_divider_left_margin = AutoJs6R.dimen.legacy_script_and_folder_list_divider_left_margin + @JvmField val script_and_folder_list_divider_right_margin = AutoJs6R.dimen.legacy_script_and_folder_list_divider_right_margin + @JvmField val fab_margin = AutoJs6R.dimen.legacy_fab_margin + @JvmField val textSize_item_property = AutoJs6R.dimen.legacy_textSize_item_property + @JvmField val divider_drawer_menu_group = AutoJs6R.dimen.legacy_divider_drawer_menu_group + @JvmField val padding_circular_menu_recording = AutoJs6R.dimen.legacy_padding_circular_menu_recording + @JvmField val padding_circular_menu_normal = AutoJs6R.dimen.legacy_padding_circular_menu_normal + } + +} + +object BuildConfig { + @JvmField val DEBUG = AutoJs6BuildConfig.DEBUG + @JvmField val APPLICATION_ID = AutoJs6BuildConfig.APPLICATION_ID + @JvmField val BUILD_TYPE = AutoJs6BuildConfig.BUILD_TYPE + @JvmField val VERSION_CODE = AutoJs6BuildConfig.VERSION_CODE + @JvmField val VERSION_NAME = AutoJs6BuildConfig.VERSION_NAME +} diff --git a/app/src/main/java/org/autojs/autojs/core/pref/Pref.kt b/app/src/main/java/org/autojs/autojs/core/pref/Pref.kt index 7fe436b7..13e36088 100644 --- a/app/src/main/java/org/autojs/autojs/core/pref/Pref.kt +++ b/app/src/main/java/org/autojs/autojs/core/pref/Pref.kt @@ -60,13 +60,6 @@ object Pref { @JvmStatic fun get(): SharedPreferences = sPref - @JvmStatic - val isCompatibilityWithClassesForVer4xEnabled - get() = getBoolean( - R.string.key_compatibility_with_classes_for_ver_4_x, - resources.getBoolean(R.bool.pref_compatibility_with_classes_for_ver_4_x), - ) - @JvmStatic val isExtendingJsBuildInObjectsEnabled get() = getBoolean( diff --git a/app/src/main/java/org/autojs/autojs/runtime/ScriptRuntime.kt b/app/src/main/java/org/autojs/autojs/runtime/ScriptRuntime.kt index 192599c8..38d86679 100644 --- a/app/src/main/java/org/autojs/autojs/runtime/ScriptRuntime.kt +++ b/app/src/main/java/org/autojs/autojs/runtime/ScriptRuntime.kt @@ -482,7 +482,6 @@ class ScriptRuntime private constructor(builder: Builder) { callFunction(this, js_object_observe_lite_min, topLevelScope, topLevelScope, arrayOf(topLevelScope)) callFunction(this, js_array_observe_min, topLevelScope, topLevelScope, arrayOf(topLevelScope)) - if (Pref.isCompatibilityWithClassesForVer4xEnabled) rhinoRequire("redirect") if (Pref.isExtendingJsBuildInObjectsEnabled) Jsox.extendAllRhinoWithRuntime(this) // @Hint by Stardust (https://github.com/hyb1996) on Feb 27, 2018 diff --git a/app/src/main/res/values-ar/strings.xml b/app/src/main/res/values-ar/strings.xml index ada6158d..9177a098 100644 --- a/app/src/main/res/values-ar/strings.xml +++ b/app/src/main/res/values-ar/strings.xml @@ -41,7 +41,6 @@ هذا التفضيل لتغيير لغة العرض لـ AutoJs6 ، بما في ذلك رسائل الاستثناء من تشغيل البرامج النصية.\n\nملاحظة: قد تكون هناك حاجة إلى إعادة تشغيل التطبيق لجعل اللغة تطبيقها كما هو متوقع. قم بتغيير مسار الدليل الذي يحتوي على البرامج النصية يحصل AutoJs6 على التحديثات وتنزيلها من GitHub.\n\nملاحظة: لا يوفر التحديث دعمًا متعدد اللغات حتى الآن. - يوفر درجة توافق اسم فئة Java لإصدارات 4.x من خلال إعادة تعيين اسم الفئة.\nعند تشغيل هذا الخيار ، سيكون هناك درجة متفاوتة من تأخير بدء التشغيل (عشرات إلى مئات المللي ثانية) في كل مرة يبدأ فيها البرنامج النصي.\nيوصى بإيقاف تشغيل الخيار في جميع الأوقات إذا لم يكن مطلوبًا على وجه التحديد. المستندات المحلية: باستخدام ملفات AutoJs6 المضمنة كمصادر توثيق ، لا يلزم الاتصال بالشبكة. يتغير المحتوى مع تحديث AutoJs6.\nالمستندات عبر الإنترنت: استخدام صفحات GitHub كمصادر توثيق تتطلب اتصالاً بالشبكة. المحتوى دائما محدث.\n\nملاحظة: لزيادة تجربة قراءة المستندات عبر الإنترنت إلى الحد الأقصى ، يوصى باستخدام جهاز عرض بشاشة عريضة مثل شاشة سطح المكتب.\nملاحظة: اعتبارًا من الإصدار 6.2.0 ، لا تزال الوثائق في المراحل الأولية من التطوير ، ومعظم المحتوى لم تتم كتابته أو تحديثه بعد. يجب استيفاء الشروط التالية لدعم النسق الداكن على صفحات المستند:\n1. تم تمكين الوضع الليلي AutoJs6\n2.عرض ويب نظام Android (أو متصفحات مثل Google Chrome):\n- Android API المستوى 29 (Android 10) [Q] وما فوق: الإصدار> = 76\n- مستوى واجهة برمجة تطبيقات Android 28 (Android 9) [P] وما دون: الإصدار> = 105 يمكن أن يؤدي توسيع كائنات JavaScript المضمنة إلى زيادة مرونة التعليمات البرمجية وتمكين وظائف أكثر ثراءً ، ولكن يمكن أن يتسبب في حدوث تعارضات وحتى حدوث تعطل.\nتحتوي جميع البرامج النصية على امتدادات مضمنة يتم تمكينها افتراضيًا عند تشغيل الخيار.\nغالبًا ما تكون الامتدادات المضمنة غير آمنة ، ولا يوصى بها ما لم يتم فهم مبادئ ومخاطر الإضافات المضمنة بوضوح.\nعند إيقاف تشغيل الخيار ، لا يزال من الممكن تمكين الامتدادات المضمنة من خلال الكائن العام للمكونات الإضافية ، كما هو موضح في وثائق المشروع. @@ -251,7 +250,6 @@ يتم عرض هذا الإشعار لالتقاط الشاشة شاشة كابتوري فريجرونيد خدمة تجربة مستخدم أفضل - قم بتوفير درجة توافق اسم فئة Java لإصدارات 4.x تمكين خدمة إمكانية الوصول مع الوصول إلى الجذر تلقائيًا عند الحاجة تمكين خدمة إمكانية الوصول مع إعدادات آمنة تلقائيًا عند الحاجة قم بزيادة مرونة التعليمات البرمجية وتمكين وظائف أكثر ثراءً من خلال توسيع كائنات JavaScript المضمنة @@ -377,7 +375,6 @@ تم نسخ الأمر إلى الحافظة تعليق التوافق - التوافق مع فئات Java للإصدار 4.x تكوين هل انت متأكد من الحذف؟ هل أنت متأكد من إزالته؟ diff --git a/app/src/main/res/values-en/strings.xml b/app/src/main/res/values-en/strings.xml index 00db225e..2c23c6de 100644 --- a/app/src/main/res/values-en/strings.xml +++ b/app/src/main/res/values-en/strings.xml @@ -37,7 +37,6 @@ Preference for changing the display language of AutoJs6, including exception messages from running scripts.\n\nNote: an app restart may be needed to make language applied as expected. Change the path of the directory containing scripts AutoJs6 gets and downloads updates from GitHub.\n\nNote: The update does not provide multilingual support yet. - Provides a degree of Java class name compatibility for 4.x versions through class name remapping.\nWith this option turned on, there will be a varying degree of startup delay (tens to hundreds of milliseconds) each time the script is started.\nIt is recommended to keep the option off at all times if not specifically required. Local docs: Using AutoJs6 build-in files as documentation sources, no network connection required. The content changes as AutoJs6 is updated.\nOnline docs: Using GitHub pages as documentation sources, requiring network connection. The content is always up to date.\n\nNote: To maximize the reading experience of online documents, it is recommended to use a widescreen display device such as a desktop monitor.\nNote: As of version 6.2.0, the documentation is still in the preliminary stages of development, and most of the content has not yet been written or updated. The following conditions must be met for dark theme support on document pages:\n1. AutoJs6 has night mode enabled\n2. Android System WebView (or browsers like Google Chrome):\n- Android API Level 29 (Android 10) [Q] and above: version >= 76\n- Android API Level 28 (Android 9) [P] and below: version >= 105 Extending JavaScript built-in objects can increase code flexibility and enable richer functionality, but can cause conflicts and even breakage.\nAll scripts have built-in extensions enabled by default when the option is turned on.\nBuilt-in extensions are often insecure, and are not recommended unless the principles and risks of built-in extensions are clearly understood.\nWhen the option is turned off, built-in extensions can still be enabled through the plugins global object, as described in the project documentation. @@ -247,7 +246,6 @@ This notification is being displayed for capturing screen Screen capturer foreground service Better user experience - Provide a degree of Java class name compatibility for 4.x versions Enable accessibility service with root access automatically when needed Enable accessibility service with secure settings automatically when needed Increase code flexibility and enable richer functionality by extending JavaScript built-in objects @@ -373,7 +371,6 @@ Command copied to clipboard Comment Compatibility - Compatibility with Java classes for version 4.x Config Are you sure to delete? Are you sure to remove? diff --git a/app/src/main/res/values-en/strings_legacy.xml b/app/src/main/res/values-en/strings_legacy.xml new file mode 100644 index 00000000..f00367ea --- /dev/null +++ b/app/src/main/res/values-en/strings_legacy.xml @@ -0,0 +1,171 @@ + + + + + Invalid access token + Unknown error + Cannot send bug report + Uploading to github + E-mail + Send by email + Issue + Auto.js + Cancel + Copyright©2016 All right reserves. + (ಥ _ ಥ)Exit or submit a bug report or copy debugging log to the developer(≧∇≦)ノ + /Scripts/ + Stardust + Cannot process file + The content has not been saved, are you sure you want to exit? + 通知服务未运行,请重新启用通知权限 + Need to enable the Accessibility service.\nYou can also enable it later in the side menu. + Source Code + Accessibility Services->UiAutomator]]> + key_enable_accessibility_service_by_root + key_max_length_for_code_completion + key_use_volume_control_record + key_use_volume_control_running + https://github.com/hyb1996/NoRootScriptDroid + ω<*)]]> + No writing settings permission + OK + [UiAutomator]Download:http://www.coolapk.com/apk/org.autojs.autojs + Enable accessibility service automatically when needed + Prevent automation of scripts when Auto.js in the front + Executed before the script file is executed + Stop or start recording when volume changes + About + About app and developer + Accessibility Service + Required by the script automatic operation (click, long press, slide, etc.). + Prompt + Copied + Created + Deleted + %d script(s) is(are) stopped + Appearance + Attribute + Accessibility Service + Accessibility service is enabled but not running. This may be Android\'s BUG. You may need to restart your phone + Cancel + Checking for updates + Check for updates + Check for updates failed + Clear + Reset + Clear pre-execute script + Clicked + Beautify code + Console + Copy debugging log + Copy + Import to my scripts + Crash~ o(≧口≦)o + Creation failed + Current Activity: + Current Package: + Delete + Download now + Download failed + Download + Do not ask again for this version + Don\'t show again + Close drawer + Open drawer + Edit + Edit pre-execute script + Enable service automatically with root + Start the accessibility service timeout + Error + Bug Report + \\n------------\\n[%s]Finished,spent %f seconds. + Exit + Exit + The file exists + File dost not exist + File writing failed + Floating Window + Force stop + Go to setting + Protection mode + Help + Import failed + Import successful + Feedback + No newer version found + This is a software developer(。・・)ノ + Inspecting layout... + Open Sources Licenses + Long Clicked + Maximum file length of code complements + Not installed mobile QQ + Name + Need to enable Accessibility Service + New File + New Version + The accessibility service is disabled and the script has stopped + Accessibility service is not activated + No brower installed. + No file read and write permissions + No floating window permission + No running script + Open by other apps + Path is empty + Please choose + Choose a script + Input name + Press again to exit + Pre-execute script + Processing + Recording stopped + Recording Prompt + Redo + Refresh + Release Notes + Rename + Submission Failed + Submitted successfully + Required Android OS version: + Run + Save + Save & Exit + Record touches + Script + Scrolled + Choose a picture + Create shortcut + Settings + Key observing is disabled, please enable in settings + View in layout bounds\' view + View info + Start + Running + Text Changed + Theme Color + Undo + Update + Use the volume keys to control + Stop all scripts when volume changes + Value + Version too old + Amber + Blue + Blue gray + Blue green + Brown + Cyan + Dark orange + Dark purple + Gray + Green + Indigo + Light blue + Light green + Orange + Red + Purple + Yellow + Yellow green + This version is deprecated + + diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 88caeea9..b03c4b91 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -40,7 +40,6 @@ Esta preferencia para cambiar el idioma de visualización de AutoJs6, incluyendo los mensajes de excepción de los scripts en ejecución.\n\nNota: puede ser necesario reiniciar la aplicación para que el idioma se aplique como se espera. Cambiar la ruta del directorio que contiene los scripts AutoJs6 obtiene y descarga las actualizaciones de GitHub.\n\nNota: La actualización aún no ofrece soporte multilingüe. - Proporciona un grado de compatibilidad de nombres de clase Java para las versiones 4.x a través de la reasignación de nombres de clase.\nCon esta opción activada, habrá un grado variable de retraso en el inicio (de decenas a cientos de milisegundos) cada vez que se inicie el script.\nSe recomienda mantener la opción desactivada en todo momento si no se requiere específicamente. Documentos locales: Utiliza los archivos incorporados de AutoJs6 como fuentes de documentación, sin necesidad de conexión a la red. El contenido cambia a medida que se actualiza AutoJs6.\nDocumentación en línea: Utilizando las páginas de GitHub como fuentes de documentación, se requiere conexión a la red. El contenido está siempre actualizado.\n\nNota: Para maximizar la experiencia de lectura de los documentos en línea, se recomienda utilizar un dispositivo de pantalla ancha, como un monitor de escritorio.\nNota: A partir de la versión 6.2.0, la documentación se encuentra todavía en las fases preliminares de desarrollo, y la mayor parte del contenido aún no ha sido escrito o actualizado. Para que el tema oscuro sea compatible con las páginas de los documentos, deben cumplirse las siguientes condiciones\n1. AutoJs6 tiene activado el modo nocturno\n2. Sistema Android WebView (o navegadores como Google Chrome):\n- Android API Level 29 (Android 10) [Q] y superior: versión >= 76\n- Android API Level 28 (Android 9) [P] e inferiores: versión >= 105 La ampliación de los objetos incorporados de JavaScript puede aumentar la flexibilidad del código y permitir una funcionalidad más rica, pero puede causar conflictos e incluso roturas.\nTodos los scripts tienen las extensiones incorporadas habilitadas por defecto cuando la opción está activada.\nLas extensiones incorporadas suelen ser inseguras y no se recomiendan a menos que se comprendan claramente los principios y riesgos de las extensiones incorporadas.\nCuando la opción está desactivada, las extensiones incorporadas aún pueden ser habilitadas a través del objeto global plugins, como se describe en la documentación del proyecto. @@ -250,7 +249,6 @@ Se está mostrando esta notificación para capturar la pantalla Servicio de captura de pantalla en primer plano Mejor experiencia de usuario - Proporcionar un grado de compatibilidad de nombres de clases Java para las versiones 4.x Habilitar el servicio de accesibilidad con acceso root automáticamente cuando sea necesario Habilitar el servicio de accesibilidad con configuración segura automáticamente cuando sea necesario Aumentar la flexibilidad del código y permitir una funcionalidad más rica mediante la ampliación de los objetos incorporados de JavaScript @@ -376,7 +374,6 @@ Comando copiado en el portapapeles Comente Compatibilidad - Compatibilidad con las clases de Java para la versión 4.x Configuración ¿Seguro que quieres borrar? ¿Está seguro de eliminar? diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 426b5d3d..fb055948 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -40,7 +40,6 @@ Cette préférence permet de modifier la langue d\'affichage d\'AutoJs6, y compris les messages d\'exception des scripts en cours d\'exécution.\n\nNote: un redémarrage de l\'application peut être nécessaire pour que la langue s\'applique comme prévu. Changer le chemin du répertoire contenant les scripts. AutoJs6 obtient et télécharge les mises à jour depuis GitHub.\n\nNote: La mise à jour ne fournit pas encore de support multilingue. - Assure un certain degré de compatibilité des noms de classe Java pour les versions 4.x grâce au remappage des noms de classe.\nSi cette option est activée, il y aura un délai de démarrage plus ou moins long (de quelques dizaines à quelques centaines de millisecondes) à chaque fois que le script sera lancé.\nIl est recommandé de laisser l\'option désactivée à tout moment si elle n\'est pas spécifiquement requise. Documentation locale: Utilisation des fichiers intégrés d\'AutoJs6 comme sources de documentation, aucune connexion réseau n\'est nécessaire. Le contenu change au fur et à mesure que AutoJs6 est mis à jour.\nDocumentation en ligne: Utilisation des pages GitHub comme sources de documentation, nécessitant une connexion réseau. Le contenu est toujours à jour.\n\nRemarque: pour optimiser l\'expérience de lecture des documents en ligne, il est recommandé d\'utiliser un dispositif d\'affichage grand écran tel qu\'un moniteur de bureau.\nRemarque: à partir de la version 6.2.0, la documentation est encore dans les phases préliminaires de développement, et la plupart du contenu n\'a pas encore été écrit ou mis à jour. Les conditions suivantes doivent être remplies pour la prise en charge du thème sombre sur les pages de la documentation :\n1. Le mode nuit d\'AutoJs6 est activé\n2. WebView du système Android (ou des navigateurs comme Google Chrome) :\n- Android API Level 29 (Android 10) [Q] et supérieur: version >= 76\n- Android API Niveau 28 (Android 9) [P] et inférieur: version >= 105 L\'extension des objets JavaScript intégrés peut augmenter la flexibilité du code et permettre des fonctionnalités plus riches, mais elle peut provoquer des conflits et même des pannes.\nTous les scripts ont des extensions intégrées activées par défaut lorsque l\'option est activée.\nLes extensions intégrées sont souvent peu sûres et ne sont pas recommandées, sauf si les principes et les risques des extensions intégrées sont clairement compris.\nLorsque l\'option est désactivée, les extensions intégrées peuvent toujours être activées via l\'objet global plugins, comme décrit dans la documentation du projet. @@ -250,7 +249,6 @@ Cette notification s\'affiche pour la capture d\'écran. Service de capture d\'écran en avant-plan Meilleure expérience utilisateur - Fournir un degré de compatibilité des noms de classe Java pour les versions 4.x. Activer le service d\'accessibilité avec accès root automatiquement lorsque cela est nécessaire. Activer le service d\'accessibilité avec des paramètres sécurisés automatiquement lorsque cela est nécessaire. Augmenter la flexibilité du code et permettre une fonctionnalité plus riche en étendant les objets intégrés JavaScript. @@ -376,7 +374,6 @@ Commande copiée dans le presse-papiers Commentaire Compatibilité - Compatibilité avec les classes Java pour la version 4.x Configuration Vous êtes sûr de vouloir supprimer? Etes-vous sûr de supprimer? diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index bcd5dd29..0c4b9f8d 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -40,7 +40,6 @@ この環境設定は, 実行中のスクリプトからの例外メッセージを含む, AutoJs6 の表示言語を変更するためのものです.\n\n注: 言語を期待通りに適用するには, アプリの再起動が必要な場合があります スクリプトを含むディレクトリのパスを変更する AutoJs6 は, GitHub からアップデートを取得し, ダウンロードします.\n\n注: このアップデートでは, まだ多言語サポートは提供されていません - クラス名のリマッピングにより, 4.x バージョンの Java クラス名の互換性をある程度確保します.\nこのオプションをオンにすると, スクリプトを起動するたびにさまざまな程度 (数十から数百ミリ秒) の起動遅延が発生するようになる.\n特に必要でない場合は, このオプションを常にオフにしておくことをお勧めします ローカルドキュメント AutoJs6 に組み込まれたファイルをドキュメントソースとして使用するため, ネットワーク接続は必要ありません. AutoJs6 が更新されると内容も変わります.\nオンライン・ドキュメント. GitHub のページをドキュメントソースとして使用し, ネットワーク接続が必要です. コンテンツは常に最新の状態に保たれます.\n\n注: オンラインドキュメントを最大限に活用するために, デスクトップモニターなどのワイドスクリーンディスプレイを使用することをお勧めします.\n注意: バージョン 6.2.0 時点では, ドキュメントはまだ開発の初期段階にあり, ほとんどのコンテンツはまだ執筆・更新されていません ドキュメントページでダークテーマをサポートするには, 以下の条件を満たす必要があります.\n1. AutoJs6 でナイトモードが有効になっている\n2. Android System WebView (または Google Chrome などのブラウザ) .\n- Android API Level 29 (Android 10) [Q] 以上: バージョン >= 76\n- Android API Level 28 (Android 9) [P] 以下: バージョン >= 105 JavaScript の組み込みオブジェクトを拡張すると, コードの柔軟性が増し, より豊かな機能を実現できますが, 衝突や破損を引き起こす可能性もあります.\nこのオプションをオンにすると, すべてのスクリプトはデフォルトで組み込みの拡張機能を有効にします.\n組み込みの拡張機能は安全でないことが多いので, 組み込みの拡張機能の原理とリスクが明確に理解されていない限り, 推奨されません.\nこのオプションをオフにした場合でも, プロジェクトのドキュメントで説明されているように, plugins グローバルオブジェクトを使用して組み込み拡張機能を有効にすることができます @@ -250,7 +249,6 @@ 画面のキャプチャを行うため, この通知が表示される スクリーンキャプチャーのフォアグラウンドサービス より良いユーザーエクスペリエンス - 4.x バージョンの Java クラス名の互換性をある程度提供する 必要なときに自動的に root 権限でアクセシビリティサービスを有効にする 必要なときに自動的にセキュアな設定のアクセシビリティサービスを有効にする JavaScript の組み込みオブジェクトを拡張することで, コードの柔軟性を高め, より豊かな機能を実現します @@ -376,7 +374,6 @@ クリップボードにコピーされたコマンド コメント 互換性 - バージョン 4.x の Java クラスとの互換性 設定 本当に削除しますか? 本当に削除しますか? diff --git a/app/src/main/res/values-ko/strings.xml b/app/src/main/res/values-ko/strings.xml index f7ae7454..997a8a18 100644 --- a/app/src/main/res/values-ko/strings.xml +++ b/app/src/main/res/values-ko/strings.xml @@ -41,7 +41,6 @@ 실행 스크립트의 예외 메시지를 포함하여 AutoJs6 의 디스플레이 언어를 변경하는이 선호도.\n\n참고: 예상대로 언어를 적용하려면 앱 재시작이 필요할 수 있습니다. 스크립트가 포함 된 디렉토리의 경로를 변경하십시오 AutoJs6 은 GitHub 에서 업데이트를 가져오고 다운로드합니다.\n\n참고: 업데이트는 아직 다국어 지원을 제공하지 않습니다. - 클래스 이름 재매핑을 통해 4.x 버전에 대해 어느 정도의 Java 클래스 이름 호환성을 제공합니다.\n이 옵션을 켜면 스크립트가 시작될 때마다 다양한 정도의 시작 지연 (수십에서 수백 밀리초) 이 발생합니다.\n특별히 필요하지 않은 경우 옵션을 항상 해제하는 것이 좋습니다. 로컬 문서: AutoJs6 내장 파일을 문서 소스로 사용, 네트워크 연결이 필요하지 않습니다. 내용은 AutoJs6 이 업데이트됨에 따라 변경됩니다.\n온라인 문서: GitHub 페이지를 문서 소스로 사용, 네트워크 연결 필요. 콘텐츠는 항상 최신 상태입니다.\n\n참고: 온라인 문서의 읽기 환경을 최대화하려면 데스크탑 모니터와 같은 와이드 스크린 디스플레이 장치를 사용하는 것이 좋습니다.\n참고: 버전 6.2.0 현재 문서는 아직 개발 초기 단계이며 대부분의 콘텐츠가 아직 작성되거나 업데이트되지 않았습니다. 문서 페이지에서 어두운 테마를 지원하려면 다음 조건이 충족되어야 합니다.\n1. AutoJs6 에는 야간 모드가 활성화되어 있습니다.\n2. Android 시스템 WebView (또는 Google Chrome 과 같은 브라우저):\n- Android API 레벨 29 (Android 10) [Q] 이상: 버전 >= 76\n- Android API 레벨 28 (Android 9) [P] 이하: 버전 >= 105 JavaScript 내장 개체를 확장하면 코드 유연성이 향상되고 더 풍부한 기능을 사용할 수 있지만 충돌이 발생하고 파손될 수도 있습니다.\n옵션이 켜져 있을 때 모든 스크립트에는 기본적으로 활성화된 내장 확장이 있습니다.\n기본 제공 확장은 종종 안전하지 않으며 기본 제공 확장의 원칙과 위험을 명확하게 이해하지 않는 한 권장되지 않습니다.\n옵션이 꺼져 있어도 프로젝트 문서에 설명된 대로 플러그인 전역 개체를 통해 내장 확장을 계속 활성화할 수 있습니다. @@ -251,7 +250,6 @@ 이 알림은 화면 캡처를 위해 표시됩니다 스크린 캡처 전경 서비스 더 나은 사용자 경험 - 4.x 버전에 대해 어느 정도의 Java 클래스 이름 호환성 제공 필요할 때 루트 액세스로 접근성 서비스를 자동으로 활성화하십시오 필요할 때 안전한 설정으로 접근성 서비스를 활성화하십시오 JavaScript 내장 개체를 확장하여 코드 유연성을 높이고 더 풍부한 기능을 활성화합니다. @@ -377,7 +375,6 @@ 클립 보드에 복사 된 명령 논평 호환성 - 버전 4.x 용 Java 클래스와의 호환성 구성 삭제 하시겠습니까? 제거 하시겠습니까? diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index 424882cd..abfccc0a 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -40,7 +40,6 @@ Это предпочтение для изменения языка отображения AutoJs6, включая сообщения исключений от запущенных скриптов.\n\nПримечание: может потребоваться перезапуск приложения, чтобы язык был применен так, как ожидается. Измените путь к директории, содержащей скрипты AutoJs6 получает и загружает обновления с GitHub.\n\nПримечание: обновление пока не обеспечивает многоязыковую поддержку. - Обеспечивает определенную совместимость имен классов Java для версий 4.x путем переименования имен классов.\nПри включении этой опции при каждом запуске скрипта будет происходить задержка запуска (от десятков до сотен миллисекунд).\nРекомендуется всегда держать эту опцию выключенной, если в ней нет особой необходимости. Локальная документация: Использование встроенных файлов AutoJs6 в качестве источников документации, подключение к сети не требуется. Содержание меняется по мере обновления AutoJs6.\nОнлайн-документы: Использование страниц GitHub в качестве источников документации, требуется подключение к сети. Содержимое всегда обновляется.\n\nПримечание: Чтобы максимально улучшить качество чтения онлайн-документов, рекомендуется использовать широкоформатное устройство отображения, например настольный монитор.\nПримечание: Начиная с версии 6.2.0, документация находится на предварительной стадии разработки, и большая часть содержимого еще не была написана или обновлена. Для поддержки темной темы на страницах документов должны быть выполнены следующие условия:\n1. В AutoJs6 включен ночной режим\n2. Android System WebView (или браузеры типа Google Chrome):\n- Android API Level 29 (Android 10) [Q] и выше: версия >= 76\n- Android API Level 28 (Android 9) [P] и ниже: версия >= 105 Расширение встроенных объектов JavaScript может повысить гибкость кода и обеспечить более богатую функциональность, но может привести к конфликтам и даже поломкам.\nВсе сценарии имеют встроенные расширения, включенные по умолчанию, когда опция включена.\nВстроенные расширения часто небезопасны, и их не рекомендуется использовать, пока принципы и риски встроенных расширений не будут четко поняты.\nКогда опция выключена, встроенные расширения все еще можно включить через глобальный объект plugins, как описано в документации проекта. @@ -250,7 +249,6 @@ Это уведомление отображается для захвата экрана Служба захвата экрана на переднем плане Лучший пользовательский опыт - Обеспечить определенную совместимость имен классов Java для версий 4.x Автоматическое включение службы доступности с корневым доступом при необходимости Автоматическое включение службы доступности с безопасными настройками при необходимости Повысить гибкость кода и обеспечить более богатую функциональность за счет расширения встроенных объектов JavaScript @@ -376,7 +374,6 @@ Команда скопирована в буфер обмена Комментарий Совместимость - Совместимость с классами Java для версии 4.x Конфигурация Вы уверены, что хотите удалить? Вы уверены, что хотите удалить? diff --git a/app/src/main/res/values-zh-rHK/strings.xml b/app/src/main/res/values-zh-rHK/strings.xml index 1b781c47..958a916f 100644 --- a/app/src/main/res/values-zh-rHK/strings.xml +++ b/app/src/main/res/values-zh-rHK/strings.xml @@ -39,7 +39,6 @@ 設置選項用於修改 AutoJs6 應用的文本內容顯示語言, 同時包括腳本運行產生的錯誤消息等.\n\n注: 部分內容可能需要重啓應用才能完成語言切換. 更改包含腳本的文件夾路徑 AutoJs6 從 GitHub 獲取並下載更新.\n\n注: 版本更新內容暫未提供多語言支持. - 通過類名重映射, 提供一定程度上的 4.x 版本 Java 類名兼容.\n開啓選項後, 每次啓動腳本將出現不同程度的啓動延遲 (幾十到幾百毫秒不等).\n如無特別需求, 建議始終保持選項關閉. 本地文檔: AutoJs6 內置文件作為文檔來源, 無需網絡連接, 隨 AutoJs6 應用更新而發生內容變動.\n在線文檔: 使用 GitHub 網頁作為文檔來源, 需網絡連接, 可隨時保持文檔內容為最新.\n\n注: 為最大化在線文檔的閲讀體驗, 建議使用桌面顯示器等寬屏顯示設備閲讀.\n注: 截至 6.2.0 版本, 文檔尚處於初步編寫階段, 大部分內容尚未完成編寫或更新. 文檔頁面的深色主題支持需要滿足以下條件:\n1. AutoJs6 開啓夜間模式\n2. WebView (或 Google Chrome 等瀏覽器) 版本要求:\n- API 級別 29 (安卓 10) [Q] 及以上: 版本不低於 76\n- API 級別 28 (安卓 9) [P] 及以下: 版本不低於 105 擴展 JavaScript 內置對象可以增加代碼靈活性並實現更豐富的功能, 但可能造成衝突甚至破壞.\n選項開啓後所有腳本均默認啓用內置擴展.\n內置擴展往往是不安全的, 除非明確瞭解內置擴展的原理及風險, 否則不建議啓用.\n選項關閉後, 仍然可以通過 plugins 全局對象啓用內置擴展, 詳見項目文檔. @@ -249,7 +248,6 @@ 此通知用於捕獲屏幕截圖 屏幕捕獲器前台服務 更佳的用户使用體驗 - 提供一定程度上的 4.x 版本 Java 類名兼容 自動嘗試使用 root 權限啓用無障礙服務 自動嘗試使用修改安全設置權限啓用無障礙服務 擴展 JavaScript 內置對象以增加代碼靈活性 @@ -375,7 +373,6 @@ 指令已複製到剪貼板 註釋 兼容性 - Java 類名 4.x 版本兼容 配置 是否確定刪除 確定移除嗎? diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index b28d42ad..459bd776 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -39,7 +39,6 @@ 設定選項用於修改 AutoJs6 應用的文字內容顯示語言, 同時包括指令碼執行產生的錯誤訊息等.\n\n注: 部分內容可能需要重啟應用才能完成語言切換. 更改包含指令碼的資料夾路徑 AutoJs6 從 GitHub 獲取並下載更新.\n\n注: 版本更新內容暫未提供多語言支援. - 透過類名重對映, 提供一定程度上的 4.x 版本 Java 類名相容.\n開啟選項後, 每次啟動指令碼將出現不同程度的啟動延遲 (幾十到幾百毫秒不等).\n如無特別需求, 建議始終保持選項關閉. 本地文件: AutoJs6 內建檔案作為文件來源, 無需網路連線, 隨 AutoJs6 應用更新而發生內容變動.\n線上文件: 使用 GitHub 網頁作為文件來源, 需網路連線, 可隨時保持文件內容為最新.\n\n注: 為最大化線上文件的閱讀體驗, 建議使用桌面顯示器等寬屏顯示裝置閱讀.\n注: 截至 6.2.0 版本, 文件尚處於初步編寫階段, 大部分內容尚未完成編寫或更新. 文件頁面的深色主題支援需要滿足以下條件:\n1. AutoJs6 開啟夜間模式\n2. WebView (或 Google Chrome 等瀏覽器) 版本要求:\n- API 級別 29 (安卓 10) [Q] 及以上: 版本不低於 76\n- API 級別 28 (安卓 9) [P] 及以下: 版本不低於 105 擴充套件 JavaScript 內建物件可以增加程式碼靈活性並實現更豐富的功能, 但可能造成衝突甚至破壞.\n選項開啟後所有指令碼均預設啟用內建擴充套件.\n內建擴充套件往往是不安全的, 除非明確瞭解內建擴充套件的原理及風險, 否則不建議啟用.\n選項關閉後, 仍然可以透過 plugins 全域性物件啟用內建擴充套件, 詳見專案文件. @@ -249,7 +248,6 @@ 此通知用於捕獲螢幕截圖 螢幕捕獲器前臺服務 更佳的使用者使用體驗 - 提供一定程度上的 4.x 版本 Java 類名相容 自動嘗試使用 root 許可權啟用無障礙服務 自動嘗試使用修改安全設定許可權啟用無障礙服務 擴充套件 JavaScript 內建物件以增加程式碼靈活性 @@ -375,7 +373,6 @@ 指令已複製到剪貼簿 註釋 相容性 - Java 類名 4.x 版本相容 配置 是否確定刪除 確定移除嗎? diff --git a/app/src/main/res/values-zh/strings.xml b/app/src/main/res/values-zh/strings.xml index a05dfb3a..a3546e2a 100644 --- a/app/src/main/res/values-zh/strings.xml +++ b/app/src/main/res/values-zh/strings.xml @@ -35,7 +35,6 @@ 设置选项用于修改 AutoJs6 应用的文本内容显示语言, 同时包括脚本运行产生的错误消息等.\n\n注: 部分内容可能需要重启应用才能完成语言切换. 更改包含脚本的文件夹路径 AutoJs6 从 GitHub 获取并下载更新.\n\n注: 版本更新内容暂未提供多语言支持. - 通过类名重映射, 提供一定程度上的 4.x 版本 Java 类名兼容.\n开启选项后, 每次启动脚本将出现不同程度的启动延迟 (几十到几百毫秒不等).\n如无特别需求, 建议始终保持选项关闭. 本地文档: AutoJs6 内置文件作为文档来源, 无需网络连接, 随 AutoJs6 应用更新而发生内容变动.\n在线文档: 使用 GitHub 网页作为文档来源, 需网络连接, 可随时保持文档内容为最新.\n\n注: 为最大化在线文档的阅读体验, 建议使用桌面显示器等宽屏显示设备阅读.\n注: 截至 6.2.0 版本, 文档尚处于初步编写阶段, 大部分内容尚未完成编写或更新. 文档页面的深色主题支持需要满足以下条件:\n1. AutoJs6 开启夜间模式\n2. WebView (或 Google Chrome 等浏览器) 版本要求:\n- API 级别 29 (安卓 10) [Q] 及以上: 版本不低于 76\n- API 级别 28 (安卓 9) [P] 及以下: 版本不低于 105 扩展 JavaScript 内置对象可以增加代码灵活性并实现更丰富的功能, 但可能造成冲突甚至破坏.\n选项开启后所有脚本均默认启用内置扩展.\n内置扩展往往是不安全的, 除非明确了解内置扩展的原理及风险, 否则不建议启用.\n选项关闭后, 仍然可以通过 plugins 全局对象启用内置扩展, 详见项目文档. @@ -245,7 +244,6 @@ 此通知用于捕获屏幕截图 屏幕捕获器前台服务 更佳的用户使用体验 - 提供一定程度上的 4.x 版本 Java 类名兼容 自动尝试使用 root 权限启用无障碍服务 自动尝试使用修改安全设置权限启用无障碍服务 扩展 JavaScript 内置对象以增加代码灵活性 @@ -371,7 +369,6 @@ 指令已复制到剪贴板 注释 兼容性 - Java 类名 4.x 版本兼容 配置 是否确定删除 确定移除吗? diff --git a/app/src/main/res/values/bools.xml b/app/src/main/res/values/bools.xml index 0fd7310d..2534fb2a 100644 --- a/app/src/main/res/values/bools.xml +++ b/app/src/main/res/values/bools.xml @@ -3,7 +3,6 @@ true false true - false false true true diff --git a/app/src/main/res/values/colors_legacy.xml b/app/src/main/res/values/colors_legacy.xml new file mode 100644 index 00000000..2ddd43a1 --- /dev/null +++ b/app/src/main/res/values/colors_legacy.xml @@ -0,0 +1,33 @@ + + + #009688 + #009688 + #03a9f4 + #99444444 + #eef2f3f9 + #FD999A + #99CC99 + #9DA0A2 + #282C2F + #f0f0f0 + #111214 + + #FFFFFF + #FFFFFF + #FFFFFF + #484C4F + #9DA0A2 + #f2f3f5 + #484C4F + #999999 + @android:color/white + #a0ffffff + @android:color/white + #77e0e0e0 + #cc000000 + #dfc0c0c0 + #e14123 + #939393 + + + diff --git a/app/src/main/res/values/dimens_legacy.xml b/app/src/main/res/values/dimens_legacy.xml new file mode 100644 index 00000000..14b95e0a --- /dev/null +++ b/app/src/main/res/values/dimens_legacy.xml @@ -0,0 +1,14 @@ + + + 3dp + 6dp + 2dp + -4dp + 0dp + 0dp + 16dp + 14sp + 6dp + 8dp + 5dp + diff --git a/app/src/main/res/values/ids_legacy.xml b/app/src/main/res/values/ids_legacy.xml new file mode 100644 index 00000000..05a85f0e --- /dev/null +++ b/app/src/main/res/values/ids_legacy.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 4a11c37b..d8fe80c9 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -76,7 +76,6 @@ Preference for changing the display language of AutoJs6, including exception messages from running scripts.\n\nNote: an app restart may be needed to make language applied as expected. Change the path of the directory containing scripts AutoJs6 gets and downloads updates from GitHub.\n\nNote: The update does not provide multilingual support yet. - Provides a degree of Java class name compatibility for 4.x versions through class name remapping.\nWith this option turned on, there will be a varying degree of startup delay (tens to hundreds of milliseconds) each time the script is started.\nIt is recommended to keep the option off at all times if not specifically required. Local docs: Using AutoJs6 build-in files as documentation sources, no network connection required. The content changes as AutoJs6 is updated.\nOnline docs: Using GitHub pages as documentation sources, requiring network connection. The content is always up to date.\n\nNote: To maximize the reading experience of online documents, it is recommended to use a widescreen display device such as a desktop monitor.\nNote: As of version 6.2.0, the documentation is still in the preliminary stages of development, and most of the content has not yet been written or updated. The following conditions must be met for dark theme support on document pages:\n1. AutoJs6 has night mode enabled\n2. Android System WebView (or browsers like Google Chrome):\n- Android API Level 29 (Android 10) [Q] and above: version >= 76\n- Android API Level 28 (Android 9) [P] and below: version >= 105 Extending JavaScript built-in objects can increase code flexibility and enable richer functionality, but can cause conflicts and even breakage.\nAll scripts have built-in extensions enabled by default when the option is turned on.\nBuilt-in extensions are often insecure, and are not recommended unless the principles and risks of built-in extensions are clearly understood.\nWhen the option is turned off, built-in extensions can still be enabled through the plugins global object, as described in the project documentation. @@ -304,7 +303,6 @@ key_$_change_working_dir key_$_check_for_updates key_$_client_socket_normally_closed - key_$_compatibility_with_classes_for_ver_4_x key_$_dialog_check_display_over_other_apps key_$_dialog_foreground_svc key_$_dialog_log_entries_exported @@ -403,7 +401,6 @@ This notification is being displayed for capturing screen Screen capturer foreground service Better user experience - Provide a degree of Java class name compatibility for 4.x versions Enable accessibility service with root access automatically when needed Enable accessibility service with secure settings automatically when needed Increase code flexibility and enable richer functionality by extending JavaScript built-in objects @@ -569,7 +566,6 @@ Command copied to clipboard Comment Compatibility - Compatibility with Java classes for version 4.x Config Are you sure to delete? Are you sure to remove? diff --git a/app/src/main/res/values/strings_legacy.xml b/app/src/main/res/values/strings_legacy.xml new file mode 100644 index 00000000..3aeba44a --- /dev/null +++ b/app/src/main/res/values/strings_legacy.xml @@ -0,0 +1,464 @@ + + + + + 构建中 + 清理临时文件 + 打包中 + 打包插件版本过低,打包的应用可能无法正常运行。是否立即下载对应版本的打包插件? + 准备文件 + Auto.js + 取消 + 文件已存在,要覆盖吗? + Copyright©2018-2019 All right reserves. + 将会自动提交错误信息。您也可以手动复制调试信息提交给开发者(*^▽^*)或者点击\"退出\"退出程序o(╥﹏╥)o + 连接电脑 + main.js + /脚本/ + 稳定模式通过省略布局细节使脚本抓取布局时更稳定,但同时获取到的屏幕上的控件可能会减少。\n\n重新启动无障碍服务才能生效。 + 通过\"查看使用统计\"权限可以获取本设备过去使用应用的情况,从而使获取当前应用(currentPackage)时更准确。 + 星尘幻影 + 2184044085\n3566596539\npJTCkHuhypD9i3UBQ55XQw==RtXsgCTVFA7VYhLeF1TSkg== + 无法处理文件 + 内容尚未保存,您确定要退出吗? + hybbbb1996@gmail.com + 找不到安装apk的应用 + 重命名失败 + 连接失败: %s + 请选择一个广播事件选项 + 正则表达式错误 + 正则表达式不能向前查找 + 通知服务未运行,请重新启用通知权限 + 软件需要打开\"无障碍服务\"才能运行,请在随后的设置中选择\"Auto.js\"并开启服务。\n您也可以稍后在侧拉菜单中设置。 + 前台服务通知 + 点击进入主界面 + Auto.js保持运行中 + apk文件已保存到 %s + 调试 [%s] + com.example.script%d + 字符数: %d\n行数: %d\n大小: %s + 文件已保存到 %s + 软件源代码 + 无障碍服务->Auto.js并开启]]> + 长按\"运行\"图标也可以启动调试 + 延迟多少秒后开始循环 + 0为无限循环 + 正则语法与JavaScript中相同, 可使用$1~9代替被捕获的匹配 + key_documentation_source + key_enable_accessibility_service_by_root + key_enable_observe_key + key_foreground_service + key_guard_mode + key_max_length_for_code_completion + key_night_mode + key_record_toast + key_root_record_out_file_type + key_script_dir_path + key_stable_mode + key_use_volume_control_record + key_use_volume_control_running + https://github.com/hyb1996/NoRootScriptDroid + 密码太短 + 两次输入的密码不一致 + 邮箱已被占用 + 操作失败,请稍后重试 + 无效的登录凭证 + ω<*)]]> + 未登录 + 没有安装打包插件,是否立即下载? + 没有读取设备信息权限 + 沒有修改系統设置权限 + 确定 + 监测到您的设备没有root, 录制脚本需要root权限, 是否继续? + 2732014414 + [Auto.js]下载地址:http://www.coolapk.com/apk/org.autojs.autojs + 开启后运行脚本会使用Root权限自动开启无障碍服务 + 在本软件界面无法运行自动操作命令以免误触 + 将在脚本文件执行前执行 + 开启后布局分析更稳定,但小部分脚本可能无法正常运行。重启无障碍服务生效 + 开启悬浮窗后每次音量下键会开始或停止脚本录制 + 关于 + 关于项目与开发者 + 无障碍服务 + 使脚本自动操作(点击、长按、滑动等)所需,若关闭则只能执行不涉及自动操作的脚本。 + 打开无障碍服务 + 动作 + + 又双 + 又双叒 + 又双叒叕 + 提示 + 已复制到剪贴板 + 已创建 + 已删除 + 已停止%d个正在运行的脚本 + 声明 + 打包插件不可用 + 外观 + 应用名称 + 确定要删除%s吗 + 属性 + 无障碍服务 + 无障碍服务已启用但并未运行,这可能是安卓的BUG,您可能需要重启手机或重启无障碍服务 + binary + 广播Action + android.intent.action. + 打包应用 + 打包失败,错误信息: + 打包成功 + 取消 + 取消下载 + 无法读取文件 + 更改脚本文件夹路径 + 正在检查更新 + 检查更新 + 检查更新失败Orz + 类/包名 + 清空 + 重置脚本文件选择 + 清空预执行脚本 + 点击(click) + 点击 + 您的操作太快啦ヽ(#`Д´)ノ + 关闭 + 代码 + 格式化代码 + 社区 + 版块 + 热门 + 最新 + 话题 + 未读 + 配置 + 控制台 + 复制 + 复制全部 + 复制调试信息 + 复制行 + 复制到剪贴板 + 导入到我的脚本 + 复制值 + 崩溃了o(≧口≦)o + 创建失败 + 当前活动: + 当前应用包名: + 每天运行 + + + + + + + + 调试 + 继续 + 进入 + 跳出 + 单步 + 删除 + 删除失败 + 删除行 + 详情 + 设备没有root + 仍要录制 + 直接下载 + 文件夹 + 只运行一次 + 任务时间小于当前时间 + 文档源 + 完成 + 下载 + 下载失败 + 下载地址 + + 此版本不再提示 + 不再提示 + 关闭侧拉菜单 + 打开侧拉菜单 + 编辑 + 编辑器主题 + 编辑预执行脚本 + 编辑脚本 + 邮箱 + 邮箱不能为空 + 邮箱格式错误 + 通过Root权限自动启用服务 + 使用Root权限启动无障碍服务超时 + 使用root权限开启失败 + import + 错误 + 发生错误: %s + 错误报告 + 执行 + 执行代码 + \n------------\n[%s]运行结束,用时%f秒 + 退出 + 直接退出 + 退出悬浮窗 + 文件 + 文件已存在 + 文件不存在 + 文件写入失败 + 查找 + 向下 + 直到找到一个(findOne) + 查找/替换 + 向上 + 悬浮窗 + 强制停止 + 前台服务 + 忘记密码? + 生成 + 生成结果 + 生成代码 + 生成失败了o(╥﹏╥)o + 去设置 + 保护模式 + 帮助 + 图标 + 导入 + 导入失败 + 导入脚本文件 + 导入成功 + 信息 + 布局分析 + 布局范围分析 + 布局层次分析 + 安装 + 非法包名 + 无效项目 + 问题反馈 + 已经是最新版本 + 这是软件开发者(。・・)ノ + js文件 + 跳转 + 转到文件末尾 + 跳转到行 + 转到行尾 + 转到行首 + 转到文件开始 + 运行配置 + 启动调试 + 布局分析中 + 开放源代码许可 + 日志 + 登录 + 登录中 + 登录失败 + 登录成功 + 退出登录 + 长按(longClick) + 长按 + 延迟执行(秒) + 循环间隔(秒) + 循环次数 + 主脚本名称 + 管理 + 市场 + 代码补全最大文件长度 + 未安装手机QQ + 更多 + 名称 + 需要启用无障碍服务 + 新建文件 + 新建项目 + 新版本 + 增加监视的变量或表达式 + 下次运行 + 夜间模式 + 通知 + 通知读取权限 + 无障碍服务未启动 + 无障碍服务未启动 + 没有浏览器耶o(╯□╰)o快去安装一个吧 + 无文件读写权限 + 没有悬浮窗权限 + 免Root + 没有正在运行的脚本 + 格式错误 + 处理中 + 打开 + 用其他应用打开 + 打开主界面 + 打开方式 + 选项 + 其他 + 打包应用保存位置 + 包名 + 密码 + 密码不能为空 + 路径为空 + 请选择 + 请选择脚本 + 请输入名称 + 指针位置[Root] + 再按一次退出程序 + 预览 + 预执行脚本 + 处理中 + 项目 + 项目位置 + 项目保存失败 %s + 项目已经保存到%s + 录制结束 + 录制提示 + 重做 + 刷新 + 正则表达式 + 注册 + 注册中 + 注册失败 + 注册成功 + 更新日志 + 删除所有断点 + 重命名 + 替换 + 全部替换 + 提交失败 + 提交成功 + 本脚本需要Auto.js版本号%d以上才能运行 + 本脚本需要此安卓版本以上才能运行: + 重置密码 + 重置成功 + 重置为初始内容 + 结果 + Root + Root录制生成文件类型 + 运行 + 运行中脚本 + 电量变化时 + 开机时 + 特定事件(广播)触发运行 + 某些设置(屏幕方向,地区等)更改时 + 网络连接变化时 + 耳机插拔时 + 其他事件(广播) + 新应用安装时 + 应用卸载时 + 应用更新时 + 电源连接时 + 电源断开时 + 息屏时 + 亮屏时 + 屏幕解锁时 + Auto.js启动时 + 每分钟一次 + 循环运行 + 运行脚本 + 示例代码 + 保存 + 保存并退出 + 录制脚本 + 脚本运行 + 保存成功,请刷新目录 + 滑动 + 向后/上/左滑动(scrollBackward) + 向前/右/下滑动(scrollForward) + 搜索 + 搜索Java包/类 + 选择 + 判断控件存在(exists) + 选择要导入的文件 + 选择要上传的文件 + 选择图标 + 选择图片 + 保存到 + 发送 + 创建快捷方式 + 服务器地址 + 服务 + 设置 + 断点 + 设置文本(setText) + 手势监听未启用,请在软件设置中开启 + 按键监听未启用,请在软件设置中开启 + 不能为空 + 在布局范围中查看 + 在布局层次中查看 + 查看控件信息 + 大小 + 字体大小: %d + 56 + 8 + 脚本文件(夹)路径 + 稳定模式 + 收藏 + 开始录制 + 开始运行 + 停止 + 文字改变 + 字体大小 + 主题色 + 时间 + 定时任务 + 定时 + 教程 + 类型 + 撤销 + 直到找到所有(untilFind) + 更新 + + 查看使用统计权限 + 用户名 + 用户名不能为空 + 添加到安卓7.0 Shortcut + 使用音量下键控制 + 音量上键停止所有脚本 + 使用描述选择(desc) + 使用id选择 + 使用文本选择(text) + + 变量或表达式 + 版本号 + 版本名称 + 版本过低 + 查看文档 + 音量下键控制 + 等待控件出现(waitFor) + 按星期运行 + 至少选择一周中的一天 + 当然版本为公测版,显现和潜在的问题很多,不再适合继续使用, + + OK + 无效的access token. 请联系软件开发者. + Issues不可用,请联系软件开发者. + 未知错误 + 错误的用户名或密码 + 无法发送错误报告 + 正在上传到GitHub… + 请输入详细描述 + 请输入邮箱 + 请输入正确的密码 + 请输入问题 + 请输入有效的Github用户名 + 设备信息 + 邮箱 + 联系邮箱 (选填) + 描述 + 标题 + 使用Email发送 + 匿名发送 + 问题 + 错误报告 + + 红色 + 粉色 + 紫色 + 深紫 + 靛蓝 + 蓝色 + 亮蓝 + 蓝绿 + 青色 + 绿色 + 亮绿 + 黄绿 + 黄色 + 琥珀 + 橙色 + 深橙 + 棕色 + 灰色 + 蓝灰 + + diff --git a/app/src/main/res/xml/fragment_preferences.xml b/app/src/main/res/xml/fragment_preferences.xml index 360d2bca..129c562b 100644 --- a/app/src/main/res/xml/fragment_preferences.xml +++ b/app/src/main/res/xml/fragment_preferences.xml @@ -1,244 +1,231 @@ - + + app:layout="@layout/preference_category_custom" + app:title="@string/text_appearance"> + app:layout="@layout/preference_custom" + app:key="@string/key_app_language" + app:title="@string/text_app_language" + app:itemKeys="@array/keys_app_language" + app:itemValues="@array/values_app_language" + app:itemDefaultKey="@string/key_app_language_auto" + app:neutralText="@string/dialog_button_system_settings" + app:neutralTextShort="@string/dialog_button_system_settings_simplified" + app:longClickPrompt="@string/description_app_language_preference" + app:onConfirmPrompt="@string/prompt_restart_may_be_needed_for_language_switch" /> + app:layout="@layout/preference_custom" + app:key="@string/key_night_mode" + app:title="@string/text_night_mode" + app:itemKeys="@array/keys_night_mode" + app:itemValues="@array/values_night_mode" + app:itemDefaultKey="@string/key_night_mode_follow_system" + app:longClickPrompt="@string/description_night_mode_preference" + app:longClickPromptMore="@string/description_night_mode_preference_more" /> + app:layout="@layout/preference_custom" + app:key="@string/key_theme_color" + app:title="@string/text_theme_color" + app:longClickPrompt="@string/description_theme_color_preference" /> + app:layout="@layout/preference_custom" + app:key="@string/key_keep_screen_on_when_in_foreground" + app:title="@string/text_keep_screen_on_when_in_foreground" + app:itemKeys="@array/keys_keep_screen_on_when_in_foreground" + app:itemValues="@array/values_keep_screen_on_when_in_foreground" + app:itemDefaultKey="@string/key_keep_screen_on_when_in_foreground_disabled" + app:longClickPrompt="@string/description_keep_screen_on_when_in_foreground_preference" /> + app:layout="@layout/preference_category_custom" + app:title="@string/text_config"> + app:layout="@layout/preference_custom" + app:key="@string/key_documentation_source" + app:title="@string/text_documentation_source" + app:itemKeys="@array/keys_documentation_source" + app:itemValues="@array/values_documentation_source" + app:itemDefaultKey="@string/key_documentation_source_local" + app:onConfirmPrompt="@string/prompt_restart_is_needed_for_docs_source_switch" + app:longClickPrompt="@string/description_documentation_source_preference" + app:longClickPromptMore="@string/description_documentation_source_preference_more" /> + app:layout="@layout/preference_custom" + app:key="@string/key_launcher_shortcuts" + app:title="@string/text_launcher_shortcuts" + app:summary="@string/summary_text_launcher_shortcuts" + app:longClickPrompt="@string/description_launcher_shortcuts" /> + app:layout="@layout/preference_custom" + app:key="@string/key_change_working_dir" + app:title="@string/text_change_working_dir" + app:longClickPrompt="@string/description_change_working_dir_preference" /> + app:layout="@layout/preference_custom" + app:key="@string/key_root_mode" + app:title="@string/text_root_mode_title" + app:itemKeys="@array/keys_root_mode" + app:itemValues="@array/values_root_mode" + app:itemDefaultKey="@string/key_root_mode_auto_detect" + app:longClickPrompt="@string/description_root_mode_preference" /> + app:layout="@layout/preference_custom" + app:key="@string/key_hidden_files" + app:title="@string/text_hidden_files_title" + app:itemValues="@array/values_hidden_files" + app:itemKeys="@array/keys_hidden_files" + app:itemDefaultKey="@string/default_key_hidden_files" + app:longClickPrompt="@string/description_hidden_files_preference" /> + app:layout="@layout/preference_category_custom" + app:title="@string/text_a11y_service"> + app:layout="@layout/preference_custom" + app:key="@string/key_enable_a11y_service_with_root_access" + app:defaultValue="@bool/pref_enable_a11y_service_with_root_access" + app:title="@string/text_enable_a11y_service_with_root_access_automatically" + app:summary="@string/summary_enable_a11y_service_with_root_access" /> + app:layout="@layout/preference_custom" + app:key="@string/key_enable_a11y_service_with_secure_settings" + app:defaultValue="@bool/pref_enable_a11y_service_with_secure_settings" + app:title="@string/text_enable_a11y_service_with_secure_settings_automatically" + app:summary="@string/summary_enable_a11y_service_with_secure_settings" /> + app:layout="@layout/preference_custom" + app:key="@string/key_stable_mode" + app:defaultValue="@bool/pref_stable_mode" + app:title="@string/text_stable_mode" + app:summary="@string/summary_stable_mode" /> + app:layout="@layout/preference_category_custom" + app:title="@string/text_script_running"> + app:layout="@layout/preference_custom" + app:key="@string/key_use_volume_control_running" + app:defaultValue="@bool/pref_use_volume_control_running" + app:title="@string/text_use_volume_key_to_control_script_running" + app:summary="@string/summary_use_volume_key_to_stop_running_scripts" /> + app:layout="@layout/preference_custom" + app:key="@string/key_guard_mode" + app:defaultValue="@bool/pref_guard_mode" + app:title="@string/text_guard_mode" + app:summary="@string/summary_guard_mode" /> + app:layout="@layout/preference_category_custom" + app:title="@string/text_script_record"> + app:layout="@layout/preference_custom" + app:key="@string/key_use_volume_control_record" + app:defaultValue="@bool/pref_use_volume_control_record" + app:title="@string/text_use_volume_control_record" + app:summary="@string/summary_use_volume_control_record" /> + app:layout="@layout/preference_custom" + app:key="@string/key_record_toast" + app:defaultValue="@bool/pref_record_toast" + app:title="@string/text_record_prompt" + app:summary="@string/summary_record_prompt" /> + app:layout="@layout/preference_custom" + app:key="@string/key_root_record_out_file_type" + app:title="@string/text_recorded_output_file_type" + app:itemKeys="@array/keys_root_record_out_file_type" + app:itemValues="@array/values_root_record_out_file_type" + app:itemDefaultKey="@string/default_key_root_record_out_file_type" + app:longClickPrompt="@string/description_root_record_out_file_type_preference" /> + app:layout="@layout/preference_category_custom" + app:title="@string/text_extensibility"> + app:layout="@layout/preference_custom" + app:key="@string/key_extending_js_build_in_objects" + app:defaultValue="@bool/pref_extending_js_build_in_objects" + app:title="@string/text_extending_js_build_in_objects" + app:summary="@string/summary_extending_js_build_in_objects" + app:longClickPrompt="@string/description_extending_js_build_in_objects" /> - - - - - - + app:layout="@layout/preference_category_custom" + app:title="@string/text_updates"> + app:layout="@layout/preference_custom" + app:key="@string/key_check_for_updates" + app:title="@string/text_check_for_updates" + app:longClickPrompt="@string/description_check_for_updates_preference" /> + app:layout="@layout/preference_custom" + app:key="@string/key_auto_check_for_updates" + app:defaultValue="@bool/pref_auto_check_for_updates" + app:title="@string/text_auto_check_for_updates" + app:summary="@string/text_auto_check_for_updates_and_show_snackbar" /> + app:layout="@layout/preference_custom" + app:key="@string/key_manage_ignored_updates" + app:title="@string/text_manage_ignored_updates" + app:longClickPrompt="@string/description_manage_ignored_updates_preference" /> + app:layout="@layout/preference_category_custom" + app:title="@string/text_about"> + app:layout="@layout/preference_custom" + app:key="@string/key_about_app_tips" + app:title="@string/text_about_app_tips" + app:summary="@string/summary_about_app_tips" + app:dialogContent="@string/content_about_app_tips" + app:positiveText="@string/dialog_button_cancel" + app:longClickPrompt="@string/description_about_app_tips_preference" /> + app:layout="@layout/preference_custom" + app:key="@string/key_about_app_and_developer" + app:title="@string/text_about_app_and_developer" + app:longClickPrompt="@string/description_about_app_and_developer_preference" /> diff --git a/version.properties b/version.properties index eab1ad90..41f0d7b7 100644 --- a/version.properties +++ b/version.properties @@ -1,5 +1,5 @@ -#Wed Jan 15 00:03:38 CST 2025 -BUILD_TIME=1736870618100 +#Wed Jan 15 01:24:51 CST 2025 +BUILD_TIME=1736875491255 COMPILE_SDK_VERSION=34 JAVA_VERSION=23 JAVA_VERSION_MIN_RADICAL=0