diff --git a/arouter-idea-plugin/build.gradle b/arouter-idea-plugin/build.gradle new file mode 100644 index 00000000..e6286d8a --- /dev/null +++ b/arouter-idea-plugin/build.gradle @@ -0,0 +1,31 @@ +plugins { + id 'org.jetbrains.kotlin.jvm' + id "org.jetbrains.intellij" version '0.2.17' +} + +ext { + bintrayName = 'arouter-idea-plugin' + artifact = bintrayName + libraryName = 'ARouter idea plugin' + libraryDescription = 'An idea plugin used for navigation to target class.' + libraryVersion = arouter_idea_plugin_version +} + +dependencies { + compile gradleApi() + compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8" +} + +compileKotlin { + kotlinOptions { + jvmTarget = "1.8" + } +} +compileTestKotlin { + kotlinOptions { + jvmTarget = "1.8" + } +} + +apply from: '../install.gradle' +apply from: '../bintray.gradle' \ No newline at end of file diff --git a/arouter-idea-plugin/src/main/kotlin/com/alibaba/android/arouter/idea/extensions/NavigationLineMarker.kt b/arouter-idea-plugin/src/main/kotlin/com/alibaba/android/arouter/idea/extensions/NavigationLineMarker.kt new file mode 100644 index 00000000..00a620c0 --- /dev/null +++ b/arouter-idea-plugin/src/main/kotlin/com/alibaba/android/arouter/idea/extensions/NavigationLineMarker.kt @@ -0,0 +1,11 @@ +package com.alibaba.android.arouter.idea.extensions + +/** + * Mark navigation target. + * + * @author zhilong Contact me. + * @version 1.0 + * @since 2018/12/13 12:30 PM + */ +class NavigationLineMarker { +} \ No newline at end of file diff --git a/arouter-idea-plugin/src/main/resources/META-INF/plugin.xml b/arouter-idea-plugin/src/main/resources/META-INF/plugin.xml new file mode 100644 index 00000000..765e385a --- /dev/null +++ b/arouter-idea-plugin/src/main/resources/META-INF/plugin.xml @@ -0,0 +1,21 @@ + + com.alibaba.android.arouter + Alibaba ARouter Idea Plugin + ARouter idea plugin support. + alibaba + 1.0.0 + + + + 1.0.0 +
  • Support navigation to target class.
  • + + ]]> +
    + + com.intellij.modules.platform + com.intellij.modules.lang + com.intellij.modules.vcs + com.intellij.modules.xml +
    \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 5696cee9..b46de64f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -28,6 +28,7 @@ arouter_compiler_version=1.2.2 arouter_api_version=1.4.1 arouter_annotation_version=1.0.6 arouter_register_version=1.0.2 +arouter_idea_plugin_version=1.0.0 bintrayRepo=maven publishedGroupId=com.alibaba diff --git a/settings.gradle b/settings.gradle index c1732b38..5e25904d 100644 --- a/settings.gradle +++ b/settings.gradle @@ -4,4 +4,5 @@ include ':arouter-compiler' include ':arouter-annotation' include ':module-java' include ':module-kotlin' -include ':arouter-gradle-plugin' \ No newline at end of file +include ':arouter-gradle-plugin' +include ':arouter-idea-plugin' \ No newline at end of file