Unverified Commit 761cb82c authored by Devon Carew's avatar Devon Carew Committed by GitHub

update the IntelliJ metadata templates (#14867)

* update the IntelliJ metedata templates

* fix test expectation
parent c3bbcb6f
<component name="libraryTable">
<library name="Dart SDK">
<CLASSES>
<root url="file://{{dartSdk}}/lib/async" />
<root url="file://{{dartSdk}}/lib/collection" />
<root url="file://{{dartSdk}}/lib/convert" />
<root url="file://{{dartSdk}}/lib/core" />
<root url="file://{{dartSdk}}/lib/developer" />
<root url="file://{{dartSdk}}/lib/html" />
<root url="file://{{dartSdk}}/lib/indexed_db" />
<root url="file://{{dartSdk}}/lib/io" />
<root url="file://{{dartSdk}}/lib/isolate" />
<root url="file://{{dartSdk}}/lib/js" />
<root url="file://{{dartSdk}}/lib/js_util" />
<root url="file://{{dartSdk}}/lib/math" />
<root url="file://{{dartSdk}}/lib/mirrors" />
<root url="file://{{dartSdk}}/lib/svg" />
<root url="file://{{dartSdk}}/lib/typed_data" />
<root url="file://{{dartSdk}}/lib/web_audio" />
<root url="file://{{dartSdk}}/lib/web_gl" />
<root url="file://{{dartSdk}}/lib/web_sql" />
<root url="file://{{{dartSdk}}}/lib/async" />
<root url="file://{{{dartSdk}}}/lib/collection" />
<root url="file://{{{dartSdk}}}/lib/convert" />
<root url="file://{{{dartSdk}}}/lib/core" />
<root url="file://{{{dartSdk}}}/lib/developer" />
<root url="file://{{{dartSdk}}}/lib/html" />
<root url="file://{{{dartSdk}}}/lib/io" />
<root url="file://{{{dartSdk}}}/lib/isolate" />
<root url="file://{{{dartSdk}}}/lib/math" />
<root url="file://{{{dartSdk}}}/lib/mirrors" />
<root url="file://{{{dartSdk}}}/lib/typed_data" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</component>
\ No newline at end of file
<component name="libraryTable">
<library name="Flutter for Android">
<CLASSES>
<root url="jar://{{androidFlutterJar}}!/" />
<root url="jar://{{{androidFlutterJar}}}!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
......
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$/android">
<sourceFolder url="file://$MODULE_DIR$/android/app/src/main/{{androidLanguage}}" isTestSource="false" />
</content>
<orderEntry type="jdk" jdkName="Android API {{androidSdkVersion}} Platform" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Flutter for Android" level="project" />
</component>
</module>
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
......
<component name="libraryTable">
<library name="Dart SDK">
<CLASSES>
<root url="file://{{dartSdk}}/lib/async" />
<root url="file://{{dartSdk}}/lib/collection" />
<root url="file://{{dartSdk}}/lib/convert" />
<root url="file://{{dartSdk}}/lib/core" />
<root url="file://{{dartSdk}}/lib/developer" />
<root url="file://{{dartSdk}}/lib/html" />
<root url="file://{{dartSdk}}/lib/indexed_db" />
<root url="file://{{dartSdk}}/lib/io" />
<root url="file://{{dartSdk}}/lib/isolate" />
<root url="file://{{dartSdk}}/lib/js" />
<root url="file://{{dartSdk}}/lib/js_util" />
<root url="file://{{dartSdk}}/lib/math" />
<root url="file://{{dartSdk}}/lib/mirrors" />
<root url="file://{{dartSdk}}/lib/svg" />
<root url="file://{{dartSdk}}/lib/typed_data" />
<root url="file://{{dartSdk}}/lib/web_audio" />
<root url="file://{{dartSdk}}/lib/web_gl" />
<root url="file://{{dartSdk}}/lib/web_sql" />
<root url="file://{{{dartSdk}}}/lib/async" />
<root url="file://{{{dartSdk}}}/lib/collection" />
<root url="file://{{{dartSdk}}}/lib/convert" />
<root url="file://{{{dartSdk}}}/lib/core" />
<root url="file://{{{dartSdk}}}/lib/developer" />
<root url="file://{{{dartSdk}}}/lib/html" />
<root url="file://{{{dartSdk}}}/lib/io" />
<root url="file://{{{dartSdk}}}/lib/isolate" />
<root url="file://{{{dartSdk}}}/lib/math" />
<root url="file://{{{dartSdk}}}/lib/mirrors" />
<root url="file://{{{dartSdk}}}/lib/typed_data" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
......
<component name="libraryTable">
<library name="Dart SDK">
<CLASSES>
<root url="file://{{dartSdk}}/lib/async" />
<root url="file://{{dartSdk}}/lib/collection" />
<root url="file://{{dartSdk}}/lib/convert" />
<root url="file://{{dartSdk}}/lib/core" />
<root url="file://{{dartSdk}}/lib/developer" />
<root url="file://{{dartSdk}}/lib/html" />
<root url="file://{{dartSdk}}/lib/indexed_db" />
<root url="file://{{dartSdk}}/lib/io" />
<root url="file://{{dartSdk}}/lib/isolate" />
<root url="file://{{dartSdk}}/lib/js" />
<root url="file://{{dartSdk}}/lib/js_util" />
<root url="file://{{dartSdk}}/lib/math" />
<root url="file://{{dartSdk}}/lib/mirrors" />
<root url="file://{{dartSdk}}/lib/svg" />
<root url="file://{{dartSdk}}/lib/typed_data" />
<root url="file://{{dartSdk}}/lib/web_audio" />
<root url="file://{{dartSdk}}/lib/web_gl" />
<root url="file://{{dartSdk}}/lib/web_sql" />
<root url="file://{{{dartSdk}}}/lib/async" />
<root url="file://{{{dartSdk}}}/lib/collection" />
<root url="file://{{{dartSdk}}}/lib/convert" />
<root url="file://{{{dartSdk}}}/lib/core" />
<root url="file://{{{dartSdk}}}/lib/developer" />
<root url="file://{{{dartSdk}}}/lib/html" />
<root url="file://{{{dartSdk}}}/lib/io" />
<root url="file://{{{dartSdk}}}/lib/isolate" />
<root url="file://{{{dartSdk}}}/lib/math" />
<root url="file://{{{dartSdk}}}/lib/mirrors" />
<root url="file://{{{dartSdk}}}/lib/typed_data" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</component>
\ No newline at end of file
<component name="libraryTable">
<library name="Flutter for Android">
<CLASSES>
<root url="jar://{{androidFlutterJar}}!/" />
<root url="jar://{{{androidFlutterJar}}}!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
......
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
......
......@@ -197,6 +197,7 @@ void main() {
}
expectExists('lib/main.dart');
for (FileSystemEntity file in projectDir.listSync(recursive: true)) {
if (file is File && file.path.endsWith('.dart')) {
final String original = file.readAsStringSync();
......@@ -235,11 +236,16 @@ void main() {
expect(version, contains('version:'));
expect(version, contains('revision: 12345678'));
expect(version, contains('channel: omega'));
},
overrides: <Type, Generator>{
// IntelliJ metadata
final String intelliJSdkMetadataPath = fs.path.join('.idea', 'libraries', 'Dart_SDK.xml');
expectExists(intelliJSdkMetadataPath);
final String sdkMetaContents = fs.file(fs.path.join(projectDir.path, intelliJSdkMetadataPath)).readAsStringSync();
expect(sdkMetaContents, contains('<root url="file:/'));
expect(sdkMetaContents, contains('/bin/cache/dart-sdk/lib/core"'));
}, overrides: <Type, Generator>{
FlutterVersion: () => mockFlutterVersion,
},
timeout: allowForCreateFlutterProject);
}, timeout: allowForCreateFlutterProject);
// Verify that we can regenerate over an existing project.
testUsingContext('can re-gen over existing project', () async {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment