@@ -182,7 +182,7 @@ public File createProject() throws IOException, SketchException {
182
182
// build the preproc and get to work
183
183
AndroidPreprocessor preproc = new AndroidPreprocessor (sketch , getPackageName ());
184
184
// On Android, this init will throw a SketchException if there's a problem with size()
185
- SurfaceInfo info = preproc .initSketchSize (sketch .getMainProgram ());
185
+ preproc .initSketchSize (sketch .getMainProgram ());
186
186
preproc .initSketchSmooth (sketch .getMainProgram ());
187
187
188
188
sketchClassName = preprocess (srcFolder , manifest .getPackageName (), preproc , false );
@@ -199,7 +199,9 @@ public File createProject() throws IOException, SketchException {
199
199
final File resFolder = new File (tmpFolder , "res" );
200
200
writeRes (resFolder , sketchClassName );
201
201
202
- writeMainClass (srcFolder , preproc .getRenderer (info .getSettings ()));
202
+ // TODO: it would be great if we can just get the renderer from the SurfaceInfo
203
+ // object returned by initSketchSize()
204
+ writeMainClass (srcFolder , preproc .getRenderer (sketch .getMainProgram ()));
203
205
204
206
// new location for SDK Tools 17: /opt/android/tools/proguard/proguard-android.txt
205
207
// File proguardSrc = new File(sdk.getSdkFolder(), "tools/lib/proguard.cfg");
@@ -975,7 +977,6 @@ private File mkdirs(final File parent, final String name) throws SketchException
975
977
976
978
977
979
private void writeMainClass (final File srcDirectory , String renderer ) {
978
- System .out .println ("---------------> RENDERER: " + renderer );
979
980
if (publishOption == FRAGMENT ) {
980
981
writeFragmentActivity (srcDirectory );
981
982
} else if (publishOption == WALLPAPER ) {
0 commit comments