From f2e4985ba0cea72addab729c03ef1e374cf66b47 Mon Sep 17 00:00:00 2001 From: Aurimas Liutikas Date: Mon, 8 May 2017 17:44:23 -0700 Subject: [PATCH] Update default Java level for idegen. This sets it to 1.8 instead of 1.7 as Android now allows using 1.8 java language. Bug: 38140365 Test: Ran idegen and now java language is set to 1.8 in Intellij Change-Id: I1a1f0970357f42c3bc5ded9b3f17692812ea130a --- tools/idegen/README | 10 ++++++---- tools/idegen/templates/android.ipr | 2 +- tools/idegen/templates/idea/misc.xml | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/tools/idegen/README b/tools/idegen/README index 3581a487c..d9444408e 100644 --- a/tools/idegen/README +++ b/tools/idegen/README @@ -6,11 +6,13 @@ If you're using IntelliJ... If this is your first time using IDEGen... - IDEA needs a lot of memory. Add "-Xms748m -Xmx748m" to your VM options - in "IDEA_HOME/bin/idea.vmoptions" on Linux or - "IntelliJ IDEA.app/Contents/Info.plist" on OS X. + Android is large, thus IDEA needs a lot of memory. Add "-Xms1g -Xmx5g" to + your VM options in "Help > Edit Custom VM" and increase the + file size limit in "Help -> Edit custom properties" by adding + "idea.max.intellisense.filesize=100000". Make sure to restart the IDE for + the new settings to take effect. - Create a JDK configuration named "1.7 (No Libraries)" by adding a new + Create a JDK configuration named "1.8 (No Libraries)" by adding a new JDK like you normally would and then removing all of the jar entries under the "Classpath" tab. This will ensure that you only get access to Android's core libraries and not those from your desktop VM. diff --git a/tools/idegen/templates/android.ipr b/tools/idegen/templates/android.ipr index 1176a96ee..82841549a 100644 --- a/tools/idegen/templates/android.ipr +++ b/tools/idegen/templates/android.ipr @@ -281,7 +281,7 @@ - + diff --git a/tools/idegen/templates/idea/misc.xml b/tools/idegen/templates/idea/misc.xml index cc11725d7..69d7b1946 100644 --- a/tools/idegen/templates/idea/misc.xml +++ b/tools/idegen/templates/idea/misc.xml @@ -40,7 +40,7 @@ http://www.w3.org/1999/xhtml - +