Skip to content

Commit 08cd25b

Browse files
authored
Remove sign in with Facebook feature (#207)
1 parent 2daa95d commit 08cd25b

25 files changed

+9
-239
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ upload the apps to GCS (automatically deleted after 30 days).
1616
- Supported platforms: Android, iOS, Linux, macOS, Windows
1717
- State management with [provider](https://pub.dev/packages/provider)
1818
- Apple login via [sign_in_with_apple](https://pub.dev/packages/sign_in_with_apple)
19-
- Facebook login via [flutter_facebook_auth](https://pub.dev/packages/flutter_facebook_auth)
2019
- Google login via [google_sign_in](https://pub.dev/packages/google_sign_in)
2120
- Store authentication token with [flutter_secure_storage](https://pub.dev/packages/flutter_secure_storage)
2221
- Render HTML with [flutter_widget_from_html](https://pub.dev/packages/flutter_widget_from_html)
@@ -69,16 +68,15 @@ Pick a unique package name across Play Store and App Store then update these fil
6968
- `.github/workflows/flutter.yml` GCS_BUCKET, GCS_URL
7069
- `android/app/build.gradle` applicationId, signingConfigs.release
7170
- `android/app/src/main/AndroidManifest.xml` package, android:label
72-
- `android/app/src/main/res/values/strings.xml` app_name, facebook_app_id, facebook_client_token, fb_login_protocol_scheme
71+
- `android/app/src/main/res/values/strings.xml` app_name
7372
- `android/fastlane/metadata/android/en-US/` title.txt, full_description.txt, short_description.txt
7473
- `android/fastlane/Appfile`
7574
- `firebase/.firebaserc` projects.default
7675
- `ios/Runner.xcodeproj/project.pbxproj` PRODUCT_BUNDLE_IDENTIFIER x2, PROVISIONING_PROFILE_SPECIFIER x2
77-
- `ios/Runner/Info.plist` CFBundleName, CFBundleURLSchemes, FacebookAppID, FacebookDisplayName
76+
- `ios/Runner/Info.plist` CFBundleName, CFBundleURLSchemes
7877
- `ios/fastlane/Appfile`
7978
- `ios/fastlane/Fastfile` xcargs (PROVISIONING_PROFILE_SPECIFIER), manifest (appURL, displayImageURL, fullSizeImageURL)
8079
- `ios/fastlane/Matchfile`
81-
- `lib/src/abstracts/facebook_log_in.dart` Facebook appId
8280
- `linux/CMakeLists.txt` APPLICATION_ID
8381
- `macos/Runner/Configs/AppInfo.xcconfig`
8482
- `macos/Runner.xcodeproj/project.pbxproj` PROVISIONING_PROFILE_SPECIFIER x3

android/app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ apply plugin: 'kotlin-android'
2828
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2929

3030
android {
31-
compileSdkVersion 33
31+
compileSdkVersion flutter.compileSdkVersion
3232
namespace "com.daohoangson.flutter_ttdemo"
3333
ndkVersion flutter.ndkVersion
3434

@@ -47,8 +47,8 @@ android {
4747

4848
defaultConfig {
4949
applicationId "com.daohoangson.flutter_ttdemo"
50-
minSdkVersion 26
51-
targetSdkVersion 33
50+
minSdkVersion 21 // for multidex support
51+
targetSdkVersion flutter.targetSdkVersion
5252
versionCode flutterVersionCode.toInteger()
5353
versionName flutterVersionName
5454
}

android/app/src/main/AndroidManifest.xml

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@
33

44
<uses-permission android:name="android.permission.INTERNET" />
55

6-
<!-- flutter_facebook_auth -->
7-
<uses-permission
8-
android:name="com.google.android.gms.permission.AD_ID"
9-
tools:node="remove" />
10-
<queries>
11-
<provider android:authorities="com.facebook.katana.provider.PlatformProvider" />
12-
</queries>
13-
146
<application
157
android:name="${applicationName}"
168
android:allowBackup="true"
@@ -58,39 +50,6 @@
5850
</intent-filter>
5951
</activity>
6052

61-
<meta-data
62-
android:name="com.facebook.sdk.AdvertiserIDCollectionEnabled"
63-
android:value="false" />
64-
<meta-data
65-
android:name="com.facebook.sdk.ApplicationId"
66-
android:value="@string/facebook_app_id" />
67-
<meta-data
68-
android:name="com.facebook.sdk.ApplicationName"
69-
android:value="@string/facebook_app_name" />
70-
<meta-data
71-
android:name="com.facebook.sdk.AutoLogAppEventsEnabled"
72-
android:value="false" />
73-
<meta-data
74-
android:name="com.facebook.sdk.ClientToken"
75-
android:value="@string/facebook_client_token" />
76-
77-
<activity
78-
android:name="com.facebook.FacebookActivity"
79-
android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
80-
android:label="@string/app_name" />
81-
<activity
82-
android:name="com.facebook.CustomTabActivity"
83-
android:exported="true">
84-
<intent-filter>
85-
<action android:name="android.intent.action.VIEW" />
86-
87-
<category android:name="android.intent.category.DEFAULT" />
88-
<category android:name="android.intent.category.BROWSABLE" />
89-
90-
<data android:scheme="@string/fb_login_protocol_scheme" />
91-
</intent-filter>
92-
</activity>
93-
9453
<service
9554
android:name=".FcmService"
9655
android:exported="false">
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
33
<string name="app_name">ttdemo</string>
4-
<string name="facebook_app_id">566879507102666</string>
5-
<string name="facebook_app_name">com.daohoangson.flutter_ttdemo</string>
6-
<string name="facebook_client_token">bee1edd35d32695d76209b09c46c60dc</string>
7-
<string name="fb_login_protocol_scheme">fb566879507102666</string>
84
</resources>

ios/Podfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
platform :ios, '12.0'
1+
# Uncomment this line to define a global platform for your project
2+
# platform :ios, '11.0'
23

34
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
45
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

ios/Podfile.lock

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,6 @@ PODS:
77
- AppAuth/Core
88
- audio_session (0.0.1):
99
- Flutter
10-
- FBAEMKit (16.1.3):
11-
- FBSDKCoreKit_Basics (= 16.1.3)
12-
- FBSDKCoreKit (16.1.3):
13-
- FBAEMKit (= 16.1.3)
14-
- FBSDKCoreKit_Basics (= 16.1.3)
15-
- FBSDKCoreKit_Basics (16.1.3)
16-
- FBSDKLoginKit (16.1.3):
17-
- FBSDKCoreKit (= 16.1.3)
1810
- Firebase/CoreOnly (10.12.0):
1911
- FirebaseCore (= 10.12.0)
2012
- Firebase/Crashlytics (10.12.0):
@@ -73,9 +65,6 @@ PODS:
7365
- nanopb (< 2.30910.0, >= 2.30908.0)
7466
- PromisesSwift (~> 2.1)
7567
- Flutter (1.0.0)
76-
- flutter_facebook_auth (6.0.1):
77-
- FBSDKLoginKit (~> 16.1.3)
78-
- Flutter
7968
- flutter_secure_storage (6.0.0):
8069
- Flutter
8170
- FMDB (2.7.5):
@@ -155,7 +144,6 @@ DEPENDENCIES:
155144
- firebase_crashlytics (from `.symlinks/plugins/firebase_crashlytics/ios`)
156145
- firebase_messaging (from `.symlinks/plugins/firebase_messaging/ios`)
157146
- Flutter (from `Flutter`)
158-
- flutter_facebook_auth (from `.symlinks/plugins/flutter_facebook_auth/ios`)
159147
- flutter_secure_storage (from `.symlinks/plugins/flutter_secure_storage/ios`)
160148
- google_sign_in_ios (from `.symlinks/plugins/google_sign_in_ios/ios`)
161149
- image_picker_ios (from `.symlinks/plugins/image_picker_ios/ios`)
@@ -174,10 +162,6 @@ DEPENDENCIES:
174162
SPEC REPOS:
175163
trunk:
176164
- AppAuth
177-
- FBAEMKit
178-
- FBSDKCoreKit
179-
- FBSDKCoreKit_Basics
180-
- FBSDKLoginKit
181165
- Firebase
182166
- FirebaseCore
183167
- FirebaseCoreExtension
@@ -207,8 +191,6 @@ EXTERNAL SOURCES:
207191
:path: ".symlinks/plugins/firebase_messaging/ios"
208192
Flutter:
209193
:path: Flutter
210-
flutter_facebook_auth:
211-
:path: ".symlinks/plugins/flutter_facebook_auth/ios"
212194
flutter_secure_storage:
213195
:path: ".symlinks/plugins/flutter_secure_storage/ios"
214196
google_sign_in_ios:
@@ -241,10 +223,6 @@ EXTERNAL SOURCES:
241223
SPEC CHECKSUMS:
242224
AppAuth: 3bb1d1cd9340bd09f5ed189fb00b1cc28e1e8570
243225
audio_session: 4f3e461722055d21515cf3261b64c973c062f345
244-
FBAEMKit: af2972f39bb0f3f7c45998f435b007833c32ffb2
245-
FBSDKCoreKit: 19e2e18b3be578d7a51fed8fdd8c152bef0b9511
246-
FBSDKCoreKit_Basics: dd9826ce3c9fd9f8cdf8dbbd0ef0a53e6c0c9e7e
247-
FBSDKLoginKit: c395c63a1a6cf4a8a1e6103fd94b8c46329ee81c
248226
Firebase: 07150e75d142fb9399f6777fa56a187b17f833a0
249227
firebase_core: e477125798fc37cd4ab43ca6a8536bf7e0929c00
250228
firebase_crashlytics: 6043ce85800f96e53f15ee5051f9cfad10cce73d
@@ -257,7 +235,6 @@ SPEC CHECKSUMS:
257235
FirebaseMessaging: bb2c4f6422a753038fe137d90ae7c1af57251316
258236
FirebaseSessions: 991fb4c20b3505eef125f7cbfa20a5b5b189c2a4
259237
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
260-
flutter_facebook_auth: 47c7a8594f2d6864618e30b5a6d59dff0d2e59fe
261238
flutter_secure_storage: 23fc622d89d073675f2eaa109381aefbcf5a49be
262239
FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
263240
google_sign_in_ios: 1256ff9d941db546373826966720b0c24804bcdd
@@ -282,6 +259,6 @@ SPEC CHECKSUMS:
282259
wakelock_plus: 8b09852c8876491e4b6d179e17dfe2a0b5f60d47
283260
webview_flutter_wkwebview: 2e2d318f21a5e036e2c3f26171342e95908bd60a
284261

285-
PODFILE CHECKSUM: 23c5db403a9f2d103e08afd68b26a1601b49de37
262+
PODFILE CHECKSUM: 70d9d25280d0dd177a5f637cdb0f0b0b12c6a189
286263

287264
COCOAPODS: 1.12.1

ios/Runner/Info.plist

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,29 +33,13 @@
3333
<key>CFBundleURLSchemes</key>
3434
<array>
3535
<string>com.googleusercontent.apps.638176411768-lnb5323ls4qc86ubi4aq758it9aerh4b</string>
36-
<string>fb566879507102666</string>
3736
</array>
3837
</dict>
3938
</array>
4039
<key>CFBundleVersion</key>
4140
<string>$(FLUTTER_BUILD_NUMBER)</string>
42-
<key>FacebookAppID</key>
43-
<string>566879507102666</string>
44-
<key>FacebookAutoLogAppEventsEnabled</key>
45-
<false/>
46-
<key>FacebookClientToken</key>
47-
<string>bee1edd35d32695d76209b09c46c60dc</string>
48-
<key>FacebookDisplayName</key>
49-
<string>com.daohoangson.flutter_ttdemo</string>
50-
<key>FlutterDeepLinkingEnabled</key>
51-
<true/>
5241
<key>ITSAppUsesNonExemptEncryption</key>
5342
<false/>
54-
<key>LSApplicationQueriesSchemes</key>
55-
<array>
56-
<string>fbapi</string>
57-
<string>fb-messenger-share-api</string>
58-
</array>
5943
<key>LSRequiresIPhoneOS</key>
6044
<true/>
6145
<key>NSAppTransportSecurity</key>

lib/config.encrypted.dart

-47 Bytes
Binary file not shown.

lib/l10n/intl_en.arb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,6 @@
182182
"type": "text",
183183
"placeholders": {}
184184
},
185-
"loginWithFacebook": "Sign in with Facebook",
186-
"@loginWithFacebook": {
187-
"type": "text",
188-
"placeholders": {}
189-
},
190185
"loginWithGoogle": "Sign in with Google",
191186
"@loginWithGoogle": {
192187
"type": "text",

lib/l10n/intl_messages.arb

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"@@last_modified": "2023-08-13T08:41:53.802790",
2+
"@@last_modified": "2023-08-13T17:16:55.316783",
33
"appTitle": "tinhte.vn Demo",
44
"@appTitle": {
55
"type": "text",
@@ -225,12 +225,6 @@
225225
"placeholders_order": [],
226226
"placeholders": {}
227227
},
228-
"loginWithFacebook": "Sign in with Facebook",
229-
"@loginWithFacebook": {
230-
"type": "text",
231-
"placeholders_order": [],
232-
"placeholders": {}
233-
},
234228
"loginWithGoogle": "Sign in with Google",
235229
"@loginWithGoogle": {
236230
"type": "text",

0 commit comments

Comments
 (0)