From dc2fdd615e2afe314ee08469ab984073cec1aa1b Mon Sep 17 00:00:00 2001 From: yjj38 Date: Thu, 12 Jun 2025 22:55:55 +0800 Subject: [PATCH] Refactor `AutoJsUtil` and `MainActivity` for enhanced script handling and synchronization Introduced synchronized locking for script execution flow in `MainActivity` and added a robust broadcast receiver registration process in `AutoJsUtil`. Enhanced logging, error handling, and script management utilities. Updated `AutoJsUtil` with better file validation and context-aware lifecycle methods for improved stability and clarity. --- .idea/deploymentTargetSelector.xml | 4 +- .../com/example/studyapp/MainActivity.java | 36 +++-- .../example/studyapp/autoJS/AutoJsUtil.java | 145 +++++++++--------- 3 files changed, 97 insertions(+), 88 deletions(-) diff --git a/.idea/deploymentTargetSelector.xml b/.idea/deploymentTargetSelector.xml index 5acfdeb..a0b3cdc 100644 --- a/.idea/deploymentTargetSelector.xml +++ b/.idea/deploymentTargetSelector.xml @@ -4,10 +4,10 @@