package Ġcom . luc cas me lo . concept . di . module Ċ Ċ import Ġandroid . support . v 7 . app . AppCompatActivity Ċ import Ġandroid . view . LayoutInflater Ċ import Ġcom . luc cas me lo . concept . data . repository . ApiService Ċ import Ġcom . luc cas me lo . concept . data . repository . Games Repository Ċ import Ġcom . luc cas me lo . concept . di . Per Activity Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġjavax . inject . Named Ċ Ċ @ Module Ċ class ĠActivity Module ( private Ġval Ġactivity : ĠAppCompatActivity ) Ġ{ ĊĊĊĊĊĠĠĠ Ġ@ Per Activity ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovides Activity (): ĠAppCompatActivity Ġ= Ġactivity ĊĊĠĠĠ Ġ@ Per Activity ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovides LayoutInflater ( activity : ĠAppCompatActivity ): ĠLayoutInflater Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ ĠLayoutInflater . from ( activity ) ĊĊĠĠĠ Ġ@ Per Activity ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovides FragmentManager ( activity : ĠAppCompatActivity ): Ġandroid . support . v 4 . app . FragmentManager Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ Ġactivity . support FragmentManager ĊĊĊĊĠĠĠ Ġ@ Per Activity ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Games Repository (@ Named (" api Service ") api Service : ĠApi Service ): ĠGames Repository Ġ= ĠGames Repository ( api Service ) ĊĊ Ċ }