| <!-- |
| ~ Copyright (C) 2019 The Android Open Source Project |
| ~ |
| ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| ~ you may not use this file except in compliance with the License. |
| ~ You may obtain a copy of the License at |
| ~ |
| ~ http://www.apache.org/licenses/LICENSE-2.0 |
| ~ |
| ~ Unless required by applicable law or agreed to in writing, software |
| ~ distributed under the License is distributed on an "AS IS" BASIS, |
| ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| ~ See the License for the specific language governing permissions and |
| ~ limitations under the License. |
| --> |
| |
| <idea-plugin> |
| <extensionPoints> |
| <!-- |
| Extension point for EditorNotificationProvider that generate notification that will be displayed in the PreviewEditor |
| (as opposed to spanning the whole width of the FileEditor. |
| A notification provider that wants this behaviour should extend this point and not the regular editorNotificationProvider. |
| --> |
| <extensionPoint qualifiedName="com.android.tools.idea.compose.preview.composeEditorNotificationProvider" |
| interface="com.intellij.ui.EditorNotificationProvider" /> |
| |
| <extensionPoint qualifiedName="com.android.tools.idea.compose.preview.composeStudioBotActionFactory" |
| interface="com.android.tools.idea.compose.preview.ComposeStudioBotActionFactory" /> |
| </extensionPoints> |
| |
| <extensions defaultExtensionNs="com.intellij"> |
| <localInspection implementationClass="com.android.tools.idea.compose.preview.PreviewAnnotationInFunctionWithParametersInspection" |
| language="kotlin" |
| enabledByDefault="true" |
| bundle="com.android.tools.idea.compose.preview.ComposePreviewBundle" |
| groupKey="inspection.group.name" |
| key="inspection.no.parameters.name" |
| level="ERROR"/> |
| |
| <localInspection implementationClass="com.android.tools.idea.compose.preview.ComposePreviewNeedsComposableAnnotationInspection" |
| language="kotlin" |
| enabledByDefault="true" |
| bundle="com.android.tools.idea.compose.preview.ComposePreviewBundle" |
| groupKey="inspection.group.name" |
| key="inspection.no.composable.name" |
| level="ERROR"/> |
| |
| <localInspection implementationClass="com.android.tools.idea.compose.preview.ComposePreviewMustBeTopLevelFunction" |
| language="kotlin" |
| enabledByDefault="true" |
| bundle="com.android.tools.idea.compose.preview.ComposePreviewBundle" |
| groupKey="inspection.group.name" |
| key="inspection.top.level.function" |
| level="ERROR"/> |
| |
| <localInspection implementationClass="com.android.tools.idea.compose.preview.ComposePreviewDimensionRespectsLimit" |
| language="kotlin" |
| enabledByDefault="true" |
| bundle="com.android.tools.idea.compose.preview.ComposePreviewBundle" |
| groupKey="inspection.group.name" |
| key="inspection.dimension.limit.name" |
| level="WARNING"/> |
| |
| <localInspection implementationClass="com.android.tools.idea.compose.preview.PreviewFontScaleMustBeGreaterThanZero" |
| language="kotlin" |
| enabledByDefault="true" |
| bundle="com.android.tools.idea.compose.preview.ComposePreviewBundle" |
| groupKey="inspection.group.name" |
| key="inspection.preview.font.scale.name" |
| level="ERROR"/> |
| |
| <localInspection implementationClass="com.android.tools.idea.compose.preview.PreviewApiLevelMustBeValid" |
| language="kotlin" |
| enabledByDefault="true" |
| bundle="com.android.tools.idea.compose.preview.ComposePreviewBundle" |
| groupKey="inspection.group.name" |
| key="inspection.preview.api.level.name" |
| level="ERROR"/> |
| |
| <localInspection implementationClass="com.android.tools.idea.compose.preview.PreviewMultipleParameterProvidersInspection" |
| language="kotlin" |
| enabledByDefault="true" |
| bundle="com.android.tools.idea.compose.preview.ComposePreviewBundle" |
| groupKey="inspection.group.name" |
| key="inspection.no.multiple.preview.provider.description" |
| level="ERROR"/> |
| |
| <localInspection implementationClass="com.android.tools.idea.compose.preview.PreviewParameterProviderOnFirstParameterInspection" |
| language="kotlin" |
| enabledByDefault="true" |
| bundle="com.android.tools.idea.compose.preview.ComposePreviewBundle" |
| groupKey="inspection.group.name" |
| key="inspection.parameter.provider.on.first.parameter.description" |
| level="ERROR"/> |
| |
| <localInspection implementationClass="com.android.tools.idea.compose.annotator.PreviewPickerAnnotationInspection" |
| language="kotlin" |
| enabledByDefault="true" |
| bundle="com.android.tools.idea.compose.preview.ComposePreviewBundle" |
| groupKey="inspection.group.name" |
| key="inspection.preview.device.spec.name" |
| level="ERROR"/> |
| |
| <localInspection implementationClass="com.android.tools.idea.compose.preview.ComposePreviewNotSupportedInUnitTestFiles" |
| language="kotlin" |
| enabledByDefault="true" |
| bundle="com.android.tools.idea.compose.preview.ComposePreviewBundle" |
| groupKey="inspection.group.name" |
| key="inspection.unit.test.files" |
| level="ERROR"/> |
| |
| <localInspection implementationClass="com.android.tools.idea.compose.preview.PreviewShouldNotBeCalledRecursively" |
| language="kotlin" |
| enabledByDefault="true" |
| bundle="com.android.tools.idea.compose.preview.ComposePreviewBundle" |
| groupKey="inspection.group.name" |
| key="inspection.preview.recursive.name" |
| level="WEAK WARNING"/> |
| |
| <localInspection implementationClass="com.android.tools.idea.compose.preview.PreviewDeviceShouldUseNewSpec" |
| language="kotlin" |
| enabledByDefault="true" |
| bundle="com.android.tools.idea.compose.preview.ComposePreviewBundle" |
| groupKey="inspection.group.name" |
| key="inspection.preview.device.legacy.spec.name" |
| level="WEAK WARNING"/> |
| |
| <languageInjectionContributor language="kotlin" |
| implementationClass="com.android.tools.idea.compose.preview.util.device.ComposeDeviceSpecInjectionContributor"/> |
| |
| <deadCode implementation="com.android.tools.idea.compose.preview.PreviewEntryPoint" /> |
| |
| <postStartupActivity implementation="com.android.tools.idea.compose.preview.runconfiguration.ComposePreviewRunConfigurationStartupActivity" /> |
| <configurationType implementation="com.android.tools.idea.compose.preview.runconfiguration.ComposePreviewRunConfigurationType"/> |
| <runConfigurationProducer |
| implementation="com.android.tools.idea.compose.preview.runconfiguration.ComposePreviewRunConfigurationProducer"/> |
| <runLineMarkerContributor |
| language="kotlin" |
| implementationClass="com.android.tools.idea.compose.preview.runconfiguration.ComposePreviewRunLineMarkerContributor"/> |
| <codeInsight.lineMarkerProvider |
| language="kotlin" |
| implementationClass="com.android.tools.idea.compose.annotator.PreviewPickerLineMarkerProvider"/> |
| |
| <notificationGroup id="Compose Preview Notification" displayType="NONE"/> |
| |
| <postStartupActivity implementation="com.android.tools.idea.compose.preview.ComposeNewPreviewNotificationManager$MyStartupActivity"/> |
| </extensions> |
| |
| <extensions defaultExtensionNs="com.android.tools.idea.uibuilder"> |
| <editor.multirepresentation.sourcecode.sourceCodePreviewRepresentationProvider |
| implementation="com.android.tools.idea.compose.preview.ComposePreviewRepresentationProvider"/> |
| <handlers.viewHandlerProvider implementation="com.android.tools.idea.compose.preview.uibuilder.handler.ComposeViewHandlerProvider" /> |
| <troubleshooting.infoCollector implementation="com.android.tools.idea.compose.preview.ComposePreviewTroubleInfoCollector" /> |
| <analytics.resizeTracker implementation="com.android.tools.idea.compose.preview.analytics.ComposeResizeTracker"/> |
| </extensions> |
| |
| <actions> |
| <action id="Android.Designer.ComposeIssueNotificationAction" |
| icon="StudioIcons.Common.ERROR" |
| class="com.android.tools.idea.common.actions.IssueNotificationAction" |
| text="Toggle Issue Panel" |
| description="Toggle the visibility of Issue Panel" |
| use-shortcut-of="Android.Designer.IssueNotificationAction" /> |
| <action internal="true" id="FastRefresh.RestartProcess" class="com.android.tools.idea.compose.preview.actions.internal.ForcePreviewDaemonStop" /> |
| |
| <action id="Android.Designer.ReRunUiCheckModeAction" |
| icon="AllIcons.Actions.Refresh" |
| class="com.android.tools.idea.compose.preview.actions.ReRunUiCheckModeAction"> |
| <add-to-group group-id="Android.Designer.IssuePanel.ToolbarActions" anchor="first"/> |
| </action> |
| |
| </actions> |
| |
| </idea-plugin> |