Skip to content

Commit ff98245

Browse files
committed
set correct target platform var
1 parent de89d88 commit ff98245

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

mode/src/processing/mode/android/AndroidBuild.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,14 +338,14 @@ private void createAppModule(String moduleName)
338338
tmplFile = exportProject ? APP_GRADLE_BUILD_TEMPLATE : APP_GRADLE_BUILD_ECJ_TEMPLATE;
339339
}
340340

341-
String tls = Base.getToolsFolder().getPath().replace('\\', '/');
342-
String plt = sdk.getTargetPlatform(TARGET_SDK).getPath().replace('\\', '/');
341+
String toolPath = Base.getToolsFolder().getPath().replace('\\', '/');
342+
String platformPath = sdk.getTargetPlatform(TARGET_SDK).getPath().replace('\\', '/');
343343

344344
File appBuildTemplate = mode.getContentFile("templates/" + tmplFile);
345345
File appBuildFile = new File(moduleFolder, "build.gradle");
346346
HashMap<String, String> replaceMap = new HashMap<String, String>();
347-
replaceMap.put("@@tools_folder@@", tls);
348-
replaceMap.put("@@target_platform@@", plt);
347+
replaceMap.put("@@tools_folder@@", toolPath);
348+
replaceMap.put("@@target_platform@@", platformPath);
349349
replaceMap.put("@@package_name@@", getPackageName());
350350
replaceMap.put("@@min_sdk@@", minSdk);
351351
replaceMap.put("@@target_sdk@@", TARGET_SDK);

mode/src/processing/mode/android/AndroidSDK.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ public File getHighestPlatform() {
262262
return highestPlatform;
263263
}
264264

265+
265266
public File getTargetPlatform(String target) {
266267
return new File(platforms, "android-" + target);
267268
}

0 commit comments

Comments
 (0)