Skip to content

Commit a3e20bc

Browse files
committed
Update FB SDK dependency in gradle config, remove explicit ParseFacebookUtils initialization in code
1 parent f0f15c9 commit a3e20bc

File tree

10 files changed

+11
-27
lines changed

10 files changed

+11
-27
lines changed

ParseLoginSampleBasic/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
apply plugin: 'android'
22

33
dependencies {
4+
compile 'com.facebook.android:facebook-android-sdk:3.20.0'
45
compile project(':ParseLoginUI')
56
compile 'com.android.support:support-v4:21.0.0'
67
}

ParseLoginSampleBasic/src/com/parse/loginsample/basic/SampleApplication.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import android.app.Application;
2525

2626
import com.parse.Parse;
27-
import com.parse.ParseFacebookUtils;
2827
import com.parse.ParseTwitterUtils;
2928

3029
public class SampleApplication extends Application {
@@ -37,10 +36,6 @@ public void onCreate() {
3736

3837
Parse.setLogLevel(Parse.LOG_LEVEL_DEBUG);
3938

40-
// Optional - If you don't want to allow Facebook login, you can
41-
// remove this line (and other related ParseFacebookUtils calls)
42-
ParseFacebookUtils.initialize(getString(R.string.facebook_app_id));
43-
4439
// Optional - If you don't want to allow Twitter login, you can
4540
// remove this line (and other related ParseTwitterUtils calls)
4641
ParseTwitterUtils.initialize(getString(R.string.twitter_consumer_key),

ParseLoginSampleCodeCustomization/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
apply plugin: 'android'
22

33
dependencies {
4+
compile 'com.facebook.android:facebook-android-sdk:3.20.0'
45
compile project(':ParseLoginUI')
56
compile 'com.android.support:support-v4:21.0.0'
67
}

ParseLoginSampleCodeCustomization/src/com/parse/loginsample/codecustomization/SampleApplication.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import android.app.Application;
2525

2626
import com.parse.Parse;
27-
import com.parse.ParseFacebookUtils;
2827
import com.parse.ParseTwitterUtils;
2928

3029
public class SampleApplication extends Application {
@@ -37,10 +36,6 @@ public void onCreate() {
3736

3837
Parse.setLogLevel(Parse.LOG_LEVEL_DEBUG);
3938

40-
// Optional - If you don't want to allow Facebook login, you can
41-
// remove this line (and other related ParseFacebookUtils calls)
42-
ParseFacebookUtils.initialize(getString(R.string.facebook_app_id));
43-
4439
// Optional - If you don't want to allow Twitter login, you can
4540
// remove this line (and other related ParseTwitterUtils calls)
4641
ParseTwitterUtils.initialize(getString(R.string.twitter_consumer_key),

ParseLoginSampleLayoutOverride/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
apply plugin: 'android'
22

33
dependencies {
4+
compile 'com.facebook.android:facebook-android-sdk:3.20.0'
45
compile project(':ParseLoginUI')
56
compile 'com.android.support:support-v4:21.0.0'
67
}

ParseLoginSampleLayoutOverride/src/com/parse/loginsample/layoutoverride/SampleApplication.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import android.app.Application;
2525

2626
import com.parse.Parse;
27-
import com.parse.ParseFacebookUtils;
2827
import com.parse.ParseTwitterUtils;
2928

3029
public class SampleApplication extends Application {
@@ -37,10 +36,6 @@ public void onCreate() {
3736

3837
Parse.setLogLevel(Parse.LOG_LEVEL_DEBUG);
3938

40-
// Optional - If you don't want to allow Facebook login, you can
41-
// remove this line (and other related ParseFacebookUtils calls)
42-
ParseFacebookUtils.initialize(getString(R.string.facebook_app_id));
43-
4439
// Optional - If you don't want to allow Twitter login, you can
4540
// remove this line (and other related ParseTwitterUtils calls)
4641
ParseTwitterUtils.initialize(getString(R.string.twitter_consumer_key),

ParseLoginSampleWithDispatchActivity/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
apply plugin: 'android'
22

33
dependencies {
4+
compile 'com.facebook.android:facebook-android-sdk:3.20.0'
45
compile project(':ParseLoginUI')
56
compile 'com.android.support:support-v4:21.0.0'
67
}

ParseLoginSampleWithDispatchActivity/src/com/parse/loginsample/withdispatchactivity/SampleApplication.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import android.app.Application;
2525

2626
import com.parse.Parse;
27-
import com.parse.ParseFacebookUtils;
2827
import com.parse.ParseTwitterUtils;
2928

3029
public class SampleApplication extends Application {
@@ -37,10 +36,6 @@ public void onCreate() {
3736

3837
Parse.setLogLevel(Parse.LOG_LEVEL_DEBUG);
3938

40-
// Optional - If you don't want to allow Facebook login, you can
41-
// remove this line (and other related ParseFacebookUtils calls)
42-
ParseFacebookUtils.initialize(getString(R.string.facebook_app_id));
43-
4439
// Optional - If you don't want to allow Twitter login, you can
4540
// remove this line (and other related ParseTwitterUtils calls)
4641
ParseTwitterUtils.initialize(getString(R.string.twitter_consumer_key),

ParseLoginUI/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
apply plugin: 'android-library'
22

33
dependencies {
4-
compile 'com.facebook.android:facebook-android-sdk:3.20.0'
54
compile 'com.parse.bolts:bolts-android:1.1.3'
65
compile 'com.android.support:support-v4:21.0.0'
76
compile fileTree(dir: 'libs', include: '*.jar')
7+
8+
provided 'com.facebook.android:facebook-android-sdk:3.20.0'
89
}
910

1011
android {

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@ sample projects, you need to do the following:
1111

1212
1. Clone this repository onto your machine.
1313
2. Import this repository's projects with Android Studio. The project has Maven dependencies on the Facebook SDK and the Bolts framework. Android Studio automatically resolves these.
14-
3. Make sure you have Android Build Tools 21.1.1 installed through Android SDK Manager.
15-
4. Place the following in `res/values/strings.xml` of each sample project:
16-
* Parse application id and client key
17-
* Facebook application id
18-
* Twitter consumer key and consumer secret
19-
5. Build and run the sample project using Android Studio.
14+
3. Specify the following in `res/values/strings.xml` of each sample project:
15+
* <code>parse_app_id</code> and <code>parse_client_key</code>
16+
* <code>facebook_app_id</code>
17+
* <code>twitter_consumer_key</code> and <code>twitter_consumer_secret<code>
18+
4. Build and run the sample project using Android Studio.
2019

2120
## Documentation
2221
For complete details about this library project, please see our [documentation](http://www.parse.com/docs/android_guide#ui-login) on the Parse website.

0 commit comments

Comments
 (0)