feat: remove JuiceAgentAPIJarPath from LoaderConfig and update loader logic to use temporary file

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
xiaozhou233andCopilot committed 2026-04-28 21:31:21 +08:00
1 parent 75062b805c
commit e2d6dcaa25
3 files changed
+13 -12

No files matched your search

-3
View File
@@ -130,7 +130,6 @@ namespace Utils {
auto cfg = config.get_config().at("JuiceAgent").at("Loader");
LoaderConfig loader_config = LoaderConfig();
loader_config.JuiceAgentAPIJarPath = cfg.at("JuiceAgentAPIJarPath").as_string();
loader_config.JuiceAgentNativeLibraryPath = cfg.at("JuiceAgentNativeLibraryPath").as_string();
loader_config.RuntimeDir = config.runtime_dir().string();
@@ -138,7 +137,6 @@ namespace Utils {
}
inline void print_loader_config(const LoaderConfig& config) {
PLOGI << "JuiceAgentAPIJarPath: " << config.JuiceAgentAPIJarPath;
PLOGI << "JuiceAgentNativeLibraryPath: " << config.JuiceAgentNativeLibraryPath;
PLOGI << "RuntimeDir: " << config.RuntimeDir;
}
@@ -153,7 +151,6 @@ namespace Utils {
JuiceAgent::Utils::Serializer ser;
ser.add_kv("Version", 2);
ser.add_kv("JuiceAgentAPIJarPath", config.JuiceAgentAPIJarPath);
ser.add_kv("JuiceAgentNativeLibraryPath", config.JuiceAgentNativeLibraryPath);
ser.add_kv("RuntimeDir", config.RuntimeDir);
-1
View File
@@ -3,7 +3,6 @@
#include <string>
struct LoaderConfig {
std::string JuiceAgentAPIJarPath;
std::string JuiceAgentNativeLibraryPath;
std::string RuntimeDir;