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

package org.timesafari.dailynotification.test;

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

/**
 * Application class that registers native fetcher for testing
 */
public class TestApplication extends Application {
    
    private static final String TAG = "TestApplication";
    
    @Override
    public void onCreate() {
        super.onCreate();
        
        Log.i(TAG, "Initializing Daily Notification Plugin test app");
        
        // Register test native fetcher with application context
        Context context = getApplicationContext();
        NativeNotificationContentFetcher testFetcher = 
            new org.timesafari.dailynotification.test.TestNativeFetcher(context);
        DailyNotificationPlugin.setNativeFetcher(testFetcher);
        
        Log.i(TAG, "Test native fetcher registered: " + testFetcher.getClass().getName());
    }
}

