Android -> S3
get Android key
https://console.aws.amazon.com/cognito/home
Manage identity -> insert identity pool name -> enable access to unauthorized identities -> get aws credentials
Policy setting
http://awspolicygen.s3.amazonaws.com/policygen.html
select type: S3 bucket policy
Principal: *
Actions: get object
Arn:aws:s3:::(bucketname)/*
Statement 복사 S3 setting -> 붙여넣기
Android pro guard
# Class names are needed in reflection
-keepnames class com.amazonaws.**
-keepnames class com.amazon.**
# Request handlers defined in request.handlers
-keep class com.amazonaws.services.**.*Handler
# The following are referenced but aren't required to run
-dontwarn com.fasterxml.jackson.**
-dontwarn org.apache.commons.logging.**
# Android 6.0 release removes support for the Apache HTTP client
-dontwarn org.apache.http.**
# The SDK has several references of Apache HTTP client
-dontwarn com.amazonaws.http.**
-dontwarn com.amazonaws.metrics.**
'Android > Tech' 카테고리의 다른 글
Android FCM 10분만에 끝내기 (0) | 2018.06.27 |
---|