Skip to content

Commit 8c13658

Browse files
committed
remove InstallPlugin method from API
- do not allow InstallPlugin method to be called via API - move InstallPlugin functionality to PluginsManager for use exclusively
1 parent a72750d commit 8c13658

File tree

7 files changed

+161
-186
lines changed

7 files changed

+161
-186
lines changed

Flow.Launcher.Core/Flow.Launcher.Core.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
<ItemGroup>
5656
<PackageReference Include="FSharp.Core" Version="4.7.1" />
5757
<PackageReference Include="squirrel.windows" Version="1.5.2" />
58-
<PackageReference Include="SharpZipLib" Version="1.2.0" />
5958
</ItemGroup>
6059

6160
<ItemGroup>

Flow.Launcher.Core/Plugin/PluginInstaller.cs

Lines changed: 0 additions & 169 deletions
This file was deleted.

Flow.Launcher.Core/Plugin/PluginManager.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,6 @@ public static void InitializePlugins(IPublicAPI api)
133133
}
134134
}
135135

136-
public static void InstallPlugin(string path)
137-
{
138-
PluginInstaller.Install(path);
139-
}
140-
141136
public static List<PluginPair> ValidPluginsForQuery(Query query)
142137
{
143138
if (NonGlobalPlugins.ContainsKey(query.ActionKeyword))

Flow.Launcher.Plugin/IPublicAPI.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,6 @@ public interface IPublicAPI
6363
/// </summary>
6464
void OpenSettingDialog();
6565

66-
/// <summary>
67-
/// Install Flow Launcher plugin
68-
/// </summary>
69-
/// <param name="path">Plugin path (ends with .flowlauncher)</param>
70-
void InstallPlugin(string path);
71-
7266
/// <summary>
7367
/// Get translation of current language
7468
/// You need to implement IPluginI18n if you want to support multiple languages for your plugin

Flow.Launcher/PublicAPIInstance.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,6 @@ public void StopLoadingBar()
115115
_mainVM.ProgressBarVisibility = Visibility.Collapsed;
116116
}
117117

118-
public void InstallPlugin(string path)
119-
{
120-
Application.Current.Dispatcher.Invoke(() => PluginManager.InstallPlugin(path));
121-
}
122-
123118
public string GetTranslation(string key)
124119
{
125120
return InternationalizationManager.Instance.GetTranslation(key);

Plugins/Flow.Launcher.Plugin.PluginManager/Flow.Launcher.Plugin.PluginsManager.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,8 @@
3939
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
4040
</Content>
4141
</ItemGroup>
42+
43+
<ItemGroup>
44+
<PackageReference Include="SharpZipLib" Version="1.2.0" />
45+
</ItemGroup>
4246
</Project>

0 commit comments

Comments
 (0)