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
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="220" android:versionName="2.2.1" package="com.microsoft.office.outlook" platformBuildVersionCode="25" platformBuildVersionName="7.1.1"> | |
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="24" /> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | |
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | |
<uses-permission android:name="android.permission.VIBRATE" /> | |
<uses-permission android:name="android.permission.GET_ACCOUNTS" /> | |
<uses-permission android:name="android.permission.READ_PROFILE" /> | |
<uses-permission android:name="android.permission.READ_CONTACTS" /> |
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
public class GetFeedHandler implements RequestHandler<GetFeedRequest, GetFeedResponse> { | |
private final AmazonDynamoDB mClient = AmazonDynamoDBClientBuilder | |
.standard() | |
.build(); | |
private final DynamoDB dynamoDB = new DynamoDB(mClient); | |
private Context mContext; | |
public GetFeedResponse handleRequest(final GetFeedRequest input, final Context context) { | |
mContext = context; |
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
public class GetFeedHandler implements RequestHandler<GetFeedRequest, GetFeedResponse> { | |
@Inject DynamoDB mDynamoDB; | |
@Inject LambdaLogger mLambdaLogger; | |
public GetFeedResponse handleRequest(final GetFeedRequest input, final Context context) { | |
Injector.getInjector(context).inject(this); | |
final List<String> activityIds = getActivitiesForUser(input.getUserId()); | |
return new GetFeedResponse(activityIds); | |
} |
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 FeedTableModule { | |
@Provides | |
@Singleton | |
@Named(value=TableConstants.FEED_TABLE_NAME) | |
Table feedTable(final DynamoDB dynamoDB) { | |
return dynamoDB.getTable(TableConstants.FEED_TABLE_NAME); | |
} | |
@Provides |
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
public class GetFeedHandler implements RequestHandler<GetFeedRequest, GetFeedResponse> { | |
@Inject LambdaLogger mLambdaLogger; | |
@Inject @Named(TableConstants.FEED_USERID_CREATED_AT_INDEX) Index mSortedFeedIndex; | |
@Inject @Named(QueryConstants.FEED_SORTED_QUERY) QuerySpec mSortedFeedQuery; | |
public GetFeedResponse handleRequest(final GetFeedRequest input, final Context context) { | |
Injector.getInjector(context).inject(this); | |
final List<String> activityIds = getActivitiesForUser(input.getUserId()); | |
return new GetFeedResponse(activityIds); |
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 DynamoDBModule { | |
@Provides | |
@Singleton | |
DynamoDB dynamoDB(final AmazonDynamoDB amazonDynamoDB) { | |
return new DynamoDB(amazonDynamoDB); | |
} | |
@Provides | |
@Singleton |
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 |
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
private SimpleLoggingHandler injectSimpleLoggingHandler(SimpleLoggingHandler instance) { | |
SimpleLoggingHandler_MembersInjector.injectMLogger( | |
instance, providesLambdaLoggerProvider.get()); | |
return instance; | |
} |
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
@Singleton | |
@Component(modules = { | |
LambdaModule.class | |
}) | |
public interface ExampleComponent { | |
void inject(SimpleLoggingHandler simpleLoggingHandler); | |
} |
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
public class SimpleLoggingHandler implements RequestHandler<String, Boolean> { | |
@Inject LambdaLogger mLogger; | |
public Boolean handleRequest(final String request, final Context context) { | |
Injector.getInjector(context).inject(this); | |
mLogger.log(String.format("Received Request: %s", request)); | |
return true; | |
} |
OlderNewer