fixed for "rider for unreal engine"

Signed-off-by: pengzhile <pengzhile@gmail.com>
pull/8/head
pengzhile 2020-12-17 19:51:01 +08:00
parent 5071d51c3d
commit b2c88d612f
5 changed files with 13 additions and 6 deletions

View File

@ -1,6 +1,6 @@
# Reset Your IDE Eval Information # Reset Your IDE Eval Information
1. Download and install plugin from [Download Link](https://plugins.zhile.io/files/ide-eval-resetter-2.1.8.zip). 1. Download and install plugin from [Download Link](https://plugins.zhile.io/files/ide-eval-resetter-2.1.9.zip).
* Alternative installation method: * Alternative installation method:
* Add "Custom Plugin Repository": `https://plugins.zhile.io` manually (`Settings/Preferences` -> `Plugins`) * Add "Custom Plugin Repository": `https://plugins.zhile.io` manually (`Settings/Preferences` -> `Plugins`)
* Search and install plugin: `IDE Eval Reset` * Search and install plugin: `IDE Eval Reset`

View File

@ -4,7 +4,7 @@ plugins {
} }
group 'io.zhile.research.intellij' group 'io.zhile.research.intellij'
version '2.1.8' version '2.1.9'
sourceCompatibility = 1.7 sourceCompatibility = 1.7
targetCompatibility = 1.7 targetCompatibility = 1.7
@ -29,6 +29,8 @@ intellij {
patchPluginXml { patchPluginXml {
changeNotes """<pre> changeNotes """<pre>
Release v2.1.9
1. fixed for "rider for unreal engine"
Release v2.1.8 Release v2.1.8
1. fixed the issue of resetting market plugins for genuine users 1. fixed the issue of resetting market plugins for genuine users
Release v2.1.7 Release v2.1.7

View File

@ -26,7 +26,6 @@ public class Resetter {
private static final String OLD_MACHINE_ID_KEY = "JetBrains.UserIdOnMachine"; private static final String OLD_MACHINE_ID_KEY = "JetBrains.UserIdOnMachine";
private static final String NEW_MACHINE_ID_KEY = DEFAULT_VENDOR + ".user_id_on_machine"; private static final String NEW_MACHINE_ID_KEY = DEFAULT_VENDOR + ".user_id_on_machine";
private static final String DEVICE_ID_KEY = DEFAULT_VENDOR + ".device_id"; private static final String DEVICE_ID_KEY = DEFAULT_VENDOR + ".device_id";
private static final String IDE_EVAL_PREFIX = DEFAULT_VENDOR + "/" + Constants.IDE_NAME_LOWER + "/" + Constants.IDE_HASH;
private static final String EVAL_KEY = "evlsprt"; private static final String EVAL_KEY = "evlsprt";
private static final String AUTO_RESET_KEY = Constants.PLUGIN_PREFS_PREFIX + ".auto_reset." + Constants.IDE_NAME_LOWER + "." + Constants.IDE_HASH; private static final String AUTO_RESET_KEY = Constants.PLUGIN_PREFS_PREFIX + ".auto_reset." + Constants.IDE_NAME_LOWER + "." + Constants.IDE_HASH;
@ -106,7 +105,13 @@ public class Resetter {
try { try {
List<String> prefsList = new ArrayList<>(); List<String> prefsList = new ArrayList<>();
getAllPrefsKeys(Preferences.userRoot().node(IDE_EVAL_PREFIX), prefsList); for (String name:Preferences.userRoot().node(DEFAULT_VENDOR).childrenNames()) {
if (!name.toLowerCase().startsWith(Constants.IDE_NAME_LOWER)) {
continue;
}
getAllPrefsKeys(Preferences.userRoot().node(DEFAULT_VENDOR + "/" + name + "/" + Constants.IDE_HASH), prefsList);
}
Method methodGetProductCode = ReflectionHelper.getMethod(IdeaPluginDescriptor.class, "getProductCode"); Method methodGetProductCode = ReflectionHelper.getMethod(IdeaPluginDescriptor.class, "getProductCode");
if (null != methodGetProductCode) { if (null != methodGetProductCode) {

View File

@ -18,7 +18,7 @@ public class PluginListener implements DynamicPluginListener {
} }
ActionManager.getInstance().getAction(Constants.RESET_ACTION_ID); ActionManager.getInstance().getAction(Constants.RESET_ACTION_ID);
NotificationHelper.showInfo(null, "Plugin installed successfully! Now enjoy it~<br>For more information, visit <a href='https://zhile.io/2020/11/19/jetbrains-eval-reset.html'>here</a>."); NotificationHelper.showInfo(null, "Plugin installed successfully! Now enjoy it~<br>For more information, visit <a href='https://zhile.io/2020/11/18/jetbrains-eval-reset.html'>here</a>.");
} }
@Override @Override

View File

@ -7,7 +7,7 @@
I can reset your IDE eval information.<br> I can reset your IDE eval information.<br>
<em>Click "Help" menu and select "Eval Reset"</em><br><br> <em>Click "Help" menu and select "Eval Reset"</em><br><br>
<p> <p>
<a href="https://zhile.io/2020/11/19/jetbrains-eval-reset.html" target="_blank">Need Help?</a> <a href="https://zhile.io/2020/11/18/jetbrains-eval-reset.html" target="_blank">Need Help?</a>
</p> </p>
]]></description> ]]></description>