Permalink
Browse files

Add Facebook SKD

  • Loading branch information...
dragosholban committed Mar 13, 2018
1 parent 9cac2d6 commit 83b08b9c4df635cbcc7182c255a16e926d1c1e6b
Showing with 20 additions and 1 deletion.
  1. +1 −0 app/build.gradle
  2. +16 −1 app/src/main/AndroidManifest.xml
  3. +2 −0 app/src/main/res/values/strings.xml
  4. +1 −0 build.gradle
@@ -25,4 +25,5 @@ dependencies {
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
compile 'com.facebook.android:facebook-android-sdk:[4,5)'
}
@@ -1,14 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="dragosholban.com.bestphotos">
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/facebook_app_id"/>
<activity android:name=".MainActivity"
android:screenOrientation="portrait">
<intent-filter>
@@ -17,6 +18,20 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.facebook.FacebookActivity"
android:configChanges=
"keyboard|keyboardHidden|screenLayout|screenSize|orientation"
android:label="@string/app_name" />
<activity
android:name="com.facebook.CustomTabActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="@string/fb_login_protocol_scheme" />
</intent-filter>
</activity>
</application>
</manifest>
@@ -1,3 +1,5 @@
<resources>
<string name="app_name">BestPhotos</string>
<string name="facebook_app_id">1645117652223035</string>
<string name="fb_login_protocol_scheme">fb1645117652223035</string>
</resources>
@@ -5,6 +5,7 @@ buildscript {
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'

0 comments on commit 83b08b9

Please sign in to comment.