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);
  }
}

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;
import com.kickstarter.services.KickstarterClient;

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);
  }
}

Fix bad merge