package com.kickstarter;

import android.app.Application;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;

import com.kickstarter.libs.Font;
import com.kickstarter.libs.ForApplication;
import com.kickstarter.models.CurrentUser;
<<<<<<< HEAD
import com.kickstarter.services.KickstarterClient;
=======
>>>>>>> 4deca83a27ca24c5500f7958646481c65001ffb2

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;

@Module
public class ApplicationModule {
  private final Application application;

  public ApplicationModule(final Application application) {
    this.application = application;
  }

  @Provides
  @Singleton
  @ForApplication
  Application application() {
    return application;
  }

  @Provides
  @Singleton
  Font provideFont() {
    return new Font(application);
  }

  @Provides
  @Singleton
  SharedPreferences provideSharedPreferences() {
    return PreferenceManager.getDefaultSharedPreferences(application);
  }

  @Provides
  @Singleton
  CurrentUser provideCurrentUser(final SharedPreferences sharedPreferences) {
    return new CurrentUser(sharedPreferences);
  }

  @Provides
  @Singleton
  KickstarterClient provideKickstarterClient(final CurrentUser currentUser) {
    return new KickstarterClient(currentUser);
  }
}

@@ -264,21 +264,8 @@
 er;%0A
-%3C%3C%3C%3C%3C%3C%3C HEAD%0A
 impo
@@ -314,65 +314,8 @@
 ent;
-%0A=======%0A%3E%3E%3E%3E%3E%3E%3E 4deca83a27ca24c5500f7958646481c65001ffb2
 %0A%0Aim

Fix bad merge