Skip to content

Commit 9afc8ad

Browse files
committed
move android js debugger implementation to template; modify runtimeHelper to accomodate the changes
1 parent 1d960bb commit 9afc8ad

8 files changed

Lines changed: 556 additions & 506 deletions

File tree

src/src/com/tns/Configuration.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
public class Configuration
88
{
9-
public final Application application;
109
public final ThreadScheduler threadScheduler;
1110
public final Logger logger;
11+
public final Debugger debugger;
1212
public final String appName;
1313
public final File runtimeLibPath;
1414
public final File rootDir;
@@ -17,13 +17,13 @@ public class Configuration
1717
public final File dexDir;
1818
public final String dexThumb;
1919

20-
public Configuration(Application application, ThreadScheduler threadScheduler, Logger logger,
20+
public Configuration(ThreadScheduler threadScheduler, Logger logger, Debugger debugger,
2121
String appName, File runtimeLibPath, File rootDir, File appDir, ClassLoader classLoader,
2222
File dexDir, String dexThumb)
2323
{
24-
this.application = application;
2524
this.threadScheduler = threadScheduler;
2625
this.logger = logger;
26+
this.debugger = debugger;
2727
this.appName = appName;
2828
this.runtimeLibPath = runtimeLibPath;
2929
this.rootDir = rootDir;

src/src/com/tns/Debugger.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.tns;
2+
3+
public interface Debugger
4+
{
5+
void start();
6+
7+
void disableAgent();
8+
9+
void enableAgent();
10+
11+
void onConnect(JsDebugger context);
12+
}

0 commit comments

Comments
 (0)