package com.github.hisaichi5518.kise;

import android.support.annotation.XmlRes;

import com.google.firebase.remoteconfig.FirebaseRemoteConfig;
import com.google.firebase.remoteconfig.FirebaseRemoteConfigSettings;

import static com.github.hisaichi5518.kise.Kise.Store.INSTANCE;

public class Kise {
    enum Store {
        INSTANCE;

        Kise kise;
    }

    public static void initialize(FirebaseRemoteConfigSettings settings, @XmlRes int resId) {
        INSTANCE.kise = new Kise();

        FirebaseRemoteConfig.getInstance().setConfigSettings(settings);
        FirebaseRemoteConfig.getInstance().setDefaults(resId);
    }
}

@@ -626,11 +626,210 @@
 );%0A    %7D
+%0A%0A    public Kise getInstance() %7B%0A        if (INSTANCE.kise == null) %7B%0A            throw new IllegalStateException(%22Initialize method is not running.%22);%0A        %7D%0A%0A        return INSTANCE.kise;%0A    %7D
 %0A%7D%0A

Add Kise.getInstance()