Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support Android Studio 4.1 #150

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 4 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Please do aware **This Plugin is only for Android Studio and IntelliJ IDEA**.
- Using IDE built-in plugin system on MacOs:
- <kbd>Preferences</kbd> > <kbd>Settings</kbd> > <kbd>Plugins</kbd> > <kbd>Browse repositories...</kbd> > <kbd>Search for "GsonFormat"</kbd> > <kbd>Install Plugin</kbd>
- Manually:
- Download the [latest release](https://github.com/zzz40500/GsonFormat/releases/latest) and install it manually using <kbd>Preferences</kbd> > <kbd>Plugins</kbd> > <kbd>Install plugin from disk...</kbd>
- From official jetbrains store from [download](https://plugins.jetbrains.com/plugin/7654?pr=androidstudio)
- Download the [latest release](https://github.com/luohaohaha/GsonFormat/releases/latest) and install it manually using <kbd>Preferences</kbd> > <kbd>Plugins</kbd> > <kbd>Install plugin from disk...</kbd>
- From official jetbrains store from [download](https://plugins.jetbrains.com/plugin/15889-gsonformat-support4-1)

Restart IDE.

Expand All @@ -38,15 +38,9 @@ You can change the hotkey via:

## Version Info

v1.2.2
v1.5.1
>
* Supports field type changes.
* Supports shortcut to open GsonFormat, default option + s (mac), alt + s (win)
* Support for field name changes.
* Support to add the prefix field.
* Support for multiple conversion libraries (Gson, Jackjson, FastJson, LoganSquare).
* Support for private and public modes.
* Supports filtering of superclass into existing fields.
* Support Android Studio 4.1.

## License

Expand Down
Binary file added release/GsonFormat-Support4.1.jar
Binary file not shown.
29 changes: 20 additions & 9 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
<idea-plugin version="2">
<name>GsonFormat</name>
<name>GsonFormat-Support4.1</name>
<description><![CDATA[
<html>quickly to convert a JSON string to an InnerClassEntity class ..<br>
<a href="https://github.com/zzz40500/GsonFormat"> openSource</a>
</html>
<p>This branch is a fix to the original branch issues, because the original author has not
maintained it for a long time, this version supports Android Studio 4.1.
</p>
<a href="https://github.com/zzz40500/GsonFormat/pull/150">See details</a>
</html>
]]>
</description>
<version>1.5.0</version>
<vendor email="wyh405003836@126.com">zzz40500</vendor>
<idea-version since-build="107.121"/>
<version>1.5.1</version>
<vendor email="luohaohaha@gmail.com">luohao</vendor>
<idea-version since-build="107.121" />
<change-notes><![CDATA[
<p>
1.4.0
Expand All @@ -21,13 +25,20 @@
<ul>
<li>fix several bug </li>
<li>fix unlock setting window size </li>
</ul>
1.5.1
<ul>
<li>support Android Studio 4.1 </li>
</ul>
</p>
]]></change-notes>
<actions>
<action id="Gsonformat" class="org.gsonformat.intellij.MainAction" text="GsonFormat">
<add-to-group group-id="GenerateGroup" anchor="last"/>
<keyboard-shortcut keymap="$default" first-keystroke="alt s"/>
<action class="org.gsonformat.intellij.MainAction" id="GsonFormat-Support4.1"
text="GsonFormat">
<add-to-group anchor="last" group-id="GenerateGroup" />
<keyboard-shortcut first-keystroke="alt s" keymap="$default" />
</action>
</actions>
<extensions defaultExtensionNs="com.intellij"/>
<extensions defaultExtensionNs="com.intellij" />
<depends>com.intellij.modules.java</depends>
</idea-plugin>