Created
February 5, 2019 05:04
-
-
Save RyPope/1599088ac8b715e9e0e03bf6b85d2995 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Module | |
public class LambdaModule { | |
private final Context mContext; | |
public LambdaModule(final Context context) { | |
mContext = context; | |
} | |
@Provides | |
@Singleton | |
LambdaLogger providesLambdaLogger() { | |
return mContext.getLogger(); | |
} | |
@Provides | |
@Singleton | |
CognitoIdentity providesCognitoIdentity() { | |
return mContext.getIdentity(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment