Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit 55d3e73

Browse files
committedJul 16, 2010
Improved interpreter storage infrastracture.
1 parent 9389c79 commit 55d3e73

File tree

48 files changed

+165
-202
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+165
-202
lines changed
 

‎android/BeanShellForAndroid/src/com/googlecode/bshforandroid/BshDescriptor.java

+5
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ public int getVersion() {
5252
return 2;
5353
}
5454

55+
@Override
56+
public int getScriptsVersion() {
57+
return 3;
58+
}
59+
5560
public String getBinary() {
5661
return BSH_BIN;
5762
}

‎android/BeanShellForAndroid/src/com/googlecode/bshforandroid/BshInstaller.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
package com.googlecode.bshforandroid;
22

3-
import java.io.File;
4-
53
import android.content.Context;
64

7-
85
import com.googlecode.android_scripting.AsyncTaskListener;
96
import com.googlecode.android_scripting.InterpreterInstaller;
107
import com.googlecode.android_scripting.Log;
118
import com.googlecode.android_scripting.exception.Sl4aException;
129
import com.googlecode.android_scripting.interpreter.InterpreterConstants;
1310
import com.googlecode.android_scripting.interpreter.InterpreterDescriptor;
1411

12+
import java.io.File;
13+
1514
public class BshInstaller extends InterpreterInstaller {
1615

1716
public BshInstaller(InterpreterDescriptor descriptor, Context context,
@@ -21,7 +20,7 @@ public BshInstaller(InterpreterDescriptor descriptor, Context context,
2120

2221
@Override
2322
protected boolean setup() {
24-
File dalvikCache = new File(InterpreterConstants.SL4A_DALVIK_CACHE_ROOT);
23+
File dalvikCache = new File(mInterpreterRoot + InterpreterConstants.SL4A_DALVIK_CACHE_ROOT);
2524
if (!dalvikCache.isDirectory()) {
2625
try {
2726
dalvikCache.mkdir();

0 commit comments

Comments
 (0)
This repository has been archived.