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
This commit is contained in:
Aurimas Liutikas
2017-05-08 17:44:23 -07:00
parent f0a6169b6c
commit f2e4985ba0
3 changed files with 8 additions and 6 deletions

View File

@@ -6,11 +6,13 @@ If you're using IntelliJ...
If this is your first time using IDEGen... If this is your first time using IDEGen...
IDEA needs a lot of memory. Add "-Xms748m -Xmx748m" to your VM options Android is large, thus IDEA needs a lot of memory. Add "-Xms1g -Xmx5g" to
in "IDEA_HOME/bin/idea.vmoptions" on Linux or your VM options in "Help > Edit Custom VM" and increase the
"IntelliJ IDEA.app/Contents/Info.plist" on OS X. 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 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 under the "Classpath" tab. This will ensure that you only get access to
Android's core libraries and not those from your desktop VM. Android's core libraries and not those from your desktop VM.

View File

@@ -281,7 +281,7 @@
<module fileurl="file://$PROJECT_DIR$/android.iml" filepath="$PROJECT_DIR$/android.iml" /> <module fileurl="file://$PROJECT_DIR$/android.iml" filepath="$PROJECT_DIR$/android.iml" />
</modules> </modules>
</component> </component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" assert-keyword="true" jdk-15="true" project-jdk-name="1.7 (No Libraries)" project-jdk-type="JavaSDK"> <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" assert-keyword="true" project-jdk-name="1.8 (No Libraries)" project-jdk-type="JavaSDK">
<output url="file:///tmp/intellij$PROJECT_DIR$/classes" /> <output url="file:///tmp/intellij$PROJECT_DIR$/classes" />
</component> </component>
<component name="RmicSettings"> <component name="RmicSettings">

View File

@@ -40,7 +40,7 @@
<component name="ProjectResources"> <component name="ProjectResources">
<default-html-doctype>http://www.w3.org/1999/xhtml</default-html-doctype> <default-html-doctype>http://www.w3.org/1999/xhtml</default-html-doctype>
</component> </component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" assert-keyword="true" jdk-15="true" project-jdk-name="1.7" project-jdk-type="JavaSDK" /> <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" assert-keyword="true" project-jdk-name="1.8" project-jdk-type="JavaSDK" />
<component name="WebServicesPlugin" addRequiredLibraries="true" /> <component name="WebServicesPlugin" addRequiredLibraries="true" />
</project> </project>