package ru.linachan.pushbullet;

import ru.linachan.yggdrasil.component.YggdrasilPlugin;

public class PushBulletPlugin extends YggdrasilPlugin {

    private PushBulletClient client;

    @Override
    protected void setUpDependencies() {

    }

    @Override
    protected void onInit() {
        String apiKey = core.getConfig("PushBulletAPIKey", null);

        client = new PushBulletClient(core, apiKey);
        client.setUpDevice("Yggdrasil");

        PushBulletProvider provider = new PushBulletProvider();
        core.getNotificationManager().registerProvider(provider);
    }

    @Override
    protected void onShutdown() {

    }

    @Override
    protected boolean executeTests() {
        return true;
    }

    public PushBulletClient getClient() {
        return client;
    }
}

@@ -81,16 +81,88 @@
 lPlugin;
+%0Aimport ru.linachan.yggdrasil.notification.YggdrasilNotificationManager;
 %0A%0Apublic
@@ -400,23 +400,38 @@
 fig(
-%22PushB
+).getString(%22push_b
 ullet
-APIK
+.api.k
 ey%22,
@@ -614,16 +614,33 @@
 core.get
+Manager(Yggdrasil
 Notifica
@@ -650,17 +650,22 @@
 nManager
-(
+.class
 ).regist

Update plugin to latest YggdrasilCore