Exemplo n.º 1
0
        /// <summary>
        /// Create a plugin package api object that is currently supported by Bucket.
        /// </summary>
        protected virtual IPackage CreatePluginApiPackage()
        {
            var versionPretty   = PluginConst.PluginApiVersion;
            var version         = versionParser.Normalize(versionPretty);
            var bucketPluginApi = new PackageComplete(PluginManager.PluginRequire, version, versionPretty);

            bucketPluginApi.SetDescription("The Bucket Plugin API");
            return(bucketPluginApi);
        }
Exemplo n.º 2
0
        /// <inheritdoc />
        protected override void Initialize()
        {
            versionParser = new BVersionParser();
            AddPackage(CreatePluginApiPackage());

            foreach (var platform in platforms)
            {
                var version = versionParser.Normalize(platform.Value);
                var package = new PackageComplete(platform.Key, version, platform.Value);
                package.SetDescription("Package manually configured.");
                AddPackage(package);
            }
        }