Skip to content

Commit b76f778

Browse files
committed
🔧 Flip org.jetbrains.android to optional and provide contributions
1 parent 1b2fa45 commit b76f778

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!-- Do not edit; instead, modify studio-contribs_template.xml, and run './bin/plugin generate'. -->
2+
3+
<!-- Defines Android-supported IDE-specific contributions and implementations. -->
4+
<idea-plugin>
5+
<actions>
6+
7+
<!-- Define the 'New Flutter Project' menu item -->
8+
<!--suppress PluginXmlI18n -->
9+
<action id="flutter.NewProject" class="io.flutter.actions.FlutterNewProjectAction"
10+
text="New Flutter Project..."
11+
description="Create a new Flutter project">
12+
<add-to-group group-id="JavaNewProjectOrModuleGroup" anchor="after" relative-to-action="NewProject"/>
13+
</action>
14+
15+
<!-- The icon isn't being used here, but it is set by the action -->
16+
<!--suppress PluginXmlI18n -->
17+
<action id="flutter.NewProject.welcome" class="io.flutter.actions.FlutterNewProjectAction"
18+
text="Create New Flutter Project"
19+
icon="FlutterIcons.Flutter"
20+
description="Create a new Flutter project">
21+
<add-to-group group-id="WelcomeScreen.QuickStart" anchor="first"/>
22+
</action>
23+
24+
</actions>
25+
26+
</idea-plugin>

‎resources/META-INF/plugin.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
<depends>com.intellij.modules.lang</depends>
3030
<depends>com.intellij.modules.xdebugger</depends>
3131
<depends>org.jetbrains.plugins.yaml</depends>
32-
<depends>org.jetbrains.android</depends>
3332
<depends>Dart</depends>
3433
<depends>Git4Idea</depends>
3534

@@ -43,6 +42,9 @@
4342
<!-- Contributes Gemini Code Assist extensions. -->
4443
<depends optional="true" config-file="gemini-contribs.xml">com.google.tools.ij.aiplugin</depends>
4544

45+
<!-- Contributes Android-supported features and implementations. -->
46+
<depends optional="true" config-file="android-contribs.xml">org.jetbrains.android</depends>
47+
4648
<!-- Contributes Android Studio-specific features and implementations. -->
4749
<!--suppress PluginXmlValidity -->
4850
<depends optional="true" config-file="studio-contribs.xml">com.intellij.modules.androidstudio</depends>

‎resources/META-INF/plugin_template.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
<depends>com.intellij.modules.lang</depends>
2828
<depends>com.intellij.modules.xdebugger</depends>
2929
<depends>org.jetbrains.plugins.yaml</depends>
30-
<depends>org.jetbrains.android</depends>
3130
<depends>Dart</depends>
3231
<depends>Git4Idea</depends>
3332

@@ -41,6 +40,9 @@
4140
<!-- Contributes Gemini Code Assist extensions. -->
4241
<depends optional="true" config-file="gemini-contribs.xml">com.google.tools.ij.aiplugin</depends>
4342

43+
<!-- Contributes Android-supported features and implementations. -->
44+
<depends optional="true" config-file="android-contribs.xml">org.jetbrains.android</depends>
45+
4446
<!-- Contributes Android Studio-specific features and implementations. -->
4547
<!--suppress PluginXmlValidity -->
4648
<depends optional="true" config-file="studio-contribs.xml">@DEPEND@</depends>

0 commit comments

Comments
 (0)