/**
 * PluginApplication.java
 * 
 * Application class for the Daily Notification Plugin demo app.
 * Registers the native content fetcher SPI implementation.
 * 
 * @author Matthew Raymer
 * @version 1.0.0
 */

package org.timesafari.dailynotification;

import android.app.Application;
import android.util.Log;
import org.timesafari.dailynotification.DailyNotificationPlugin;
import org.timesafari.dailynotification.NativeNotificationContentFetcher;

/**
 * Application class that registers native fetcher for plugin demo app
 */
public class PluginApplication extends Application {
    
    private static final String TAG = "PluginApplication";
    
    @Override
    public void onCreate() {
        super.onCreate();
        
        Log.i(TAG, "Initializing Daily Notification Plugin demo app");
        
        // Register demo native fetcher
        NativeNotificationContentFetcher demoFetcher = new DemoNativeFetcher();
        DailyNotificationPlugin.setNativeFetcher(demoFetcher);
        
        Log.i(TAG, "Demo native fetcher registered: " + demoFetcher.getClass().getName());
    }
}

