added support for custom addon collections

This commit is contained in:
Fabian Freund
2025-09-30 13:02:17 +02:00
parent 7c4662a7be
commit 751e22ac5e
20 changed files with 423 additions and 41 deletions
@@ -827,6 +827,18 @@ class ShareInternetResourceState {
enum LogLevel { debug, info, warn, error }
class AddonCollection {
final String serverURL;
final String collectionUser;
final String collectionName;
AddonCollection({
required this.serverURL,
required this.collectionUser,
required this.collectionName,
});
}
@ConfigurePigeon(
PigeonOptions(
dartOut: 'lib/src/pigeons/gecko.g.dart',
@@ -842,7 +854,11 @@ enum LogLevel { debug, info, warn, error }
@HostApi()
abstract class GeckoBrowserApi {
String getGeckoVersion();
void initialize(LogLevel logLevel, ContentBlocking contentBlocking);
void initialize(
LogLevel logLevel,
ContentBlocking contentBlocking,
AddonCollection? addonCollection,
);
bool showNativeFragment();
void onTrimMemory(int level);
}