capacitor-dex-editor 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1780,8 +1780,8 @@ public class DexManager {
1780
1780
  }
1781
1781
 
1782
1782
  try {
1783
- // 创建临时目录存储 smali 文件
1784
- java.io.File tempDir = new java.io.File(context.getCacheDir(), "smali_temp_" + System.currentTimeMillis());
1783
+ // 创建临时目录存储 smali 文件(使用系统临时目录)
1784
+ java.io.File tempDir = new java.io.File(System.getProperty("java.io.tmpdir"), "smali_temp_" + System.currentTimeMillis());
1785
1785
  if (!tempDir.mkdirs()) {
1786
1786
  result.put("success", false);
1787
1787
  result.put("error", "无法创建临时目录");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "capacitor-dex-editor",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "Capacitor-plugin-for-editing-DEX-files-in-APK",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",