Report exceptions from Android Extensions (KT-7355)

This commit is contained in:
Yan Zhulanow
2015-08-20 21:33:36 +03:00
parent 0339bc55df
commit ddd4c2ae7f
2 changed files with 28 additions and 2 deletions
@@ -1,10 +1,10 @@
<idea-plugin version="2" url="http://kotlin.jetbrains.org">
<idea-plugin version="2" url="http://kotlinlang.org">
<id>org.jetbrains.kotlin.android</id>
<name>Kotlin Extensions For Android</name>
<description>Various extensions facilitating Android development in Kotlin</description>
<version>@snapshot@</version>
<vendor url="http://www.jetbrains.com">JetBrains Inc.</vendor>
<vendor url="http://www.jetbrains.com">JetBrains s.r.o.</vendor>
<!-- IDEA VERSION -->
@@ -22,6 +22,8 @@
<renamePsiElementProcessor id="KotlinAndroidSyntheticProperty"
implementation="org.jetbrains.kotlin.android.synthetic.idea.AndroidRenameProcessor"
order="first"/>
<errorHandler implementation="org.jetbrains.kotlin.plugin.android.AndroidExtensionsReportSubmitter"/>
</extensions>
<extensions defaultExtensionNs="org.jetbrains.kotlin">
@@ -0,0 +1,24 @@
/*
* Copyright 2010-2015 JetBrains s.r.o.
*
* 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.
*/
package org.jetbrains.kotlin.plugin.android
import com.intellij.diagnostic.ITNReporter
import com.intellij.openapi.diagnostic.IdeaLoggingEvent
public class AndroidExtensionsReportSubmitter : ITNReporter() {
override fun showErrorInRelease(event: IdeaLoggingEvent?) = true
}