File tree 1 file changed +23
-0
lines changed
src/processing/mode/android
1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,12 @@ public class AndroidPreprocessor extends PdePreprocessor {
46
46
public static final String SMOOTH_REGEX =
47
47
"(?:^|\\ s|;)smooth\\ s*\\ (\\ s*([^\\ s,]+)\\ s*\\ )\\ s*\\ ;" ;
48
48
49
+
50
+ public AndroidPreprocessor (final String sketchName ) {
51
+ super (sketchName );
52
+ }
53
+
54
+
49
55
public AndroidPreprocessor (final Sketch sketch ,
50
56
final String packageName ) throws IOException {
51
57
super (sketch .getName ());
@@ -278,4 +284,21 @@ public String[] getDefaultImports() {
278
284
return androidImports;
279
285
}
280
286
*/
287
+
288
+ public String [] getDefaultImports () {
289
+ // String[] defs = super.getDefaultImports();
290
+ // return defs;
291
+ return new String [] {
292
+ "java.util.HashMap" ,
293
+ "java.util.ArrayList" ,
294
+ "java.io.File" ,
295
+ "java.io.BufferedReader" ,
296
+ "java.io.PrintWriter" ,
297
+ "java.io.InputStream" ,
298
+ "java.io.OutputStream" ,
299
+ "java.io.IOException" ,
300
+ "android.app.Activity" ,
301
+ "android.app.Fragment"
302
+ };
303
+ }
281
304
}
You can’t perform that action at this time.
0 commit comments