productFlavors {
dev {
resValue "string", "app_name", "BP-dev"
resValue "string", "facebook_app_id", "asdfasdfasfasfd"
resValue "string", "fb_login_protocol_scheme", "fb asdfasdfasfasfd"applicationIdSuffix ".dev"
versionNameSuffix "-dev"
manifestPlaceholders = [fb_provider:"com.facebook.app.FacebookContentProvider asdfasdfasfasfd"]}
staging {
resValue "string", "app_name", "BP-staging"
resValue "string", "facebook_app_id", "asdfasdfasfasfd"
resValue "string", "fb_login_protocol_scheme", "fb asdfasdfasfasfd"applicationIdSuffix ".staging"
versionNameSuffix "-staging"
manifestPlaceholders = [fb_provider:"com.facebook.app.FacebookContentProvider asdfasdfasfasfd"]}
}
asdfasdfasfasfd라고 쓴부분은 당연히 내가 막쓴거고
저기에 해당하는 아이디를 적어주면 되고
manifest에서
<provider
android:name="com.facebook.FacebookContentProvider"
android:authorities="${fb_provider}"
android:exported="true" />
authorities를 주목할 것
이것때문에 꽤나 삽질했다....
꼭 페북 로그인이 아니더라도 프로바이더를 쓸 경우 참고해야 함
'Programming > Android' 카테고리의 다른 글
Glide 관련 이슈(이미지 로딩 실패) (0) | 2017.11.27 |
---|---|
Glide4, kotlin, annotation 관련 이슈........ (0) | 2017.08.25 |
안드로이드 Flavor 적용 (0) | 2017.08.02 |
Glide 관련 이슈(centerCrop, context) (1) | 2017.06.15 |
Kotlin 사용 (2) - Custom TextView (letter spacing) (0) | 2017.06.15 |