All Projects → sionsxie → arms-template-plugin

sionsxie / arms-template-plugin

Licence: other
arms框架的模板插件

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to arms-template-plugin

Progressmanager
⏳ Listen the progress of downloading and uploading in Okhttp, compatible Retrofit and Glide (一行代码即可监听 App 中所有网络链接的上传以及下载进度, 包括 Glide 的图片加载进度).
Stars: ✭ 2,463 (+10162.5%)
Mutual labels:  arms
Retrofiturlmanager
🔮 Let Retrofit support multiple baseUrl and can be change the baseUrl at runtime (以最简洁的 Api 让 Retrofit 同时支持多个 BaseUrl 以及动态改变 BaseUrl).
Stars: ✭ 1,961 (+8070.83%)
Mutual labels:  arms
Androidautosize
🔥 A low-cost Android screen adaptation solution (今日头条屏幕适配方案终极版,一个极低成本的 Android 屏幕适配方案).
Stars: ✭ 12,059 (+50145.83%)
Mutual labels:  arms
Armscomponent
📦 A complete android componentization solution, powered by MVPArms (MVPArms 官方快速组件化方案).
Stars: ✭ 1,664 (+6833.33%)
Mutual labels:  arms
Mvparms
⚔️ A common architecture for Android applications developing based on MVP, integrates many open source projects, to make your developing quicker and easier (一个整合了大量主流开源项目高度可配置化的 Android MVP 快速集成框架).
Stars: ✭ 10,146 (+42175%)
Mutual labels:  arms

Android Studio 4.1中的模板插件基本说明

有已经编译好了的plugin,在Releases目录下,可以直接用

支持最新Android Studio

支持ideal 203 ~ 231.* 版本

下面几张图是修改的基本的配置和查询版本

1.使用JetBrains IntelliJ 插件模板

打开 [intellij-platform-plugin-template](https://github.com/JetBrains/intellij-platform-plugin-template)
点击那个绿色按钮 Use this template 把这个项目copy到自己的Git下,然后下载下来进行相应的修改,如下图

2.修改相应位置

gradle.properties
       //这个是插件的Group 和包名相同就行
       pluginGroup = com.github.sionsxie.armstemplateplugin
       //这个是插件名字
       pluginName = arms-template-plugin
       //这个是插件版本 随意改
       pluginVersion = 0.0.3
       //如果不想调试各种版本兼容的话可以把 build.gradle.kts里的intellij里的updateSinceUntilBuild设置为false
       //这个是最小支持版本,就是Android Studio关于里的那个 #AI-201.8743.12. 这个AI后面的第一个数字 201
       pluginSinceBuild = 201
       //这个是最大支持版本,as版本更新之后,一般改改这里就行了(as对应的ideal的版本)
       pluginUntilBuild = 203.*
       //![版本来源说明]
       //(https://plugins.jetbrains.com/docs/intellij/android-studio.html?from=jetbrains.org#matching-versions-of-the-intellij-platform-with-the-android-studio-version)
       platformVersion = 201.8743.12
       //是否下载ide源码
       platformDownloadSources = true
       //这个是平台插件复制过去就ok了
       platformPlugins = java, com.intellij.java, org.jetbrains.android, android, org.jetbrains.kotlin
build.gradle.kts
        dependencies {
            detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.16.0")
            //增加 wizard-template.jar 来源在 Android Studio\plugins\android\lib\wizard-template.jar
            compileOnly(files("libs/wizard-template.jar"))
        }
src\main\resources\META-INF\plugin.xml
        //添加三个插件依赖
        <depends>org.jetbrains.android</depends>
        <depends>org.jetbrains.kotlin</depends>
        <depends>com.intellij.modules.java</depends>

3.添加自己的模板代码

参考other里的代码

4.生成插件Jar

如下图,运行那个都行

tip:

  • 入口必须为WizardTemplateProvider的派生类
  • widgets里的widgets控件必须有default 属性,不然菜单里看不到模板
  • wizard-template.jar这个jar和JetBrains里的wizardTemplate.plugin-xx.x.x.jar里面api可能有点不一样,已本地的为准
  • 如果出现中文乱码在 build.gradle.kts tasks里的withType 加 options.encoding = "UTF-8"
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].