diff --git a/.circleci/config.yml b/.circleci/config.yml index 5500296e93fc8..466469ace963c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -358,10 +358,12 @@ workflows: - expotools - client_android - client_ios - - test_suite_publish - - android_test_suite: - requires: - - test_suite_publish + # Disabled until further notice + # See https://exponent-internal.slack.com/archives/C1QNF5L3C/p1576852692010900 + # - test_suite_publish + # - android_test_suite: + # requires: + # - test_suite_publish - client_android_approve_google_play: type: approval requires: @@ -718,29 +720,31 @@ jobs: echo "You can deploy this by updating or creating a new file in https://github.com/expo/turtle/tree/master/shellTarballs/android" echo "Then follow the deployment instructions: https://github.com/expo/turtle-deploy" - android_test_suite: - executor: android - steps: - - setup - - guard_sdk_tests - - update_submodules - - yarn_install: - working_directory: ~/expo # need jsc-android dependency in expokit-npm-package - - yarn_install: - working_directory: ~/expo/tools-public - - restore_gradle_cache - - run: - name: Build APK, upload to Device Farm, follow device logs - command: | - nix-shell android/shell.nix --pure \ - --keep AWS_ACCESS_KEY_ID \ - --keep AWS_SECRET_ACCESS_KEY \ - --keep SSL_CERT_FILE \ - --keep FASTLANE_SKIP_UPDATE_CHECK \ - --keep FASTLANE_DISABLE_COLORS \ - --keep CI \ - --run "fastlane android devicefarm" - - save_gradle_cache +# Disabled until further notice +# See https://exponent-internal.slack.com/archives/C1QNF5L3C/p1576852692010900 +# android_test_suite: +# executor: android +# steps: +# - setup +# - guard_sdk_tests +# - update_submodules +# - yarn_install: +# working_directory: ~/expo # need jsc-android dependency in expokit-npm-package +# - yarn_install: +# working_directory: ~/expo/tools-public +# - restore_gradle_cache +# - run: +# name: Build APK, upload to Device Farm, follow device logs +# command: | +# nix-shell android/shell.nix --pure \ +# --keep AWS_ACCESS_KEY_ID \ +# --keep AWS_SECRET_ACCESS_KEY \ +# --keep SSL_CERT_FILE \ +# --keep FASTLANE_SKIP_UPDATE_CHECK \ +# --keep FASTLANE_DISABLE_COLORS \ +# --keep CI \ +# --run "fastlane android devicefarm" +# - save_gradle_cache client_android: executor: android @@ -818,6 +822,10 @@ jobs: - update_submodules - yarn_install: working_directory: docs + - run: + name: Run Danger + working_directory: docs + command: yarn danger ci - yarn: command: export working_directory: docs @@ -850,17 +858,19 @@ jobs: command: ./deploy.sh working_directory: docs - test_suite_publish: - executor: nix - steps: - - setup - - conditionally_halt: - # Exclude .git/, node_modules,THIRD-PARTY-LICENSES, LICENSE, docs/, guides/, template-files/, templates/, native-component-list/, bare-expo/, and every `.md` file - exclude: '^(.*)(\/(.git\/|LICENSE|THIRD-PARTY-LICENSES|node_modules|docs|guides|scripts|template-files|templates|native-component-list|bare-expo).*|\.md$)' - search_depth: 1 - - update_submodules - - decrypt_secrets_if_possible - - run: - name: Publish - working_directory: ~/expo/apps/test-suite - command: ./publish.sh +# Disabled until further notice +# See https://exponent-internal.slack.com/archives/C1QNF5L3C/p1576852692010900 +# test_suite_publish: +# executor: nix +# steps: +# - setup +# - conditionally_halt: +# # Exclude .git/, node_modules,THIRD-PARTY-LICENSES, LICENSE, docs/, guides/, template-files/, templates/, native-component-list/, bare-expo/, and every `.md` file +# exclude: '^(.*)(\/(.git\/|LICENSE|THIRD-PARTY-LICENSES|node_modules|docs|guides|scripts|template-files|templates|native-component-list|bare-expo).*|\.md$)' +# search_depth: 1 +# - update_submodules +# - decrypt_secrets_if_possible +# - run: +# name: Publish +# working_directory: ~/expo/apps/test-suite +# command: ./publish.sh diff --git a/.github/stale.yml b/.github/stale.yml index 53f654fbcb648..f5b7a35ae4faf 100644 --- a/.github/stale.yml +++ b/.github/stale.yml @@ -9,20 +9,11 @@ daysUntilClose: 30 # Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled) onlyLabels: - - status:needs more info + - 'status: needs more info' # Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable exemptLabels: [] -# Set to true to ignore issues in a project (defaults to false) -exemptProjects: false - -# Set to true to ignore issues in a milestone (defaults to false) -exemptMilestones: false - -# Set to true to ignore issues with an assignee (defaults to false) -exemptAssignees: false - # Label to use when marking as stale staleLabel: stale @@ -32,30 +23,11 @@ markComment: > can properly address it, we will be closing it in one month. If you've found a fix, please share it! Otherwise, please provide the info we asked for, especially a reproducible example. Thanks! -# Comment to post when removing the stale label. -# unmarkComment: > -# Your comment here. - # Comment to post when closing a stale Issue or Pull Request. - closeComment: > +closeComment: > This issue has been automatically closed since there has not been any recent activity after it was marked as stale. Please open a new issue for any related bugs. -# Limit the number of actions per hour, from 1-30. Default is 30 -limitPerRun: 30 - # Limit to only `issues` or `pulls` - only: issues - -# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls': -# pulls: -# daysUntilStale: 30 -# markComment: > -# This pull request has been automatically marked as stale because it has not had -# recent activity. It will be closed if no further activity occurs. Thank you -# for your contributions. - -# issues: -# exemptLabels: -# - confirmed +only: issues diff --git a/.gitignore b/.gitignore index f5ada1eab332e..9cb7ea721d294 100644 --- a/.gitignore +++ b/.gitignore @@ -74,6 +74,7 @@ jarjar-rules.txt /android/expoview/src/main/java/host/exp/exponent/generated/ExponentKeys.java /android/app/fabric.properties /apps/bare-expo/android/app/google-services.json +/apps/bare-expo/ios/BareExpo/GoogleService-Info.plist /ios/Exponent/Generated/EXKeys.h /ios/ExponentIntegrationTests/EXTestEnvironment.plist /exponent-view-template/ios/Podfile diff --git a/CHANGELOG.md b/CHANGELOG.md index bb189d217fab2..16fb8001c4c18 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ This is the log of notable changes to the Expo client that are developer-facing. ### 🛠 Breaking changes +- `expo-constants` `Constants.deviceName` now only returns the possible Browser name and doesn't fallback to engine or OS name. ([#6809](https://github.com/expo/expo/pull/6809) [@evanbacon](https://github.com/evanbacon)) +- `expo-constants` `Constants.platform.web` now only returns the `ua` (user agent string). ([#6809](https://github.com/expo/expo/pull/6809) [@evanbacon](https://github.com/evanbacon)) - Enriched `androidStatusBar` configuration in `app.json`. ([#6506](https://github.com/expo/expo/pull/6506) [@bbarthec](https://github.com/bbarthec)) ### 🎉 New features @@ -23,6 +25,7 @@ This is the log of notable changes to the Expo client that are developer-facing. - Fixed fullscreen events on iOS for native controls. ([#6504](https://github.com/expo/expo/pull/6504) by [@mczernek](https://github.com/mczernek)) - Fixed `Camera.takePictureAsync()` not saving metadata on iOS. ([#6428](https://github.com/expo/expo/pull/6428) by [@lukmccall](https://github.com/lukmccall)) - Fixed `KeyboardAvoidingView` in standalone Android builds. ([#6506](https://github.com/expo/expo/pull/6506) [@bbarthec](https://github.com/bbarthec)) +- Fixed `FileSystem.downloadAsync()` throwing `NullPointerException` in rare failures on Android. ([#6819](https://github.com/expo/expo/pull/6819) by [@jsamr](https://github.com/jsamr/)) ## 36.0.0 @@ -46,7 +49,8 @@ This is the log of notable changes to the Expo client that are developer-facing. - **`jest-expo`**: Removed `mockPlatformIOS()`, `mockPlatformAndroid()`, `mockPlatformWeb()`, `describeCrossPlatform()` in favor of platform specific presets like `jest-expo/universal`. ([#5645](https://github.com/expo/expo/pull/5645) by [@EvanBacon](https://github.com/EvanBacon)) - **`expo`**: Removed Branch export from `expo/Branch`. ([#6190](https://github.com/expo/expo/pull/6190) by [@sjchmiela](https://github.com/sjchmiela)) - **`expo`**: Removed `ErrorRecovery` from the `expo` package and extracted into `expo-error-recovery` unimodule. ([#5357](https://github.com/expo/expo/pull/5357) by [@lukmccall](https://github.com/lukmccall)) -- **`expo`**: Updated `Linking.parse` to better handle non-expo URLs. ([#5179](https://github.com/expo/expo/pull/5179) by [@koenpunt](https://github.com/koenpunt)) +- **`expo`**: Updated `Linking.parse` to better handle non-expo URLs. URLs like `myapp://hello/world` are now parsed so that `hello` is the hostname and `world` is the path, according to the URI specification; [more info here](https://github.com/expo/expo/issues/6497#issuecomment-574882448). ([#5179](https://github.com/expo/expo/pull/5179) by [@koenpunt](https://github.com/koenpunt)) +- **`expo`**: Updated `Linking.makeUrl` to create URLs that follow the [URI specification](https://tools.ietf.org/html/rfc3986#section-3). Making a hostless URL will result in the format `myapp:///path/into/app` ([#6781](https://github.com/expo/expo/pull/6781) by [@cruzach](https://github.com/cruzach)) - **`expo-analytics-segment`**: Fixed `enabled` behavior inverted on iOS. ([#6242](https://github.com/expo/expo/pull/6242) by [@sjchmiela](https://github.com/sjchmiela)) - **`expo-facebook`**: Disabled autoinitialization of the Facebook SDK and added an `initializeAsync` method and `autoinit` app.json setting. ([#5924] by [@sjchmiela](https://github.com/sjchmiela)) - **`expo-keep-awake`**: Removed deprecated methods and components. ([#6006](https://github.com/expo/expo/pull/6006) by [@EvanBacon](https://github.com/EvanBacon)) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e5b75f84e799b..b8e60e9ac3378 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,7 +1,7 @@ # Contributing to the Expo SDK - [📦 Download and Setup](#-download-and-setup) -- [✍️ Editing SDK Packages](#-editing-sdk-packages) +- [✍️ Editing SDK Packages](#%EF%B8%8F-editing-sdk-packages) - [Style](#style) - [Extra Credit](#extra-credit) - [⏱ Testing Your Changes](#-testing-your-changes) @@ -24,7 +24,7 @@ Manual smoke tests are included in `apps/native-component-list`, this is a good > 💡 How does `bare-expo` relate to `test-suite`? > -> `bare-expo` is a bare workflow app that links all of the Expo SDK dependencies in the `packages/` directory in order to be able to run projects in the `apps/` directory in the bare workflow rather than the Expo client. It currently only runs `test-suite`. `test-suite` is is a regular managed workflow Expo app with some custom code to turn it into a test runner. If you run `expo start` in the `test-suite` directory you can load the project in Expo client. `bare-expo` imports the `test-suite` app root component and uses it as its own root component. +> `bare-expo` is a bare workflow app that links all of the Expo SDK dependencies in the `packages/` directory in order to be able to run projects in the `apps/` directory in the bare workflow rather than the Expo client. It currently only runs `test-suite`. `test-suite` is a regular managed workflow Expo app with some custom code to turn it into a test runner. If you run `expo start` in the `test-suite` directory you can load the project in Expo client. `bare-expo` imports the `test-suite` app root component and uses it as its own root component. ## 📦 Download and Setup diff --git a/android/app/build.gradle b/android/app/build.gradle index 6130ab25746b1..1f8cfa6c9d55d 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -236,6 +236,7 @@ dependencies { 'expo-module-template', 'expo-bluetooth', 'expo-in-app-purchases', + 'expo-notifications', 'expo-payments-stripe', 'expo-updates' ] diff --git a/android/expoview/build.gradle b/android/expoview/build.gradle index 9554238f1393e..77065fec77ffb 100644 --- a/android/expoview/build.gradle +++ b/android/expoview/build.gradle @@ -170,6 +170,7 @@ dependencies { exclude : [ 'expo-module-template', 'expo-bluetooth', + 'expo-notifications', 'expo-in-app-purchases', 'expo-updates', ] diff --git a/android/expoview/src/main/java/host/exp/exponent/experience/ExperienceActivity.java b/android/expoview/src/main/java/host/exp/exponent/experience/ExperienceActivity.java index 5766b852c29c6..e78f3d22ca7e4 100644 --- a/android/expoview/src/main/java/host/exp/exponent/experience/ExperienceActivity.java +++ b/android/expoview/src/main/java/host/exp/exponent/experience/ExperienceActivity.java @@ -10,8 +10,6 @@ import android.net.Uri; import android.os.Bundle; import android.os.Handler; -import androidx.core.app.NotificationCompat; -import androidx.core.content.ContextCompat; import android.text.TextUtils; import android.view.View; import android.view.animation.AccelerateInterpolator; @@ -36,6 +34,8 @@ import javax.annotation.Nullable; import javax.inject.Inject; +import androidx.core.app.NotificationCompat; +import androidx.core.content.ContextCompat; import de.greenrobot.event.EventBus; import host.exp.exponent.AppLoader; import host.exp.exponent.Constants; @@ -99,6 +99,7 @@ public ExponentPackageDelegate getExponentPackageDelegate() { private boolean mIsShellApp; private String mIntentUri; private boolean mIsReadyForBundle; + private boolean mWillBeReloaded = false; private RemoteViews mNotificationRemoteViews; private Handler mNotificationAnimationHandler; @@ -396,7 +397,7 @@ public void setManifest(String manifestUrl, final JSONObject manifest, final Str Analytics.logEventWithManifestUrlSdkVersion(Analytics.LOAD_EXPERIENCE, mManifestUrl, mSDKVersion); ExperienceActivityUtils.updateOrientation(mManifest, this); - ExperienceActivityUtils.overrideUserInterfaceStyle(mManifest, this); + mWillBeReloaded = ExperienceActivityUtils.overrideUserInterfaceStyle(mManifest, this); addNotification(kernelOptions); ExponentNotification notificationObject = null; @@ -472,7 +473,10 @@ public void setBundle(final String localBundlePath) { // by this point, setManifest should have also been called, so prevent // setLoadingScreenManifest from showing a rogue loading screen mShouldShowLoadingScreenWithOptimisticManifest = false; - if (!isDebugModeEnabled()) { + + // To prevents starting application twice, we start react instance only if we know that the current activity won't be restarted. + // Restart of the activity could be triggered by dark mode change. + if (!isDebugModeEnabled() && !mWillBeReloaded) { final boolean finalIsReadyForBundle = mIsReadyForBundle; AsyncCondition.wait(READY_FOR_BUNDLE, new AsyncCondition.AsyncConditionListener() { @Override diff --git a/android/expoview/src/main/java/host/exp/exponent/headless/HeadlessAppLoader.java b/android/expoview/src/main/java/host/exp/exponent/headless/HeadlessAppLoader.java index a4b15c41209d9..7c08ad5eb2af6 100644 --- a/android/expoview/src/main/java/host/exp/exponent/headless/HeadlessAppLoader.java +++ b/android/expoview/src/main/java/host/exp/exponent/headless/HeadlessAppLoader.java @@ -317,9 +317,12 @@ private RNObject startReactInstance(final Exponent.StartReactInstanceDelegate de } RNObject reactInstanceManager = builder.callRecursive("build"); - RNObject devSettings = reactInstanceManager.callRecursive("getDevSupportManager").callRecursive("getDevSettings"); - if (devSettings != null) { - devSettings.setField("exponentActivityId", mActivityId); + RNObject devSupportManager = mReactInstanceManager.callRecursive("getDevSupportManager"); + if (devSupportManager != null) { + RNObject devSettings = devSupportManager.callRecursive("getDevSettings"); + if (devSettings != null) { + devSettings.setField("exponentActivityId", mActivityId); + } } reactInstanceManager.call("createReactContextInBackground"); diff --git a/android/expoview/src/main/java/host/exp/exponent/utils/ExperienceActivityUtils.java b/android/expoview/src/main/java/host/exp/exponent/utils/ExperienceActivityUtils.java index 2b7d72cb9a7d8..0bb6731e53d9e 100644 --- a/android/expoview/src/main/java/host/exp/exponent/utils/ExperienceActivityUtils.java +++ b/android/expoview/src/main/java/host/exp/exponent/utils/ExperienceActivityUtils.java @@ -5,6 +5,7 @@ import android.app.Activity; import android.app.ActivityManager; import android.content.pm.ActivityInfo; +import android.content.res.Configuration; import android.graphics.Bitmap; import android.graphics.Color; import android.os.Build; @@ -21,6 +22,7 @@ import host.exp.exponent.ExponentManifest; import host.exp.exponent.analytics.EXL; +import host.exp.expoview.R; import org.json.JSONException; import org.json.JSONObject; @@ -56,10 +58,22 @@ public static void updateOrientation(JSONObject manifest, Activity activity) { // region user interface style - light/dark/automatic mode - public static void overrideUserInterfaceStyle(JSONObject manifest, AppCompatActivity activity) { + /** + * Returns true if activity will be reloaded after night mode change. + * Otherwise returns false. + **/ + public static boolean overrideUserInterfaceStyle(JSONObject manifest, AppCompatActivity activity) { String userInterfaceStyle = readUserInterfaceStyleFromManifest(manifest); int mode = nightModeFromString(userInterfaceStyle); + boolean isNightModeCurrentlyOn = activity.getResources().getBoolean(R.bool.dark_mode); + boolean willBeReloaded = false; + if (mode != AppCompatDelegate.MODE_NIGHT_AUTO) { + willBeReloaded = isNightModeCurrentlyOn && mode == AppCompatDelegate.MODE_NIGHT_NO + || !isNightModeCurrentlyOn && mode == AppCompatDelegate.MODE_NIGHT_YES; + } + activity.getDelegate().setLocalNightMode(mode); + return willBeReloaded; } private static int nightModeFromString(@Nullable String userInterfaceStyle) { diff --git a/android/expoview/src/main/java/host/exp/exponent/utils/ScopedPermissionsRequester.java b/android/expoview/src/main/java/host/exp/exponent/utils/ScopedPermissionsRequester.java index a24af3ebd3edf..7df1e85f8e044 100644 --- a/android/expoview/src/main/java/host/exp/exponent/utils/ScopedPermissionsRequester.java +++ b/android/expoview/src/main/java/host/exp/exponent/utils/ScopedPermissionsRequester.java @@ -9,6 +9,7 @@ import com.facebook.react.modules.core.PermissionListener; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -68,9 +69,15 @@ public void requestPermissions(ReactNativeActivity currentActivity, final String if (!mPermissionsToRequestPerExperience.isEmpty()) { requestExperienceAndGlobalPermissions(mPermissionsToRequestPerExperience.get(mPermissionsAskedCount - 1)); - } else if (!mPermissionsToRequestGlobally.isEmpty() && Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { - currentActivity.requestPermissions(mPermissionsToRequestGlobally.toArray(new String[0]), + } else if (!mPermissionsToRequestGlobally.isEmpty()) { + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { + currentActivity.requestPermissions(mPermissionsToRequestGlobally.toArray(new String[0]), EXPONENT_PERMISSIONS_REQUEST); + } else { + int[] result = new int[mPermissionsToRequestGlobally.size()]; + Arrays.fill(result, PackageManager.PERMISSION_DENIED); + onRequestPermissionsResult(mPermissionsToRequestGlobally.toArray(new String[0]), result); + } } } diff --git a/android/expoview/src/main/java/versioned/host/exp/exponent/ExperiencePackagePicker.java b/android/expoview/src/main/java/versioned/host/exp/exponent/ExperiencePackagePicker.java index 1f1ad5620e52c..1234c30a9c3a1 100644 --- a/android/expoview/src/main/java/versioned/host/exp/exponent/ExperiencePackagePicker.java +++ b/android/expoview/src/main/java/versioned/host/exp/exponent/ExperiencePackagePicker.java @@ -22,6 +22,8 @@ import expo.modules.camera.CameraPackage; import expo.modules.cellular.CellularPackage; import expo.modules.errorrecovery.ErrorRecoveryPackage; +import expo.modules.screenorientation.ScreenOrientationPackage; +import expo.modules.imageloader.ImageLoaderPackage; import expo.modules.sharing.SharingPackage; import expo.modules.constants.ConstantsPackage; import expo.modules.contacts.ContactsPackage; @@ -87,6 +89,7 @@ public class ExperiencePackagePicker { new GLPackage(), new GoogleSignInPackage(), new HapticsPackage(), + new ImageLoaderPackage(), new ImageManipulatorPackage(), new ImagePickerPackage(), new IntentLauncherPackage(), @@ -103,6 +106,7 @@ public class ExperiencePackagePicker { new RandomPackage(), new SMSPackage(), new SQLitePackage(), + new ScreenOrientationPackage(), new SecureStorePackage(), new SegmentPackage(), new SensorsPackage(), diff --git a/android/expoview/src/main/java/versioned/host/exp/exponent/ExponentPackage.java b/android/expoview/src/main/java/versioned/host/exp/exponent/ExponentPackage.java index 5448a1f55f5c2..fffc4da87be63 100644 --- a/android/expoview/src/main/java/versioned/host/exp/exponent/ExponentPackage.java +++ b/android/expoview/src/main/java/versioned/host/exp/exponent/ExponentPackage.java @@ -191,6 +191,9 @@ public List createNativeModules(ReactApplicationContext reactConte SvgPackage svgPackage = new SvgPackage(); nativeModules.addAll(svgPackage.createNativeModules(reactContext)); + MapsPackage mapsPackage = new MapsPackage(); + nativeModules.addAll(mapsPackage.createNativeModules(reactContext)); + RNDateTimePickerPackage dateTimePickerPackage = new RNDateTimePickerPackage(); nativeModules.addAll(dateTimePickerPackage.createNativeModules(reactContext)); diff --git a/android/expoview/src/main/java/versioned/host/exp/exponent/modules/universal/ExpoModuleRegistryAdapter.java b/android/expoview/src/main/java/versioned/host/exp/exponent/modules/universal/ExpoModuleRegistryAdapter.java index c81aca5581626..e08ddcd435ed5 100644 --- a/android/expoview/src/main/java/versioned/host/exp/exponent/modules/universal/ExpoModuleRegistryAdapter.java +++ b/android/expoview/src/main/java/versioned/host/exp/exponent/modules/universal/ExpoModuleRegistryAdapter.java @@ -5,18 +5,14 @@ import org.json.JSONObject; import org.unimodules.adapters.react.ModuleRegistryAdapter; -import org.unimodules.adapters.react.ModuleRegistryReadyNotifier; -import org.unimodules.adapters.react.NativeModulesProxy; import org.unimodules.adapters.react.ReactModuleRegistryProvider; import org.unimodules.core.ModuleRegistry; import org.unimodules.core.interfaces.InternalModule; import org.unimodules.core.interfaces.RegistryLifecycleListener; -import java.util.ArrayList; import java.util.List; import java.util.Map; -import host.exp.exponent.ExponentManifest; import host.exp.exponent.kernel.ExperienceId; import host.exp.exponent.utils.ScopedContext; import versioned.host.exp.exponent.modules.universal.av.SharedCookiesDataSourceFactoryProvider; @@ -58,6 +54,9 @@ public List createNativeModules(ScopedContext scopedContext, Exper // Overriding expo-error-recovery ErrorRecoveryModule moduleRegistry.registerExportedModule(new ScopedErrorRecoveryModule(scopedContext, manifest, experienceId)); + // Overriding expo-permissions ScopedPermissionsService + moduleRegistry.registerInternalModule(new ScopedPermissionsService(scopedContext)); + // Overriding expo-facebook moduleRegistry.registerExportedModule(new ScopedFacebookModule(scopedContext, manifest)); diff --git a/android/expoview/src/main/java/versioned/host/exp/exponent/modules/universal/ScopedPermissionsService.kt b/android/expoview/src/main/java/versioned/host/exp/exponent/modules/universal/ScopedPermissionsService.kt new file mode 100644 index 0000000000000..5515c24a80a10 --- /dev/null +++ b/android/expoview/src/main/java/versioned/host/exp/exponent/modules/universal/ScopedPermissionsService.kt @@ -0,0 +1,13 @@ +package versioned.host.exp.exponent.modules.universal + +import android.content.Context +import expo.modules.permissions.PermissionsService +import org.unimodules.interfaces.permissions.PermissionsResponseListener + +class ScopedPermissionsService(context: Context) : PermissionsService(context) { + // We override this to inject scoped permissions even if the device doesn't support the runtime permissions. + override fun askForManifestPermissions(permissions: Array, listener: PermissionsResponseListener) { + delegateRequestToActivity(permissions, listener) + } + +} diff --git a/android/expoview/src/main/res/values-night/dark_mode.xml b/android/expoview/src/main/res/values-night/dark_mode.xml new file mode 100644 index 0000000000000..08731cffc38a5 --- /dev/null +++ b/android/expoview/src/main/res/values-night/dark_mode.xml @@ -0,0 +1,3 @@ + + true + diff --git a/android/expoview/src/main/res/values/dark_mode.xml b/android/expoview/src/main/res/values/dark_mode.xml new file mode 100644 index 0000000000000..e21b2c432624f --- /dev/null +++ b/android/expoview/src/main/res/values/dark_mode.xml @@ -0,0 +1,3 @@ + + false + diff --git a/android/settings.gradle b/android/settings.gradle index 903c9bf055402..ae0f05182b45a 100644 --- a/android/settings.gradle +++ b/android/settings.gradle @@ -33,6 +33,7 @@ includeUnimodulesProjects( // FLAG_BEGIN_REMOVE__UPDATE_EXPOKIT - used during `et android-build-packages` // section below previous line comment flag contains modules that need to be built for `expokit-npm-package` 'expo-bluetooth', + 'expo-notifications', 'expo-in-app-purchases', 'expo-updates', // FLAG_END_REMOVE__UPDATE_EXPOKIT diff --git a/apps/README.md b/apps/README.md index dec59b6d13804..f77d9d987ecf9 100644 --- a/apps/README.md +++ b/apps/README.md @@ -7,7 +7,6 @@ This directory contains the apps we use for testing Expo. **Do not add new apps - Home (not in this directory): the UI for the development client - Sandbox: a project excluded from Git where you can try out things locally - jest-expo Mock Generator: an app that uses reflection to generate Jest mocks for native modules. Eventually we can remove the need for this once we have a JSON schema for each module definition (Turbomodules) and generate the Jest mock from the JSON schema. -- bare-expo: a project that uses the bare workflow and can load the Test Suite and Native Component List's JS -- standalone-ncl: a standalone app that loads Native Component List. Eventually we should replace this with bare-expo and NCL. +- bare-expo: a project that uses the bare workflow and can load the Test Suite and Native Component List's JS. Ideally, we'd just have one directory with a customized project with Xcode and Android Studio projects. The project would have different build targets and include different native modules. We'd have a build target each for the Expo Client, Test Suite (customized, with support for APIs like payments), and Native Component List (customized). These would be the only apps in the repository. diff --git a/apps/bare-expo/.babelrc b/apps/bare-expo/.babelrc deleted file mode 100644 index 7d30f8bf0669a..0000000000000 --- a/apps/bare-expo/.babelrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "presets": ["babel-preset-expo"] -} diff --git a/apps/bare-expo/App.tsx b/apps/bare-expo/App.tsx index 030f3ba92129e..30bfee550cfc3 100644 --- a/apps/bare-expo/App.tsx +++ b/apps/bare-expo/App.tsx @@ -3,8 +3,6 @@ import React from 'react'; import MainNavigator from './MainNavigator'; import { createProxy, startAsync, addListener } from './relapse/client'; -// import NativeComponentList from '../native-component-list/App'; - export default function Main() { // @ts-ignore if (global.DETOX) { diff --git a/apps/bare-expo/MainNavigator.ts b/apps/bare-expo/MainNavigator.ts deleted file mode 100644 index 2a6e0ea880f50..0000000000000 --- a/apps/bare-expo/MainNavigator.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { createAppContainer, createSwitchNavigator } from 'react-navigation'; -import { createBrowserApp } from '@react-navigation/web'; -import { Platform } from 'react-native'; - -import TestSuite from 'test-suite/AppNavigator'; - -// import NativeComponentList from '../native-component-list/App'; - -const MainNavigator = createSwitchNavigator( - { - TestSuite: { screen: TestSuite, path: 'test-suite' }, - // NativeComponentList: { screen: NativeComponentList, path: 'native-component-list' }, - } -); - -const createApp = Platform.select({ - web: (input) => createBrowserApp(input, { history: 'hash' }), - default: input => createAppContainer(input), -}); - -export default createApp(MainNavigator); diff --git a/apps/bare-expo/MainNavigator.tsx b/apps/bare-expo/MainNavigator.tsx new file mode 100644 index 0000000000000..e5b2f6eddd689 --- /dev/null +++ b/apps/bare-expo/MainNavigator.tsx @@ -0,0 +1,51 @@ +import React from 'react'; +import { createAppContainer } from 'react-navigation'; +import { createBottomTabNavigator } from 'react-navigation-tabs'; +import { MaterialCommunityIcons } from '@expo/vector-icons'; +import { createBrowserApp } from '@react-navigation/web'; +import { Platform } from 'react-native'; + +import TestSuite from 'test-suite/AppNavigator'; +import NativeComponentList from 'native-component-list/src/navigation/MainNavigators'; + +import Colors from './src/constants/Colors'; + +const MainNavigator = createBottomTabNavigator( + { + TestSuite: { + screen: TestSuite, + path: 'test-suite', + navigationOptions: { + tabBarIcon: ({ focused }: { focused: boolean }) => { + const color = focused ? Colors.activeTintColor : Colors.inactiveTintColor; + return ; + }, + }, + }, + ExpoApis: NativeComponentList.ExpoApis, + ExpoComponents: NativeComponentList.ExpoComponents, + }, + { + initialRouteName: 'TestSuite', + tabBarOptions: { + labelStyle: { + fontSize: 12, + }, + activeTintColor: Colors.activeTintColor, + inactiveTintColor: Colors.inactiveTintColor, + safeAreaInset: { + top: 5, + right: 'always', + bottom: 'always', + left: 'always', + }, + }, + } +); + +const createApp = Platform.select({ + web: input => createBrowserApp(input, { history: 'hash' }), + default: input => createAppContainer(input), +}); + +export default createApp(MainNavigator); diff --git a/apps/bare-expo/android/app/src/main/AndroidManifest.xml b/apps/bare-expo/android/app/src/main/AndroidManifest.xml index fa675a5ef97f5..a408056eadcbc 100644 --- a/apps/bare-expo/android/app/src/main/AndroidManifest.xml +++ b/apps/bare-expo/android/app/src/main/AndroidManifest.xml @@ -33,6 +33,13 @@ android:allowBackup="false" android:theme="@style/AppTheme" android:usesCleartextTraffic="true"> + + + + + asList() + null ); private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { diff --git a/apps/bare-expo/android/app/src/main/java/dev/expo/payments/generated/BasePackageList.java b/apps/bare-expo/android/app/src/main/java/dev/expo/payments/generated/BasePackageList.java index 08d66bc091939..c7c7310254ba0 100644 --- a/apps/bare-expo/android/app/src/main/java/dev/expo/payments/generated/BasePackageList.java +++ b/apps/bare-expo/android/app/src/main/java/dev/expo/payments/generated/BasePackageList.java @@ -24,6 +24,7 @@ public List getPackageList() { new expo.modules.device.DevicePackage(), new expo.modules.documentpicker.DocumentPickerPackage(), new expo.modules.errorrecovery.ErrorRecoveryPackage(), + new expo.modules.facebook.FacebookPackage(), new expo.modules.filesystem.FileSystemPackage(), new expo.modules.font.FontLoaderPackage(), new expo.modules.gl.GLPackage(), @@ -36,12 +37,15 @@ public List getPackageList() { new expo.modules.lineargradient.LinearGradientPackage(), new expo.modules.localauthentication.LocalAuthenticationPackage(), new expo.modules.localization.LocalizationPackage(), + new expo.modules.location.LocationPackage(), new expo.modules.mailcomposer.MailComposerPackage(), new expo.modules.medialibrary.MediaLibraryPackage(), new expo.modules.network.NetworkPackage(), + new expo.modules.notifications.NotificationsPackage(), new expo.modules.permissions.PermissionsPackage(), new expo.modules.print.PrintPackage(), new expo.modules.random.RandomPackage(), + new expo.modules.screenorientation.ScreenOrientationPackage(), new expo.modules.securestore.SecureStorePackage(), new expo.modules.sensors.SensorsPackage(), new expo.modules.sharing.SharingPackage(), diff --git a/apps/bare-expo/android/app/src/main/res/values/strings.xml b/apps/bare-expo/android/app/src/main/res/values/strings.xml index d5ab2213d94db..332f260b34eaa 100644 --- a/apps/bare-expo/android/app/src/main/res/values/strings.xml +++ b/apps/bare-expo/android/app/src/main/res/values/strings.xml @@ -1,3 +1,4 @@ bare-expo + 629712900716487 diff --git a/apps/bare-expo/app.json b/apps/bare-expo/app.json index f0622a85d3a20..639b1fdea8b1b 100644 --- a/apps/bare-expo/app.json +++ b/apps/bare-expo/app.json @@ -3,18 +3,27 @@ "displayName": "bare-expo", "expo": { "name": "BareExpo", - "slug": "expo-template-bare", + "slug": "bare-expo", "privacy": "unlisted", - "sdkVersion": "34.0.0", "version": "1.0.0", "platforms": ["ios", "android", "web"], "web": { "build": { "babel": { "root": "./", - "include": ["test-suite", "bare-expo"] + "include": ["test-suite", "native-component-list", "bare-expo"] } } + }, + "android": { + "package": "dev.expo.payments" + }, + "ios": { + "bundleIdentifier": "dev.expo.Payments" + }, + "notification": { + "serviceWorkerPath": "/expo-service-worker.js", + "vapidPublicKey": "BNHvR05XkY5LH9GdN0GreLx2wZnK9IwNJGVmo3jujIkFni4of26E3U3fnt9nUrZfM7h0omdIHKM0eshkzTSFOWQ" } } } diff --git a/apps/bare-expo/babel.config.js b/apps/bare-expo/babel.config.js index e5d5222489474..4d86a1789c41e 100644 --- a/apps/bare-expo/babel.config.js +++ b/apps/bare-expo/babel.config.js @@ -3,5 +3,16 @@ module.exports = function(api) { return { // [Custom] Needed for decorators presets: ['babel-preset-expo'], + plugins: [ + [ + 'babel-plugin-module-resolver', + { + alias: { + '~expo': 'expo', + expo: './expoResolver', + }, + }, + ], + ], }; }; diff --git a/apps/bare-expo/e2e/TestSuite-test.web.js b/apps/bare-expo/e2e/TestSuite-test.web.js index ee6930e0d67b0..c878970af5574 100644 --- a/apps/bare-expo/e2e/TestSuite-test.web.js +++ b/apps/bare-expo/e2e/TestSuite-test.web.js @@ -1,4 +1,4 @@ -/* global page */ +/* global page, browser */ import { setDefaultOptions } from 'expect-puppeteer'; import config from '../jest-puppeteer.config'; @@ -19,9 +19,12 @@ const TESTS = [ 'Blur', 'LinearGradient', 'KeepAwake', + // Overridding permissions doesn't work in headless mode + // see https://github.com/puppeteer/puppeteer/issues/3279 + !config.launch.headless && 'expo-notifications', // 'Haptics', // 'SecureStore', -]; +].filter(t => t); // This is how long we allocate for the actual tests to be run after the test screen has mounted. const MIN_TIME = 50000; @@ -31,6 +34,11 @@ setDefaultOptions({ timeout: MIN_TIME * 1.5, }); +beforeAll(async () => { + const context = browser.defaultBrowserContext(); + await context.overridePermissions(config.url, ['notifications']); +}); + function matchID(id, ...props) { return expect(page).toMatchElement(`div[data-testid="${id}"]`, ...props); } @@ -43,7 +51,9 @@ describe('test-suite', () => { /// Pause the timeout // await jestPuppeteer.debug(); - await page.goto(`${config.url}/test-suite/select/${testName}`); + await page.goto(`${config.url}/test-suite/select/${testName}`, { + timeout: MIN_TIME, + }); // Ensure the app linked to the testing screen (give it 100ms for navigation mounting) await matchID('test_suite_container', { visible: true, timeout: RENDER_MOUNTING_TIMEOUT }); diff --git a/apps/bare-expo/env.js b/apps/bare-expo/env.js index c86ad872ed348..c43cc43afdad6 100644 --- a/apps/bare-expo/env.js +++ b/apps/bare-expo/env.js @@ -1,7 +1,7 @@ -import { _setShouldThrowAnErrorOutsideOfExpo } from 'expo/build/environment/validatorState'; +import { _setShouldThrowAnErrorOutsideOfExpo } from '~expo/build/environment/validatorState'; // @ts-ignore: Swap this out for an environment variable in the future -import Constants from 'expo-constants'; +import Constants from 'expo-constants'; // eslint-disable-line import/order _setShouldThrowAnErrorOutsideOfExpo(false); -const DETOX = (global.DETOX = !Constants.isDevice); +global.DETOX = !Constants.isDevice; diff --git a/apps/bare-expo/expoResolver.js b/apps/bare-expo/expoResolver.js new file mode 100644 index 0000000000000..16253fedd6078 --- /dev/null +++ b/apps/bare-expo/expoResolver.js @@ -0,0 +1,14 @@ +// Put `expo` package placeholders here so webpack doesn't print a lot of warnings that something can't be imported. +// They can be removed once the module gets extracted into separate package. + +export const AuthSession = {}; + +export const DangerZone = {}; + +export const Linking = {}; + +export const Notifications = { + addListener: () => null, +}; + +export const ScreenOrientation = {}; diff --git a/apps/bare-expo/index.tsx b/apps/bare-expo/index.tsx index 1cdfd9802e102..03e8e2396846f 100644 --- a/apps/bare-expo/index.tsx +++ b/apps/bare-expo/index.tsx @@ -6,6 +6,6 @@ import { name as appName } from './app.json'; AppRegistry.registerComponent(appName, () => App); if (Platform.OS === 'web') { - const rootTag = document.getElementById('root') || document.getElementById('main'); - AppRegistry.runApplication(appName, { rootTag }); + const rootTag = document.getElementById('root') || document.getElementById('main'); + AppRegistry.runApplication(appName, { rootTag }); } diff --git a/apps/bare-expo/ios/BareExpo.xcodeproj/project.pbxproj b/apps/bare-expo/ios/BareExpo.xcodeproj/project.pbxproj index 8c2c4d2876e0f..06c9600d480f8 100644 --- a/apps/bare-expo/ios/BareExpo.xcodeproj/project.pbxproj +++ b/apps/bare-expo/ios/BareExpo.xcodeproj/project.pbxproj @@ -41,6 +41,7 @@ 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = BareExpo/Info.plist; sourceTree = ""; }; 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = BareExpo/main.m; sourceTree = ""; }; 2D16E6891FA4F8E400B85C8A /* libReact.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libReact.a; sourceTree = BUILT_PRODUCTS_DIR; }; + 31B7D64323A904E900CE18C0 /* Bare Expo.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; name = "Bare Expo.entitlements"; path = "BareExpo/Bare Expo.entitlements"; sourceTree = ""; }; 4ADC22B6EC034901305B8CDC /* Pods-BareExpo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BareExpo.debug.xcconfig"; path = "Target Support Files/Pods-BareExpo/Pods-BareExpo.debug.xcconfig"; sourceTree = ""; }; 70419E2A27811C660476A295 /* Pods-BareExpo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BareExpo.release.xcconfig"; path = "Target Support Files/Pods-BareExpo/Pods-BareExpo.release.xcconfig"; sourceTree = ""; }; 7EF74F8A2123893DE8D71406 /* Pods-BareExpoTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BareExpoTests.debug.xcconfig"; path = "Target Support Files/Pods-BareExpoTests/Pods-BareExpoTests.debug.xcconfig"; sourceTree = ""; }; @@ -92,6 +93,7 @@ 13B07FAE1A68108700A75B9A /* BareExpo */ = { isa = PBXGroup; children = ( + 31B7D64323A904E900CE18C0 /* Bare Expo.entitlements */, 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 13B07FB01A68108700A75B9A /* AppDelegate.m */, @@ -328,6 +330,7 @@ "${PODS_ROOT}/Amplitude-iOS/Amplitude/ComodoCaLimitedRsaCertificationAuthority.der", "${PODS_ROOT}/Amplitude-iOS/Amplitude/ComodoRsaCA.der", "${PODS_ROOT}/Amplitude-iOS/Amplitude/ComodoRsaDomainValidationCA.der", + "${PODS_ROOT}/FBSDKCoreKit/FacebookSDKStrings.bundle", "${PODS_ROOT}/GoogleSignIn/Resources/GoogleSignIn.bundle", ); name = "[CP] Copy Pods Resources"; @@ -336,6 +339,7 @@ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ComodoCaLimitedRsaCertificationAuthority.der", "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ComodoRsaCA.der", "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ComodoRsaDomainValidationCA.der", + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FacebookSDKStrings.bundle", "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GoogleSignIn.bundle", ); runOnlyForDeploymentPostprocessing = 0; @@ -453,6 +457,7 @@ baseConfigurationReference = 4ADC22B6EC034901305B8CDC /* Pods-BareExpo.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_ENTITLEMENTS = "BareExpo/Bare Expo.entitlements"; CURRENT_PROJECT_VERSION = 1; DEAD_CODE_STRIPPING = NO; DEVELOPMENT_TEAM = C8D8QTF339; @@ -474,6 +479,7 @@ baseConfigurationReference = 70419E2A27811C660476A295 /* Pods-BareExpo.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_ENTITLEMENTS = "BareExpo/Bare Expo.entitlements"; CURRENT_PROJECT_VERSION = 1; DEAD_CODE_STRIPPING = YES; DEVELOPMENT_TEAM = C8D8QTF339; diff --git a/apps/standalone-ncl/ios/NativeComponentList.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/apps/bare-expo/ios/BareExpo/Bare Expo.entitlements similarity index 76% rename from apps/standalone-ncl/ios/NativeComponentList.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to apps/bare-expo/ios/BareExpo/Bare Expo.entitlements index 18d981003d68d..903def2af5306 100644 --- a/apps/standalone-ncl/ios/NativeComponentList.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ b/apps/bare-expo/ios/BareExpo/Bare Expo.entitlements @@ -2,7 +2,7 @@ - IDEDidComputeMac32BitWarning - + aps-environment + development diff --git a/apps/bare-expo/ios/Build-Phases/cp-bundle-resources-conditionally.sh b/apps/bare-expo/ios/Build-Phases/cp-bundle-resources-conditionally.sh new file mode 100755 index 0000000000000..c47b877371fe8 --- /dev/null +++ b/apps/bare-expo/ios/Build-Phases/cp-bundle-resources-conditionally.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +set -exo pipefail + +SRC_FILE="${PROJECT_DIR}/BareExpo/GoogleService-Info.plist" +DST_FILE="${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app/GoogleService-Info.plist" +if [ -f $SRC_FILE ]; then + if [[ $(grep -L "NO_CLIENT_ID" "$SRC_FILE") ]]; then + cp -r "$SRC_FILE" "$DST_FILE" + fi +fi diff --git a/apps/bare-expo/ios/Build-Phases/generate-dynamic-macros.sh b/apps/bare-expo/ios/Build-Phases/generate-dynamic-macros.sh new file mode 100755 index 0000000000000..57878b72734f7 --- /dev/null +++ b/apps/bare-expo/ios/Build-Phases/generate-dynamic-macros.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +set -exo pipefail + +if [ -z "$EXPO_TOOLS_DIR" ]; then + EXPO_TOOLS_DIR="${SRCROOT}/../../../tools" +fi + +source ${EXPO_TOOLS_DIR}/source-login-scripts.sh +export PATH="${SRCROOT}/../../../bin:$PATH" + +et ios-generate-dynamic-macros --configuration ${CONFIGURATION} diff --git a/apps/bare-expo/ios/Podfile.lock b/apps/bare-expo/ios/Podfile.lock index 0d01c33e419cb..4ae667708c6c9 100644 --- a/apps/bare-expo/ios/Podfile.lock +++ b/apps/bare-expo/ios/Podfile.lock @@ -58,6 +58,11 @@ PODS: - UMFileSystemInterface - EXErrorRecovery (1.0.0): - UMCore + - EXFacebook (8.0.0): + - FBSDKCoreKit (~> 5.8.0) + - FBSDKLoginKit (~> 5.8.0) + - UMConstantsInterface + - UMCore - EXFileSystem (8.0.0): - UMCore - UMFileSystemInterface @@ -94,6 +99,10 @@ PODS: - UMCore - EXLocalization (8.0.0): - UMCore + - EXLocation (8.0.0): + - UMCore + - UMPermissionsInterface + - UMTaskManagerInterface - EXMailComposer (8.0.0): - UMCore - UMFileSystemInterface @@ -102,6 +111,8 @@ PODS: - UMPermissionsInterface - EXNetwork (2.0.0): - UMCore + - EXNotifications (1.0.0): + - UMCore - EXPermissions (8.0.0): - UMCore - UMPermissionsInterface @@ -110,6 +121,9 @@ PODS: - UMFileSystemInterface - EXRandom (8.0.0): - UMCore + - EXScreenOrientation (1.0.0): + - React-Core + - UMCore - EXSecureStore (8.0.0): - UMCore - EXSegment (8.0.0): @@ -144,6 +158,16 @@ PODS: - React-Core (= 0.61.4) - React-jsi (= 0.61.4) - ReactCommon/turbomodule/core (= 0.61.4) + - FBSDKCoreKit (5.8.0): + - FBSDKCoreKit/Basics (= 5.8.0) + - FBSDKCoreKit/Core (= 5.8.0) + - FBSDKCoreKit/Basics (5.8.0) + - FBSDKCoreKit/Core (5.8.0): + - FBSDKCoreKit/Basics + - FBSDKLoginKit (5.8.0): + - FBSDKLoginKit/Login (= 5.8.0) + - FBSDKLoginKit/Login (5.8.0): + - FBSDKCoreKit (~> 5.0) - Folly (2018.10.22.00): - boost-for-react-native - DoubleConversion @@ -329,6 +353,8 @@ PODS: - React-cxxreact (= 0.61.4) - React-jsi (= 0.61.4) - React-jsinspector (0.61.4) + - react-native-appearance (0.3.2): + - React - react-native-safe-area-context (0.6.0): - React - React-RCTActionSheet (0.61.4): @@ -384,6 +410,7 @@ PODS: - UMCore - UMFontInterface - UMSensorsInterface (5.0.0) + - UMTaskManagerInterface (5.0.0) - Yoga (1.14.0) - ZXingObjC/Core (3.6.5) - ZXingObjC/OneD (3.6.5): @@ -411,6 +438,7 @@ DEPENDENCIES: - EXDevice (from `../../../packages/expo-device/ios`) - EXDocumentPicker (from `../../../packages/expo-document-picker/ios`) - EXErrorRecovery (from `../../../packages/expo-error-recovery/ios`) + - EXFacebook (from `../../../packages/expo-facebook/ios`) - EXFileSystem (from `../../../packages/expo-file-system/ios`) - EXFont (from `../../../packages/expo-font/ios`) - EXGL (from `../../../packages/expo-gl/ios`) @@ -423,12 +451,15 @@ DEPENDENCIES: - EXLinearGradient (from `../../../packages/expo-linear-gradient/ios`) - EXLocalAuthentication (from `../../../packages/expo-local-authentication/ios`) - EXLocalization (from `../../../packages/expo-localization/ios`) + - EXLocation (from `../../../packages/expo-location/ios`) - EXMailComposer (from `../../../packages/expo-mail-composer/ios`) - EXMediaLibrary (from `../../../packages/expo-media-library/ios`) - EXNetwork (from `../../../packages/expo-network/ios`) + - EXNotifications (from `../../../packages/expo-notifications/ios`) - EXPermissions (from `../../../packages/expo-permissions/ios`) - EXPrint (from `../../../packages/expo-print/ios`) - EXRandom (from `../../../packages/expo-random/ios`) + - EXScreenOrientation (from `../../../packages/expo-screen-orientation/ios`) - EXSecureStore (from `../../../packages/expo-secure-store/ios`) - EXSegment (from `../../../packages/expo-analytics-segment/ios`) - EXSensors (from `../../../packages/expo-sensors/ios`) @@ -454,6 +485,7 @@ DEPENDENCIES: - React-jsi (from `../../../react-native-lab/react-native/ReactCommon/jsi`) - React-jsiexecutor (from `../../../react-native-lab/react-native/ReactCommon/jsiexecutor`) - React-jsinspector (from `../../../react-native-lab/react-native/ReactCommon/jsinspector`) + - react-native-appearance (from `../node_modules/react-native-appearance`) - react-native-safe-area-context (from `../../../node_modules/react-native-safe-area-context`) - React-RCTActionSheet (from `../../../react-native-lab/react-native/Libraries/ActionSheetIOS`) - React-RCTAnimation (from `../../../react-native-lab/react-native/Libraries/NativeAnimation`) @@ -478,6 +510,7 @@ DEPENDENCIES: - UMPermissionsInterface (from `../../../packages/unimodules-permissions-interface/ios`) - "UMReactNativeAdapter (from `../../../packages/@unimodules/react-native-adapter/ios`)" - UMSensorsInterface (from `../../../packages/unimodules-sensors-interface/ios`) + - UMTaskManagerInterface (from `../../../packages/unimodules-task-manager-interface/ios`) - Yoga (from `../../../react-native-lab/react-native/ReactCommon/yoga`) SPEC REPOS: @@ -486,6 +519,8 @@ SPEC REPOS: - Analytics - AppAuth - boost-for-react-native + - FBSDKCoreKit + - FBSDKLoginKit - GoogleSignIn - GTMAppAuth - GTMSessionFetcher @@ -548,6 +583,9 @@ EXTERNAL SOURCES: EXErrorRecovery: :path: !ruby/object:Pathname path: "../../../packages/expo-error-recovery/ios" + EXFacebook: + :path: !ruby/object:Pathname + path: "../../../packages/expo-facebook/ios" EXFileSystem: :path: !ruby/object:Pathname path: "../../../packages/expo-file-system/ios" @@ -584,6 +622,9 @@ EXTERNAL SOURCES: EXLocalization: :path: !ruby/object:Pathname path: "../../../packages/expo-localization/ios" + EXLocation: + :path: !ruby/object:Pathname + path: "../../../packages/expo-location/ios" EXMailComposer: :path: !ruby/object:Pathname path: "../../../packages/expo-mail-composer/ios" @@ -593,6 +634,9 @@ EXTERNAL SOURCES: EXNetwork: :path: !ruby/object:Pathname path: "../../../packages/expo-network/ios" + EXNotifications: + :path: !ruby/object:Pathname + path: "../../../packages/expo-notifications/ios" EXPermissions: :path: !ruby/object:Pathname path: "../../../packages/expo-permissions/ios" @@ -602,6 +646,9 @@ EXTERNAL SOURCES: EXRandom: :path: !ruby/object:Pathname path: "../../../packages/expo-random/ios" + EXScreenOrientation: + :path: !ruby/object:Pathname + path: "../../../packages/expo-screen-orientation/ios" EXSecureStore: :path: !ruby/object:Pathname path: "../../../packages/expo-secure-store/ios" @@ -658,6 +705,8 @@ EXTERNAL SOURCES: :path: "../../../react-native-lab/react-native/ReactCommon/jsiexecutor" React-jsinspector: :path: "../../../react-native-lab/react-native/ReactCommon/jsinspector" + react-native-appearance: + :path: "../node_modules/react-native-appearance" react-native-safe-area-context: :path: "../../../node_modules/react-native-safe-area-context" React-RCTActionSheet: @@ -714,6 +763,9 @@ EXTERNAL SOURCES: UMSensorsInterface: :path: !ruby/object:Pathname path: "../../../packages/unimodules-sensors-interface/ios" + UMTaskManagerInterface: + :path: !ruby/object:Pathname + path: "../../../packages/unimodules-task-manager-interface/ios" Yoga: :path: "../../../react-native-lab/react-native/ReactCommon/yoga" @@ -741,6 +793,7 @@ SPEC CHECKSUMS: EXDevice: 106e1250d41a41f7f32f7ec3678aaf755733e8cc EXDocumentPicker: 25d232d804087bd6fe88a74d7e582b295e5e69dd EXErrorRecovery: d36db99ec6a3808f313f01b0890eb443796dd1c2 + EXFacebook: c10f77ea97b3003c29b4f0a49942acc1ba8330b5 EXFileSystem: 6e0d9bb6cc4ea404dbb8f583c1a8a2dcdf4b83b6 EXFont: 6187b5ab46ee578d5f8e7f2ea092752e78772235 EXGL: 3add8ba2c89377285f57cda493d4bc50939b5300 @@ -753,12 +806,15 @@ SPEC CHECKSUMS: EXLinearGradient: 75f302f9d6484267a3f6d3252df2e7a5f00e716a EXLocalAuthentication: a6a7ca4285c2440a697f356cb529bf5ca2b83edd EXLocalization: 6a3ec1e9dda2ec9ba9dcc4a29dd840e5e950115e + EXLocation: 3c75d012ca92eed94d4338778d79c49d1252393a EXMailComposer: b9be58adaabb860fc8b722204ce27b33c7da5aad EXMediaLibrary: 9281707de8f95cc391d242b614f493ab781030fa EXNetwork: a52f713ced4b05a2634eb88a1f1f8678fcb8b69c + EXNotifications: d654494e84df90927cca410ebac178c61553647b EXPermissions: 9bc08859a675d291e89be9a0870155c27c16ac35 EXPrint: b20aef0e774d96e0ea6688b97d9e0c1d268b95ae EXRandom: 3a6f6dce1997a40a7fc3bb00d18eabc380c51c2e + EXScreenOrientation: 44d3cd3a99a86b9cb681e742697bc2c057d7fbd2 EXSecureStore: 1448b90d665c9400aaaf6655fccb464da14698f6 EXSegment: d1f9b468c14c70b8dacad0730bb9dffaf2452010 EXSensors: 3f89e58576f6fd2d529b9f64eb98fd325e60fdb8 @@ -771,6 +827,8 @@ SPEC CHECKSUMS: EXWebBrowser: db32607359fb7b55b7b7b91df32dd3d8355bb3b7 FBLazyVector: feb35a6b7f7b50f367be07f34012f34a79282fa3 FBReactNativeSpec: 51477b84b1bf7ab6f9ef307c24e3dd675391be44 + FBSDKCoreKit: e7dcac0aabcfb09d0166998edd95fe3b05a0ce5d + FBSDKLoginKit: 1b0cf04df0370b37404213157b060d6666ede814 Folly: 30e7936e1c45c08d884aa59369ed951a8e68cf51 glog: 1f3da668190260b06b429bb211bfbee5cd790c28 GoogleSignIn: 7137d297ddc022a7e0aa4619c86d72c909fa7213 @@ -785,6 +843,7 @@ SPEC CHECKSUMS: React-jsi: ca921f4041505f9d5197139b2d09eeb020bb12e8 React-jsiexecutor: 8dfb73b987afa9324e4009bdce62a18ce23d983c React-jsinspector: d15478d0a8ada19864aa4d1cc1c697b41b3fa92f + react-native-appearance: c2e0666225d999f7f0e7d9a9cb6c627c6e4c4b92 react-native-safe-area-context: d288138da2c800caa111f9352e9333f186a06ead React-RCTActionSheet: 7369b7c85f99b6299491333affd9f01f5a130c22 React-RCTAnimation: d07be15b2bd1d06d89417eb0343f98ffd2b099a7 @@ -808,9 +867,10 @@ SPEC CHECKSUMS: UMPermissionsInterface: 0f68a2e35b8951a03fa087e54f33bb2691bbf981 UMReactNativeAdapter: 230406e3335a8dbd4c9c0e654488a1cf3b44552f UMSensorsInterface: d708a892ef1500bdd9fc3ff03f7836c66d1634d3 + UMTaskManagerInterface: a98e37a576a5220bf43b8faf33cfdc129d2f441d Yoga: ba3d99dbee6c15ea6bbe3783d1f0cb1ffb79af0f ZXingObjC: fdbb269f25dd2032da343e06f10224d62f537bdb -PODFILE CHECKSUM: f8c0544004c7ca9ffcae29a1b9efb91846964d98 +PODFILE CHECKSUM: f9b310a7da0a72b720dd3e0eaf31394e24c3f736 COCOAPODS: 1.8.4 diff --git a/apps/bare-expo/ios/Pods/.project_cache/installation_cache.yaml b/apps/bare-expo/ios/Pods/.project_cache/installation_cache.yaml index 67c465e93b792..aeffe6f183e68 100644 --- a/apps/bare-expo/ios/Pods/.project_cache/installation_cache.yaml +++ b/apps/bare-expo/ios/Pods/.project_cache/installation_cache.yaml @@ -72,6 +72,8 @@ CACHE_KEYS: FILES: - "../../../../packages/expo-application/ios/EXApplication/EXApplication.h" - "../../../../packages/expo-application/ios/EXApplication/EXApplication.m" + - "../../../../packages/expo-application/ios/EXApplication/EXProvisioningProfile.h" + - "../../../../packages/expo-application/ios/EXApplication/EXProvisioningProfile.m" PROJECT_NAME: EXApplication SPECS: - EXApplication (2.0.0) @@ -273,6 +275,18 @@ CACHE_KEYS: PROJECT_NAME: EXErrorRecovery SPECS: - EXErrorRecovery (1.0.0) + EXFacebook: + BUILD_SETTINGS_CHECKSUM: + EXFacebook: dc1658cf687deeaa14cc9e39f36d7cac + CHECKSUM: c10f77ea97b3003c29b4f0a49942acc1ba8330b5 + FILES: + - "../../../../packages/expo-facebook/ios/EXFacebook/EXFacebook.h" + - "../../../../packages/expo-facebook/ios/EXFacebook/EXFacebook.m" + - "../../../../packages/expo-facebook/ios/EXFacebook/EXFacebookAppDelegate.h" + - "../../../../packages/expo-facebook/ios/EXFacebook/EXFacebookAppDelegate.m" + PROJECT_NAME: EXFacebook + SPECS: + - EXFacebook (8.0.0) EXFileSystem: BUILD_SETTINGS_CHECKSUM: EXFileSystem: 384bbcee0771bf79893a232d6cd6c5e2 @@ -448,6 +462,24 @@ CACHE_KEYS: PROJECT_NAME: EXLocalization SPECS: - EXLocalization (8.0.0) + EXLocation: + BUILD_SETTINGS_CHECKSUM: + EXLocation: 2cdf527b8fd9660760dea76fb7930f4a + CHECKSUM: 3c75d012ca92eed94d4338778d79c49d1252393a + FILES: + - "../../../../packages/expo-location/ios/EXLocation/EXLocation.h" + - "../../../../packages/expo-location/ios/EXLocation/EXLocation.m" + - "../../../../packages/expo-location/ios/EXLocation/EXLocationDelegate.h" + - "../../../../packages/expo-location/ios/EXLocation/EXLocationDelegate.m" + - "../../../../packages/expo-location/ios/EXLocation/EXLocationPermissionRequester.h" + - "../../../../packages/expo-location/ios/EXLocation/EXLocationPermissionRequester.m" + - "../../../../packages/expo-location/ios/EXLocation/TaskConsumers/EXGeofencingTaskConsumer.h" + - "../../../../packages/expo-location/ios/EXLocation/TaskConsumers/EXGeofencingTaskConsumer.m" + - "../../../../packages/expo-location/ios/EXLocation/TaskConsumers/EXLocationTaskConsumer.h" + - "../../../../packages/expo-location/ios/EXLocation/TaskConsumers/EXLocationTaskConsumer.m" + PROJECT_NAME: EXLocation + SPECS: + - EXLocation (8.0.0) EXMailComposer: BUILD_SETTINGS_CHECKSUM: EXMailComposer: dde34d492aa6e58f5e36c7f4824e2b42 @@ -482,6 +514,21 @@ CACHE_KEYS: PROJECT_NAME: EXNetwork SPECS: - EXNetwork (2.0.0) + EXNotifications: + BUILD_SETTINGS_CHECKSUM: + EXNotifications: 42083d7be3b81dc87f399732a97ebffe + CHECKSUM: d654494e84df90927cca410ebac178c61553647b + FILES: + - "../../../../packages/expo-notifications/ios/EXNotifications/EXInstallationIdProvider.h" + - "../../../../packages/expo-notifications/ios/EXNotifications/EXInstallationIdProvider.m" + - "../../../../packages/expo-notifications/ios/EXNotifications/EXPushTokenListener.h" + - "../../../../packages/expo-notifications/ios/EXNotifications/EXPushTokenManager.h" + - "../../../../packages/expo-notifications/ios/EXNotifications/EXPushTokenManager.m" + - "../../../../packages/expo-notifications/ios/EXNotifications/EXPushTokenModule.h" + - "../../../../packages/expo-notifications/ios/EXNotifications/EXPushTokenModule.m" + PROJECT_NAME: EXNotifications + SPECS: + - EXNotifications (1.0.0) EXPermissions: BUILD_SETTINGS_CHECKSUM: EXPermissions: 042b0d307d74f9ba36a7183b44cd74a0 @@ -524,6 +571,22 @@ CACHE_KEYS: PROJECT_NAME: EXRandom SPECS: - EXRandom (8.0.0) + EXScreenOrientation: + BUILD_SETTINGS_CHECKSUM: + EXScreenOrientation: 605d41100602a3265d74a60e6ef76c6d + CHECKSUM: 44d3cd3a99a86b9cb681e742697bc2c057d7fbd2 + FILES: + - "../../../../packages/expo-screen-orientation/ios/EXScreenOrientation/EXScreenOrientationModule.h" + - "../../../../packages/expo-screen-orientation/ios/EXScreenOrientation/EXScreenOrientationModule.m" + - "../../../../packages/expo-screen-orientation/ios/EXScreenOrientation/EXScreenOrientationRegistry.h" + - "../../../../packages/expo-screen-orientation/ios/EXScreenOrientation/EXScreenOrientationRegistry.m" + - "../../../../packages/expo-screen-orientation/ios/EXScreenOrientation/EXScreenOrientationUtilities.h" + - "../../../../packages/expo-screen-orientation/ios/EXScreenOrientation/EXScreenOrientationUtilities.m" + - "../../../../packages/expo-screen-orientation/ios/EXScreenOrientation/EXScreenOrientationViewController.h" + - "../../../../packages/expo-screen-orientation/ios/EXScreenOrientation/EXScreenOrientationViewController.m" + PROJECT_NAME: EXScreenOrientation + SPECS: + - EXScreenOrientation (1.0.0) EXSecureStore: BUILD_SETTINGS_CHECKSUM: EXSecureStore: 10a623412aef75951df791abc0f7f5ba @@ -605,8 +668,8 @@ CACHE_KEYS: EXSQLite: acb84ade2d15e9630e8da4bbb7418d6f CHECKSUM: 220226a354912b100dfe913f5fe6f31762c8927e FILES: - - "../../../../packages/expo-sqlite/ios/EXSQLite/EXSQLite.h" - - "../../../../packages/expo-sqlite/ios/EXSQLite/EXSQLite.m" + - "../../../../packages/expo-sqlite/ios/EXSQlite/EXSQLite.h" + - "../../../../packages/expo-sqlite/ios/EXSQlite/EXSQLite.m" PROJECT_NAME: EXSQLite SPECS: - EXSQLite (8.0.0) @@ -660,6 +723,23 @@ CACHE_KEYS: PROJECT_NAME: FBReactNativeSpec SPECS: - FBReactNativeSpec (0.61.4) + FBSDKCoreKit: + BUILD_SETTINGS_CHECKSUM: + FBSDKCoreKit: 60d69dde3e50d94f5f39949c424b03c5 + CHECKSUM: e7dcac0aabcfb09d0166998edd95fe3b05a0ce5d + PROJECT_NAME: FBSDKCoreKit + SPECS: + - FBSDKCoreKit (5.8.0) + - FBSDKCoreKit/Basics (5.8.0) + - FBSDKCoreKit/Core (5.8.0) + FBSDKLoginKit: + BUILD_SETTINGS_CHECKSUM: + FBSDKLoginKit: 0df82783c4955cafdce54ee3f9243823 + CHECKSUM: 1b0cf04df0370b37404213157b060d6666ede814 + PROJECT_NAME: FBSDKLoginKit + SPECS: + - FBSDKLoginKit (5.8.0) + - FBSDKLoginKit/Login (5.8.0) Folly: BUILD_SETTINGS_CHECKSUM: Folly: 6929e5198d305a2496bf017ba64d131c @@ -700,12 +780,12 @@ CACHE_KEYS: - GTMSessionFetcher/Full (1.3.0) Pods-BareExpo: BUILD_SETTINGS_CHECKSUM: - Debug: 9fa395d50ce617a2a71ed32b1caae8ef - Release: 9fa395d50ce617a2a71ed32b1caae8ef + Debug: eecf7d1263b3ce3378ec9d3446115311 + Release: eecf7d1263b3ce3378ec9d3446115311 Pods-BareExpoTests: BUILD_SETTINGS_CHECKSUM: - Debug: b61a68dc0ecf8315379a8243485d7899 - Release: b61a68dc0ecf8315379a8243485d7899 + Debug: afa3e21077b9551248ae89a97600b432 + Release: afa3e21077b9551248ae89a97600b432 RCTRequired: BUILD_SETTINGS_CHECKSUM: RCTRequired: 4dfdb65505e509cfb5f433fb54943666 @@ -1232,6 +1312,22 @@ CACHE_KEYS: PROJECT_NAME: React-jsinspector SPECS: - React-jsinspector (0.61.4) + react-native-appearance: + BUILD_SETTINGS_CHECKSUM: + react-native-appearance: 7404d29f4c015c0c51680f1bce6a4d8f + CHECKSUM: c2e0666225d999f7f0e7d9a9cb6c627c6e4c4b92 + FILES: + - "../../node_modules/react-native-appearance/ios/Appearance/RNCAppearance.h" + - "../../node_modules/react-native-appearance/ios/Appearance/RNCAppearance.m" + - "../../node_modules/react-native-appearance/ios/Appearance/RNCAppearanceProvider.h" + - "../../node_modules/react-native-appearance/ios/Appearance/RNCAppearanceProvider.m" + - "../../node_modules/react-native-appearance/ios/Appearance/RNCAppearanceProviderManager.h" + - "../../node_modules/react-native-appearance/ios/Appearance/RNCAppearanceProviderManager.m" + - "../../node_modules/react-native-appearance/LICENSE" + - "../../node_modules/react-native-appearance/README.md" + PROJECT_NAME: react-native-appearance + SPECS: + - react-native-appearance (0.3.2) react-native-safe-area-context: BUILD_SETTINGS_CHECKSUM: react-native-safe-area-context: 80a5e0b5f5707cf1c6bdcc5ec48c6cca @@ -1679,6 +1775,8 @@ CACHE_KEYS: - "../../../../packages/@unimodules/react-native-adapter/ios/UMReactNativeAdapter/UMBridgeModule.h" - "../../../../packages/@unimodules/react-native-adapter/ios/UMReactNativeAdapter/UMModuleRegistryAdapter/UMModuleRegistryAdapter.h" - "../../../../packages/@unimodules/react-native-adapter/ios/UMReactNativeAdapter/UMModuleRegistryAdapter/UMModuleRegistryAdapter.m" + - "../../../../packages/@unimodules/react-native-adapter/ios/UMReactNativeAdapter/UMModuleRegistryAdapter/UMModuleRegistryHolderReactModule.h" + - "../../../../packages/@unimodules/react-native-adapter/ios/UMReactNativeAdapter/UMModuleRegistryAdapter/UMModuleRegistryHolderReactModule.m" - "../../../../packages/@unimodules/react-native-adapter/ios/UMReactNativeAdapter/UMModuleRegistryAdapter/UMViewManagerAdapterClassesRegistry.h" - "../../../../packages/@unimodules/react-native-adapter/ios/UMReactNativeAdapter/UMModuleRegistryAdapter/UMViewManagerAdapterClassesRegistry.m" - "../../../../packages/@unimodules/react-native-adapter/ios/UMReactNativeAdapter/UMNativeModulesProxy/UMNativeModulesProxy.h" @@ -1702,6 +1800,19 @@ CACHE_KEYS: PROJECT_NAME: UMSensorsInterface SPECS: - UMSensorsInterface (5.0.0) + UMTaskManagerInterface: + BUILD_SETTINGS_CHECKSUM: + UMTaskManagerInterface: 7659aca9cac609731d0f1bd954e77065 + CHECKSUM: a98e37a576a5220bf43b8faf33cfdc129d2f441d + FILES: + - "../../../../packages/unimodules-task-manager-interface/ios/UMTaskManagerInterface/UMTaskConsumerInterface.h" + - "../../../../packages/unimodules-task-manager-interface/ios/UMTaskManagerInterface/UMTaskInterface.h" + - "../../../../packages/unimodules-task-manager-interface/ios/UMTaskManagerInterface/UMTaskLaunchReason.h" + - "../../../../packages/unimodules-task-manager-interface/ios/UMTaskManagerInterface/UMTaskManagerInterface.h" + - "../../../../packages/unimodules-task-manager-interface/ios/UMTaskManagerInterface/UMTaskServiceInterface.h" + PROJECT_NAME: UMTaskManagerInterface + SPECS: + - UMTaskManagerInterface (5.0.0) Yoga: BUILD_SETTINGS_CHECKSUM: Yoga: 1c1562cda00c80e209af7feb55d5f6dd diff --git a/apps/bare-expo/ios/Pods/.project_cache/metadata_cache.yaml b/apps/bare-expo/ios/Pods/.project_cache/metadata_cache.yaml index 2a4dfbff9a454..f8af09753d55f 100644 --- a/apps/bare-expo/ios/Pods/.project_cache/metadata_cache.yaml +++ b/apps/bare-expo/ios/Pods/.project_cache/metadata_cache.yaml @@ -90,6 +90,10 @@ EXErrorRecovery: LABEL: EXErrorRecovery PROJECT_PATH: EXErrorRecovery.xcodeproj UUID: 49603BA4A7FB1CFC9ACD589B8CE05EA2 +EXFacebook: + LABEL: EXFacebook + PROJECT_PATH: EXFacebook.xcodeproj + UUID: FEAA3FBA5C5225363EE9E6D0B5B3183B EXFileSystem: LABEL: EXFileSystem PROJECT_PATH: EXFileSystem.xcodeproj @@ -102,10 +106,6 @@ EXGL: LABEL: EXGL PROJECT_PATH: EXGL.xcodeproj UUID: 78CC35D6F49ACC0F72F0095F78EFDCE7 -EXGL-CPP: - LABEL: EXGL-CPP - PROJECT_PATH: EXGL-CPP.xcodeproj - UUID: 348F48833A31FAAF4C3FBBBCAA504BB8 EXGL_CPP: LABEL: EXGL_CPP PROJECT_PATH: EXGL_CPP.xcodeproj @@ -142,6 +142,10 @@ EXLocalization: LABEL: EXLocalization PROJECT_PATH: EXLocalization.xcodeproj UUID: 55C7C51CE4B49B971674C896CB1DC301 +EXLocation: + LABEL: EXLocation + PROJECT_PATH: EXLocation.xcodeproj + UUID: 9448EAC8D0286D37F065B24667BFBB8F EXMailComposer: LABEL: EXMailComposer PROJECT_PATH: EXMailComposer.xcodeproj @@ -154,6 +158,10 @@ EXNetwork: LABEL: EXNetwork PROJECT_PATH: EXNetwork.xcodeproj UUID: 71F2A4AC24C8FBC0E24B6A613BB4F7BC +EXNotifications: + LABEL: EXNotifications + PROJECT_PATH: EXNotifications.xcodeproj + UUID: 6C660F81CE4F0EC96D208B20C3E8B154 EXPermissions: LABEL: EXPermissions PROJECT_PATH: EXPermissions.xcodeproj @@ -166,6 +174,10 @@ EXRandom: LABEL: EXRandom PROJECT_PATH: EXRandom.xcodeproj UUID: 00EB4A6BB9778AFFF7F587D732973596 +EXScreenOrientation: + LABEL: EXScreenOrientation + PROJECT_PATH: EXScreenOrientation.xcodeproj + UUID: AA651E1AC215FDCE87E218058A342349 EXSecureStore: LABEL: EXSecureStore PROJECT_PATH: EXSecureStore.xcodeproj @@ -214,6 +226,14 @@ FBReactNativeSpec: LABEL: FBReactNativeSpec PROJECT_PATH: FBReactNativeSpec.xcodeproj UUID: 5CDFFFDA1BEA16A0D3629FE9F761022A +FBSDKCoreKit: + LABEL: FBSDKCoreKit + PROJECT_PATH: FBSDKCoreKit.xcodeproj + UUID: 322040CF2C7D2642650A8BFCDB4B2AD3 +FBSDKLoginKit: + LABEL: FBSDKLoginKit + PROJECT_PATH: FBSDKLoginKit.xcodeproj + UUID: 99D9EFC28DE380315427F305282258E8 Folly: LABEL: Folly PROJECT_PATH: Folly.xcodeproj @@ -278,6 +298,10 @@ React-jsinspector: LABEL: React-jsinspector PROJECT_PATH: React-jsinspector.xcodeproj UUID: 1AC0EAF3E808B6AA276E43B30A5B20AA +react-native-appearance: + LABEL: react-native-appearance + PROJECT_PATH: react-native-appearance.xcodeproj + UUID: A6256F4276AA88FDEAAA83D3F4FEBA89 react-native-safe-area-context: LABEL: react-native-safe-area-context PROJECT_PATH: react-native-safe-area-context.xcodeproj @@ -370,6 +394,10 @@ UMSensorsInterface: LABEL: UMSensorsInterface PROJECT_PATH: UMSensorsInterface.xcodeproj UUID: 1FDCE556B997E87DAB0DA2727CC69285 +UMTaskManagerInterface: + LABEL: UMTaskManagerInterface + PROJECT_PATH: UMTaskManagerInterface.xcodeproj + UUID: A565C99DEFBAFA44A1B5C3B49ADD8A84 Yoga: LABEL: Yoga PROJECT_PATH: Yoga.xcodeproj diff --git a/apps/bare-expo/ios/Pods/EXApplication.xcodeproj/project.pbxproj b/apps/bare-expo/ios/Pods/EXApplication.xcodeproj/project.pbxproj index 29f69aa0b615a..e621917fe9122 100644 --- a/apps/bare-expo/ios/Pods/EXApplication.xcodeproj/project.pbxproj +++ b/apps/bare-expo/ios/Pods/EXApplication.xcodeproj/project.pbxproj @@ -7,13 +7,15 @@ objects = { /* Begin PBXBuildFile section */ - 0560D794600CFE40E188E00EBF945672 /* EXApplication.h in Headers */ = {isa = PBXBuildFile; fileRef = 942BA3DCC31B49B1C7AE247F63CCD1D9 /* EXApplication.h */; settings = {ATTRIBUTES = (Project, ); }; }; - 3E0A6E117CE1EB645AD6CB5366F3CB6B /* EXApplication.m in Sources */ = {isa = PBXBuildFile; fileRef = 9F49A07610E8DBAD5E3325969C38D4D1 /* EXApplication.m */; }; - FC2CFD78B2352D3B7A770827466B91D1 /* EXApplication-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 4BD39DA3713290E1FBFBF644FEC37580 /* EXApplication-dummy.m */; }; + 6006F8BCB338392C4840802E78258109 /* EXProvisioningProfile.h in Headers */ = {isa = PBXBuildFile; fileRef = FCD09223BE8BA98359BAB3F3B6E2C378 /* EXProvisioningProfile.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 967988573BD1C463F2D68DA4E81E4782 /* EXApplication.m in Sources */ = {isa = PBXBuildFile; fileRef = FDA07064C97E9CA44220AA025B0277A1 /* EXApplication.m */; }; + AACC7490A272E513C6A4FACF311EFC48 /* EXApplication-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = BDD770EC605D4026F01E0A23E293DE3A /* EXApplication-dummy.m */; }; + DE81588EC64BD00A405B9588CFC9E4C7 /* EXProvisioningProfile.m in Sources */ = {isa = PBXBuildFile; fileRef = 92FCE6B04C68A17137CAADC31CA3E66E /* EXProvisioningProfile.m */; }; + F3D6F7E4E7BB4886A17FDCE58D6E2ADE /* EXApplication.h in Headers */ = {isa = PBXBuildFile; fileRef = E5365CB76DAB444D94EF4ABC71C9D4E4 /* EXApplication.h */; settings = {ATTRIBUTES = (Project, ); }; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ - 232BCB2183874FDAC000FD63AC31D35D /* PBXContainerItemProxy */ = { + B6BE829E166BB7A8E45B0500A70DF3E4 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = D235D9A92F093BF19BC4BA36FEA73BBB /* UMCore.xcodeproj */; proxyType = 1; @@ -23,18 +25,20 @@ /* End PBXContainerItemProxy section */ /* Begin PBXFileReference section */ - 4BD39DA3713290E1FBFBF644FEC37580 /* EXApplication-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "EXApplication-dummy.m"; sourceTree = ""; }; - 4DC40075816071A63B7E17AEF2D6BA67 /* EXApplication.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; path = EXApplication.podspec; sourceTree = ""; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; - 942BA3DCC31B49B1C7AE247F63CCD1D9 /* EXApplication.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = EXApplication.h; path = EXApplication/EXApplication.h; sourceTree = ""; }; - 9A878CD3B762F5E2C37C5FDE648235DA /* EXApplication-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "EXApplication-prefix.pch"; sourceTree = ""; }; - 9F49A07610E8DBAD5E3325969C38D4D1 /* EXApplication.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = EXApplication.m; path = EXApplication/EXApplication.m; sourceTree = ""; }; + 025B549F4E70B5BC49734E7C075AB9F4 /* EXApplication.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = EXApplication.xcconfig; sourceTree = ""; }; + 34CAFC2C3AFDA8467578ACF8129D7A3E /* EXApplication-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "EXApplication-prefix.pch"; sourceTree = ""; }; + 910CF845517F9CA85E417536E2EAA5F4 /* EXApplication.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; path = EXApplication.podspec; sourceTree = ""; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; + 92FCE6B04C68A17137CAADC31CA3E66E /* EXProvisioningProfile.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = EXProvisioningProfile.m; path = EXApplication/EXProvisioningProfile.m; sourceTree = ""; }; + BDD770EC605D4026F01E0A23E293DE3A /* EXApplication-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "EXApplication-dummy.m"; sourceTree = ""; }; BFCD5C75F9FE3DC04DD407A746ADA642 /* libEXApplication.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = libEXApplication.a; path = libEXApplication.a; sourceTree = BUILT_PRODUCTS_DIR; }; - CA7D83934AA422C23B9D8B5C8AEB8633 /* EXApplication.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = EXApplication.xcconfig; sourceTree = ""; }; D235D9A92F093BF19BC4BA36FEA73BBB /* UMCore */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UMCore; path = UMCore.xcodeproj; sourceTree = ""; }; + E5365CB76DAB444D94EF4ABC71C9D4E4 /* EXApplication.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = EXApplication.h; path = EXApplication/EXApplication.h; sourceTree = ""; }; + FCD09223BE8BA98359BAB3F3B6E2C378 /* EXProvisioningProfile.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = EXProvisioningProfile.h; path = EXApplication/EXProvisioningProfile.h; sourceTree = ""; }; + FDA07064C97E9CA44220AA025B0277A1 /* EXApplication.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = EXApplication.m; path = EXApplication/EXApplication.m; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ - 9255D6350930E7CD19A44CCC63B351F3 /* Frameworks */ = { + 2707AFA9FF26AFA4E645C0B89CDEFF79 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( @@ -52,14 +56,25 @@ name = Dependencies; sourceTree = ""; }; - 0ECFD93DA6EFE6CED12F59640F952F98 /* Pod */ = { + 2A615AC188FA6B9D125ECE8999C10BBA /* Pod */ = { isa = PBXGroup; children = ( - 4DC40075816071A63B7E17AEF2D6BA67 /* EXApplication.podspec */, + 910CF845517F9CA85E417536E2EAA5F4 /* EXApplication.podspec */, ); name = Pod; sourceTree = ""; }; + 2FC2E263C2C2B4B856D588061F6352FC /* Support Files */ = { + isa = PBXGroup; + children = ( + 025B549F4E70B5BC49734E7C075AB9F4 /* EXApplication.xcconfig */, + BDD770EC605D4026F01E0A23E293DE3A /* EXApplication-dummy.m */, + 34CAFC2C3AFDA8467578ACF8129D7A3E /* EXApplication-prefix.pch */, + ); + name = "Support Files"; + path = "../../../apps/bare-expo/ios/Pods/Target Support Files/EXApplication"; + sourceTree = ""; + }; 4F69F4E33FB642DF98685F05332A47A8 /* Frameworks */ = { isa = PBXGroup; children = ( @@ -79,30 +94,21 @@ isa = PBXGroup; children = ( 05A17C8F20C101D99717A0C3B596FDB8 /* Dependencies */, - BF2C1B516F504961064EC0569FB4ABC3 /* EXApplication */, + A6C3F17B76A00096F040C18D8131D8C2 /* EXApplication */, 4F69F4E33FB642DF98685F05332A47A8 /* Frameworks */, 722B5EA932844751279F881434696DB3 /* Products */, ); sourceTree = ""; }; - B075C95AD445C56AB4069FB28A6126D9 /* Support Files */ = { + A6C3F17B76A00096F040C18D8131D8C2 /* EXApplication */ = { isa = PBXGroup; children = ( - CA7D83934AA422C23B9D8B5C8AEB8633 /* EXApplication.xcconfig */, - 4BD39DA3713290E1FBFBF644FEC37580 /* EXApplication-dummy.m */, - 9A878CD3B762F5E2C37C5FDE648235DA /* EXApplication-prefix.pch */, - ); - name = "Support Files"; - path = "../../../apps/bare-expo/ios/Pods/Target Support Files/EXApplication"; - sourceTree = ""; - }; - BF2C1B516F504961064EC0569FB4ABC3 /* EXApplication */ = { - isa = PBXGroup; - children = ( - 942BA3DCC31B49B1C7AE247F63CCD1D9 /* EXApplication.h */, - 9F49A07610E8DBAD5E3325969C38D4D1 /* EXApplication.m */, - 0ECFD93DA6EFE6CED12F59640F952F98 /* Pod */, - B075C95AD445C56AB4069FB28A6126D9 /* Support Files */, + E5365CB76DAB444D94EF4ABC71C9D4E4 /* EXApplication.h */, + FDA07064C97E9CA44220AA025B0277A1 /* EXApplication.m */, + FCD09223BE8BA98359BAB3F3B6E2C378 /* EXProvisioningProfile.h */, + 92FCE6B04C68A17137CAADC31CA3E66E /* EXProvisioningProfile.m */, + 2A615AC188FA6B9D125ECE8999C10BBA /* Pod */, + 2FC2E263C2C2B4B856D588061F6352FC /* Support Files */, ); name = EXApplication; path = "../../../../packages/expo-application/ios"; @@ -111,11 +117,12 @@ /* End PBXGroup section */ /* Begin PBXHeadersBuildPhase section */ - 0C2F63669D938DDCD0A35350E116F0B5 /* Headers */ = { + 14BB78C12F295FDD1FEAB2BFF022A31B /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( - 0560D794600CFE40E188E00EBF945672 /* EXApplication.h in Headers */, + F3D6F7E4E7BB4886A17FDCE58D6E2ADE /* EXApplication.h in Headers */, + 6006F8BCB338392C4840802E78258109 /* EXProvisioningProfile.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -124,16 +131,16 @@ /* Begin PBXNativeTarget section */ 2C391225329DE46C6566ED1ADF52F10D /* EXApplication */ = { isa = PBXNativeTarget; - buildConfigurationList = FEEFB4AB56C57085A27915BDC9541EAD /* Build configuration list for PBXNativeTarget "EXApplication" */; + buildConfigurationList = FEE3E852AB6EA3B2E17EFE58FD9AAE85 /* Build configuration list for PBXNativeTarget "EXApplication" */; buildPhases = ( - 0C2F63669D938DDCD0A35350E116F0B5 /* Headers */, - 34E4C9EF26DF7341C08F11F01CF55B1D /* Sources */, - 9255D6350930E7CD19A44CCC63B351F3 /* Frameworks */, + 14BB78C12F295FDD1FEAB2BFF022A31B /* Headers */, + 183DF83BCCD3A5D517C108C9D471A528 /* Sources */, + 2707AFA9FF26AFA4E645C0B89CDEFF79 /* Frameworks */, ); buildRules = ( ); dependencies = ( - FF8CE4BA148A2B373996A4F7860F4A0D /* PBXTargetDependency */, + BE3B4427B5E02AF46BCE3E5F26FC07CE /* PBXTargetDependency */, ); name = EXApplication; productName = EXApplication; @@ -173,29 +180,55 @@ /* End PBXProject section */ /* Begin PBXSourcesBuildPhase section */ - 34E4C9EF26DF7341C08F11F01CF55B1D /* Sources */ = { + 183DF83BCCD3A5D517C108C9D471A528 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - FC2CFD78B2352D3B7A770827466B91D1 /* EXApplication-dummy.m in Sources */, - 3E0A6E117CE1EB645AD6CB5366F3CB6B /* EXApplication.m in Sources */, + AACC7490A272E513C6A4FACF311EFC48 /* EXApplication-dummy.m in Sources */, + 967988573BD1C463F2D68DA4E81E4782 /* EXApplication.m in Sources */, + DE81588EC64BD00A405B9588CFC9E4C7 /* EXProvisioningProfile.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ - FF8CE4BA148A2B373996A4F7860F4A0D /* PBXTargetDependency */ = { + BE3B4427B5E02AF46BCE3E5F26FC07CE /* PBXTargetDependency */ = { isa = PBXTargetDependency; name = UMCore; - targetProxy = 232BCB2183874FDAC000FD63AC31D35D /* PBXContainerItemProxy */; + targetProxy = B6BE829E166BB7A8E45B0500A70DF3E4 /* PBXContainerItemProxy */; }; /* End PBXTargetDependency section */ /* Begin XCBuildConfiguration section */ - 0C6831D705632E28B531CB7688B82C7F /* Debug */ = { + 12B58607DD0DF859F0BB3070236194AD /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 025B549F4E70B5BC49734E7C075AB9F4 /* EXApplication.xcconfig */; + buildSettings = { + CLANG_ENABLE_OBJC_WEAK = NO; + CODE_SIGN_IDENTITY = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + GCC_PREFIX_HEADER = "Target Support Files/EXApplication/EXApplication-prefix.pch"; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PRIVATE_HEADERS_FOLDER_PATH = ""; + PRODUCT_MODULE_NAME = EXApplication; + PRODUCT_NAME = EXApplication; + PUBLIC_HEADERS_FOLDER_PATH = ""; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 58565DA7C3BD57706CF5AC6AB30FE1F1 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = CA7D83934AA422C23B9D8B5C8AEB8633 /* EXApplication.xcconfig */; + baseConfigurationReference = 025B549F4E70B5BC49734E7C075AB9F4 /* EXApplication.xcconfig */; buildSettings = { CLANG_ENABLE_OBJC_WEAK = NO; CODE_SIGN_IDENTITY = "iPhone Developer"; @@ -281,31 +314,6 @@ }; name = Debug; }; - BF40F3360294712E06E11F7FD8D65F80 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = CA7D83934AA422C23B9D8B5C8AEB8633 /* EXApplication.xcconfig */; - buildSettings = { - CLANG_ENABLE_OBJC_WEAK = NO; - CODE_SIGN_IDENTITY = "iPhone Developer"; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - GCC_PREFIX_HEADER = "Target Support Files/EXApplication/EXApplication-prefix.pch"; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; - OTHER_LDFLAGS = ""; - OTHER_LIBTOOLFLAGS = ""; - PRIVATE_HEADERS_FOLDER_PATH = ""; - PRODUCT_MODULE_NAME = EXApplication; - PRODUCT_NAME = EXApplication; - PUBLIC_HEADERS_FOLDER_PATH = ""; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; E36E8865092FC1C145DEA61C717851BD /* Release */ = { isa = XCBuildConfiguration; buildSettings = { @@ -378,11 +386,11 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - FEEFB4AB56C57085A27915BDC9541EAD /* Build configuration list for PBXNativeTarget "EXApplication" */ = { + FEE3E852AB6EA3B2E17EFE58FD9AAE85 /* Build configuration list for PBXNativeTarget "EXApplication" */ = { isa = XCConfigurationList; buildConfigurations = ( - 0C6831D705632E28B531CB7688B82C7F /* Debug */, - BF40F3360294712E06E11F7FD8D65F80 /* Release */, + 58565DA7C3BD57706CF5AC6AB30FE1F1 /* Debug */, + 12B58607DD0DF859F0BB3070236194AD /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; diff --git a/apps/bare-expo/ios/Pods/EXFacebook.xcodeproj/project.pbxproj b/apps/bare-expo/ios/Pods/EXFacebook.xcodeproj/project.pbxproj new file mode 100644 index 0000000000000..ad86f11ced86a --- /dev/null +++ b/apps/bare-expo/ios/Pods/EXFacebook.xcodeproj/project.pbxproj @@ -0,0 +1,455 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 042945DCA7146E39CFACFB06557F1C4C /* EXFacebook.m in Sources */ = {isa = PBXBuildFile; fileRef = 650B3857E0649877D5EE1A31F1DEC67C /* EXFacebook.m */; }; + 05AE0E2A070CB45D41FC0061CA1FB07F /* EXFacebook-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 332BE43412BB0F26AD57371E488A1025 /* EXFacebook-dummy.m */; }; + 52CD370EAA03E3ED8B9596A8D205D5CE /* EXFacebookAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 81E4D6EBEE76A0C1A40105362602B369 /* EXFacebookAppDelegate.m */; }; + 67797797B20F122BD819E12981C75799 /* EXFacebook.h in Headers */ = {isa = PBXBuildFile; fileRef = 84027FF968E796431BDADA688A342DF8 /* EXFacebook.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 689A03C457463A25B32305A9198C5602 /* EXFacebookAppDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = D0845A18C7A0043D542098E26EFE2020 /* EXFacebookAppDelegate.h */; settings = {ATTRIBUTES = (Project, ); }; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 1116645BDF22B60A8C9CCC08B6475D50 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = E7B1163AA3D213A965AD94790928709D /* FBSDKCoreKit.xcodeproj */; + proxyType = 1; + remoteGlobalIDString = 322040CF2C7D2642650A8BFCDB4B2AD3; + remoteInfo = FBSDKCoreKit; + }; + 13D85FF0A39DB4656C643A68DA4DAC6E /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 5465EFD43F33C2E3B9A719C6D046CACD /* UMConstantsInterface.xcodeproj */; + proxyType = 1; + remoteGlobalIDString = 46F82E84687582F366B907E2BD5F1EA2; + remoteInfo = UMConstantsInterface; + }; + 1D31EF409020CF5404715633C39A7641 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = E8D4C7C20C888FCE580A77F912877409 /* FBSDKLoginKit.xcodeproj */; + proxyType = 1; + remoteGlobalIDString = 99D9EFC28DE380315427F305282258E8; + remoteInfo = FBSDKLoginKit; + }; + 8E63E63B0C68EDD0D3CF8562CF116858 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = FDF1340AB1D5D6085A3FA7C243A7C4C0 /* UMCore.xcodeproj */; + proxyType = 1; + remoteGlobalIDString = 153171642F5C5CBC05FD3EF6B23A3F36; + remoteInfo = UMCore; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 2E5F80AD9EED3539F6F798933119FDF9 /* EXFacebook.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; path = EXFacebook.podspec; sourceTree = ""; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; + 332BE43412BB0F26AD57371E488A1025 /* EXFacebook-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "EXFacebook-dummy.m"; sourceTree = ""; }; + 5465EFD43F33C2E3B9A719C6D046CACD /* UMConstantsInterface */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UMConstantsInterface; path = UMConstantsInterface.xcodeproj; sourceTree = ""; }; + 650B3857E0649877D5EE1A31F1DEC67C /* EXFacebook.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = EXFacebook.m; path = EXFacebook/EXFacebook.m; sourceTree = ""; }; + 81E4D6EBEE76A0C1A40105362602B369 /* EXFacebookAppDelegate.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = EXFacebookAppDelegate.m; path = EXFacebook/EXFacebookAppDelegate.m; sourceTree = ""; }; + 84027FF968E796431BDADA688A342DF8 /* EXFacebook.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = EXFacebook.h; path = EXFacebook/EXFacebook.h; sourceTree = ""; }; + AE7151EC534B5A1EACB6272710D3E60D /* libEXFacebook.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = libEXFacebook.a; path = libEXFacebook.a; sourceTree = BUILT_PRODUCTS_DIR; }; + D0845A18C7A0043D542098E26EFE2020 /* EXFacebookAppDelegate.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = EXFacebookAppDelegate.h; path = EXFacebook/EXFacebookAppDelegate.h; sourceTree = ""; }; + E7B1163AA3D213A965AD94790928709D /* FBSDKCoreKit */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = FBSDKCoreKit; path = FBSDKCoreKit.xcodeproj; sourceTree = ""; }; + E8D4C7C20C888FCE580A77F912877409 /* FBSDKLoginKit */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = FBSDKLoginKit; path = FBSDKLoginKit.xcodeproj; sourceTree = ""; }; + F5F9EB5B132BD8C982689691E1D33B53 /* EXFacebook-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "EXFacebook-prefix.pch"; sourceTree = ""; }; + FDF1340AB1D5D6085A3FA7C243A7C4C0 /* UMCore */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UMCore; path = UMCore.xcodeproj; sourceTree = ""; }; + FF5679CE343858C9047148E880C91BE1 /* EXFacebook.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = EXFacebook.xcconfig; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 2F25F9E23AD4A380DE182F3C8D7B521B /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 4ABAA7C12A852404376AEA5366CD0177 /* Dependencies */ = { + isa = PBXGroup; + children = ( + E7B1163AA3D213A965AD94790928709D /* FBSDKCoreKit */, + E8D4C7C20C888FCE580A77F912877409 /* FBSDKLoginKit */, + 5465EFD43F33C2E3B9A719C6D046CACD /* UMConstantsInterface */, + FDF1340AB1D5D6085A3FA7C243A7C4C0 /* UMCore */, + ); + name = Dependencies; + sourceTree = ""; + }; + 9CD844BE133F90471B16ED19A65A110A /* Products */ = { + isa = PBXGroup; + children = ( + AE7151EC534B5A1EACB6272710D3E60D /* libEXFacebook.a */, + ); + name = Products; + sourceTree = ""; + }; + A9859CF56C5094511074A06DDECCCA0D = { + isa = PBXGroup; + children = ( + 4ABAA7C12A852404376AEA5366CD0177 /* Dependencies */, + C4DC9A1082B0794FAA1AC0E04D77B9D2 /* EXFacebook */, + F713D1D4EFDBDB2AC903D39530C09937 /* Frameworks */, + 9CD844BE133F90471B16ED19A65A110A /* Products */, + ); + sourceTree = ""; + }; + BB6BF0B8182CC29CC383C390C8812558 /* Support Files */ = { + isa = PBXGroup; + children = ( + FF5679CE343858C9047148E880C91BE1 /* EXFacebook.xcconfig */, + 332BE43412BB0F26AD57371E488A1025 /* EXFacebook-dummy.m */, + F5F9EB5B132BD8C982689691E1D33B53 /* EXFacebook-prefix.pch */, + ); + name = "Support Files"; + path = "../../../apps/bare-expo/ios/Pods/Target Support Files/EXFacebook"; + sourceTree = ""; + }; + C4DC9A1082B0794FAA1AC0E04D77B9D2 /* EXFacebook */ = { + isa = PBXGroup; + children = ( + 84027FF968E796431BDADA688A342DF8 /* EXFacebook.h */, + 650B3857E0649877D5EE1A31F1DEC67C /* EXFacebook.m */, + D0845A18C7A0043D542098E26EFE2020 /* EXFacebookAppDelegate.h */, + 81E4D6EBEE76A0C1A40105362602B369 /* EXFacebookAppDelegate.m */, + D43716C6C23A2C430693A669E93A1ECF /* Pod */, + BB6BF0B8182CC29CC383C390C8812558 /* Support Files */, + ); + name = EXFacebook; + path = "../../../../packages/expo-facebook/ios"; + sourceTree = ""; + }; + D43716C6C23A2C430693A669E93A1ECF /* Pod */ = { + isa = PBXGroup; + children = ( + 2E5F80AD9EED3539F6F798933119FDF9 /* EXFacebook.podspec */, + ); + name = Pod; + sourceTree = ""; + }; + F713D1D4EFDBDB2AC903D39530C09937 /* Frameworks */ = { + isa = PBXGroup; + children = ( + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 16D6235CD783919B5EA4345CBFB354D7 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 67797797B20F122BD819E12981C75799 /* EXFacebook.h in Headers */, + 689A03C457463A25B32305A9198C5602 /* EXFacebookAppDelegate.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + FEAA3FBA5C5225363EE9E6D0B5B3183B /* EXFacebook */ = { + isa = PBXNativeTarget; + buildConfigurationList = 9AAB4E3EA762EDC1EBF5303FA91050E9 /* Build configuration list for PBXNativeTarget "EXFacebook" */; + buildPhases = ( + 16D6235CD783919B5EA4345CBFB354D7 /* Headers */, + 46756F39981AA4BB658CF177BA72D681 /* Sources */, + 2F25F9E23AD4A380DE182F3C8D7B521B /* Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + 3435C40403E8A977F46B31B59F39827A /* PBXTargetDependency */, + 3B93DC157ECD390E393B6935F0BCE1AC /* PBXTargetDependency */, + 9728AEFDF3F6474F920321DD06295844 /* PBXTargetDependency */, + 81AA734B82DC98FAA3990B19CB717A56 /* PBXTargetDependency */, + ); + name = EXFacebook; + productName = EXFacebook; + productReference = AE7151EC534B5A1EACB6272710D3E60D /* libEXFacebook.a */; + productType = "com.apple.product-type.library.static"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 7B08DCB84A5C5F1A47DA827D1A6014D5 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1100; + LastUpgradeCheck = 1100; + }; + buildConfigurationList = 952626A25396D8D9559455337FF9A969 /* Build configuration list for PBXProject "EXFacebook" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = A9859CF56C5094511074A06DDECCCA0D; + productRefGroup = 9CD844BE133F90471B16ED19A65A110A /* Products */; + projectDirPath = ""; + projectReferences = ( + { + ProjectRef = FDF1340AB1D5D6085A3FA7C243A7C4C0 /* UMCore */; + }, + { + ProjectRef = 5465EFD43F33C2E3B9A719C6D046CACD /* UMConstantsInterface */; + }, + { + ProjectRef = E7B1163AA3D213A965AD94790928709D /* FBSDKCoreKit */; + }, + { + ProjectRef = E8D4C7C20C888FCE580A77F912877409 /* FBSDKLoginKit */; + }, + ); + projectRoot = ""; + targets = ( + FEAA3FBA5C5225363EE9E6D0B5B3183B /* EXFacebook */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXSourcesBuildPhase section */ + 46756F39981AA4BB658CF177BA72D681 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 05AE0E2A070CB45D41FC0061CA1FB07F /* EXFacebook-dummy.m in Sources */, + 042945DCA7146E39CFACFB06557F1C4C /* EXFacebook.m in Sources */, + 52CD370EAA03E3ED8B9596A8D205D5CE /* EXFacebookAppDelegate.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 3435C40403E8A977F46B31B59F39827A /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = FBSDKCoreKit; + targetProxy = 1116645BDF22B60A8C9CCC08B6475D50 /* PBXContainerItemProxy */; + }; + 3B93DC157ECD390E393B6935F0BCE1AC /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = FBSDKLoginKit; + targetProxy = 1D31EF409020CF5404715633C39A7641 /* PBXContainerItemProxy */; + }; + 81AA734B82DC98FAA3990B19CB717A56 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = UMCore; + targetProxy = 8E63E63B0C68EDD0D3CF8562CF116858 /* PBXContainerItemProxy */; + }; + 9728AEFDF3F6474F920321DD06295844 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = UMConstantsInterface; + targetProxy = 13D85FF0A39DB4656C643A68DA4DAC6E /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 0F32799837DF117433BCC67AD3B98154 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = FF5679CE343858C9047148E880C91BE1 /* EXFacebook.xcconfig */; + buildSettings = { + CLANG_ENABLE_OBJC_WEAK = NO; + CODE_SIGN_IDENTITY = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + GCC_PREFIX_HEADER = "Target Support Files/EXFacebook/EXFacebook-prefix.pch"; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PRIVATE_HEADERS_FOLDER_PATH = ""; + PRODUCT_MODULE_NAME = EXFacebook; + PRODUCT_NAME = EXFacebook; + PUBLIC_HEADERS_FOLDER_PATH = ""; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 1C5AEE8356CBC35EA33F14470F9A8E2A /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_PREPROCESSOR_DEFINITIONS = ( + "POD_CONFIGURATION_RELEASE=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + PRODUCT_NAME = "$(TARGET_NAME)"; + STRIP_INSTALLED_PRODUCT = NO; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + SWIFT_VERSION = 5.0; + SYMROOT = "${SRCROOT}/../build"; + }; + name = Release; + }; + 267E71527904EDF9557F45C81E022114 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = FF5679CE343858C9047148E880C91BE1 /* EXFacebook.xcconfig */; + buildSettings = { + CLANG_ENABLE_OBJC_WEAK = NO; + CODE_SIGN_IDENTITY = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + GCC_PREFIX_HEADER = "Target Support Files/EXFacebook/EXFacebook-prefix.pch"; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PRIVATE_HEADERS_FOLDER_PATH = ""; + PRODUCT_MODULE_NAME = EXFacebook; + PRODUCT_NAME = EXFacebook; + PUBLIC_HEADERS_FOLDER_PATH = ""; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 8C6157BAEA92549F7DD19FBEB6AF55A4 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "POD_CONFIGURATION_DEBUG=1", + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + PRODUCT_NAME = "$(TARGET_NAME)"; + STRIP_INSTALLED_PRODUCT = NO; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + SYMROOT = "${SRCROOT}/../build"; + }; + name = Debug; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 952626A25396D8D9559455337FF9A969 /* Build configuration list for PBXProject "EXFacebook" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 8C6157BAEA92549F7DD19FBEB6AF55A4 /* Debug */, + 1C5AEE8356CBC35EA33F14470F9A8E2A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 9AAB4E3EA762EDC1EBF5303FA91050E9 /* Build configuration list for PBXNativeTarget "EXFacebook" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 0F32799837DF117433BCC67AD3B98154 /* Debug */, + 267E71527904EDF9557F45C81E022114 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 7B08DCB84A5C5F1A47DA827D1A6014D5 /* Project object */; +} diff --git a/apps/bare-expo/ios/Pods/EXLocation.xcodeproj/project.pbxproj b/apps/bare-expo/ios/Pods/EXLocation.xcodeproj/project.pbxproj new file mode 100644 index 0000000000000..e699382c1d955 --- /dev/null +++ b/apps/bare-expo/ios/Pods/EXLocation.xcodeproj/project.pbxproj @@ -0,0 +1,470 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 050808D4FF5E6B165EA83E03A0642127 /* EXGeofencingTaskConsumer.h in Headers */ = {isa = PBXBuildFile; fileRef = 3956479B7986B01C795B7BF689E85AE4 /* EXGeofencingTaskConsumer.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 32406F39949F9AB6F49F7B95044EEE32 /* EXLocationDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = BF4A061533523ADFC8B49B35C385334F /* EXLocationDelegate.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 6532A28F7633F277909B1595D27253E6 /* EXLocationTaskConsumer.m in Sources */ = {isa = PBXBuildFile; fileRef = B196A7FFAA6D5C454599972EB32CDEFB /* EXLocationTaskConsumer.m */; }; + AD6016CB91141E9D9D9A6D1ABF9A0423 /* EXLocationPermissionRequester.h in Headers */ = {isa = PBXBuildFile; fileRef = 63A503F69ACA528CD769311AB962630A /* EXLocationPermissionRequester.h */; settings = {ATTRIBUTES = (Project, ); }; }; + B241E4CD47D777097927A9FDCDCC3EB7 /* EXLocation.m in Sources */ = {isa = PBXBuildFile; fileRef = EE887528DCC67E0BEBB6B82EE0354D64 /* EXLocation.m */; }; + B39D19DD7A3C76B97EA6884730C920B8 /* EXGeofencingTaskConsumer.m in Sources */ = {isa = PBXBuildFile; fileRef = FA2D9BEC4ED4B562F97248623CF58BDE /* EXGeofencingTaskConsumer.m */; }; + B6F097B03355AD549B91B6EC064C858B /* EXLocation.h in Headers */ = {isa = PBXBuildFile; fileRef = 747F5E17BDC81C4521F2077A158BDC9A /* EXLocation.h */; settings = {ATTRIBUTES = (Project, ); }; }; + D0CDA7C9B026DB526362D3429F59DFF2 /* EXLocation-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 382311CC3950E8B534656495810CF123 /* EXLocation-dummy.m */; }; + DC70FC8294AFEA3739383841FD9F5C2A /* EXLocationDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = B2F624AA9C632446090738DB4F6027CE /* EXLocationDelegate.m */; }; + E264AFB22F011169145B2FCD95639FE3 /* EXLocationTaskConsumer.h in Headers */ = {isa = PBXBuildFile; fileRef = 203B9C88AD34F3A218F8C1DDFDD56B13 /* EXLocationTaskConsumer.h */; settings = {ATTRIBUTES = (Project, ); }; }; + F13AC32A44EE27CE769C8B09E53D4FAE /* EXLocationPermissionRequester.m in Sources */ = {isa = PBXBuildFile; fileRef = ABA29B24F40C07C3C41237F2F4F49175 /* EXLocationPermissionRequester.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 40EEC3FFB0050D47BEED309816FA52DB /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 701BE052E27254611783186AB115FF40 /* UMPermissionsInterface.xcodeproj */; + proxyType = 1; + remoteGlobalIDString = 12FF61416C5E794E9DEAC78D381D9726; + remoteInfo = UMPermissionsInterface; + }; + 84CDAC9144F4E679F8527D7CA461A9F4 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 9489415B04168ED86D11C1D13373B453 /* UMTaskManagerInterface.xcodeproj */; + proxyType = 1; + remoteGlobalIDString = A565C99DEFBAFA44A1B5C3B49ADD8A84; + remoteInfo = UMTaskManagerInterface; + }; + AC6CA902E02A3C748110F3AFDEB7834E /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 4B209ED9EAE6F3782DB7ACABD6135075 /* UMCore.xcodeproj */; + proxyType = 1; + remoteGlobalIDString = 153171642F5C5CBC05FD3EF6B23A3F36; + remoteInfo = UMCore; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 203B9C88AD34F3A218F8C1DDFDD56B13 /* EXLocationTaskConsumer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = EXLocationTaskConsumer.h; sourceTree = ""; }; + 382311CC3950E8B534656495810CF123 /* EXLocation-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "EXLocation-dummy.m"; sourceTree = ""; }; + 3956479B7986B01C795B7BF689E85AE4 /* EXGeofencingTaskConsumer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = EXGeofencingTaskConsumer.h; sourceTree = ""; }; + 39C55233200E5597BBE97D77C9FD1468 /* libEXLocation.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = libEXLocation.a; path = libEXLocation.a; sourceTree = BUILT_PRODUCTS_DIR; }; + 4B209ED9EAE6F3782DB7ACABD6135075 /* UMCore */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UMCore; path = UMCore.xcodeproj; sourceTree = ""; }; + 56426D63110EA579F4277336E6400371 /* EXLocation.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; path = EXLocation.podspec; sourceTree = ""; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; + 63A503F69ACA528CD769311AB962630A /* EXLocationPermissionRequester.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = EXLocationPermissionRequester.h; path = EXLocation/EXLocationPermissionRequester.h; sourceTree = ""; }; + 69D8BD17B22DD0A120F0BA9876A26107 /* EXLocation.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = EXLocation.xcconfig; sourceTree = ""; }; + 701BE052E27254611783186AB115FF40 /* UMPermissionsInterface */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UMPermissionsInterface; path = UMPermissionsInterface.xcodeproj; sourceTree = ""; }; + 747F5E17BDC81C4521F2077A158BDC9A /* EXLocation.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = EXLocation.h; path = EXLocation/EXLocation.h; sourceTree = ""; }; + 9489415B04168ED86D11C1D13373B453 /* UMTaskManagerInterface */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UMTaskManagerInterface; path = UMTaskManagerInterface.xcodeproj; sourceTree = ""; }; + ABA29B24F40C07C3C41237F2F4F49175 /* EXLocationPermissionRequester.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = EXLocationPermissionRequester.m; path = EXLocation/EXLocationPermissionRequester.m; sourceTree = ""; }; + B196A7FFAA6D5C454599972EB32CDEFB /* EXLocationTaskConsumer.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = EXLocationTaskConsumer.m; sourceTree = ""; }; + B2F624AA9C632446090738DB4F6027CE /* EXLocationDelegate.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = EXLocationDelegate.m; path = EXLocation/EXLocationDelegate.m; sourceTree = ""; }; + BF4A061533523ADFC8B49B35C385334F /* EXLocationDelegate.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = EXLocationDelegate.h; path = EXLocation/EXLocationDelegate.h; sourceTree = ""; }; + D9908020001E0C89B3BC16275CAFFBD9 /* EXLocation-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "EXLocation-prefix.pch"; sourceTree = ""; }; + EE887528DCC67E0BEBB6B82EE0354D64 /* EXLocation.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = EXLocation.m; path = EXLocation/EXLocation.m; sourceTree = ""; }; + FA2D9BEC4ED4B562F97248623CF58BDE /* EXGeofencingTaskConsumer.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = EXGeofencingTaskConsumer.m; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + C37C5F273090A4CDB2985492DD9DD441 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 24F58DB0F29490F4CE43F1598D15C071 /* Pod */ = { + isa = PBXGroup; + children = ( + 56426D63110EA579F4277336E6400371 /* EXLocation.podspec */, + ); + name = Pod; + sourceTree = ""; + }; + 2DD26AF2EACE3BA966FF62C78377EA9C /* EXLocation */ = { + isa = PBXGroup; + children = ( + 747F5E17BDC81C4521F2077A158BDC9A /* EXLocation.h */, + EE887528DCC67E0BEBB6B82EE0354D64 /* EXLocation.m */, + BF4A061533523ADFC8B49B35C385334F /* EXLocationDelegate.h */, + B2F624AA9C632446090738DB4F6027CE /* EXLocationDelegate.m */, + 63A503F69ACA528CD769311AB962630A /* EXLocationPermissionRequester.h */, + ABA29B24F40C07C3C41237F2F4F49175 /* EXLocationPermissionRequester.m */, + 24F58DB0F29490F4CE43F1598D15C071 /* Pod */, + C861DC84E168AD4C81C42740C1F40080 /* Support Files */, + 82D5F157909F93F44FF1A23F50B48925 /* TaskConsumers */, + ); + name = EXLocation; + path = "../../../../packages/expo-location/ios"; + sourceTree = ""; + }; + 5B730AD5786EE14FDA77C2F5BAA8FB20 /* Products */ = { + isa = PBXGroup; + children = ( + 39C55233200E5597BBE97D77C9FD1468 /* libEXLocation.a */, + ); + name = Products; + sourceTree = ""; + }; + 82D5F157909F93F44FF1A23F50B48925 /* TaskConsumers */ = { + isa = PBXGroup; + children = ( + 3956479B7986B01C795B7BF689E85AE4 /* EXGeofencingTaskConsumer.h */, + FA2D9BEC4ED4B562F97248623CF58BDE /* EXGeofencingTaskConsumer.m */, + 203B9C88AD34F3A218F8C1DDFDD56B13 /* EXLocationTaskConsumer.h */, + B196A7FFAA6D5C454599972EB32CDEFB /* EXLocationTaskConsumer.m */, + ); + name = TaskConsumers; + path = EXLocation/TaskConsumers; + sourceTree = ""; + }; + AC3E691A41172A970032D037ECA7229B /* Frameworks */ = { + isa = PBXGroup; + children = ( + ); + name = Frameworks; + sourceTree = ""; + }; + BF4B53092E4CF6ECCD845AC6FB2E5684 = { + isa = PBXGroup; + children = ( + F9369E320FE5D98C9800AD271568922E /* Dependencies */, + 2DD26AF2EACE3BA966FF62C78377EA9C /* EXLocation */, + AC3E691A41172A970032D037ECA7229B /* Frameworks */, + 5B730AD5786EE14FDA77C2F5BAA8FB20 /* Products */, + ); + sourceTree = ""; + }; + C861DC84E168AD4C81C42740C1F40080 /* Support Files */ = { + isa = PBXGroup; + children = ( + 69D8BD17B22DD0A120F0BA9876A26107 /* EXLocation.xcconfig */, + 382311CC3950E8B534656495810CF123 /* EXLocation-dummy.m */, + D9908020001E0C89B3BC16275CAFFBD9 /* EXLocation-prefix.pch */, + ); + name = "Support Files"; + path = "../../../apps/bare-expo/ios/Pods/Target Support Files/EXLocation"; + sourceTree = ""; + }; + F9369E320FE5D98C9800AD271568922E /* Dependencies */ = { + isa = PBXGroup; + children = ( + 4B209ED9EAE6F3782DB7ACABD6135075 /* UMCore */, + 701BE052E27254611783186AB115FF40 /* UMPermissionsInterface */, + 9489415B04168ED86D11C1D13373B453 /* UMTaskManagerInterface */, + ); + name = Dependencies; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 60A8777BABF7506D9E9D036D8B33D344 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 050808D4FF5E6B165EA83E03A0642127 /* EXGeofencingTaskConsumer.h in Headers */, + B6F097B03355AD549B91B6EC064C858B /* EXLocation.h in Headers */, + 32406F39949F9AB6F49F7B95044EEE32 /* EXLocationDelegate.h in Headers */, + AD6016CB91141E9D9D9A6D1ABF9A0423 /* EXLocationPermissionRequester.h in Headers */, + E264AFB22F011169145B2FCD95639FE3 /* EXLocationTaskConsumer.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + 9448EAC8D0286D37F065B24667BFBB8F /* EXLocation */ = { + isa = PBXNativeTarget; + buildConfigurationList = 8C76EB7491B96B79E4CE618E531AB7D5 /* Build configuration list for PBXNativeTarget "EXLocation" */; + buildPhases = ( + 60A8777BABF7506D9E9D036D8B33D344 /* Headers */, + 9B9621E7E7AB4DD37DFFB706F8C33E74 /* Sources */, + C37C5F273090A4CDB2985492DD9DD441 /* Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + B2F90AE354323C9DDAAADF06E1F98302 /* PBXTargetDependency */, + A1F616DDA06EB41DBF65F863D6F77BDE /* PBXTargetDependency */, + 6BBC30F15BD03D8085290BC9297AC5EC /* PBXTargetDependency */, + ); + name = EXLocation; + productName = EXLocation; + productReference = 39C55233200E5597BBE97D77C9FD1468 /* libEXLocation.a */; + productType = "com.apple.product-type.library.static"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + E54A591B527E36D2B797D5DFD6FDD61B /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1100; + LastUpgradeCheck = 1100; + }; + buildConfigurationList = 2D73E5825BA2E016E5DB08302D097BE3 /* Build configuration list for PBXProject "EXLocation" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = BF4B53092E4CF6ECCD845AC6FB2E5684; + productRefGroup = 5B730AD5786EE14FDA77C2F5BAA8FB20 /* Products */; + projectDirPath = ""; + projectReferences = ( + { + ProjectRef = 4B209ED9EAE6F3782DB7ACABD6135075 /* UMCore */; + }, + { + ProjectRef = 701BE052E27254611783186AB115FF40 /* UMPermissionsInterface */; + }, + { + ProjectRef = 9489415B04168ED86D11C1D13373B453 /* UMTaskManagerInterface */; + }, + ); + projectRoot = ""; + targets = ( + 9448EAC8D0286D37F065B24667BFBB8F /* EXLocation */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXSourcesBuildPhase section */ + 9B9621E7E7AB4DD37DFFB706F8C33E74 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + B39D19DD7A3C76B97EA6884730C920B8 /* EXGeofencingTaskConsumer.m in Sources */, + D0CDA7C9B026DB526362D3429F59DFF2 /* EXLocation-dummy.m in Sources */, + B241E4CD47D777097927A9FDCDCC3EB7 /* EXLocation.m in Sources */, + DC70FC8294AFEA3739383841FD9F5C2A /* EXLocationDelegate.m in Sources */, + F13AC32A44EE27CE769C8B09E53D4FAE /* EXLocationPermissionRequester.m in Sources */, + 6532A28F7633F277909B1595D27253E6 /* EXLocationTaskConsumer.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 6BBC30F15BD03D8085290BC9297AC5EC /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = UMTaskManagerInterface; + targetProxy = 84CDAC9144F4E679F8527D7CA461A9F4 /* PBXContainerItemProxy */; + }; + A1F616DDA06EB41DBF65F863D6F77BDE /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = UMPermissionsInterface; + targetProxy = 40EEC3FFB0050D47BEED309816FA52DB /* PBXContainerItemProxy */; + }; + B2F90AE354323C9DDAAADF06E1F98302 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = UMCore; + targetProxy = AC6CA902E02A3C748110F3AFDEB7834E /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 1D7554CC09D137F8796368C6405C7180 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 69D8BD17B22DD0A120F0BA9876A26107 /* EXLocation.xcconfig */; + buildSettings = { + CLANG_ENABLE_OBJC_WEAK = NO; + CODE_SIGN_IDENTITY = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + GCC_PREFIX_HEADER = "Target Support Files/EXLocation/EXLocation-prefix.pch"; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PRIVATE_HEADERS_FOLDER_PATH = ""; + PRODUCT_MODULE_NAME = EXLocation; + PRODUCT_NAME = EXLocation; + PUBLIC_HEADERS_FOLDER_PATH = ""; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 4328BC05CC40C31AACBDEA6382B5A9E9 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_PREPROCESSOR_DEFINITIONS = ( + "POD_CONFIGURATION_RELEASE=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + PRODUCT_NAME = "$(TARGET_NAME)"; + STRIP_INSTALLED_PRODUCT = NO; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + SWIFT_VERSION = 5.0; + SYMROOT = "${SRCROOT}/../build"; + }; + name = Release; + }; + 6852A131E24329BFE5C12DEAA650235D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "POD_CONFIGURATION_DEBUG=1", + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + PRODUCT_NAME = "$(TARGET_NAME)"; + STRIP_INSTALLED_PRODUCT = NO; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + SYMROOT = "${SRCROOT}/../build"; + }; + name = Debug; + }; + 7975776FA45330B66BA4402DD96668AD /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 69D8BD17B22DD0A120F0BA9876A26107 /* EXLocation.xcconfig */; + buildSettings = { + CLANG_ENABLE_OBJC_WEAK = NO; + CODE_SIGN_IDENTITY = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + GCC_PREFIX_HEADER = "Target Support Files/EXLocation/EXLocation-prefix.pch"; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PRIVATE_HEADERS_FOLDER_PATH = ""; + PRODUCT_MODULE_NAME = EXLocation; + PRODUCT_NAME = EXLocation; + PUBLIC_HEADERS_FOLDER_PATH = ""; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 2D73E5825BA2E016E5DB08302D097BE3 /* Build configuration list for PBXProject "EXLocation" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6852A131E24329BFE5C12DEAA650235D /* Debug */, + 4328BC05CC40C31AACBDEA6382B5A9E9 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 8C76EB7491B96B79E4CE618E531AB7D5 /* Build configuration list for PBXNativeTarget "EXLocation" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 1D7554CC09D137F8796368C6405C7180 /* Debug */, + 7975776FA45330B66BA4402DD96668AD /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = E54A591B527E36D2B797D5DFD6FDD61B /* Project object */; +} diff --git a/apps/bare-expo/ios/Pods/EXNotifications.xcodeproj/project.pbxproj b/apps/bare-expo/ios/Pods/EXNotifications.xcodeproj/project.pbxproj new file mode 100644 index 0000000000000..aebee6168997b --- /dev/null +++ b/apps/bare-expo/ios/Pods/EXNotifications.xcodeproj/project.pbxproj @@ -0,0 +1,413 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 032DAD8D5FE3ED55AAE6C58DF9FA1DDD /* EXPushTokenModule.m in Sources */ = {isa = PBXBuildFile; fileRef = B9F5A9BB154B52AD2D485F5DB9EF5828 /* EXPushTokenModule.m */; }; + 2B9821086B76016D7DB5D49DC2EBF301 /* EXPushTokenModule.h in Headers */ = {isa = PBXBuildFile; fileRef = 523E6B702446705783463EF095A3AA0D /* EXPushTokenModule.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 602F7BD9621C2C22ABDF3C5FD2F7D260 /* EXPushTokenManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 3A70F3C164079075AC2158FDEBC9DE51 /* EXPushTokenManager.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 669DEBFB9DE0B478C36B576FC717EA6B /* EXNotifications-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = D8389134FA92316D1EFC469D8EACD104 /* EXNotifications-dummy.m */; }; + 75718CEB151A16F616F1D90458B305DA /* EXPushTokenManager.m in Sources */ = {isa = PBXBuildFile; fileRef = D4159ADB2CC18A0C3748BEDAF6CAD952 /* EXPushTokenManager.m */; }; + 7DE7A8D680D29A8A76F16A9FBA76469E /* EXInstallationIdProvider.h in Headers */ = {isa = PBXBuildFile; fileRef = AB3B54A54086A31FBE64A5414BDE21FE /* EXInstallationIdProvider.h */; settings = {ATTRIBUTES = (Project, ); }; }; + BB08E145B17AAB8A85151BE2DCB178A3 /* EXInstallationIdProvider.m in Sources */ = {isa = PBXBuildFile; fileRef = F23C9D736F240520B18131B4A6A970AC /* EXInstallationIdProvider.m */; }; + BD4083D094116265EA110DA858E24185 /* EXPushTokenListener.h in Headers */ = {isa = PBXBuildFile; fileRef = F08E3CC7D0005C33BFDD52B86B7D59D1 /* EXPushTokenListener.h */; settings = {ATTRIBUTES = (Project, ); }; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 63254E6C0ED3EF3463AFAA161F530444 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 6B4054ABD2AFCAF4186CB91DD1245387 /* UMCore.xcodeproj */; + proxyType = 1; + remoteGlobalIDString = 153171642F5C5CBC05FD3EF6B23A3F36; + remoteInfo = UMCore; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 2FFF06A53529F34FC7C6CE629548257B /* EXNotifications.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = EXNotifications.xcconfig; sourceTree = ""; }; + 3A70F3C164079075AC2158FDEBC9DE51 /* EXPushTokenManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = EXPushTokenManager.h; path = EXNotifications/EXPushTokenManager.h; sourceTree = ""; }; + 523E6B702446705783463EF095A3AA0D /* EXPushTokenModule.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = EXPushTokenModule.h; path = EXNotifications/EXPushTokenModule.h; sourceTree = ""; }; + 6B4054ABD2AFCAF4186CB91DD1245387 /* UMCore */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UMCore; path = UMCore.xcodeproj; sourceTree = ""; }; + 83CF5148131DF96037829EB605DE001B /* EXNotifications-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "EXNotifications-prefix.pch"; sourceTree = ""; }; + AB3B54A54086A31FBE64A5414BDE21FE /* EXInstallationIdProvider.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = EXInstallationIdProvider.h; path = EXNotifications/EXInstallationIdProvider.h; sourceTree = ""; }; + AB4F468E1EA9333F76F8937368ACD772 /* libEXNotifications.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = libEXNotifications.a; path = libEXNotifications.a; sourceTree = BUILT_PRODUCTS_DIR; }; + B9F5A9BB154B52AD2D485F5DB9EF5828 /* EXPushTokenModule.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = EXPushTokenModule.m; path = EXNotifications/EXPushTokenModule.m; sourceTree = ""; }; + D4159ADB2CC18A0C3748BEDAF6CAD952 /* EXPushTokenManager.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = EXPushTokenManager.m; path = EXNotifications/EXPushTokenManager.m; sourceTree = ""; }; + D8389134FA92316D1EFC469D8EACD104 /* EXNotifications-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "EXNotifications-dummy.m"; sourceTree = ""; }; + EF7BB141B2982163DDB1D3B8862E1C3B /* EXNotifications.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; path = EXNotifications.podspec; sourceTree = ""; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; + F08E3CC7D0005C33BFDD52B86B7D59D1 /* EXPushTokenListener.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = EXPushTokenListener.h; path = EXNotifications/EXPushTokenListener.h; sourceTree = ""; }; + F23C9D736F240520B18131B4A6A970AC /* EXInstallationIdProvider.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = EXInstallationIdProvider.m; path = EXNotifications/EXInstallationIdProvider.m; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 2664CFD1F2D0B2788473ADB79C86FA17 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 11C75FA9F6E7BD19025CAA04B578E04E /* Products */ = { + isa = PBXGroup; + children = ( + AB4F468E1EA9333F76F8937368ACD772 /* libEXNotifications.a */, + ); + name = Products; + sourceTree = ""; + }; + 13F8C991E3E04DEA0BE15C158F3C5F7E = { + isa = PBXGroup; + children = ( + DE5C7B94E024D27CF89F5138081ED80B /* Dependencies */, + 33E7185C5F058161914FDC3F50821F9F /* EXNotifications */, + CCE96D56F43E72270B9F3BEC1866196F /* Frameworks */, + 11C75FA9F6E7BD19025CAA04B578E04E /* Products */, + ); + sourceTree = ""; + }; + 33E7185C5F058161914FDC3F50821F9F /* EXNotifications */ = { + isa = PBXGroup; + children = ( + AB3B54A54086A31FBE64A5414BDE21FE /* EXInstallationIdProvider.h */, + F23C9D736F240520B18131B4A6A970AC /* EXInstallationIdProvider.m */, + F08E3CC7D0005C33BFDD52B86B7D59D1 /* EXPushTokenListener.h */, + 3A70F3C164079075AC2158FDEBC9DE51 /* EXPushTokenManager.h */, + D4159ADB2CC18A0C3748BEDAF6CAD952 /* EXPushTokenManager.m */, + 523E6B702446705783463EF095A3AA0D /* EXPushTokenModule.h */, + B9F5A9BB154B52AD2D485F5DB9EF5828 /* EXPushTokenModule.m */, + C55B625FEEA2DBB69EC5E0F618F05044 /* Pod */, + BF527650578DFB2D1FABFA368EE5C5BF /* Support Files */, + ); + name = EXNotifications; + path = "../../../../packages/expo-notifications/ios"; + sourceTree = ""; + }; + BF527650578DFB2D1FABFA368EE5C5BF /* Support Files */ = { + isa = PBXGroup; + children = ( + 2FFF06A53529F34FC7C6CE629548257B /* EXNotifications.xcconfig */, + D8389134FA92316D1EFC469D8EACD104 /* EXNotifications-dummy.m */, + 83CF5148131DF96037829EB605DE001B /* EXNotifications-prefix.pch */, + ); + name = "Support Files"; + path = "../../../apps/bare-expo/ios/Pods/Target Support Files/EXNotifications"; + sourceTree = ""; + }; + C55B625FEEA2DBB69EC5E0F618F05044 /* Pod */ = { + isa = PBXGroup; + children = ( + EF7BB141B2982163DDB1D3B8862E1C3B /* EXNotifications.podspec */, + ); + name = Pod; + sourceTree = ""; + }; + CCE96D56F43E72270B9F3BEC1866196F /* Frameworks */ = { + isa = PBXGroup; + children = ( + ); + name = Frameworks; + sourceTree = ""; + }; + DE5C7B94E024D27CF89F5138081ED80B /* Dependencies */ = { + isa = PBXGroup; + children = ( + 6B4054ABD2AFCAF4186CB91DD1245387 /* UMCore */, + ); + name = Dependencies; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 86FEEB3F4E6A504C3549ECD450B34006 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 7DE7A8D680D29A8A76F16A9FBA76469E /* EXInstallationIdProvider.h in Headers */, + BD4083D094116265EA110DA858E24185 /* EXPushTokenListener.h in Headers */, + 602F7BD9621C2C22ABDF3C5FD2F7D260 /* EXPushTokenManager.h in Headers */, + 2B9821086B76016D7DB5D49DC2EBF301 /* EXPushTokenModule.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + 6C660F81CE4F0EC96D208B20C3E8B154 /* EXNotifications */ = { + isa = PBXNativeTarget; + buildConfigurationList = DCEC6D20CF8BB8164644697F17033994 /* Build configuration list for PBXNativeTarget "EXNotifications" */; + buildPhases = ( + 86FEEB3F4E6A504C3549ECD450B34006 /* Headers */, + 193BD917DA085E2BEB5CA6C4DC743F93 /* Sources */, + 2664CFD1F2D0B2788473ADB79C86FA17 /* Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + 85BB29091C18EB42E3FB15AB8E164831 /* PBXTargetDependency */, + ); + name = EXNotifications; + productName = EXNotifications; + productReference = AB4F468E1EA9333F76F8937368ACD772 /* libEXNotifications.a */; + productType = "com.apple.product-type.library.static"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 5E314CA8E40739B611EF78EB1939B691 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1100; + LastUpgradeCheck = 1100; + }; + buildConfigurationList = 990AC4F59C718B1E37447D25BED3BC0F /* Build configuration list for PBXProject "EXNotifications" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 13F8C991E3E04DEA0BE15C158F3C5F7E; + productRefGroup = 11C75FA9F6E7BD19025CAA04B578E04E /* Products */; + projectDirPath = ""; + projectReferences = ( + { + ProjectRef = 6B4054ABD2AFCAF4186CB91DD1245387 /* UMCore */; + }, + ); + projectRoot = ""; + targets = ( + 6C660F81CE4F0EC96D208B20C3E8B154 /* EXNotifications */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXSourcesBuildPhase section */ + 193BD917DA085E2BEB5CA6C4DC743F93 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + BB08E145B17AAB8A85151BE2DCB178A3 /* EXInstallationIdProvider.m in Sources */, + 669DEBFB9DE0B478C36B576FC717EA6B /* EXNotifications-dummy.m in Sources */, + 75718CEB151A16F616F1D90458B305DA /* EXPushTokenManager.m in Sources */, + 032DAD8D5FE3ED55AAE6C58DF9FA1DDD /* EXPushTokenModule.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 85BB29091C18EB42E3FB15AB8E164831 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = UMCore; + targetProxy = 63254E6C0ED3EF3463AFAA161F530444 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 06A68EB852A48A112EBAB52B72715E0F /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "POD_CONFIGURATION_DEBUG=1", + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + PRODUCT_NAME = "$(TARGET_NAME)"; + STRIP_INSTALLED_PRODUCT = NO; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + SYMROOT = "${SRCROOT}/../build"; + }; + name = Debug; + }; + 081966B3071319F9B89FE04EC6954996 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 2FFF06A53529F34FC7C6CE629548257B /* EXNotifications.xcconfig */; + buildSettings = { + CLANG_ENABLE_OBJC_WEAK = NO; + CODE_SIGN_IDENTITY = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + GCC_PREFIX_HEADER = "Target Support Files/EXNotifications/EXNotifications-prefix.pch"; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PRIVATE_HEADERS_FOLDER_PATH = ""; + PRODUCT_MODULE_NAME = EXNotifications; + PRODUCT_NAME = EXNotifications; + PUBLIC_HEADERS_FOLDER_PATH = ""; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + C713B0E6DDE114F062471662491E7F99 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_PREPROCESSOR_DEFINITIONS = ( + "POD_CONFIGURATION_RELEASE=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + PRODUCT_NAME = "$(TARGET_NAME)"; + STRIP_INSTALLED_PRODUCT = NO; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + SWIFT_VERSION = 5.0; + SYMROOT = "${SRCROOT}/../build"; + }; + name = Release; + }; + C91789190E1BBEC706168F3BD221ADBE /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 2FFF06A53529F34FC7C6CE629548257B /* EXNotifications.xcconfig */; + buildSettings = { + CLANG_ENABLE_OBJC_WEAK = NO; + CODE_SIGN_IDENTITY = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + GCC_PREFIX_HEADER = "Target Support Files/EXNotifications/EXNotifications-prefix.pch"; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PRIVATE_HEADERS_FOLDER_PATH = ""; + PRODUCT_MODULE_NAME = EXNotifications; + PRODUCT_NAME = EXNotifications; + PUBLIC_HEADERS_FOLDER_PATH = ""; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 990AC4F59C718B1E37447D25BED3BC0F /* Build configuration list for PBXProject "EXNotifications" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 06A68EB852A48A112EBAB52B72715E0F /* Debug */, + C713B0E6DDE114F062471662491E7F99 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + DCEC6D20CF8BB8164644697F17033994 /* Build configuration list for PBXNativeTarget "EXNotifications" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 081966B3071319F9B89FE04EC6954996 /* Debug */, + C91789190E1BBEC706168F3BD221ADBE /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 5E314CA8E40739B611EF78EB1939B691 /* Project object */; +} diff --git a/apps/bare-expo/ios/Pods/EXSQLite.xcodeproj/project.pbxproj b/apps/bare-expo/ios/Pods/EXSQLite.xcodeproj/project.pbxproj index fc9154afeeb76..f85b95a5759a8 100644 --- a/apps/bare-expo/ios/Pods/EXSQLite.xcodeproj/project.pbxproj +++ b/apps/bare-expo/ios/Pods/EXSQLite.xcodeproj/project.pbxproj @@ -7,9 +7,9 @@ objects = { /* Begin PBXBuildFile section */ - 18547F0715A1C174CBE702D18B74B128 /* EXSQLite.m in Sources */ = {isa = PBXBuildFile; fileRef = B06BAD0600E1793DE43351AA20533AB0 /* EXSQLite.m */; }; - 80C2499C52E3D74EC383C9B7D161ACBE /* EXSQLite-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 735C5A2B94A394B90AE5C2D96DC606D1 /* EXSQLite-dummy.m */; }; - BFFD921BAA03E8315205B02F171AD4EE /* EXSQLite.h in Headers */ = {isa = PBXBuildFile; fileRef = 3A8D9CA691649ABD5E7F7A320B9AB86D /* EXSQLite.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 078630BC72B89BDF8085EA236847BC2E /* EXSQLite.m in Sources */ = {isa = PBXBuildFile; fileRef = 32F1B227684CCC2606F1974671DF431F /* EXSQLite.m */; }; + 75E60CFF928CC88ADC1BC9F7EC3B7688 /* EXSQLite.h in Headers */ = {isa = PBXBuildFile; fileRef = 2D53D0ECD3B4B55ED30E32F8060D7932 /* EXSQLite.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 80C2499C52E3D74EC383C9B7D161ACBE /* EXSQLite-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = F583B6BFE6E30FE22282DA996CB24359 /* EXSQLite-dummy.m */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -30,15 +30,15 @@ /* End PBXContainerItemProxy section */ /* Begin PBXFileReference section */ - 3A8D9CA691649ABD5E7F7A320B9AB86D /* EXSQLite.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = EXSQLite.h; path = EXSQLite/EXSQLite.h; sourceTree = ""; }; - 735C5A2B94A394B90AE5C2D96DC606D1 /* EXSQLite-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "EXSQLite-dummy.m"; sourceTree = ""; }; + 2D53D0ECD3B4B55ED30E32F8060D7932 /* EXSQLite.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = EXSQLite.h; path = EXSQlite/EXSQLite.h; sourceTree = ""; }; + 32F1B227684CCC2606F1974671DF431F /* EXSQLite.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = EXSQLite.m; path = EXSQlite/EXSQLite.m; sourceTree = ""; }; + 53BDD49D1BAC8A5B2605CF3D597C04A0 /* EXSQLite.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; path = EXSQLite.podspec; sourceTree = ""; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; + 8E929CCDBFBFAF5CE2F211F7FB81DA14 /* EXSQLite-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "EXSQLite-prefix.pch"; sourceTree = ""; }; 94911D5E1E8F28CF3885A99F2F267235 /* UMCore */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UMCore; path = UMCore.xcodeproj; sourceTree = ""; }; - 99AF223144170EB93110C48BB8924DED /* EXSQLite.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = EXSQLite.xcconfig; sourceTree = ""; }; - B06BAD0600E1793DE43351AA20533AB0 /* EXSQLite.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = EXSQLite.m; path = EXSQLite/EXSQLite.m; sourceTree = ""; }; B967A41C9278E23CE745A4B048C5C5D5 /* UMFileSystemInterface */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UMFileSystemInterface; path = UMFileSystemInterface.xcodeproj; sourceTree = ""; }; + C82B27F63ECE0C2906888CE161752B7C /* EXSQLite.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = EXSQLite.xcconfig; sourceTree = ""; }; EEB2B69588D5A9FA232B89A27D9653E6 /* libEXSQLite.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = libEXSQLite.a; path = libEXSQLite.a; sourceTree = BUILT_PRODUCTS_DIR; }; - FE33F2067CFADAC4881227A1C5AACCA0 /* EXSQLite.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; path = EXSQLite.podspec; sourceTree = ""; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; - FFA24E3EDD2B1B9238CEACED39BBAD41 /* EXSQLite-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "EXSQLite-prefix.pch"; sourceTree = ""; }; + F583B6BFE6E30FE22282DA996CB24359 /* EXSQLite-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "EXSQLite-dummy.m"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -61,35 +61,23 @@ name = Dependencies; sourceTree = ""; }; - 307B73A52257A5CC64AEC35FC216A36B /* Support Files */ = { + 6E8EA2D5AE51B0551FA05F4957596B39 /* Pod */ = { isa = PBXGroup; children = ( - 99AF223144170EB93110C48BB8924DED /* EXSQLite.xcconfig */, - 735C5A2B94A394B90AE5C2D96DC606D1 /* EXSQLite-dummy.m */, - FFA24E3EDD2B1B9238CEACED39BBAD41 /* EXSQLite-prefix.pch */, - ); - name = "Support Files"; - path = "../../../apps/bare-expo/ios/Pods/Target Support Files/EXSQLite"; - sourceTree = ""; - }; - 361AF5281A714450616060DD5AFBF027 /* Pod */ = { - isa = PBXGroup; - children = ( - FE33F2067CFADAC4881227A1C5AACCA0 /* EXSQLite.podspec */, + 53BDD49D1BAC8A5B2605CF3D597C04A0 /* EXSQLite.podspec */, ); name = Pod; sourceTree = ""; }; - 67895D47E23DCB2877254AA59EF60D84 /* EXSQLite */ = { + 741B4B3303D8D19E14842FCC80ED24C0 /* Support Files */ = { isa = PBXGroup; children = ( - 3A8D9CA691649ABD5E7F7A320B9AB86D /* EXSQLite.h */, - B06BAD0600E1793DE43351AA20533AB0 /* EXSQLite.m */, - 361AF5281A714450616060DD5AFBF027 /* Pod */, - 307B73A52257A5CC64AEC35FC216A36B /* Support Files */, + C82B27F63ECE0C2906888CE161752B7C /* EXSQLite.xcconfig */, + F583B6BFE6E30FE22282DA996CB24359 /* EXSQLite-dummy.m */, + 8E929CCDBFBFAF5CE2F211F7FB81DA14 /* EXSQLite-prefix.pch */, ); - name = EXSQLite; - path = "../../../../packages/expo-sqlite/ios"; + name = "Support Files"; + path = "../../../apps/bare-expo/ios/Pods/Target Support Files/EXSQLite"; sourceTree = ""; }; 93910376DCF49EE5D5699CA663A6FDEB /* Products */ = { @@ -104,7 +92,7 @@ isa = PBXGroup; children = ( 0AF2988D9050F2A576C12E0ED6527463 /* Dependencies */, - 67895D47E23DCB2877254AA59EF60D84 /* EXSQLite */, + EE5681BF05DBF46BD7392ACA2B42EB44 /* EXSQLite */, E9F75F27B5522BE6B8A33B0636211CD1 /* Frameworks */, 93910376DCF49EE5D5699CA663A6FDEB /* Products */, ); @@ -117,6 +105,18 @@ name = Frameworks; sourceTree = ""; }; + EE5681BF05DBF46BD7392ACA2B42EB44 /* EXSQLite */ = { + isa = PBXGroup; + children = ( + 2D53D0ECD3B4B55ED30E32F8060D7932 /* EXSQLite.h */, + 32F1B227684CCC2606F1974671DF431F /* EXSQLite.m */, + 6E8EA2D5AE51B0551FA05F4957596B39 /* Pod */, + 741B4B3303D8D19E14842FCC80ED24C0 /* Support Files */, + ); + name = EXSQLite; + path = "../../../../packages/expo-sqlite/ios"; + sourceTree = ""; + }; /* End PBXGroup section */ /* Begin PBXHeadersBuildPhase section */ @@ -124,7 +124,7 @@ isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( - BFFD921BAA03E8315205B02F171AD4EE /* EXSQLite.h in Headers */, + 75E60CFF928CC88ADC1BC9F7EC3B7688 /* EXSQLite.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -191,7 +191,7 @@ buildActionMask = 2147483647; files = ( 80C2499C52E3D74EC383C9B7D161ACBE /* EXSQLite-dummy.m in Sources */, - 18547F0715A1C174CBE702D18B74B128 /* EXSQLite.m in Sources */, + 078630BC72B89BDF8085EA236847BC2E /* EXSQLite.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -213,7 +213,7 @@ /* Begin XCBuildConfiguration section */ 1C07853AAF4EC7FEE5E13F74C2A9CA2F /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 99AF223144170EB93110C48BB8924DED /* EXSQLite.xcconfig */; + baseConfigurationReference = C82B27F63ECE0C2906888CE161752B7C /* EXSQLite.xcconfig */; buildSettings = { CLANG_ENABLE_OBJC_WEAK = NO; CODE_SIGN_IDENTITY = "iPhone Developer"; @@ -237,7 +237,7 @@ }; 1E9D9B3B7CF6FCE9669A041BAC2F4755 /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 99AF223144170EB93110C48BB8924DED /* EXSQLite.xcconfig */; + baseConfigurationReference = C82B27F63ECE0C2906888CE161752B7C /* EXSQLite.xcconfig */; buildSettings = { CLANG_ENABLE_OBJC_WEAK = NO; CODE_SIGN_IDENTITY = "iPhone Developer"; diff --git a/apps/bare-expo/ios/Pods/EXScreenOrientation.xcodeproj/project.pbxproj b/apps/bare-expo/ios/Pods/EXScreenOrientation.xcodeproj/project.pbxproj new file mode 100644 index 0000000000000..f57a7c0542e65 --- /dev/null +++ b/apps/bare-expo/ios/Pods/EXScreenOrientation.xcodeproj/project.pbxproj @@ -0,0 +1,435 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 19CAFBDCF8B7CD2666B238CB7CAFB3E2 /* EXScreenOrientationUtilities.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B3B4A8252CB9B44C9F3B9F66D78160 /* EXScreenOrientationUtilities.m */; }; + 1B590F5D6A45AB38DF834D45C85F256E /* EXScreenOrientationViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = D0887B8ECCBF0856EE84C98045400F51 /* EXScreenOrientationViewController.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 23CFAEC4F405D3CE37AA86B749E742EE /* EXScreenOrientationUtilities.h in Headers */ = {isa = PBXBuildFile; fileRef = 8519E23D77B3B2F0A0412B47E54C935F /* EXScreenOrientationUtilities.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 3187B090CF1138A54301CD73570C27FB /* EXScreenOrientationViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0AB12C889665155533B1D32ADD448461 /* EXScreenOrientationViewController.m */; }; + C191EA115F52E13F0FF3818B3C4FED18 /* EXScreenOrientation-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 667F953C8782EC04937C2A8DA7C60080 /* EXScreenOrientation-dummy.m */; }; + C1FCBC9417B5E34ECF6E9EF15F25160D /* EXScreenOrientationModule.h in Headers */ = {isa = PBXBuildFile; fileRef = A5A12ED568F91B2310F4B78B2BFB72B6 /* EXScreenOrientationModule.h */; settings = {ATTRIBUTES = (Project, ); }; }; + D8B1B14168CED6835393FBFDB1733A68 /* EXScreenOrientationRegistry.h in Headers */ = {isa = PBXBuildFile; fileRef = F048BFC650EA6A72DCB34245434ADA7F /* EXScreenOrientationRegistry.h */; settings = {ATTRIBUTES = (Project, ); }; }; + DB3027FF6DF15395646C4B8CC9A4B198 /* EXScreenOrientationRegistry.m in Sources */ = {isa = PBXBuildFile; fileRef = F537EE7D43662EFCAB53E90FECC16217 /* EXScreenOrientationRegistry.m */; }; + E03747FA90434991DBFCD30353E17691 /* EXScreenOrientationModule.m in Sources */ = {isa = PBXBuildFile; fileRef = EFBB821D51017ABC339C8D26A4542F02 /* EXScreenOrientationModule.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 448D91DE668BF54552F1DB8D7F246254 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = F29A965EC49A315CBE08E61FD04A6F54 /* UMCore.xcodeproj */; + proxyType = 1; + remoteGlobalIDString = 153171642F5C5CBC05FD3EF6B23A3F36; + remoteInfo = UMCore; + }; + 85298C9B9F09110815780427D2C4B5CD /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = D8E3B542AC88C7CF2991D44EC4E50F7F /* React-Core.xcodeproj */; + proxyType = 1; + remoteGlobalIDString = 5DA1A74647F652AE8E4DE074AFC4C6B7; + remoteInfo = "React-Core"; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 0AB12C889665155533B1D32ADD448461 /* EXScreenOrientationViewController.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = EXScreenOrientationViewController.m; path = EXScreenOrientation/EXScreenOrientationViewController.m; sourceTree = ""; }; + 29B3B4A8252CB9B44C9F3B9F66D78160 /* EXScreenOrientationUtilities.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = EXScreenOrientationUtilities.m; path = EXScreenOrientation/EXScreenOrientationUtilities.m; sourceTree = ""; }; + 667F953C8782EC04937C2A8DA7C60080 /* EXScreenOrientation-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "EXScreenOrientation-dummy.m"; sourceTree = ""; }; + 73A299544496837B779B242A643DBCCF /* EXScreenOrientation.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; path = EXScreenOrientation.podspec; sourceTree = ""; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; + 8519E23D77B3B2F0A0412B47E54C935F /* EXScreenOrientationUtilities.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = EXScreenOrientationUtilities.h; path = EXScreenOrientation/EXScreenOrientationUtilities.h; sourceTree = ""; }; + 95099331B64F313BC1EB8C41D0D21476 /* libEXScreenOrientation.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = libEXScreenOrientation.a; path = libEXScreenOrientation.a; sourceTree = BUILT_PRODUCTS_DIR; }; + 95DB4F859E131B6C201E1115D12FA8C5 /* EXScreenOrientation-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "EXScreenOrientation-prefix.pch"; sourceTree = ""; }; + 9A1BBE3FE68A4A6CC69BE34216AB40D8 /* EXScreenOrientation.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = EXScreenOrientation.xcconfig; sourceTree = ""; }; + A5A12ED568F91B2310F4B78B2BFB72B6 /* EXScreenOrientationModule.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = EXScreenOrientationModule.h; path = EXScreenOrientation/EXScreenOrientationModule.h; sourceTree = ""; }; + D0887B8ECCBF0856EE84C98045400F51 /* EXScreenOrientationViewController.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = EXScreenOrientationViewController.h; path = EXScreenOrientation/EXScreenOrientationViewController.h; sourceTree = ""; }; + D8E3B542AC88C7CF2991D44EC4E50F7F /* React-Core */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "React-Core"; path = "React-Core.xcodeproj"; sourceTree = ""; }; + EFBB821D51017ABC339C8D26A4542F02 /* EXScreenOrientationModule.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = EXScreenOrientationModule.m; path = EXScreenOrientation/EXScreenOrientationModule.m; sourceTree = ""; }; + F048BFC650EA6A72DCB34245434ADA7F /* EXScreenOrientationRegistry.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = EXScreenOrientationRegistry.h; path = EXScreenOrientation/EXScreenOrientationRegistry.h; sourceTree = ""; }; + F29A965EC49A315CBE08E61FD04A6F54 /* UMCore */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UMCore; path = UMCore.xcodeproj; sourceTree = ""; }; + F537EE7D43662EFCAB53E90FECC16217 /* EXScreenOrientationRegistry.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = EXScreenOrientationRegistry.m; path = EXScreenOrientation/EXScreenOrientationRegistry.m; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 5D8935E9B00A421D65E309A0A534194F /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 0F6138406D843F830C260C0BD2F64290 /* EXScreenOrientation */ = { + isa = PBXGroup; + children = ( + A5A12ED568F91B2310F4B78B2BFB72B6 /* EXScreenOrientationModule.h */, + EFBB821D51017ABC339C8D26A4542F02 /* EXScreenOrientationModule.m */, + F048BFC650EA6A72DCB34245434ADA7F /* EXScreenOrientationRegistry.h */, + F537EE7D43662EFCAB53E90FECC16217 /* EXScreenOrientationRegistry.m */, + 8519E23D77B3B2F0A0412B47E54C935F /* EXScreenOrientationUtilities.h */, + 29B3B4A8252CB9B44C9F3B9F66D78160 /* EXScreenOrientationUtilities.m */, + D0887B8ECCBF0856EE84C98045400F51 /* EXScreenOrientationViewController.h */, + 0AB12C889665155533B1D32ADD448461 /* EXScreenOrientationViewController.m */, + 1B1EAB8E3736B14371121A7F004646CE /* Pod */, + D47C330A3576C4021BE6A5EBB71E6FF1 /* Support Files */, + ); + name = EXScreenOrientation; + path = "../../../../packages/expo-screen-orientation/ios"; + sourceTree = ""; + }; + 1B1EAB8E3736B14371121A7F004646CE /* Pod */ = { + isa = PBXGroup; + children = ( + 73A299544496837B779B242A643DBCCF /* EXScreenOrientation.podspec */, + ); + name = Pod; + sourceTree = ""; + }; + 36F90C097ABA5D5CD9CA0E81142B0F1C /* Frameworks */ = { + isa = PBXGroup; + children = ( + ); + name = Frameworks; + sourceTree = ""; + }; + 6AEABAD7415E90FAE27384C60B68A872 /* Dependencies */ = { + isa = PBXGroup; + children = ( + D8E3B542AC88C7CF2991D44EC4E50F7F /* React-Core */, + F29A965EC49A315CBE08E61FD04A6F54 /* UMCore */, + ); + name = Dependencies; + sourceTree = ""; + }; + 85290EDC835CE7D3BFACC4678C987038 = { + isa = PBXGroup; + children = ( + 6AEABAD7415E90FAE27384C60B68A872 /* Dependencies */, + 0F6138406D843F830C260C0BD2F64290 /* EXScreenOrientation */, + 36F90C097ABA5D5CD9CA0E81142B0F1C /* Frameworks */, + 8DF2D94F4093180D1A0848217101491C /* Products */, + ); + sourceTree = ""; + }; + 8DF2D94F4093180D1A0848217101491C /* Products */ = { + isa = PBXGroup; + children = ( + 95099331B64F313BC1EB8C41D0D21476 /* libEXScreenOrientation.a */, + ); + name = Products; + sourceTree = ""; + }; + D47C330A3576C4021BE6A5EBB71E6FF1 /* Support Files */ = { + isa = PBXGroup; + children = ( + 9A1BBE3FE68A4A6CC69BE34216AB40D8 /* EXScreenOrientation.xcconfig */, + 667F953C8782EC04937C2A8DA7C60080 /* EXScreenOrientation-dummy.m */, + 95DB4F859E131B6C201E1115D12FA8C5 /* EXScreenOrientation-prefix.pch */, + ); + name = "Support Files"; + path = "../../../apps/bare-expo/ios/Pods/Target Support Files/EXScreenOrientation"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 5AA5B378186F50F2DA16C45D0C380E15 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + C1FCBC9417B5E34ECF6E9EF15F25160D /* EXScreenOrientationModule.h in Headers */, + D8B1B14168CED6835393FBFDB1733A68 /* EXScreenOrientationRegistry.h in Headers */, + 23CFAEC4F405D3CE37AA86B749E742EE /* EXScreenOrientationUtilities.h in Headers */, + 1B590F5D6A45AB38DF834D45C85F256E /* EXScreenOrientationViewController.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + AA651E1AC215FDCE87E218058A342349 /* EXScreenOrientation */ = { + isa = PBXNativeTarget; + buildConfigurationList = 121CCAA931E12AC4CCD2FBB67C4EDE0C /* Build configuration list for PBXNativeTarget "EXScreenOrientation" */; + buildPhases = ( + 5AA5B378186F50F2DA16C45D0C380E15 /* Headers */, + A0CE658EB127B56C73C2E4AD4C24BBDF /* Sources */, + 5D8935E9B00A421D65E309A0A534194F /* Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + 13CC68D73752DE5304590B2AC56AD35D /* PBXTargetDependency */, + 72F0A3D6F576A916C653804E9DDFB9FA /* PBXTargetDependency */, + ); + name = EXScreenOrientation; + productName = EXScreenOrientation; + productReference = 95099331B64F313BC1EB8C41D0D21476 /* libEXScreenOrientation.a */; + productType = "com.apple.product-type.library.static"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 22406FB635C5D804203B3367F70EC368 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1100; + LastUpgradeCheck = 1100; + }; + buildConfigurationList = 5EB446D8747D58C8AE18C4B8D7E65A20 /* Build configuration list for PBXProject "EXScreenOrientation" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 85290EDC835CE7D3BFACC4678C987038; + productRefGroup = 8DF2D94F4093180D1A0848217101491C /* Products */; + projectDirPath = ""; + projectReferences = ( + { + ProjectRef = F29A965EC49A315CBE08E61FD04A6F54 /* UMCore */; + }, + { + ProjectRef = D8E3B542AC88C7CF2991D44EC4E50F7F /* React-Core */; + }, + ); + projectRoot = ""; + targets = ( + AA651E1AC215FDCE87E218058A342349 /* EXScreenOrientation */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXSourcesBuildPhase section */ + A0CE658EB127B56C73C2E4AD4C24BBDF /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + C191EA115F52E13F0FF3818B3C4FED18 /* EXScreenOrientation-dummy.m in Sources */, + E03747FA90434991DBFCD30353E17691 /* EXScreenOrientationModule.m in Sources */, + DB3027FF6DF15395646C4B8CC9A4B198 /* EXScreenOrientationRegistry.m in Sources */, + 19CAFBDCF8B7CD2666B238CB7CAFB3E2 /* EXScreenOrientationUtilities.m in Sources */, + 3187B090CF1138A54301CD73570C27FB /* EXScreenOrientationViewController.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 13CC68D73752DE5304590B2AC56AD35D /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = "React-Core"; + targetProxy = 85298C9B9F09110815780427D2C4B5CD /* PBXContainerItemProxy */; + }; + 72F0A3D6F576A916C653804E9DDFB9FA /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = UMCore; + targetProxy = 448D91DE668BF54552F1DB8D7F246254 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 3DF9DE17AF3E87205360D7676A505422 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9A1BBE3FE68A4A6CC69BE34216AB40D8 /* EXScreenOrientation.xcconfig */; + buildSettings = { + CLANG_ENABLE_OBJC_WEAK = NO; + CODE_SIGN_IDENTITY = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + GCC_PREFIX_HEADER = "Target Support Files/EXScreenOrientation/EXScreenOrientation-prefix.pch"; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PRIVATE_HEADERS_FOLDER_PATH = ""; + PRODUCT_MODULE_NAME = EXScreenOrientation; + PRODUCT_NAME = EXScreenOrientation; + PUBLIC_HEADERS_FOLDER_PATH = ""; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 8C11934B61BD5CD332AE83319E29C08D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9A1BBE3FE68A4A6CC69BE34216AB40D8 /* EXScreenOrientation.xcconfig */; + buildSettings = { + CLANG_ENABLE_OBJC_WEAK = NO; + CODE_SIGN_IDENTITY = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + GCC_PREFIX_HEADER = "Target Support Files/EXScreenOrientation/EXScreenOrientation-prefix.pch"; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PRIVATE_HEADERS_FOLDER_PATH = ""; + PRODUCT_MODULE_NAME = EXScreenOrientation; + PRODUCT_NAME = EXScreenOrientation; + PUBLIC_HEADERS_FOLDER_PATH = ""; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 9EC46603FB8DD5B527FD88F23AD6A495 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "POD_CONFIGURATION_DEBUG=1", + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + PRODUCT_NAME = "$(TARGET_NAME)"; + STRIP_INSTALLED_PRODUCT = NO; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + SYMROOT = "${SRCROOT}/../build"; + }; + name = Debug; + }; + A5326715CB4BC9955D3177FC4DAD9A8F /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_PREPROCESSOR_DEFINITIONS = ( + "POD_CONFIGURATION_RELEASE=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + PRODUCT_NAME = "$(TARGET_NAME)"; + STRIP_INSTALLED_PRODUCT = NO; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + SWIFT_VERSION = 5.0; + SYMROOT = "${SRCROOT}/../build"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 121CCAA931E12AC4CCD2FBB67C4EDE0C /* Build configuration list for PBXNativeTarget "EXScreenOrientation" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 8C11934B61BD5CD332AE83319E29C08D /* Debug */, + 3DF9DE17AF3E87205360D7676A505422 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 5EB446D8747D58C8AE18C4B8D7E65A20 /* Build configuration list for PBXProject "EXScreenOrientation" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 9EC46603FB8DD5B527FD88F23AD6A495 /* Debug */, + A5326715CB4BC9955D3177FC4DAD9A8F /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 22406FB635C5D804203B3367F70EC368 /* Project object */; +} diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit.xcodeproj/project.pbxproj b/apps/bare-expo/ios/Pods/FBSDKCoreKit.xcodeproj/project.pbxproj new file mode 100644 index 0000000000000..efc701ce6b75e --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit.xcodeproj/project.pbxproj @@ -0,0 +1,1227 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 01156FCF4DB0BC0CF1DEB61E31EBBFA2 /* FBSDKCodelessParameterComponent.m in Sources */ = {isa = PBXBuildFile; fileRef = AEA302F8E73FB0102396EFB3CC9AED70 /* FBSDKCodelessParameterComponent.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 01ECCE7A9CDB24FA7D7F35F13067479D /* FBSDKBridgeAPIProtocolWebV2.m in Sources */ = {isa = PBXBuildFile; fileRef = 8424929B3982CD9C28810ECDF9690C11 /* FBSDKBridgeAPIProtocolWebV2.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 04C479D60F97A62C5D36042D5FAD6230 /* FBSDKKeychainStoreViaBundleID.h in Headers */ = {isa = PBXBuildFile; fileRef = C0EE0383E0C1FCAB483C82F76156B88E /* FBSDKKeychainStoreViaBundleID.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 05287C7E5C4208C36944DAA65E50E009 /* FBSDKURLSession.m in Sources */ = {isa = PBXBuildFile; fileRef = D263E7603C8763E40E779A08D814067E /* FBSDKURLSession.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 05480CA2D9C784C94CB7392106BF4AC9 /* FBSDKError.m in Sources */ = {isa = PBXBuildFile; fileRef = 7C554BA5E717E1B5A85649064D647FC8 /* FBSDKError.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 0781AFADA0EC529BBBA163BFE165CE7F /* FBSDKProfile.m in Sources */ = {isa = PBXBuildFile; fileRef = 74A2114BEA0C0AD92017549FF863F308 /* FBSDKProfile.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 0781F438E51EDD1BA588337833FF3BBE /* FBSDKServerConfigurationManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 706A5E5A091D7037066EC17C69FBC928 /* FBSDKServerConfigurationManager.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 094601A6151DD019CD77F9B0E4CB1C7E /* FBSDKBasicUtility.m in Sources */ = {isa = PBXBuildFile; fileRef = FD3F21895D69072A4E0ECE44475F431E /* FBSDKBasicUtility.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 0B55D68D170309E81B6976ECB190BE97 /* FBSDKLogger.h in Headers */ = {isa = PBXBuildFile; fileRef = 03A1389E087FFA3ED286C91D7DC37ED0 /* FBSDKLogger.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 0B86E910DD2BE20F307C2D5B2B8AE773 /* FBSDKTriStateBOOL.h in Headers */ = {isa = PBXBuildFile; fileRef = E9885ABF6925EB37484BDF081860AC37 /* FBSDKTriStateBOOL.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 0BA317011CD7E8278B754654CA342F23 /* FBSDKURL.h in Headers */ = {isa = PBXBuildFile; fileRef = 13306AE453260C2030C1BA47AD37A1D6 /* FBSDKURL.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 0DDED68E5E28CCBB73099E2319E4EE2F /* FBSDKGateKeeperManager.m in Sources */ = {isa = PBXBuildFile; fileRef = B6F086B4418A3AB60B7ABCF09BBCBB98 /* FBSDKGateKeeperManager.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 111C430817688C10ADA45CD23ED8C57B /* FBSDKAppLinkTarget.m in Sources */ = {isa = PBXBuildFile; fileRef = 8F6CAA5A66E9ED89A91277B7A97D6926 /* FBSDKAppLinkTarget.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 115829157BBCD7C62B6351CE33C400FD /* FBSDKCoreKit.h in Headers */ = {isa = PBXBuildFile; fileRef = AFC535B9018540ED58603455A4DC1940 /* FBSDKCoreKit.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 12A4B6133305122DD56B247CEE2416F2 /* FBSDKErrorConfiguration.m in Sources */ = {isa = PBXBuildFile; fileRef = 2F939984744895F80614BE5E9186D88E /* FBSDKErrorConfiguration.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 12AA2C7773D50D2FF9525D1869578FBD /* FBSDKAppLinkUtility.m in Sources */ = {isa = PBXBuildFile; fileRef = DCCF60600650668C69C5DBF5FF6A5416 /* FBSDKAppLinkUtility.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 168626EC9FF846D9BFF08E423DBD9F6F /* FBSDKAccessTokenExpirer.h in Headers */ = {isa = PBXBuildFile; fileRef = 300746E41F4A90BBFEC8C3BFB1941CE4 /* FBSDKAccessTokenExpirer.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 186CD8D4BE1E87CDEF208A96FB77F2EF /* FBSDKLogo.m in Sources */ = {isa = PBXBuildFile; fileRef = 0AFDA0E0020CBE0E2C52A2ED93FDB0B3 /* FBSDKLogo.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 1C318787DF25091B088166E50FDD2342 /* FBSDKAudioResourceLoader.h in Headers */ = {isa = PBXBuildFile; fileRef = B0C83892228DC8B4CFFA318DF4AE3464 /* FBSDKAudioResourceLoader.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 1DDB683982541D7F01E3B48B74A17E48 /* FBSDKMetadataIndexer.m in Sources */ = {isa = PBXBuildFile; fileRef = D5CBA9CEAC9F5DBE1F8F4CEDED2AA41B /* FBSDKMetadataIndexer.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 1E8383A45CCBD0CA3C83A65D5400E04D /* FBSDKImageDownloader.m in Sources */ = {isa = PBXBuildFile; fileRef = EF16831879574B34949A2CFB3E8FB8CC /* FBSDKImageDownloader.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 1EEFD8D87EE4642141EF60B1777EFE13 /* FBSDKCodelessMacros.h in Headers */ = {isa = PBXBuildFile; fileRef = 28F3F2240D912F2A867CE893945F0163 /* FBSDKCodelessMacros.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 1F25D7535DF7C2B26CDABCA41F899665 /* FBSDKGraphRequestMetadata.h in Headers */ = {isa = PBXBuildFile; fileRef = A6A65129D40EA0847A9F654629954221 /* FBSDKGraphRequestMetadata.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 2097EE9E7FD111E11EED17D52E60497A /* FBSDKErrorConfiguration.h in Headers */ = {isa = PBXBuildFile; fileRef = 7FDF121D7CF2A152D849EC4472B4EC92 /* FBSDKErrorConfiguration.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 215DC5E6CC0DEC568EE3367E0D7F7190 /* FBSDKMaleSilhouetteIcon.h in Headers */ = {isa = PBXBuildFile; fileRef = BB4FA8C1F3D3C37698E921B02414816A /* FBSDKMaleSilhouetteIcon.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 2176D23ACC3D828A039E217CF89E83CA /* FBSDKAudioResourceLoader.m in Sources */ = {isa = PBXBuildFile; fileRef = 62ECFDCE5BE222879E2D4E03DA8377D1 /* FBSDKAudioResourceLoader.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 226C06420C0DEC307034260DE0FC37B6 /* FBSDKDeviceRequestsHelper.h in Headers */ = {isa = PBXBuildFile; fileRef = 38170880D2FB97A03A8C753942971137 /* FBSDKDeviceRequestsHelper.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 22A74324108496C553C65713BA078182 /* FBSDKAppLinkNavigation.m in Sources */ = {isa = PBXBuildFile; fileRef = 43D059938332528C76A63C9BF081C30D /* FBSDKAppLinkNavigation.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 25683D296037966B6DBE1F3F2B39F9C7 /* FBSDKAccessTokenCaching.h in Headers */ = {isa = PBXBuildFile; fileRef = 2C58A3985A7BF717CF03D2D250D4AE55 /* FBSDKAccessTokenCaching.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 2C4F9DE9A01ABFE6C73E4A9C8DA57208 /* FBSDKCoreKit+Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 629C1D83EB87DD3F90505BB3B203838C /* FBSDKCoreKit+Internal.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 2CC4690E867FC77AC7B623F3780AF413 /* FBSDKSettings.m in Sources */ = {isa = PBXBuildFile; fileRef = 3631FE3BE662A9EF175C5DA42E851A2E /* FBSDKSettings.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 2E5DDD6890516BD7101027FECF4FACD4 /* FBSDKAppLink.h in Headers */ = {isa = PBXBuildFile; fileRef = 6E333DB4DE47D766F53644E375FAE053 /* FBSDKAppLink.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 2E8A348A0F67DB2C7E38B395AC0B6719 /* FBSDKButton.h in Headers */ = {isa = PBXBuildFile; fileRef = 52B1B8E47BB58448AE88ADEE402A9FE5 /* FBSDKButton.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 2FF76A10E9119EAFBCF80227188971F6 /* FBSDKSettings+Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 2EB5E28DF6502B6A2214D43BA05FE520 /* FBSDKSettings+Internal.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 30D31E5DF697BB190DDC9F7F6BBD8E9B /* FBSDKIcon.h in Headers */ = {isa = PBXBuildFile; fileRef = 8A551484BEF7137C36880F5D34338F6B /* FBSDKIcon.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 32E15030EFF3DAE184DD312AC069A7B0 /* FBSDKCloseIcon.h in Headers */ = {isa = PBXBuildFile; fileRef = 4986639EDB95E8EB79A360A91DE78911 /* FBSDKCloseIcon.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 34505841EBCA062A3490DB7F84C8D67C /* FBSDKApplicationDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 0013F327884B589D5E7789777FDD7610 /* FBSDKApplicationDelegate.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 34D14260CD09A1ADCDCC3A3D48DF1952 /* FBSDKURLSessionTask.m in Sources */ = {isa = PBXBuildFile; fileRef = ED3FFF2452A39ECDCCAEBD7DF51879ED /* FBSDKURLSessionTask.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 3639ABBDE64464299703420DE8088570 /* FBSDKGraphRequestConnection.h in Headers */ = {isa = PBXBuildFile; fileRef = 860862623F7274D92BE27925DEB6E9C9 /* FBSDKGraphRequestConnection.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 372140DFF63B346F239A2E71BAD8B3A7 /* FBSDKServerConfiguration.h in Headers */ = {isa = PBXBuildFile; fileRef = 4EE82ABE850674BBF9CA8A58ADD3FB4F /* FBSDKServerConfiguration.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 37B1C5887439F245967F1C0308B3A4E0 /* FBSDKAppEventsState.m in Sources */ = {isa = PBXBuildFile; fileRef = C265DD4554DB983B83F35DD0B4603C15 /* FBSDKAppEventsState.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 3B13BC477299FB901C021FE0506B5C8C /* FBSDKRestrictiveDataFilterManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 87C594D592245A7A63DD311A5AE709DE /* FBSDKRestrictiveDataFilterManager.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 3C71B491CE4B066D4C02A8F2CEBFD2EA /* FBSDKErrorRecoveryAttempter.m in Sources */ = {isa = PBXBuildFile; fileRef = 28CA47DF51DD41C95D6836A02D6B82AD /* FBSDKErrorRecoveryAttempter.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 3DAB5B2E4B423993464D93C08E939D4C /* FBSDKApplicationObserving.h in Headers */ = {isa = PBXBuildFile; fileRef = 5A537E68DD5710619940608A49F5ED12 /* FBSDKApplicationObserving.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 3E16594974A4B2D669A25EAB625AFA19 /* FBSDKDialogConfiguration.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D28BB7BBB1FBF38710F004755F39B19 /* FBSDKDialogConfiguration.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 3E58EF06484328B94A552DA3FE2267DF /* FBSDKBridgeAPIProtocolWebV1.h in Headers */ = {isa = PBXBuildFile; fileRef = EECD525E501A2E21C67ABDA699092ADE /* FBSDKBridgeAPIProtocolWebV1.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 3E8A9316B9450B07B470740A41872862 /* FBSDKProfile.h in Headers */ = {isa = PBXBuildFile; fileRef = 9A7FB3100279A0E6B87F99583E2125BB /* FBSDKProfile.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 3F892C514897B7B67A56A8ABE38D79E0 /* FBSDKContainerViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = D54F844173EF6369BF156CB63FA1C896 /* FBSDKContainerViewController.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 3FBE2593987273E3A02475A1C2089AD3 /* FBSDKEventBindingManager.m in Sources */ = {isa = PBXBuildFile; fileRef = FAE8183B6E9B4FD59FD29740B98E0DB6 /* FBSDKEventBindingManager.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 40C76AE371D9BDAC06F101DBAF9A325D /* FBSDKConstants.h in Headers */ = {isa = PBXBuildFile; fileRef = F718958D6AF48D44EFC5BFF37B86C9AE /* FBSDKConstants.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 434FAA9785FFEAE588CC31699E251B37 /* FBSDKBridgeAPIProtocolWebV1.m in Sources */ = {isa = PBXBuildFile; fileRef = E52D75BB8601785CCBEFADB89DDA1982 /* FBSDKBridgeAPIProtocolWebV1.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 455017822DE4E350A7445D1A408F73ED /* FBSDKServerConfiguration+Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 7E9367713F02823510F61CB1ACBEA9B5 /* FBSDKServerConfiguration+Internal.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 45CB28188BD4FB826D68278D198FEB6C /* FBSDKAccessToken.h in Headers */ = {isa = PBXBuildFile; fileRef = 0D450ABF5EF018FD07C51271D5ABD5C6 /* FBSDKAccessToken.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 465A75EBFE05BD30903810CB773A15FC /* FBSDKURLOpening.h in Headers */ = {isa = PBXBuildFile; fileRef = 1DFD137665BA20A8C421A2ACE7E26EBF /* FBSDKURLOpening.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 496343D0110D222DE4A283D053B69BBF /* FBSDKDynamicFrameworkLoader.h in Headers */ = {isa = PBXBuildFile; fileRef = 7D7D000B67D0661C8D90E4AF756CD888 /* FBSDKDynamicFrameworkLoader.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 4994249F9AC5EC066FAF6E9C5FBEA4B8 /* FBSDKLibAnalyzer.m in Sources */ = {isa = PBXBuildFile; fileRef = 4D7AB2082D11D7D038C616F6E6EE0E95 /* FBSDKLibAnalyzer.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 4A64818383EAC57921BB78279E405D1F /* FBSDKAppEventsDeviceInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = 57219FE740C3240A506FF2DD11A65914 /* FBSDKAppEventsDeviceInfo.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 4B6B28981175B0F7712E92B97F0AEA7A /* FBSDKGraphRequestBody.m in Sources */ = {isa = PBXBuildFile; fileRef = CE31681D00539384148EF77C043E956A /* FBSDKGraphRequestBody.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 4BFE4C27B9E012E660578C4AB5A79FA1 /* FBSDKBridgeAPI.m in Sources */ = {isa = PBXBuildFile; fileRef = 1E5E8D7C93B61E1A1A7B71BB152EF7F2 /* FBSDKBridgeAPI.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 4C440104B6A104FD2A20A3D0B619000A /* FBSDKTypeUtility.h in Headers */ = {isa = PBXBuildFile; fileRef = 62BB4D164A46CA3955A2B3372690829D /* FBSDKTypeUtility.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 4CB152ACC7CA3E332AE3275DE3E9D3E3 /* FBSDKAppLink_Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 6D78D0C0A4DEE4CCF560B9A61D56E0F8 /* FBSDKAppLink_Internal.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 4CE00050B36EC219F672E02DF00D3207 /* FBSDKSwizzler.h in Headers */ = {isa = PBXBuildFile; fileRef = 4A75635795AE923ABCE1E77E75FCC884 /* FBSDKSwizzler.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 4D6548C44C42AAD0A4F1DA1ADA7C282B /* FBSDKBridgeAPIProtocolNativeV1.m in Sources */ = {isa = PBXBuildFile; fileRef = 7494E5A5C35A29C7C46F6BF9BA5695F9 /* FBSDKBridgeAPIProtocolNativeV1.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 4E6781EC7D26C981CD9CC3DC3545601B /* FBSDKPaymentObserver.m in Sources */ = {isa = PBXBuildFile; fileRef = 629ABEAA5B539D9155DF1CFBE6846C74 /* FBSDKPaymentObserver.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 4FD4A40634D999FFBF6C17DEBDE81611 /* FBSDKMonotonicTime.h in Headers */ = {isa = PBXBuildFile; fileRef = B9DF2C37AA93CCEC4ACBB3118C8AC235 /* FBSDKMonotonicTime.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 5021D69C02564726A4BC7D01A0FCCF23 /* FBSDKCodelessIndexer.m in Sources */ = {isa = PBXBuildFile; fileRef = 447829252D92561F99DABAA6DE0F8571 /* FBSDKCodelessIndexer.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 5431A7B556CAF7F426B65FEC91639FC2 /* FBSDKGraphRequestDataAttachment.m in Sources */ = {isa = PBXBuildFile; fileRef = 01087A5C84C0796D3696D93002E0A787 /* FBSDKGraphRequestDataAttachment.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 543E5D0ECC4ED7517DED33EB0BA165CC /* FBSDKImageDownloader.h in Headers */ = {isa = PBXBuildFile; fileRef = CF859714C2E9C375FBA031AD1CD5BCE0 /* FBSDKImageDownloader.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 555D956AD5FF51689B7AEFA8F15F0798 /* FBSDKTypeUtility.m in Sources */ = {isa = PBXBuildFile; fileRef = 1E3FD014BF72B91E1FD1F9977420A1BA /* FBSDKTypeUtility.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 5562A321B614410C26A9B161C1D28023 /* FBSDKInternalUtility.h in Headers */ = {isa = PBXBuildFile; fileRef = AA0786BFB8D8F665006095D1A4DB38EA /* FBSDKInternalUtility.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 5589A6A51D86AC7FDF4ECB9C1FB19DBB /* FBSDKAppLinkResolving.h in Headers */ = {isa = PBXBuildFile; fileRef = F59E60B20CB0E897B4085320B6B7A485 /* FBSDKAppLinkResolving.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 59158065F5516920194089842BF8C8C2 /* FBSDKBridgeAPIProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 097A407B61A00577399626BC7AAAB033 /* FBSDKBridgeAPIProtocol.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 5A71B2CC9818BCD2C11BF26ED94A9739 /* FBSDKErrorReport.h in Headers */ = {isa = PBXBuildFile; fileRef = FC3E28561BB42BD7479CF97DB5954393 /* FBSDKErrorReport.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 5B15FDC79F52743C31D5E7A5177564D6 /* FBSDKViewImpressionTracker.h in Headers */ = {isa = PBXBuildFile; fileRef = CD2A2C486F872BBF6B99B3C3EBAE0AB1 /* FBSDKViewImpressionTracker.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 5B7528BB1E178ABCEBA42940F7BEF1E0 /* FBSDKBridgeAPI.h in Headers */ = {isa = PBXBuildFile; fileRef = FC09E17D6DF64BA59C54B6DB72756EB8 /* FBSDKBridgeAPI.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 5D037D2093CD7FDE289416E88D293835 /* FBSDKCloseIcon.m in Sources */ = {isa = PBXBuildFile; fileRef = 66FB642A989DF33E4EA37FDD64F31C75 /* FBSDKCloseIcon.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 5F08D811A532397DFB1C644C5DD3319F /* FBSDKUtility.m in Sources */ = {isa = PBXBuildFile; fileRef = B5FCB7D0D43D332F505308B299EC6265 /* FBSDKUtility.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 5FA7D7EBFA5681D0A4406EE692A9751D /* FBSDKURLSession.h in Headers */ = {isa = PBXBuildFile; fileRef = 512B56DC781EA85D28C2652334C818A7 /* FBSDKURLSession.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 61FFA1B6B1D8C56369162886CF8C60AC /* FBSDKCodelessPathComponent.h in Headers */ = {isa = PBXBuildFile; fileRef = 1BA889EF397BF6336E849CB228155A0F /* FBSDKCodelessPathComponent.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 63146A747E07075FD6D6A81EAB3083F9 /* FBSDKContainerViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = F861CDD825BCF6641F276E0152BBEAA9 /* FBSDKContainerViewController.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 63C747341A75A19B9EF70A8640EED6DA /* FBSDKInstrumentManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 36969BEB1AD98E49C24708F0FC229452 /* FBSDKInstrumentManager.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 65E797CF2858214A4870AB7B0E6271EE /* FBSDKMaleSilhouetteIcon.m in Sources */ = {isa = PBXBuildFile; fileRef = BA6A4AE7236A889ED8CC60BF1E63F897 /* FBSDKMaleSilhouetteIcon.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 664802B2B4A081AF8F25DE3B51435CED /* FBSDKBridgeAPIProtocolType.h in Headers */ = {isa = PBXBuildFile; fileRef = D33CD9C95C7E90DAE9EE42F86A2B88EB /* FBSDKBridgeAPIProtocolType.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 681AA006072B70CB63F40D15DE1F198F /* FBSDKEventBinding.h in Headers */ = {isa = PBXBuildFile; fileRef = BAA31CD2B8364F758C431DB95C772B54 /* FBSDKEventBinding.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 682FACAA3D73DE897ABDCAEC2A2EBD77 /* FBSDKTriStateBOOL.m in Sources */ = {isa = PBXBuildFile; fileRef = 44D98D6174D53D32F8268BD5DFB99B76 /* FBSDKTriStateBOOL.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 69D971E65DBFA2EFBB419C6523C7E60B /* FBSDKWebDialog.h in Headers */ = {isa = PBXBuildFile; fileRef = 86E2B94892515DDEFC0EAC8D94D4AD0A /* FBSDKWebDialog.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 6A31B4BB2ED13A020B0DDB75E0CDE6B2 /* FBSDKViewHierarchy.m in Sources */ = {isa = PBXBuildFile; fileRef = 2A4578F443B6F28E5202FCD1B8FD060B /* FBSDKViewHierarchy.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 6A4A4A470FD4FF526B2C9F02A8889D4A /* FBSDKAccessToken.m in Sources */ = {isa = PBXBuildFile; fileRef = 490DE9B03D6848DBA3164B192695CEF4 /* FBSDKAccessToken.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 6B5A41683C0FF3C2F0752374BA8FAEBB /* FBSDKConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = BF855930FA3BC84B0E8320054F763D52 /* FBSDKConstants.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 6DD20A2CC73D718388477170C7C5344B /* FBSDKProfilePictureView.m in Sources */ = {isa = PBXBuildFile; fileRef = 226398BB574CC843119FB68D434A495E /* FBSDKProfilePictureView.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 6E3B91E343011145F2809ECC97425409 /* FBSDKCodelessPathComponent.m in Sources */ = {isa = PBXBuildFile; fileRef = 77542F405D6D0A50DDB351039C8298CB /* FBSDKCodelessPathComponent.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 7345A15817D9B17A5AC0DB2548317A0E /* FBSDKInstrumentManager.m in Sources */ = {isa = PBXBuildFile; fileRef = C2AE575D485C9BA9686B9D8F0CD72445 /* FBSDKInstrumentManager.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 787347EB425614E49BD960F35EDC099D /* FBSDKGraphErrorRecoveryProcessor.h in Headers */ = {isa = PBXBuildFile; fileRef = 7A871C259D6F4150AD9E6EEB5BAE2765 /* FBSDKGraphErrorRecoveryProcessor.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 7AB8F6AA12ECBF8C6ED02AF75CF3415F /* FBSDKGraphRequestPiggybackManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 51FB9CAFEA878F1511820ED81BF95044 /* FBSDKGraphRequestPiggybackManager.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 7C8118DF7ECEE92CC1C95A6297392929 /* FBSDKAppLinkReturnToRefererView_Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = F3E793BC4BCD806C389EF4620CACEA2D /* FBSDKAppLinkReturnToRefererView_Internal.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 7F35A9F060E1715392C866C7C119A87B /* FBSDKCrypto.h in Headers */ = {isa = PBXBuildFile; fileRef = 438B4FA291CF3CA6A6FA34C19A13A902 /* FBSDKCrypto.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 8251BB0E767A0258C1670EA0F3B8017C /* FBSDKGraphRequestMetadata.m in Sources */ = {isa = PBXBuildFile; fileRef = EBF0D37AD2059C68207E2C6722BB08D2 /* FBSDKGraphRequestMetadata.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 8268DF3A3ECAE35B61BE714B7957CD80 /* FBSDKGraphRequestConnection+Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 6499B13BB7DE357F69EF1E5A0888F0F5 /* FBSDKGraphRequestConnection+Internal.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 82F922A5CDE4DAB5C8C8563A9ABE7762 /* FBSDKGraphRequestBody.h in Headers */ = {isa = PBXBuildFile; fileRef = 394B61C92D906509F42AF6570AF4B908 /* FBSDKGraphRequestBody.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 839F421265D25F57AF4231CAEB6D4343 /* FBSDKURL_Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = BB000C761910816B69422FD3C9AE183A /* FBSDKURL_Internal.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 843DF25E8EA85DC4728FB1A06FE2C3E3 /* FBSDKAppLinkReturnToRefererView.h in Headers */ = {isa = PBXBuildFile; fileRef = BA67E4B8EC2DD9B24858AFF6D095204C /* FBSDKAppLinkReturnToRefererView.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 845B3EBD9C555208DA131E1C42D75C4F /* FBSDKMeasurementEventListener.h in Headers */ = {isa = PBXBuildFile; fileRef = CAAD32F4CBB3A50C3BD0BF9B3591A204 /* FBSDKMeasurementEventListener.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 868202E0F576E994BE135E9811E973F0 /* FBSDKTestUsersManager.h in Headers */ = {isa = PBXBuildFile; fileRef = A5457532EEBF0A0AF99A20B3FAFFCBDA /* FBSDKTestUsersManager.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 89A07CB373659C285368609736BA73CB /* FBSDKHybridAppEventsScriptMessageHandler.m in Sources */ = {isa = PBXBuildFile; fileRef = 42B4D4ED78DEF4C6ABDD4FC12727BA66 /* FBSDKHybridAppEventsScriptMessageHandler.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 8A3B5CDF637D76961934B973B12E9E2D /* FBSDKAppLinkReturnToRefererView.m in Sources */ = {isa = PBXBuildFile; fileRef = A4C8685E82ED28AFF1051B9192834F76 /* FBSDKAppLinkReturnToRefererView.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 8B24590A99263DD2BC181B8876F87C27 /* FBSDKServerConfigurationManager+Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 60A68018B0418D92789029E8CFDDA965 /* FBSDKServerConfigurationManager+Internal.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 8B334915F25B26550FD0D98A916CB3E4 /* FBSDKEventBindingManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 9C70A91636437C9DDC512B3C3C7A1104 /* FBSDKEventBindingManager.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 8B5AF619F1CDE3F20FFAC0230DDF5150 /* FBSDKDynamicFrameworkLoader.m in Sources */ = {isa = PBXBuildFile; fileRef = 6D28E1E32F5762F96069D5020DDC4B84 /* FBSDKDynamicFrameworkLoader.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc -w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 8B8BFA6A31B4E6CA7BEABF7F01F9352C /* FBSDKBase64.m in Sources */ = {isa = PBXBuildFile; fileRef = 315C6F2AFC942DFF473DF7945F4809A3 /* FBSDKBase64.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 8C2AA6AE71429C504AC5CA69607A620D /* FBSDKApplicationDelegate+Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = F156D68E18E878B6B65C28EE2654B881 /* FBSDKApplicationDelegate+Internal.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 8D54CE25CA51F652F2DD5C647722DF01 /* FBSDKWebDialogView.m in Sources */ = {isa = PBXBuildFile; fileRef = DACBAFB5DE4484503C16B0B5183DA4F0 /* FBSDKWebDialogView.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 8E23296CAC0883822E45475593D1BEC7 /* FBSDKBridgeAPIProtocolNativeV1.h in Headers */ = {isa = PBXBuildFile; fileRef = 0F16390CE516DACD7FD3617075A706D2 /* FBSDKBridgeAPIProtocolNativeV1.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 8E7A3DEDE01CA8DDA01FD72C514A4EB0 /* FBSDKUserDataStore.m in Sources */ = {isa = PBXBuildFile; fileRef = A5C5A18575B9E3E723B25EC7BFBD42FC /* FBSDKUserDataStore.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 8ED24E9E9DC9DC3C0172EAC28549819C /* FBSDKGraphRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = BF5B8E37336EE0E7E4F64DE420446BCC /* FBSDKGraphRequest.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 8EDB4DCF8C48737E3A6CC3D68DCA8AAF /* FBSDKAppLinkTarget.h in Headers */ = {isa = PBXBuildFile; fileRef = 3210E37015954B194F54799E8BEBD9B8 /* FBSDKAppLinkTarget.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 8F8E12E432CC881CBEB18A7504DD103B /* FBSDKCrashHandler.m in Sources */ = {isa = PBXBuildFile; fileRef = C04C17C2A3E93AE1B2FD9A277C5DCC8F /* FBSDKCrashHandler.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 8FF65E96A34E6E8D30BF7DE7AA5BC84F /* FBSDKCoreKit-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 3E8179BF0A5F38B81753405D134FBEAF /* FBSDKCoreKit-dummy.m */; }; + 913DA5FF1A6CCE9C52C11E37DEB0386C /* FBSDKAppEventsUtility.m in Sources */ = {isa = PBXBuildFile; fileRef = FD70736A63BB0264F65D4D521798232A /* FBSDKAppEventsUtility.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 93A2F4DBE677561D2739B4C5EFAA2083 /* FBSDKAppEvents.m in Sources */ = {isa = PBXBuildFile; fileRef = CBAEF5A616088B6AF26DC63E979E6B30 /* FBSDKAppEvents.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 93CD2DF46195156AFDC398A57D6D3598 /* FBSDKAccessTokenCache.h in Headers */ = {isa = PBXBuildFile; fileRef = B9776F31CCB7B88CAA9C17B4B9B50E09 /* FBSDKAccessTokenCache.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 943B8A298677C75A1417CA4D7DF7FCD7 /* FBSDKMath.h in Headers */ = {isa = PBXBuildFile; fileRef = 17CCED16DE276E7593BACCA3AAAC7628 /* FBSDKMath.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 94B55D9A812947D2C181924AC65A3235 /* FBSDKCrashHandler.h in Headers */ = {isa = PBXBuildFile; fileRef = 34BA2B0E2CE52650C7C3582E1221491F /* FBSDKCrashHandler.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 95C7D5D5D097AF06C693BD2987BEB1E6 /* FBSDKCrypto.m in Sources */ = {isa = PBXBuildFile; fileRef = EDC87485DA6E073971898BB5DFEE56B5 /* FBSDKCrypto.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 95E50274F316DF92F6ACC1E5F488742C /* FBSDKBase64.h in Headers */ = {isa = PBXBuildFile; fileRef = 832716FCAF620F3A22FE04686A894BB0 /* FBSDKBase64.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 96F130DAF0529CFCB3977CD06F5ABD88 /* FBSDKURL.m in Sources */ = {isa = PBXBuildFile; fileRef = B88907FC6E93C028B9E0243D0F4357B3 /* FBSDKURL.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 97A4A3E3DE177ECCCB59782F3FBB978B /* FBSDKMetadataIndexer.h in Headers */ = {isa = PBXBuildFile; fileRef = C62CAE44F60BF998E5143C87E51FF261 /* FBSDKMetadataIndexer.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 98137D9162012CAC7FBDBEDB818D1AD7 /* FBSDKGraphRequest+Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 09540133AC3F943B2DEDE676495F9AE7 /* FBSDKGraphRequest+Internal.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 98F7B39A84B38572AC1E552D9D33F25D /* FBSDKLogger.m in Sources */ = {isa = PBXBuildFile; fileRef = 9D87552A566F5FFFC4D49CE627DF9CB4 /* FBSDKLogger.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 99D75267BD88E8412C34759B61663F64 /* FBSDKAccessTokenCache.m in Sources */ = {isa = PBXBuildFile; fileRef = 1227111ABD28F801089E2B85E1EE2228 /* FBSDKAccessTokenCache.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 9A0A693DCE954FCB4EC3A1DEB58D847A /* FBSDKAppLinkResolver.h in Headers */ = {isa = PBXBuildFile; fileRef = 436B40C704CDE6E05F88C76DC67EB3D2 /* FBSDKAppLinkResolver.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 9AA657A1720BEB1DA80D7F1B526B3502 /* FBSDKMath.m in Sources */ = {isa = PBXBuildFile; fileRef = A0025C580CAC210786453DB9715D6764 /* FBSDKMath.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 9AD1DC17D3FD0EEB68D669BED4C9360C /* FBSDKErrorRecoveryConfiguration.m in Sources */ = {isa = PBXBuildFile; fileRef = 70F9062F67A62AECD4772DEC157102D6 /* FBSDKErrorRecoveryConfiguration.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 9AF216DA79A26A68CAB73756C6FA8D64 /* FBSDKMonotonicTime.m in Sources */ = {isa = PBXBuildFile; fileRef = 67F2AFF65E638C13A18E4ACF18714321 /* FBSDKMonotonicTime.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 9B14B4399156BC5D963EC0012432DF97 /* FBSDKProfile+Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 9E19818E0AE23EC215A942BD3698A64B /* FBSDKProfile+Internal.h */; settings = {ATTRIBUTES = (Project, ); }; }; + A2E0E77CA79E327FA39A5F889C803167 /* FBSDKCodelessParameterComponent.h in Headers */ = {isa = PBXBuildFile; fileRef = 5DCC628B73D004D44069D18DB33312F6 /* FBSDKCodelessParameterComponent.h */; settings = {ATTRIBUTES = (Project, ); }; }; + A5F18D93AF872E0A7D0E86D015818CF5 /* FBSDKSettings.h in Headers */ = {isa = PBXBuildFile; fileRef = 581EE74F96E38CD58B19526553623A8A /* FBSDKSettings.h */; settings = {ATTRIBUTES = (Project, ); }; }; + A617B0D3C13301D5FEDE5B0A0348E015 /* FBSDKServerConfigurationManager.m in Sources */ = {isa = PBXBuildFile; fileRef = ACE0DCD714C330F80CFE2C274BE91E55 /* FBSDKServerConfigurationManager.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + AB7C84A6B54B283153AEA14825158203 /* FBSDKUtility.h in Headers */ = {isa = PBXBuildFile; fileRef = BB1B1F83ACDEB9262F2D318D02C3DBC2 /* FBSDKUtility.h */; settings = {ATTRIBUTES = (Project, ); }; }; + AE1A86E63898711670E9DF46005DC7D6 /* FBSDKError.h in Headers */ = {isa = PBXBuildFile; fileRef = F9D4EA11444A20BFFF027BCB8829728B /* FBSDKError.h */; settings = {ATTRIBUTES = (Project, ); }; }; + AFD8542730D496728D79A773A7B17AFF /* FBSDKAppLinkResolver.m in Sources */ = {isa = PBXBuildFile; fileRef = 01C6B5C2A66D35D96FFCC117CA1222CB /* FBSDKAppLinkResolver.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + AFE1307E3F43762E68FDCAFF291C8566 /* FBSDKCodelessIndexer.h in Headers */ = {isa = PBXBuildFile; fileRef = ABB17F547548DDF8EE85B265D900A607 /* FBSDKCodelessIndexer.h */; settings = {ATTRIBUTES = (Project, ); }; }; + B1B0F9647BD7DC85E39B313679BDB585 /* FBSDKApplicationDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 3312ACCFC6798E17067D02E31237D32A /* FBSDKApplicationDelegate.h */; settings = {ATTRIBUTES = (Project, ); }; }; + B1DB60F34E4A9BB96892886236FF6780 /* FBSDKInternalUtility.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F694627B18E93E2DAB2F78B3D5CCB27 /* FBSDKInternalUtility.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + B1E5D8F727C72873B8401DE36DAC3F6E /* FBSDKBridgeAPIRequest+Private.h in Headers */ = {isa = PBXBuildFile; fileRef = 1C5B8B1A4CE54D16FD9D19F99430B196 /* FBSDKBridgeAPIRequest+Private.h */; settings = {ATTRIBUTES = (Project, ); }; }; + B29E03CDA515199EBF9F680E45087A6E /* FBSDKBasicUtility.h in Headers */ = {isa = PBXBuildFile; fileRef = CC9CE65FA2FEF68178B7CAF0A5D38601 /* FBSDKBasicUtility.h */; settings = {ATTRIBUTES = (Project, ); }; }; + B32429BB4075FC95C852C292C3E80CEF /* FBSDKCrashObserver.h in Headers */ = {isa = PBXBuildFile; fileRef = 743278C2E8C41D28BB6543931C7E086A /* FBSDKCrashObserver.h */; settings = {ATTRIBUTES = (Project, ); }; }; + B373BF6F94275351E5D903BC7A309902 /* FBSDKEventBinding.m in Sources */ = {isa = PBXBuildFile; fileRef = BB79482148A2DD2A5DCA26E2E41CAC01 /* FBSDKEventBinding.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + B44A9863D1962D1C33DBF84F50785E99 /* FBSDKWebViewAppLinkResolver.m in Sources */ = {isa = PBXBuildFile; fileRef = 3DAB70056BFCA1CD86831EF18332F5BE /* FBSDKWebViewAppLinkResolver.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + B47C1E814EBB1F58AB6071E6E4D68378 /* FBSDKPaymentObserver.h in Headers */ = {isa = PBXBuildFile; fileRef = D3899C8D204EDE5939AE9FA413CBEC78 /* FBSDKPaymentObserver.h */; settings = {ATTRIBUTES = (Project, ); }; }; + B641A2BF104EAB4F59AC1E82D86FCCB2 /* FBSDKGraphErrorRecoveryProcessor.m in Sources */ = {isa = PBXBuildFile; fileRef = FB2607102800B746B19D6373D30067E9 /* FBSDKGraphErrorRecoveryProcessor.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + B78627F88783DE8C3CD2F4BE0C5B358E /* FBSDKAppLinkNavigation.h in Headers */ = {isa = PBXBuildFile; fileRef = 4F52322553F92630BE4609739EAABF58 /* FBSDKAppLinkNavigation.h */; settings = {ATTRIBUTES = (Project, ); }; }; + B79D8D6F71F80D12A3BF973DFBC5042E /* FBSDKDialogConfiguration.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D92C9DEB2A306D4067B696BE3D43EAD /* FBSDKDialogConfiguration.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + B978D068AD414A21D9720C6B3597EE96 /* FBSDKWebDialog.m in Sources */ = {isa = PBXBuildFile; fileRef = 1F39010A5E6F8BD19700554BB4F59657 /* FBSDKWebDialog.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + BABCB81FAD3CE53F8E1E25FAB8BB2A67 /* FBSDKColor.m in Sources */ = {isa = PBXBuildFile; fileRef = 66F55ED34F28A69E4303BFE682172F36 /* FBSDKColor.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + BAC59CC5FAEC227F732ACE5237221D9D /* FBSDKFeatureManager.m in Sources */ = {isa = PBXBuildFile; fileRef = ADA6CCD584D21549FF151DCBFE7B5631 /* FBSDKFeatureManager.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + BB42FC861C18013D0FD74AB0B7908228 /* FBSDKSwizzler.m in Sources */ = {isa = PBXBuildFile; fileRef = 5AEE0C028D9A8813A3EC8B09E4E63957 /* FBSDKSwizzler.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + BC02A9F975DBDCBA8B93A768F817B9C5 /* FBSDKMeasurementEventListener.m in Sources */ = {isa = PBXBuildFile; fileRef = 54FCAFC6FC3224A4354BC3E121F5E5C5 /* FBSDKMeasurementEventListener.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + BC93CC16C629BC33E6557E5682EB4599 /* FBSDKKeychainStoreViaBundleID.m in Sources */ = {isa = PBXBuildFile; fileRef = 7CE03AC09BC4DE2437535B6B872BC8C3 /* FBSDKKeychainStoreViaBundleID.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + BCB4790821A9AFB215C41DDF17F6D97B /* FBSDKViewHierarchy.h in Headers */ = {isa = PBXBuildFile; fileRef = 78433FEAFF15A0491AE7F4F95E3664F5 /* FBSDKViewHierarchy.h */; settings = {ATTRIBUTES = (Project, ); }; }; + BCD9F32B1879A6E7D9C4C8A43C342AAF /* FBSDKCrashObserving.h in Headers */ = {isa = PBXBuildFile; fileRef = 0639872A24096F72F29FC333BE3D19D2 /* FBSDKCrashObserving.h */; settings = {ATTRIBUTES = (Project, ); }; }; + BDE46F112EA5ADBA80DE9ED60E281FE3 /* _FBSDKTemporaryErrorRecoveryAttempter.h in Headers */ = {isa = PBXBuildFile; fileRef = 470B12345152E66B83D8F6E20D9CEE6B /* _FBSDKTemporaryErrorRecoveryAttempter.h */; settings = {ATTRIBUTES = (Project, ); }; }; + BE637C2776AB50C42221B4C96BB061A0 /* FBSDKTimeSpentData.h in Headers */ = {isa = PBXBuildFile; fileRef = 8502F1F070AA506B9EFFA166C132FF37 /* FBSDKTimeSpentData.h */; settings = {ATTRIBUTES = (Project, ); }; }; + BEEAF23EF6E7E44B3214AEBC697F668F /* FBSDKAppEventsUtility.h in Headers */ = {isa = PBXBuildFile; fileRef = 93531D6F8F26CBEEADFCBDEABBD5F5D6 /* FBSDKAppEventsUtility.h */; settings = {ATTRIBUTES = (Project, ); }; }; + BF43FE28AD86F00D974A22796D6D915F /* FBSDKKeychainStore.h in Headers */ = {isa = PBXBuildFile; fileRef = E0E2635041C38C6DA38EA0628A973F70 /* FBSDKKeychainStore.h */; settings = {ATTRIBUTES = (Project, ); }; }; + BFB0F773A7C4E5AC3801FB2DD26606FF /* FBSDKUserDataStore.h in Headers */ = {isa = PBXBuildFile; fileRef = AB5242A37061A34CE60AD1674CFD330F /* FBSDKUserDataStore.h */; settings = {ATTRIBUTES = (Project, ); }; }; + C220E808441B28560A51867FB597F25B /* FBSDKBridgeAPIResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 3AAB47CC43BC978F2007F53E74DAD7C3 /* FBSDKBridgeAPIResponse.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + C245F717ED2996A75E91C8DCDD714F14 /* FBSDKAppLinkReturnToRefererController.h in Headers */ = {isa = PBXBuildFile; fileRef = 726B879112C00D87F83F0BCE38EAD36C /* FBSDKAppLinkReturnToRefererController.h */; settings = {ATTRIBUTES = (Project, ); }; }; + C253F777587CC6556DEEF64BE207FF8C /* FBSDKMeasurementEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = C307EBBDB7FCEA7E76221CBC06E7187F /* FBSDKMeasurementEvent.h */; settings = {ATTRIBUTES = (Project, ); }; }; + C2758C2F2B65132E59A7A167EA8E2703 /* FBSDKAppEventsStateManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 03398B1178BE2C0C2C185A799D1AFDA9 /* FBSDKAppEventsStateManager.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + C2AA61B2A08EC9F0BC5B79194351AD0E /* FBSDKAppEventsStateManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 3CDF5125327A63E9116F0C08E2BBADA4 /* FBSDKAppEventsStateManager.h */; settings = {ATTRIBUTES = (Project, ); }; }; + C36FDD6C48FCAABB624CB29F6FA5EC5C /* FBSDKAppEvents.h in Headers */ = {isa = PBXBuildFile; fileRef = 787AB172507357247F687B8ADF9B7896 /* FBSDKAppEvents.h */; settings = {ATTRIBUTES = (Project, ); }; }; + C38370B1E1D50B6FED91463F6D3F3C2F /* FBSDKAppEventsState.h in Headers */ = {isa = PBXBuildFile; fileRef = DBBBD49B1C39CA08F03A2815CB9680DF /* FBSDKAppEventsState.h */; settings = {ATTRIBUTES = (Project, ); }; }; + C7AD7FD1136461FD28862DDAB4E22309 /* FBSDKAppLink.m in Sources */ = {isa = PBXBuildFile; fileRef = 285AB85E814C3C2B5174EA976A4C527F /* FBSDKAppLink.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + C815E939C892F1578A7985DDC1BA9C92 /* FBSDKDeviceRequestsHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 7F69B7539AC117EA7CBC7A042AFE75BA /* FBSDKDeviceRequestsHelper.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + C90E9486DB5855BB4D4A9950709E7126 /* FBSDKKeychainStore.m in Sources */ = {isa = PBXBuildFile; fileRef = E59AF7F5FF7F9220048DEEA97FBD5BA8 /* FBSDKKeychainStore.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + C9D14F25E6E4CA1F43BDC74F8EADC312 /* FBSDKBridgeAPIResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 6A6025750681E1FEC7BC6F98F5E0364A /* FBSDKBridgeAPIResponse.h */; settings = {ATTRIBUTES = (Project, ); }; }; + C9EBBAA05D9631866307FB5E872D7F04 /* FBSDKAccessTokenExpirer.m in Sources */ = {isa = PBXBuildFile; fileRef = A9DCB30DBFD7D2AD07F651F541D7DB37 /* FBSDKAccessTokenExpirer.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + CBF81BFBE60BDDE0F3FBABC7963FD171 /* FBSDKWebDialogView.h in Headers */ = {isa = PBXBuildFile; fileRef = 1BC50C3DFA26AC281872E7A413A4782C /* FBSDKWebDialogView.h */; settings = {ATTRIBUTES = (Project, ); }; }; + CCA16308139BC3EC4C249CB59DAAD60C /* FBSDKUIUtility.h in Headers */ = {isa = PBXBuildFile; fileRef = 6F45F9E25728D451DB88B7DA4F7709DA /* FBSDKUIUtility.h */; settings = {ATTRIBUTES = (Project, ); }; }; + CCF2513AC6A09CBB12E72FE4765DDF57 /* FBSDKRestrictiveDataFilterManager.m in Sources */ = {isa = PBXBuildFile; fileRef = AFD1F6E820D0F73E6873BB351C890399 /* FBSDKRestrictiveDataFilterManager.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + CE2B8FC6CEC11E455870D21D8AC0B89F /* FBSDKURLSessionTask.h in Headers */ = {isa = PBXBuildFile; fileRef = 35B4DD9B7746DA62574FF65261355D16 /* FBSDKURLSessionTask.h */; settings = {ATTRIBUTES = (Project, ); }; }; + CEA7E797E1AFE73498AB0E74F947FD80 /* FBSDKGraphRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = 60DB33D244E12A2BAC75F14A2F6E9DAF /* FBSDKGraphRequest.h */; settings = {ATTRIBUTES = (Project, ); }; }; + CECC99F5177D1CC2742E60402C086594 /* FBSDKGraphRequestDataAttachment.h in Headers */ = {isa = PBXBuildFile; fileRef = 56C4DF76C08292A8AD32CB133013441F /* FBSDKGraphRequestDataAttachment.h */; settings = {ATTRIBUTES = (Project, ); }; }; + CFDE3A23F6338C0508CBE8C165FB7D41 /* FBSDKTimeSpentData.m in Sources */ = {isa = PBXBuildFile; fileRef = 87E4301F082B8F3540F70E0F84ABB937 /* FBSDKTimeSpentData.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + D0600B3F7CEE56A75393382C467EC0F5 /* FBSDKTestUsersManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 2CC1921F0F75A48E156D2B3901DA5B89 /* FBSDKTestUsersManager.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + D1BC85224A4415CCCCA05CB1B3AA376D /* FBSDKIcon.m in Sources */ = {isa = PBXBuildFile; fileRef = EF36357134F72C35BB9DE6C2552D429C /* FBSDKIcon.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + D671962E521E291BA9D524D1CCC3A09C /* FBSDKWebViewAppLinkResolver.h in Headers */ = {isa = PBXBuildFile; fileRef = DE7277AEE733A0E68DAE4BA89C819B31 /* FBSDKWebViewAppLinkResolver.h */; settings = {ATTRIBUTES = (Project, ); }; }; + D919961EC8C7C4A25BB7F8FF73CF92AB /* FBSDKCrashObserver.m in Sources */ = {isa = PBXBuildFile; fileRef = 5A2F6DD494563824406EC3843381E032 /* FBSDKCrashObserver.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + D93496A958EF60FAD3DDAC07E250225B /* FBSDKGateKeeperManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 66FDCD286D9184997E5934FE2069916A /* FBSDKGateKeeperManager.h */; settings = {ATTRIBUTES = (Project, ); }; }; + DA01F73DE4330431B1BB1F0297601C05 /* FBSDKErrorRecoveryConfiguration.h in Headers */ = {isa = PBXBuildFile; fileRef = 96406E664A103708095388E7F9F2127A /* FBSDKErrorRecoveryConfiguration.h */; settings = {ATTRIBUTES = (Project, ); }; }; + DB053B754A5986A7CB0CCC6D9A971612 /* FBSDKGraphRequestPiggybackManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 5FACC97260A0CBAFBC1DBE2B6FB3D149 /* FBSDKGraphRequestPiggybackManager.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + DC0FA346ADEDD77F740A67B67F6EC4CC /* FBSDKServerConfiguration.m in Sources */ = {isa = PBXBuildFile; fileRef = 1697CABB6C4AD7A95499E9361302F2B8 /* FBSDKServerConfiguration.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + DC1DF8D5BA784D708B2F3C22E1C37091 /* FBSDKCopying.h in Headers */ = {isa = PBXBuildFile; fileRef = EA6E1F8A2E1F20A35A6F1D65BA25B3C9 /* FBSDKCopying.h */; settings = {ATTRIBUTES = (Project, ); }; }; + DF6BFC9D2DF20A587500F31F4E7CB069 /* FBSDKButton.m in Sources */ = {isa = PBXBuildFile; fileRef = 028E7B02C02F965B38B87F95A0C5A174 /* FBSDKButton.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + E0E49D08234FEB725CE52CF68BC74623 /* _FBSDKTemporaryErrorRecoveryAttempter.m in Sources */ = {isa = PBXBuildFile; fileRef = 20B14B013A80CF03C52F6BCAFE481885 /* _FBSDKTemporaryErrorRecoveryAttempter.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + E1A1A22AD8EA326092825FCB52963C3B /* FBSDKAppEventsDeviceInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = CAEA20C60541665BED836648FFF2A995 /* FBSDKAppEventsDeviceInfo.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + E2250C3F1B9386AE8BE4089DAB7F0E3E /* FBSDKMeasurementEvent_Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 97F458203A6E8EECCBB1CFF9632A9BD5 /* FBSDKMeasurementEvent_Internal.h */; settings = {ATTRIBUTES = (Project, ); }; }; + E27CCE8D94AF98480C20A3EA711C1089 /* FBSDKAppEvents+Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = D8A7F24154D78632CC098567AE55B1DA /* FBSDKAppEvents+Internal.h */; settings = {ATTRIBUTES = (Project, ); }; }; + E39A124C1391C09856B35AA5A917A731 /* FBSDKFeatureManager.h in Headers */ = {isa = PBXBuildFile; fileRef = BCB1B58E4A8CA5A4B5AF2C3457767CC1 /* FBSDKFeatureManager.h */; settings = {ATTRIBUTES = (Project, ); }; }; + E3DC81E7A17FDCBD0D03731310C14476 /* FBSDKLogo.h in Headers */ = {isa = PBXBuildFile; fileRef = FDDF435D501C4F62E07E8A486A62D63B /* FBSDKLogo.h */; settings = {ATTRIBUTES = (Project, ); }; }; + E4EA223AEDC93C227EFE5E7E2C70E848 /* FBSDKBridgeAPIRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = 12E5B43537FD2EE1C43B04C62BE97B05 /* FBSDKBridgeAPIRequest.h */; settings = {ATTRIBUTES = (Project, ); }; }; + E7868558268EC4F8BA595407EA2B2BB8 /* FBSDKLibAnalyzer.h in Headers */ = {isa = PBXBuildFile; fileRef = 63E13375D01F67955B4A58DB8C2EA92F /* FBSDKLibAnalyzer.h */; settings = {ATTRIBUTES = (Project, ); }; }; + E8FA067956D520145897748CF4DE4D1C /* FBSDKProfilePictureView.h in Headers */ = {isa = PBXBuildFile; fileRef = AB8CD69304CB72BD7C51A2C02D155150 /* FBSDKProfilePictureView.h */; settings = {ATTRIBUTES = (Project, ); }; }; + E982C5A313AF34AC4F2E6C2C2B3AD44E /* FBSDKAppLinkReturnToRefererController.m in Sources */ = {isa = PBXBuildFile; fileRef = C99F8684C3B3E90C417E1230977442CC /* FBSDKAppLinkReturnToRefererController.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + EAF2CF9AF26595A1BABBD925C191AC1D /* FBSDKMutableCopying.h in Headers */ = {isa = PBXBuildFile; fileRef = 061B8F4C36C474AE619A18F253CEFD6D /* FBSDKMutableCopying.h */; settings = {ATTRIBUTES = (Project, ); }; }; + EFB0045A501FD1ADC6472052028FBDAA /* FBSDKGraphRequestConnection.m in Sources */ = {isa = PBXBuildFile; fileRef = 2E27BAAA4B44A4E20474A21CFFCEB1D1 /* FBSDKGraphRequestConnection.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + F230806D76F41D0AC72D4EAF583ECEF3 /* FBSDKBridgeAPIRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = D71F4FD58B1D18D344F1345D091B3EFE /* FBSDKBridgeAPIRequest.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + F34AD6F09224AE426DDF9CBC50585940 /* FBSDKHybridAppEventsScriptMessageHandler.h in Headers */ = {isa = PBXBuildFile; fileRef = B6C807ECFF0F5B1CCDBFDBC4EFABF97B /* FBSDKHybridAppEventsScriptMessageHandler.h */; settings = {ATTRIBUTES = (Project, ); }; }; + F3C453845C3EDFE8BC4EA2529639F302 /* FBSDKErrorRecoveryAttempter.h in Headers */ = {isa = PBXBuildFile; fileRef = 280581A2B328BC7A807409859553AEBF /* FBSDKErrorRecoveryAttempter.h */; settings = {ATTRIBUTES = (Project, ); }; }; + F831C27360FF11D3368C22BC33258369 /* FBSDKBridgeAPIProtocolWebV2.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B287D15F4405CA81108B11E3BE53C70 /* FBSDKBridgeAPIProtocolWebV2.h */; settings = {ATTRIBUTES = (Project, ); }; }; + F8B1A91430DF6ECBDF964CA6FFAECF57 /* FBSDKErrorReport.m in Sources */ = {isa = PBXBuildFile; fileRef = EA2F85713E6B75D31D1B51E36C7A293B /* FBSDKErrorReport.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + F94BD1DBAE874AA848A28F420F44ED78 /* FBSDKButton+Subclass.h in Headers */ = {isa = PBXBuildFile; fileRef = 86A93B029A7D2E9DF6DD753E67486C7A /* FBSDKButton+Subclass.h */; settings = {ATTRIBUTES = (Project, ); }; }; + FA8D72B0C74F5350DD53A361C9488788 /* FBSDKViewImpressionTracker.m in Sources */ = {isa = PBXBuildFile; fileRef = 4819AFC9F0FE60D793B6AC24E946099B /* FBSDKViewImpressionTracker.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + FC1862FCFB48E6D0F64952BBB1B02547 /* FBSDKColor.h in Headers */ = {isa = PBXBuildFile; fileRef = D212093EEA51F27082F86E6391A395C2 /* FBSDKColor.h */; settings = {ATTRIBUTES = (Project, ); }; }; + FCE8C731CFDC8E8CE58F6AEDD67ED043 /* FBSDKAppLinkUtility.h in Headers */ = {isa = PBXBuildFile; fileRef = 1C93D442C393F25FC996A30AF86A62AB /* FBSDKAppLinkUtility.h */; settings = {ATTRIBUTES = (Project, ); }; }; + FF0E3606F6882A1C3DB2B893DA2050F7 /* FBSDKMeasurementEvent.m in Sources */ = {isa = PBXBuildFile; fileRef = 8409CC0B107A9CF3BA04FF9652884EA5 /* FBSDKMeasurementEvent.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 0013F327884B589D5E7789777FDD7610 /* FBSDKApplicationDelegate.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKApplicationDelegate.m; path = FBSDKCoreKit/FBSDKCoreKit/FBSDKApplicationDelegate.m; sourceTree = ""; }; + 01087A5C84C0796D3696D93002E0A787 /* FBSDKGraphRequestDataAttachment.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKGraphRequestDataAttachment.m; path = FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphRequestDataAttachment.m; sourceTree = ""; }; + 01C6B5C2A66D35D96FFCC117CA1222CB /* FBSDKAppLinkResolver.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKAppLinkResolver.m; path = FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkResolver.m; sourceTree = ""; }; + 028E7B02C02F965B38B87F95A0C5A174 /* FBSDKButton.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKButton.m; path = FBSDKCoreKit/FBSDKCoreKit/FBSDKButton.m; sourceTree = ""; }; + 03398B1178BE2C0C2C185A799D1AFDA9 /* FBSDKAppEventsStateManager.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKAppEventsStateManager.m; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsStateManager.m; sourceTree = ""; }; + 03A1389E087FFA3ED286C91D7DC37ED0 /* FBSDKLogger.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKLogger.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKLogger.h; sourceTree = ""; }; + 061B8F4C36C474AE619A18F253CEFD6D /* FBSDKMutableCopying.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKMutableCopying.h; path = FBSDKCoreKit/FBSDKCoreKit/FBSDKMutableCopying.h; sourceTree = ""; }; + 0639872A24096F72F29FC333BE3D19D2 /* FBSDKCrashObserving.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKCrashObserving.h; path = FBSDKCoreKit/FBSDKCoreKit/Basics/Instrument/FBSDKCrashObserving.h; sourceTree = ""; }; + 09540133AC3F943B2DEDE676495F9AE7 /* FBSDKGraphRequest+Internal.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "FBSDKGraphRequest+Internal.h"; path = "FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequest+Internal.h"; sourceTree = ""; }; + 097A407B61A00577399626BC7AAAB033 /* FBSDKBridgeAPIProtocol.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKBridgeAPIProtocol.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPIProtocol.h; sourceTree = ""; }; + 0AFDA0E0020CBE0E2C52A2ED93FDB0B3 /* FBSDKLogo.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKLogo.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKLogo.m; sourceTree = ""; }; + 0D450ABF5EF018FD07C51271D5ABD5C6 /* FBSDKAccessToken.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKAccessToken.h; path = FBSDKCoreKit/FBSDKCoreKit/FBSDKAccessToken.h; sourceTree = ""; }; + 0F16390CE516DACD7FD3617075A706D2 /* FBSDKBridgeAPIProtocolNativeV1.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKBridgeAPIProtocolNativeV1.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/ProtocolVersions/FBSDKBridgeAPIProtocolNativeV1.h; sourceTree = ""; }; + 1227111ABD28F801089E2B85E1EE2228 /* FBSDKAccessTokenCache.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKAccessTokenCache.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKAccessTokenCache.m; sourceTree = ""; }; + 12E5B43537FD2EE1C43B04C62BE97B05 /* FBSDKBridgeAPIRequest.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKBridgeAPIRequest.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPIRequest.h; sourceTree = ""; }; + 13306AE453260C2030C1BA47AD37A1D6 /* FBSDKURL.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKURL.h; path = FBSDKCoreKit/FBSDKCoreKit/FBSDKURL.h; sourceTree = ""; }; + 1697CABB6C4AD7A95499E9361302F2B8 /* FBSDKServerConfiguration.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKServerConfiguration.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKServerConfiguration.m; sourceTree = ""; }; + 17CCED16DE276E7593BACCA3AAAC7628 /* FBSDKMath.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKMath.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKMath.h; sourceTree = ""; }; + 1BA889EF397BF6336E849CB228155A0F /* FBSDKCodelessPathComponent.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKCodelessPathComponent.h; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKCodelessPathComponent.h; sourceTree = ""; }; + 1BC50C3DFA26AC281872E7A413A4782C /* FBSDKWebDialogView.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKWebDialogView.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/WebDialog/FBSDKWebDialogView.h; sourceTree = ""; }; + 1C5B8B1A4CE54D16FD9D19F99430B196 /* FBSDKBridgeAPIRequest+Private.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "FBSDKBridgeAPIRequest+Private.h"; path = "FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPIRequest+Private.h"; sourceTree = ""; }; + 1C93D442C393F25FC996A30AF86A62AB /* FBSDKAppLinkUtility.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKAppLinkUtility.h; path = FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkUtility.h; sourceTree = ""; }; + 1D92C9DEB2A306D4067B696BE3D43EAD /* FBSDKDialogConfiguration.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKDialogConfiguration.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKDialogConfiguration.m; sourceTree = ""; }; + 1DFD137665BA20A8C421A2ACE7E26EBF /* FBSDKURLOpening.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKURLOpening.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKURLOpening.h; sourceTree = ""; }; + 1E3FD014BF72B91E1FD1F9977420A1BA /* FBSDKTypeUtility.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKTypeUtility.m; path = FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKTypeUtility.m; sourceTree = ""; }; + 1E5E8D7C93B61E1A1A7B71BB152EF7F2 /* FBSDKBridgeAPI.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKBridgeAPI.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPI.m; sourceTree = ""; }; + 1F39010A5E6F8BD19700554BB4F59657 /* FBSDKWebDialog.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKWebDialog.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/WebDialog/FBSDKWebDialog.m; sourceTree = ""; }; + 20B14B013A80CF03C52F6BCAFE481885 /* _FBSDKTemporaryErrorRecoveryAttempter.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = _FBSDKTemporaryErrorRecoveryAttempter.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/ErrorRecovery/_FBSDKTemporaryErrorRecoveryAttempter.m; sourceTree = ""; }; + 226398BB574CC843119FB68D434A495E /* FBSDKProfilePictureView.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKProfilePictureView.m; path = FBSDKCoreKit/FBSDKCoreKit/FBSDKProfilePictureView.m; sourceTree = ""; }; + 280581A2B328BC7A807409859553AEBF /* FBSDKErrorRecoveryAttempter.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKErrorRecoveryAttempter.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/ErrorRecovery/FBSDKErrorRecoveryAttempter.h; sourceTree = ""; }; + 285AB85E814C3C2B5174EA976A4C527F /* FBSDKAppLink.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKAppLink.m; path = FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLink.m; sourceTree = ""; }; + 28CA47DF51DD41C95D6836A02D6B82AD /* FBSDKErrorRecoveryAttempter.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKErrorRecoveryAttempter.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/ErrorRecovery/FBSDKErrorRecoveryAttempter.m; sourceTree = ""; }; + 28F3F2240D912F2A867CE893945F0163 /* FBSDKCodelessMacros.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKCodelessMacros.h; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKCodelessMacros.h; sourceTree = ""; }; + 2A4578F443B6F28E5202FCD1B8FD060B /* FBSDKViewHierarchy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKViewHierarchy.m; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKViewHierarchy.m; sourceTree = ""; }; + 2C58A3985A7BF717CF03D2D250D4AE55 /* FBSDKAccessTokenCaching.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKAccessTokenCaching.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKAccessTokenCaching.h; sourceTree = ""; }; + 2CC1921F0F75A48E156D2B3901DA5B89 /* FBSDKTestUsersManager.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKTestUsersManager.m; path = FBSDKCoreKit/FBSDKCoreKit/FBSDKTestUsersManager.m; sourceTree = ""; }; + 2E27BAAA4B44A4E20474A21CFFCEB1D1 /* FBSDKGraphRequestConnection.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKGraphRequestConnection.m; path = FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphRequestConnection.m; sourceTree = ""; }; + 2EB5E28DF6502B6A2214D43BA05FE520 /* FBSDKSettings+Internal.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "FBSDKSettings+Internal.h"; path = "FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKSettings+Internal.h"; sourceTree = ""; }; + 2F939984744895F80614BE5E9186D88E /* FBSDKErrorConfiguration.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKErrorConfiguration.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKErrorConfiguration.m; sourceTree = ""; }; + 300746E41F4A90BBFEC8C3BFB1941CE4 /* FBSDKAccessTokenExpirer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKAccessTokenExpirer.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKAccessTokenExpirer.h; sourceTree = ""; }; + 315C6F2AFC942DFF473DF7945F4809A3 /* FBSDKBase64.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKBase64.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/Base64/FBSDKBase64.m; sourceTree = ""; }; + 3210E37015954B194F54799E8BEBD9B8 /* FBSDKAppLinkTarget.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKAppLinkTarget.h; path = FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkTarget.h; sourceTree = ""; }; + 3312ACCFC6798E17067D02E31237D32A /* FBSDKApplicationDelegate.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKApplicationDelegate.h; path = FBSDKCoreKit/FBSDKCoreKit/FBSDKApplicationDelegate.h; sourceTree = ""; }; + 34BA2B0E2CE52650C7C3582E1221491F /* FBSDKCrashHandler.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKCrashHandler.h; path = FBSDKCoreKit/FBSDKCoreKit/Basics/Instrument/FBSDKCrashHandler.h; sourceTree = ""; }; + 35B4DD9B7746DA62574FF65261355D16 /* FBSDKURLSessionTask.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKURLSessionTask.h; path = FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKURLSessionTask.h; sourceTree = ""; }; + 3631FE3BE662A9EF175C5DA42E851A2E /* FBSDKSettings.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKSettings.m; path = FBSDKCoreKit/FBSDKCoreKit/FBSDKSettings.m; sourceTree = ""; }; + 36969BEB1AD98E49C24708F0FC229452 /* FBSDKInstrumentManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKInstrumentManager.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/FBSDKInstrumentManager.h; sourceTree = ""; }; + 38170880D2FB97A03A8C753942971137 /* FBSDKDeviceRequestsHelper.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKDeviceRequestsHelper.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKDeviceRequestsHelper.h; sourceTree = ""; }; + 394B61C92D906509F42AF6570AF4B908 /* FBSDKGraphRequestBody.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKGraphRequestBody.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequestBody.h; sourceTree = ""; }; + 3AAB47CC43BC978F2007F53E74DAD7C3 /* FBSDKBridgeAPIResponse.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKBridgeAPIResponse.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPIResponse.m; sourceTree = ""; }; + 3CDF5125327A63E9116F0C08E2BBADA4 /* FBSDKAppEventsStateManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKAppEventsStateManager.h; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsStateManager.h; sourceTree = ""; }; + 3DAB70056BFCA1CD86831EF18332F5BE /* FBSDKWebViewAppLinkResolver.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKWebViewAppLinkResolver.m; path = FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKWebViewAppLinkResolver.m; sourceTree = ""; }; + 3E8179BF0A5F38B81753405D134FBEAF /* FBSDKCoreKit-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "FBSDKCoreKit-dummy.m"; sourceTree = ""; }; + 42B4D4ED78DEF4C6ABDD4FC12727BA66 /* FBSDKHybridAppEventsScriptMessageHandler.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKHybridAppEventsScriptMessageHandler.m; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKHybridAppEventsScriptMessageHandler.m; sourceTree = ""; }; + 436B40C704CDE6E05F88C76DC67EB3D2 /* FBSDKAppLinkResolver.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKAppLinkResolver.h; path = FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkResolver.h; sourceTree = ""; }; + 438B4FA291CF3CA6A6FA34C19A13A902 /* FBSDKCrypto.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKCrypto.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/Cryptography/FBSDKCrypto.h; sourceTree = ""; }; + 43D059938332528C76A63C9BF081C30D /* FBSDKAppLinkNavigation.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKAppLinkNavigation.m; path = FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkNavigation.m; sourceTree = ""; }; + 447829252D92561F99DABAA6DE0F8571 /* FBSDKCodelessIndexer.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKCodelessIndexer.m; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKCodelessIndexer.m; sourceTree = ""; }; + 44D98D6174D53D32F8268BD5DFB99B76 /* FBSDKTriStateBOOL.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKTriStateBOOL.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKTriStateBOOL.m; sourceTree = ""; }; + 470B12345152E66B83D8F6E20D9CEE6B /* _FBSDKTemporaryErrorRecoveryAttempter.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = _FBSDKTemporaryErrorRecoveryAttempter.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/ErrorRecovery/_FBSDKTemporaryErrorRecoveryAttempter.h; sourceTree = ""; }; + 47364633885A95942B5C7175883CCB71 /* FBSDKCoreKit.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = FBSDKCoreKit.xcconfig; sourceTree = ""; }; + 4819AFC9F0FE60D793B6AC24E946099B /* FBSDKViewImpressionTracker.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKViewImpressionTracker.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKViewImpressionTracker.m; sourceTree = ""; }; + 490DE9B03D6848DBA3164B192695CEF4 /* FBSDKAccessToken.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKAccessToken.m; path = FBSDKCoreKit/FBSDKCoreKit/FBSDKAccessToken.m; sourceTree = ""; }; + 4986639EDB95E8EB79A360A91DE78911 /* FBSDKCloseIcon.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKCloseIcon.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKCloseIcon.h; sourceTree = ""; }; + 4A75635795AE923ABCE1E77E75FCC884 /* FBSDKSwizzler.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKSwizzler.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKSwizzler.h; sourceTree = ""; }; + 4D7AB2082D11D7D038C616F6E6EE0E95 /* FBSDKLibAnalyzer.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKLibAnalyzer.m; path = FBSDKCoreKit/FBSDKCoreKit/Basics/Instrument/FBSDKLibAnalyzer.m; sourceTree = ""; }; + 4EE82ABE850674BBF9CA8A58ADD3FB4F /* FBSDKServerConfiguration.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKServerConfiguration.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKServerConfiguration.h; sourceTree = ""; }; + 4F52322553F92630BE4609739EAABF58 /* FBSDKAppLinkNavigation.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKAppLinkNavigation.h; path = FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkNavigation.h; sourceTree = ""; }; + 512B56DC781EA85D28C2652334C818A7 /* FBSDKURLSession.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKURLSession.h; path = FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKURLSession.h; sourceTree = ""; }; + 51FB9CAFEA878F1511820ED81BF95044 /* FBSDKGraphRequestPiggybackManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKGraphRequestPiggybackManager.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequestPiggybackManager.h; sourceTree = ""; }; + 52B1B8E47BB58448AE88ADEE402A9FE5 /* FBSDKButton.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKButton.h; path = FBSDKCoreKit/FBSDKCoreKit/FBSDKButton.h; sourceTree = ""; }; + 54FCAFC6FC3224A4354BC3E121F5E5C5 /* FBSDKMeasurementEventListener.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKMeasurementEventListener.m; path = FBSDKCoreKit/FBSDKCoreKit/AppLink/Internal/FBSDKMeasurementEventListener.m; sourceTree = ""; }; + 56C4DF76C08292A8AD32CB133013441F /* FBSDKGraphRequestDataAttachment.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKGraphRequestDataAttachment.h; path = FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphRequestDataAttachment.h; sourceTree = ""; }; + 57219FE740C3240A506FF2DD11A65914 /* FBSDKAppEventsDeviceInfo.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKAppEventsDeviceInfo.h; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsDeviceInfo.h; sourceTree = ""; }; + 581EE74F96E38CD58B19526553623A8A /* FBSDKSettings.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKSettings.h; path = FBSDKCoreKit/FBSDKCoreKit/FBSDKSettings.h; sourceTree = ""; }; + 5A2F6DD494563824406EC3843381E032 /* FBSDKCrashObserver.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKCrashObserver.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/CrashReport/FBSDKCrashObserver.m; sourceTree = ""; }; + 5A537E68DD5710619940608A49F5ED12 /* FBSDKApplicationObserving.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKApplicationObserving.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKApplicationObserving.h; sourceTree = ""; }; + 5AEE0C028D9A8813A3EC8B09E4E63957 /* FBSDKSwizzler.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKSwizzler.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKSwizzler.m; sourceTree = ""; }; + 5D28BB7BBB1FBF38710F004755F39B19 /* FBSDKDialogConfiguration.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKDialogConfiguration.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKDialogConfiguration.h; sourceTree = ""; }; + 5DCC628B73D004D44069D18DB33312F6 /* FBSDKCodelessParameterComponent.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKCodelessParameterComponent.h; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKCodelessParameterComponent.h; sourceTree = ""; }; + 5E62C3FA2AE5502375D700F8A101E5C0 /* FacebookSDKStrings.bundle */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "wrapper.plug-in"; path = FacebookSDKStrings.bundle; sourceTree = ""; }; + 5FACC97260A0CBAFBC1DBE2B6FB3D149 /* FBSDKGraphRequestPiggybackManager.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKGraphRequestPiggybackManager.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequestPiggybackManager.m; sourceTree = ""; }; + 60A68018B0418D92789029E8CFDDA965 /* FBSDKServerConfigurationManager+Internal.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "FBSDKServerConfigurationManager+Internal.h"; path = "FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKServerConfigurationManager+Internal.h"; sourceTree = ""; }; + 60DB33D244E12A2BAC75F14A2F6E9DAF /* FBSDKGraphRequest.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKGraphRequest.h; path = FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphRequest.h; sourceTree = ""; }; + 629ABEAA5B539D9155DF1CFBE6846C74 /* FBSDKPaymentObserver.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKPaymentObserver.m; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKPaymentObserver.m; sourceTree = ""; }; + 629C1D83EB87DD3F90505BB3B203838C /* FBSDKCoreKit+Internal.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "FBSDKCoreKit+Internal.h"; path = "FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKCoreKit+Internal.h"; sourceTree = ""; }; + 62BB4D164A46CA3955A2B3372690829D /* FBSDKTypeUtility.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKTypeUtility.h; path = FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKTypeUtility.h; sourceTree = ""; }; + 62ECFDCE5BE222879E2D4E03DA8377D1 /* FBSDKAudioResourceLoader.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKAudioResourceLoader.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKAudioResourceLoader.m; sourceTree = ""; }; + 63E13375D01F67955B4A58DB8C2EA92F /* FBSDKLibAnalyzer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKLibAnalyzer.h; path = FBSDKCoreKit/FBSDKCoreKit/Basics/Instrument/FBSDKLibAnalyzer.h; sourceTree = ""; }; + 6499B13BB7DE357F69EF1E5A0888F0F5 /* FBSDKGraphRequestConnection+Internal.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "FBSDKGraphRequestConnection+Internal.h"; path = "FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequestConnection+Internal.h"; sourceTree = ""; }; + 66F55ED34F28A69E4303BFE682172F36 /* FBSDKColor.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKColor.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKColor.m; sourceTree = ""; }; + 66FB642A989DF33E4EA37FDD64F31C75 /* FBSDKCloseIcon.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKCloseIcon.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKCloseIcon.m; sourceTree = ""; }; + 66FDCD286D9184997E5934FE2069916A /* FBSDKGateKeeperManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKGateKeeperManager.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKGateKeeperManager.h; sourceTree = ""; }; + 67F2AFF65E638C13A18E4ACF18714321 /* FBSDKMonotonicTime.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKMonotonicTime.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKMonotonicTime.m; sourceTree = ""; }; + 6A6025750681E1FEC7BC6F98F5E0364A /* FBSDKBridgeAPIResponse.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKBridgeAPIResponse.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPIResponse.h; sourceTree = ""; }; + 6B287D15F4405CA81108B11E3BE53C70 /* FBSDKBridgeAPIProtocolWebV2.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKBridgeAPIProtocolWebV2.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/ProtocolVersions/FBSDKBridgeAPIProtocolWebV2.h; sourceTree = ""; }; + 6D28E1E32F5762F96069D5020DDC4B84 /* FBSDKDynamicFrameworkLoader.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKDynamicFrameworkLoader.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal_NoARC/FBSDKDynamicFrameworkLoader.m; sourceTree = ""; }; + 6D78D0C0A4DEE4CCF560B9A61D56E0F8 /* FBSDKAppLink_Internal.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKAppLink_Internal.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKAppLink_Internal.h; sourceTree = ""; }; + 6E333DB4DE47D766F53644E375FAE053 /* FBSDKAppLink.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKAppLink.h; path = FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLink.h; sourceTree = ""; }; + 6F45F9E25728D451DB88B7DA4F7709DA /* FBSDKUIUtility.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKUIUtility.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKUIUtility.h; sourceTree = ""; }; + 706A5E5A091D7037066EC17C69FBC928 /* FBSDKServerConfigurationManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKServerConfigurationManager.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKServerConfigurationManager.h; sourceTree = ""; }; + 70F9062F67A62AECD4772DEC157102D6 /* FBSDKErrorRecoveryConfiguration.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKErrorRecoveryConfiguration.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKErrorRecoveryConfiguration.m; sourceTree = ""; }; + 726B879112C00D87F83F0BCE38EAD36C /* FBSDKAppLinkReturnToRefererController.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKAppLinkReturnToRefererController.h; path = FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkReturnToRefererController.h; sourceTree = ""; }; + 743278C2E8C41D28BB6543931C7E086A /* FBSDKCrashObserver.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKCrashObserver.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/CrashReport/FBSDKCrashObserver.h; sourceTree = ""; }; + 7494E5A5C35A29C7C46F6BF9BA5695F9 /* FBSDKBridgeAPIProtocolNativeV1.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKBridgeAPIProtocolNativeV1.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/ProtocolVersions/FBSDKBridgeAPIProtocolNativeV1.m; sourceTree = ""; }; + 74A2114BEA0C0AD92017549FF863F308 /* FBSDKProfile.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKProfile.m; path = FBSDKCoreKit/FBSDKCoreKit/FBSDKProfile.m; sourceTree = ""; }; + 77542F405D6D0A50DDB351039C8298CB /* FBSDKCodelessPathComponent.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKCodelessPathComponent.m; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKCodelessPathComponent.m; sourceTree = ""; }; + 78433FEAFF15A0491AE7F4F95E3664F5 /* FBSDKViewHierarchy.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKViewHierarchy.h; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKViewHierarchy.h; sourceTree = ""; }; + 787AB172507357247F687B8ADF9B7896 /* FBSDKAppEvents.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKAppEvents.h; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/FBSDKAppEvents.h; sourceTree = ""; }; + 7A871C259D6F4150AD9E6EEB5BAE2765 /* FBSDKGraphErrorRecoveryProcessor.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKGraphErrorRecoveryProcessor.h; path = FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphErrorRecoveryProcessor.h; sourceTree = ""; }; + 7C554BA5E717E1B5A85649064D647FC8 /* FBSDKError.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKError.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKError.m; sourceTree = ""; }; + 7CE03AC09BC4DE2437535B6B872BC8C3 /* FBSDKKeychainStoreViaBundleID.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKKeychainStoreViaBundleID.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKKeychainStoreViaBundleID.m; sourceTree = ""; }; + 7D7D000B67D0661C8D90E4AF756CD888 /* FBSDKDynamicFrameworkLoader.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKDynamicFrameworkLoader.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKDynamicFrameworkLoader.h; sourceTree = ""; }; + 7E9367713F02823510F61CB1ACBEA9B5 /* FBSDKServerConfiguration+Internal.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "FBSDKServerConfiguration+Internal.h"; path = "FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKServerConfiguration+Internal.h"; sourceTree = ""; }; + 7F694627B18E93E2DAB2F78B3D5CCB27 /* FBSDKInternalUtility.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKInternalUtility.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKInternalUtility.m; sourceTree = ""; }; + 7F69B7539AC117EA7CBC7A042AFE75BA /* FBSDKDeviceRequestsHelper.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKDeviceRequestsHelper.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKDeviceRequestsHelper.m; sourceTree = ""; }; + 7FDF121D7CF2A152D849EC4472B4EC92 /* FBSDKErrorConfiguration.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKErrorConfiguration.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKErrorConfiguration.h; sourceTree = ""; }; + 832716FCAF620F3A22FE04686A894BB0 /* FBSDKBase64.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKBase64.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/Base64/FBSDKBase64.h; sourceTree = ""; }; + 8409CC0B107A9CF3BA04FF9652884EA5 /* FBSDKMeasurementEvent.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKMeasurementEvent.m; path = FBSDKCoreKit/FBSDKCoreKit/FBSDKMeasurementEvent.m; sourceTree = ""; }; + 8424929B3982CD9C28810ECDF9690C11 /* FBSDKBridgeAPIProtocolWebV2.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKBridgeAPIProtocolWebV2.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/ProtocolVersions/FBSDKBridgeAPIProtocolWebV2.m; sourceTree = ""; }; + 8502F1F070AA506B9EFFA166C132FF37 /* FBSDKTimeSpentData.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKTimeSpentData.h; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKTimeSpentData.h; sourceTree = ""; }; + 860862623F7274D92BE27925DEB6E9C9 /* FBSDKGraphRequestConnection.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKGraphRequestConnection.h; path = FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphRequestConnection.h; sourceTree = ""; }; + 86A93B029A7D2E9DF6DD753E67486C7A /* FBSDKButton+Subclass.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "FBSDKButton+Subclass.h"; path = "FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKButton+Subclass.h"; sourceTree = ""; }; + 86E2B94892515DDEFC0EAC8D94D4AD0A /* FBSDKWebDialog.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKWebDialog.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/WebDialog/FBSDKWebDialog.h; sourceTree = ""; }; + 87C594D592245A7A63DD311A5AE709DE /* FBSDKRestrictiveDataFilterManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKRestrictiveDataFilterManager.h; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/RestrictiveDataFilter/FBSDKRestrictiveDataFilterManager.h; sourceTree = ""; }; + 87E4301F082B8F3540F70E0F84ABB937 /* FBSDKTimeSpentData.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKTimeSpentData.m; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKTimeSpentData.m; sourceTree = ""; }; + 8A551484BEF7137C36880F5D34338F6B /* FBSDKIcon.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKIcon.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKIcon.h; sourceTree = ""; }; + 8F6CAA5A66E9ED89A91277B7A97D6926 /* FBSDKAppLinkTarget.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKAppLinkTarget.m; path = FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkTarget.m; sourceTree = ""; }; + 93531D6F8F26CBEEADFCBDEABBD5F5D6 /* FBSDKAppEventsUtility.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKAppEventsUtility.h; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsUtility.h; sourceTree = ""; }; + 96406E664A103708095388E7F9F2127A /* FBSDKErrorRecoveryConfiguration.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKErrorRecoveryConfiguration.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKErrorRecoveryConfiguration.h; sourceTree = ""; }; + 97F458203A6E8EECCBB1CFF9632A9BD5 /* FBSDKMeasurementEvent_Internal.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKMeasurementEvent_Internal.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKMeasurementEvent_Internal.h; sourceTree = ""; }; + 9A7FB3100279A0E6B87F99583E2125BB /* FBSDKProfile.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKProfile.h; path = FBSDKCoreKit/FBSDKCoreKit/FBSDKProfile.h; sourceTree = ""; }; + 9C70A91636437C9DDC512B3C3C7A1104 /* FBSDKEventBindingManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKEventBindingManager.h; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKEventBindingManager.h; sourceTree = ""; }; + 9D87552A566F5FFFC4D49CE627DF9CB4 /* FBSDKLogger.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKLogger.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKLogger.m; sourceTree = ""; }; + 9E19818E0AE23EC215A942BD3698A64B /* FBSDKProfile+Internal.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "FBSDKProfile+Internal.h"; path = "FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKProfile+Internal.h"; sourceTree = ""; }; + A0025C580CAC210786453DB9715D6764 /* FBSDKMath.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKMath.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKMath.m; sourceTree = ""; }; + A4C8685E82ED28AFF1051B9192834F76 /* FBSDKAppLinkReturnToRefererView.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKAppLinkReturnToRefererView.m; path = FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkReturnToRefererView.m; sourceTree = ""; }; + A5457532EEBF0A0AF99A20B3FAFFCBDA /* FBSDKTestUsersManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKTestUsersManager.h; path = FBSDKCoreKit/FBSDKCoreKit/FBSDKTestUsersManager.h; sourceTree = ""; }; + A5C5A18575B9E3E723B25EC7BFBD42FC /* FBSDKUserDataStore.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKUserDataStore.m; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKUserDataStore.m; sourceTree = ""; }; + A6A65129D40EA0847A9F654629954221 /* FBSDKGraphRequestMetadata.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKGraphRequestMetadata.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequestMetadata.h; sourceTree = ""; }; + A9DCB30DBFD7D2AD07F651F541D7DB37 /* FBSDKAccessTokenExpirer.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKAccessTokenExpirer.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKAccessTokenExpirer.m; sourceTree = ""; }; + AA0786BFB8D8F665006095D1A4DB38EA /* FBSDKInternalUtility.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKInternalUtility.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKInternalUtility.h; sourceTree = ""; }; + AB5242A37061A34CE60AD1674CFD330F /* FBSDKUserDataStore.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKUserDataStore.h; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKUserDataStore.h; sourceTree = ""; }; + AB8CD69304CB72BD7C51A2C02D155150 /* FBSDKProfilePictureView.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKProfilePictureView.h; path = FBSDKCoreKit/FBSDKCoreKit/FBSDKProfilePictureView.h; sourceTree = ""; }; + ABB17F547548DDF8EE85B265D900A607 /* FBSDKCodelessIndexer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKCodelessIndexer.h; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKCodelessIndexer.h; sourceTree = ""; }; + ACE0DCD714C330F80CFE2C274BE91E55 /* FBSDKServerConfigurationManager.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKServerConfigurationManager.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKServerConfigurationManager.m; sourceTree = ""; }; + ADA6CCD584D21549FF151DCBFE7B5631 /* FBSDKFeatureManager.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKFeatureManager.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKFeatureManager.m; sourceTree = ""; }; + AEA302F8E73FB0102396EFB3CC9AED70 /* FBSDKCodelessParameterComponent.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKCodelessParameterComponent.m; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKCodelessParameterComponent.m; sourceTree = ""; }; + AFC535B9018540ED58603455A4DC1940 /* FBSDKCoreKit.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKCoreKit.h; path = FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit.h; sourceTree = ""; }; + AFD1F6E820D0F73E6873BB351C890399 /* FBSDKRestrictiveDataFilterManager.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKRestrictiveDataFilterManager.m; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/RestrictiveDataFilter/FBSDKRestrictiveDataFilterManager.m; sourceTree = ""; }; + B0C83892228DC8B4CFFA318DF4AE3464 /* FBSDKAudioResourceLoader.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKAudioResourceLoader.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKAudioResourceLoader.h; sourceTree = ""; }; + B5FCB7D0D43D332F505308B299EC6265 /* FBSDKUtility.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKUtility.m; path = FBSDKCoreKit/FBSDKCoreKit/FBSDKUtility.m; sourceTree = ""; }; + B6C807ECFF0F5B1CCDBFDBC4EFABF97B /* FBSDKHybridAppEventsScriptMessageHandler.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKHybridAppEventsScriptMessageHandler.h; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKHybridAppEventsScriptMessageHandler.h; sourceTree = ""; }; + B6F086B4418A3AB60B7ABCF09BBCBB98 /* FBSDKGateKeeperManager.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKGateKeeperManager.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKGateKeeperManager.m; sourceTree = ""; }; + B88907FC6E93C028B9E0243D0F4357B3 /* FBSDKURL.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKURL.m; path = FBSDKCoreKit/FBSDKCoreKit/FBSDKURL.m; sourceTree = ""; }; + B9776F31CCB7B88CAA9C17B4B9B50E09 /* FBSDKAccessTokenCache.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKAccessTokenCache.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKAccessTokenCache.h; sourceTree = ""; }; + B9DF2C37AA93CCEC4ACBB3118C8AC235 /* FBSDKMonotonicTime.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKMonotonicTime.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKMonotonicTime.h; sourceTree = ""; }; + BA67E4B8EC2DD9B24858AFF6D095204C /* FBSDKAppLinkReturnToRefererView.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKAppLinkReturnToRefererView.h; path = FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkReturnToRefererView.h; sourceTree = ""; }; + BA6A4AE7236A889ED8CC60BF1E63F897 /* FBSDKMaleSilhouetteIcon.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKMaleSilhouetteIcon.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKMaleSilhouetteIcon.m; sourceTree = ""; }; + BAA31CD2B8364F758C431DB95C772B54 /* FBSDKEventBinding.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKEventBinding.h; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKEventBinding.h; sourceTree = ""; }; + BB000C761910816B69422FD3C9AE183A /* FBSDKURL_Internal.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKURL_Internal.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKURL_Internal.h; sourceTree = ""; }; + BB1B1F83ACDEB9262F2D318D02C3DBC2 /* FBSDKUtility.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKUtility.h; path = FBSDKCoreKit/FBSDKCoreKit/FBSDKUtility.h; sourceTree = ""; }; + BB4FA8C1F3D3C37698E921B02414816A /* FBSDKMaleSilhouetteIcon.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKMaleSilhouetteIcon.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKMaleSilhouetteIcon.h; sourceTree = ""; }; + BB79482148A2DD2A5DCA26E2E41CAC01 /* FBSDKEventBinding.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKEventBinding.m; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKEventBinding.m; sourceTree = ""; }; + BCB1B58E4A8CA5A4B5AF2C3457767CC1 /* FBSDKFeatureManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKFeatureManager.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKFeatureManager.h; sourceTree = ""; }; + BF5B8E37336EE0E7E4F64DE420446BCC /* FBSDKGraphRequest.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKGraphRequest.m; path = FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphRequest.m; sourceTree = ""; }; + BF855930FA3BC84B0E8320054F763D52 /* FBSDKConstants.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKConstants.m; path = FBSDKCoreKit/FBSDKCoreKit/FBSDKConstants.m; sourceTree = ""; }; + C04C17C2A3E93AE1B2FD9A277C5DCC8F /* FBSDKCrashHandler.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKCrashHandler.m; path = FBSDKCoreKit/FBSDKCoreKit/Basics/Instrument/FBSDKCrashHandler.m; sourceTree = ""; }; + C0EE0383E0C1FCAB483C82F76156B88E /* FBSDKKeychainStoreViaBundleID.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKKeychainStoreViaBundleID.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKKeychainStoreViaBundleID.h; sourceTree = ""; }; + C265DD4554DB983B83F35DD0B4603C15 /* FBSDKAppEventsState.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKAppEventsState.m; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsState.m; sourceTree = ""; }; + C2AE575D485C9BA9686B9D8F0CD72445 /* FBSDKInstrumentManager.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKInstrumentManager.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/FBSDKInstrumentManager.m; sourceTree = ""; }; + C307EBBDB7FCEA7E76221CBC06E7187F /* FBSDKMeasurementEvent.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKMeasurementEvent.h; path = FBSDKCoreKit/FBSDKCoreKit/FBSDKMeasurementEvent.h; sourceTree = ""; }; + C62CAE44F60BF998E5143C87E51FF261 /* FBSDKMetadataIndexer.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKMetadataIndexer.h; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/AAM/FBSDKMetadataIndexer.h; sourceTree = ""; }; + C99F8684C3B3E90C417E1230977442CC /* FBSDKAppLinkReturnToRefererController.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKAppLinkReturnToRefererController.m; path = FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkReturnToRefererController.m; sourceTree = ""; }; + CAAD32F4CBB3A50C3BD0BF9B3591A204 /* FBSDKMeasurementEventListener.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKMeasurementEventListener.h; path = FBSDKCoreKit/FBSDKCoreKit/AppLink/Internal/FBSDKMeasurementEventListener.h; sourceTree = ""; }; + CAEA20C60541665BED836648FFF2A995 /* FBSDKAppEventsDeviceInfo.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKAppEventsDeviceInfo.m; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsDeviceInfo.m; sourceTree = ""; }; + CBAEF5A616088B6AF26DC63E979E6B30 /* FBSDKAppEvents.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKAppEvents.m; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/FBSDKAppEvents.m; sourceTree = ""; }; + CC9CE65FA2FEF68178B7CAF0A5D38601 /* FBSDKBasicUtility.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKBasicUtility.h; path = FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKBasicUtility.h; sourceTree = ""; }; + CD2A2C486F872BBF6B99B3C3EBAE0AB1 /* FBSDKViewImpressionTracker.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKViewImpressionTracker.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKViewImpressionTracker.h; sourceTree = ""; }; + CE31681D00539384148EF77C043E956A /* FBSDKGraphRequestBody.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKGraphRequestBody.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequestBody.m; sourceTree = ""; }; + CF859714C2E9C375FBA031AD1CD5BCE0 /* FBSDKImageDownloader.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKImageDownloader.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKImageDownloader.h; sourceTree = ""; }; + D212093EEA51F27082F86E6391A395C2 /* FBSDKColor.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKColor.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKColor.h; sourceTree = ""; }; + D263E7603C8763E40E779A08D814067E /* FBSDKURLSession.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKURLSession.m; path = FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKURLSession.m; sourceTree = ""; }; + D33CD9C95C7E90DAE9EE42F86A2B88EB /* FBSDKBridgeAPIProtocolType.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKBridgeAPIProtocolType.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPIProtocolType.h; sourceTree = ""; }; + D3899C8D204EDE5939AE9FA413CBEC78 /* FBSDKPaymentObserver.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKPaymentObserver.h; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKPaymentObserver.h; sourceTree = ""; }; + D3D625B3E2D03810729DE48709DABA9A /* FBSDKCoreKit-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "FBSDKCoreKit-prefix.pch"; sourceTree = ""; }; + D54F844173EF6369BF156CB63FA1C896 /* FBSDKContainerViewController.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKContainerViewController.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKContainerViewController.m; sourceTree = ""; }; + D5CBA9CEAC9F5DBE1F8F4CEDED2AA41B /* FBSDKMetadataIndexer.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKMetadataIndexer.m; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/AAM/FBSDKMetadataIndexer.m; sourceTree = ""; }; + D71F4FD58B1D18D344F1345D091B3EFE /* FBSDKBridgeAPIRequest.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKBridgeAPIRequest.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPIRequest.m; sourceTree = ""; }; + D8A7F24154D78632CC098567AE55B1DA /* FBSDKAppEvents+Internal.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "FBSDKAppEvents+Internal.h"; path = "FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEvents+Internal.h"; sourceTree = ""; }; + DACBAFB5DE4484503C16B0B5183DA4F0 /* FBSDKWebDialogView.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKWebDialogView.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/WebDialog/FBSDKWebDialogView.m; sourceTree = ""; }; + DB1E77A6D1A91EFD5130C574D33E1B96 /* libFBSDKCoreKit.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = libFBSDKCoreKit.a; path = libFBSDKCoreKit.a; sourceTree = BUILT_PRODUCTS_DIR; }; + DBBBD49B1C39CA08F03A2815CB9680DF /* FBSDKAppEventsState.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKAppEventsState.h; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsState.h; sourceTree = ""; }; + DCCF60600650668C69C5DBF5FF6A5416 /* FBSDKAppLinkUtility.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKAppLinkUtility.m; path = FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkUtility.m; sourceTree = ""; }; + DE7277AEE733A0E68DAE4BA89C819B31 /* FBSDKWebViewAppLinkResolver.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKWebViewAppLinkResolver.h; path = FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKWebViewAppLinkResolver.h; sourceTree = ""; }; + E0E2635041C38C6DA38EA0628A973F70 /* FBSDKKeychainStore.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKKeychainStore.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKKeychainStore.h; sourceTree = ""; }; + E52D75BB8601785CCBEFADB89DDA1982 /* FBSDKBridgeAPIProtocolWebV1.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKBridgeAPIProtocolWebV1.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/ProtocolVersions/FBSDKBridgeAPIProtocolWebV1.m; sourceTree = ""; }; + E59AF7F5FF7F9220048DEEA97FBD5BA8 /* FBSDKKeychainStore.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKKeychainStore.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKKeychainStore.m; sourceTree = ""; }; + E9885ABF6925EB37484BDF081860AC37 /* FBSDKTriStateBOOL.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKTriStateBOOL.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKTriStateBOOL.h; sourceTree = ""; }; + EA2F85713E6B75D31D1B51E36C7A293B /* FBSDKErrorReport.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKErrorReport.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/ErrorReport/FBSDKErrorReport.m; sourceTree = ""; }; + EA6E1F8A2E1F20A35A6F1D65BA25B3C9 /* FBSDKCopying.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKCopying.h; path = FBSDKCoreKit/FBSDKCoreKit/FBSDKCopying.h; sourceTree = ""; }; + EBF0D37AD2059C68207E2C6722BB08D2 /* FBSDKGraphRequestMetadata.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKGraphRequestMetadata.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequestMetadata.m; sourceTree = ""; }; + ED3FFF2452A39ECDCCAEBD7DF51879ED /* FBSDKURLSessionTask.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKURLSessionTask.m; path = FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKURLSessionTask.m; sourceTree = ""; }; + EDC87485DA6E073971898BB5DFEE56B5 /* FBSDKCrypto.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKCrypto.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/Cryptography/FBSDKCrypto.m; sourceTree = ""; }; + EECD525E501A2E21C67ABDA699092ADE /* FBSDKBridgeAPIProtocolWebV1.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKBridgeAPIProtocolWebV1.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/ProtocolVersions/FBSDKBridgeAPIProtocolWebV1.h; sourceTree = ""; }; + EF16831879574B34949A2CFB3E8FB8CC /* FBSDKImageDownloader.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKImageDownloader.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKImageDownloader.m; sourceTree = ""; }; + EF36357134F72C35BB9DE6C2552D429C /* FBSDKIcon.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKIcon.m; path = FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKIcon.m; sourceTree = ""; }; + F156D68E18E878B6B65C28EE2654B881 /* FBSDKApplicationDelegate+Internal.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "FBSDKApplicationDelegate+Internal.h"; path = "FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKApplicationDelegate+Internal.h"; sourceTree = ""; }; + F3E793BC4BCD806C389EF4620CACEA2D /* FBSDKAppLinkReturnToRefererView_Internal.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKAppLinkReturnToRefererView_Internal.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKAppLinkReturnToRefererView_Internal.h; sourceTree = ""; }; + F59E60B20CB0E897B4085320B6B7A485 /* FBSDKAppLinkResolving.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKAppLinkResolving.h; path = FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkResolving.h; sourceTree = ""; }; + F718958D6AF48D44EFC5BFF37B86C9AE /* FBSDKConstants.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKConstants.h; path = FBSDKCoreKit/FBSDKCoreKit/FBSDKConstants.h; sourceTree = ""; }; + F861CDD825BCF6641F276E0152BBEAA9 /* FBSDKContainerViewController.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKContainerViewController.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKContainerViewController.h; sourceTree = ""; }; + F9D4EA11444A20BFFF027BCB8829728B /* FBSDKError.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKError.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKError.h; sourceTree = ""; }; + FAE8183B6E9B4FD59FD29740B98E0DB6 /* FBSDKEventBindingManager.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKEventBindingManager.m; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKEventBindingManager.m; sourceTree = ""; }; + FB2607102800B746B19D6373D30067E9 /* FBSDKGraphErrorRecoveryProcessor.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKGraphErrorRecoveryProcessor.m; path = FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphErrorRecoveryProcessor.m; sourceTree = ""; }; + FC09E17D6DF64BA59C54B6DB72756EB8 /* FBSDKBridgeAPI.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKBridgeAPI.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPI.h; sourceTree = ""; }; + FC3E28561BB42BD7479CF97DB5954393 /* FBSDKErrorReport.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKErrorReport.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/ErrorReport/FBSDKErrorReport.h; sourceTree = ""; }; + FD3F21895D69072A4E0ECE44475F431E /* FBSDKBasicUtility.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKBasicUtility.m; path = FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKBasicUtility.m; sourceTree = ""; }; + FD70736A63BB0264F65D4D521798232A /* FBSDKAppEventsUtility.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKAppEventsUtility.m; path = FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsUtility.m; sourceTree = ""; }; + FDDF435D501C4F62E07E8A486A62D63B /* FBSDKLogo.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKLogo.h; path = FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKLogo.h; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 4EA5754C628475D2CB20202F70A1A514 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 01A3D950E816C9BA20C52D44585F7931 /* Resources */ = { + isa = PBXGroup; + children = ( + 5E62C3FA2AE5502375D700F8A101E5C0 /* FacebookSDKStrings.bundle */, + ); + name = Resources; + sourceTree = ""; + }; + 295FAE8D9C43A90E24266D1D56FE9284 = { + isa = PBXGroup; + children = ( + EF3AD55EA664A6403628C9B1AC2FA181 /* FBSDKCoreKit */, + 473EF126271297F2825F70571B3E74A6 /* Frameworks */, + FF6612424595AABD55402BA904052317 /* Products */, + ); + sourceTree = ""; + }; + 3CBE443F4FFE545FD52A8BF66CAAE68C /* Support Files */ = { + isa = PBXGroup; + children = ( + 47364633885A95942B5C7175883CCB71 /* FBSDKCoreKit.xcconfig */, + 3E8179BF0A5F38B81753405D134FBEAF /* FBSDKCoreKit-dummy.m */, + D3D625B3E2D03810729DE48709DABA9A /* FBSDKCoreKit-prefix.pch */, + ); + name = "Support Files"; + path = "../Target Support Files/FBSDKCoreKit"; + sourceTree = ""; + }; + 473EF126271297F2825F70571B3E74A6 /* Frameworks */ = { + isa = PBXGroup; + children = ( + ); + name = Frameworks; + sourceTree = ""; + }; + 80DF656363E53185219E55AB55323703 /* Core */ = { + isa = PBXGroup; + children = ( + 470B12345152E66B83D8F6E20D9CEE6B /* _FBSDKTemporaryErrorRecoveryAttempter.h */, + 20B14B013A80CF03C52F6BCAFE481885 /* _FBSDKTemporaryErrorRecoveryAttempter.m */, + 0D450ABF5EF018FD07C51271D5ABD5C6 /* FBSDKAccessToken.h */, + 490DE9B03D6848DBA3164B192695CEF4 /* FBSDKAccessToken.m */, + B9776F31CCB7B88CAA9C17B4B9B50E09 /* FBSDKAccessTokenCache.h */, + 1227111ABD28F801089E2B85E1EE2228 /* FBSDKAccessTokenCache.m */, + 2C58A3985A7BF717CF03D2D250D4AE55 /* FBSDKAccessTokenCaching.h */, + 300746E41F4A90BBFEC8C3BFB1941CE4 /* FBSDKAccessTokenExpirer.h */, + A9DCB30DBFD7D2AD07F651F541D7DB37 /* FBSDKAccessTokenExpirer.m */, + 787AB172507357247F687B8ADF9B7896 /* FBSDKAppEvents.h */, + CBAEF5A616088B6AF26DC63E979E6B30 /* FBSDKAppEvents.m */, + D8A7F24154D78632CC098567AE55B1DA /* FBSDKAppEvents+Internal.h */, + 57219FE740C3240A506FF2DD11A65914 /* FBSDKAppEventsDeviceInfo.h */, + CAEA20C60541665BED836648FFF2A995 /* FBSDKAppEventsDeviceInfo.m */, + DBBBD49B1C39CA08F03A2815CB9680DF /* FBSDKAppEventsState.h */, + C265DD4554DB983B83F35DD0B4603C15 /* FBSDKAppEventsState.m */, + 3CDF5125327A63E9116F0C08E2BBADA4 /* FBSDKAppEventsStateManager.h */, + 03398B1178BE2C0C2C185A799D1AFDA9 /* FBSDKAppEventsStateManager.m */, + 93531D6F8F26CBEEADFCBDEABBD5F5D6 /* FBSDKAppEventsUtility.h */, + FD70736A63BB0264F65D4D521798232A /* FBSDKAppEventsUtility.m */, + 3312ACCFC6798E17067D02E31237D32A /* FBSDKApplicationDelegate.h */, + 0013F327884B589D5E7789777FDD7610 /* FBSDKApplicationDelegate.m */, + F156D68E18E878B6B65C28EE2654B881 /* FBSDKApplicationDelegate+Internal.h */, + 5A537E68DD5710619940608A49F5ED12 /* FBSDKApplicationObserving.h */, + 6E333DB4DE47D766F53644E375FAE053 /* FBSDKAppLink.h */, + 285AB85E814C3C2B5174EA976A4C527F /* FBSDKAppLink.m */, + 6D78D0C0A4DEE4CCF560B9A61D56E0F8 /* FBSDKAppLink_Internal.h */, + 4F52322553F92630BE4609739EAABF58 /* FBSDKAppLinkNavigation.h */, + 43D059938332528C76A63C9BF081C30D /* FBSDKAppLinkNavigation.m */, + 436B40C704CDE6E05F88C76DC67EB3D2 /* FBSDKAppLinkResolver.h */, + 01C6B5C2A66D35D96FFCC117CA1222CB /* FBSDKAppLinkResolver.m */, + F59E60B20CB0E897B4085320B6B7A485 /* FBSDKAppLinkResolving.h */, + 726B879112C00D87F83F0BCE38EAD36C /* FBSDKAppLinkReturnToRefererController.h */, + C99F8684C3B3E90C417E1230977442CC /* FBSDKAppLinkReturnToRefererController.m */, + BA67E4B8EC2DD9B24858AFF6D095204C /* FBSDKAppLinkReturnToRefererView.h */, + A4C8685E82ED28AFF1051B9192834F76 /* FBSDKAppLinkReturnToRefererView.m */, + F3E793BC4BCD806C389EF4620CACEA2D /* FBSDKAppLinkReturnToRefererView_Internal.h */, + 3210E37015954B194F54799E8BEBD9B8 /* FBSDKAppLinkTarget.h */, + 8F6CAA5A66E9ED89A91277B7A97D6926 /* FBSDKAppLinkTarget.m */, + 1C93D442C393F25FC996A30AF86A62AB /* FBSDKAppLinkUtility.h */, + DCCF60600650668C69C5DBF5FF6A5416 /* FBSDKAppLinkUtility.m */, + B0C83892228DC8B4CFFA318DF4AE3464 /* FBSDKAudioResourceLoader.h */, + 62ECFDCE5BE222879E2D4E03DA8377D1 /* FBSDKAudioResourceLoader.m */, + 832716FCAF620F3A22FE04686A894BB0 /* FBSDKBase64.h */, + 315C6F2AFC942DFF473DF7945F4809A3 /* FBSDKBase64.m */, + FC09E17D6DF64BA59C54B6DB72756EB8 /* FBSDKBridgeAPI.h */, + 1E5E8D7C93B61E1A1A7B71BB152EF7F2 /* FBSDKBridgeAPI.m */, + 097A407B61A00577399626BC7AAAB033 /* FBSDKBridgeAPIProtocol.h */, + 0F16390CE516DACD7FD3617075A706D2 /* FBSDKBridgeAPIProtocolNativeV1.h */, + 7494E5A5C35A29C7C46F6BF9BA5695F9 /* FBSDKBridgeAPIProtocolNativeV1.m */, + D33CD9C95C7E90DAE9EE42F86A2B88EB /* FBSDKBridgeAPIProtocolType.h */, + EECD525E501A2E21C67ABDA699092ADE /* FBSDKBridgeAPIProtocolWebV1.h */, + E52D75BB8601785CCBEFADB89DDA1982 /* FBSDKBridgeAPIProtocolWebV1.m */, + 6B287D15F4405CA81108B11E3BE53C70 /* FBSDKBridgeAPIProtocolWebV2.h */, + 8424929B3982CD9C28810ECDF9690C11 /* FBSDKBridgeAPIProtocolWebV2.m */, + 12E5B43537FD2EE1C43B04C62BE97B05 /* FBSDKBridgeAPIRequest.h */, + D71F4FD58B1D18D344F1345D091B3EFE /* FBSDKBridgeAPIRequest.m */, + 1C5B8B1A4CE54D16FD9D19F99430B196 /* FBSDKBridgeAPIRequest+Private.h */, + 6A6025750681E1FEC7BC6F98F5E0364A /* FBSDKBridgeAPIResponse.h */, + 3AAB47CC43BC978F2007F53E74DAD7C3 /* FBSDKBridgeAPIResponse.m */, + 52B1B8E47BB58448AE88ADEE402A9FE5 /* FBSDKButton.h */, + 028E7B02C02F965B38B87F95A0C5A174 /* FBSDKButton.m */, + 86A93B029A7D2E9DF6DD753E67486C7A /* FBSDKButton+Subclass.h */, + 4986639EDB95E8EB79A360A91DE78911 /* FBSDKCloseIcon.h */, + 66FB642A989DF33E4EA37FDD64F31C75 /* FBSDKCloseIcon.m */, + ABB17F547548DDF8EE85B265D900A607 /* FBSDKCodelessIndexer.h */, + 447829252D92561F99DABAA6DE0F8571 /* FBSDKCodelessIndexer.m */, + 28F3F2240D912F2A867CE893945F0163 /* FBSDKCodelessMacros.h */, + 5DCC628B73D004D44069D18DB33312F6 /* FBSDKCodelessParameterComponent.h */, + AEA302F8E73FB0102396EFB3CC9AED70 /* FBSDKCodelessParameterComponent.m */, + 1BA889EF397BF6336E849CB228155A0F /* FBSDKCodelessPathComponent.h */, + 77542F405D6D0A50DDB351039C8298CB /* FBSDKCodelessPathComponent.m */, + D212093EEA51F27082F86E6391A395C2 /* FBSDKColor.h */, + 66F55ED34F28A69E4303BFE682172F36 /* FBSDKColor.m */, + F718958D6AF48D44EFC5BFF37B86C9AE /* FBSDKConstants.h */, + BF855930FA3BC84B0E8320054F763D52 /* FBSDKConstants.m */, + F861CDD825BCF6641F276E0152BBEAA9 /* FBSDKContainerViewController.h */, + D54F844173EF6369BF156CB63FA1C896 /* FBSDKContainerViewController.m */, + EA6E1F8A2E1F20A35A6F1D65BA25B3C9 /* FBSDKCopying.h */, + AFC535B9018540ED58603455A4DC1940 /* FBSDKCoreKit.h */, + 629C1D83EB87DD3F90505BB3B203838C /* FBSDKCoreKit+Internal.h */, + 743278C2E8C41D28BB6543931C7E086A /* FBSDKCrashObserver.h */, + 5A2F6DD494563824406EC3843381E032 /* FBSDKCrashObserver.m */, + 438B4FA291CF3CA6A6FA34C19A13A902 /* FBSDKCrypto.h */, + EDC87485DA6E073971898BB5DFEE56B5 /* FBSDKCrypto.m */, + 38170880D2FB97A03A8C753942971137 /* FBSDKDeviceRequestsHelper.h */, + 7F69B7539AC117EA7CBC7A042AFE75BA /* FBSDKDeviceRequestsHelper.m */, + 5D28BB7BBB1FBF38710F004755F39B19 /* FBSDKDialogConfiguration.h */, + 1D92C9DEB2A306D4067B696BE3D43EAD /* FBSDKDialogConfiguration.m */, + 7D7D000B67D0661C8D90E4AF756CD888 /* FBSDKDynamicFrameworkLoader.h */, + 6D28E1E32F5762F96069D5020DDC4B84 /* FBSDKDynamicFrameworkLoader.m */, + F9D4EA11444A20BFFF027BCB8829728B /* FBSDKError.h */, + 7C554BA5E717E1B5A85649064D647FC8 /* FBSDKError.m */, + 7FDF121D7CF2A152D849EC4472B4EC92 /* FBSDKErrorConfiguration.h */, + 2F939984744895F80614BE5E9186D88E /* FBSDKErrorConfiguration.m */, + 280581A2B328BC7A807409859553AEBF /* FBSDKErrorRecoveryAttempter.h */, + 28CA47DF51DD41C95D6836A02D6B82AD /* FBSDKErrorRecoveryAttempter.m */, + 96406E664A103708095388E7F9F2127A /* FBSDKErrorRecoveryConfiguration.h */, + 70F9062F67A62AECD4772DEC157102D6 /* FBSDKErrorRecoveryConfiguration.m */, + FC3E28561BB42BD7479CF97DB5954393 /* FBSDKErrorReport.h */, + EA2F85713E6B75D31D1B51E36C7A293B /* FBSDKErrorReport.m */, + BAA31CD2B8364F758C431DB95C772B54 /* FBSDKEventBinding.h */, + BB79482148A2DD2A5DCA26E2E41CAC01 /* FBSDKEventBinding.m */, + 9C70A91636437C9DDC512B3C3C7A1104 /* FBSDKEventBindingManager.h */, + FAE8183B6E9B4FD59FD29740B98E0DB6 /* FBSDKEventBindingManager.m */, + BCB1B58E4A8CA5A4B5AF2C3457767CC1 /* FBSDKFeatureManager.h */, + ADA6CCD584D21549FF151DCBFE7B5631 /* FBSDKFeatureManager.m */, + 66FDCD286D9184997E5934FE2069916A /* FBSDKGateKeeperManager.h */, + B6F086B4418A3AB60B7ABCF09BBCBB98 /* FBSDKGateKeeperManager.m */, + 7A871C259D6F4150AD9E6EEB5BAE2765 /* FBSDKGraphErrorRecoveryProcessor.h */, + FB2607102800B746B19D6373D30067E9 /* FBSDKGraphErrorRecoveryProcessor.m */, + 60DB33D244E12A2BAC75F14A2F6E9DAF /* FBSDKGraphRequest.h */, + BF5B8E37336EE0E7E4F64DE420446BCC /* FBSDKGraphRequest.m */, + 09540133AC3F943B2DEDE676495F9AE7 /* FBSDKGraphRequest+Internal.h */, + 394B61C92D906509F42AF6570AF4B908 /* FBSDKGraphRequestBody.h */, + CE31681D00539384148EF77C043E956A /* FBSDKGraphRequestBody.m */, + 860862623F7274D92BE27925DEB6E9C9 /* FBSDKGraphRequestConnection.h */, + 2E27BAAA4B44A4E20474A21CFFCEB1D1 /* FBSDKGraphRequestConnection.m */, + 6499B13BB7DE357F69EF1E5A0888F0F5 /* FBSDKGraphRequestConnection+Internal.h */, + 56C4DF76C08292A8AD32CB133013441F /* FBSDKGraphRequestDataAttachment.h */, + 01087A5C84C0796D3696D93002E0A787 /* FBSDKGraphRequestDataAttachment.m */, + A6A65129D40EA0847A9F654629954221 /* FBSDKGraphRequestMetadata.h */, + EBF0D37AD2059C68207E2C6722BB08D2 /* FBSDKGraphRequestMetadata.m */, + 51FB9CAFEA878F1511820ED81BF95044 /* FBSDKGraphRequestPiggybackManager.h */, + 5FACC97260A0CBAFBC1DBE2B6FB3D149 /* FBSDKGraphRequestPiggybackManager.m */, + B6C807ECFF0F5B1CCDBFDBC4EFABF97B /* FBSDKHybridAppEventsScriptMessageHandler.h */, + 42B4D4ED78DEF4C6ABDD4FC12727BA66 /* FBSDKHybridAppEventsScriptMessageHandler.m */, + 8A551484BEF7137C36880F5D34338F6B /* FBSDKIcon.h */, + EF36357134F72C35BB9DE6C2552D429C /* FBSDKIcon.m */, + CF859714C2E9C375FBA031AD1CD5BCE0 /* FBSDKImageDownloader.h */, + EF16831879574B34949A2CFB3E8FB8CC /* FBSDKImageDownloader.m */, + 36969BEB1AD98E49C24708F0FC229452 /* FBSDKInstrumentManager.h */, + C2AE575D485C9BA9686B9D8F0CD72445 /* FBSDKInstrumentManager.m */, + AA0786BFB8D8F665006095D1A4DB38EA /* FBSDKInternalUtility.h */, + 7F694627B18E93E2DAB2F78B3D5CCB27 /* FBSDKInternalUtility.m */, + E0E2635041C38C6DA38EA0628A973F70 /* FBSDKKeychainStore.h */, + E59AF7F5FF7F9220048DEEA97FBD5BA8 /* FBSDKKeychainStore.m */, + C0EE0383E0C1FCAB483C82F76156B88E /* FBSDKKeychainStoreViaBundleID.h */, + 7CE03AC09BC4DE2437535B6B872BC8C3 /* FBSDKKeychainStoreViaBundleID.m */, + 03A1389E087FFA3ED286C91D7DC37ED0 /* FBSDKLogger.h */, + 9D87552A566F5FFFC4D49CE627DF9CB4 /* FBSDKLogger.m */, + FDDF435D501C4F62E07E8A486A62D63B /* FBSDKLogo.h */, + 0AFDA0E0020CBE0E2C52A2ED93FDB0B3 /* FBSDKLogo.m */, + BB4FA8C1F3D3C37698E921B02414816A /* FBSDKMaleSilhouetteIcon.h */, + BA6A4AE7236A889ED8CC60BF1E63F897 /* FBSDKMaleSilhouetteIcon.m */, + 17CCED16DE276E7593BACCA3AAAC7628 /* FBSDKMath.h */, + A0025C580CAC210786453DB9715D6764 /* FBSDKMath.m */, + C307EBBDB7FCEA7E76221CBC06E7187F /* FBSDKMeasurementEvent.h */, + 8409CC0B107A9CF3BA04FF9652884EA5 /* FBSDKMeasurementEvent.m */, + 97F458203A6E8EECCBB1CFF9632A9BD5 /* FBSDKMeasurementEvent_Internal.h */, + CAAD32F4CBB3A50C3BD0BF9B3591A204 /* FBSDKMeasurementEventListener.h */, + 54FCAFC6FC3224A4354BC3E121F5E5C5 /* FBSDKMeasurementEventListener.m */, + C62CAE44F60BF998E5143C87E51FF261 /* FBSDKMetadataIndexer.h */, + D5CBA9CEAC9F5DBE1F8F4CEDED2AA41B /* FBSDKMetadataIndexer.m */, + B9DF2C37AA93CCEC4ACBB3118C8AC235 /* FBSDKMonotonicTime.h */, + 67F2AFF65E638C13A18E4ACF18714321 /* FBSDKMonotonicTime.m */, + 061B8F4C36C474AE619A18F253CEFD6D /* FBSDKMutableCopying.h */, + D3899C8D204EDE5939AE9FA413CBEC78 /* FBSDKPaymentObserver.h */, + 629ABEAA5B539D9155DF1CFBE6846C74 /* FBSDKPaymentObserver.m */, + 9A7FB3100279A0E6B87F99583E2125BB /* FBSDKProfile.h */, + 74A2114BEA0C0AD92017549FF863F308 /* FBSDKProfile.m */, + 9E19818E0AE23EC215A942BD3698A64B /* FBSDKProfile+Internal.h */, + AB8CD69304CB72BD7C51A2C02D155150 /* FBSDKProfilePictureView.h */, + 226398BB574CC843119FB68D434A495E /* FBSDKProfilePictureView.m */, + 87C594D592245A7A63DD311A5AE709DE /* FBSDKRestrictiveDataFilterManager.h */, + AFD1F6E820D0F73E6873BB351C890399 /* FBSDKRestrictiveDataFilterManager.m */, + 4EE82ABE850674BBF9CA8A58ADD3FB4F /* FBSDKServerConfiguration.h */, + 1697CABB6C4AD7A95499E9361302F2B8 /* FBSDKServerConfiguration.m */, + 7E9367713F02823510F61CB1ACBEA9B5 /* FBSDKServerConfiguration+Internal.h */, + 706A5E5A091D7037066EC17C69FBC928 /* FBSDKServerConfigurationManager.h */, + ACE0DCD714C330F80CFE2C274BE91E55 /* FBSDKServerConfigurationManager.m */, + 60A68018B0418D92789029E8CFDDA965 /* FBSDKServerConfigurationManager+Internal.h */, + 581EE74F96E38CD58B19526553623A8A /* FBSDKSettings.h */, + 3631FE3BE662A9EF175C5DA42E851A2E /* FBSDKSettings.m */, + 2EB5E28DF6502B6A2214D43BA05FE520 /* FBSDKSettings+Internal.h */, + 4A75635795AE923ABCE1E77E75FCC884 /* FBSDKSwizzler.h */, + 5AEE0C028D9A8813A3EC8B09E4E63957 /* FBSDKSwizzler.m */, + A5457532EEBF0A0AF99A20B3FAFFCBDA /* FBSDKTestUsersManager.h */, + 2CC1921F0F75A48E156D2B3901DA5B89 /* FBSDKTestUsersManager.m */, + 8502F1F070AA506B9EFFA166C132FF37 /* FBSDKTimeSpentData.h */, + 87E4301F082B8F3540F70E0F84ABB937 /* FBSDKTimeSpentData.m */, + E9885ABF6925EB37484BDF081860AC37 /* FBSDKTriStateBOOL.h */, + 44D98D6174D53D32F8268BD5DFB99B76 /* FBSDKTriStateBOOL.m */, + 6F45F9E25728D451DB88B7DA4F7709DA /* FBSDKUIUtility.h */, + 13306AE453260C2030C1BA47AD37A1D6 /* FBSDKURL.h */, + B88907FC6E93C028B9E0243D0F4357B3 /* FBSDKURL.m */, + BB000C761910816B69422FD3C9AE183A /* FBSDKURL_Internal.h */, + 1DFD137665BA20A8C421A2ACE7E26EBF /* FBSDKURLOpening.h */, + AB5242A37061A34CE60AD1674CFD330F /* FBSDKUserDataStore.h */, + A5C5A18575B9E3E723B25EC7BFBD42FC /* FBSDKUserDataStore.m */, + BB1B1F83ACDEB9262F2D318D02C3DBC2 /* FBSDKUtility.h */, + B5FCB7D0D43D332F505308B299EC6265 /* FBSDKUtility.m */, + 78433FEAFF15A0491AE7F4F95E3664F5 /* FBSDKViewHierarchy.h */, + 2A4578F443B6F28E5202FCD1B8FD060B /* FBSDKViewHierarchy.m */, + CD2A2C486F872BBF6B99B3C3EBAE0AB1 /* FBSDKViewImpressionTracker.h */, + 4819AFC9F0FE60D793B6AC24E946099B /* FBSDKViewImpressionTracker.m */, + 86E2B94892515DDEFC0EAC8D94D4AD0A /* FBSDKWebDialog.h */, + 1F39010A5E6F8BD19700554BB4F59657 /* FBSDKWebDialog.m */, + 1BC50C3DFA26AC281872E7A413A4782C /* FBSDKWebDialogView.h */, + DACBAFB5DE4484503C16B0B5183DA4F0 /* FBSDKWebDialogView.m */, + DE7277AEE733A0E68DAE4BA89C819B31 /* FBSDKWebViewAppLinkResolver.h */, + 3DAB70056BFCA1CD86831EF18332F5BE /* FBSDKWebViewAppLinkResolver.m */, + 01A3D950E816C9BA20C52D44585F7931 /* Resources */, + ); + name = Core; + sourceTree = ""; + }; + 8D2FCAA23A27EEE323F7E79148A89890 /* Basics */ = { + isa = PBXGroup; + children = ( + CC9CE65FA2FEF68178B7CAF0A5D38601 /* FBSDKBasicUtility.h */, + FD3F21895D69072A4E0ECE44475F431E /* FBSDKBasicUtility.m */, + 34BA2B0E2CE52650C7C3582E1221491F /* FBSDKCrashHandler.h */, + C04C17C2A3E93AE1B2FD9A277C5DCC8F /* FBSDKCrashHandler.m */, + 0639872A24096F72F29FC333BE3D19D2 /* FBSDKCrashObserving.h */, + 63E13375D01F67955B4A58DB8C2EA92F /* FBSDKLibAnalyzer.h */, + 4D7AB2082D11D7D038C616F6E6EE0E95 /* FBSDKLibAnalyzer.m */, + 62BB4D164A46CA3955A2B3372690829D /* FBSDKTypeUtility.h */, + 1E3FD014BF72B91E1FD1F9977420A1BA /* FBSDKTypeUtility.m */, + 512B56DC781EA85D28C2652334C818A7 /* FBSDKURLSession.h */, + D263E7603C8763E40E779A08D814067E /* FBSDKURLSession.m */, + 35B4DD9B7746DA62574FF65261355D16 /* FBSDKURLSessionTask.h */, + ED3FFF2452A39ECDCCAEBD7DF51879ED /* FBSDKURLSessionTask.m */, + ); + name = Basics; + sourceTree = ""; + }; + EF3AD55EA664A6403628C9B1AC2FA181 /* FBSDKCoreKit */ = { + isa = PBXGroup; + children = ( + 8D2FCAA23A27EEE323F7E79148A89890 /* Basics */, + 80DF656363E53185219E55AB55323703 /* Core */, + 3CBE443F4FFE545FD52A8BF66CAAE68C /* Support Files */, + ); + name = FBSDKCoreKit; + path = FBSDKCoreKit; + sourceTree = ""; + }; + FF6612424595AABD55402BA904052317 /* Products */ = { + isa = PBXGroup; + children = ( + DB1E77A6D1A91EFD5130C574D33E1B96 /* libFBSDKCoreKit.a */, + ); + name = Products; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + A1C26F63CAB3ED1804E37D700914F81E /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + BDE46F112EA5ADBA80DE9ED60E281FE3 /* _FBSDKTemporaryErrorRecoveryAttempter.h in Headers */, + 45CB28188BD4FB826D68278D198FEB6C /* FBSDKAccessToken.h in Headers */, + 93CD2DF46195156AFDC398A57D6D3598 /* FBSDKAccessTokenCache.h in Headers */, + 25683D296037966B6DBE1F3F2B39F9C7 /* FBSDKAccessTokenCaching.h in Headers */, + 168626EC9FF846D9BFF08E423DBD9F6F /* FBSDKAccessTokenExpirer.h in Headers */, + E27CCE8D94AF98480C20A3EA711C1089 /* FBSDKAppEvents+Internal.h in Headers */, + C36FDD6C48FCAABB624CB29F6FA5EC5C /* FBSDKAppEvents.h in Headers */, + 4A64818383EAC57921BB78279E405D1F /* FBSDKAppEventsDeviceInfo.h in Headers */, + C38370B1E1D50B6FED91463F6D3F3C2F /* FBSDKAppEventsState.h in Headers */, + C2AA61B2A08EC9F0BC5B79194351AD0E /* FBSDKAppEventsStateManager.h in Headers */, + BEEAF23EF6E7E44B3214AEBC697F668F /* FBSDKAppEventsUtility.h in Headers */, + 8C2AA6AE71429C504AC5CA69607A620D /* FBSDKApplicationDelegate+Internal.h in Headers */, + B1B0F9647BD7DC85E39B313679BDB585 /* FBSDKApplicationDelegate.h in Headers */, + 3DAB5B2E4B423993464D93C08E939D4C /* FBSDKApplicationObserving.h in Headers */, + 2E5DDD6890516BD7101027FECF4FACD4 /* FBSDKAppLink.h in Headers */, + 4CB152ACC7CA3E332AE3275DE3E9D3E3 /* FBSDKAppLink_Internal.h in Headers */, + B78627F88783DE8C3CD2F4BE0C5B358E /* FBSDKAppLinkNavigation.h in Headers */, + 9A0A693DCE954FCB4EC3A1DEB58D847A /* FBSDKAppLinkResolver.h in Headers */, + 5589A6A51D86AC7FDF4ECB9C1FB19DBB /* FBSDKAppLinkResolving.h in Headers */, + C245F717ED2996A75E91C8DCDD714F14 /* FBSDKAppLinkReturnToRefererController.h in Headers */, + 843DF25E8EA85DC4728FB1A06FE2C3E3 /* FBSDKAppLinkReturnToRefererView.h in Headers */, + 7C8118DF7ECEE92CC1C95A6297392929 /* FBSDKAppLinkReturnToRefererView_Internal.h in Headers */, + 8EDB4DCF8C48737E3A6CC3D68DCA8AAF /* FBSDKAppLinkTarget.h in Headers */, + FCE8C731CFDC8E8CE58F6AEDD67ED043 /* FBSDKAppLinkUtility.h in Headers */, + 1C318787DF25091B088166E50FDD2342 /* FBSDKAudioResourceLoader.h in Headers */, + 95E50274F316DF92F6ACC1E5F488742C /* FBSDKBase64.h in Headers */, + B29E03CDA515199EBF9F680E45087A6E /* FBSDKBasicUtility.h in Headers */, + 5B7528BB1E178ABCEBA42940F7BEF1E0 /* FBSDKBridgeAPI.h in Headers */, + 59158065F5516920194089842BF8C8C2 /* FBSDKBridgeAPIProtocol.h in Headers */, + 8E23296CAC0883822E45475593D1BEC7 /* FBSDKBridgeAPIProtocolNativeV1.h in Headers */, + 664802B2B4A081AF8F25DE3B51435CED /* FBSDKBridgeAPIProtocolType.h in Headers */, + 3E58EF06484328B94A552DA3FE2267DF /* FBSDKBridgeAPIProtocolWebV1.h in Headers */, + F831C27360FF11D3368C22BC33258369 /* FBSDKBridgeAPIProtocolWebV2.h in Headers */, + B1E5D8F727C72873B8401DE36DAC3F6E /* FBSDKBridgeAPIRequest+Private.h in Headers */, + E4EA223AEDC93C227EFE5E7E2C70E848 /* FBSDKBridgeAPIRequest.h in Headers */, + C9D14F25E6E4CA1F43BDC74F8EADC312 /* FBSDKBridgeAPIResponse.h in Headers */, + F94BD1DBAE874AA848A28F420F44ED78 /* FBSDKButton+Subclass.h in Headers */, + 2E8A348A0F67DB2C7E38B395AC0B6719 /* FBSDKButton.h in Headers */, + 32E15030EFF3DAE184DD312AC069A7B0 /* FBSDKCloseIcon.h in Headers */, + AFE1307E3F43762E68FDCAFF291C8566 /* FBSDKCodelessIndexer.h in Headers */, + 1EEFD8D87EE4642141EF60B1777EFE13 /* FBSDKCodelessMacros.h in Headers */, + A2E0E77CA79E327FA39A5F889C803167 /* FBSDKCodelessParameterComponent.h in Headers */, + 61FFA1B6B1D8C56369162886CF8C60AC /* FBSDKCodelessPathComponent.h in Headers */, + FC1862FCFB48E6D0F64952BBB1B02547 /* FBSDKColor.h in Headers */, + 40C76AE371D9BDAC06F101DBAF9A325D /* FBSDKConstants.h in Headers */, + 63146A747E07075FD6D6A81EAB3083F9 /* FBSDKContainerViewController.h in Headers */, + DC1DF8D5BA784D708B2F3C22E1C37091 /* FBSDKCopying.h in Headers */, + 2C4F9DE9A01ABFE6C73E4A9C8DA57208 /* FBSDKCoreKit+Internal.h in Headers */, + 115829157BBCD7C62B6351CE33C400FD /* FBSDKCoreKit.h in Headers */, + 94B55D9A812947D2C181924AC65A3235 /* FBSDKCrashHandler.h in Headers */, + B32429BB4075FC95C852C292C3E80CEF /* FBSDKCrashObserver.h in Headers */, + BCD9F32B1879A6E7D9C4C8A43C342AAF /* FBSDKCrashObserving.h in Headers */, + 7F35A9F060E1715392C866C7C119A87B /* FBSDKCrypto.h in Headers */, + 226C06420C0DEC307034260DE0FC37B6 /* FBSDKDeviceRequestsHelper.h in Headers */, + 3E16594974A4B2D669A25EAB625AFA19 /* FBSDKDialogConfiguration.h in Headers */, + 496343D0110D222DE4A283D053B69BBF /* FBSDKDynamicFrameworkLoader.h in Headers */, + AE1A86E63898711670E9DF46005DC7D6 /* FBSDKError.h in Headers */, + 2097EE9E7FD111E11EED17D52E60497A /* FBSDKErrorConfiguration.h in Headers */, + F3C453845C3EDFE8BC4EA2529639F302 /* FBSDKErrorRecoveryAttempter.h in Headers */, + DA01F73DE4330431B1BB1F0297601C05 /* FBSDKErrorRecoveryConfiguration.h in Headers */, + 5A71B2CC9818BCD2C11BF26ED94A9739 /* FBSDKErrorReport.h in Headers */, + 681AA006072B70CB63F40D15DE1F198F /* FBSDKEventBinding.h in Headers */, + 8B334915F25B26550FD0D98A916CB3E4 /* FBSDKEventBindingManager.h in Headers */, + E39A124C1391C09856B35AA5A917A731 /* FBSDKFeatureManager.h in Headers */, + D93496A958EF60FAD3DDAC07E250225B /* FBSDKGateKeeperManager.h in Headers */, + 787347EB425614E49BD960F35EDC099D /* FBSDKGraphErrorRecoveryProcessor.h in Headers */, + 98137D9162012CAC7FBDBEDB818D1AD7 /* FBSDKGraphRequest+Internal.h in Headers */, + CEA7E797E1AFE73498AB0E74F947FD80 /* FBSDKGraphRequest.h in Headers */, + 82F922A5CDE4DAB5C8C8563A9ABE7762 /* FBSDKGraphRequestBody.h in Headers */, + 8268DF3A3ECAE35B61BE714B7957CD80 /* FBSDKGraphRequestConnection+Internal.h in Headers */, + 3639ABBDE64464299703420DE8088570 /* FBSDKGraphRequestConnection.h in Headers */, + CECC99F5177D1CC2742E60402C086594 /* FBSDKGraphRequestDataAttachment.h in Headers */, + 1F25D7535DF7C2B26CDABCA41F899665 /* FBSDKGraphRequestMetadata.h in Headers */, + 7AB8F6AA12ECBF8C6ED02AF75CF3415F /* FBSDKGraphRequestPiggybackManager.h in Headers */, + F34AD6F09224AE426DDF9CBC50585940 /* FBSDKHybridAppEventsScriptMessageHandler.h in Headers */, + 30D31E5DF697BB190DDC9F7F6BBD8E9B /* FBSDKIcon.h in Headers */, + 543E5D0ECC4ED7517DED33EB0BA165CC /* FBSDKImageDownloader.h in Headers */, + 63C747341A75A19B9EF70A8640EED6DA /* FBSDKInstrumentManager.h in Headers */, + 5562A321B614410C26A9B161C1D28023 /* FBSDKInternalUtility.h in Headers */, + BF43FE28AD86F00D974A22796D6D915F /* FBSDKKeychainStore.h in Headers */, + 04C479D60F97A62C5D36042D5FAD6230 /* FBSDKKeychainStoreViaBundleID.h in Headers */, + E7868558268EC4F8BA595407EA2B2BB8 /* FBSDKLibAnalyzer.h in Headers */, + 0B55D68D170309E81B6976ECB190BE97 /* FBSDKLogger.h in Headers */, + E3DC81E7A17FDCBD0D03731310C14476 /* FBSDKLogo.h in Headers */, + 215DC5E6CC0DEC568EE3367E0D7F7190 /* FBSDKMaleSilhouetteIcon.h in Headers */, + 943B8A298677C75A1417CA4D7DF7FCD7 /* FBSDKMath.h in Headers */, + C253F777587CC6556DEEF64BE207FF8C /* FBSDKMeasurementEvent.h in Headers */, + E2250C3F1B9386AE8BE4089DAB7F0E3E /* FBSDKMeasurementEvent_Internal.h in Headers */, + 845B3EBD9C555208DA131E1C42D75C4F /* FBSDKMeasurementEventListener.h in Headers */, + 97A4A3E3DE177ECCCB59782F3FBB978B /* FBSDKMetadataIndexer.h in Headers */, + 4FD4A40634D999FFBF6C17DEBDE81611 /* FBSDKMonotonicTime.h in Headers */, + EAF2CF9AF26595A1BABBD925C191AC1D /* FBSDKMutableCopying.h in Headers */, + B47C1E814EBB1F58AB6071E6E4D68378 /* FBSDKPaymentObserver.h in Headers */, + 9B14B4399156BC5D963EC0012432DF97 /* FBSDKProfile+Internal.h in Headers */, + 3E8A9316B9450B07B470740A41872862 /* FBSDKProfile.h in Headers */, + E8FA067956D520145897748CF4DE4D1C /* FBSDKProfilePictureView.h in Headers */, + 3B13BC477299FB901C021FE0506B5C8C /* FBSDKRestrictiveDataFilterManager.h in Headers */, + 455017822DE4E350A7445D1A408F73ED /* FBSDKServerConfiguration+Internal.h in Headers */, + 372140DFF63B346F239A2E71BAD8B3A7 /* FBSDKServerConfiguration.h in Headers */, + 8B24590A99263DD2BC181B8876F87C27 /* FBSDKServerConfigurationManager+Internal.h in Headers */, + 0781F438E51EDD1BA588337833FF3BBE /* FBSDKServerConfigurationManager.h in Headers */, + 2FF76A10E9119EAFBCF80227188971F6 /* FBSDKSettings+Internal.h in Headers */, + A5F18D93AF872E0A7D0E86D015818CF5 /* FBSDKSettings.h in Headers */, + 4CE00050B36EC219F672E02DF00D3207 /* FBSDKSwizzler.h in Headers */, + 868202E0F576E994BE135E9811E973F0 /* FBSDKTestUsersManager.h in Headers */, + BE637C2776AB50C42221B4C96BB061A0 /* FBSDKTimeSpentData.h in Headers */, + 0B86E910DD2BE20F307C2D5B2B8AE773 /* FBSDKTriStateBOOL.h in Headers */, + 4C440104B6A104FD2A20A3D0B619000A /* FBSDKTypeUtility.h in Headers */, + CCA16308139BC3EC4C249CB59DAAD60C /* FBSDKUIUtility.h in Headers */, + 0BA317011CD7E8278B754654CA342F23 /* FBSDKURL.h in Headers */, + 839F421265D25F57AF4231CAEB6D4343 /* FBSDKURL_Internal.h in Headers */, + 465A75EBFE05BD30903810CB773A15FC /* FBSDKURLOpening.h in Headers */, + 5FA7D7EBFA5681D0A4406EE692A9751D /* FBSDKURLSession.h in Headers */, + CE2B8FC6CEC11E455870D21D8AC0B89F /* FBSDKURLSessionTask.h in Headers */, + BFB0F773A7C4E5AC3801FB2DD26606FF /* FBSDKUserDataStore.h in Headers */, + AB7C84A6B54B283153AEA14825158203 /* FBSDKUtility.h in Headers */, + BCB4790821A9AFB215C41DDF17F6D97B /* FBSDKViewHierarchy.h in Headers */, + 5B15FDC79F52743C31D5E7A5177564D6 /* FBSDKViewImpressionTracker.h in Headers */, + 69D971E65DBFA2EFBB419C6523C7E60B /* FBSDKWebDialog.h in Headers */, + CBF81BFBE60BDDE0F3FBABC7963FD171 /* FBSDKWebDialogView.h in Headers */, + D671962E521E291BA9D524D1CCC3A09C /* FBSDKWebViewAppLinkResolver.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + 322040CF2C7D2642650A8BFCDB4B2AD3 /* FBSDKCoreKit */ = { + isa = PBXNativeTarget; + buildConfigurationList = EFBD290EC5BC219E4AC7DCFD617D9C0F /* Build configuration list for PBXNativeTarget "FBSDKCoreKit" */; + buildPhases = ( + A1C26F63CAB3ED1804E37D700914F81E /* Headers */, + FE79485A3B4FD13E7F46873B18479356 /* Sources */, + 4EA5754C628475D2CB20202F70A1A514 /* Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = FBSDKCoreKit; + productName = FBSDKCoreKit; + productReference = DB1E77A6D1A91EFD5130C574D33E1B96 /* libFBSDKCoreKit.a */; + productType = "com.apple.product-type.library.static"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + E07C38755C58E46E5E516DAF8A83FDFB /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1100; + LastUpgradeCheck = 1100; + }; + buildConfigurationList = 580310B705575F96C3E4F0BBD5FA3A74 /* Build configuration list for PBXProject "FBSDKCoreKit" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 295FAE8D9C43A90E24266D1D56FE9284; + productRefGroup = FF6612424595AABD55402BA904052317 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 322040CF2C7D2642650A8BFCDB4B2AD3 /* FBSDKCoreKit */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXSourcesBuildPhase section */ + FE79485A3B4FD13E7F46873B18479356 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + E0E49D08234FEB725CE52CF68BC74623 /* _FBSDKTemporaryErrorRecoveryAttempter.m in Sources */, + 6A4A4A470FD4FF526B2C9F02A8889D4A /* FBSDKAccessToken.m in Sources */, + 99D75267BD88E8412C34759B61663F64 /* FBSDKAccessTokenCache.m in Sources */, + C9EBBAA05D9631866307FB5E872D7F04 /* FBSDKAccessTokenExpirer.m in Sources */, + 93A2F4DBE677561D2739B4C5EFAA2083 /* FBSDKAppEvents.m in Sources */, + E1A1A22AD8EA326092825FCB52963C3B /* FBSDKAppEventsDeviceInfo.m in Sources */, + 37B1C5887439F245967F1C0308B3A4E0 /* FBSDKAppEventsState.m in Sources */, + C2758C2F2B65132E59A7A167EA8E2703 /* FBSDKAppEventsStateManager.m in Sources */, + 913DA5FF1A6CCE9C52C11E37DEB0386C /* FBSDKAppEventsUtility.m in Sources */, + 34505841EBCA062A3490DB7F84C8D67C /* FBSDKApplicationDelegate.m in Sources */, + C7AD7FD1136461FD28862DDAB4E22309 /* FBSDKAppLink.m in Sources */, + 22A74324108496C553C65713BA078182 /* FBSDKAppLinkNavigation.m in Sources */, + AFD8542730D496728D79A773A7B17AFF /* FBSDKAppLinkResolver.m in Sources */, + E982C5A313AF34AC4F2E6C2C2B3AD44E /* FBSDKAppLinkReturnToRefererController.m in Sources */, + 8A3B5CDF637D76961934B973B12E9E2D /* FBSDKAppLinkReturnToRefererView.m in Sources */, + 111C430817688C10ADA45CD23ED8C57B /* FBSDKAppLinkTarget.m in Sources */, + 12AA2C7773D50D2FF9525D1869578FBD /* FBSDKAppLinkUtility.m in Sources */, + 2176D23ACC3D828A039E217CF89E83CA /* FBSDKAudioResourceLoader.m in Sources */, + 8B8BFA6A31B4E6CA7BEABF7F01F9352C /* FBSDKBase64.m in Sources */, + 094601A6151DD019CD77F9B0E4CB1C7E /* FBSDKBasicUtility.m in Sources */, + 4BFE4C27B9E012E660578C4AB5A79FA1 /* FBSDKBridgeAPI.m in Sources */, + 4D6548C44C42AAD0A4F1DA1ADA7C282B /* FBSDKBridgeAPIProtocolNativeV1.m in Sources */, + 434FAA9785FFEAE588CC31699E251B37 /* FBSDKBridgeAPIProtocolWebV1.m in Sources */, + 01ECCE7A9CDB24FA7D7F35F13067479D /* FBSDKBridgeAPIProtocolWebV2.m in Sources */, + F230806D76F41D0AC72D4EAF583ECEF3 /* FBSDKBridgeAPIRequest.m in Sources */, + C220E808441B28560A51867FB597F25B /* FBSDKBridgeAPIResponse.m in Sources */, + DF6BFC9D2DF20A587500F31F4E7CB069 /* FBSDKButton.m in Sources */, + 5D037D2093CD7FDE289416E88D293835 /* FBSDKCloseIcon.m in Sources */, + 5021D69C02564726A4BC7D01A0FCCF23 /* FBSDKCodelessIndexer.m in Sources */, + 01156FCF4DB0BC0CF1DEB61E31EBBFA2 /* FBSDKCodelessParameterComponent.m in Sources */, + 6E3B91E343011145F2809ECC97425409 /* FBSDKCodelessPathComponent.m in Sources */, + BABCB81FAD3CE53F8E1E25FAB8BB2A67 /* FBSDKColor.m in Sources */, + 6B5A41683C0FF3C2F0752374BA8FAEBB /* FBSDKConstants.m in Sources */, + 3F892C514897B7B67A56A8ABE38D79E0 /* FBSDKContainerViewController.m in Sources */, + 8FF65E96A34E6E8D30BF7DE7AA5BC84F /* FBSDKCoreKit-dummy.m in Sources */, + 8F8E12E432CC881CBEB18A7504DD103B /* FBSDKCrashHandler.m in Sources */, + D919961EC8C7C4A25BB7F8FF73CF92AB /* FBSDKCrashObserver.m in Sources */, + 95C7D5D5D097AF06C693BD2987BEB1E6 /* FBSDKCrypto.m in Sources */, + C815E939C892F1578A7985DDC1BA9C92 /* FBSDKDeviceRequestsHelper.m in Sources */, + B79D8D6F71F80D12A3BF973DFBC5042E /* FBSDKDialogConfiguration.m in Sources */, + 8B5AF619F1CDE3F20FFAC0230DDF5150 /* FBSDKDynamicFrameworkLoader.m in Sources */, + 05480CA2D9C784C94CB7392106BF4AC9 /* FBSDKError.m in Sources */, + 12A4B6133305122DD56B247CEE2416F2 /* FBSDKErrorConfiguration.m in Sources */, + 3C71B491CE4B066D4C02A8F2CEBFD2EA /* FBSDKErrorRecoveryAttempter.m in Sources */, + 9AD1DC17D3FD0EEB68D669BED4C9360C /* FBSDKErrorRecoveryConfiguration.m in Sources */, + F8B1A91430DF6ECBDF964CA6FFAECF57 /* FBSDKErrorReport.m in Sources */, + B373BF6F94275351E5D903BC7A309902 /* FBSDKEventBinding.m in Sources */, + 3FBE2593987273E3A02475A1C2089AD3 /* FBSDKEventBindingManager.m in Sources */, + BAC59CC5FAEC227F732ACE5237221D9D /* FBSDKFeatureManager.m in Sources */, + 0DDED68E5E28CCBB73099E2319E4EE2F /* FBSDKGateKeeperManager.m in Sources */, + B641A2BF104EAB4F59AC1E82D86FCCB2 /* FBSDKGraphErrorRecoveryProcessor.m in Sources */, + 8ED24E9E9DC9DC3C0172EAC28549819C /* FBSDKGraphRequest.m in Sources */, + 4B6B28981175B0F7712E92B97F0AEA7A /* FBSDKGraphRequestBody.m in Sources */, + EFB0045A501FD1ADC6472052028FBDAA /* FBSDKGraphRequestConnection.m in Sources */, + 5431A7B556CAF7F426B65FEC91639FC2 /* FBSDKGraphRequestDataAttachment.m in Sources */, + 8251BB0E767A0258C1670EA0F3B8017C /* FBSDKGraphRequestMetadata.m in Sources */, + DB053B754A5986A7CB0CCC6D9A971612 /* FBSDKGraphRequestPiggybackManager.m in Sources */, + 89A07CB373659C285368609736BA73CB /* FBSDKHybridAppEventsScriptMessageHandler.m in Sources */, + D1BC85224A4415CCCCA05CB1B3AA376D /* FBSDKIcon.m in Sources */, + 1E8383A45CCBD0CA3C83A65D5400E04D /* FBSDKImageDownloader.m in Sources */, + 7345A15817D9B17A5AC0DB2548317A0E /* FBSDKInstrumentManager.m in Sources */, + B1DB60F34E4A9BB96892886236FF6780 /* FBSDKInternalUtility.m in Sources */, + C90E9486DB5855BB4D4A9950709E7126 /* FBSDKKeychainStore.m in Sources */, + BC93CC16C629BC33E6557E5682EB4599 /* FBSDKKeychainStoreViaBundleID.m in Sources */, + 4994249F9AC5EC066FAF6E9C5FBEA4B8 /* FBSDKLibAnalyzer.m in Sources */, + 98F7B39A84B38572AC1E552D9D33F25D /* FBSDKLogger.m in Sources */, + 186CD8D4BE1E87CDEF208A96FB77F2EF /* FBSDKLogo.m in Sources */, + 65E797CF2858214A4870AB7B0E6271EE /* FBSDKMaleSilhouetteIcon.m in Sources */, + 9AA657A1720BEB1DA80D7F1B526B3502 /* FBSDKMath.m in Sources */, + FF0E3606F6882A1C3DB2B893DA2050F7 /* FBSDKMeasurementEvent.m in Sources */, + BC02A9F975DBDCBA8B93A768F817B9C5 /* FBSDKMeasurementEventListener.m in Sources */, + 1DDB683982541D7F01E3B48B74A17E48 /* FBSDKMetadataIndexer.m in Sources */, + 9AF216DA79A26A68CAB73756C6FA8D64 /* FBSDKMonotonicTime.m in Sources */, + 4E6781EC7D26C981CD9CC3DC3545601B /* FBSDKPaymentObserver.m in Sources */, + 0781AFADA0EC529BBBA163BFE165CE7F /* FBSDKProfile.m in Sources */, + 6DD20A2CC73D718388477170C7C5344B /* FBSDKProfilePictureView.m in Sources */, + CCF2513AC6A09CBB12E72FE4765DDF57 /* FBSDKRestrictiveDataFilterManager.m in Sources */, + DC0FA346ADEDD77F740A67B67F6EC4CC /* FBSDKServerConfiguration.m in Sources */, + A617B0D3C13301D5FEDE5B0A0348E015 /* FBSDKServerConfigurationManager.m in Sources */, + 2CC4690E867FC77AC7B623F3780AF413 /* FBSDKSettings.m in Sources */, + BB42FC861C18013D0FD74AB0B7908228 /* FBSDKSwizzler.m in Sources */, + D0600B3F7CEE56A75393382C467EC0F5 /* FBSDKTestUsersManager.m in Sources */, + CFDE3A23F6338C0508CBE8C165FB7D41 /* FBSDKTimeSpentData.m in Sources */, + 682FACAA3D73DE897ABDCAEC2A2EBD77 /* FBSDKTriStateBOOL.m in Sources */, + 555D956AD5FF51689B7AEFA8F15F0798 /* FBSDKTypeUtility.m in Sources */, + 96F130DAF0529CFCB3977CD06F5ABD88 /* FBSDKURL.m in Sources */, + 05287C7E5C4208C36944DAA65E50E009 /* FBSDKURLSession.m in Sources */, + 34D14260CD09A1ADCDCC3A3D48DF1952 /* FBSDKURLSessionTask.m in Sources */, + 8E7A3DEDE01CA8DDA01FD72C514A4EB0 /* FBSDKUserDataStore.m in Sources */, + 5F08D811A532397DFB1C644C5DD3319F /* FBSDKUtility.m in Sources */, + 6A31B4BB2ED13A020B0DDB75E0CDE6B2 /* FBSDKViewHierarchy.m in Sources */, + FA8D72B0C74F5350DD53A361C9488788 /* FBSDKViewImpressionTracker.m in Sources */, + B978D068AD414A21D9720C6B3597EE96 /* FBSDKWebDialog.m in Sources */, + 8D54CE25CA51F652F2DD5C647722DF01 /* FBSDKWebDialogView.m in Sources */, + B44A9863D1962D1C33DBF84F50785E99 /* FBSDKWebViewAppLinkResolver.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 3E31DF1C5AD375EFE5B7EE8839AA4C56 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "POD_CONFIGURATION_DEBUG=1", + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + PRODUCT_NAME = "$(TARGET_NAME)"; + STRIP_INSTALLED_PRODUCT = NO; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + SYMROOT = "${SRCROOT}/../build"; + }; + name = Debug; + }; + 4F3C29F4C29DF911593CDAB927D6C839 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 47364633885A95942B5C7175883CCB71 /* FBSDKCoreKit.xcconfig */; + buildSettings = { + CODE_SIGN_IDENTITY = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + GCC_PREFIX_HEADER = "Target Support Files/FBSDKCoreKit/FBSDKCoreKit-prefix.pch"; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PRIVATE_HEADERS_FOLDER_PATH = ""; + PRODUCT_MODULE_NAME = FBSDKCoreKit; + PRODUCT_NAME = FBSDKCoreKit; + PUBLIC_HEADERS_FOLDER_PATH = ""; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + D0CAEC717954D01BBB8A01391F9A4A08 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_PREPROCESSOR_DEFINITIONS = ( + "POD_CONFIGURATION_RELEASE=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + PRODUCT_NAME = "$(TARGET_NAME)"; + STRIP_INSTALLED_PRODUCT = NO; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + SWIFT_VERSION = 5.0; + SYMROOT = "${SRCROOT}/../build"; + }; + name = Release; + }; + FC51F52DAD42E9168CFB335F42C196B6 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 47364633885A95942B5C7175883CCB71 /* FBSDKCoreKit.xcconfig */; + buildSettings = { + CODE_SIGN_IDENTITY = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + GCC_PREFIX_HEADER = "Target Support Files/FBSDKCoreKit/FBSDKCoreKit-prefix.pch"; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PRIVATE_HEADERS_FOLDER_PATH = ""; + PRODUCT_MODULE_NAME = FBSDKCoreKit; + PRODUCT_NAME = FBSDKCoreKit; + PUBLIC_HEADERS_FOLDER_PATH = ""; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 580310B705575F96C3E4F0BBD5FA3A74 /* Build configuration list for PBXProject "FBSDKCoreKit" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3E31DF1C5AD375EFE5B7EE8839AA4C56 /* Debug */, + D0CAEC717954D01BBB8A01391F9A4A08 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + EFBD290EC5BC219E4AC7DCFD617D9C0F /* Build configuration list for PBXNativeTarget "FBSDKCoreKit" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 4F3C29F4C29DF911593CDAB927D6C839 /* Debug */, + FC51F52DAD42E9168CFB335F42C196B6 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = E07C38755C58E46E5E516DAF8A83FDFB /* Project object */; +} diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/FBSDKAppEvents.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/FBSDKAppEvents.h new file mode 100644 index 0000000000000..37ff15ef04196 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/FBSDKAppEvents.h @@ -0,0 +1,861 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#if !TARGET_OS_TV +#import +#endif + +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKAccessToken; +@class FBSDKGraphRequest; + +#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0 + +/** NSNotificationCenter name indicating a result of a failed log flush attempt. The posted object will be an NSError instance. */ +FOUNDATION_EXPORT NSNotificationName const FBSDKAppEventsLoggingResultNotification +NS_SWIFT_NAME(AppEventsLoggingResult); + +#else + +/** NSNotificationCenter name indicating a result of a failed log flush attempt. The posted object will be an NSError instance. */ +FOUNDATION_EXPORT NSString *const FBSDKAppEventsLoggingResultNotification +NS_SWIFT_NAME(AppEventsLoggingResultNotification); + +#endif + +/** optional plist key ("FacebookLoggingOverrideAppID") for setting `loggingOverrideAppID` */ +FOUNDATION_EXPORT NSString *const FBSDKAppEventsOverrideAppIDBundleKey +NS_SWIFT_NAME(AppEventsOverrideAppIDBundleKey); + +/** + + NS_ENUM (NSUInteger, FBSDKAppEventsFlushBehavior) + + Specifies when `FBSDKAppEvents` sends log events to the server. + + */ +typedef NS_ENUM(NSUInteger, FBSDKAppEventsFlushBehavior) +{ + + /** Flush automatically: periodically (once a minute or every 100 logged events) and always at app reactivation. */ + FBSDKAppEventsFlushBehaviorAuto = 0, + + /** Only flush when the `flush` method is called. When an app is moved to background/terminated, the + events are persisted and re-established at activation, but they will only be written with an + explicit call to `flush`. */ + FBSDKAppEventsFlushBehaviorExplicitOnly, +} NS_SWIFT_NAME(AppEvents.FlushBehavior); + +/** + NS_ENUM(NSUInteger, FBSDKProductAvailability) + Specifies product availability for Product Catalog product item update + */ +typedef NS_ENUM(NSUInteger, FBSDKProductAvailability) +{ + /** + * Item ships immediately + */ + FBSDKProductAvailabilityInStock = 0, + /** + * No plan to restock + */ + FBSDKProductAvailabilityOutOfStock, + /** + * Available in future + */ + FBSDKProductAvailabilityPreOrder, + /** + * Ships in 1-2 weeks + */ + FBSDKProductAvailabilityAvailableForOrder, + /** + * Discontinued + */ + FBSDKProductAvailabilityDiscontinued, +} NS_SWIFT_NAME(AppEvents.ProductAvailability); + +/** + NS_ENUM(NSUInteger, FBSDKProductCondition) + Specifies product condition for Product Catalog product item update + */ +typedef NS_ENUM(NSUInteger, FBSDKProductCondition) +{ + FBSDKProductConditionNew = 0, + FBSDKProductConditionRefurbished, + FBSDKProductConditionUsed, +} NS_SWIFT_NAME(AppEvents.ProductCondition); + +/** + @methodgroup Predefined event names for logging events common to many apps. Logging occurs through the `logEvent` family of methods on `FBSDKAppEvents`. + Common event parameters are provided in the `FBSDKAppEventsParameterNames*` constants. + */ + +/// typedef for FBSDKAppEventName +typedef NSString *const FBSDKAppEventName NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(AppEvents.Name); + +/** Log this event when the user has achieved a level in the app. */ +FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameAchievedLevel; + +/** Log this event when the user has entered their payment info. */ +FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameAddedPaymentInfo; + +/** Log this event when the user has added an item to their cart. The valueToSum passed to logEvent should be the item's price. */ +FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameAddedToCart; + +/** Log this event when the user has added an item to their wishlist. The valueToSum passed to logEvent should be the item's price. */ +FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameAddedToWishlist; + +/** Log this event when a user has completed registration with the app. */ +FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameCompletedRegistration; + +/** Log this event when the user has completed a tutorial in the app. */ +FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameCompletedTutorial; + +/** Log this event when the user has entered the checkout process. The valueToSum passed to logEvent should be the total price in the cart. */ +FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameInitiatedCheckout; + +/** Log this event when the user has completed a transaction. The valueToSum passed to logEvent should be the total price of the transaction. */ +FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNamePurchased; + +/** Log this event when the user has rated an item in the app. The valueToSum passed to logEvent should be the numeric rating. */ +FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameRated; + +/** Log this event when a user has performed a search within the app. */ +FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameSearched; + +/** Log this event when the user has spent app credits. The valueToSum passed to logEvent should be the number of credits spent. */ +FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameSpentCredits; + +/** Log this event when the user has unlocked an achievement in the app. */ +FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameUnlockedAchievement; + +/** Log this event when a user has viewed a form of content in the app. */ +FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameViewedContent; + +/** A telephone/SMS, email, chat or other type of contact between a customer and your business. */ +FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameContact; + +/** The customization of products through a configuration tool or other application your business owns. */ +FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameCustomizeProduct; + +/** The donation of funds to your organization or cause. */ +FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameDonate; + +/** When a person finds one of your locations via web or application, with an intention to visit (example: find product at a local store). */ +FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameFindLocation; + +/** The booking of an appointment to visit one of your locations. */ +FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameSchedule; + +/** The subsequent subscriptions after the start of a paid subscription for a product or service you offer. */ +FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameSubscriptionHeartbeat __attribute((deprecated("This attribute is no longer used."))); + +/** The start of a free trial of a product or service you offer (example: trial subscription). */ +FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameStartTrial; + +/** The submission of an application for a product, service or program you offer (example: credit card, educational program or job). */ +FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameSubmitApplication; + +/** The start of a paid subscription for a product or service you offer. */ +FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameSubscribe; + +/** Log this event when the user views an ad. */ +FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameAdImpression; + +/** Log this event when the user clicks an ad. */ +FOUNDATION_EXPORT FBSDKAppEventName FBSDKAppEventNameAdClick; + +/** + @methodgroup Predefined event name parameters for common additional information to accompany events logged through the `logEvent` family + of methods on `FBSDKAppEvents`. Common event names are provided in the `FBAppEventName*` constants. + */ + +/// typedef for FBSDKAppEventParameterName +typedef NSString *const FBSDKAppEventParameterName NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(AppEvents.ParameterName); + + /** + * Parameter key used to specify data for the one or more pieces of content being logged about. + * Data should be a JSON encoded string. + * Example: + * "[{\"id\": \"1234\", \"quantity\": 2, \"item_price\": 5.99}, {\"id\": \"5678\", \"quantity\": 1, \"item_price\": 9.99}]" + */ +FOUNDATION_EXPORT FBSDKAppEventParameterName FBSDKAppEventParameterNameContent; + +/** Parameter key used to specify an ID for the specific piece of content being logged about. Could be an EAN, article identifier, etc., depending on the nature of the app. */ +FOUNDATION_EXPORT FBSDKAppEventParameterName FBSDKAppEventParameterNameContentID; + +/** Parameter key used to specify a generic content type/family for the logged event, e.g. "music", "photo", "video". Options to use will vary based upon what the app is all about. */ +FOUNDATION_EXPORT FBSDKAppEventParameterName FBSDKAppEventParameterNameContentType; + +/** Parameter key used to specify currency used with logged event. E.g. "USD", "EUR", "GBP". See ISO-4217 for specific values. One reference for these is . */ +FOUNDATION_EXPORT FBSDKAppEventParameterName FBSDKAppEventParameterNameCurrency; + +/** Parameter key used to specify a description appropriate to the event being logged. E.g., the name of the achievement unlocked in the `FBAppEventNameAchievementUnlocked` event. */ +FOUNDATION_EXPORT FBSDKAppEventParameterName FBSDKAppEventParameterNameDescription; + +/** Parameter key used to specify the level achieved in a `FBAppEventNameAchieved` event. */ +FOUNDATION_EXPORT FBSDKAppEventParameterName FBSDKAppEventParameterNameLevel; + +/** Parameter key used to specify the maximum rating available for the `FBAppEventNameRate` event. E.g., "5" or "10". */ +FOUNDATION_EXPORT FBSDKAppEventParameterName FBSDKAppEventParameterNameMaxRatingValue; + +/** Parameter key used to specify how many items are being processed for an `FBAppEventNameInitiatedCheckout` or `FBAppEventNamePurchased` event. */ +FOUNDATION_EXPORT FBSDKAppEventParameterName FBSDKAppEventParameterNameNumItems; + +/** Parameter key used to specify whether payment info is available for the `FBAppEventNameInitiatedCheckout` event. `FBSDKAppEventParameterValueYes` and `FBSDKAppEventParameterValueNo` are good canonical values to use for this parameter. */ +FOUNDATION_EXPORT FBSDKAppEventParameterName FBSDKAppEventParameterNamePaymentInfoAvailable; + +/** Parameter key used to specify method user has used to register for the app, e.g., "Facebook", "email", "Twitter", etc */ +FOUNDATION_EXPORT FBSDKAppEventParameterName FBSDKAppEventParameterNameRegistrationMethod; + +/** Parameter key used to specify the string provided by the user for a search operation. */ +FOUNDATION_EXPORT FBSDKAppEventParameterName FBSDKAppEventParameterNameSearchString; + +/** Parameter key used to specify whether the activity being logged about was successful or not. `FBSDKAppEventParameterValueYes` and `FBSDKAppEventParameterValueNo` are good canonical values to use for this parameter. */ +FOUNDATION_EXPORT FBSDKAppEventParameterName FBSDKAppEventParameterNameSuccess; + +/** + @methodgroup Predefined event name parameters for common additional information to accompany events logged through the `logProductItem` method on `FBSDKAppEvents`. + */ + +/// typedef for FBSDKAppEventParameterProduct +typedef NSString *const FBSDKAppEventParameterProduct NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(AppEvents.ParameterProduct); + +/** Parameter key used to specify the product item's category. */ +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCategory; + +/** Parameter key used to specify the product item's custom label 0. */ +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel0; + +/** Parameter key used to specify the product item's custom label 1. */ +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel1; + +/** Parameter key used to specify the product item's custom label 2. */ +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel2; + +/** Parameter key used to specify the product item's custom label 3. */ +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel3; + +/** Parameter key used to specify the product item's custom label 4. */ +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel4; + +/** Parameter key used to specify the product item's AppLink app URL for iOS. */ +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIOSUrl; + +/** Parameter key used to specify the product item's AppLink app ID for iOS App Store. */ +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIOSAppStoreID; + +/** Parameter key used to specify the product item's AppLink app name for iOS. */ +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIOSAppName; + +/** Parameter key used to specify the product item's AppLink app URL for iPhone. */ +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPhoneUrl; + +/** Parameter key used to specify the product item's AppLink app ID for iPhone App Store. */ +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPhoneAppStoreID; + +/** Parameter key used to specify the product item's AppLink app name for iPhone. */ +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPhoneAppName; + +/** Parameter key used to specify the product item's AppLink app URL for iPad. */ +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPadUrl; + +/** Parameter key used to specify the product item's AppLink app ID for iPad App Store. */ +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPadAppStoreID; + +/** Parameter key used to specify the product item's AppLink app name for iPad. */ +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPadAppName; + +/** Parameter key used to specify the product item's AppLink app URL for Android. */ +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkAndroidUrl; + +/** Parameter key used to specify the product item's AppLink fully-qualified package name for intent generation. */ +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkAndroidPackage; + +/** Parameter key used to specify the product item's AppLink app name for Android. */ +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkAndroidAppName; + +/** Parameter key used to specify the product item's AppLink app URL for Windows Phone. */ +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkWindowsPhoneUrl; + +/** Parameter key used to specify the product item's AppLink app ID, as a GUID, for App Store. */ +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkWindowsPhoneAppID; + +/** Parameter key used to specify the product item's AppLink app name for Windows Phone. */ +FOUNDATION_EXPORT FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkWindowsPhoneAppName; + +/* + @methodgroup Predefined values to assign to event parameters that accompany events logged through the `logEvent` family + of methods on `FBSDKAppEvents`. Common event parameters are provided in the `FBSDKAppEventParameterName*` constants. + */ + +/// typedef for FBSDKAppEventParameterValue +typedef NSString *const FBSDKAppEventParameterValue NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(AppEvents.ParameterValue); + +/** Yes-valued parameter value to be used with parameter keys that need a Yes/No value */ +FOUNDATION_EXPORT FBSDKAppEventParameterValue FBSDKAppEventParameterValueYes; + +/** No-valued parameter value to be used with parameter keys that need a Yes/No value */ +FOUNDATION_EXPORT FBSDKAppEventParameterValue FBSDKAppEventParameterValueNo; + +/** Parameter key used to specify the type of ad in an FBSDKAppEventNameAdImpression + * or FBSDKAppEventNameAdClick event. + * E.g. "banner", "interstitial", "rewarded_video", "native" */ +FOUNDATION_EXPORT FBSDKAppEventParameterName FBSDKAppEventParameterNameAdType; + +/** Parameter key used to specify the unique ID for all events within a subscription + * in an FBSDKAppEventNameSubscribe or FBSDKAppEventNameStartTrial event. */ +FOUNDATION_EXPORT FBSDKAppEventParameterName FBSDKAppEventParameterNameOrderID; + +/* + @methodgroup Predefined values to assign to user data store + */ + +/// typedef for FBSDKAppEventUserDataType +typedef NSString *const FBSDKAppEventUserDataType NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(AppEvents.UserDataType); + +/** Parameter key used to specify user's email. */ +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventEmail; + +/** Parameter key used to specify user's first name. */ +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventFirstName; + +/** Parameter key used to specify user's last name. */ +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventLastName; + +/** Parameter key used to specify user's phone. */ +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventPhone; + +/** Parameter key used to specify user's date of birth. */ +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventDateOfBirth; + +/** Parameter key used to specify user's gender. */ +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventGender; + +/** Parameter key used to specify user's city. */ +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventCity; + +/** Parameter key used to specify user's state. */ +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventState; + +/** Parameter key used to specify user's zip. */ +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventZip; + +/** Parameter key used to specify user's country. */ +FOUNDATION_EXPORT FBSDKAppEventUserDataType FBSDKAppEventCountry; + +/** + + + Client-side event logging for specialized application analytics available through Facebook App Insights + and for use with Facebook Ads conversion tracking and optimization. + + + + The `FBSDKAppEvents` static class has a few related roles: + + + Logging predefined and application-defined events to Facebook App Insights with a + numeric value to sum across a large number of events, and an optional set of key/value + parameters that define "segments" for this event (e.g., 'purchaserStatus' : 'frequent', or + 'gamerLevel' : 'intermediate') + + + Logging events to later be used for ads optimization around lifetime value. + + + Methods that control the way in which events are flushed out to the Facebook servers. + + Here are some important characteristics of the logging mechanism provided by `FBSDKAppEvents`: + + + Events are not sent immediately when logged. They're cached and flushed out to the Facebook servers + in a number of situations: + - when an event count threshold is passed (currently 100 logged events). + - when a time threshold is passed (currently 15 seconds). + - when an app has gone to background and is then brought back to the foreground. + + + Events will be accumulated when the app is in a disconnected state, and sent when the connection is + restored and one of the above 'flush' conditions are met. + + + The `FBSDKAppEvents` class is thread-safe in that events may be logged from any of the app's threads. + + + The developer can set the `flushBehavior` on `FBSDKAppEvents` to force the flushing of events to only + occur on an explicit call to the `flush` method. + + + The developer can turn on console debug output for event logging and flushing to the server by using + the `FBSDKLoggingBehaviorAppEvents` value in `[FBSettings setLoggingBehavior:]`. + + Some things to note when logging events: + + + There is a limit on the number of unique event names an app can use, on the order of 1000. + + There is a limit to the number of unique parameter names in the provided parameters that can + be used per event, on the order of 25. This is not just for an individual call, but for all + invocations for that eventName. + + Event names and parameter names (the keys in the NSDictionary) must be between 2 and 40 characters, and + must consist of alphanumeric characters, _, -, or spaces. + + The length of each parameter value can be no more than on the order of 100 characters. + + */ + +NS_SWIFT_NAME(AppEvents) +@interface FBSDKAppEvents : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/* + * Control over event batching/flushing + */ + +/** + + The current event flushing behavior specifying when events are sent back to Facebook servers. + */ +@property (class, nonatomic, assign) FBSDKAppEventsFlushBehavior flushBehavior; + +/** + Set the 'override' App ID for App Event logging. + + + + In some cases, apps want to use one Facebook App ID for login and social presence and another + for App Event logging. (An example is if multiple apps from the same company share an app ID for login, but + want distinct logging.) By default, this value is `nil`, and defers to the `FBSDKAppEventsOverrideAppIDBundleKey` + plist value. If that's not set, it defaults to `[FBSDKSettings appID]`. + + This should be set before any other calls are made to `FBSDKAppEvents`. Thus, you should set it in your application + delegate's `application:didFinishLaunchingWithOptions:` delegate. + */ +@property (class, nonatomic, copy, nullable) NSString *loggingOverrideAppID; + +/* + The custom user ID to associate with all app events. + + The userID is persisted until it is cleared by passing nil. + */ +@property (class, nonatomic, copy, nullable) NSString *userID; + +/* + * Basic event logging + */ + +/** + + Log an event with just an eventName. + + @param eventName The name of the event to record. Limitations on number of events and name length + are given in the `FBSDKAppEvents` documentation. + + */ ++ (void)logEvent:(FBSDKAppEventName)eventName; + +/** + + Log an event with an eventName and a numeric value to be aggregated with other events of this name. + + @param eventName The name of the event to record. Limitations on number of events and name length + are given in the `FBSDKAppEvents` documentation. Common event names are provided in `FBAppEventName*` constants. + + @param valueToSum Amount to be aggregated into all events of this eventName, and App Insights will report + the cumulative and average value of this amount. + */ ++ (void)logEvent:(FBSDKAppEventName)eventName + valueToSum:(double)valueToSum; + + +/** + + Log an event with an eventName and a set of key/value pairs in the parameters dictionary. + Parameter limitations are described above. + + @param eventName The name of the event to record. Limitations on number of events and name construction + are given in the `FBSDKAppEvents` documentation. Common event names are provided in `FBAppEventName*` constants. + + @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must + be NSString's, and the values are expected to be NSString or NSNumber. Limitations on the number of + parameters and name construction are given in the `FBSDKAppEvents` documentation. Commonly used parameter names + are provided in `FBSDKAppEventParameterName*` constants. + */ ++ (void)logEvent:(FBSDKAppEventName)eventName + parameters:(NSDictionary *)parameters; + +/** + + Log an event with an eventName, a numeric value to be aggregated with other events of this name, + and a set of key/value pairs in the parameters dictionary. + + @param eventName The name of the event to record. Limitations on number of events and name construction + are given in the `FBSDKAppEvents` documentation. Common event names are provided in `FBAppEventName*` constants. + + @param valueToSum Amount to be aggregated into all events of this eventName, and App Insights will report + the cumulative and average value of this amount. + + @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must + be NSString's, and the values are expected to be NSString or NSNumber. Limitations on the number of + parameters and name construction are given in the `FBSDKAppEvents` documentation. Commonly used parameter names + are provided in `FBSDKAppEventParameterName*` constants. + + */ ++ (void)logEvent:(FBSDKAppEventName)eventName + valueToSum:(double)valueToSum + parameters:(NSDictionary *)parameters; + + +/** + + Log an event with an eventName, a numeric value to be aggregated with other events of this name, + and a set of key/value pairs in the parameters dictionary. Providing session lets the developer + target a particular . If nil is provided, then `[FBSession activeSession]` will be used. + + @param eventName The name of the event to record. Limitations on number of events and name construction + are given in the `FBSDKAppEvents` documentation. Common event names are provided in `FBAppEventName*` constants. + + @param valueToSum Amount to be aggregated into all events of this eventName, and App Insights will report + the cumulative and average value of this amount. Note that this is an NSNumber, and a value of `nil` denotes + that this event doesn't have a value associated with it for summation. + + @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must + be NSString's, and the values are expected to be NSString or NSNumber. Limitations on the number of + parameters and name construction are given in the `FBSDKAppEvents` documentation. Commonly used parameter names + are provided in `FBSDKAppEventParameterName*` constants. + + @param accessToken The optional access token to log the event as. + */ ++ (void)logEvent:(FBSDKAppEventName)eventName + valueToSum:(nullable NSNumber *)valueToSum + parameters:(NSDictionary *)parameters + accessToken:(nullable FBSDKAccessToken *)accessToken; + +/* + * Purchase logging + */ + +/** + + Log a purchase of the specified amount, in the specified currency. + + @param purchaseAmount Purchase amount to be logged, as expressed in the specified currency. This value + will be rounded to the thousandths place (e.g., 12.34567 becomes 12.346). + + @param currency Currency, is denoted as, e.g. "USD", "EUR", "GBP". See ISO-4217 for + specific values. One reference for these is . + + + This event immediately triggers a flush of the `FBSDKAppEvents` event queue, unless the `flushBehavior` is set + to `FBSDKAppEventsFlushBehaviorExplicitOnly`. + + */ ++ (void)logPurchase:(double)purchaseAmount + currency:(NSString *)currency; + +/** + + Log a purchase of the specified amount, in the specified currency, also providing a set of + additional characteristics describing the purchase. + + @param purchaseAmount Purchase amount to be logged, as expressed in the specified currency.This value + will be rounded to the thousandths place (e.g., 12.34567 becomes 12.346). + + @param currency Currency, is denoted as, e.g. "USD", "EUR", "GBP". See ISO-4217 for + specific values. One reference for these is . + + @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must + be NSString's, and the values are expected to be NSString or NSNumber. Limitations on the number of + parameters and name construction are given in the `FBSDKAppEvents` documentation. Commonly used parameter names + are provided in `FBSDKAppEventParameterName*` constants. + + + This event immediately triggers a flush of the `FBSDKAppEvents` event queue, unless the `flushBehavior` is set + to `FBSDKAppEventsFlushBehaviorExplicitOnly`. + + */ ++ (void)logPurchase:(double)purchaseAmount + currency:(NSString *)currency + parameters:(NSDictionary *)parameters; + +/** + + Log a purchase of the specified amount, in the specified currency, also providing a set of + additional characteristics describing the purchase, as well as an to log to. + + @param purchaseAmount Purchase amount to be logged, as expressed in the specified currency.This value + will be rounded to the thousandths place (e.g., 12.34567 becomes 12.346). + + @param currency Currency, is denoted as, e.g. "USD", "EUR", "GBP". See ISO-4217 for + specific values. One reference for these is . + + @param parameters Arbitrary parameter dictionary of characteristics. The keys to this dictionary must + be NSString's, and the values are expected to be NSString or NSNumber. Limitations on the number of + parameters and name construction are given in the `FBSDKAppEvents` documentation. Commonly used parameter names + are provided in `FBSDKAppEventParameterName*` constants. + + @param accessToken The optional access token to log the event as. + + + This event immediately triggers a flush of the `FBSDKAppEvents` event queue, unless the `flushBehavior` is set + to `FBSDKAppEventsFlushBehaviorExplicitOnly`. + + */ ++ (void)logPurchase:(double)purchaseAmount + currency:(NSString *)currency + parameters:(NSDictionary *)parameters + accessToken:(nullable FBSDKAccessToken *)accessToken; + + +/* + * Push Notifications Logging + */ + +/** + Log an app event that tracks that the application was open via Push Notification. + + @param payload Notification payload received via `UIApplicationDelegate`. + */ ++ (void)logPushNotificationOpen:(NSDictionary *)payload; + +/** + Log an app event that tracks that a custom action was taken from a push notification. + + @param payload Notification payload received via `UIApplicationDelegate`. + @param action Name of the action that was taken. + */ ++ (void)logPushNotificationOpen:(NSDictionary *)payload action:(NSString *)action; + +/** + Uploads product catalog product item as an app event + @param itemID Unique ID for the item. Can be a variant for a product. + Max size is 100. + @param availability If item is in stock. Accepted values are: + in stock - Item ships immediately + out of stock - No plan to restock + preorder - Available in future + available for order - Ships in 1-2 weeks + discontinued - Discontinued + @param condition Product condition: new, refurbished or used. + @param description Short text describing product. Max size is 5000. + @param imageLink Link to item image used in ad. + @param link Link to merchant's site where someone can buy the item. + @param title Title of item. + @param priceAmount Amount of purchase, in the currency specified by the 'currency' + parameter. This value will be rounded to the thousandths place + (e.g., 12.34567 becomes 12.346). + @param currency Currency used to specify the amount. + E.g. "USD", "EUR", "GBP". See ISO-4217 for specific values. One reference for these is + @param gtin Global Trade Item Number including UPC, EAN, JAN and ISBN + @param mpn Unique manufacture ID for product + @param brand Name of the brand + Note: Either gtin, mpn or brand is required. + @param parameters Optional fields for deep link specification. + */ ++ (void)logProductItem:(NSString *)itemID + availability:(FBSDKProductAvailability)availability + condition:(FBSDKProductCondition)condition + description:(NSString *)description + imageLink:(NSString *)imageLink + link:(NSString *)link + title:(NSString *)title + priceAmount:(double)priceAmount + currency:(NSString *)currency + gtin:(nullable NSString *)gtin + mpn:(nullable NSString *)mpn + brand:(nullable NSString *)brand + parameters:(nullable NSDictionary *)parameters; + +/** + + Notifies the events system that the app has launched and, when appropriate, logs an "activated app" event. + This function is called automatically from FBSDKApplicationDelegate applicationDidBecomeActive, unless + one overrides 'FacebookAutoLogAppEventsEnabled' key to false in the project info plist file. + In case 'FacebookAutoLogAppEventsEnabled' is set to false, then it should typically be placed in the + app delegates' `applicationDidBecomeActive:` method. + + This method also takes care of logging the event indicating the first time this app has been launched, which, among other things, is used to + track user acquisition and app install ads conversions. + + + + `activateApp` will not log an event on every app launch, since launches happen every time the app is backgrounded and then foregrounded. + "activated app" events will be logged when the app has not been active for more than 60 seconds. This method also causes a "deactivated app" + event to be logged when sessions are "completed", and these events are logged with the session length, with an indication of how much + time has elapsed between sessions, and with the number of background/foreground interruptions that session had. This data + is all visible in your app's App Events Insights. + */ ++ (void)activateApp; + +/* + * Push Notifications Registration and Uninstall Tracking + */ + +/** + Sets and sends device token to register the current application for push notifications. + + + + Sets and sends a device token from `NSData` representation that you get from `UIApplicationDelegate.-application:didRegisterForRemoteNotificationsWithDeviceToken:`. + + @param deviceToken Device token data. + */ ++ (void)setPushNotificationsDeviceToken:(NSData *)deviceToken; + +/** + Sets and sends device token string to register the current application for push notifications. + + + + Sets and sends a device token string + + @param deviceTokenString Device token string. + */ ++ (void)setPushNotificationsDeviceTokenString:(NSString *)deviceTokenString +NS_SWIFT_NAME(setPushNotificationsDeviceToken(_:)); + +/** + Explicitly kick off flushing of events to Facebook. This is an asynchronous method, but it does initiate an immediate + kick off. Server failures will be reported through the NotificationCenter with notification ID `FBSDKAppEventsLoggingResultNotification`. + */ ++ (void)flush; + +/** + Creates a request representing the Graph API call to retrieve a Custom Audience "third party ID" for the app's Facebook user. + Callers will send this ID back to their own servers, collect up a set to create a Facebook Custom Audience with, + and then use the resultant Custom Audience to target ads. + + The JSON in the request's response will include an "custom_audience_third_party_id" key/value pair, with the value being the ID retrieved. + This ID is an encrypted encoding of the Facebook user's ID and the invoking Facebook app ID. + Multiple calls with the same user will return different IDs, thus these IDs cannot be used to correlate behavior + across devices or applications, and are only meaningful when sent back to Facebook for creating Custom Audiences. + + The ID retrieved represents the Facebook user identified in the following way: if the specified access token is valid, + the ID will represent the user associated with that token; otherwise the ID will represent the user logged into the + native Facebook app on the device. If there is no native Facebook app, no one is logged into it, or the user has opted out + at the iOS level from ad tracking, then a `nil` ID will be returned. + + This method returns `nil` if either the user has opted-out (via iOS) from Ad Tracking, the app itself has limited event usage + via the `[FBSDKSettings limitEventAndDataUsage]` flag, or a specific Facebook user cannot be identified. + + @param accessToken The access token to use to establish the user's identity for users logged into Facebook through this app. + If `nil`, then the `[FBSDKAccessToken currentAccessToken]` is used. + */ ++ (nullable FBSDKGraphRequest *)requestForCustomAudienceThirdPartyIDWithAccessToken:(nullable FBSDKAccessToken *)accessToken; + +/* + Clears the custom user ID to associate with all app events. + */ ++ (void)clearUserID; + +/* + Sets custom user data to associate with all app events. All user data are hashed + and used to match Facebook user from this instance of an application. + + The user data will be persisted between application instances. + + @param email user's email + @param firstName user's first name + @param lastName user's last name + @param phone user's phone + @param dateOfBirth user's date of birth + @param gender user's gender + @param city user's city + @param state user's state + @param zip user's zip + @param country user's country + */ ++ (void)setUserEmail:(nullable NSString *)email + firstName:(nullable NSString *)firstName + lastName:(nullable NSString *)lastName + phone:(nullable NSString *)phone + dateOfBirth:(nullable NSString *)dateOfBirth + gender:(nullable NSString *)gender + city:(nullable NSString *)city + state:(nullable NSString *)state + zip:(nullable NSString *)zip + country:(nullable NSString *)country +NS_SWIFT_NAME(setUser(email:firstName:lastName:phone:dateOfBirth:gender:city:state:zip:country:)); + +/* + Returns the set user data else nil +*/ ++ (nullable NSString *)getUserData; + +/* + Clears the current user data +*/ ++ (void)clearUserData; + +/* + Sets custom user data to associate with all app events. All user data are hashed + and used to match Facebook user from this instance of an application. + + The user data will be persisted between application instances. + + @param data data + @param type data type, e.g. FBSDKAppEventEmail, FBSDKAppEventPhone + */ ++ (void)setUserData:(nullable NSString *)data + forType:(FBSDKAppEventUserDataType)type; + +/* + Clears the current user data of certain type + */ ++ (void)clearUserDataForType:(FBSDKAppEventUserDataType)type; + +/* + Sends a request to update the properties for the current user, set by `setUserID:` + + You must call `FBSDKAppEvents setUserID:` before making this call. + @param properties the custom user properties + @param handler the optional completion handler + */ ++ (void)updateUserProperties:(NSDictionary *)properties handler:(nullable FBSDKGraphRequestBlock)handler; + +#if !TARGET_OS_TV +/* + Intended to be used as part of a hybrid webapp. + If you call this method, the FB SDK will inject a new JavaScript object into your webview. + If the FB Pixel is used within the webview, and references the app ID of this app, + then it will detect the presence of this injected JavaScript object + and pass Pixel events back to the FB SDK for logging using the AppEvents framework. + + @param webView The webview to augment with the additional JavaScript behaviour + */ ++ (void)augmentHybridWKWebView:(WKWebView *)webView; +#endif + +/* + * Unity helper functions + */ + +/** + + Set if the Unity is already initialized + + @param isUnityInit whether Unity is initialized. + + */ ++ (void)setIsUnityInit:(BOOL)isUnityInit; + +/* + Send event binding to Unity + */ ++ (void)sendEventBindingsToUnity; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/FBSDKAppEvents.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/FBSDKAppEvents.m new file mode 100644 index 0000000000000..631896b1ef0f0 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/FBSDKAppEvents.m @@ -0,0 +1,1453 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKAppEvents.h" +#import "FBSDKAppEvents+Internal.h" +#import "FBSDKApplicationDelegate+Internal.h" +#import + +#import + +#import "FBSDKAccessToken.h" +#import "FBSDKAppEventsState.h" +#import "FBSDKAppEventsStateManager.h" +#import "FBSDKAppEventsUtility.h" +#import "FBSDKConstants.h" +#import "FBSDKDynamicFrameworkLoader.h" +#import "FBSDKError.h" +#import "FBSDKFeatureManager.h" +#import "FBSDKGraphRequest+Internal.h" +#import "FBSDKInternalUtility.h" +#import "FBSDKLogger.h" +#import "FBSDKRestrictiveDataFilterManager.h" +#import "FBSDKPaymentObserver.h" +#import "FBSDKServerConfiguration.h" +#import "FBSDKServerConfigurationManager.h" +#import "FBSDKSettings.h" +#import "FBSDKTimeSpentData.h" +#import "FBSDKUtility.h" +#import "FBSDKUserDataStore.h" + +#if !TARGET_OS_TV +#import "FBSDKEventBindingManager.h" +#import "FBSDKHybridAppEventsScriptMessageHandler.h" +#endif + +// +// Public event names +// + +// General purpose +FBSDKAppEventName FBSDKAppEventNameCompletedRegistration = @"fb_mobile_complete_registration"; +FBSDKAppEventName FBSDKAppEventNameViewedContent = @"fb_mobile_content_view"; +FBSDKAppEventName FBSDKAppEventNameSearched = @"fb_mobile_search"; +FBSDKAppEventName FBSDKAppEventNameRated = @"fb_mobile_rate"; +FBSDKAppEventName FBSDKAppEventNameCompletedTutorial = @"fb_mobile_tutorial_completion"; +FBSDKAppEventName FBSDKAppEventNameContact = @"Contact"; +FBSDKAppEventName FBSDKAppEventNameCustomizeProduct = @"CustomizeProduct"; +FBSDKAppEventName FBSDKAppEventNameDonate = @"Donate"; +FBSDKAppEventName FBSDKAppEventNameFindLocation = @"FindLocation"; +FBSDKAppEventName FBSDKAppEventNameSchedule = @"Schedule"; +FBSDKAppEventName FBSDKAppEventNameStartTrial = @"StartTrial"; +FBSDKAppEventName FBSDKAppEventNameSubmitApplication = @"SubmitApplication"; +FBSDKAppEventName FBSDKAppEventNameSubscribe = @"Subscribe"; +FBSDKAppEventName FBSDKAppEventNameSubscriptionHeartbeat = @"SubscriptionHeartbeat"; +FBSDKAppEventName FBSDKAppEventNameAdImpression = @"AdImpression"; +FBSDKAppEventName FBSDKAppEventNameAdClick = @"AdClick"; + +// Ecommerce related +FBSDKAppEventName FBSDKAppEventNameAddedToCart = @"fb_mobile_add_to_cart"; +FBSDKAppEventName FBSDKAppEventNameAddedToWishlist = @"fb_mobile_add_to_wishlist"; +FBSDKAppEventName FBSDKAppEventNameInitiatedCheckout = @"fb_mobile_initiated_checkout"; +FBSDKAppEventName FBSDKAppEventNameAddedPaymentInfo = @"fb_mobile_add_payment_info"; +FBSDKAppEventName FBSDKAppEventNameProductCatalogUpdate = @"fb_mobile_catalog_update"; +FBSDKAppEventName FBSDKAppEventNamePurchased = @"fb_mobile_purchase"; + +// Gaming related +FBSDKAppEventName FBSDKAppEventNameAchievedLevel = @"fb_mobile_level_achieved"; +FBSDKAppEventName FBSDKAppEventNameUnlockedAchievement = @"fb_mobile_achievement_unlocked"; +FBSDKAppEventName FBSDKAppEventNameSpentCredits = @"fb_mobile_spent_credits"; + +// +// Public event parameter names +// + +FBSDKAppEventParameterName FBSDKAppEventParameterNameCurrency = @"fb_currency"; +FBSDKAppEventParameterName FBSDKAppEventParameterNameRegistrationMethod = @"fb_registration_method"; +FBSDKAppEventParameterName FBSDKAppEventParameterNameContentType = @"fb_content_type"; +FBSDKAppEventParameterName FBSDKAppEventParameterNameContent = @"fb_content"; +FBSDKAppEventParameterName FBSDKAppEventParameterNameContentID = @"fb_content_id"; +FBSDKAppEventParameterName FBSDKAppEventParameterNameSearchString = @"fb_search_string"; +FBSDKAppEventParameterName FBSDKAppEventParameterNameSuccess = @"fb_success"; +FBSDKAppEventParameterName FBSDKAppEventParameterNameMaxRatingValue = @"fb_max_rating_value"; +FBSDKAppEventParameterName FBSDKAppEventParameterNamePaymentInfoAvailable = @"fb_payment_info_available"; +FBSDKAppEventParameterName FBSDKAppEventParameterNameNumItems = @"fb_num_items"; +FBSDKAppEventParameterName FBSDKAppEventParameterNameLevel = @"fb_level"; +FBSDKAppEventParameterName FBSDKAppEventParameterNameDescription = @"fb_description"; +FBSDKAppEventParameterName FBSDKAppEventParameterLaunchSource = @"fb_mobile_launch_source"; +FBSDKAppEventParameterName FBSDKAppEventParameterNameAdType = @"ad_type"; +FBSDKAppEventParameterName FBSDKAppEventParameterNameOrderID = @"fb_order_id"; + +// +// Public event parameter names for DPA Catalog +// + +FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel0 = @"fb_product_custom_label_0"; +FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel1 = @"fb_product_custom_label_1"; +FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel2 = @"fb_product_custom_label_2"; +FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel3 = @"fb_product_custom_label_3"; +FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCustomLabel4 = @"fb_product_custom_label_4"; +FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCategory = @"fb_product_category"; +FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIOSUrl = @"fb_product_applink_ios_url"; +FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIOSAppStoreID = @"fb_product_applink_ios_app_store_id"; +FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIOSAppName = @"fb_product_applink_ios_app_name"; +FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPhoneUrl = @"fb_product_applink_iphone_url"; +FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPhoneAppStoreID = @"fb_product_applink_iphone_app_store_id"; +FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPhoneAppName = @"fb_product_applink_iphone_app_name"; +FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPadUrl = @"fb_product_applink_ipad_url"; +FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPadAppStoreID = @"fb_product_applink_ipad_app_store_id"; +FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkIPadAppName = @"fb_product_applink_ipad_app_name"; +FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkAndroidUrl = @"fb_product_applink_android_url"; +FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkAndroidPackage = @"fb_product_applink_android_package"; +FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkAndroidAppName = @"fb_product_applink_android_app_name"; +FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkWindowsPhoneUrl = @"fb_product_applink_windows_phone_url"; +FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkWindowsPhoneAppID = @"fb_product_applink_windows_phone_app_id"; +FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAppLinkWindowsPhoneAppName = @"fb_product_applink_windows_phone_app_name"; + +// +// Public event parameter values +// + +FBSDKAppEventParameterValue FBSDKAppEventParameterValueNo = @"0"; +FBSDKAppEventParameterValue FBSDKAppEventParameterValueYes = @"1"; + +// +// Public event user data types +// + +FBSDKAppEventUserDataType FBSDKAppEventEmail = @"em"; +FBSDKAppEventUserDataType FBSDKAppEventFirstName = @"fn"; +FBSDKAppEventUserDataType FBSDKAppEventLastName = @"ln"; +FBSDKAppEventUserDataType FBSDKAppEventPhone = @"ph"; +FBSDKAppEventUserDataType FBSDKAppEventDateOfBirth = @"dob"; +FBSDKAppEventUserDataType FBSDKAppEventGender = @"ge"; +FBSDKAppEventUserDataType FBSDKAppEventCity = @"ct"; +FBSDKAppEventUserDataType FBSDKAppEventState = @"st"; +FBSDKAppEventUserDataType FBSDKAppEventZip = @"zp"; +FBSDKAppEventUserDataType FBSDKAppEventCountry = @"country"; + +// +// Event names internal to this file +// +FBSDKAppEventName FBSDKAppEventNameLoginViewUsage = @"fb_login_view_usage"; +FBSDKAppEventName FBSDKAppEventNameShareSheetLaunch = @"fb_share_sheet_launch"; +FBSDKAppEventName FBSDKAppEventNameShareSheetDismiss = @"fb_share_sheet_dismiss"; +FBSDKAppEventName FBSDKAppEventNameShareTrayDidLaunch = @"fb_share_tray_did_launch"; +FBSDKAppEventName FBSDKAppEventNameShareTrayDidSelectActivity = @"fb_share_tray_did_select_activity"; +FBSDKAppEventName FBSDKAppEventNamePermissionsUILaunch = @"fb_permissions_ui_launch"; +FBSDKAppEventName FBSDKAppEventNamePermissionsUIDismiss = @"fb_permissions_ui_dismiss"; +FBSDKAppEventName FBSDKAppEventNameFBDialogsPresentShareDialog = @"fb_dialogs_present_share"; +FBSDKAppEventName FBSDKAppEventNameFBDialogsPresentShareDialogPhoto = @"fb_dialogs_present_share_photo"; +FBSDKAppEventName FBSDKAppEventNameFBDialogsPresentShareDialogOG = @"fb_dialogs_present_share_og"; +FBSDKAppEventName FBSDKAppEventNameFBDialogsPresentLikeDialogOG = @"fb_dialogs_present_like_og"; +FBSDKAppEventName FBSDKAppEventNameFBDialogsPresentMessageDialog = @"fb_dialogs_present_message"; +FBSDKAppEventName FBSDKAppEventNameFBDialogsPresentMessageDialogPhoto = @"fb_dialogs_present_message_photo"; +FBSDKAppEventName FBSDKAppEventNameFBDialogsPresentMessageDialogOG = @"fb_dialogs_present_message_og"; + +FBSDKAppEventName FBSDKAppEventNameFBDialogsNativeLoginDialogStart = @"fb_dialogs_native_login_dialog_start"; +NSString *const FBSDKAppEventsNativeLoginDialogStartTime = @"fb_native_login_dialog_start_time"; + +FBSDKAppEventName FBSDKAppEventNameFBDialogsNativeLoginDialogEnd = @"fb_dialogs_native_login_dialog_end"; +NSString *const FBSDKAppEventsNativeLoginDialogEndTime = @"fb_native_login_dialog_end_time"; + +FBSDKAppEventName FBSDKAppEventNameFBDialogsWebLoginCompleted = @"fb_dialogs_web_login_dialog_complete"; +NSString *const FBSDKAppEventsWebLoginE2E = @"fb_web_login_e2e"; + +FBSDKAppEventName FBSDKAppEventNameFBSessionAuthStart = @"fb_mobile_login_start"; +FBSDKAppEventName FBSDKAppEventNameFBSessionAuthEnd = @"fb_mobile_login_complete"; +FBSDKAppEventName FBSDKAppEventNameFBSessionAuthMethodStart = @"fb_mobile_login_method_start"; +FBSDKAppEventName FBSDKAppEventNameFBSessionAuthMethodEnd = @"fb_mobile_login_method_complete"; + +FBSDKAppEventName FBSDKAppEventNameFBSDKLikeButtonImpression = @"fb_like_button_impression"; +FBSDKAppEventName FBSDKAppEventNameFBSDKLoginButtonImpression = @"fb_login_button_impression"; +FBSDKAppEventName FBSDKAppEventNameFBSDKSendButtonImpression = @"fb_send_button_impression"; +FBSDKAppEventName FBSDKAppEventNameFBSDKShareButtonImpression = @"fb_share_button_impression"; +FBSDKAppEventName FBSDKAppEventNameFBSDKLiveStreamingButtonImpression = @"fb_live_streaming_button_impression"; + +FBSDKAppEventName FBSDKAppEventNameFBSDKSmartLoginService = @"fb_smart_login_service"; + +FBSDKAppEventName FBSDKAppEventNameFBSDKLikeButtonDidTap = @"fb_like_button_did_tap"; +FBSDKAppEventName FBSDKAppEventNameFBSDKLoginButtonDidTap = @"fb_login_button_did_tap"; +FBSDKAppEventName FBSDKAppEventNameFBSDKSendButtonDidTap = @"fb_send_button_did_tap"; +FBSDKAppEventName FBSDKAppEventNameFBSDKShareButtonDidTap = @"fb_share_button_did_tap"; +FBSDKAppEventName FBSDKAppEventNameFBSDKLiveStreamingButtonDidTap = @"fb_live_streaming_button_did_tap"; + +FBSDKAppEventName FBSDKAppEventNameFBSDKLikeControlDidDisable = @"fb_like_control_did_disable"; +FBSDKAppEventName FBSDKAppEventNameFBSDKLikeControlDidLike = @"fb_like_control_did_like"; +FBSDKAppEventName FBSDKAppEventNameFBSDKLikeControlDidPresentDialog = @"fb_like_control_did_present_dialog"; +FBSDKAppEventName FBSDKAppEventNameFBSDKLikeControlDidTap = @"fb_like_control_did_tap"; +FBSDKAppEventName FBSDKAppEventNameFBSDKLikeControlDidUnlike = @"fb_like_control_did_unlike"; +FBSDKAppEventName FBSDKAppEventNameFBSDKLikeControlError = @"fb_like_control_error"; +FBSDKAppEventName FBSDKAppEventNameFBSDKLikeControlImpression = @"fb_like_control_impression"; +FBSDKAppEventName FBSDKAppEventNameFBSDKLikeControlNetworkUnavailable = @"fb_like_control_network_unavailable"; + +FBSDKAppEventName FBSDKAppEventNameFBSDKEventShareDialogResult = @"fb_dialog_share_result"; +FBSDKAppEventName FBSDKAppEventNameFBSDKEventMessengerShareDialogResult = @"fb_messenger_dialog_share_result"; +FBSDKAppEventName FBSDKAppEventNameFBSDKEventAppInviteShareDialogResult = @"fb_app_invite_dialog_share_result"; + +FBSDKAppEventName FBSDKAppEventNameFBSDKEventShareDialogShow = @"fb_dialog_share_show"; +FBSDKAppEventName FBSDKAppEventNameFBSDKEventMessengerShareDialogShow = @"fb_messenger_dialog_share_show"; +FBSDKAppEventName FBSDKAppEventNameFBSDKEventAppInviteShareDialogShow = @"fb_app_invite_share_show"; + +FBSDKAppEventName FBSDKAppEventNameFBSessionFASLoginDialogResult = @"fb_mobile_login_fas_dialog_result"; + +FBSDKAppEventName FBSDKAppEventNameFBSDKLiveStreamingStart = @"fb_sdk_live_streaming_start"; +FBSDKAppEventName FBSDKAppEventNameFBSDKLiveStreamingStop = @"fb_sdk_live_streaming_stop"; +FBSDKAppEventName FBSDKAppEventNameFBSDKLiveStreamingPause = @"fb_sdk_live_streaming_pause"; +FBSDKAppEventName FBSDKAppEventNameFBSDKLiveStreamingResume = @"fb_sdk_live_streaming_resume"; +FBSDKAppEventName FBSDKAppEventNameFBSDKLiveStreamingError = @"fb_sdk_live_streaming_error"; +FBSDKAppEventName FBSDKAppEventNameFBSDKLiveStreamingUpdateStatus = @"fb_sdk_live_streaming_update_status"; +FBSDKAppEventName FBSDKAppEventNameFBSDKLiveStreamingVideoID = @"fb_sdk_live_streaming_video_id"; +FBSDKAppEventName FBSDKAppEventNameFBSDKLiveStreamingMic = @"fb_sdk_live_streaming_mic"; +FBSDKAppEventName FBSDKAppEventNameFBSDKLiveStreamingCamera = @"fb_sdk_live_streaming_camera"; + +// Event Parameters internal to this file +NSString *const FBSDKAppEventParameterDialogOutcome = @"fb_dialog_outcome"; +NSString *const FBSDKAppEventParameterDialogErrorMessage = @"fb_dialog_outcome_error_message"; +NSString *const FBSDKAppEventParameterDialogMode = @"fb_dialog_mode"; +NSString *const FBSDKAppEventParameterDialogShareContentType = @"fb_dialog_share_content_type"; +NSString *const FBSDKAppEventParameterDialogShareContentUUID = @"fb_dialog_share_content_uuid"; +NSString *const FBSDKAppEventParameterDialogShareContentPageID = @"fb_dialog_share_content_page_id"; +NSString *const FBSDKAppEventParameterShareTrayActivityName = @"fb_share_tray_activity"; +NSString *const FBSDKAppEventParameterShareTrayResult = @"fb_share_tray_result"; +NSString *const FBSDKAppEventParameterLogTime = @"_logTime"; +NSString *const FBSDKAppEventParameterEventName = @"_eventName"; +NSString *const FBSDKAppEventParameterImplicitlyLogged = @"_implicitlyLogged"; +NSString *const FBSDKAppEventParameterInBackground = @"_inBackground"; + +NSString *const FBSDKAppEventParameterLiveStreamingPrevStatus = @"live_streaming_prev_status"; +NSString *const FBSDKAppEventParameterLiveStreamingStatus = @"live_streaming_status"; +NSString *const FBSDKAppEventParameterLiveStreamingError = @"live_streaming_error"; +NSString *const FBSDKAppEventParameterLiveStreamingVideoID = @"live_streaming_video_id"; +NSString *const FBSDKAppEventParameterLiveStreamingMicEnabled = @"live_streaming_mic_enabled"; +NSString *const FBSDKAppEventParameterLiveStreamingCameraEnabled = @"live_streaming_camera_enabled"; + +FBSDKAppEventParameterProduct FBSDKAppEventParameterProductItemID = @"fb_product_item_id"; +FBSDKAppEventParameterProduct FBSDKAppEventParameterProductAvailability = @"fb_product_availability"; +FBSDKAppEventParameterProduct FBSDKAppEventParameterProductCondition = @"fb_product_condition"; +FBSDKAppEventParameterProduct FBSDKAppEventParameterProductDescription = @"fb_product_description"; +FBSDKAppEventParameterProduct FBSDKAppEventParameterProductImageLink = @"fb_product_image_link"; +FBSDKAppEventParameterProduct FBSDKAppEventParameterProductLink = @"fb_product_link"; +FBSDKAppEventParameterProduct FBSDKAppEventParameterProductTitle = @"fb_product_title"; +FBSDKAppEventParameterProduct FBSDKAppEventParameterProductGTIN = @"fb_product_gtin"; +FBSDKAppEventParameterProduct FBSDKAppEventParameterProductMPN = @"fb_product_mpn"; +FBSDKAppEventParameterProduct FBSDKAppEventParameterProductBrand = @"fb_product_brand"; +FBSDKAppEventParameterProduct FBSDKAppEventParameterProductPriceAmount = @"fb_product_price_amount"; +FBSDKAppEventParameterProduct FBSDKAppEventParameterProductPriceCurrency = @"fb_product_price_currency"; + +// Event parameter values internal to this file +NSString *const FBSDKAppEventsDialogOutcomeValue_Completed = @"Completed"; +NSString *const FBSDKAppEventsDialogOutcomeValue_Cancelled = @"Cancelled"; +NSString *const FBSDKAppEventsDialogOutcomeValue_Failed = @"Failed"; + +NSString *const FBSDKAppEventsDialogShareModeAutomatic = @"Automatic"; +NSString *const FBSDKAppEventsDialogShareModeBrowser = @"Browser"; +NSString *const FBSDKAppEventsDialogShareModeNative = @"Native"; +NSString *const FBSDKAppEventsDialogShareModeShareSheet = @"ShareSheet"; +NSString *const FBSDKAppEventsDialogShareModeWeb = @"Web"; +NSString *const FBSDKAppEventsDialogShareModeFeedBrowser = @"FeedBrowser"; +NSString *const FBSDKAppEventsDialogShareModeFeedWeb = @"FeedWeb"; +NSString *const FBSDKAppEventsDialogShareModeUnknown = @"Unknown"; + +NSString *const FBSDKAppEventsDialogShareContentTypeOpenGraph = @"OpenGraph"; +NSString *const FBSDKAppEventsDialogShareContentTypeStatus = @"Status"; +NSString *const FBSDKAppEventsDialogShareContentTypePhoto = @"Photo"; +NSString *const FBSDKAppEventsDialogShareContentTypeVideo = @"Video"; +NSString *const FBSDKAppEventsDialogShareContentTypeCamera = @"Camera"; +NSString *const FBSDKAppEventsDialogShareContentTypeMessengerGenericTemplate = @"GenericTemplate"; +NSString *const FBSDKAppEventsDialogShareContentTypeMessengerMediaTemplate = @"MediaTemplate"; +NSString *const FBSDKAppEventsDialogShareContentTypeMessengerOpenGraphMusicTemplate = @"OpenGraphMusicTemplate"; +NSString *const FBSDKAppEventsDialogShareContentTypeUnknown = @"Unknown"; + +NSString *const FBSDKGateKeeperAppEventsKillSwitch = @"app_events_killswitch"; + +#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0 + +NSNotificationName const FBSDKAppEventsLoggingResultNotification = @"com.facebook.sdk:FBSDKAppEventsLoggingResultNotification"; + +#else + +NSString *const FBSDKAppEventsLoggingResultNotification = @"com.facebook.sdk:FBSDKAppEventsLoggingResultNotification"; + +#endif + +NSString *const FBSDKAppEventsOverrideAppIDBundleKey = @"FacebookLoggingOverrideAppID"; + +// +// Push Notifications +// +// Activities Endpoint Parameter +static NSString *const FBSDKActivitesParameterPushDeviceToken = @"device_token"; +// Event Names +static FBSDKAppEventName FBSDKAppEventNamePushTokenObtained = @"fb_mobile_obtain_push_token"; +static FBSDKAppEventName FBSDKAppEventNamePushOpened = @"fb_mobile_push_opened"; +// Event Parameter +static NSString *const FBSDKAppEventParameterPushCampaign = @"fb_push_campaign"; +static NSString *const FBSDKAppEventParameterPushAction = @"fb_push_action"; +// Payload Keys +static NSString *const FBSDKAppEventsPushPayloadKey = @"fb_push_payload"; +static NSString *const FBSDKAppEventsPushPayloadCampaignKey = @"campaign"; + +// +// Augmentation of web browser constants +// +NSString *const FBSDKAppEventsWKWebViewMessagesPixelIDKey = @"pixelID"; +NSString *const FBSDKAppEventsWKWebViewMessagesHandlerKey = @"fbmqHandler"; +NSString *const FBSDKAppEventsWKWebViewMessagesEventKey = @"event"; +NSString *const FBSDKAppEventsWKWebViewMessagesParamsKey = @"params"; +NSString *const FBSDKAPPEventsWKWebViewMessagesProtocolKey = @"fbmq-0.1"; + +#define NUM_LOG_EVENTS_TO_TRY_TO_FLUSH_AFTER 100 +#define FLUSH_PERIOD_IN_SECONDS 15 +#define USER_ID_USER_DEFAULTS_KEY @"com.facebook.sdk.appevents.userid" + +#define FBUnityUtilityClassName "FBUnityUtility" +#define FBUnityUtilityUpdateBindingsSelector @"triggerUpdateBindings:" + +static NSString *g_overrideAppID = nil; + +@interface FBSDKAppEvents () + +@property (nonatomic, assign) FBSDKAppEventsFlushBehavior flushBehavior; +//for testing only. +@property (nonatomic, assign) BOOL disableTimer; + +@property (nonatomic, copy) NSString *pushNotificationsDeviceTokenString; + +@property (nonatomic, strong) dispatch_source_t flushTimer; + +@end + +@implementation FBSDKAppEvents +{ + BOOL _explicitEventsLoggedYet; + FBSDKServerConfiguration *_serverConfiguration; + FBSDKAppEventsState *_appEventsState; +#if !TARGET_OS_TV + FBSDKEventBindingManager *_eventBindingManager; +#endif + NSString *_userID; + BOOL _isUnityInit; +} + +#pragma mark - Object Lifecycle + ++ (void)initialize +{ + if (self == [FBSDKAppEvents class]) { + g_overrideAppID = [[[NSBundle mainBundle] objectForInfoDictionaryKey:FBSDKAppEventsOverrideAppIDBundleKey] copy]; + [FBSDKBasicUtility anonymousID]; + } +} + +- (instancetype)init +{ + self = [super init]; + if (self) { + _flushBehavior = FBSDKAppEventsFlushBehaviorAuto; + + __weak FBSDKAppEvents *weakSelf = self; + self.flushTimer = [FBSDKUtility startGCDTimerWithInterval:FLUSH_PERIOD_IN_SECONDS + block:^{ + [weakSelf flushTimerFired:nil]; + }]; + + NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; + _userID = [defaults stringForKey:USER_ID_USER_DEFAULTS_KEY]; + [self fetchServerConfiguration:nil]; + } + + return self; +} + +- (void)registerNotifications { + [[NSNotificationCenter defaultCenter] + addObserver:self + selector:@selector(applicationMovingFromActiveStateOrTerminating) + name:UIApplicationWillResignActiveNotification + object:NULL]; + + [[NSNotificationCenter defaultCenter] + addObserver:self + selector:@selector(applicationMovingFromActiveStateOrTerminating) + name:UIApplicationWillTerminateNotification + object:NULL]; + + [[NSNotificationCenter defaultCenter] + addObserver:self + selector:@selector(applicationDidBecomeActive) + name:UIApplicationDidBecomeActiveNotification + object:NULL]; +} + +- (void)dealloc +{ + [[NSNotificationCenter defaultCenter] removeObserver:self]; + [FBSDKUtility stopGCDTimer:self.flushTimer]; +} + +#pragma mark - Public Methods + ++ (void)logEvent:(FBSDKAppEventName)eventName +{ + [FBSDKAppEvents logEvent:eventName + parameters:@{}]; +} + ++ (void)logEvent:(FBSDKAppEventName)eventName + valueToSum:(double)valueToSum +{ + [FBSDKAppEvents logEvent:eventName + valueToSum:valueToSum + parameters:@{}]; +} + ++ (void)logEvent:(FBSDKAppEventName)eventName + parameters:(NSDictionary *)parameters +{ + [FBSDKAppEvents logEvent:eventName + valueToSum:nil + parameters:parameters + accessToken:nil]; +} + ++ (void)logEvent:(FBSDKAppEventName)eventName + valueToSum:(double)valueToSum + parameters:(NSDictionary *)parameters +{ + [FBSDKAppEvents logEvent:eventName + valueToSum:@(valueToSum) + parameters:parameters + accessToken:nil]; +} + ++ (void)logEvent:(FBSDKAppEventName)eventName + valueToSum:(NSNumber *)valueToSum + parameters:(NSDictionary *)parameters + accessToken:(FBSDKAccessToken *)accessToken +{ + [[FBSDKAppEvents singleton] instanceLogEvent:eventName + valueToSum:valueToSum + parameters:parameters + isImplicitlyLogged:(BOOL)parameters[FBSDKAppEventParameterImplicitlyLogged] + accessToken:accessToken]; +} + ++ (void)logPurchase:(double)purchaseAmount + currency:(NSString *)currency +{ + [FBSDKAppEvents logPurchase:purchaseAmount + currency:currency + parameters:@{}]; +} + ++ (void)logPurchase:(double)purchaseAmount + currency:(NSString *)currency + parameters:(NSDictionary *)parameters +{ + [FBSDKAppEvents logPurchase:purchaseAmount + currency:currency + parameters:parameters + accessToken:nil]; +} + ++ (void)logPurchase:(double)purchaseAmount + currency:(NSString *)currency + parameters:(NSDictionary *)parameters + accessToken:(FBSDKAccessToken *)accessToken +{ + + // A purchase event is just a regular logged event with a given event name + // and treating the currency value as going into the parameters dictionary. + NSDictionary *newParameters; + if (!parameters) { + newParameters = @{ FBSDKAppEventParameterNameCurrency : currency }; + } else { + newParameters = [NSMutableDictionary dictionaryWithDictionary:parameters]; + [newParameters setValue:currency forKey:FBSDKAppEventParameterNameCurrency]; + } + + [FBSDKAppEvents logEvent:FBSDKAppEventNamePurchased + valueToSum:@(purchaseAmount) + parameters:newParameters + accessToken:accessToken]; + + // Unless the behavior is set to only allow explicit flushing, we go ahead and flush, since purchase events + // are relatively rare and relatively high value and worth getting across on wire right away. + if ([FBSDKAppEvents flushBehavior] != FBSDKAppEventsFlushBehaviorExplicitOnly) { + [[FBSDKAppEvents singleton] flushForReason:FBSDKAppEventsFlushReasonEagerlyFlushingEvent]; + } +} + +/* + * Push Notifications Logging + */ + ++ (void)logPushNotificationOpen:(NSDictionary *)payload +{ + [self logPushNotificationOpen:payload action:@""]; +} + ++ (void)logPushNotificationOpen:(NSDictionary *)payload action:(NSString *)action +{ + NSDictionary *facebookPayload = payload[FBSDKAppEventsPushPayloadKey]; + if (!facebookPayload) { + return; + } + NSString *campaign = facebookPayload[FBSDKAppEventsPushPayloadCampaignKey]; + if (campaign.length == 0) { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors + logEntry:@"Malformed payload specified for logging a push notification open."]; + return; + } + + NSMutableDictionary *parameters = [NSMutableDictionary dictionaryWithObject:campaign forKey:FBSDKAppEventParameterPushCampaign]; + if (action && action.length > 0) { + parameters[FBSDKAppEventParameterPushAction] = action; + } + [self logEvent:FBSDKAppEventNamePushOpened parameters:parameters]; +} + +/* + * Uploads product catalog product item as an app event + */ ++ (void)logProductItem:(NSString *)itemID + availability:(FBSDKProductAvailability)availability + condition:(FBSDKProductCondition)condition + description:(NSString *)description + imageLink:(NSString *)imageLink + link:(NSString *)link + title:(NSString *)title + priceAmount:(double)priceAmount + currency:(NSString *)currency + gtin:(NSString *)gtin + mpn:(NSString *)mpn + brand:(NSString *)brand + parameters:(NSDictionary *)parameters +{ + if (itemID == nil) { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors + logEntry:@"itemID cannot be null"]; + return; + } else if (description == nil) { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors + logEntry:@"description cannot be null"]; + return; + } else if (imageLink == nil) { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors + logEntry:@"imageLink cannot be null"]; + return; + } else if (link == nil) { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors + logEntry:@"link cannot be null"]; + return; + } else if (title == nil) { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors + logEntry:@"title cannot be null"]; + return; + } else if (currency == nil) { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors + logEntry:@"currency cannot be null"]; + return; + } else if (gtin == nil && mpn == nil && brand == nil) { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors + logEntry:@"Either gtin, mpn or brand is required"]; + return; + } + + NSMutableDictionary *dict = [NSMutableDictionary dictionary]; + if (nil != parameters) { + [dict setValuesForKeysWithDictionary:parameters]; + } + + dict[FBSDKAppEventParameterProductItemID] = itemID; + + NSString *avail = nil; + switch (availability) { + case FBSDKProductAvailabilityInStock: + avail = @"IN_STOCK"; break; + case FBSDKProductAvailabilityOutOfStock: + avail = @"OUT_OF_STOCK"; break; + case FBSDKProductAvailabilityPreOrder: + avail = @"PREORDER"; break; + case FBSDKProductAvailabilityAvailableForOrder: + avail = @"AVALIABLE_FOR_ORDER"; break; + case FBSDKProductAvailabilityDiscontinued: + avail = @"DISCONTINUED"; break; + } + if (avail) { + dict[FBSDKAppEventParameterProductAvailability] = avail; + } + + NSString *cond = nil; + switch (condition) { + case FBSDKProductConditionNew: + cond = @"NEW"; break; + case FBSDKProductConditionRefurbished: + cond = @"REFURBISHED"; break; + case FBSDKProductConditionUsed: + cond = @"USED"; break; + } + if (cond) { + dict[FBSDKAppEventParameterProductCondition] = cond; + } + + dict[FBSDKAppEventParameterProductDescription] = description; + dict[FBSDKAppEventParameterProductImageLink] = imageLink; + dict[FBSDKAppEventParameterProductLink] = link; + dict[FBSDKAppEventParameterProductTitle] = title; + dict[FBSDKAppEventParameterProductPriceAmount] = [NSString stringWithFormat:@"%.3lf", priceAmount]; + dict[FBSDKAppEventParameterProductPriceCurrency] = currency; + if (gtin) { + dict[FBSDKAppEventParameterProductGTIN] = gtin; + } + if (mpn) { + dict[FBSDKAppEventParameterProductMPN] = mpn; + } + if (brand) { + dict[FBSDKAppEventParameterProductBrand] = brand; + } + + [FBSDKAppEvents logEvent:FBSDKAppEventNameProductCatalogUpdate + parameters:dict]; +} + ++ (void)activateApp +{ + [FBSDKAppEventsUtility ensureOnMainThread:NSStringFromSelector(_cmd) className:NSStringFromClass(self)]; + + // Fetch app settings and register for transaction notifications only if app supports implicit purchase + // events + FBSDKAppEvents *instance = [FBSDKAppEvents singleton]; + [instance publishInstall]; + [instance fetchServerConfiguration:NULL]; + + // Restore time spent data, indicating that we're being called from "activateApp", which will, + // when appropriate, result in logging an "activated app" and "deactivated app" (for the + // previous session) App Event. + [FBSDKTimeSpentData restore:YES]; +} + ++ (void)setPushNotificationsDeviceToken:(NSData *)deviceToken +{ + NSString *deviceTokenString = [FBSDKInternalUtility hexadecimalStringFromData:deviceToken]; + [FBSDKAppEvents setPushNotificationsDeviceTokenString:deviceTokenString]; +} + ++ (void)setPushNotificationsDeviceTokenString:(NSString *)deviceTokenString +{ + if (deviceTokenString == nil) { + [FBSDKAppEvents singleton].pushNotificationsDeviceTokenString = nil; + return; + } + + if (![deviceTokenString isEqualToString:([FBSDKAppEvents singleton].pushNotificationsDeviceTokenString)]) { + [FBSDKAppEvents singleton].pushNotificationsDeviceTokenString = deviceTokenString; + + [FBSDKAppEvents logEvent:FBSDKAppEventNamePushTokenObtained]; + + // Unless the behavior is set to only allow explicit flushing, we go ahead and flush the event + if ([FBSDKAppEvents flushBehavior] != FBSDKAppEventsFlushBehaviorExplicitOnly) { + [[FBSDKAppEvents singleton] flushForReason:FBSDKAppEventsFlushReasonEagerlyFlushingEvent]; + } + } +} + ++ (FBSDKAppEventsFlushBehavior)flushBehavior +{ + return [FBSDKAppEvents singleton].flushBehavior; +} + ++ (void)setFlushBehavior:(FBSDKAppEventsFlushBehavior)flushBehavior +{ + [FBSDKAppEvents singleton].flushBehavior = flushBehavior; +} + ++ (NSString *)loggingOverrideAppID +{ + return g_overrideAppID; +} + ++ (void)setLoggingOverrideAppID:(NSString *)appID +{ + if (![g_overrideAppID isEqualToString:appID]) { + FBSDKConditionalLog(![FBSDKAppEvents singleton]->_explicitEventsLoggedYet, + FBSDKLoggingBehaviorDeveloperErrors, + @"[FBSDKAppEvents setLoggingOverrideAppID:] should only be called prior to any events being logged."); + g_overrideAppID = appID; + } +} + ++ (void)flush +{ + [[FBSDKAppEvents singleton] flushForReason:FBSDKAppEventsFlushReasonExplicit]; +} + ++ (void)setUserID:(NSString *)userID +{ + if ([[[self class] singleton]->_userID isEqualToString:userID]) { + return; + } + [[self class] singleton]->_userID = userID; + NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; + [defaults setObject:userID forKey:USER_ID_USER_DEFAULTS_KEY]; + [defaults synchronize]; +} + ++ (void)clearUserID +{ + [self setUserID:nil]; +} + ++ (NSString *)userID +{ + return [[self class] singleton]->_userID; +} + ++ (void)setUserEmail:(nullable NSString *)email + firstName:(nullable NSString *)firstName + lastName:(nullable NSString *)lastName + phone:(nullable NSString *)phone + dateOfBirth:(nullable NSString *)dateOfBirth + gender:(nullable NSString *)gender + city:(nullable NSString *)city + state:(nullable NSString *)state + zip:(nullable NSString *)zip + country:(nullable NSString *)country +{ + [FBSDKUserDataStore setAndHashUserEmail:email + firstName:firstName + lastName:lastName + phone:phone + dateOfBirth:dateOfBirth + gender:gender + city:city + state:state + zip:zip + country:country]; +} + ++ (NSString*)getUserData +{ + return [FBSDKUserDataStore getHashedData]; +} + ++ (void)clearUserData +{ + [FBSDKUserDataStore setAndHashUserEmail:nil + firstName:nil + lastName:nil + phone:nil + dateOfBirth:nil + gender:nil + city:nil + state:nil + zip:nil + country:nil]; +} + ++ (void)setUserData:(nullable NSString *)data + forType:(FBSDKAppEventUserDataType)type +{ + [FBSDKUserDataStore setAndHashData:data forType:type]; +} + ++ (void)clearUserDataForType:(FBSDKAppEventUserDataType)type +{ + [FBSDKUserDataStore clearDataForType:type]; +} + + ++ (void)updateUserProperties:(NSDictionary *)properties handler:(FBSDKGraphRequestBlock)handler +{ + NSString *userID = [[self class] userID]; + + if (userID.length == 0) { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors logEntry:@"Missing [FBSDKAppEvents userID] for [FBSDKAppEvents updateUserProperties:]"]; + NSError *error = [FBSDKError requiredArgumentErrorWithName:@"userID" message:@"Missing [FBSDKAppEvents userID] for [FBSDKAppEvents updateUserProperties:]"]; + if (handler) { + handler(nil, nil, error); + } + return; + } + NSMutableDictionary *dataDictionary = [NSMutableDictionary dictionaryWithCapacity:3]; + [FBSDKBasicUtility dictionary:dataDictionary setObject:[FBSDKAppEvents userID] forKey:@"user_unique_id"]; + [FBSDKBasicUtility dictionary:dataDictionary setObject:[FBSDKAppEventsUtility advertiserID] forKey:@"advertiser_id"]; + [FBSDKBasicUtility dictionary:dataDictionary setObject:properties forKey:@"custom_data"]; + + NSError *error; + __block NSError *invalidObjectError; + NSString *dataJSONString = [FBSDKBasicUtility JSONStringForObject:@[dataDictionary] error:&error invalidObjectHandler:^id(id object, BOOL *stop) { + *stop = YES; + invalidObjectError = [FBSDKError unknownErrorWithMessage:@"The values in the properties dictionary must be NSStrings or NSNumbers"]; + return nil; + }]; + if (!error) { + error = invalidObjectError; + } + if (error) { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors logEntry:@"Failed to serialize properties for [FBSDKAppEvents updateUserProperties:]"]; + if (handler) { + handler(nil, nil, error); + } + return; + } + NSDictionary *params = @{ @"data" : dataJSONString }; + FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc] initWithGraphPath:[NSString stringWithFormat:@"%@/user_properties", [[self singleton] appID]] + parameters:params + tokenString:[FBSDKAccessToken currentAccessToken].tokenString + HTTPMethod:FBSDKHTTPMethodPOST + flags:FBSDKGraphRequestFlagDisableErrorRecovery | + FBSDKGraphRequestFlagDoNotInvalidateTokenOnError | + FBSDKGraphRequestFlagSkipClientToken + ]; + [request startWithCompletionHandler:handler]; +} + +#if !TARGET_OS_TV ++ (void)augmentHybridWKWebView:(WKWebView *)webView { + // Ensure we can instantiate WebKit before trying this + Class WKWebViewClass = fbsdkdfl_WKWebViewClass(); + if (WKWebViewClass != nil && [webView isKindOfClass:WKWebViewClass]) { + Class WKUserScriptClass = fbsdkdfl_WKUserScriptClass(); + if (WKUserScriptClass != nil) { + WKUserContentController *controller = webView.configuration.userContentController; + FBSDKHybridAppEventsScriptMessageHandler *scriptHandler = [[FBSDKHybridAppEventsScriptMessageHandler alloc] init]; + [controller addScriptMessageHandler:scriptHandler name:FBSDKAppEventsWKWebViewMessagesHandlerKey]; + + NSString *js = [NSString stringWithFormat:@"window.fbmq_%@={'sendEvent': function(pixel_id,event_name,custom_data){var msg={\"%@\":pixel_id, \"%@\":event_name,\"%@\":custom_data};window.webkit.messageHandlers[\"%@\"].postMessage(msg);}, 'getProtocol':function(){return \"%@\";}}", + [[self singleton] appID], + FBSDKAppEventsWKWebViewMessagesPixelIDKey, + FBSDKAppEventsWKWebViewMessagesEventKey, + FBSDKAppEventsWKWebViewMessagesParamsKey, + FBSDKAppEventsWKWebViewMessagesHandlerKey, + FBSDKAPPEventsWKWebViewMessagesProtocolKey + ]; + + [controller addUserScript:[[WKUserScriptClass alloc] initWithSource:js injectionTime:WKUserScriptInjectionTimeAtDocumentStart forMainFrameOnly:NO]]; + } + } + else { + [FBSDKAppEventsUtility logAndNotify:@"You must call augmentHybridWKWebView with WebKit linked to your project and a WKWebView instance"]; + } +} +#endif + ++ (void)setIsUnityInit:(BOOL)isUnityInit +{ + [FBSDKAppEvents singleton]->_isUnityInit = isUnityInit; +} + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Warc-performSelector-leaks" ++ (void)sendEventBindingsToUnity +{ + // Send event bindings to Unity only Unity is initialized + if ([FBSDKAppEvents singleton]->_isUnityInit + && [FBSDKAppEvents singleton]->_serverConfiguration + && [NSJSONSerialization isValidJSONObject:[FBSDKAppEvents singleton]->_serverConfiguration.eventBindings] + ) { + NSData *jsonData = [NSJSONSerialization dataWithJSONObject:[FBSDKAppEvents singleton]->_serverConfiguration.eventBindings ?: @"" + options:0 + error:nil]; + NSString *jsonString = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding]; + Class classFBUnityUtility = objc_lookUpClass(FBUnityUtilityClassName); + SEL updateBindingSelector = NSSelectorFromString(FBUnityUtilityUpdateBindingsSelector); + if ([classFBUnityUtility respondsToSelector:updateBindingSelector]) { + [classFBUnityUtility performSelector:updateBindingSelector withObject:jsonString]; + } + } +} +#pragma clang diagnostic pop + +#pragma mark - Internal Methods + ++ (void)logInternalEvent:(FBSDKAppEventName)eventName + isImplicitlyLogged:(BOOL)isImplicitlyLogged; +{ + [FBSDKAppEvents logInternalEvent:eventName + parameters:@{} + isImplicitlyLogged:isImplicitlyLogged]; +} + ++ (void)logInternalEvent:(FBSDKAppEventName)eventName + valueToSum:(double)valueToSum + isImplicitlyLogged:(BOOL)isImplicitlyLogged +{ + [FBSDKAppEvents logInternalEvent:eventName + valueToSum:valueToSum + parameters:@{} + isImplicitlyLogged:isImplicitlyLogged]; +} + ++ (void)logInternalEvent:(FBSDKAppEventName)eventName + parameters:(NSDictionary *)parameters + isImplicitlyLogged:(BOOL)isImplicitlyLogged +{ + [FBSDKAppEvents logInternalEvent:eventName + valueToSum:nil + parameters:parameters + isImplicitlyLogged:isImplicitlyLogged + accessToken:nil]; +} + ++ (void)logInternalEvent:(FBSDKAppEventName)eventName + parameters:(NSDictionary *)parameters + isImplicitlyLogged:(BOOL)isImplicitlyLogged + accessToken:(FBSDKAccessToken *)accessToken +{ + [FBSDKAppEvents logInternalEvent:eventName + valueToSum:nil + parameters:parameters + isImplicitlyLogged:isImplicitlyLogged + accessToken:accessToken]; +} + ++ (void)logInternalEvent:(FBSDKAppEventName)eventName + valueToSum:(double)valueToSum + parameters:(NSDictionary *)parameters + isImplicitlyLogged:(BOOL)isImplicitlyLogged +{ + [FBSDKAppEvents logInternalEvent:eventName + valueToSum:@(valueToSum) + parameters:parameters + isImplicitlyLogged:isImplicitlyLogged + accessToken:nil]; +} + ++ (void)logInternalEvent:(NSString *)eventName + valueToSum:(NSNumber *)valueToSum + parameters:(NSDictionary *)parameters + isImplicitlyLogged:(BOOL)isImplicitlyLogged + accessToken:(FBSDKAccessToken *)accessToken +{ + if ([FBSDKSettings isAutoLogAppEventsEnabled]) { + [[FBSDKAppEvents singleton] instanceLogEvent:eventName + valueToSum:valueToSum + parameters:parameters + isImplicitlyLogged:isImplicitlyLogged + accessToken:accessToken]; + } +} + ++ (void)logImplicitEvent:(NSString *)eventName + valueToSum:(NSNumber *)valueToSum + parameters:(NSDictionary *)parameters + accessToken:(FBSDKAccessToken *)accessToken +{ + [[FBSDKAppEvents singleton] instanceLogEvent:eventName + valueToSum:valueToSum + parameters:parameters + isImplicitlyLogged:YES + accessToken:accessToken]; +} + ++ (FBSDKAppEvents *)singleton +{ + static dispatch_once_t pred; + static FBSDKAppEvents *shared = nil; + + dispatch_once(&pred, ^{ + shared = [[self alloc] init]; + }); + return shared; +} + +- (void)flushForReason:(FBSDKAppEventsFlushReason)flushReason +{ + // Always flush asynchronously, even on main thread, for two reasons: + // - most consistent code path for all threads. + // - allow locks being held by caller to be released prior to actual flushing work being done. + @synchronized (self) { + if (!_appEventsState) { + return; + } + FBSDKAppEventsState *copy = [_appEventsState copy]; + _appEventsState = [[FBSDKAppEventsState alloc] initWithToken:copy.tokenString + appID:copy.appID]; + dispatch_async(dispatch_get_main_queue(), ^{ + [self flushOnMainQueue:copy forReason:flushReason]; + }); + } +} + +#pragma mark - Private Methods +- (NSString *)appID +{ + return [FBSDKAppEvents loggingOverrideAppID] ?: [FBSDKSettings appID]; +} + +- (void)publishInstall +{ + NSString *appID = [self appID]; + if (appID.length == 0) { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors logEntry:@"Missing [FBSDKAppEvents appID] for [FBSDKAppEvents publishInstall:]"]; + return; + } + NSString *lastAttributionPingString = [NSString stringWithFormat:@"com.facebook.sdk:lastAttributionPing%@", appID]; + NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; + if ([defaults objectForKey:lastAttributionPingString]) { + return; + } + [self fetchServerConfiguration:^{ + NSDictionary *params = [FBSDKAppEventsUtility activityParametersDictionaryForEvent:@"MOBILE_APP_INSTALL" + implicitEventsOnly:NO + shouldAccessAdvertisingID:self->_serverConfiguration.isAdvertisingIDEnabled]; + NSString *path = [NSString stringWithFormat:@"%@/activities", appID]; + FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc] initWithGraphPath:path + parameters:params + tokenString:nil + HTTPMethod:FBSDKHTTPMethodPOST + flags:FBSDKGraphRequestFlagDoNotInvalidateTokenOnError | FBSDKGraphRequestFlagDisableErrorRecovery]; + [request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) { + if (!error) { + [defaults setObject:[NSDate date] forKey:lastAttributionPingString]; + NSString *lastInstallResponseKey = [NSString stringWithFormat:@"com.facebook.sdk:lastInstallResponse%@", appID]; + [defaults setObject:result forKey:lastInstallResponseKey]; + [defaults synchronize]; + } + }]; + }]; +} + +#if !TARGET_OS_TV +- (void)enableCodelessEvents { + if (_serverConfiguration.isCodelessEventsEnabled) { + [FBSDKCodelessIndexer enable]; + + if (!_eventBindingManager) { + _eventBindingManager = [[FBSDKEventBindingManager alloc] init]; + } + + if ([FBSDKInternalUtility isUnity]) { + [FBSDKAppEvents sendEventBindingsToUnity]; + } else { + [_eventBindingManager updateBindings:[FBSDKEventBindingManager + parseArray:_serverConfiguration.eventBindings]]; + } + } +} +#endif + +// app events can use a server configuration up to 24 hours old to minimize network traffic. +- (void)fetchServerConfiguration:(FBSDKCodeBlock)callback +{ + [FBSDKServerConfigurationManager loadServerConfigurationWithCompletionBlock:^(FBSDKServerConfiguration *serverConfiguration, NSError *error) { + self->_serverConfiguration = serverConfiguration; + + if (self->_serverConfiguration.implicitPurchaseLoggingEnabled && [FBSDKSettings isAutoLogAppEventsEnabled]) { + [FBSDKPaymentObserver startObservingTransactions]; + } else { + [FBSDKPaymentObserver stopObservingTransactions]; + } +#if !TARGET_OS_TV + [FBSDKFeatureManager checkFeature:FBSDKFeatureCodelessEvents completionBlock:^(BOOL enabled) { + if (enabled) { + [self enableCodelessEvents]; + } + }]; + [FBSDKFeatureManager checkFeature:FBSDKFeatureAAM completionBlock:^(BOOL enabled) { + if (enabled) { + // Enable AAM + [FBSDKMetadataIndexer enable]; + } + }]; +#endif + if (callback) { + callback(); + } + }]; +} + +- (void)instanceLogEvent:(FBSDKAppEventName)eventName + valueToSum:(NSNumber *)valueToSum + parameters:(NSDictionary *)parameters + isImplicitlyLogged:(BOOL)isImplicitlyLogged + accessToken:(FBSDKAccessToken *)accessToken +{ + // Kill events if kill-switch is enabled + if ([FBSDKGateKeeperManager boolForKey:FBSDKGateKeeperAppEventsKillSwitch + defaultValue:NO]) { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorAppEvents + formatString:@"FBSDKAppEvents: KillSwitch is enabled and fail to log app event: %@", + eventName]; + return; + } + + if (isImplicitlyLogged && _serverConfiguration && !_serverConfiguration.isImplicitLoggingSupported) { + return; + } + + if (!isImplicitlyLogged && !_explicitEventsLoggedYet) { + _explicitEventsLoggedYet = YES; + } + __block BOOL failed = ![FBSDKAppEventsUtility validateIdentifier:eventName]; + + // Make sure parameter dictionary is well formed. Log and exit if not. + [parameters enumerateKeysAndObjectsUsingBlock:^(id key, id obj, BOOL *stop) { + if (![key isKindOfClass:[NSString class]]) { + [FBSDKAppEventsUtility logAndNotify:[NSString stringWithFormat:@"The keys in the parameters must be NSStrings, '%@' is not.", key]]; + failed = YES; + } + if (![FBSDKAppEventsUtility validateIdentifier:key]) { + failed = YES; + } + if (![obj isKindOfClass:[NSString class]] && ![obj isKindOfClass:[NSNumber class]]) { + [FBSDKAppEventsUtility logAndNotify:[NSString stringWithFormat:@"The values in the parameters dictionary must be NSStrings or NSNumbers, '%@' is not.", obj]]; + failed = YES; + } + } + ]; + + if (failed) { + return; + } + + parameters = [FBSDKRestrictiveDataFilterManager processParameters:parameters + eventName:eventName]; + + NSMutableDictionary *eventDictionary = [NSMutableDictionary dictionaryWithDictionary:parameters]; + eventDictionary[FBSDKAppEventParameterEventName] = eventName; + if (!eventDictionary[FBSDKAppEventParameterLogTime]) { + eventDictionary[FBSDKAppEventParameterLogTime] = @([FBSDKAppEventsUtility unixTimeNow]); + } + [FBSDKBasicUtility dictionary:eventDictionary setObject:valueToSum forKey:@"_valueToSum"]; + if (isImplicitlyLogged) { + eventDictionary[FBSDKAppEventParameterImplicitlyLogged] = @"1"; + } + + NSString *currentViewControllerName; + UIApplicationState applicationState; + if ([NSThread isMainThread]) { + // We only collect the view controller when on the main thread, as the behavior off + // the main thread is unpredictable. Besides, UI state for off-main-thread computations + // isn't really relevant anyhow. + UIViewController *vc = [UIApplication sharedApplication].keyWindow.rootViewController; + vc = vc.presentedViewController ?: vc; + if (vc) { + currentViewControllerName = [[vc class] description]; + } else { + currentViewControllerName = @"no_ui"; + } + applicationState = [UIApplication sharedApplication].applicationState; + } else { + currentViewControllerName = @"off_thread"; + applicationState = [FBSDKApplicationDelegate applicationState]; + } + eventDictionary[@"_ui"] = currentViewControllerName; + + if (applicationState == UIApplicationStateBackground) { + eventDictionary[FBSDKAppEventParameterInBackground] = @"1"; + } + + NSString *tokenString = [FBSDKAppEventsUtility tokenStringToUseFor:accessToken]; + NSString *appID = [self appID]; + + @synchronized (self) { + if (!_appEventsState) { + _appEventsState = [[FBSDKAppEventsState alloc] initWithToken:tokenString appID:appID]; + } else if (![_appEventsState isCompatibleWithTokenString:tokenString appID:appID]) { + if (self.flushBehavior == FBSDKAppEventsFlushBehaviorExplicitOnly) { + [FBSDKAppEventsStateManager persistAppEventsData:_appEventsState]; + } else { + [self flushForReason:FBSDKAppEventsFlushReasonSessionChange]; + } + _appEventsState = [[FBSDKAppEventsState alloc] initWithToken:tokenString appID:appID]; + } + + [_appEventsState addEvent:eventDictionary isImplicit:isImplicitlyLogged]; + if (!isImplicitlyLogged) { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorAppEvents + formatString:@"FBSDKAppEvents: Recording event @ %ld: %@", + [FBSDKAppEventsUtility unixTimeNow], + eventDictionary]; + } + + [self checkPersistedEvents]; + + if (_appEventsState.events.count > NUM_LOG_EVENTS_TO_TRY_TO_FLUSH_AFTER && + self.flushBehavior != FBSDKAppEventsFlushBehaviorExplicitOnly) { + [self flushForReason:FBSDKAppEventsFlushReasonEventThreshold]; + } + } +} + +// this fetches persisted event states. +// for those matching the currently tracked events, add it. +// otherwise, either flush (if not explicitonly behavior) or persist them back. +- (void)checkPersistedEvents +{ + NSArray *existingEventsStates = [FBSDKAppEventsStateManager retrievePersistedAppEventsStates]; + if (existingEventsStates.count == 0) { + return; + } + FBSDKAppEventsState *matchingEventsPreviouslySaved = nil; + // reduce lock time by creating a new FBSDKAppEventsState to collect matching persisted events. + @synchronized(self) { + if (_appEventsState) { + matchingEventsPreviouslySaved = [[FBSDKAppEventsState alloc] initWithToken:_appEventsState.tokenString + appID:_appEventsState.appID]; + } + } + for (FBSDKAppEventsState *saved in existingEventsStates) { + if ([saved isCompatibleWithAppEventsState:matchingEventsPreviouslySaved]) { + [matchingEventsPreviouslySaved addEventsFromAppEventState:saved]; + } else { + if (self.flushBehavior == FBSDKAppEventsFlushBehaviorExplicitOnly) { + [FBSDKAppEventsStateManager persistAppEventsData:saved]; + } else { + dispatch_async(dispatch_get_main_queue(), ^{ + [self flushOnMainQueue:saved forReason:FBSDKAppEventsFlushReasonPersistedEvents]; + }); + } + } + } + if (matchingEventsPreviouslySaved.events.count > 0) { + @synchronized(self) { + if ([_appEventsState isCompatibleWithAppEventsState:matchingEventsPreviouslySaved]) { + [_appEventsState addEventsFromAppEventState:matchingEventsPreviouslySaved]; + } + } + } +} + +- (void)flushOnMainQueue:(FBSDKAppEventsState *)appEventsState + forReason:(FBSDKAppEventsFlushReason)reason +{ + + if (appEventsState.events.count == 0) { + return; + } + + if (appEventsState.appID.length == 0) { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors logEntry:@"Missing [FBSDKAppEvents appEventsState.appID] for [FBSDKAppEvents flushOnMainQueue:]"]; + return; + } + + [FBSDKAppEventsUtility ensureOnMainThread:NSStringFromSelector(_cmd) className:NSStringFromClass([self class])]; + + [self fetchServerConfiguration:^(void) { + NSString *receipt_data = appEventsState.extractReceiptData; + NSString *encodedEvents = [appEventsState JSONStringForEvents:self->_serverConfiguration.implicitLoggingEnabled]; + if (!encodedEvents) { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorAppEvents + logEntry:@"FBSDKAppEvents: Flushing skipped - no events after removing implicitly logged ones.\n"]; + return; + } + NSMutableDictionary *postParameters = [FBSDKAppEventsUtility + activityParametersDictionaryForEvent:@"CUSTOM_APP_EVENTS" + implicitEventsOnly:appEventsState.areAllEventsImplicit + shouldAccessAdvertisingID:self->_serverConfiguration.advertisingIDEnabled]; + NSInteger length = receipt_data.length; + if (length > 0) { + postParameters[@"receipt_data"] = receipt_data; + } + + postParameters[@"custom_events"] = encodedEvents; + if (appEventsState.numSkipped > 0) { + postParameters[@"num_skipped_events"] = [NSString stringWithFormat:@"%lu", (unsigned long)appEventsState.numSkipped]; + } + if (self.pushNotificationsDeviceTokenString) { + postParameters[FBSDKActivitesParameterPushDeviceToken] = self.pushNotificationsDeviceTokenString; + } + + NSString *loggingEntry = nil; + if ([FBSDKSettings.loggingBehaviors containsObject:FBSDKLoggingBehaviorAppEvents]) { + NSData *prettyJSONData = [NSJSONSerialization dataWithJSONObject:appEventsState.events + options:NSJSONWritingPrettyPrinted + error:NULL]; + NSString *prettyPrintedJsonEvents = [[NSString alloc] initWithData:prettyJSONData + encoding:NSUTF8StringEncoding]; + // Remove this param -- just an encoding of the events which we pretty print later. + NSMutableDictionary *paramsForPrinting = [postParameters mutableCopy]; + [paramsForPrinting removeObjectForKey:@"custom_events_file"]; + + loggingEntry = [NSString stringWithFormat:@"FBSDKAppEvents: Flushed @ %ld, %lu events due to '%@' - %@\nEvents: %@", + [FBSDKAppEventsUtility unixTimeNow], + (unsigned long)appEventsState.events.count, + [FBSDKAppEventsUtility flushReasonToString:reason], + paramsForPrinting, + prettyPrintedJsonEvents]; + } + + FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc] initWithGraphPath:[NSString stringWithFormat:@"%@/activities", appEventsState.appID] + parameters:postParameters + tokenString:appEventsState.tokenString + HTTPMethod:FBSDKHTTPMethodPOST + flags:FBSDKGraphRequestFlagDoNotInvalidateTokenOnError | FBSDKGraphRequestFlagDisableErrorRecovery]; + + [request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) { + [self handleActivitiesPostCompletion:error + loggingEntry:loggingEntry + appEventsState:(FBSDKAppEventsState *)appEventsState]; + }]; + + }]; +} + +- (void)handleActivitiesPostCompletion:(NSError *)error + loggingEntry:(NSString *)loggingEntry + appEventsState:(FBSDKAppEventsState *)appEventsState +{ + typedef NS_ENUM(NSUInteger, FBSDKAppEventsFlushResult) { + FlushResultSuccess, + FlushResultServerError, + FlushResultNoConnectivity + }; + + [FBSDKAppEventsUtility ensureOnMainThread:NSStringFromSelector(_cmd) className:NSStringFromClass([self class])]; + + FBSDKAppEventsFlushResult flushResult = FlushResultSuccess; + if (error) { + NSInteger errorCode = [error.userInfo[FBSDKGraphRequestErrorHTTPStatusCodeKey] integerValue]; + + // We interpret a 400 coming back from FBRequestConnection as a server error due to improper data being + // sent down. Otherwise we assume no connectivity, or another condition where we could treat it as no connectivity. + // Adding 404 as having wrong/missing appID results in 404 and that is not a connectivity issue + flushResult = (errorCode == 400 || errorCode == 404) ? FlushResultServerError : FlushResultNoConnectivity; + } + + if (flushResult == FlushResultServerError) { + // Only log events that developer can do something with (i.e., if parameters are incorrect). + // as opposed to cases where the token is bad. + if ([error.userInfo[FBSDKGraphRequestErrorKey] unsignedIntegerValue] == FBSDKGraphRequestErrorOther) { + NSString *message = [NSString stringWithFormat:@"Failed to send AppEvents: %@", error]; + [FBSDKAppEventsUtility logAndNotify:message allowLogAsDeveloperError:!appEventsState.areAllEventsImplicit]; + } + } else if (flushResult == FlushResultNoConnectivity) { + @synchronized(self) { + if ([appEventsState isCompatibleWithAppEventsState:_appEventsState]) { + [_appEventsState addEventsFromAppEventState:appEventsState]; + } else { + // flush failed due to connectivity. Persist to be tried again later. + [FBSDKAppEventsStateManager persistAppEventsData:appEventsState]; + } + } + } + + NSString *resultString = @""; + switch (flushResult) { + case FlushResultSuccess: + resultString = @"Success"; + break; + + case FlushResultNoConnectivity: + resultString = @"No Connectivity"; + break; + + case FlushResultServerError: + resultString = [NSString stringWithFormat:@"Server Error - %@", error.description]; + break; + } + + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorAppEvents + formatString:@"%@\nFlush Result : %@", loggingEntry, resultString]; +} + +- (void)flushTimerFired:(id)arg +{ + [FBSDKAppEventsUtility ensureOnMainThread:NSStringFromSelector(_cmd) className:NSStringFromClass([self class])]; + if (self.flushBehavior != FBSDKAppEventsFlushBehaviorExplicitOnly && !self.disableTimer) { + [self flushForReason:FBSDKAppEventsFlushReasonTimer]; + } +} + +- (void)applicationDidBecomeActive +{ + [FBSDKAppEventsUtility ensureOnMainThread:NSStringFromSelector(_cmd) className:NSStringFromClass([self class])]; + + [self checkPersistedEvents]; + + // Restore time spent data, indicating that we're not being called from "activateApp". + [FBSDKTimeSpentData restore:NO]; +} + +- (void)applicationMovingFromActiveStateOrTerminating +{ + // When moving from active state, we don't have time to wait for the result of a flush, so + // just persist events to storage, and we'll process them at the next activation. + FBSDKAppEventsState *copy = nil; + @synchronized (self) { + copy = [_appEventsState copy]; + _appEventsState = nil; + } + if (copy) { + [FBSDKAppEventsStateManager persistAppEventsData:copy]; + } + [FBSDKTimeSpentData suspend]; +} + +#pragma mark - Custom Audience + ++ (FBSDKGraphRequest *)requestForCustomAudienceThirdPartyIDWithAccessToken:(FBSDKAccessToken *)accessToken +{ + accessToken = accessToken ?: [FBSDKAccessToken currentAccessToken]; + // Rules for how we use the attribution ID / advertiser ID for an 'custom_audience_third_party_id' Graph API request + // 1) if the OS tells us that the user has Limited Ad Tracking, then just don't send, and return a nil in the token. + // 2) if the app has set 'limitEventAndDataUsage', this effectively implies that app-initiated ad targeting shouldn't happen, + // so use that data here to return nil as well. + // 3) if we have a user session token, then no need to send attribution ID / advertiser ID back as the udid parameter + // 4) otherwise, send back the udid parameter. + + if ([FBSDKAppEventsUtility advertisingTrackingStatus] == FBSDKAdvertisingTrackingDisallowed || FBSDKSettings.shouldLimitEventAndDataUsage) { + return nil; + } + + NSString *tokenString = [FBSDKAppEventsUtility tokenStringToUseFor:accessToken]; + NSString *udid = nil; + if (!accessToken) { + // We don't have a logged in user, so we need some form of udid representation. Prefer advertiser ID if + // available, and back off to attribution ID if not. Note that this function only makes sense to be + // called in the context of advertising. + udid = [FBSDKAppEventsUtility advertiserID]; + if (!udid) { + udid = [FBSDKAppEventsUtility attributionID]; + } + + if (!udid) { + // No udid, and no user token. No point in making the request. + return nil; + } + } + + NSDictionary *parameters = nil; + if (udid) { + parameters = @{ @"udid" : udid }; + } + + NSString *graphPath = [NSString stringWithFormat:@"%@/custom_audience_third_party_id", [[self singleton] appID]]; + FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc] initWithGraphPath:graphPath + parameters:parameters + tokenString:tokenString + HTTPMethod:nil + flags:FBSDKGraphRequestFlagDoNotInvalidateTokenOnError | FBSDKGraphRequestFlagDisableErrorRecovery]; + + return request; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/AAM/FBSDKMetadataIndexer.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/AAM/FBSDKMetadataIndexer.h new file mode 100644 index 0000000000000..7377196566a25 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/AAM/FBSDKMetadataIndexer.h @@ -0,0 +1,29 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface FBSDKMetadataIndexer : NSObject + ++ (void)enable; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/AAM/FBSDKMetadataIndexer.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/AAM/FBSDKMetadataIndexer.m new file mode 100644 index 0000000000000..c6c80d2b85585 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/AAM/FBSDKMetadataIndexer.m @@ -0,0 +1,323 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKMetadataIndexer.h" + +#import +#import +#import + +#import + +#import + +static const int FBSDKMetadataIndexerMaxTextLength = 100; +static const int FBSDKMetadataIndexerMaxIndicatorLength = 100; +static const int FBSDKMetadataIndexerMaxValue = 5; + +static NSString * const FIELD_K = @"k"; +static NSString * const FIELD_V = @"v"; +static NSString * const FIELD_K_DELIMITER = @","; + +FBSDKAppEventUserDataType FBSDKAppEventRule1 = @"r1"; +FBSDKAppEventUserDataType FBSDKAppEventRule2 = @"r2"; + +static NSArray *FBSDKMetadataIndexerKeys; +static NSMutableDictionary *> *_rules; +static NSMutableDictionary *> *_store; +static dispatch_queue_t serialQueue; + +@implementation FBSDKMetadataIndexer + ++ (void)initialize +{ + FBSDKMetadataIndexerKeys = @[FBSDKAppEventRule1, FBSDKAppEventRule2]; + serialQueue = dispatch_queue_create("com.facebook.appevents.MetadataIndexer", DISPATCH_QUEUE_SERIAL); +} + ++ (void)enable +{ + if (FBSDKAdvertisingTrackingAllowed != [FBSDKAppEventsUtility advertisingTrackingStatus]) { + return; + } + [FBSDKServerConfigurationManager loadServerConfigurationWithCompletionBlock:^(FBSDKServerConfiguration *serverConfiguration, NSError *error) { + if (error) { + return; + } + [FBSDKMetadataIndexer setupWithRules:serverConfiguration.AAMRules]; + }]; +} + ++ (void)setupWithRules:(NSDictionary * _Nullable)rules +{ + if (0 == rules.count) { + return; + } + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + [FBSDKMetadataIndexer constructRules:rules]; + [FBSDKMetadataIndexer initStore]; + + BOOL isEnabled = NO; + for (NSString *key in FBSDKMetadataIndexerKeys) { + BOOL isRuleEnabled = (nil != [_rules objectForKey:key]); + if (isRuleEnabled) { + isEnabled = YES; + } + if (!isRuleEnabled) { + [_store removeObjectForKey:key]; + [FBSDKUserDataStore setHashData:nil forType:key]; + } + } + + if (isEnabled) { + [FBSDKMetadataIndexer setupMetadataIndexing]; + } + }); +} + ++ (void)initStore +{ + _store = [[NSMutableDictionary alloc] init]; + for (NSString *key in FBSDKMetadataIndexerKeys) { + NSString *data = [FBSDKUserDataStore getHashedDataForType:key]; + if (data.length > 0) { + _store[key] = [NSMutableArray arrayWithArray:[data componentsSeparatedByString:FIELD_K_DELIMITER]]; + } + } + + for (NSString *key in FBSDKMetadataIndexerKeys) { + if (!_store[key]) { + _store[key] = [[NSMutableArray alloc] init]; + } + } +} + ++ (void)constructRules:(NSDictionary * _Nullable)rules +{ + if (!_rules) { + _rules = [[NSMutableDictionary alloc] init]; + } + + for (NSString *key in rules) { + NSDictionary *value = [FBSDKTypeUtility dictionaryValue:rules[key]]; + if (value && value[FIELD_K].length > 0 && value[FIELD_V].length > 0) { + _rules[key] = value; + } + } +} + ++ (void)setupMetadataIndexing +{ + void (^block)(UIView *) = ^(UIView *view) { + // Indexing when the view is removed from window and conforms to UITextInput, and skip UIFieldEditor, which is an internval view of UITextField + if (![view window] && ![NSStringFromClass([view class]) isEqualToString:@"UIFieldEditor"] && [view conformsToProtocol:@protocol(UITextInput)]) { + NSString *text = [FBSDKViewHierarchy getText:view]; + NSString *placeholder = [FBSDKViewHierarchy getHint:view]; + BOOL secureTextEntry = [self checkSecureTextEntry:view]; + NSArray *labels = [self getLabelsOfView:view]; + UIKeyboardType keyboardType = [self getKeyboardType:view]; + dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^(void) { + [self getMetadataWithText:[self normalizedValue:text] + placeholder:[self normalizeField:placeholder] + labels:labels + secureTextEntry:secureTextEntry + inputType:keyboardType]; + }); + } + }; + + [FBSDKSwizzler swizzleSelector:@selector(didMoveToWindow) onClass:[UIView class] withBlock:block named:@"metadataIndexingUIView"]; + + // iOS 12: UITextField implements didMoveToWindow without calling parent implementation + if (@available(iOS 12, *)) { + [FBSDKSwizzler swizzleSelector:@selector(didMoveToWindow) onClass:[UITextField class] withBlock:block named:@"metadataIndexingUITextField"]; + } else { + [FBSDKSwizzler swizzleSelector:@selector(didMoveToWindow) onClass:[UIControl class] withBlock:block named:@"metadataIndexingUIControl"]; + } +} + ++ (NSArray *)getSiblingViewsOfView:(UIView *)view +{ + NSObject *parent = [FBSDKViewHierarchy getParent:view]; + if (parent) { + NSArray *views = [FBSDKViewHierarchy getChildren:parent]; + if (views) { + NSMutableArray *siblings = [NSMutableArray arrayWithArray:views]; + [siblings removeObject:view]; + return [siblings copy]; + } + } + return nil; +} + ++ (NSArray *)getLabelsOfView:(UIView *)view +{ + NSMutableArray *labels = [[NSMutableArray alloc] init]; + + NSString *placeholder = [self normalizeField:[FBSDKViewHierarchy getHint:view]]; + if (placeholder) { + [labels addObject:placeholder]; + } + + NSArray *siblingViews = [self getSiblingViewsOfView:view]; + for (id sibling in siblingViews) { + if ([sibling isKindOfClass:[UILabel class]]) { + NSString *text = [self normalizeField:[FBSDKViewHierarchy getText:sibling]]; + if (text) { + [labels addObject:text]; + } + } + } + return [labels copy]; +} + ++ (BOOL)checkSecureTextEntry:(UIView *)view +{ + if ([view isKindOfClass:[UITextField class]]) { + return ((UITextField *)view).secureTextEntry; + } + if ([view isKindOfClass:[UITextView class]]) { + return ((UITextView *)view).secureTextEntry; + } + + return NO; +} + ++ (UIKeyboardType)getKeyboardType:(UIView *)view +{ + if ([view isKindOfClass:[UITextField class]]) { + return ((UITextField *)view).keyboardType; + } + if ([view isKindOfClass:[UITextView class]]) { + return ((UITextView *)view).keyboardType; + } + + return UIKeyboardTypeDefault; +} + ++ (void)getMetadataWithText:(NSString *)text + placeholder:(NSString *)placeholder + labels:(NSArray *)labels + secureTextEntry:(BOOL)secureTextEntry + inputType:(UIKeyboardType)inputType +{ + if (secureTextEntry || + [placeholder containsString:@"password"] || + text.length == 0 || + text.length > FBSDKMetadataIndexerMaxTextLength || + placeholder.length >= FBSDKMetadataIndexerMaxIndicatorLength) { + return; + } + + for (NSString *key in _rules) { + NSDictionary *rule = _rules[key]; + BOOL isRuleKMatched = [self checkMetadataHint:placeholder matchRuleK:rule[FIELD_K]] + || [self checkMetadataLabels:labels matchRuleK:rule[FIELD_K]]; + BOOL isRuleVMatched = [self checkMetadataText:text matchRuleV:rule[FIELD_V]]; + if (isRuleKMatched && isRuleVMatched) { + [FBSDKMetadataIndexer checkAndAppendData:text forKey:key]; + } + } +} + +#pragma mark - Helper Methods + ++ (void)checkAndAppendData:(NSString *)data + forKey:(NSString *)key +{ + NSString *hashData = [FBSDKUtility SHA256Hash:data]; + dispatch_async(serialQueue, ^{ + if (hashData.length == 0 || [_store[key] containsObject:hashData]) { + return; + } + + while (_store[key].count >= FBSDKMetadataIndexerMaxValue) { + [_store[key] removeObjectAtIndex:0]; + } + [_store[key] addObject:hashData]; + [FBSDKUserDataStore setHashData:[_store[key] componentsJoinedByString:@","] + forType:key]; + }); +} + ++ (BOOL)checkMetadataLabels:(NSArray *)labels + matchRuleK:(NSString *)ruleK +{ + for (NSString *label in labels) { + if ([self checkMetadataHint:label matchRuleK:ruleK]) { + return YES; + } + } + return NO; +} + ++ (BOOL)checkMetadataHint:(NSString *)hint + matchRuleK:(NSString *)ruleK +{ + if (hint.length > 0 && ruleK) { + NSArray *items = [ruleK componentsSeparatedByString:@","]; + for (NSString *item in items) { + if ([hint containsString:item]) { + return YES; + } + } + } + return NO; +} + ++ (BOOL)checkMetadataText:(NSString *)text + matchRuleV:(NSString *)ruleV +{ + if (text.length > 0 && ruleV) { + NSRegularExpression *regex = [[NSRegularExpression alloc] initWithPattern:ruleV + options:NSRegularExpressionCaseInsensitive + error:nil]; + NSUInteger matches = [regex numberOfMatchesInString:text options:0 range:NSMakeRange(0, text.length)]; + + NSString *prunedText = [[text componentsSeparatedByCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@"+- ()."]] componentsJoinedByString:@""]; + NSUInteger prunedMatches = [regex numberOfMatchesInString:prunedText options:0 range:NSMakeRange(0, prunedText.length)]; + + return matches > 0 || prunedMatches > 0; + } + return NO; +} + ++ (NSString *)normalizeField:(NSString *)field +{ + if (!field) { + return nil; + } + NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:@"[_-]|\\s" + options:NSRegularExpressionCaseInsensitive + error:nil]; + return [regex stringByReplacingMatchesInString:field + options:0 + range:NSMakeRange(0, field.length) + withTemplate:@""].lowercaseString; +} + ++ (NSString *)normalizedValue:(NSString *)value +{ + if (!value) { + return nil; + } + return [value stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]].lowercaseString; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKCodelessIndexer.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKCodelessIndexer.h new file mode 100644 index 0000000000000..d11a6bb21040b --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKCodelessIndexer.h @@ -0,0 +1,34 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_ASSUME_NONNULL_BEGIN + +typedef void(^FBSDKCodelessSettingLoadBlock)(BOOL isCodelessSetupEnabled, NSError *_Nullable error); + +NS_SWIFT_NAME(CodelessIndexer) +@interface FBSDKCodelessIndexer : NSObject + +@property (class, nonatomic, copy, readonly) NSString *extInfo; + ++ (void)enable; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKCodelessIndexer.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKCodelessIndexer.m new file mode 100644 index 0000000000000..d89143299f08f --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKCodelessIndexer.m @@ -0,0 +1,408 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKCodelessIndexer.h" + +#import +#import +#import + +#import + +#import +#import +#import + +@implementation FBSDKCodelessIndexer + +static BOOL _isCodelessIndexing; +static BOOL _isCheckingSession; +static BOOL _isCodelessIndexingEnabled; +static BOOL _isGestureSet; + +static NSMutableDictionary *_codelessSetting; +static const NSTimeInterval kTimeout = 4.0; + +static NSString *_deviceSessionID; +static NSTimer *_appIndexingTimer; +static NSString *_lastTreeHash; + ++ (void)enable +{ + if (_isGestureSet) { + return; + } +#if TARGET_OS_SIMULATOR + [self setupGesture]; +#else + [self loadCodelessSettingWithCompletionBlock:^(BOOL isCodelessSetupEnabled, NSError *error) { + if (isCodelessSetupEnabled) { + [self setupGesture]; + } + }]; +#endif +} + +// DO NOT call this function, it is only called once in the load function ++ (void)loadCodelessSettingWithCompletionBlock:(FBSDKCodelessSettingLoadBlock)completionBlock +{ + NSString *appID = [FBSDKSettings appID]; + if (appID == nil) { + return; + } + + [FBSDKServerConfigurationManager loadServerConfigurationWithCompletionBlock:^(FBSDKServerConfiguration *serverConfiguration, NSError *serverConfigurationLoadingError) { + if (!serverConfiguration.codelessEventsEnabled) { + return; + } + + // load the defaults + NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; + NSString *defaultKey = [NSString stringWithFormat:CODELESS_SETTING_KEY, appID]; + NSData *data = [defaults objectForKey:defaultKey]; + if ([data isKindOfClass:[NSData class]]) { + NSMutableDictionary *codelessSetting = [NSKeyedUnarchiver unarchiveObjectWithData:data]; + if (codelessSetting) { + _codelessSetting = codelessSetting; + } + } + if (!_codelessSetting) { + _codelessSetting = [[NSMutableDictionary alloc] init]; + } + + if (![self _codelessSetupTimestampIsValid:[_codelessSetting objectForKey:CODELESS_SETTING_TIMESTAMP_KEY]]) { + FBSDKGraphRequest *request = [self requestToLoadCodelessSetup:appID]; + if (request == nil) { + return; + } + FBSDKGraphRequestConnection *requestConnection = [[FBSDKGraphRequestConnection alloc] init]; + requestConnection.timeout = kTimeout; + [requestConnection addRequest:request completionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *codelessLoadingError) { + if (codelessLoadingError) { + return; + } + + NSDictionary *resultDictionary = [FBSDKTypeUtility dictionaryValue:result]; + if (resultDictionary) { + BOOL isCodelessSetupEnabled = [FBSDKTypeUtility boolValue:resultDictionary[CODELESS_SETUP_ENABLED_FIELD]]; + [_codelessSetting setObject:@(isCodelessSetupEnabled) forKey:CODELESS_SETUP_ENABLED_KEY]; + [_codelessSetting setObject:[NSDate date] forKey:CODELESS_SETTING_TIMESTAMP_KEY]; + // update the cached copy in user defaults + [defaults setObject:[NSKeyedArchiver archivedDataWithRootObject:_codelessSetting] forKey:defaultKey]; + completionBlock(isCodelessSetupEnabled, codelessLoadingError); + } + }]; + [requestConnection start]; + } else { + completionBlock([FBSDKTypeUtility boolValue:[_codelessSetting objectForKey:CODELESS_SETUP_ENABLED_KEY]], nil); + } + }]; +} + ++ (FBSDKGraphRequest *)requestToLoadCodelessSetup:(NSString *)appID +{ + NSString *advertiserID = [FBSDKAppEventsUtility advertiserID]; + if (!advertiserID) { + return nil; + } + + NSDictionary *parameters = @{ + @"fields": CODELESS_SETUP_ENABLED_FIELD, + @"advertiser_id": advertiserID + }; + + FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc] initWithGraphPath:appID + parameters:parameters + tokenString:nil + HTTPMethod:nil + flags:FBSDKGraphRequestFlagSkipClientToken | FBSDKGraphRequestFlagDisableErrorRecovery]; + return request; +} + ++ (BOOL)_codelessSetupTimestampIsValid:(NSDate *)timestamp +{ + return (timestamp != nil && [[NSDate date] timeIntervalSinceDate:timestamp] < CODELESS_SETTING_CACHE_TIMEOUT); +} + ++ (void)setupGesture +{ + _isGestureSet = YES; + [UIApplication sharedApplication].applicationSupportsShakeToEdit = YES; + Class class = [UIApplication class]; + + [FBSDKSwizzler swizzleSelector:@selector(motionBegan:withEvent:) onClass:class withBlock:^{ + if ([FBSDKServerConfigurationManager cachedServerConfiguration].isCodelessEventsEnabled) { + [self checkCodelessIndexingSession]; + } + } named:@"motionBegan"]; +} + ++ (void)checkCodelessIndexingSession +{ + if (_isCheckingSession) return; + + _isCheckingSession = YES; + NSDictionary *parameters = @{ + CODELESS_INDEXING_SESSION_ID_KEY: [self currentSessionDeviceID], + CODELESS_INDEXING_EXT_INFO_KEY: [self extInfo] + }; + FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc] + initWithGraphPath:[NSString stringWithFormat:@"%@/%@", + [FBSDKSettings appID], CODELESS_INDEXING_SESSION_ENDPOINT] + parameters:parameters + HTTPMethod:FBSDKHTTPMethodPOST]; + [request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) { + _isCheckingSession = NO; + if ([result isKindOfClass:[NSDictionary class]]) { + _isCodelessIndexingEnabled = [((NSDictionary *)result)[CODELESS_INDEXING_STATUS_KEY] boolValue]; + if (_isCodelessIndexingEnabled) { + _lastTreeHash = nil; + if (!_appIndexingTimer) { + _appIndexingTimer = [NSTimer timerWithTimeInterval:CODELESS_INDEXING_UPLOAD_INTERVAL_IN_SECONDS + target:self + selector:@selector(startIndexing) + userInfo:nil + repeats:YES]; + + [[NSRunLoop mainRunLoop] addTimer:_appIndexingTimer forMode:NSDefaultRunLoopMode]; + } + } else { + _deviceSessionID = nil; + } + } + }]; +} + ++ (NSString *)currentSessionDeviceID +{ + if (!_deviceSessionID) { + _deviceSessionID = [NSUUID UUID].UUIDString; + } + return _deviceSessionID; +} + ++ (NSString *)extInfo +{ + struct utsname systemInfo; + uname(&systemInfo); + NSString *machine = @(systemInfo.machine); + NSString *advertiserID = [FBSDKAppEventsUtility advertiserID] ?: @""; + machine = machine ?: @""; + NSString *debugStatus = [FBSDKAppEventsUtility isDebugBuild] ? @"1" : @"0"; +#if TARGET_IPHONE_SIMULATOR + NSString *isSimulator = @"1"; +#else + NSString *isSimulator = @"0"; +#endif + NSLocale *locale = [NSLocale currentLocale]; + NSString *languageCode = [locale objectForKey:NSLocaleLanguageCode]; + NSString *countryCode = [locale objectForKey:NSLocaleCountryCode]; + NSString *localeString = locale.localeIdentifier; + if (languageCode && countryCode) { + localeString = [NSString stringWithFormat:@"%@_%@", languageCode, countryCode]; + } + + NSString *extinfo = [FBSDKBasicUtility JSONStringForObject:@[machine, + advertiserID, + debugStatus, + isSimulator, + localeString] + error:NULL + invalidObjectHandler:NULL]; + + return extinfo ?: @""; +} + ++ (void)startIndexing { + if (!_isCodelessIndexingEnabled) { + return; + } + + if (UIApplicationStateActive != [UIApplication sharedApplication].applicationState) { + return; + } + + // If userAgentSuffix begins with Unity, trigger unity code to upload view hierarchy + NSString *userAgentSuffix = [FBSDKSettings userAgentSuffix]; + if (userAgentSuffix != nil && [userAgentSuffix hasPrefix:@"Unity"]) { + Class FBUnityUtility = objc_lookUpClass("FBUnityUtility"); + SEL selector = NSSelectorFromString(@"triggerUploadViewHierarchy"); + if (FBUnityUtility && selector && [FBUnityUtility respondsToSelector:selector]) { +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Warc-performSelector-leaks" + [FBUnityUtility performSelector:selector]; +#pragma clang diagnostic pop + } + } else { + [self uploadIndexing]; + } +} + ++ (void)uploadIndexing +{ + if (_isCodelessIndexing) { + return; + } + + NSString *tree = [FBSDKCodelessIndexer currentViewTree]; + + [self uploadIndexing:tree]; +} + ++ (void)uploadIndexing:(NSString *)tree +{ + if (_isCodelessIndexing) { + return; + } + + if (!tree) { + return; + } + + NSString *currentTreeHash = [FBSDKUtility SHA256Hash:tree]; + if (_lastTreeHash && [_lastTreeHash isEqualToString:currentTreeHash]) { + return; + } + + _lastTreeHash = currentTreeHash; + + NSBundle *mainBundle = [NSBundle mainBundle]; + NSString *version = [mainBundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"]; + + FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc] + initWithGraphPath:[NSString stringWithFormat:@"%@/%@", + [FBSDKSettings appID], CODELESS_INDEXING_ENDPOINT] + parameters:@{ + CODELESS_INDEXING_TREE_KEY: tree, + CODELESS_INDEXING_APP_VERSION_KEY: version ?: @"", + CODELESS_INDEXING_PLATFORM_KEY: @"iOS", + CODELESS_INDEXING_SESSION_ID_KEY: [self currentSessionDeviceID] + } + HTTPMethod:FBSDKHTTPMethodPOST]; + _isCodelessIndexing = YES; + [request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) { + _isCodelessIndexing = NO; + if ([result isKindOfClass:[NSDictionary class]]) { + _isCodelessIndexingEnabled = [result[CODELESS_INDEXING_STATUS_KEY] boolValue]; + if (!_isCodelessIndexingEnabled) { + _deviceSessionID = nil; + } + } + }]; +} + ++ (NSString *)currentViewTree +{ + NSMutableArray *trees = [NSMutableArray array]; + + NSArray *windows = [UIApplication sharedApplication].windows; + for (UIWindow *window in windows) { + NSDictionary *tree = [FBSDKCodelessIndexer recursiveCaptureTree:window]; + if (tree) { + if (window.isKeyWindow) { + [trees insertObject:tree atIndex:0]; + } else { + [trees addObject:tree]; + } + } + } + + if (0 == trees.count) { + return nil; + } + + NSArray *viewTrees = [trees reverseObjectEnumerator].allObjects; + + NSData *data = UIImageJPEGRepresentation([FBSDKCodelessIndexer screenshot], 0.5); + NSString *screenshot = [data base64EncodedStringWithOptions:0]; + + NSMutableDictionary *treeInfo = [NSMutableDictionary dictionary]; + + treeInfo[@"view"] = viewTrees; + treeInfo[@"screenshot"] = screenshot ?: @""; + + NSString *tree = nil; + data = [NSJSONSerialization dataWithJSONObject:treeInfo options:0 error:nil]; + if (data) { + tree = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]; + } + + return tree; +} + ++ (NSDictionary *)recursiveCaptureTree:(NSObject *)obj +{ + if (!obj) { + return nil; + } + + NSMutableDictionary *result = [FBSDKViewHierarchy getDetailAttributesOf:obj]; + + NSArray *children = [FBSDKViewHierarchy getChildren:obj]; + NSMutableArray *childrenTrees = [NSMutableArray array]; + for (NSObject *child in children) { + NSDictionary *objTree = [self recursiveCaptureTree:child]; + [childrenTrees addObject:objTree]; + } + + if (childrenTrees.count > 0) { + [result setValue:[childrenTrees copy] forKey:CODELESS_VIEW_TREE_CHILDREN_KEY]; + } + + return [result copy]; +} + ++ (UIImage *)screenshot { + UIWindow *window = [UIApplication sharedApplication].delegate.window; + + UIGraphicsBeginImageContext(window.bounds.size); + [window drawViewHierarchyInRect:window.bounds afterScreenUpdates:YES]; + UIImage *image = UIGraphicsGetImageFromCurrentImageContext(); + UIGraphicsEndImageContext(); + + return image; +} + ++ (NSDictionary *)dimensionOf:(NSObject *)obj +{ + UIView *view = nil; + + if ([obj isKindOfClass:[UIView class]]) { + view = (UIView *)obj; + } else if ([obj isKindOfClass:[UIViewController class]]) { + view = ((UIViewController *)obj).view; + } + + CGRect frame = view.frame; + CGPoint offset = CGPointZero; + + if ([view isKindOfClass:[UIScrollView class]]) + offset = ((UIScrollView *)view).contentOffset; + + return @{ + CODELESS_VIEW_TREE_TOP_KEY: @((int)frame.origin.y), + CODELESS_VIEW_TREE_LEFT_KEY: @((int)frame.origin.x), + CODELESS_VIEW_TREE_WIDTH_KEY: @((int)frame.size.width), + CODELESS_VIEW_TREE_HEIGHT_KEY: @((int)frame.size.height), + CODELESS_VIEW_TREE_OFFSET_X_KEY: @((int)offset.x), + CODELESS_VIEW_TREE_OFFSET_Y_KEY: @((int)offset.y), + CODELESS_VIEW_TREE_VISIBILITY_KEY: view.isHidden ? @4 : @0 + }; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKCodelessMacros.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKCodelessMacros.h new file mode 100644 index 0000000000000..72ef74153c715 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKCodelessMacros.h @@ -0,0 +1,92 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#ifndef FBSDKCodelessMacros_h +#define FBSDKCodelessMacros_h + +// keys for event binding path compoenent +#define CODELESS_MAPPING_METHOD_KEY @"method" +#define CODELESS_MAPPING_EVENT_NAME_KEY @"event_name" +#define CODELESS_MAPPING_EVENT_TYPE_KEY @"event_type" +#define CODELESS_MAPPING_APP_VERSION_KEY @"app_version" +#define CODELESS_MAPPING_PATH_KEY @"path" +#define CODELESS_MAPPING_PATH_TYPE_KEY @"path_type" +#define CODELESS_MAPPING_CLASS_NAME_KEY @"class_name" +#define CODELESS_MAPPING_MATCH_BITMASK_KEY @"match_bitmask" +#define CODELESS_MAPPING_ID_KEY @"id" +#define CODELESS_MAPPING_INDEX_KEY @"index" +#define CODELESS_MAPPING_IS_USER_INPUT_KEY @"is_user_input" +#define CODELESS_MAPPING_SECTION_KEY @"section" +#define CODELESS_MAPPING_ROW_KEY @"row" +#define CODELESS_MAPPING_TEXT_KEY @"text" +#define CODELESS_MAPPING_TAG_KEY @"tag" +#define CODELESS_MAPPING_DESC_KEY @"description" +#define CODELESS_MAPPING_HINT_KEY @"hint" +#define CODELESS_MAPPING_PARAMETERS_KEY @"parameters" +#define CODELESS_MAPPING_PARAMETER_NAME_KEY @"name" +#define CODELESS_MAPPING_PARAMETER_VALUE_KEY @"value" + +#define CODELESS_MAPPING_PARENT_CLASS_NAME @".." +#define CODELESS_MAPPING_CURRENT_CLASS_NAME @"." + +#define ReactNativeClassRCTView "RCTView" +#define ReactNativeClassRCTRootView "RCTRootView" + +#define CODELESS_INDEXING_UPLOAD_INTERVAL_IN_SECONDS 1 +#define CODELESS_INDEXING_STATUS_KEY @"is_app_indexing_enabled" +#define CODELESS_INDEXING_SESSION_ID_KEY @"device_session_id" +#define CODELESS_INDEXING_APP_VERSION_KEY @"app_version" +#define CODELESS_INDEXING_SDK_VERSION_KEY @"sdk_version" +#define CODELESS_INDEXING_PLATFORM_KEY @"platform" +#define CODELESS_INDEXING_TREE_KEY @"tree" +#define CODELESS_INDEXING_SCREENSHOT_KEY @"screenshot" +#define CODELESS_INDEXING_EXT_INFO_KEY @"extinfo" + +#define CODELESS_INDEXING_ENDPOINT @"app_indexing" +#define CODELESS_INDEXING_SESSION_ENDPOINT @"app_indexing_session" + +#define CODELESS_SETUP_ENABLED_FIELD @"auto_event_setup_enabled" +#define CODELESS_SETUP_ENABLED_KEY @"codeless_setup_enabled" +#define CODELESS_SETTING_KEY @"com.facebook.sdk:codelessSetting%@" +#define CODELESS_SETTING_TIMESTAMP_KEY @"codeless_setting_timestamp" +#define CODELESS_SETTING_CACHE_TIMEOUT (7 * 24 * 60 * 60) + +// keys for view tree +#define CODELESS_VIEW_TREE_CLASS_NAME_KEY @"classname" +#define CODELESS_VIEW_TREE_CLASS_TYPE_BIT_MASK_KEY @"classtypebitmask" +#define CODELESS_VIEW_TREE_TEXT_KEY @"text" +#define CODELESS_VIEW_TREE_DESC_KEY @"description" +#define CODELESS_VIEW_TREE_DIMENSION_KEY @"dimension" +#define CODELESS_VIEW_TREE_TAG_KEY @"tag" +#define CODELESS_VIEW_TREE_CHILDREN_KEY @"childviews" +#define CODELESS_VIEW_TREE_HINT_KEY @"hint" +#define CODELESS_VIEW_TREE_ACTIONS_KEY @"actions" + +#define CODELESS_VIEW_TREE_TOP_KEY @"top" +#define CODELESS_VIEW_TREE_LEFT_KEY @"left" +#define CODELESS_VIEW_TREE_WIDTH_KEY @"width" +#define CODELESS_VIEW_TREE_HEIGHT_KEY @"height" +#define CODELESS_VIEW_TREE_OFFSET_X_KEY @"scrollx" +#define CODELESS_VIEW_TREE_OFFSET_Y_KEY @"scrolly" +#define CODELESS_VIEW_TREE_VISIBILITY_KEY @"visibility" + +#define CODELESS_VIEW_TREE_TEXT_STYLE_KEY @"text_style" +#define CODELESS_VIEW_TREE_TEXT_IS_BOLD_KEY @"is_bold" +#define CODELESS_VIEW_TREE_TEXT_IS_ITALIC_KEY @"is_italic" +#define CODELESS_VIEW_TREE_TEXT_SIZE_KEY @"font_size" + +#endif /* FBSDKCodelessMacros_h */ diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKCodelessParameterComponent.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKCodelessParameterComponent.h new file mode 100644 index 0000000000000..73665942a01c0 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKCodelessParameterComponent.h @@ -0,0 +1,31 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_SWIFT_NAME(CodelessParameterComponent) +@interface FBSDKCodelessParameterComponent : NSObject + +@property (nonatomic, copy, readonly) NSString *name; +@property (nonatomic, copy, readonly) NSString *value; +@property (nonatomic, readonly) NSArray *path; +@property (nonatomic, copy, readonly) NSString *pathType; + +- (instancetype)initWithJSON:(NSDictionary *)dict; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKCodelessParameterComponent.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKCodelessParameterComponent.m new file mode 100644 index 0000000000000..769ff88f1a7b7 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKCodelessParameterComponent.m @@ -0,0 +1,44 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKCodelessParameterComponent.h" + +#import "FBSDKCodelessMacros.h" +#import "FBSDKCodelessPathComponent.h" + +@implementation FBSDKCodelessParameterComponent + +- (instancetype)initWithJSON:(NSDictionary *)dict { + if (self = [super init]) { + _name = [dict[CODELESS_MAPPING_PARAMETER_NAME_KEY] copy]; + _value = [dict[CODELESS_MAPPING_PARAMETER_VALUE_KEY] copy]; + _pathType = [dict[CODELESS_MAPPING_PATH_TYPE_KEY] copy]; + + NSArray *ary = dict[CODELESS_MAPPING_PATH_KEY]; + NSMutableArray *mut = [NSMutableArray array]; + for (NSDictionary *info in ary) { + FBSDKCodelessPathComponent *component = [[FBSDKCodelessPathComponent alloc] initWithJSON:info]; + [mut addObject:component]; + } + _path = [mut copy]; + } + + return self; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKCodelessPathComponent.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKCodelessPathComponent.h new file mode 100644 index 0000000000000..2eb06374ebdb6 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKCodelessPathComponent.h @@ -0,0 +1,45 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +typedef NS_OPTIONS(int, FBSDKCodelessMatchBitmaskField) +{ + FBSDKCodelessMatchBitmaskFieldID = 1, + FBSDKCodelessMatchBitmaskFieldText = 1 << 1, + FBSDKCodelessMatchBitmaskFieldTag = 1 << 2, + FBSDKCodelessMatchBitmaskFieldDescription = 1 << 3, + FBSDKCodelessMatchBitmaskFieldHint = 1 << 4 +}; + +NS_SWIFT_NAME(CodelessPathComponent) +@interface FBSDKCodelessPathComponent : NSObject + +@property (nonatomic, copy, readonly) NSString *className; +@property (nonatomic, copy, readonly) NSString *text; +@property (nonatomic, copy, readonly) NSString *hint; +@property (nonatomic, copy, readonly) NSString *desc; // description +@property (nonatomic, readonly) int index; +@property (nonatomic, readonly) int tag; +@property (nonatomic, readonly) int section; +@property (nonatomic, readonly) int row; +@property (nonatomic, readonly) int matchBitmask; + +- (instancetype)initWithJSON:(NSDictionary*)dict; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKCodelessPathComponent.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKCodelessPathComponent.m new file mode 100644 index 0000000000000..1fc5108101a34 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKCodelessPathComponent.m @@ -0,0 +1,58 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKCodelessPathComponent.h" + +#import "FBSDKCodelessMacros.h" + +@implementation FBSDKCodelessPathComponent + +- (instancetype)initWithJSON:(NSDictionary *)dict { + if (self = [super init]) { + _className = [dict[CODELESS_MAPPING_CLASS_NAME_KEY] copy]; + _text = [dict[CODELESS_MAPPING_TEXT_KEY] copy]; + _hint = [dict[CODELESS_MAPPING_HINT_KEY] copy]; + _desc = [dict[CODELESS_MAPPING_DESC_KEY] copy]; + + + if (dict[CODELESS_MAPPING_INDEX_KEY]) { + _index = [dict[CODELESS_MAPPING_INDEX_KEY] intValue]; + } else { + _index = -1; + } + + if (dict[CODELESS_MAPPING_SECTION_KEY]) { + _section = [dict[CODELESS_MAPPING_SECTION_KEY] intValue]; + } else { + _section = -1; + } + + if (dict[CODELESS_MAPPING_ROW_KEY]) { + _row = [dict[CODELESS_MAPPING_ROW_KEY] intValue]; + } else { + _row = -1; + } + + _tag = [dict[CODELESS_MAPPING_TAG_KEY] intValue]; + _matchBitmask = [dict[CODELESS_MAPPING_MATCH_BITMASK_KEY] intValue]; + } + + return self; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKEventBinding.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKEventBinding.h new file mode 100644 index 0000000000000..b2985775a409f --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKEventBinding.h @@ -0,0 +1,38 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +#import +#import + +NS_SWIFT_NAME(EventBinding) +@interface FBSDKEventBinding : NSObject + +@property (nonatomic, copy, readonly) NSString *eventName; +@property (nonatomic, copy, readonly) NSString *eventType; +@property (nonatomic, copy, readonly) NSString *appVersion; +@property (nonatomic, readonly) NSArray *path; +@property (nonatomic, copy, readonly) NSString *pathType; +@property (nonatomic, readonly) NSArray *parameters; + ++ (BOOL)isViewMatchPath:(UIView *)view path:(NSArray *)path; ++ (BOOL)isPath:(NSArray *)path matchViewPath:(NSArray *)viewPath; +- (FBSDKEventBinding *)initWithJSON:(NSDictionary *)dict; +- (void)trackEvent:(id)sender; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKEventBinding.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKEventBinding.m new file mode 100644 index 0000000000000..dbc90c52e7fe4 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKEventBinding.m @@ -0,0 +1,277 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKEventBinding.h" + +#import +#import + +#import "FBSDKAppEventsUtility.h" +#import "FBSDKCodelessMacros.h" +#import "FBSDKCodelessParameterComponent.h" +#import "FBSDKCodelessPathComponent.h" +#import "FBSDKSwizzler.h" +#import "FBSDKViewHierarchy.h" + +#define CODELESS_PATH_TYPE_ABSOLUTE @"absolute" +#define CODELESS_PATH_TYPE_RELATIVE @"relative" +#define CODELESS_CODELESS_EVENT_KEY @"_is_fb_codeless" +#define PARAMETER_NAME_PRICE @"_valueToSum" + +@implementation FBSDKEventBinding + +- (FBSDKEventBinding *)initWithJSON:(NSDictionary *)dict +{ + if ((self = [super init])) { + _eventName = [dict[CODELESS_MAPPING_EVENT_NAME_KEY] copy]; + _eventType = [dict[CODELESS_MAPPING_EVENT_TYPE_KEY] copy]; + _appVersion = [dict[CODELESS_MAPPING_APP_VERSION_KEY] copy]; + _pathType = [dict[CODELESS_MAPPING_PATH_TYPE_KEY] copy]; + + NSArray *pathComponents = dict[CODELESS_MAPPING_PATH_KEY]; + NSMutableArray *mut = [NSMutableArray array]; + for (NSDictionary *info in pathComponents) { + FBSDKCodelessPathComponent *component = [[FBSDKCodelessPathComponent alloc] initWithJSON:info]; + [mut addObject:component]; + } + _path = [mut copy]; + + NSArray *parameters = dict[CODELESS_MAPPING_PARAMETERS_KEY]; + mut = [NSMutableArray array]; + for (NSDictionary *info in parameters) { + FBSDKCodelessParameterComponent *component = [[FBSDKCodelessParameterComponent alloc] initWithJSON:info]; + [mut addObject:component]; + } + _parameters = [mut copy]; + } + return self; +} + +- (void)trackEvent:(id)sender +{ + UIView *sourceView = [sender isKindOfClass:[UIView class]] ? (UIView *)sender : nil; + NSMutableDictionary *params = [NSMutableDictionary dictionary]; + params[CODELESS_CODELESS_EVENT_KEY] = @"1"; + for (FBSDKCodelessParameterComponent *component in self.parameters) { + NSString *text = component.value; + if (!text || text.length == 0) { + text = [FBSDKEventBinding findParameterOfPath:component.path + pathType:component.pathType + sourceView:sourceView]; + } + if (text) { + if ([component.name isEqualToString:PARAMETER_NAME_PRICE]) { + NSNumber *value = [FBSDKAppEventsUtility getNumberValue:text]; + params[component.name] = value; + } else { + params[component.name] = text; + } + } + } + + [FBSDKAppEvents logEvent:_eventName parameters:[params copy]]; +} + ++ (BOOL)matchAnyView:(NSArray *)views + pathComponent:(FBSDKCodelessPathComponent *)component +{ + for (NSObject *view in views) { + if ([self match:view pathComponent:component]) { + return YES; + } + } + return NO; +} + ++ (BOOL)match:(NSObject *)view +pathComponent:(FBSDKCodelessPathComponent *)component +{ + NSString *className = NSStringFromClass([view class]); + if (![className isEqualToString:component.className]) { + return NO; + } + + if (component.index >= 0) { + NSObject *parent = [FBSDKViewHierarchy getParent:view]; + if (parent) { + NSArray *children = [FBSDKViewHierarchy getChildren:[FBSDKViewHierarchy getParent:view]]; + NSUInteger index = [children indexOfObject:view]; + if (index == NSNotFound || index != component.index) { + return NO; + } + } else { + if (0 != component.index) { + return NO; + } + } + } + + if ((component.matchBitmask & FBSDKCodelessMatchBitmaskFieldText) > 0) { + NSString *text = [FBSDKViewHierarchy getText:view]; + BOOL match = ((text.length == 0 && component.text.length == 0) + || [text isEqualToString:component.text]); + if (!match) { + return NO; + } + } + + if ((component.matchBitmask & FBSDKCodelessMatchBitmaskFieldTag) > 0 + && [view isKindOfClass:[UIView class]] + && component.tag != ((UIView *)view).tag) { + return NO; + } + + if ((component.matchBitmask & FBSDKCodelessMatchBitmaskFieldHint) > 0) { + NSString *hint = [FBSDKViewHierarchy getHint:view]; + BOOL match = ((hint.length == 0 && component.hint.length == 0) + || [hint isEqualToString:component.hint]); + if (!match) { + return NO; + } + } + + return YES; +} + ++ (BOOL)isViewMatchPath:(UIView *)view path:(NSArray *)path +{ + NSArray *viewPath = [FBSDKViewHierarchy getPath:view]; + BOOL isMatch = [self isPath:path matchViewPath:viewPath]; + + return isMatch; +} + ++ (BOOL)isPath:(NSArray *)path matchViewPath:(NSArray *)viewPath { + for (NSInteger i = 0; i < MIN(path.count, viewPath.count); i++) { + NSInteger idxPath = path.count - i - 1; + NSInteger idxViewPath = viewPath.count - i - 1; + + FBSDKCodelessPathComponent *pathComponent = path[idxPath]; + FBSDKCodelessPathComponent *viewPathComponent = viewPath[idxViewPath]; + + if (![pathComponent.className isEqualToString:viewPathComponent.className]) { + return NO; + } + + if (pathComponent.index >= 0 + && pathComponent.index != viewPathComponent.index) { + return NO; + } + + if ((pathComponent.matchBitmask & FBSDKCodelessMatchBitmaskFieldText) > 0) { + NSString *text = viewPathComponent.text; + BOOL match = ((text.length == 0 && pathComponent.text.length == 0) + || [text isEqualToString:pathComponent.text] + || [[FBSDKUtility SHA256Hash:text] isEqualToString:pathComponent.text]); + if (!match) { + return NO; + } + } + + if ((pathComponent.matchBitmask & FBSDKCodelessMatchBitmaskFieldTag) > 0 + && pathComponent.tag != viewPathComponent.tag) { + return NO; + } + + if ((pathComponent.matchBitmask & FBSDKCodelessMatchBitmaskFieldHint) > 0) { + NSString *hint = viewPathComponent.hint; + BOOL match = ((hint.length == 0 && pathComponent.hint.length == 0) + || [hint isEqualToString:pathComponent.hint] + || [[FBSDKUtility SHA256Hash:hint] isEqualToString:pathComponent.hint]); + if (!match) { + return NO; + } + } + } + + return YES; +} + ++ (NSObject *)findViewByPath:(NSArray *)path parent:(NSObject *)parent level:(int)level { + if (level >= path.count) { + return nil; + } + + FBSDKCodelessPathComponent *pathComponent = path[level]; + + // If found parent, skip to next level + if ([pathComponent.className isEqualToString:CODELESS_MAPPING_PARENT_CLASS_NAME]) { + NSObject *nextParent = [FBSDKViewHierarchy getParent:parent]; + + return [FBSDKEventBinding findViewByPath:path parent:nextParent level:level + 1]; + } else if ([pathComponent.className isEqualToString:CODELESS_MAPPING_CURRENT_CLASS_NAME]) { + return parent; + } + + NSArray *children; + if (parent) { + children = [FBSDKViewHierarchy getChildren:parent]; + } else { + UIWindow *window = [UIApplication sharedApplication].delegate.window; + if (window) { + children = @[window]; + } else { + return nil; + } + } + + if (path.count - 1 == level) { + int index = pathComponent.index; + if (index >= 0) { + NSObject *child = index < children.count ? children[index] : nil; + if ([self match:child pathComponent:pathComponent]) { + return child; + } + } else { + for (NSObject *child in children) { + if ([self match:child pathComponent:pathComponent]) { + return child; + } + } + } + } else { + for (NSObject *child in children) { + NSObject *result = [self findViewByPath:path parent:child level:level + 1]; + if (result) { + return result; + } + } + } + + return nil; +} + +// MARK: - find event parameters via relative path ++ (NSString *)findParameterOfPath:(NSArray *)path + pathType:(NSString *)pathType + sourceView:(UIView *)sourceView { + if (0 == path.count) { + return nil; + } + + UIView *rootView = sourceView; + if (![pathType isEqualToString:CODELESS_PATH_TYPE_RELATIVE]) { + rootView = nil; + } + + NSObject *foundObj = [self findViewByPath:path parent:rootView level:0]; + + return [FBSDKViewHierarchy getText:foundObj]; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKEventBindingManager.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKEventBindingManager.h new file mode 100644 index 0000000000000..d038be80808d8 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKEventBindingManager.h @@ -0,0 +1,28 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_SWIFT_NAME(EventBindingManager) +@interface FBSDKEventBindingManager : NSObject + +- (FBSDKEventBindingManager*)initWithJSON:(NSDictionary*)dict; +- (void)updateBindings:(NSArray *)bindings; ++ (NSArray *)parseArray:(NSArray *)array; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKEventBindingManager.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKEventBindingManager.m new file mode 100644 index 0000000000000..fbd0e2b4d8a75 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKEventBindingManager.m @@ -0,0 +1,403 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKEventBindingManager.h" + +#import + +#import + +#import "FBSDKCodelessMacros.h" +#import "FBSDKCodelessPathComponent.h" +#import "FBSDKEventBinding.h" +#import "FBSDKSwizzler.h" +#import "FBSDKTypeUtility.h" +#import "FBSDKViewHierarchy.h" + +#define ReactNativeTargetKey @"target" +#define ReactNativeTouchEndEventName @"touchEnd" + +#define ReactNativeClassRCTTextView "RCTTextView" +#define ReactNativeClassRCTImageView "RCTImageVIew" +#define ReactNativeClassRCTTouchEvent "RCTTouchEvent" +#define ReactNativeClassRCTTouchHandler "RCTTouchHandler" + +static void fb_dispatch_on_main_thread(dispatch_block_t block) { + if ([NSThread isMainThread]) { + block(); + } else { + dispatch_async(dispatch_get_main_queue(), block); + } +} + +static void fb_dispatch_on_default_thread(dispatch_block_t block) { + dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), block); +} + +@interface FBSDKEventBindingManager () +{ + BOOL isStarted; + NSMutableDictionary *reactBindings; + NSSet *validClasses; + BOOL hasReactNative; + NSArray *eventBindings; +} +@end + +@implementation FBSDKEventBindingManager + +- (id)init { + self = [super init]; + if (self) { + isStarted = NO; + hasReactNative = NO; + reactBindings = [NSMutableDictionary dictionary]; + + NSMutableSet *classes = [NSMutableSet set]; + [classes addObject:[UIControl class]]; + [classes addObject:[UITableView class]]; + [classes addObject:[UICollectionView class]]; + // ReactNative + Class classRCTRootView = objc_lookUpClass(ReactNativeClassRCTRootView); + if (classRCTRootView != nil) { + hasReactNative = YES; + Class classRCTView = objc_lookUpClass(ReactNativeClassRCTView); + Class classRCTTextView = objc_lookUpClass(ReactNativeClassRCTTextView); + Class classRCTImageView = objc_lookUpClass(ReactNativeClassRCTImageView); + if (classRCTView) { + [classes addObject:classRCTView]; + } + if (classRCTTextView) { + [classes addObject:classRCTTextView]; + } + if (classRCTImageView) { + [classes addObject:classRCTImageView]; + } + } + validClasses = [NSSet setWithSet:classes]; + } + return self; +} + ++ (NSArray *)parseArray:(NSArray *)array { + NSMutableArray *result = [NSMutableArray array]; + + for (NSDictionary *json in array) { + FBSDKEventBinding *binding = [[FBSDKEventBinding alloc] initWithJSON:json]; + [result addObject:binding]; + } + + return [result copy]; +} + +- (FBSDKEventBindingManager*)initWithJSON:(NSDictionary*)dict +{ + if ((self = [super init])) { + NSArray *eventBindingsDict = [FBSDKTypeUtility arrayValue:dict[@"event_bindings"]]; + NSMutableArray *bindings = [NSMutableArray array]; + for (NSDictionary *d in eventBindingsDict) { + FBSDKEventBinding *e = [[FBSDKEventBinding alloc] initWithJSON:d]; + [bindings addObject:e]; + } + eventBindings = [bindings copy]; + } + return self; +} + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wundeclared-selector" +- (void)start +{ + if (isStarted) { + return; + } + + if (0 == eventBindings.count) { + return; + } + + isStarted = YES; + + void (^blockToWindow)(id view) = ^(id view) { + [self matchView:view delegate:nil]; + }; + + [FBSDKSwizzler swizzleSelector:@selector(didMoveToWindow) + onClass:[UIControl class] + withBlock:blockToWindow named:@"map_control"]; + + // ReactNative + if (hasReactNative) { // If app is built via ReactNative + Class classRCTView = objc_lookUpClass(ReactNativeClassRCTView); + Class classRCTTextView = objc_lookUpClass(ReactNativeClassRCTTextView); + Class classRCTImageView = objc_lookUpClass(ReactNativeClassRCTImageView); + Class classRCTTouchHandler = objc_lookUpClass(ReactNativeClassRCTTouchHandler); + + // All react-native views would be added tp RCTRootView, so no need to check didMoveToWindow + [FBSDKSwizzler swizzleSelector:@selector(didMoveToWindow) + onClass:classRCTView + withBlock:blockToWindow + named:@"match_react_native"]; + [FBSDKSwizzler swizzleSelector:@selector(didMoveToWindow) + onClass:classRCTTextView + withBlock:blockToWindow + named:@"match_react_native"]; + [FBSDKSwizzler swizzleSelector:@selector(didMoveToWindow) + onClass:classRCTImageView + withBlock:blockToWindow + named:@"match_react_native"]; + + // RCTTouchHandler handles with touch events, like touchEnd and uses RCTEventDispather to dispatch events, so we can check _updateAndDispatchTouches to fire events + [FBSDKSwizzler swizzleSelector:@selector(_updateAndDispatchTouches:eventName:) onClass:classRCTTouchHandler withBlock:^(id touchHandler, SEL command, id touches, id eventName){ + if ([touches isKindOfClass:[NSSet class]] && [eventName isKindOfClass:[NSString class]]) { + @try { + NSString *reactEventName = (NSString *)eventName; + NSSet *reactTouches = (NSSet *)touches; + if ([reactEventName isEqualToString:ReactNativeTouchEndEventName]) { + for (UITouch *touch in reactTouches) { + UIView *targetView = ((UITouch *)touch).view.superview; + NSNumber *reactTag = nil; + // Find the closest React-managed touchable view like RCTTouchHandler + while(targetView) { + reactTag = [FBSDKViewHierarchy getViewReactTag:targetView]; + if (reactTag != nil && targetView.userInteractionEnabled) { + break; + } + targetView = targetView.superview; + } + FBSDKEventBinding *eventBinding = self->reactBindings[reactTag]; + if (reactTag != nil && eventBinding != nil) { + [eventBinding trackEvent:nil]; + } + } + } + } + @catch(NSException *exception) { + // Catch exception here to prevent LytroKit from crashing app + } + } + } named:@"dispatch_rn_event"]; + } + + // UITableView + void (^tableViewBlock)(UITableView *tableView, + SEL cmd, + id delegate) = + ^(UITableView *tableView, SEL cmd, id delegate) { + if (!delegate) { + return; + } + + [self matchView:tableView delegate:delegate]; + }; + [FBSDKSwizzler swizzleSelector:@selector(setDelegate:) + onClass:[UITableView class] + withBlock:tableViewBlock + named:@"match_table_view"]; + // UICollectionView + void (^collectionViewBlock)(UICollectionView *collectionView, + SEL cmd, + id delegate) = + ^(UICollectionView *collectionView, SEL cmd, id delegate) { + if (nil == delegate) { + return; + } + + [self matchView:collectionView delegate:delegate]; + }; + [FBSDKSwizzler swizzleSelector:@selector(setDelegate:) + onClass:[UICollectionView class] + withBlock:collectionViewBlock + named:@"handle_collection_view"]; +} + +- (void)rematchBindings { + if (0 == eventBindings.count) { + return; + } + + NSArray *windows = [UIApplication sharedApplication].windows; + for (UIWindow *window in windows) { + [self matchSubviewsIn:window]; + } +} + +- (void)matchSubviewsIn:(UIView *)view { + if (!view) { + return; + } + + for (UIView *subview in view.subviews) { + BOOL isValidClass = NO; + for (Class cls in validClasses) { + if ([subview isKindOfClass:cls]) { + isValidClass = YES; + break; + } + } + + if (isValidClass) { + if ([subview isKindOfClass:[UITableView class]]) { + UITableView *tableView = (UITableView *)subview; + if (tableView.delegate) { + [self matchView:subview delegate:tableView.delegate]; + } + } else if ([subview isKindOfClass:[UICollectionView class]]) { + UICollectionView *collectionView = (UICollectionView *)subview; + if (collectionView.delegate) { + [self matchView:subview delegate:collectionView.delegate]; + } + } else { + [self matchView:subview delegate:nil]; + } + } + + if (![subview isKindOfClass:[UIControl class]]) { + [self matchSubviewsIn:subview]; + } + } +} + +// check if the view is matched to any event +- (void)matchView:(UIView *)view delegate:(id)delegate { + if (0 == eventBindings.count) { + return; + } + + fb_dispatch_on_main_thread(^{ + if (![view window]) { + return; + } + + NSArray *path = [FBSDKViewHierarchy getPath:view]; + + fb_dispatch_on_default_thread(^{ + if ([view isKindOfClass:[UIControl class]]) { + UIControl *control = (UIControl *)view; + for (FBSDKEventBinding *binding in self->eventBindings) { + if ([FBSDKEventBinding isPath:binding.path matchViewPath:path]) { + fb_dispatch_on_main_thread(^{ + [control addTarget:binding + action:@selector(trackEvent:) + forControlEvents:UIControlEventTouchUpInside]; + }); + break; + } + } + } else if (self->hasReactNative + && [view respondsToSelector:@selector(reactTag)]) { + for (FBSDKEventBinding *binding in self->eventBindings) { + if ([FBSDKEventBinding isPath:binding.path matchViewPath:path]) { + fb_dispatch_on_main_thread(^{ + if (view) { + NSNumber *reactTag = [FBSDKViewHierarchy getViewReactTag:view]; + if (reactTag != nil) { + self->reactBindings[reactTag] = binding; + } + } + }); + break; + } + } + } else if ([view isKindOfClass:[UITableView class]] + && [delegate conformsToProtocol:@protocol(UITableViewDelegate)]) { + fb_dispatch_on_default_thread(^{ + NSMutableSet *matchedBindings = [NSMutableSet set]; + for (FBSDKEventBinding *binding in self->eventBindings) { + if (binding.path.count > 1) { + NSArray *shortPath = [binding.path + subarrayWithRange:NSMakeRange(0, binding.path.count - 1)]; + if ([FBSDKEventBinding isPath:shortPath matchViewPath:path]) { + [matchedBindings addObject:binding]; + } + } + } + + if (matchedBindings.count > 0) { + NSArray *bindings = matchedBindings.allObjects; + void (^block)(id, SEL, id, id) = ^(id target, SEL command, UITableView *tableView, NSIndexPath *indexPath) { + fb_dispatch_on_main_thread(^{ + for (FBSDKEventBinding *binding in bindings) { + FBSDKCodelessPathComponent *component = binding.path.lastObject; + if ((component.section == -1 || component.section == indexPath.section) + && (component.row == -1 || component.row == indexPath.row)) { + UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath]; + [binding trackEvent:cell]; + } + } + }); + }; + [FBSDKSwizzler swizzleSelector:@selector(tableView:didSelectRowAtIndexPath:) + onClass:[delegate class] + withBlock:block + named:@"handle_table_view"]; + } + }); + } else if ([view isKindOfClass:[UICollectionView class]] + && [delegate conformsToProtocol:@protocol(UICollectionViewDelegate)]) { + fb_dispatch_on_default_thread(^{ + NSMutableSet *matchedBindings = [NSMutableSet set]; + for (FBSDKEventBinding *binding in self->eventBindings) { + if (binding.path.count > 1) { + NSArray *shortPath = [binding.path + subarrayWithRange:NSMakeRange(0, binding.path.count - 1)]; + if ([FBSDKEventBinding isPath:shortPath matchViewPath:path]) { + [matchedBindings addObject:binding]; + } + } + } + + if (matchedBindings.count > 0) { + NSArray *bindings = matchedBindings.allObjects; + void (^block)(id, SEL, id, id) = ^(id target, SEL command, UICollectionView *collectionView, NSIndexPath *indexPath) { + fb_dispatch_on_main_thread(^{ + for (FBSDKEventBinding *binding in bindings) { + FBSDKCodelessPathComponent *component = binding.path.lastObject; + if ((component.section == -1 || component.section == indexPath.section) + && (component.row == -1 || component.row == indexPath.row)) { + UICollectionViewCell *cell = [collectionView cellForItemAtIndexPath:indexPath]; + [binding trackEvent:cell]; + } + } + }); + }; + [FBSDKSwizzler swizzleSelector:@selector(collectionView:didSelectItemAtIndexPath:) + onClass:[delegate class] + withBlock:block + named:@"handle_collection_view"]; + } + }); + } + }); + }); +} + +#pragma clang diagnostic pop +- (void)updateBindings:(NSArray *)bindings { + eventBindings = bindings; + [reactBindings removeAllObjects]; + if (!isStarted) { + [self start]; + } + + fb_dispatch_on_main_thread(^{ + [self rematchBindings]; + }); +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKViewHierarchy.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKViewHierarchy.h new file mode 100644 index 0000000000000..9487e2c902a75 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKViewHierarchy.h @@ -0,0 +1,41 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import +#import + +NS_SWIFT_NAME(ViewHierarchy) +@interface FBSDKViewHierarchy : NSObject + ++ (NSObject *)getParent:(NSObject *)obj; ++ (NSArray *)getChildren:(NSObject *)obj; ++ (NSArray *)getPath:(NSObject *)obj; ++ (NSMutableDictionary *)getDetailAttributesOf:(NSObject *)obj; + ++ (NSString *)getText:(NSObject *)obj; ++ (NSString *)getHint:(NSObject *)obj; ++ (NSIndexPath *)getIndexPath:(NSObject *)obj; ++ (NSUInteger)getClassBitmask:(NSObject *)obj; ++ (UITableView *)getParentTableView:(UIView *)cell; ++ (UICollectionView *)getParentCollectionView:(UIView *)cell; ++ (NSInteger)getTag:(NSObject *)obj; ++ (NSNumber *)getViewReactTag:(UIView *)view; + ++ (BOOL)isUserInputView:(NSObject *)obj; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKViewHierarchy.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKViewHierarchy.m new file mode 100644 index 0000000000000..6183b079e25e6 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKViewHierarchy.m @@ -0,0 +1,640 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKViewHierarchy.h" + +#import + +#import + +#import + +#import "FBSDKCodelessMacros.h" +#import "FBSDKCodelessPathComponent.h" + +#define MAX_VIEW_HIERARCHY_LEVEL 35 + +typedef NS_ENUM(NSUInteger, FBCodelessClassBitmask) { + /** Indicates that the class is subclass of UIControl */ + FBCodelessClassBitmaskUIControl = 1 << 3, + /** Indicates that the class is subclass of UIControl */ + FBCodelessClassBitmaskUIButton = 1 << 4, + /** Indicates that the class is ReactNative Button */ + FBCodelessClassBitmaskReactNativeButton = 1 << 6, + /** Indicates that the class is UITableViewCell */ + FBCodelessClassBitmaskUITableViewCell = 1 << 7, + /** Indicates that the class is UICollectionViewCell */ + FBCodelessClassBitmaskUICollectionViewCell = 1 << 8, + /** Indicates that the class is UILabel */ + FBCodelessClassBitmaskLabel = 1 << 10, + /** Indicates that the class is UITextView or UITextField*/ + FBCodelessClassBitmaskInput = 1 << 11, + /** Indicates that the class is UIPicker*/ + FBCodelessClassBitmaskPicker = 1 << 12, + /** Indicates that the class is UISwitch*/ + FBCodelessClassBitmaskSwitch = 1 << 13, + /** Indicates that the class is UIViewController*/ + FBCodelessClassBitmaskUIViewController = 1 << 17, +}; + +@implementation FBSDKViewHierarchy + ++ (NSArray*)getChildren:(NSObject*)obj +{ + if ([obj isKindOfClass:[UIControl class]]) { + return nil; + } + + NSMutableArray *children = [NSMutableArray array]; + + // children of window should be viewcontroller + if ([obj isKindOfClass:[UIWindow class]]) { + UIViewController *rootVC = ((UIWindow *)obj).rootViewController; + NSArray *subviews = ((UIWindow *)obj).subviews; + for (UIView *child in subviews) { + if (child != rootVC.view) { + UIViewController *vc = [FBSDKViewHierarchy getParentViewController:child]; + if (vc != nil && vc.view == child) { + [children addObject:vc]; + } else { + [children addObject:child]; + } + } else { + if (rootVC) { + [children addObject:rootVC]; + } + } + } + } else if ([obj isKindOfClass:[UIView class]]) { + NSArray *subviews = [((UIView *)obj).subviews copy]; + for (UIView *child in subviews) { + UIViewController *vc = [FBSDKViewHierarchy getParentViewController:child]; + if (vc && vc.view == child) { + [children addObject:vc]; + } else { + [children addObject:child]; + } + } + } else if ([obj isKindOfClass:[UINavigationController class]]) { + UIViewController *vc = ((UINavigationController*)obj).visibleViewController; + UIViewController *tc = ((UINavigationController*)obj).topViewController; + NSArray *nextChildren = [FBSDKViewHierarchy getChildren:((UIViewController*)obj).view]; + for (NSObject *child in nextChildren) { + if (tc && [self isView:child superViewOfView:tc.view]) { + [children addObject:tc]; + } else if (vc && [self isView:child superViewOfView:vc.view]) { + [children addObject:vc]; + } else { + if (child != vc.view && child != tc.view) { + [children addObject:child]; + } else { + if (vc && child == vc.view) { + [children addObject:vc]; + } else if (tc && child == tc.view) { + [children addObject:tc]; + } + } + } + } + + if (vc && ![children containsObject:vc]) { + [children addObject:vc]; + } + } else if ([obj isKindOfClass:[UITabBarController class]]) { + UIViewController *vc = ((UITabBarController *)obj).selectedViewController; + NSArray *nextChildren = [FBSDKViewHierarchy getChildren:((UIViewController*)obj).view]; + for (NSObject *child in nextChildren) { + if (vc && [self isView:child superViewOfView:vc.view]) { + [children addObject:vc]; + } else { + if (vc && child == vc.view) { + [children addObject:vc]; + } else { + [children addObject:child]; + } + } + } + + if (vc && ![children containsObject:vc]) { + [children addObject:vc]; + } + } else if ([obj isKindOfClass:[UIViewController class]]) { + UIViewController *vc = (UIViewController *)obj; + if (vc.isViewLoaded) { + NSArray *nextChildren = [FBSDKViewHierarchy getChildren:vc.view]; + if (nextChildren.count > 0) { + [children addObjectsFromArray:nextChildren]; + } + } + for (NSObject *child in vc.childViewControllers) { + [children addObject:child]; + } + UIViewController *presentedVC = vc.presentedViewController; + if (presentedVC) { + [children addObject:presentedVC]; + } + } + return children; +} + ++ (NSObject *)getParent:(NSObject *)obj +{ + if ([obj isKindOfClass:[UIView class]]) { + UIView *superview = ((UIView *)obj).superview; + UIViewController *superviewViewController = [FBSDKViewHierarchy + getParentViewController:superview]; + if (superviewViewController && superviewViewController.view == superview) { + return superviewViewController; + } + if (superview && superview != obj) { + return superview; + } + } + else if ([obj isKindOfClass:[UIViewController class]]) { + UIViewController *vc = (UIViewController *)obj; + UIViewController *parentVC = vc.parentViewController; + UIViewController *presentingVC = vc.presentingViewController; + UINavigationController *nav = vc.navigationController; + UITabBarController *tab = vc.tabBarController; + + if (nav) { + return nav; + } + + if (tab) { + return tab; + } + + if (parentVC) { + return parentVC; + } + + if (presentingVC && presentingVC.presentedViewController == vc) { + return presentingVC; + } + + // Return parent of view of UIViewController + NSObject *viewParent = [FBSDKViewHierarchy getParent:vc.view]; + if (viewParent) { + return viewParent; + } + } + return nil; +} + ++ (NSArray *)getPath:(NSObject *)obj +{ + return [FBSDKViewHierarchy getPath:obj limit:MAX_VIEW_HIERARCHY_LEVEL]; +} + ++ (NSArray *)getPath:(NSObject *)obj limit:(int)limit +{ + if (!obj || limit <= 0) { + return nil; + } + + NSMutableArray *path; + + NSObject *parent = [FBSDKViewHierarchy getParent:obj]; + if (parent) { + NSArray *parentPath = [FBSDKViewHierarchy getPath:parent limit:limit - 1]; + path = [NSMutableArray arrayWithArray:parentPath]; + } else { + path = [NSMutableArray array]; + } + + NSDictionary *componentInfo = [FBSDKViewHierarchy getAttributesOf:obj parent:parent]; + + FBSDKCodelessPathComponent *pathComponent = [[FBSDKCodelessPathComponent alloc] + initWithJSON:componentInfo]; + [path addObject:pathComponent]; + + return [NSArray arrayWithArray:path]; +} + ++ (NSDictionary *)getAttributesOf:(NSObject *)obj parent:(NSObject *)parent +{ + NSMutableDictionary *componentInfo = [NSMutableDictionary dictionary]; + componentInfo[CODELESS_MAPPING_CLASS_NAME_KEY] = NSStringFromClass([obj class]); + + if (![FBSDKViewHierarchy isUserInputView:obj]) { + NSString *text = [FBSDKViewHierarchy getText:obj]; + if (text) { + componentInfo[CODELESS_MAPPING_TEXT_KEY] = text; + } + } else { + componentInfo[CODELESS_MAPPING_TEXT_KEY] = @""; + componentInfo[CODELESS_MAPPING_IS_USER_INPUT_KEY] = @YES; + } + + NSString *hint = [FBSDKViewHierarchy getHint:obj]; + if (hint) { + componentInfo[CODELESS_MAPPING_HINT_KEY] = hint; + } + + NSIndexPath *indexPath = [FBSDKViewHierarchy getIndexPath:obj]; + if (indexPath) { + componentInfo[CODELESS_MAPPING_SECTION_KEY] = @(indexPath.section); + componentInfo[CODELESS_MAPPING_ROW_KEY] = @(indexPath.row); + } + + if (parent != nil) { + NSArray *children = [FBSDKViewHierarchy getChildren:parent]; + NSUInteger index = [children indexOfObject:obj]; + if (index != NSNotFound) { + componentInfo[CODELESS_MAPPING_INDEX_KEY] = @(index); + } + } else { + componentInfo[CODELESS_MAPPING_INDEX_KEY] = @0; + } + + componentInfo[CODELESS_VIEW_TREE_TAG_KEY] = @([FBSDKViewHierarchy getTag:obj]); + + return [componentInfo copy]; +} + ++ (NSMutableDictionary *)getDetailAttributesOf:(NSObject *)obj +{ + return [self getDetailAttributesOf:obj WithHash:YES]; +} + ++ (NSMutableDictionary *)getDetailAttributesOf:(NSObject *)obj WithHash:(BOOL)hash +{ + if (!obj) { + return nil; + } + + NSObject *parent = [FBSDKViewHierarchy getParent:obj]; + + NSDictionary *simpleAttributes = [FBSDKViewHierarchy getAttributesOf:obj parent:parent]; + + NSMutableDictionary *result = [NSMutableDictionary dictionaryWithDictionary:simpleAttributes]; + + NSString *className = NSStringFromClass([obj class]); + result[CODELESS_VIEW_TREE_CLASS_NAME_KEY] = className; + + NSUInteger classBitmask = [FBSDKViewHierarchy getClassBitmask:obj]; + result[CODELESS_VIEW_TREE_CLASS_TYPE_BIT_MASK_KEY] = [NSString stringWithFormat:@"%lu", (unsigned long)classBitmask]; + + if ([obj isKindOfClass:[UIControl class]]) { + // Get actions of UIControl + UIControl *control = (UIControl *)obj; + NSMutableSet *actions = [NSMutableSet set]; + NSSet *targets = control.allTargets; + for (NSObject *target in targets) { + NSArray *ary = [control actionsForTarget:target forControlEvent:0]; + if (ary.count > 0) { + [actions addObjectsFromArray:ary]; + } + } + if (targets.count > 0) { + result[CODELESS_VIEW_TREE_ACTIONS_KEY] = actions.allObjects; + } + } + + result[CODELESS_VIEW_TREE_DIMENSION_KEY] = [FBSDKViewHierarchy getDimensionOf:obj]; + + NSDictionary *textStyle = [FBSDKViewHierarchy getTextStyle:obj]; + if (textStyle) { + result[CODELESS_VIEW_TREE_TEXT_STYLE_KEY] = textStyle; + } + + if (hash) { + // hash text and hint + result[CODELESS_VIEW_TREE_TEXT_KEY] = [FBSDKUtility SHA256Hash:result[CODELESS_VIEW_TREE_TEXT_KEY]]; + result[CODELESS_VIEW_TREE_HINT_KEY] = [FBSDKUtility SHA256Hash:result[CODELESS_VIEW_TREE_HINT_KEY]]; + } + + return result; +} + ++ (NSIndexPath *)getIndexPath:(NSObject *)obj +{ + NSIndexPath *indexPath = nil; + + if ([obj isKindOfClass:[UITableViewCell class]]) { + UITableView *tableView = [FBSDKViewHierarchy getParentTableView:(UIView *)obj]; + indexPath = [tableView indexPathForCell:(UITableViewCell *)obj]; + } else if ([obj isKindOfClass:[UICollectionViewCell class]]) { + UICollectionView *collectionView = [FBSDKViewHierarchy getParentCollectionView:(UIView *)obj]; + indexPath = [collectionView indexPathForCell:(UICollectionViewCell *)obj]; + } + + return indexPath; +} + ++ (NSString *)getText:(NSObject *)obj +{ + NSString *text = nil; + + if ([obj isKindOfClass:[UIButton class]]) { + text = ((UIButton *)obj).currentTitle; + } else if ([obj isKindOfClass:[UITextView class]] || + [obj isKindOfClass:[UITextField class]] || + [obj isKindOfClass:[UILabel class]]) { + text = ((UILabel *)obj).text; + } else if ([obj isKindOfClass:[UIPickerView class]]) { + UIPickerView *picker = (UIPickerView *)obj; + NSInteger sections = picker.numberOfComponents; + NSMutableArray *titles = [NSMutableArray array]; + + for (NSInteger i = 0; i < sections; i++) { + NSInteger row = [picker selectedRowInComponent:i]; + NSString *title; + if ([picker.delegate + respondsToSelector:@selector(pickerView:titleForRow:forComponent:)]) { + title = [picker.delegate pickerView:picker titleForRow:row forComponent:i]; + } else if ([picker.delegate + respondsToSelector:@selector(pickerView:attributedTitleForRow:forComponent:)]) { + title = [picker.delegate + pickerView:picker + attributedTitleForRow:row forComponent:i].string; + } + [titles addObject:title ?: @""]; + } + + if (titles.count > 0) { + text = [FBSDKBasicUtility JSONStringForObject:titles + error:NULL + invalidObjectHandler:NULL]; + } + } else if ([obj isKindOfClass:[UIDatePicker class]]) { + UIDatePicker *picker = (UIDatePicker *)obj; + NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; + formatter.dateFormat = @"yyyy-MM-dd HH:mm:ssZ"; + text = [formatter stringFromDate:picker.date]; + } else if ([obj isKindOfClass:objc_lookUpClass("RCTTextView")]) { + NSTextStorage *textStorage = [FBSDKAppEventsUtility getVariable:@"_textStorage" + fromInstance:obj]; + if (textStorage) { + text = textStorage.string; + } + } else if ([obj isKindOfClass:objc_lookUpClass("RCTBaseTextInputView")]) { + NSAttributedString *attributedText = [FBSDKAppEventsUtility getVariable:@"attributedText" + fromInstance:obj]; + text = attributedText.string; + } + + return text.length > 0 ? text : nil; +} + ++ (NSDictionary *)getTextStyle:(NSObject *)obj +{ + UIFont *font = nil; + if ([obj isKindOfClass:[UIButton class]]) { + font = ((UIButton *)obj).titleLabel.font; + } else if ([obj isKindOfClass:[UILabel class]]) { + font = ((UILabel *)obj).font; + } else if ([obj isKindOfClass:[UITextField class]]) { + font = ((UITextField *)obj).font; + } else if ([obj isKindOfClass:[UITextView class]]) { + font = ((UITextView *)obj).font; + } + + if (font) { + UIFontDescriptorSymbolicTraits traits = font.fontDescriptor.symbolicTraits; + BOOL isBold = (traits & UIFontDescriptorTraitBold) != 0; + BOOL isItalic = (traits & UIFontDescriptorTraitItalic) != 0; + CGFloat fontSize = font.pointSize; + + return @{ + CODELESS_VIEW_TREE_TEXT_IS_BOLD_KEY: @(isBold), + CODELESS_VIEW_TREE_TEXT_IS_ITALIC_KEY: @(isItalic), + CODELESS_VIEW_TREE_TEXT_SIZE_KEY: @(fontSize) + }; + } + + return nil; +} + ++ (NSString *)getHint:(NSObject *)obj +{ + NSString *hint = nil; + + if ([obj isKindOfClass:[UITextField class]]) { + hint = ((UITextField *)obj).placeholder; + } else if ([obj isKindOfClass:[UINavigationController class]]) { + UIViewController *top = ((UINavigationController *)obj).topViewController; + if (top) { + hint = NSStringFromClass([top class]); + } + } + + return hint.length > 0 ? hint : nil; +} + ++ (NSUInteger)getClassBitmask:(NSObject *)obj +{ + NSUInteger bitmask = 0; + + if ([obj isKindOfClass:[UIView class]]) { + if ([obj isKindOfClass:[UIControl class]]) { + bitmask |= FBCodelessClassBitmaskUIControl; + if ([obj isKindOfClass:[UIButton class]]) { + bitmask |= FBCodelessClassBitmaskUIButton; + } else if ([obj isKindOfClass:[UISwitch class]]) { + bitmask |= FBCodelessClassBitmaskSwitch; + }else if ([obj isKindOfClass:[UIDatePicker class]]) { + bitmask |= FBCodelessClassBitmaskPicker; + } + } else if ([obj isKindOfClass:[UITableViewCell class]]) { + bitmask |= FBCodelessClassBitmaskUITableViewCell; + } else if ([obj isKindOfClass:[UICollectionViewCell class]]) { + bitmask |= FBCodelessClassBitmaskUICollectionViewCell; + } else if ([obj isKindOfClass:[UIPickerView class]]) { + bitmask |= FBCodelessClassBitmaskPicker; + } else if ([obj isKindOfClass:[UILabel class]]) { + bitmask |= FBCodelessClassBitmaskLabel; + } + + if ([FBSDKViewHierarchy isRCTButton:((UIView *)obj)]) { + bitmask |= FBCodelessClassBitmaskReactNativeButton; + } + + // Check selector of UITextInput protocol instead of checking conformsToProtocol + if ([obj respondsToSelector:@selector(textInRange:)]) { + bitmask |= FBCodelessClassBitmaskInput; + } + } else if ([obj isKindOfClass:[UIViewController class]]) { + bitmask |= FBCodelessClassBitmaskUIViewController; + } + + return bitmask; +} + ++ (BOOL)isUserInputView:(NSObject *)obj +{ + if (obj && [obj conformsToProtocol:@protocol(UITextInput)]) { + id input = (id)obj; + if ([input respondsToSelector:@selector(isSecureTextEntry)] + && input.secureTextEntry) { + return YES; + } else { + if ([input respondsToSelector:@selector(keyboardType)]) { + switch (input.keyboardType) { + case UIKeyboardTypePhonePad: + case UIKeyboardTypeEmailAddress: + return YES; + default: break; + } + } + } + } + + NSString *text = [FBSDKViewHierarchy getText:obj]; + return text && [FBSDKAppEventsUtility isSensitiveUserData:text]; +} + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wundeclared-selector" ++ (BOOL)isRCTButton:(UIView *)view +{ + if (view == nil) { + return NO; + } + + Class classRCTView = objc_lookUpClass(ReactNativeClassRCTView); + if (classRCTView && [view isKindOfClass:classRCTView] && + [view respondsToSelector:@selector(reactTagAtPoint:)] && + [view respondsToSelector:@selector(reactTag)] && + view.userInteractionEnabled) { + // We check all its subviews locations and the view is clickable if there exists one that mathces reactTagAtPoint + for (UIView *subview in view.subviews) { + if (subview && ![subview isKindOfClass:classRCTView]) { + NSNumber *reactTag = [view performSelector:@selector(reactTagAtPoint:) + withObject:[NSValue valueWithCGPoint:subview.frame.origin]]; + NSNumber *subviewReactTag = [FBSDKViewHierarchy getViewReactTag:subview]; + if (reactTag != nil && subviewReactTag != nil && [reactTag isEqualToNumber:subviewReactTag]) { + return YES; + } + } + } + } + + return NO; +} + ++ (NSNumber *)getViewReactTag:(UIView *)view +{ + if (view != nil && [view respondsToSelector:@selector(reactTag)]) { + NSNumber *reactTag = [view performSelector:@selector(reactTag)]; + if (reactTag != nil && [reactTag isKindOfClass:[NSNumber class]]) { + return reactTag; + } + } + + return nil; +} +#pragma clang diagnostic pop + ++ (BOOL)isView:(NSObject *)obj1 superViewOfView:(UIView *)obj2 +{ + if (![obj1 isKindOfClass:[UIView class]] + || ![obj2 isKindOfClass:[UIView class]]) { + return NO; + } + UIView *view1 = (UIView *)obj1; + UIView *view2 = (UIView *)obj2; + UIView *superview = view2; + while (superview) { + superview = superview.superview; + if (superview == view1) { + return YES; + } + } + + return NO; +} + ++ (UIViewController *)getParentViewController:(UIView *)view +{ + UIResponder *parentResponder = view; + + while (parentResponder) { + parentResponder = parentResponder.nextResponder; + if ([parentResponder isKindOfClass:[UIViewController class]]) { + return (UIViewController *)parentResponder; + } + } + + return nil; +} + ++ (UITableView *)getParentTableView:(UIView *)cell +{ + UIView *superview = cell.superview; + while (superview) { + if ([superview isKindOfClass:[UITableView class]]) { + return (UITableView *)superview; + } + superview = superview.superview; + } + return nil; +} + ++ (UICollectionView *)getParentCollectionView:(UIView *)cell +{ + UIView *superview = cell.superview; + while (superview) { + if ([superview isKindOfClass:[UICollectionView class]]) { + return (UICollectionView *)superview; + } + superview = superview.superview; + } + return nil; +} + ++ (NSInteger)getTag:(NSObject *)obj +{ + if ([obj isKindOfClass:[UIView class]]) { + return ((UIView *)obj).tag; + } else if ([obj isKindOfClass:[UIViewController class]]) { + return ((UIViewController *)obj).view.tag; + } + + return 0; +} + ++ (NSDictionary *)getDimensionOf:(NSObject *)obj +{ + UIView *view = nil; + + if ([obj isKindOfClass:[UIView class]]) { + view = (UIView *)obj; + } else if ([obj isKindOfClass:[UIViewController class]]) { + view = ((UIViewController *)obj).view; + } + + CGRect frame = view.frame; + CGPoint offset = CGPointZero; + + if ([view isKindOfClass:[UIScrollView class]]) + offset = ((UIScrollView *)view).contentOffset; + + return @{ + CODELESS_VIEW_TREE_TOP_KEY: @((int)frame.origin.y), + CODELESS_VIEW_TREE_LEFT_KEY: @((int)frame.origin.x), + CODELESS_VIEW_TREE_WIDTH_KEY: @((int)frame.size.width), + CODELESS_VIEW_TREE_HEIGHT_KEY: @((int)frame.size.height), + CODELESS_VIEW_TREE_OFFSET_X_KEY: @((int)offset.x), + CODELESS_VIEW_TREE_OFFSET_Y_KEY: @((int)offset.y), + CODELESS_VIEW_TREE_VISIBILITY_KEY: view.isHidden ? @4 : @0 + }; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEvents+Internal.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEvents+Internal.h new file mode 100644 index 0000000000000..045e7610ff0d2 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEvents+Internal.h @@ -0,0 +1,237 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import "FBSDKAppEventsUtility.h" + +@class FBSDKGraphRequest; + +// Internally known event names + +/** Use to log that the share dialog was launched */ +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameShareSheetLaunch; + +/** Use to log that the share dialog was dismissed */ +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameShareSheetDismiss; + +/** Use to log that the permissions UI was launched */ +FOUNDATION_EXPORT NSString *const FBSDKAppEventNamePermissionsUILaunch; + +/** Use to log that the permissions UI was dismissed */ +FOUNDATION_EXPORT NSString *const FBSDKAppEventNamePermissionsUIDismiss; + +/** Use to log that the login view was used */ +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameLoginViewUsage; + +/** Use to log that the share tray launched. */ +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameShareTrayDidLaunch; + +/** Use to log that the person selected a sharing target. */ +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameShareTrayDidSelectActivity; + +// Internally known event parameters + +/** String parameter specifying the outcome of a dialog invocation */ +FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterDialogOutcome; + +/** Parameter key used to specify which application launches this application. */ +FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterLaunchSource; + +/** Use to log the result of a call to FBDialogs presentShareDialogWithParams: */ +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBDialogsPresentShareDialog; + +/** Use to log the result of a call to FBDialogs presentShareDialogWithOpenGraphActionParams: */ +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBDialogsPresentShareDialogOG; + +/** Use to log the result of a call to FBDialogs presentLikeDialogWithLikeParams: */ +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBDialogsPresentLikeDialogOG; + +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBDialogsPresentShareDialogPhoto; +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBDialogsPresentMessageDialog; +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBDialogsPresentMessageDialogPhoto; +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBDialogsPresentMessageDialogOG; + +/** Use to log the start of an auth request that cannot be fulfilled by the token cache */ +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSessionAuthStart; + +/** Use to log the end of an auth request that was not fulfilled by the token cache */ +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSessionAuthEnd; + +/** Use to log the start of a specific auth method as part of an auth request */ +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSessionAuthMethodStart; + +/** Use to log the end of the last tried auth method as part of an auth request */ +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSessionAuthMethodEnd; + +/** Use to log the timestamp for the transition to the Facebook native login dialog */ +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBDialogsNativeLoginDialogStart; + +/** Use to log the timestamp for the transition back to the app after the Facebook native login dialog */ +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBDialogsNativeLoginDialogEnd; + +/** Use to log the e2e timestamp metrics for web login */ +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBDialogsWebLoginCompleted; + +/** Use to log the result of the App Switch OS AlertView. Only available on OS >= iOS10 */ +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSessionFASLoginDialogResult; + +/** Use to log the live streaming events from sdk */ +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSDKLiveStreamingStart; +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSDKLiveStreamingStop; +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSDKLiveStreamingPause; +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSDKLiveStreamingResume; +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSDKLiveStreamingError; +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSDKLiveStreamingUpdateStatus; +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSDKLiveStreamingVideoID; +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSDKLiveStreamingMic; +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSDKLiveStreamingCamera; + +/** Use to log the results of a share dialog */ +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSDKEventShareDialogResult; +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSDKEventMessengerShareDialogResult; +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSDKEventAppInviteShareDialogResult; + +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSDKEventShareDialogShow; +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSDKEventMessengerShareDialogShow; +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSDKEventAppInviteShareDialogShow; + +FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterDialogMode; +FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterDialogShareContentType; +FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterDialogShareContentUUID; +FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterDialogShareContentPageID; + +/** Use to log parameters for share tray use */ +FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterShareTrayActivityName; +FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterShareTrayResult; + +/** Use to log parameters for live streaming*/ +FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterLiveStreamingPrevStatus; +FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterLiveStreamingStatus; +FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterLiveStreamingError; +FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterLiveStreamingVideoID; +FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterLiveStreamingMicEnabled; +FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterLiveStreamingCameraEnabled; + +// Internally known event parameter values + +FOUNDATION_EXPORT NSString *const FBSDKAppEventsDialogOutcomeValue_Completed; +FOUNDATION_EXPORT NSString *const FBSDKAppEventsDialogOutcomeValue_Cancelled; +FOUNDATION_EXPORT NSString *const FBSDKAppEventsDialogOutcomeValue_Failed; + +FOUNDATION_EXPORT NSString *const FBSDKAppEventsDialogShareContentTypeOpenGraph; +FOUNDATION_EXPORT NSString *const FBSDKAppEventsDialogShareContentTypeStatus; +FOUNDATION_EXPORT NSString *const FBSDKAppEventsDialogShareContentTypePhoto; +FOUNDATION_EXPORT NSString *const FBSDKAppEventsDialogShareContentTypeVideo; +FOUNDATION_EXPORT NSString *const FBSDKAppEventsDialogShareContentTypeCamera; +FOUNDATION_EXPORT NSString *const FBSDKAppEventsDialogShareContentTypeMessengerGenericTemplate; +FOUNDATION_EXPORT NSString *const FBSDKAppEventsDialogShareContentTypeMessengerMediaTemplate; +FOUNDATION_EXPORT NSString *const FBSDKAppEventsDialogShareContentTypeMessengerOpenGraphMusicTemplate; +FOUNDATION_EXPORT NSString *const FBSDKAppEventsDialogShareContentTypeUnknown; + + +FOUNDATION_EXPORT NSString *const FBSDKAppEventsDialogShareModeAutomatic; +FOUNDATION_EXPORT NSString *const FBSDKAppEventsDialogShareModeBrowser; +FOUNDATION_EXPORT NSString *const FBSDKAppEventsDialogShareModeNative; +FOUNDATION_EXPORT NSString *const FBSDKAppEventsDialogShareModeShareSheet; +FOUNDATION_EXPORT NSString *const FBSDKAppEventsDialogShareModeWeb; +FOUNDATION_EXPORT NSString *const FBSDKAppEventsDialogShareModeFeedBrowser; +FOUNDATION_EXPORT NSString *const FBSDKAppEventsDialogShareModeFeedWeb; +FOUNDATION_EXPORT NSString *const FBSDKAppEventsDialogShareModeUnknown; + +FOUNDATION_EXPORT NSString *const FBSDKAppEventsNativeLoginDialogStartTime; +FOUNDATION_EXPORT NSString *const FBSDKAppEventsNativeLoginDialogEndTime; + +FOUNDATION_EXPORT NSString *const FBSDKAppEventsWebLoginE2E; + +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSDKLikeButtonImpression; +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSDKLoginButtonImpression; +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSDKSendButtonImpression; +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSDKShareButtonImpression; +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSDKLiveStreamingButtonImpression; + +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSDKSmartLoginService; + +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSDKLikeButtonDidTap; +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSDKLoginButtonDidTap; +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSDKSendButtonDidTap; +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSDKShareButtonDidTap; +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSDKLiveStreamingButtonDidTap; + +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSDKLikeControlDidDisable; +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSDKLikeControlDidLike; +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSDKLikeControlDidPresentDialog; +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSDKLikeControlDidTap; +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSDKLikeControlDidUnlike; +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSDKLikeControlError; +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSDKLikeControlImpression; +FOUNDATION_EXPORT NSString *const FBSDKAppEventNameFBSDKLikeControlNetworkUnavailable; + +FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterDialogErrorMessage; +FOUNDATION_EXPORT NSString *const FBSDKAppEventParameterLogTime; + +FOUNDATION_EXPORT NSString *const FBSDKAppEventsWKWebViewMessagesHandlerKey; +FOUNDATION_EXPORT NSString *const FBSDKAppEventsWKWebViewMessagesActionKey; +FOUNDATION_EXPORT NSString *const FBSDKAppEventsWKWebViewMessagesEventKey; +FOUNDATION_EXPORT NSString *const FBSDKAppEventsWKWebViewMessagesParamsKey; +FOUNDATION_EXPORT NSString *const FBSDKAppEventsWKWebViewMessagesPixelTrackKey; +FOUNDATION_EXPORT NSString *const FBSDKAppEventsWKWebViewMessagesPixelTrackCustomKey; +FOUNDATION_EXPORT NSString *const FBSDKAppEventsWKWebViewMessagesPixelTrackSingleKey; +FOUNDATION_EXPORT NSString *const FBSDKAppEventsWKWebViewMessagesPixelTrackSingleCustomKey; +FOUNDATION_EXPORT NSString *const FBSDKAppEventsWKWebViewMessagesPixelIDKey; + +@interface FBSDKAppEvents (Internal) + +@property (class, nonatomic, strong, readonly) FBSDKAppEvents *singleton; + ++ (void)logInternalEvent:(FBSDKAppEventName)eventName + isImplicitlyLogged:(BOOL)isImplicitlyLogged; + ++ (void)logInternalEvent:(FBSDKAppEventName)eventName + valueToSum:(double)valueToSum + isImplicitlyLogged:(BOOL)isImplicitlyLogged; + ++ (void)logInternalEvent:(FBSDKAppEventName)eventName + parameters:(NSDictionary *)parameters + isImplicitlyLogged:(BOOL)isImplicitlyLogged; + ++ (void)logInternalEvent:(FBSDKAppEventName)eventName + parameters:(NSDictionary *)parameters + isImplicitlyLogged:(BOOL)isImplicitlyLogged + accessToken:(FBSDKAccessToken *)accessToken; + ++ (void)logInternalEvent:(FBSDKAppEventName)eventName + valueToSum:(double)valueToSum + parameters:(NSDictionary *)parameters + isImplicitlyLogged:(BOOL)isImplicitlyLogged; + ++ (void)logInternalEvent:(NSString *)eventName + valueToSum:(NSNumber *)valueToSum + parameters:(NSDictionary *)parameters + isImplicitlyLogged:(BOOL)isImplicitlyLogged + accessToken:(FBSDKAccessToken *)accessToken; + ++ (void)logImplicitEvent:(NSString *)eventName + valueToSum:(NSNumber *)valueToSum + parameters:(NSDictionary *)parameters + accessToken:(FBSDKAccessToken *)accessToken; + +- (void)flushForReason:(FBSDKAppEventsFlushReason)flushReason; +- (void)registerNotifications; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsDeviceInfo.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsDeviceInfo.h new file mode 100644 index 0000000000000..bd2523517537a --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsDeviceInfo.h @@ -0,0 +1,26 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_SWIFT_NAME(AppEventsDeviceInfo) +@interface FBSDKAppEventsDeviceInfo : NSObject + ++ (void)extendDictionaryWithDeviceInfo:(NSMutableDictionary *)dictionary; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsDeviceInfo.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsDeviceInfo.m new file mode 100644 index 0000000000000..631fba933b5b5 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsDeviceInfo.m @@ -0,0 +1,279 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKAppEventsDeviceInfo.h" + +#import +#import + +#if !TARGET_OS_TV +#import +#import +#endif + +#import +#import + +#import "FBSDKAppEvents+Internal.h" +#import "FBSDKDynamicFrameworkLoader.h" +#import "FBSDKInternalUtility.h" +#import "FBSDKUtility.h" + +#define FB_ARRAY_COUNT(x) sizeof(x) / sizeof(x[0]) + +static const u_int FB_GROUP1_RECHECK_DURATION = 30 * 60; // seconds + +// Apple reports storage in binary gigabytes (1024^3) in their About menus, etc. +static const u_int FB_GIGABYTE = 1024 * 1024 * 1024; // bytes + +@implementation FBSDKAppEventsDeviceInfo +{ + // Ephemeral data, may change during the lifetime of an app. We collect them in different + // 'group' frequencies - group1 may gets collected once every 30 minutes. + + // group1 + NSString *_carrierName; + NSString *_timeZoneAbbrev; + unsigned long long _remainingDiskSpaceGB; + NSString *_timeZoneName; + + // Persistent data, but we maintain it to make rebuilding the device info as fast as possible. + NSString *_bundleIdentifier; + NSString *_longVersion; + NSString *_shortVersion; + NSString *_sysVersion; + NSString *_machine; + NSString *_language; + unsigned long long _totalDiskSpaceGB; + unsigned long long _coreCount; + CGFloat _width; + CGFloat _height; + CGFloat _density; + + // Other state + long _lastGroup1CheckTime; + BOOL _isEncodingDirty; + NSString *_encodedDeviceInfo; +} + +#pragma mark - Public Methods + ++ (void)extendDictionaryWithDeviceInfo:(NSMutableDictionary *)dictionary +{ + dictionary[@"extinfo"] = [[self sharedDeviceInfo] encodedDeviceInfo]; +} + +#pragma mark - Internal Methods + ++ (void)initialize +{ + if (self == [FBSDKAppEventsDeviceInfo class]) { + [[self sharedDeviceInfo] _collectPersistentData]; + } +} + ++ (instancetype)sharedDeviceInfo +{ + static FBSDKAppEventsDeviceInfo *_sharedDeviceInfo = nil; + if (_sharedDeviceInfo == nil) { + _sharedDeviceInfo = [[FBSDKAppEventsDeviceInfo alloc] init]; + } + return _sharedDeviceInfo; +} + +- (instancetype)init +{ + if ((self = [super init])) { + _isEncodingDirty = YES; + } + return self; +} + +- (NSString *)encodedDeviceInfo +{ + @synchronized (self) { + + BOOL isGroup1Expired = [self _isGroup1Expired]; + BOOL isEncodingExpired = isGroup1Expired; // Can || other groups in if we add them + + // As long as group1 hasn't expired, we can just return the last generated value + if (_encodedDeviceInfo && !isEncodingExpired) { + return _encodedDeviceInfo; + } + + if (isGroup1Expired) { + [self _collectGroup1Data]; + } + + if (_isEncodingDirty) { + self.encodedDeviceInfo = [self _generateEncoding]; + _isEncodingDirty = NO; + } + + return _encodedDeviceInfo; + } +} + +- (void)setEncodedDeviceInfo:(NSString *)encodedDeviceInfo +{ + @synchronized (self) { + if (![_encodedDeviceInfo isEqualToString:encodedDeviceInfo]) { + _encodedDeviceInfo = [encodedDeviceInfo copy]; + } + } +} + +// This data need only be collected once. +- (void)_collectPersistentData +{ + // Bundle stuff + NSBundle *mainBundle = [NSBundle mainBundle]; + _bundleIdentifier = mainBundle.bundleIdentifier; + _longVersion = [mainBundle objectForInfoDictionaryKey:@"CFBundleVersion"]; + _shortVersion = [mainBundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"]; + + // Locale stuff + _language = [NSLocale currentLocale].localeIdentifier; + + // Device stuff + UIDevice *device = [UIDevice currentDevice]; + _sysVersion = device.systemVersion; + _coreCount = [FBSDKAppEventsDeviceInfo _coreCount]; + + UIScreen *sc = [UIScreen mainScreen]; + CGRect sr = sc.bounds; + _width = sr.size.width; + _height = sr.size.height; + _density = sc.scale; + + struct utsname systemInfo; + uname(&systemInfo); + _machine = @(systemInfo.machine); + + // Disk space stuff + float totalDiskSpace = [FBSDKAppEventsDeviceInfo _getTotalDiskSpace].floatValue; + _totalDiskSpaceGB = (unsigned long long)round(totalDiskSpace / FB_GIGABYTE); +} + +- (BOOL)_isGroup1Expired +{ + return ([FBSDKAppEventsUtility unixTimeNow] - _lastGroup1CheckTime) > FB_GROUP1_RECHECK_DURATION; +} + +// This data is collected only once every GROUP1_RECHECK_DURATION. +- (void)_collectGroup1Data +{ + // Carrier + NSString *newCarrierName = [FBSDKAppEventsDeviceInfo _getCarrier]; + if (![newCarrierName isEqualToString:_carrierName]) { + _carrierName = newCarrierName; + _isEncodingDirty = YES; + } + + // Time zone + NSTimeZone *timeZone = [NSTimeZone systemTimeZone]; + NSString *timeZoneName = timeZone.name; + if (![timeZoneName isEqualToString:_timeZoneName]) { + _timeZoneName = timeZoneName; + _timeZoneAbbrev = timeZone.abbreviation; + _isEncodingDirty = YES; + } + + // Remaining disk space + float remainingDiskSpace = [FBSDKAppEventsDeviceInfo _getRemainingDiskSpace].floatValue; + unsigned long long newRemainingDiskSpaceGB = (unsigned long long)round(remainingDiskSpace / FB_GIGABYTE); + if (_remainingDiskSpaceGB != newRemainingDiskSpaceGB) { + _remainingDiskSpaceGB = newRemainingDiskSpaceGB; + _isEncodingDirty = YES; + } + + _lastGroup1CheckTime = [FBSDKAppEventsUtility unixTimeNow]; +} + +- (NSString *)_generateEncoding +{ + // Keep a bit of precision on density as it's the most likely to become non-integer. + NSString *densityString = _density ? [NSString stringWithFormat:@"%.02f", _density] : @""; + + NSArray *arr = @[ + @"i2", // version - starts with 'i' for iOS, we'll use 'a' for Android + _bundleIdentifier ?: @"", + _longVersion ?: @"", + _shortVersion ?: @"", + _sysVersion ?: @"", + _machine ?: @"", + _language ?: @"", + _timeZoneAbbrev ?: @"", + _carrierName ?: @"", + _width ? @((unsigned long)_width) : @"", + _height ? @((unsigned long)_height) : @"", + densityString, + @(_coreCount) ?: @"", + @(_totalDiskSpaceGB) ?: @"", + @(_remainingDiskSpaceGB) ?: @"", + _timeZoneName ?: @"" + ]; + + return [FBSDKBasicUtility JSONStringForObject:arr error:NULL invalidObjectHandler:NULL]; +} + +#pragma mark - Helper Methods + ++ (NSNumber *)_getTotalDiskSpace +{ + NSDictionary *attrs = [[[NSFileManager alloc] init] attributesOfFileSystemForPath:NSHomeDirectory() + error:nil]; + return attrs[NSFileSystemSize]; +} + ++ (NSNumber *)_getRemainingDiskSpace +{ + NSDictionary *attrs = [[[NSFileManager alloc] init] attributesOfFileSystemForPath:NSHomeDirectory() + error:nil]; + return attrs[NSFileSystemFreeSize]; +} + ++ (uint)_coreCount +{ + return [FBSDKAppEventsDeviceInfo _readSysCtlUInt:CTL_HW type:HW_AVAILCPU]; +} + ++ (uint)_readSysCtlUInt:(int)ctl type:(int)type +{ + int mib[2] = {ctl, type}; + uint value; + size_t size = sizeof value; + if (0 != sysctl(mib, FB_ARRAY_COUNT(mib), &value, &size, NULL, 0)) { + return 0; + } + return value; +} + ++ (NSString *)_getCarrier +{ +#if TARGET_OS_TV || TARGET_IPHONE_SIMULATOR + return @"NoCarrier"; +#else + // Dynamically load class for this so calling app doesn't need to link framework in. + CTTelephonyNetworkInfo *networkInfo = [[fbsdkdfl_CTTelephonyNetworkInfoClass() alloc] init]; + CTCarrier *carrier = networkInfo.subscriberCellularProvider; + return carrier.carrierName ?: @"NoCarrier"; +#endif +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsState.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsState.h new file mode 100644 index 0000000000000..a23dea7fc15b1 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsState.h @@ -0,0 +1,42 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +// this type is not thread safe. +NS_SWIFT_NAME(AppEventsState) +@interface FBSDKAppEventsState : NSObject + +@property (nonatomic, readonly, copy) NSArray *events; +@property (nonatomic, readonly, assign) NSUInteger numSkipped; +@property (nonatomic, readonly, copy) NSString *tokenString; +@property (nonatomic, readonly, copy) NSString *appID; +@property (nonatomic, readonly, getter=areAllEventsImplicit) BOOL allEventsImplicit; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; +- (instancetype)initWithToken:(NSString *)tokenString appID:(NSString *)appID NS_DESIGNATED_INITIALIZER; + +- (void)addEvent:(NSDictionary *)eventDictionary isImplicit:(BOOL)isImplicit; +- (void)addEventsFromAppEventState:(FBSDKAppEventsState *)appEventsState; +- (BOOL)isCompatibleWithAppEventsState:(FBSDKAppEventsState *)appEventsState; +- (BOOL)isCompatibleWithTokenString:(NSString *)tokenString appID:(NSString *)appID; +- (NSString *)JSONStringForEvents:(BOOL)includeImplicitEvents; +- (NSString *)extractReceiptData; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsState.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsState.m new file mode 100644 index 0000000000000..10aa5e2e56487 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsState.m @@ -0,0 +1,184 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKAppEventsState.h" + +#import "FBSDKBasicUtility.h" +#import "FBSDKRestrictiveDataFilterManager.h" + +#define FBSDK_APPEVENTSTATE_ISIMPLICIT_KEY @"isImplicit" + +#define FBSDK_APPEVENTSSTATE_MAX_EVENTS 1000 + +#define FBSDK_APPEVENTSSTATE_APPID_KEY @"appID" +#define FBSDK_APPEVENTSSTATE_EVENTS_KEY @"events" +#define FBSDK_APPEVENTSSTATE_NUMSKIPPED_KEY @"numSkipped" +#define FBSDK_APPEVENTSSTATE_TOKENSTRING_KEY @"tokenString" +#define FBSDK_APPEVENTSTATE_RECEIPTDATA_KEY @"receipt_data" +#define FBSDK_APPEVENTSTATE_RECEIPTID_KEY @"receipt_id" + +@implementation FBSDKAppEventsState +{ + NSMutableArray *_mutableEvents; +} + +- (instancetype)initWithToken:(NSString *)tokenString appID:(NSString *)appID +{ + if ((self = [super init])) { + _tokenString = [tokenString copy]; + _appID = [appID copy]; + _mutableEvents = [NSMutableArray array]; + } + return self; +} + +- (instancetype)copyWithZone:(NSZone *)zone +{ + FBSDKAppEventsState *copy = [[FBSDKAppEventsState allocWithZone:zone] initWithToken:_tokenString appID:_appID]; + if (copy) { + [copy->_mutableEvents addObjectsFromArray:_mutableEvents]; + copy->_numSkipped = _numSkipped; + } + return copy; +} + +#pragma mark - NSCoding + ++ (BOOL)supportsSecureCoding +{ + return YES; +} + +- (id)initWithCoder:(NSCoder *)decoder +{ + NSString *appID = [decoder decodeObjectOfClass:[NSString class] forKey:FBSDK_APPEVENTSSTATE_APPID_KEY]; + NSString *tokenString = [decoder decodeObjectOfClass:[NSString class] forKey:FBSDK_APPEVENTSSTATE_TOKENSTRING_KEY]; + NSArray *events = [decoder decodeObjectOfClass:[NSArray class] forKey:FBSDK_APPEVENTSSTATE_EVENTS_KEY]; + NSUInteger numSkipped = [[decoder decodeObjectOfClass:[NSNumber class] forKey:FBSDK_APPEVENTSSTATE_NUMSKIPPED_KEY] unsignedIntegerValue]; + + if ((self = [self initWithToken:tokenString appID:appID])) { + _mutableEvents = [NSMutableArray arrayWithArray:events]; + _numSkipped = numSkipped; + } + return self; +} + +- (void)encodeWithCoder:(NSCoder *)encoder +{ + [encoder encodeObject:_appID forKey:FBSDK_APPEVENTSSTATE_APPID_KEY]; + [encoder encodeObject:_tokenString forKey:FBSDK_APPEVENTSSTATE_TOKENSTRING_KEY]; + [encoder encodeObject:@(_numSkipped) forKey:FBSDK_APPEVENTSSTATE_NUMSKIPPED_KEY]; + [encoder encodeObject:_mutableEvents forKey:FBSDK_APPEVENTSSTATE_EVENTS_KEY]; +} + +#pragma mark - Implementation + +- (NSArray *)events +{ + return [_mutableEvents copy]; +} + +- (void)addEventsFromAppEventState:(FBSDKAppEventsState *)appEventsState +{ + NSArray *toAdd = appEventsState->_mutableEvents; + NSInteger excess = _mutableEvents.count + toAdd.count - FBSDK_APPEVENTSSTATE_MAX_EVENTS; + if (excess > 0) { + NSInteger range = FBSDK_APPEVENTSSTATE_MAX_EVENTS - _mutableEvents.count; + toAdd = [toAdd subarrayWithRange:NSMakeRange(0, range)]; + _numSkipped += excess; + } + + [_mutableEvents addObjectsFromArray:toAdd]; +} + +- (void)addEvent:(NSDictionary *)eventDictionary + isImplicit:(BOOL)isImplicit { + if (_mutableEvents.count >= FBSDK_APPEVENTSSTATE_MAX_EVENTS) { + _numSkipped++; + } else { + [_mutableEvents addObject:@{ + @"event" : [eventDictionary mutableCopy], + FBSDK_APPEVENTSTATE_ISIMPLICIT_KEY : @(isImplicit) + }]; + } +} + +- (NSString *)extractReceiptData { + NSMutableString *receipts_string = [NSMutableString string]; + NSInteger transactionId = 1; + for (NSMutableDictionary* events in _mutableEvents) { + NSMutableDictionary *event = events[@"event"]; + + NSString* receipt = event[@"receipt_data"]; + // Add receipt id as the identifier for receipt data in event parameter. + // Receipt data will be sent as post parameter rather than the event parameter + if (receipt) { + NSString* idKey = [NSString stringWithFormat:@"receipt_%ld", (long)transactionId]; + event[FBSDK_APPEVENTSTATE_RECEIPTID_KEY] = idKey; + NSString* receiptWithId = [NSString stringWithFormat:@"%@::%@;;;", idKey, receipt]; + [receipts_string appendString:receiptWithId]; + transactionId++; + } + } + return receipts_string; +} + +- (BOOL)areAllEventsImplicit +{ + for (NSDictionary *event in _mutableEvents) { + if (![[event valueForKey:FBSDK_APPEVENTSTATE_ISIMPLICIT_KEY] boolValue]) { + return NO; + } + } + return YES; +} + +- (BOOL)isCompatibleWithAppEventsState:(FBSDKAppEventsState *)appEventsState +{ + return ([self isCompatibleWithTokenString:appEventsState.tokenString appID:appEventsState.appID]); +} + +- (BOOL)isCompatibleWithTokenString:(NSString *)tokenString appID:(NSString *)appID +{ + // token strings can be nil (e.g., no user token) but appIDs should not. + BOOL tokenCompatible = ([self.tokenString isEqualToString:tokenString] || + (self.tokenString == nil && tokenString == nil)); + return (tokenCompatible && + [self.appID isEqualToString:appID]); +} + +- (NSString *)JSONStringForEvents:(BOOL)includeImplicitEvents +{ + [FBSDKRestrictiveDataFilterManager processEvents:_mutableEvents]; + + NSMutableArray *events = [[NSMutableArray alloc] initWithCapacity:_mutableEvents.count]; + for (NSDictionary *eventAndImplicitFlag in _mutableEvents) { + if (!includeImplicitEvents && [eventAndImplicitFlag[FBSDK_APPEVENTSTATE_ISIMPLICIT_KEY] boolValue]) { + continue; + } + NSMutableDictionary *event = eventAndImplicitFlag[@"event"]; + NSAssert(event != nil, @"event cannot be nil"); + [event removeObjectForKey:FBSDK_APPEVENTSTATE_RECEIPTDATA_KEY]; + + [events addObject:event]; + } + + return [FBSDKBasicUtility JSONStringForObject:events error:NULL invalidObjectHandler:NULL]; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsStateManager.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsStateManager.h new file mode 100644 index 0000000000000..046ff217cf0b3 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsStateManager.h @@ -0,0 +1,35 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +@class FBSDKAppEventsState; + +NS_SWIFT_NAME(AppEventsStateManager) +@interface FBSDKAppEventsStateManager : NSObject + ++ (void)clearPersistedAppEventsStates; + +// reads all saved event states, appends the param, and writes them all. ++ (void)persistAppEventsData:(FBSDKAppEventsState *)appEventsState; + +// returns the array of saved app event states and deletes them. ++ (NSArray *)retrievePersistedAppEventsStates; + + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsStateManager.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsStateManager.m new file mode 100644 index 0000000000000..294b558d4a003 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsStateManager.m @@ -0,0 +1,79 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKAppEventsStateManager.h" + +#import + +#import "FBSDKAppEventsState.h" +#import "FBSDKAppEventsUtility.h" +#import "FBSDKInternalUtility.h" +#import "FBSDKLogger.h" +#import "FBSDKSettings.h" + +// A quick optimization to allow returning empty array if we know there are no persisted events. +static BOOL g_canSkipDiskCheck = NO; + +@implementation FBSDKAppEventsStateManager + ++ (void)clearPersistedAppEventsStates +{ + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorAppEvents + logEntry:@"FBSDKAppEvents Persist: Clearing"]; + [[NSFileManager defaultManager] removeItemAtPath:[[self class] filePath] + error:NULL]; + g_canSkipDiskCheck = YES; +} + ++ (void)persistAppEventsData:(FBSDKAppEventsState *)appEventsState +{ + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorAppEvents + formatString:@"FBSDKAppEvents Persist: Writing %lu events", (unsigned long)appEventsState.events.count]; + + if (!appEventsState.events.count) { + return; + } + NSMutableArray *existingEvents = [NSMutableArray arrayWithArray:[[self class] retrievePersistedAppEventsStates]]; + [existingEvents addObject:appEventsState]; + + [NSKeyedArchiver archiveRootObject:existingEvents toFile:[[self class] filePath]]; + g_canSkipDiskCheck = NO; +} + ++ (NSArray *)retrievePersistedAppEventsStates +{ + NSMutableArray *eventsStates = [NSMutableArray array]; + if (!g_canSkipDiskCheck) { + [eventsStates addObjectsFromArray:[NSKeyedUnarchiver unarchiveObjectWithFile:[[self class] filePath]]]; + + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorAppEvents + formatString:@"FBSDKAppEvents Persist: Read %lu event states. First state has %lu events", + (unsigned long)eventsStates.count, + (unsigned long)(eventsStates.count > 0 ? ((FBSDKAppEventsState *)eventsStates[0]).events.count : 0)]; + [[self class] clearPersistedAppEventsStates]; + } + return eventsStates; +} + +#pragma mark - Private Helpers + ++ (NSString *)filePath +{ + return [FBSDKBasicUtility persistenceFilePath:@"com-facebook-sdk-AppEventsPersistedEvents.json"]; +} +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsUtility.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsUtility.h new file mode 100644 index 0000000000000..6b0baa29dd66a --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsUtility.h @@ -0,0 +1,66 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +@class FBSDKAccessToken; + +typedef NS_ENUM(NSUInteger, FBSDKAdvertisingTrackingStatus) +{ + FBSDKAdvertisingTrackingAllowed, + FBSDKAdvertisingTrackingDisallowed, + FBSDKAdvertisingTrackingUnspecified +} NS_SWIFT_NAME(AppEventsUtility.AdvertisingTrackingStatus); + +typedef NS_ENUM(NSUInteger, FBSDKAppEventsFlushReason) +{ + FBSDKAppEventsFlushReasonExplicit, + FBSDKAppEventsFlushReasonTimer, + FBSDKAppEventsFlushReasonSessionChange, + FBSDKAppEventsFlushReasonPersistedEvents, + FBSDKAppEventsFlushReasonEventThreshold, + FBSDKAppEventsFlushReasonEagerlyFlushingEvent +} NS_SWIFT_NAME(AppEventsUtility.FlushReason); + +NS_SWIFT_NAME(AppEventsUtility) +@interface FBSDKAppEventsUtility : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +@property (class, nonatomic, copy, readonly) NSString *advertiserID; +@property (class, nonatomic, assign, readonly) FBSDKAdvertisingTrackingStatus advertisingTrackingStatus; +@property (class, nonatomic, strong, readonly) NSString *attributionID; +@property (class, nonatomic, assign, readonly) long unixTimeNow; +@property (class, nonatomic, assign, readonly) BOOL isDebugBuild; + ++ (NSMutableDictionary *)activityParametersDictionaryForEvent:(NSString *)eventCategory + implicitEventsOnly:(BOOL)implicitEventsOnly + shouldAccessAdvertisingID:(BOOL)shouldAccessAdvertisingID; + ++ (void)ensureOnMainThread:(NSString *)methodName className:(NSString *)className; ++ (NSString *)flushReasonToString:(FBSDKAppEventsFlushReason)flushReason; ++ (void)logAndNotify:(NSString *)msg allowLogAsDeveloperError:(BOOL)allowLogAsDeveloperError; ++ (void)logAndNotify:(NSString *)msg; ++ (NSString *)tokenStringToUseFor:(FBSDKAccessToken *)token; ++ (BOOL)validateIdentifier:(NSString *)identifier; ++ (id)getVariable:(NSString *)variableName fromInstance:(NSObject *)instance; ++ (NSNumber *)getNumberValue:(NSString *)text; ++ (BOOL)isSensitiveUserData:(NSString *)text; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsUtility.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsUtility.m new file mode 100644 index 0000000000000..a353aa52257ab --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsUtility.m @@ -0,0 +1,430 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKAppEventsUtility.h" + +#import + +#import + +#import "FBSDKAccessToken.h" +#import "FBSDKAppEvents.h" +#import "FBSDKAppEventsDeviceInfo.h" +#import "FBSDKConstants.h" +#import "FBSDKDynamicFrameworkLoader.h" +#import "FBSDKError.h" +#import "FBSDKInternalUtility.h" +#import "FBSDKLogger.h" +#import "FBSDKSettings.h" +#import "FBSDKTimeSpentData.h" + +#define FBSDK_APPEVENTSUTILITY_ANONYMOUSIDFILENAME @"com-facebook-sdk-PersistedAnonymousID.json" +#define FBSDK_APPEVENTSUTILITY_ANONYMOUSID_KEY @"anon_id" +#define FBSDK_APPEVENTSUTILITY_MAX_IDENTIFIER_LENGTH 40 + +@implementation FBSDKAppEventsUtility + ++ (NSMutableDictionary *)activityParametersDictionaryForEvent:(NSString *)eventCategory + implicitEventsOnly:(BOOL)implicitEventsOnly + shouldAccessAdvertisingID:(BOOL)shouldAccessAdvertisingID { + NSMutableDictionary *parameters = [NSMutableDictionary dictionary]; + parameters[@"event"] = eventCategory; + +#if __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_7_0 + NSString *attributionID = [[self class] attributionID]; // Only present on iOS 6 and below. + [FBSDKBasicUtility dictionary:parameters setObject:attributionID forKey:@"attribution"]; +#endif + + if (!implicitEventsOnly && shouldAccessAdvertisingID) { + NSString *advertiserID = [[self class] advertiserID]; + [FBSDKBasicUtility dictionary:parameters setObject:advertiserID forKey:@"advertiser_id"]; + } + + parameters[FBSDK_APPEVENTSUTILITY_ANONYMOUSID_KEY] = [FBSDKBasicUtility anonymousID]; + + FBSDKAdvertisingTrackingStatus advertisingTrackingStatus = [[self class] advertisingTrackingStatus]; + if (advertisingTrackingStatus != FBSDKAdvertisingTrackingUnspecified) { + BOOL allowed = (advertisingTrackingStatus == FBSDKAdvertisingTrackingAllowed); + parameters[@"advertiser_tracking_enabled"] = @(allowed).stringValue; + } + if (advertisingTrackingStatus == FBSDKAdvertisingTrackingAllowed) { + NSString *userData = [FBSDKAppEvents getUserData]; + if (userData){ + parameters[@"ud"] = userData; + } + } + + parameters[@"application_tracking_enabled"] = @(!FBSDKSettings.limitEventAndDataUsage).stringValue; + + NSString *userID = [FBSDKAppEvents userID]; + if (userID) { + parameters[@"app_user_id"] = userID; + } + + [FBSDKAppEventsDeviceInfo extendDictionaryWithDeviceInfo:parameters]; + + static dispatch_once_t fetchBundleOnce; + static NSMutableArray *urlSchemes; + + dispatch_once(&fetchBundleOnce, ^{ + NSBundle *mainBundle = [NSBundle mainBundle]; + urlSchemes = [[NSMutableArray alloc] init]; + for (NSDictionary *fields in [mainBundle objectForInfoDictionaryKey:@"CFBundleURLTypes"]) { + NSArray *schemesForType = fields[@"CFBundleURLSchemes"]; + if (schemesForType) { + [urlSchemes addObjectsFromArray:schemesForType]; + } + } + }); + + if (urlSchemes.count > 0) { + parameters[@"url_schemes"] = [FBSDKBasicUtility JSONStringForObject:urlSchemes error:NULL invalidObjectHandler:NULL]; + } + + return parameters; +} + ++ (NSString *)advertiserID +{ + if (!FBSDKSettings.isAdvertiserIDCollectionEnabled) { + return nil; + } + + NSString *result = nil; + + Class ASIdentifierManagerClass = fbsdkdfl_ASIdentifierManagerClass(); + if ([ASIdentifierManagerClass class]) { + ASIdentifierManager *manager = [ASIdentifierManagerClass sharedManager]; + result = manager.advertisingIdentifier.UUIDString; + } + + return result; +} + ++ (FBSDKAdvertisingTrackingStatus)advertisingTrackingStatus +{ + static dispatch_once_t fetchAdvertisingTrackingStatusOnce; + static FBSDKAdvertisingTrackingStatus status; + + dispatch_once(&fetchAdvertisingTrackingStatusOnce, ^{ + status = FBSDKAdvertisingTrackingUnspecified; + Class ASIdentifierManagerClass = fbsdkdfl_ASIdentifierManagerClass(); + if ([ASIdentifierManagerClass class]) { + ASIdentifierManager *manager = [ASIdentifierManagerClass sharedManager]; + if (manager) { + status = manager.advertisingTrackingEnabled ? FBSDKAdvertisingTrackingAllowed : FBSDKAdvertisingTrackingDisallowed; + } + } + }); + + return status; +} + ++ (NSString *)attributionID +{ +#if TARGET_OS_TV + return nil; +#else + return [UIPasteboard pasteboardWithName:@"fb_app_attribution" create:NO].string; +#endif +} + +#pragma mark - Internal, for testing + ++ (void)clearLibraryFiles +{ + [[NSFileManager defaultManager] removeItemAtPath:[[self class] persistenceFilePath:FBSDK_APPEVENTSUTILITY_ANONYMOUSIDFILENAME] + error:NULL]; + [[NSFileManager defaultManager] removeItemAtPath:[[self class] persistenceFilePath:FBSDKTimeSpentFilename] + error:NULL]; +} + ++ (void)ensureOnMainThread:(NSString *)methodName className:(NSString *)className +{ + FBSDKConditionalLog([NSThread isMainThread], + FBSDKLoggingBehaviorDeveloperErrors, + @"*** <%@, %@> is not called on the main thread. This can lead to errors.", + methodName, + className); +} + ++ (NSString *)flushReasonToString:(FBSDKAppEventsFlushReason)flushReason +{ + NSString *result = @"Unknown"; + switch (flushReason) { + case FBSDKAppEventsFlushReasonExplicit: + result = @"Explicit"; + break; + case FBSDKAppEventsFlushReasonTimer: + result = @"Timer"; + break; + case FBSDKAppEventsFlushReasonSessionChange: + result = @"SessionChange"; + break; + case FBSDKAppEventsFlushReasonPersistedEvents: + result = @"PersistedEvents"; + break; + case FBSDKAppEventsFlushReasonEventThreshold: + result = @"EventCountThreshold"; + break; + case FBSDKAppEventsFlushReasonEagerlyFlushingEvent: + result = @"EagerlyFlushingEvent"; + break; + } + return result; +} + ++ (void)logAndNotify:(NSString *)msg +{ + [[self class] logAndNotify:msg allowLogAsDeveloperError:YES]; +} + ++ (void)logAndNotify:(NSString *)msg allowLogAsDeveloperError:(BOOL)allowLogAsDeveloperError +{ + NSString *behaviorToLog = FBSDKLoggingBehaviorAppEvents; + if (allowLogAsDeveloperError) { + if ([FBSDKSettings.loggingBehaviors containsObject:FBSDKLoggingBehaviorDeveloperErrors]) { + // Rather than log twice, prefer 'DeveloperErrors' if it's set over AppEvents. + behaviorToLog = FBSDKLoggingBehaviorDeveloperErrors; + } + } + + [FBSDKLogger singleShotLogEntry:behaviorToLog logEntry:msg]; + NSError *error = [FBSDKError errorWithCode:FBSDKErrorAppEventsFlush message:msg]; + [[NSNotificationCenter defaultCenter] postNotificationName:FBSDKAppEventsLoggingResultNotification object:error]; +} + ++ (BOOL)matchString:(NSString *)string + firstCharacterSet:(NSCharacterSet *)firstCharacterSet +restOfStringCharacterSet:(NSCharacterSet *)restOfStringCharacterSet +{ + if (string.length == 0) { + return NO; + } + for (NSUInteger i = 0; i < string.length; i++) { + const unichar c = [string characterAtIndex:i]; + if (i == 0) { + if (![firstCharacterSet characterIsMember:c]) { + return NO; + } + } else { + if (![restOfStringCharacterSet characterIsMember:c]) { + return NO; + } + } + } + return YES; +} + ++ (BOOL)regexValidateIdentifier:(NSString *)identifier +{ + static NSCharacterSet *firstCharacterSet; + static NSCharacterSet *restOfStringCharacterSet; + static dispatch_once_t onceToken; + static NSMutableSet *cachedIdentifiers; + dispatch_once(&onceToken, ^{ + NSMutableCharacterSet *mutableSet = [NSMutableCharacterSet alphanumericCharacterSet]; + [mutableSet addCharactersInString:@"_"]; + firstCharacterSet = [mutableSet copy]; + + [mutableSet addCharactersInString:@"- "]; + restOfStringCharacterSet = [mutableSet copy]; + cachedIdentifiers = [[NSMutableSet alloc] init]; + }); + + @synchronized(self) { + if (![cachedIdentifiers containsObject:identifier]) { + if ([self matchString:identifier + firstCharacterSet:firstCharacterSet + restOfStringCharacterSet:restOfStringCharacterSet]) { + [cachedIdentifiers addObject:identifier]; + } else { + return NO; + } + } + } + return YES; +} + ++ (BOOL)validateIdentifier:(NSString *)identifier +{ + if (identifier == nil || identifier.length == 0 || identifier.length > FBSDK_APPEVENTSUTILITY_MAX_IDENTIFIER_LENGTH || ![[self class] regexValidateIdentifier:identifier]) { + [[self class] logAndNotify:[NSString stringWithFormat:@"Invalid identifier: '%@'. Must be between 1 and %d characters, and must be contain only alphanumerics, _, - or spaces, starting with alphanumeric or _.", + identifier, FBSDK_APPEVENTSUTILITY_MAX_IDENTIFIER_LENGTH]]; + return NO; + } + + return YES; +} + +// Given a candidate token (which may be nil), find the real token to string to use. +// Precedence: 1) provided token, 2) current token, 3) app | client token, 4) fully anonymous session. ++ (NSString *)tokenStringToUseFor:(FBSDKAccessToken *)token +{ + if (!token) { + token = [FBSDKAccessToken currentAccessToken]; + } + + NSString *appID = [FBSDKAppEvents loggingOverrideAppID] ?: token.appID ?: [FBSDKSettings appID]; + NSString *tokenString = token.tokenString; + if (!tokenString || ![appID isEqualToString:token.appID]) { + // If there's an logging override app id present, then we don't want to use the client token since the client token + // is intended to match up with the primary app id (and AppEvents doesn't require a client token). + NSString *clientTokenString = [FBSDKSettings clientToken]; + if (clientTokenString && appID && [appID isEqualToString:token.appID]){ + tokenString = [NSString stringWithFormat:@"%@|%@", appID, clientTokenString]; + } else if (appID) { + tokenString = nil; + } + } + return tokenString; +} + ++ (long)unixTimeNow +{ + return (long)round([NSDate date].timeIntervalSince1970); +} + ++ (id)getVariable:(NSString *)variableName fromInstance:(NSObject *)instance { + Ivar ivar = class_getInstanceVariable([instance class], variableName.UTF8String); + if (ivar != NULL) { + const char *encoding = ivar_getTypeEncoding(ivar); + if (encoding != NULL && encoding[0] == '@') { + return object_getIvar(instance, ivar); + } + } + + return nil; +} + ++ (NSNumber *)getNumberValue:(NSString *)text { + NSNumber *value = @0; + + NSLocale *locale = [NSLocale currentLocale]; + + NSString *ds = [locale objectForKey:NSLocaleDecimalSeparator] ?: @"."; + NSString *gs = [locale objectForKey:NSLocaleGroupingSeparator] ?: @","; + NSString *separators = [ds stringByAppendingString:gs]; + + NSString *regex = [NSString stringWithFormat:@"[+-]?([0-9]+[%1$@]?)?[%1$@]?([0-9]+[%1$@]?)+", separators]; + NSRegularExpression *re = [NSRegularExpression regularExpressionWithPattern:regex + options:0 + error:nil]; + NSTextCheckingResult *match = [re firstMatchInString:text + options:0 + range:NSMakeRange(0, text.length)]; + if (match) { + NSString *validText = [text substringWithRange:match.range]; + NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init]; + formatter.locale = locale; + formatter.numberStyle = NSNumberFormatterDecimalStyle; + + value = [formatter numberFromString:validText]; + if (nil == value) { + value = @(validText.floatValue); + } + } + + return value; +} + ++ (BOOL)isDebugBuild { +#if TARGET_IPHONE_SIMULATOR + return YES; +#else + BOOL isDevelopment = NO; + + // There is no provisioning profile in AppStore Apps. + @try + { + NSData *data = [NSData dataWithContentsOfFile:[NSBundle.mainBundle pathForResource:@"embedded" ofType:@"mobileprovision"]]; + if (data) { + const char *bytes = [data bytes]; + NSMutableString *profile = [[NSMutableString alloc] initWithCapacity:data.length]; + for (NSUInteger i = 0; i < data.length; i++) { + [profile appendFormat:@"%c", bytes[i]]; + } + // Look for debug value, if detected we're in a development build. + NSString *cleared = [[profile componentsSeparatedByCharactersInSet:NSCharacterSet.whitespaceAndNewlineCharacterSet] componentsJoinedByString:@""]; + isDevelopment = ([cleared rangeOfString:@"get-task-allow"].length > 0); + } + + return isDevelopment; + } + @catch(NSException *exception) + { + + } + + return NO; +#endif +} + ++ (BOOL)isSensitiveUserData:(NSString *)text +{ + if (0 == text.length) { + return NO; + } + + return [self isEmailAddress:text] || [self isCreditCardNumber:text]; +} + ++ (BOOL)isCreditCardNumber:(NSString *)text +{ + text = [[text componentsSeparatedByCharactersInSet:[NSCharacterSet.decimalDigitCharacterSet invertedSet]] componentsJoinedByString:@""]; + + if (text.doubleValue == 0) { + return NO; + } + + if (text.length < 9 || text.length > 21) { + return NO; + } + + const char *chars = [text cStringUsingEncoding:NSUTF8StringEncoding]; + if (NULL == chars) { + return NO; + } + + BOOL isOdd = YES; + int oddSum = 0; + int evenSum = 0; + + for (int i = (int)text.length - 1; i >= 0; i--) { + int digit = chars[i] - '0'; + + if (isOdd) + oddSum += digit; + else + evenSum += digit / 5 + (2 * digit) % 10; + + isOdd = !isOdd; + } + + return ((oddSum + evenSum) % 10 == 0); +} + ++ (BOOL)isEmailAddress:(NSString *)text +{ + NSString *pattern = @"[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}"; + NSRegularExpression *regex = [[NSRegularExpression alloc] initWithPattern:pattern options:NSRegularExpressionCaseInsensitive error:nil]; + NSUInteger matches = [regex numberOfMatchesInString:text options:0 range:NSMakeRange(0, [text length])]; + return matches > 0; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKHybridAppEventsScriptMessageHandler.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKHybridAppEventsScriptMessageHandler.h new file mode 100644 index 0000000000000..e5d73b0ce83f1 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKHybridAppEventsScriptMessageHandler.h @@ -0,0 +1,27 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#if !TARGET_OS_TV +#import +#import + +NS_SWIFT_NAME(HybridAppEventsScriptMessageHandler) +@interface FBSDKHybridAppEventsScriptMessageHandler : NSObject + +@end +#endif diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKHybridAppEventsScriptMessageHandler.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKHybridAppEventsScriptMessageHandler.m new file mode 100644 index 0000000000000..005ace619dc65 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKHybridAppEventsScriptMessageHandler.m @@ -0,0 +1,64 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKHybridAppEventsScriptMessageHandler.h" + +#import + +#import "FBSDKAppEvents+Internal.h" + +NSString *const FBSDKAppEventsWKWebViewMessagesPixelReferralParamKey = @"_fb_pixel_referral_id"; + +@class WKUserContentController; + +@implementation FBSDKHybridAppEventsScriptMessageHandler + +- (void)userContentController:(WKUserContentController *)userContentController didReceiveScriptMessage:(WKScriptMessage *)message { + + if ([message.name isEqualToString:FBSDKAppEventsWKWebViewMessagesHandlerKey]) { + NSString *event = message.body[FBSDKAppEventsWKWebViewMessagesEventKey]; + if (event.length > 0) { + NSString *stringedParams = message.body[FBSDKAppEventsWKWebViewMessagesParamsKey]; + NSMutableDictionary *params = nil; + NSError *jsonParseError = nil; + if ([stringedParams isKindOfClass:[NSString class]]) { + params = [NSJSONSerialization JSONObjectWithData:[stringedParams dataUsingEncoding:NSUTF8StringEncoding] + options:NSJSONReadingMutableContainers + error:&jsonParseError + ]; + } + NSString *pixelID = message.body[FBSDKAppEventsWKWebViewMessagesPixelIDKey]; + if (pixelID == nil) { + [FBSDKAppEventsUtility logAndNotify:@"Can't bridge an event without a referral Pixel ID. Check your webview Pixel configuration."]; + return; + } + if (jsonParseError != nil || ![params isKindOfClass:[NSDictionary class]] || params == nil) { + [FBSDKAppEventsUtility logAndNotify:@"Could not find parameters for your Pixel request. Check your webview Pixel configuration."]; + params = [[NSMutableDictionary alloc] initWithObjectsAndKeys:pixelID, FBSDKAppEventsWKWebViewMessagesPixelReferralParamKey, nil]; + } + else { + params[FBSDKAppEventsWKWebViewMessagesPixelReferralParamKey] = pixelID; + } + [FBSDKAppEvents logInternalEvent:event + parameters:params + isImplicitlyLogged:NO]; + } + } +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKPaymentObserver.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKPaymentObserver.h new file mode 100644 index 0000000000000..aae6d63fe182f --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKPaymentObserver.h @@ -0,0 +1,26 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +// Class to encapsulate implicit logging of purchase events +NS_SWIFT_NAME(PaymentObserver) +@interface FBSDKPaymentObserver : NSObject ++ (void)startObservingTransactions; ++ (void)stopObservingTransactions; +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKPaymentObserver.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKPaymentObserver.m new file mode 100644 index 0000000000000..9134a63b2c198 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKPaymentObserver.m @@ -0,0 +1,547 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKPaymentObserver.h" + +#import + +#import + +#import "FBSDKAppEvents+Internal.h" +#import "FBSDKDynamicFrameworkLoader.h" +#import "FBSDKLogger.h" +#import "FBSDKSettings.h" + +static NSString *const FBSDKPaymentObserverOriginalTransactionKey = @"com.facebook.appevents.PaymentObserver.originalTransaction"; +static NSString *const FBSDKPaymentObserverDelimiter = @","; + +static NSString *const FBSDKAppEventParameterImplicitlyLoggedPurchase = @"_implicitlyLogged"; +static NSString *const FBSDKAppEventNamePurchaseFailed = @"fb_mobile_purchase_failed"; +static NSString *const FBSDKAppEventNamePurchaseRestored = @"fb_mobile_purchase_restored"; +static NSString *const FBSDKAppEventParameterNameInAppPurchaseType = @"fb_iap_product_type"; +static NSString *const FBSDKAppEventParameterNameProductTitle = @"fb_content_title"; +static NSString *const FBSDKAppEventParameterNameOriginalTransactionID = @"fb_original_transaction_id"; +static NSString *const FBSDKAppEventParameterNameTransactionID = @"fb_transaction_id"; +static NSString *const FBSDKAppEventParameterNameTransactionDate = @"fb_transaction_date"; +static NSString *const FBSDKAppEventParameterNameSubscriptionPeriod = @"fb_iap_subs_period"; +static NSString *const FBSDKAppEventParameterNameIsStartTrial = @"fb_iap_is_start_trial"; +static NSString *const FBSDKAppEventParameterNameHasFreeTrial = @"fb_iap_has_free_trial"; +static NSString *const FBSDKAppEventParameterNameTrialPeriod = @"fb_iap_trial_period"; +static NSString *const FBSDKAppEventParameterNameTrialPrice = @"fb_iap_trial_price"; +static int const FBSDKMaxParameterValueLength = 100; +static NSMutableArray *g_pendingRequestors; + +static NSString *const FBSDKGateKeeperAppEventsIfAutoLogSubs = @"app_events_if_auto_log_subs"; + +@interface FBSDKPaymentProductRequestor : NSObject + +@property (nonatomic, retain) SKPaymentTransaction *transaction; + +- (instancetype)initWithTransaction:(SKPaymentTransaction*)transaction; +- (void)resolveProducts; + +@end + +@interface FBSDKPaymentObserver() +@end + +@implementation FBSDKPaymentObserver +{ + BOOL _observingTransactions; +} + ++ (void)startObservingTransactions +{ + [[self singleton] startObservingTransactions]; +} + ++ (void)stopObservingTransactions +{ + [[self singleton] stopObservingTransactions]; +} + +#pragma mark - Internal Methods + ++ (FBSDKPaymentObserver *)singleton +{ + static dispatch_once_t pred; + static FBSDKPaymentObserver *shared = nil; + + dispatch_once(&pred, ^{ + shared = [[FBSDKPaymentObserver alloc] init]; + }); + return shared; +} + +- (instancetype) init +{ + self = [super init]; + if (self) { + _observingTransactions = NO; + } + return self; +} + +- (void)startObservingTransactions +{ + @synchronized (self) { + if (!_observingTransactions) { + [(SKPaymentQueue *)[fbsdkdfl_SKPaymentQueueClass() defaultQueue] addTransactionObserver:self]; + _observingTransactions = YES; + } + } +} + +- (void)stopObservingTransactions +{ + @synchronized (self) { + if (_observingTransactions) { + [(SKPaymentQueue *)[fbsdkdfl_SKPaymentQueueClass() defaultQueue] removeTransactionObserver:self]; + _observingTransactions = NO; + } + } +} + +- (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions +{ + for (SKPaymentTransaction *transaction in transactions) { + switch (transaction.transactionState) { + case SKPaymentTransactionStatePurchasing: + case SKPaymentTransactionStatePurchased: + case SKPaymentTransactionStateFailed: + case SKPaymentTransactionStateRestored: + [self handleTransaction:transaction]; + break; + case SKPaymentTransactionStateDeferred: + break; + } + } +} + +- (void)handleTransaction:(SKPaymentTransaction *)transaction +{ + FBSDKPaymentProductRequestor *productRequest = [[FBSDKPaymentProductRequestor alloc] initWithTransaction:transaction]; + [productRequest resolveProducts]; +} + +@end + +@interface FBSDKPaymentProductRequestor() +@property (nonatomic, retain) SKProductsRequest *productRequest; +@end + +@implementation FBSDKPaymentProductRequestor +{ + NSMutableSet *_originalTransactionSet; + NSSet *_eventsWithReceipt; + NSDateFormatter *_formatter; +} + ++ (void)initialize +{ + if ([self class] == [FBSDKPaymentProductRequestor class]) { + g_pendingRequestors = [[NSMutableArray alloc] init]; + } +} + +- (instancetype)initWithTransaction:(SKPaymentTransaction*)transaction +{ + self = [super init]; + if (self) { + _transaction = transaction; + _formatter = [[NSDateFormatter alloc] init]; + _formatter.dateFormat = @"yyyy-MM-dd HH:mm:ssZ"; + NSString *data = [[NSUserDefaults standardUserDefaults] stringForKey:FBSDKPaymentObserverOriginalTransactionKey]; + _eventsWithReceipt = [NSSet setWithArray:@[FBSDKAppEventNamePurchased, FBSDKAppEventNameSubscribe, + FBSDKAppEventNameStartTrial]]; + if (data) { + _originalTransactionSet = [NSMutableSet setWithArray:[data componentsSeparatedByString:FBSDKPaymentObserverDelimiter]]; + } else { + _originalTransactionSet = [[NSMutableSet alloc] init]; + } + } + return self; +} + +- (void)setProductRequest:(SKProductsRequest *)productRequest +{ + if (productRequest != _productRequest) { + if (_productRequest) { + _productRequest.delegate = nil; + } + _productRequest = productRequest; + } +} + +- (void)resolveProducts +{ + NSString *productId = self.transaction.payment.productIdentifier; + NSSet *productIdentifiers = [NSSet setWithObjects:productId, nil]; + self.productRequest = [[fbsdkdfl_SKProductsRequestClass() alloc] initWithProductIdentifiers:productIdentifiers]; + self.productRequest.delegate = self; + @synchronized(g_pendingRequestors) { + [g_pendingRequestors addObject:self]; + } + [self.productRequest start]; +} + +- (NSString *)getTruncatedString:(NSString *)inputString +{ + if (!inputString) { + return @""; + } + + return inputString.length <= FBSDKMaxParameterValueLength ? inputString : [inputString substringToIndex:FBSDKMaxParameterValueLength]; +} + +- (void)logTransactionEvent:(SKProduct *)product +{ + if ([self isSubscription:product] && + [FBSDKGateKeeperManager boolForKey:FBSDKGateKeeperAppEventsIfAutoLogSubs + defaultValue:NO]) { + [self logImplicitSubscribeTransaction:self.transaction ofProduct:product]; + } else { + [self logImplicitPurchaseTransaction:self.transaction ofProduct:product]; + } +} + +- (BOOL)isSubscription:(SKProduct *)product +{ +#if !TARGET_OS_TV +#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_11_1 + if (@available(iOS 11.2, *)) { + return (product.subscriptionPeriod != nil) && ((unsigned long)product.subscriptionPeriod.numberOfUnits > 0); + } +#endif +#endif + return NO; +} + +- (NSMutableDictionary *)getEventParametersOfProduct:(SKProduct *)product + withTransaction:(SKPaymentTransaction *)transaction +{ + NSString *transactionID = nil; + NSString *transactionDate = nil; + switch (transaction.transactionState) { + case SKPaymentTransactionStatePurchasing: + break; + case SKPaymentTransactionStatePurchased: + transactionID = self.transaction.transactionIdentifier; + transactionDate = [_formatter stringFromDate:self.transaction.transactionDate]; + break; + case SKPaymentTransactionStateFailed: + break; + case SKPaymentTransactionStateRestored: + transactionDate = [_formatter stringFromDate:self.transaction.transactionDate]; + break; + default: break; + } + SKPayment *payment = transaction.payment; + NSMutableDictionary *eventParameters = [NSMutableDictionary dictionaryWithDictionary: @{ + FBSDKAppEventParameterNameContentID: payment.productIdentifier ?: @"", + FBSDKAppEventParameterNameNumItems: @(payment.quantity), + FBSDKAppEventParameterNameTransactionDate: transactionDate ?: @"", + }]; + if (product) { + [eventParameters addEntriesFromDictionary: @{ + FBSDKAppEventParameterNameCurrency: [product.priceLocale objectForKey:NSLocaleCurrencyCode], + FBSDKAppEventParameterNameNumItems: @(payment.quantity), + FBSDKAppEventParameterNameProductTitle: [self getTruncatedString:product.localizedTitle], + FBSDKAppEventParameterNameDescription: [self getTruncatedString:product.localizedDescription], + }]; + if (transactionID) { + eventParameters[FBSDKAppEventParameterNameTransactionID] = transactionID; + } + } + +#if !TARGET_OS_TV +#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_11_1 + if (@available(iOS 11.2, *)) { + if ([self isSubscription:product]) { + // subs inapp + eventParameters[FBSDKAppEventParameterNameSubscriptionPeriod] = [self durationOfSubscriptionPeriod:product.subscriptionPeriod]; + eventParameters[FBSDKAppEventParameterNameInAppPurchaseType] = @"subs"; + eventParameters[FBSDKAppEventParameterNameIsStartTrial] = [self isStartTrial:transaction ofProduct:product] ? @"1" : @"0"; + // trial information for subs + SKProductDiscount *discount = product.introductoryPrice; + if (discount) { + if (discount.paymentMode == SKProductDiscountPaymentModeFreeTrial) { + eventParameters[FBSDKAppEventParameterNameHasFreeTrial] = @"1"; + } else { + eventParameters[FBSDKAppEventParameterNameHasFreeTrial] = @"0"; + } + eventParameters[FBSDKAppEventParameterNameTrialPeriod] = [self durationOfSubscriptionPeriod:discount.subscriptionPeriod]; + eventParameters[FBSDKAppEventParameterNameTrialPrice] = discount.price; + } + } else { + eventParameters[FBSDKAppEventParameterNameInAppPurchaseType] = @"inapp"; + } + } +#endif +#endif + return eventParameters; +} + +- (void)appendOriginalTransactionID:(NSString *)transactionID +{ + if (!transactionID) { + return; + } + [_originalTransactionSet addObject:transactionID]; + [[NSUserDefaults standardUserDefaults] setObject:[[_originalTransactionSet allObjects] componentsJoinedByString:FBSDKPaymentObserverDelimiter] + forKey:FBSDKPaymentObserverOriginalTransactionKey]; +} + +- (void)clearOriginalTransactionID:(NSString *)transactionID +{ + if (!transactionID) { + return; + } + [_originalTransactionSet removeObject:transactionID]; + [[NSUserDefaults standardUserDefaults] setObject:[[_originalTransactionSet allObjects] componentsJoinedByString:FBSDKPaymentObserverDelimiter] + forKey:FBSDKPaymentObserverOriginalTransactionKey]; +} + +- (BOOL)isStartTrial:(SKPaymentTransaction *)transaction + ofProduct:(SKProduct *)product +{ +#if !TARGET_OS_TV +#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_11_1 +#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_11_4 +#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_12_1 + // promotional offer starting from iOS 12.2 + if (@available(iOS 12.2, *)) { + SKPaymentDiscount *paymentDiscount = transaction.payment.paymentDiscount; + if (paymentDiscount) { + NSArray *discounts = product.discounts; + for (SKProductDiscount *discount in discounts) { + if (discount.paymentMode == SKProductDiscountPaymentModeFreeTrial && + [paymentDiscount.identifier isEqualToString:discount.identifier]) { + return YES; + } + } + } + } +#endif +#endif + // introductory offer starting from iOS 11.2 + if (@available(iOS 11.2, *)) { + if (product.introductoryPrice && + product.introductoryPrice.paymentMode == SKProductDiscountPaymentModeFreeTrial) { + NSString *originalTransactionID = transaction.originalTransaction.transactionIdentifier; + // only consider the very first trial transaction as start trial + if (!originalTransactionID) { + return YES; + } + } + } +#endif +#endif + return NO; +} + +- (BOOL)hasStartTrial:(SKProduct *)product +{ +#if !TARGET_OS_TV +#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_11_1 +#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_11_4 +#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_12_1 + // promotional offer starting from iOS 12.2 + if (@available(iOS 12.2, *)) { + NSArray *discounts = product.discounts; + for (SKProductDiscount *discount in discounts) { + if (discount.paymentMode == SKProductDiscountPaymentModeFreeTrial) { + return YES; + } + } + } +#endif +#endif + // introductory offer starting from iOS 11.2 + if (@available(iOS 11.2, *)) { + if (product.introductoryPrice && (product.introductoryPrice.paymentMode == SKProductDiscountPaymentModeFreeTrial)) { + return YES; + } + } +#endif +#endif + return NO; +} + +- (NSString *)durationOfSubscriptionPeriod:(id)subcriptionPeriod +{ +#if !TARGET_OS_TV +#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_11_1 + if (@available(iOS 11.2, *)) { + if (subcriptionPeriod && [subcriptionPeriod isKindOfClass:[SKProductSubscriptionPeriod class]]) { + SKProductSubscriptionPeriod *period = (SKProductSubscriptionPeriod *)subcriptionPeriod; + NSString *unit = nil; + switch (period.unit) { + case SKProductPeriodUnitDay: unit = @"D"; break; + case SKProductPeriodUnitWeek: unit = @"W"; break; + case SKProductPeriodUnitMonth: unit = @"M"; break; + case SKProductPeriodUnitYear: unit = @"Y"; break; + } + return [NSString stringWithFormat:@"P%lu%@", (unsigned long)period.numberOfUnits, unit]; + } + } +#endif +#endif + return nil; +} + +- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response +{ + NSArray* products = response.products; + NSArray* invalidProductIdentifiers = response.invalidProductIdentifiers; + if (products.count + invalidProductIdentifiers.count != 1) { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorAppEvents + formatString:@"FBSDKPaymentObserver: Expect to resolve one product per request"]; + } + SKProduct *product = nil; + if (products.count) { + product = products[0]; + } + [self logTransactionEvent:product]; +} + +- (void)requestDidFinish:(SKRequest *)request +{ + [self cleanUp]; +} + +- (void)request:(SKRequest *)request didFailWithError:(NSError *)error +{ + [self logTransactionEvent:nil]; + [self cleanUp]; +} + +- (void)cleanUp +{ + @synchronized(g_pendingRequestors) { + [g_pendingRequestors removeObject:self]; + } +} + +- (void)logImplicitSubscribeTransaction:(SKPaymentTransaction *)transaction + ofProduct:(SKProduct *)product +{ + NSString *eventName = nil; + NSString *originalTransactionID = transaction.originalTransaction.transactionIdentifier; + switch (transaction.transactionState) { + case SKPaymentTransactionStatePurchasing: + eventName = @"SubscriptionInitiatedCheckout"; + break; + case SKPaymentTransactionStatePurchased: + if ([self isStartTrial:transaction ofProduct:product]) { + eventName = FBSDKAppEventNameStartTrial; + [self clearOriginalTransactionID:originalTransactionID]; + } else { + if (originalTransactionID && [_originalTransactionSet containsObject:originalTransactionID]) { + return; + } + eventName = FBSDKAppEventNameSubscribe; + [self appendOriginalTransactionID:(originalTransactionID ?: transaction.transactionIdentifier)]; + } + break; + case SKPaymentTransactionStateFailed: + eventName = @"SubscriptionFailed"; + break; + case SKPaymentTransactionStateRestored: + eventName = @"SubscriptionRestore"; + break; + case SKPaymentTransactionStateDeferred: + return; + } + + double totalAmount = 0; + if (product) { + totalAmount = transaction.payment.quantity * product.price.doubleValue; + } + + [self logImplicitTransactionEvent:eventName + valueToSum:totalAmount + parameters:[self getEventParametersOfProduct:product withTransaction:transaction]]; +} + +- (void)logImplicitPurchaseTransaction:(SKPaymentTransaction *)transaction + ofProduct:(SKProduct *)product +{ + NSString *eventName = nil; + switch (transaction.transactionState) { + case SKPaymentTransactionStatePurchasing: + eventName = FBSDKAppEventNameInitiatedCheckout; + break; + case SKPaymentTransactionStatePurchased: + eventName = FBSDKAppEventNamePurchased; + break; + case SKPaymentTransactionStateFailed: + eventName = FBSDKAppEventNamePurchaseFailed; + break; + case SKPaymentTransactionStateRestored: + eventName = FBSDKAppEventNamePurchaseRestored; + break; + case SKPaymentTransactionStateDeferred: + return; + } + + double totalAmount = 0; + if (product) { + totalAmount = transaction.payment.quantity * product.price.doubleValue; + } + + [self logImplicitTransactionEvent:eventName + valueToSum:totalAmount + parameters:[self getEventParametersOfProduct:product withTransaction:transaction]]; +} + +- (void)logImplicitTransactionEvent:(NSString *)eventName + valueToSum:(double)valueToSum + parameters:(NSDictionary *)parameters +{ + NSMutableDictionary *eventParameters = [NSMutableDictionary dictionaryWithDictionary:parameters]; + + if ([_eventsWithReceipt containsObject:eventName]) { + NSData* receipt = [self fetchDeviceReceipt]; + if (receipt) { + NSString *base64encodedReceipt = [receipt base64EncodedStringWithOptions:0]; + eventParameters[@"receipt_data"] = base64encodedReceipt; + } + } + + eventParameters[FBSDKAppEventParameterImplicitlyLoggedPurchase] = @"1"; + [FBSDKAppEvents logEvent:eventName + valueToSum:valueToSum + parameters:eventParameters]; + + // Unless the behavior is set to only allow explicit flushing, we go ahead and flush, since purchase events + // are relatively rare and relatively high value and worth getting across on wire right away. + if ([FBSDKAppEvents flushBehavior] != FBSDKAppEventsFlushBehaviorExplicitOnly) { + [[FBSDKAppEvents singleton] flushForReason:FBSDKAppEventsFlushReasonEagerlyFlushingEvent]; + } +} + +// Fetch the current receipt for this application. +- (NSData*)fetchDeviceReceipt +{ + NSURL *receiptURL = [NSBundle bundleForClass:[self class]].appStoreReceiptURL; + NSData *receipt = [NSData dataWithContentsOfURL:receiptURL]; + return receipt; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKTimeSpentData.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKTimeSpentData.h new file mode 100644 index 0000000000000..0eb583e6c4bfa --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKTimeSpentData.h @@ -0,0 +1,35 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +FOUNDATION_EXPORT NSString *const FBSDKTimeSpentFilename; + +// Class to encapsulate persisting of time spent data collected by [FBSDKAppEvents activateApp]. The activate app App Event is +// logged when restore: is called with sufficient time since the last deactivation. +NS_SWIFT_NAME(TimeSpentData) +@interface FBSDKTimeSpentData : NSObject + ++ (void)suspend; ++ (void)restore:(BOOL)calledFromActivateApp; + ++ (void)setSourceApplication:(NSString *)sourceApplication openURL:(NSURL *)url; ++ (void)setSourceApplication:(NSString *)sourceApplication isFromAppLink:(BOOL)isFromAppLink; ++ (void)registerAutoResetSourceApplication; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKTimeSpentData.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKTimeSpentData.m new file mode 100644 index 0000000000000..d57c7e9bcbb3c --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKTimeSpentData.m @@ -0,0 +1,319 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKTimeSpentData.h" + +#import "FBSDKAppEvents+Internal.h" +#import "FBSDKAppEventsUtility.h" +#import "FBSDKInternalUtility.h" +#import "FBSDKLogger.h" +#import "FBSDKServerConfiguration.h" +#import "FBSDKServerConfigurationManager.h" +#import "FBSDKSettings.h" + + +// Filename and keys for session length +NSString *const FBSDKTimeSpentFilename = @"com-facebook-sdk-AppEventsTimeSpent.json"; +static NSString *const FBSDKTimeSpentPersistKeySessionSecondsSpent = @"secondsSpentInCurrentSession"; +static NSString *const FBSDKTimeSpentPersistKeySessionNumInterruptions = @"numInterruptions"; +static NSString *const FBSDKTimeSpentPersistKeyLastSuspendTime = @"lastSuspendTime"; +static NSString *const FBSDKTimeSpentPersistKeySessionID = @"sessionID"; + +static NSString *const FBSDKAppEventNameActivatedApp = @"fb_mobile_activate_app"; +static NSString *const FBSDKAppEventNameDeactivatedApp = @"fb_mobile_deactivate_app"; +static NSString *const FBSDKAppEventParameterNameSessionInterruptions = @"fb_mobile_app_interruptions"; +static NSString *const FBSDKAppEventParameterNameTimeBetweenSessions = @"fb_mobile_time_between_sessions"; +static NSString *const FBSDKAppEventParameterNameSessionID = @"_session_id"; + + +static const int SECS_PER_MIN = 60; +static const int SECS_PER_HOUR = 60 * SECS_PER_MIN; +static const int SECS_PER_DAY = 24 * SECS_PER_HOUR; + +static NSString *g_sourceApplication; +static BOOL g_isOpenedFromAppLink; + +// Will be translated and displayed in App Insights. Need to maintain same number and value of quanta on the server. +static const long INACTIVE_SECONDS_QUANTA[] = +{ + 5 * SECS_PER_MIN, + 15 * SECS_PER_MIN, + 30 * SECS_PER_MIN, + 1 * SECS_PER_HOUR, + 6 * SECS_PER_HOUR, + 12 * SECS_PER_HOUR, + 1 * SECS_PER_DAY, + 2 * SECS_PER_DAY, + 3 * SECS_PER_DAY, + 7 * SECS_PER_DAY, + 14 * SECS_PER_DAY, + 21 * SECS_PER_DAY, + 28 * SECS_PER_DAY, + 60 * SECS_PER_DAY, + 90 * SECS_PER_DAY, + 120 * SECS_PER_DAY, + 150 * SECS_PER_DAY, + 180 * SECS_PER_DAY, + 365 * SECS_PER_DAY, + LONG_MAX, // keep as LONG_MAX to guarantee loop will terminate +}; + +/** + * This class encapsulates the notion of an app 'session' - the length of time that the user has + * spent in the app that can be considered a single usage of the app. Apps may be frequently interrupted + * do to other device activity, like a text message, so this class allows those interruptions to be smoothed + * out and the time actually spent in the app excluding this interruption time to be accumulated. Also, + * once a certain amount of time has gone by where the app is not in the foreground, we consider the + * session to be complete, and a new session beginning. When this occurs, we log a 'deactivate app' event + * with the duration of the previous session as the 'value' of this event, along with the number of + * interruptions from that previous session as an event parameter. + */ +@implementation FBSDKTimeSpentData +{ + BOOL _isCurrentlyLoaded; + BOOL _shouldLogActivateEvent; + BOOL _shouldLogDeactivateEvent; + long _secondsSpentInCurrentSession; + long _timeSinceLastSuspend; + int _numInterruptionsInCurrentSession; + long _lastRestoreTime; + long _lastSuspendTime; + NSString *_sessionID; +} + +// +// Public methods +// + ++ (void)suspend +{ + [self.singleton instanceSuspend]; +} + ++ (void)restore:(BOOL)calledFromActivateApp +{ + [self.singleton instanceRestore:calledFromActivateApp]; +} + +// +// Internal methods +// ++ (FBSDKTimeSpentData *)singleton +{ + static dispatch_once_t pred; + static FBSDKTimeSpentData *shared = nil; + + dispatch_once(&pred, ^{ + shared = [[FBSDKTimeSpentData alloc] init]; + }); + return shared; +} + +// Calculate and persist time spent data for this instance of the app activation. +- (void)instanceSuspend +{ + + [FBSDKAppEventsUtility ensureOnMainThread:NSStringFromSelector(_cmd) className:NSStringFromClass([self class])]; + if (!_isCurrentlyLoaded) { + FBSDKConditionalLog(YES, FBSDKLoggingBehaviorInformational, @"[FBSDKTimeSpentData suspend] invoked without corresponding restore"); + return; + } + + long now = [FBSDKAppEventsUtility unixTimeNow]; + long timeSinceRestore = now - _lastRestoreTime; + + // Can happen if the clock on the device is changed + if (timeSinceRestore < 0) { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorAppEvents + formatString:@"Clock skew detected"]; + timeSinceRestore = 0; + } + + _secondsSpentInCurrentSession += timeSinceRestore; + + NSDictionary *timeSpentData = + @{ + FBSDKTimeSpentPersistKeySessionSecondsSpent : @(_secondsSpentInCurrentSession), + FBSDKTimeSpentPersistKeySessionNumInterruptions : @(_numInterruptionsInCurrentSession), + FBSDKTimeSpentPersistKeyLastSuspendTime : @(now), + FBSDKTimeSpentPersistKeySessionID : _sessionID, + }; + + NSString *content = [FBSDKBasicUtility JSONStringForObject:timeSpentData error:NULL invalidObjectHandler:NULL]; + + [content writeToFile:[FBSDKBasicUtility persistenceFilePath:FBSDKTimeSpentFilename] + atomically:YES + encoding:NSASCIIStringEncoding + error:nil]; + + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorAppEvents + formatString:@"FBSDKTimeSpentData Persist: %@", content]; + + _isCurrentlyLoaded = NO; +} + + +// Called during activation - either through an explicit 'activateApp' call or implicitly when the app is foregrounded. +// In both cases, we restore the persisted event data. In the case of the activateApp, we log an 'app activated' +// event if there's been enough time between the last deactivation and now. +- (void)instanceRestore:(BOOL)calledFromActivateApp +{ + + [FBSDKAppEventsUtility ensureOnMainThread:NSStringFromSelector(_cmd) className:NSStringFromClass([self class])]; + + // It's possible to call this multiple times during the time the app is in the foreground. If this is the case, + // just restore persisted data the first time. + if (!_isCurrentlyLoaded) { + + NSString *content = + [[NSString alloc] initWithContentsOfFile:[FBSDKBasicUtility persistenceFilePath:FBSDKTimeSpentFilename] + usedEncoding:nil + error:nil]; + + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorAppEvents + formatString:@"FBSDKTimeSpentData Restore: %@", content]; + + long now = [FBSDKAppEventsUtility unixTimeNow]; + if (!content) { + + // Nothing persisted, so this is the first launch. + _sessionID = [NSUUID UUID].UUIDString; + _secondsSpentInCurrentSession = 0; + _numInterruptionsInCurrentSession = 0; + _lastSuspendTime = 0; + + // We want to log the app activation event on the first launch, but not the deactivate event + _shouldLogActivateEvent = YES; + _shouldLogDeactivateEvent = NO; + + } else { + + NSDictionary *results = [FBSDKBasicUtility objectForJSONString:content error:NULL]; + + _lastSuspendTime = [results[FBSDKTimeSpentPersistKeyLastSuspendTime] longValue]; + + _timeSinceLastSuspend = now - _lastSuspendTime; + _secondsSpentInCurrentSession = [results[FBSDKTimeSpentPersistKeySessionSecondsSpent] intValue]; + _sessionID = results[FBSDKTimeSpentPersistKeySessionID] ? : [NSUUID UUID].UUIDString; + _numInterruptionsInCurrentSession = [results[FBSDKTimeSpentPersistKeySessionNumInterruptions] intValue]; + _shouldLogActivateEvent = (_timeSinceLastSuspend > [FBSDKServerConfigurationManager cachedServerConfiguration].sessionTimoutInterval); + + // Other than the first launch, we always log the last session's deactivate with this session's activate. + _shouldLogDeactivateEvent = _shouldLogActivateEvent; + + if (!_shouldLogDeactivateEvent) { + // If we're not logging, then the time we spent deactivated is considered another interruption. But cap it + // so errant or test uses doesn't blow out the cardinality on the backend processing + _numInterruptionsInCurrentSession = MIN(_numInterruptionsInCurrentSession + 1, 200); + } + + } + + _lastRestoreTime = now; + _isCurrentlyLoaded = YES; + + if (calledFromActivateApp) { + // It's important to log deactivate first to reset sessionID + if (_shouldLogDeactivateEvent) { + [FBSDKAppEvents logEvent:FBSDKAppEventNameDeactivatedApp + valueToSum:_secondsSpentInCurrentSession + parameters:[self appEventsParametersForDeactivate]]; + + // We've logged the session stats, now reset. + _secondsSpentInCurrentSession = 0; + _numInterruptionsInCurrentSession = 0; + _sessionID = [NSUUID UUID].UUIDString; + } + + if (_shouldLogActivateEvent) { + [FBSDKAppEvents logEvent:FBSDKAppEventNameActivatedApp + parameters:[self appEventsParametersForActivate]]; + // Unless the behavior is set to only allow explicit flushing, we go ahead and flush. App launch + // events are critical to Analytics so we don't want to lose them. + if ([FBSDKAppEvents flushBehavior] != FBSDKAppEventsFlushBehaviorExplicitOnly) { + [[FBSDKAppEvents singleton] flushForReason:FBSDKAppEventsFlushReasonEagerlyFlushingEvent]; + } + } + } + } +} + +- (NSDictionary *)appEventsParametersForActivate +{ + return @{ + FBSDKAppEventParameterLaunchSource: [[self class] getSourceApplication], + FBSDKAppEventParameterNameSessionID: _sessionID, + }; +} + +- (NSDictionary *)appEventsParametersForDeactivate +{ + int quantaIndex = 0; + while (_timeSinceLastSuspend > INACTIVE_SECONDS_QUANTA[quantaIndex]) { + quantaIndex++; + } + + NSMutableDictionary *params = [@{ FBSDKAppEventParameterNameSessionInterruptions : @(_numInterruptionsInCurrentSession), + FBSDKAppEventParameterNameTimeBetweenSessions : [NSString stringWithFormat:@"session_quanta_%d", quantaIndex], + FBSDKAppEventParameterLaunchSource: [[self class] getSourceApplication], + FBSDKAppEventParameterNameSessionID : _sessionID ?: @"", + } mutableCopy]; + if (_lastSuspendTime) { + params[FBSDKAppEventParameterLogTime] = @(_lastSuspendTime); + } + return [params copy]; +} + ++ (void)setSourceApplication:(NSString *)sourceApplication openURL:(NSURL *)url +{ + [self setSourceApplication:sourceApplication + isFromAppLink:[FBSDKInternalUtility dictionaryFromFBURL:url][@"al_applink_data"] != nil]; +} + ++ (void)setSourceApplication:(NSString *)sourceApplication isFromAppLink:(BOOL)isFromAppLink +{ + g_isOpenedFromAppLink = isFromAppLink; + g_sourceApplication = sourceApplication; +} + ++ (NSString *)getSourceApplication +{ + NSString *openType = @"Unclassified"; + if (g_isOpenedFromAppLink) { + openType = @"AppLink"; + } + return (g_sourceApplication ? + [NSString stringWithFormat:@"%@(%@)", openType, g_sourceApplication] + : openType); +} + ++ (void)resetSourceApplication +{ + g_sourceApplication = nil; + g_isOpenedFromAppLink = NO; +} + ++ (void)registerAutoResetSourceApplication +{ + [[NSNotificationCenter defaultCenter] addObserver:self + selector:@selector(resetSourceApplication) + name:UIApplicationDidEnterBackgroundNotification + object:nil]; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKUserDataStore.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKUserDataStore.h new file mode 100644 index 0000000000000..c0266856beb03 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKUserDataStore.h @@ -0,0 +1,48 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import "FBSDKAppEvents+Internal.h" + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(UserDataStore) +@interface FBSDKUserDataStore : NSObject + ++ (void)setAndHashUserEmail:(nullable NSString *)email + firstName:(nullable NSString *)firstName + lastName:(nullable NSString *)lastName + phone:(nullable NSString *)phone + dateOfBirth:(nullable NSString *)dateOfBirth + gender:(nullable NSString *)gender + city:(nullable NSString *)city + state:(nullable NSString *)state + zip:(nullable NSString *)zip + country:(nullable NSString *)country; ++ (void)setAndHashData:(nullable NSString *)data + forType:(FBSDKAppEventUserDataType)type; ++ (void)setHashData:(nullable NSString *)hashData + forType:(FBSDKAppEventUserDataType)type; ++ (nullable NSString *)getHashedData; ++ (nullable NSString *)getHashedDataForType:(FBSDKAppEventUserDataType)type; ++ (void)clearDataForType:(FBSDKAppEventUserDataType)type; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKUserDataStore.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKUserDataStore.m new file mode 100644 index 0000000000000..f49832e474277 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKUserDataStore.m @@ -0,0 +1,199 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKUserDataStore.h" + +#import "FBSDKAppEventsUtility.h" +#import "FBSDKLogger.h" +#import "FBSDKSettings.h" +#import "FBSDKUtility.h" + +static NSString *const FBSDKUserDataKey = @"com.facebook.appevents.UserDataStore.userData"; + +static NSMutableDictionary *hashedUserData; +static dispatch_queue_t serialQueue; + +@implementation FBSDKUserDataStore + ++ (void)initialize +{ + serialQueue = dispatch_queue_create("com.facebook.appevents.UserDataStore", DISPATCH_QUEUE_SERIAL); + NSString *userData = [[NSUserDefaults standardUserDefaults] stringForKey:FBSDKUserDataKey]; + if (userData) { + hashedUserData = (NSMutableDictionary *)[NSJSONSerialization JSONObjectWithData:[userData dataUsingEncoding:NSUTF8StringEncoding] + options:NSJSONReadingMutableContainers + error:nil]; + } + if (!hashedUserData) { + hashedUserData = [[NSMutableDictionary alloc] init]; + } +} + ++ (void)setAndHashUserEmail:(nullable NSString *)email + firstName:(nullable NSString *)firstName + lastName:(nullable NSString *)lastName + phone:(nullable NSString *)phone + dateOfBirth:(nullable NSString *)dateOfBirth + gender:(nullable NSString *)gender + city:(nullable NSString *)city + state:(nullable NSString *)state + zip:(nullable NSString *)zip + country:(nullable NSString *)country +{ + NSMutableDictionary *ud = [[NSMutableDictionary alloc] init]; + if (email) { + ud[FBSDKAppEventEmail] = [FBSDKUserDataStore encryptData:email type:FBSDKAppEventEmail]; + } + if (firstName) { + ud[FBSDKAppEventFirstName] = [FBSDKUserDataStore encryptData:firstName type:FBSDKAppEventFirstName]; + } + if (lastName) { + ud[FBSDKAppEventLastName] = [FBSDKUserDataStore encryptData:lastName type:FBSDKAppEventLastName]; + } + if (phone) { + ud[FBSDKAppEventPhone] = [FBSDKUserDataStore encryptData:phone type:FBSDKAppEventPhone]; + } + if (dateOfBirth) { + ud[FBSDKAppEventDateOfBirth] = [FBSDKUserDataStore encryptData:dateOfBirth type:FBSDKAppEventDateOfBirth]; + } + if (gender) { + ud[FBSDKAppEventGender] = [FBSDKUserDataStore encryptData:gender type:FBSDKAppEventGender]; + } + if (city) { + ud[FBSDKAppEventCity] = [FBSDKUserDataStore encryptData:city type:FBSDKAppEventCity]; + } + if (state) { + ud[FBSDKAppEventState] = [FBSDKUserDataStore encryptData:state type:FBSDKAppEventState]; + } + if (zip) { + ud[FBSDKAppEventZip] = [FBSDKUserDataStore encryptData:zip type:FBSDKAppEventZip]; + } + if (country) { + ud[FBSDKAppEventCountry] = [FBSDKUserDataStore encryptData:country type:FBSDKAppEventCountry]; + } + + dispatch_async(serialQueue, ^{ + hashedUserData = [ud mutableCopy]; + [[NSUserDefaults standardUserDefaults] setObject:[FBSDKUserDataStore stringByHashedData:hashedUserData] + forKey:FBSDKUserDataKey]; + }); +} + ++ (void)setAndHashData:(nullable NSString *)data + forType:(FBSDKAppEventUserDataType)type +{ + [FBSDKUserDataStore setHashData:[FBSDKUserDataStore encryptData:data type:type] + forType:type]; +} + ++ (void)setHashData:(nullable NSString *)hashData + forType:(FBSDKAppEventUserDataType)type +{ + dispatch_async(serialQueue, ^{ + if (!hashData) { + [hashedUserData removeObjectForKey:type]; + } else { + hashedUserData[type] = hashData; + } + [[NSUserDefaults standardUserDefaults] setObject:[FBSDKUserDataStore stringByHashedData:hashedUserData] + forKey:FBSDKUserDataKey]; + }); +} + ++ (void)clearDataForType:(FBSDKAppEventUserDataType)type +{ + [FBSDKUserDataStore setAndHashData:nil forType:type]; +} + ++ (NSString *)getHashedData +{ + __block NSString *hashedUserDataString; + dispatch_sync(serialQueue, ^{ + hashedUserDataString = [FBSDKUserDataStore stringByHashedData:hashedUserData]; + }); + return hashedUserDataString; +} + ++ (NSString *)getHashedDataForType:(FBSDKAppEventUserDataType)type +{ + __block NSString *hashedData; + dispatch_sync(serialQueue, ^{ + hashedData = [hashedUserData objectForKey:type]; + }); + return hashedData; +} + ++ (NSString *)stringByHashedData:(id)hashedData +{ + NSError *error; + NSData *jsonData = [NSJSONSerialization dataWithJSONObject:hashedData + options:0 + error:&error]; + if (jsonData) { + return [[NSString alloc] initWithData:jsonData + encoding:NSUTF8StringEncoding]; + } else { + [FBSDKAppEventsUtility logAndNotify:[NSString stringWithFormat:@"Invalid json object: %@", error]]; + return @""; + } +} + ++ (NSString *)encryptData:(NSString *)data + type:(FBSDKAppEventUserDataType)type +{ + if (data.length == 0 || [FBSDKUserDataStore maybeSHA256Hashed:data]) { + return data; + } + return [FBSDKUtility SHA256Hash:[FBSDKUserDataStore normalizeData:data type:type]]; +} + ++ (NSString *)normalizeData:(NSString *)data + type:(FBSDKAppEventUserDataType)type +{ + NSString *normalizedData = @""; + NSSet *set = [NSSet setWithArray: + @[FBSDKAppEventEmail, FBSDKAppEventFirstName, FBSDKAppEventLastName, FBSDKAppEventCity, FBSDKAppEventState, FBSDKAppEventCountry]]; + if ([set containsObject:type]) { + normalizedData = [data stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]]; + normalizedData = normalizedData.lowercaseString; + } else if ([type isEqualToString:FBSDKAppEventPhone]) { + NSError *error = nil; + NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:@"[^0-9]" + options:NSRegularExpressionCaseInsensitive + error:&error + ]; + normalizedData = [regex stringByReplacingMatchesInString:data + options:0 + range:NSMakeRange(0, data.length) + withTemplate:@"" + ]; + } else if ([type isEqualToString:FBSDKAppEventGender]) { + NSString *temp = [data stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]]; + temp = temp.lowercaseString; + normalizedData = temp.length > 0 ? [temp substringToIndex:1]: @""; + } + return normalizedData; +} + ++ (BOOL)maybeSHA256Hashed:(NSString *)data +{ + NSRange range = [data rangeOfString:@"[A-Fa-f0-9]{64}" options:NSRegularExpressionSearch]; + return (data.length == 64) && (range.location != NSNotFound); +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/RestrictiveDataFilter/FBSDKRestrictiveDataFilterManager.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/RestrictiveDataFilter/FBSDKRestrictiveDataFilterManager.h new file mode 100644 index 0000000000000..7d34dbf1168a8 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/RestrictiveDataFilter/FBSDKRestrictiveDataFilterManager.h @@ -0,0 +1,37 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface FBSDKRestrictiveDataFilterManager : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + ++ (void)enable; ++ (void)updateFilters:(nullable NSDictionary *)restrictiveParams; + ++ (void)processEvents:(NSMutableArray *> *)events; ++ (nullable NSDictionary *)processParameters:(nullable NSDictionary *)parameters + eventName:(NSString *)eventName; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/RestrictiveDataFilter/FBSDKRestrictiveDataFilterManager.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/RestrictiveDataFilter/FBSDKRestrictiveDataFilterManager.m new file mode 100644 index 0000000000000..d6cb571e3c485 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/RestrictiveDataFilter/FBSDKRestrictiveDataFilterManager.m @@ -0,0 +1,165 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKRestrictiveDataFilterManager.h" + +#import "FBSDKBasicUtility.h" +#import "FBSDKTypeUtility.h" + +@interface FBSDKRestrictiveEventFilter : NSObject + +@property (nonatomic, readonly, copy) NSString *eventName; +@property (nonatomic, readonly, copy) NSDictionary *eventParams; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +-(instancetype)initWithEventName:(NSString *)eventName + eventParams:(NSDictionary *)eventParams; + +@end + +@implementation FBSDKRestrictiveEventFilter + +-(instancetype)initWithEventName:(NSString *)eventName + eventParams:(NSDictionary *)eventParams +{ + self = [super init]; + if (self) { + _eventName = eventName; + _eventParams = eventParams; + } + + return self; +} + +@end + +@implementation FBSDKRestrictiveDataFilterManager + +static BOOL isRestrictiveEventFilterEnabled = NO; + +static NSMutableArray *_params; +static NSMutableSet *_deprecatedEvents; + ++ (void)updateFilters:(nullable NSDictionary *)restrictiveParams +{ + if (!isRestrictiveEventFilterEnabled) { + return; + } + if (restrictiveParams.count > 0) { + [_params removeAllObjects]; + [_deprecatedEvents removeAllObjects]; + NSMutableArray *eventFilterArray = [NSMutableArray array]; + NSMutableSet *deprecatedEventSet = [NSMutableSet set]; + for (NSString *eventName in restrictiveParams.allKeys) { + if (restrictiveParams[eventName][@"is_deprecated_event"]) { + [deprecatedEventSet addObject:eventName]; + } + if (restrictiveParams[eventName][@"restrictive_param"]) { + FBSDKRestrictiveEventFilter *restrictiveEventFilter = [[FBSDKRestrictiveEventFilter alloc] initWithEventName:eventName + eventParams:restrictiveParams[eventName][@"restrictive_param"]]; + [eventFilterArray addObject:restrictiveEventFilter]; + } + } + _params = eventFilterArray; + _deprecatedEvents = deprecatedEventSet; + } +} + ++ (nullable NSString *)getMatchedDataTypeWithEventName:(NSString *)eventName + paramKey:(NSString *)paramKey +{ + // match by params in custom events with event name + for (FBSDKRestrictiveEventFilter *filter in _params) { + if ([filter.eventName isEqualToString:eventName]) { + NSString *type = [FBSDKTypeUtility stringValue:filter.eventParams[paramKey]]; + if (type) { + return type; + } + } + } + return nil; +} + ++ (BOOL)isDeprecatedEvent:(NSString *)eventName +{ + return [_deprecatedEvents containsObject:eventName]; +} + ++ (void)processEvents:(NSMutableArray *> *)events +{ + if (!isRestrictiveEventFilterEnabled) { + return; + } + NSArray *> *eventArray = [events copy]; + for (NSDictionary *> *event in eventArray) { + if ([FBSDKRestrictiveDataFilterManager isDeprecatedEvent:event[@"event"][@"_eventName"]]) { + [events removeObject:event]; + } + } +} + ++ (NSDictionary *)processParameters:(NSDictionary *)parameters + eventName:(NSString *)eventName +{ + if (!isRestrictiveEventFilterEnabled) { + return parameters; + } + if (parameters) { + NSMutableDictionary *params = [NSMutableDictionary dictionaryWithDictionary:parameters]; + NSMutableDictionary *restrictedParams = [NSMutableDictionary dictionary]; + + for (NSString *key in [parameters keyEnumerator]) { + NSString *type = [FBSDKRestrictiveDataFilterManager getMatchedDataTypeWithEventName:eventName + paramKey:key]; + if (type) { + [restrictedParams setObject:type forKey:key]; + [params removeObjectForKey:key]; + } + } + + if ([[restrictedParams allKeys] count] > 0) { + NSString *restrictedParamsJSONString = [FBSDKBasicUtility JSONStringForObject:restrictedParams + error:NULL + invalidObjectHandler:NULL]; + [FBSDKBasicUtility dictionary:params setObject:restrictedParamsJSONString forKey:@"_restrictedParams"]; + } + + return [params copy]; + } + + return nil; +} + ++ (void)enable +{ + isRestrictiveEventFilterEnabled = YES; +} + +#pragma mark Helper functions + ++ (BOOL)isMatchedWithPattern:(NSString *)pattern + text:(NSString *)text +{ + NSRegularExpression *regex = [[NSRegularExpression alloc] initWithPattern:pattern options:NSRegularExpressionCaseInsensitive error:nil]; + NSUInteger matches = [regex numberOfMatchesInString:text options:0 range:NSMakeRange(0, text.length)]; + return matches > 0; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLink.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLink.h new file mode 100644 index 0000000000000..c5eb50e4b035f --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLink.h @@ -0,0 +1,69 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import "FBSDKAppLinkTarget.h" + +NS_ASSUME_NONNULL_BEGIN + +/** The version of the App Link protocol that this library supports */ +FOUNDATION_EXPORT NSString *const FBSDKAppLinkVersion +NS_SWIFT_NAME(AppLinkVersion); + +/** + Contains App Link metadata relevant for navigation on this device + derived from the HTML at a given URL. + */ +NS_SWIFT_NAME(AppLink) +@interface FBSDKAppLink : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Creates a FBSDKAppLink with the given list of FBSDKAppLinkTargets and target URL. + + Generally, this will only be used by implementers of the FBSDKAppLinkResolving protocol, + as these implementers will produce App Link metadata for a given URL. + + @param sourceURL the URL from which this App Link is derived + @param targets an ordered list of FBSDKAppLinkTargets for this platform derived + from App Link metadata. + @param webURL the fallback web URL, if any, for the app link. + */ ++ (instancetype)appLinkWithSourceURL:(nullable NSURL *)sourceURL + targets:(NSArray *)targets + webURL:(nullable NSURL *)webURL +NS_SWIFT_NAME(init(sourceURL:targets:webURL:)); + +/** The URL from which this FBSDKAppLink was derived */ +@property (nonatomic, strong, readonly, nullable) NSURL *sourceURL; + +/** + The ordered list of targets applicable to this platform that will be used + for navigation. + */ +@property (nonatomic, copy, readonly) NSArray *targets; + +/** The fallback web URL to use if no targets are installed on this device. */ +@property (nonatomic, strong, readonly, nullable) NSURL *webURL; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLink.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLink.m new file mode 100644 index 0000000000000..57597dd576259 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLink.m @@ -0,0 +1,70 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKAppLink_Internal.h" + +NSString *const FBSDKAppLinkDataParameterName = @"al_applink_data"; +NSString *const FBSDKAppLinkTargetKeyName = @"target_url"; +NSString *const FBSDKAppLinkUserAgentKeyName = @"user_agent"; +NSString *const FBSDKAppLinkExtrasKeyName = @"extras"; +NSString *const FBSDKAppLinkRefererAppLink = @"referer_app_link"; +NSString *const FBSDKAppLinkRefererAppName = @"app_name"; +NSString *const FBSDKAppLinkRefererUrl = @"url"; +NSString *const FBSDKAppLinkVersionKeyName = @"version"; +NSString *const FBSDKAppLinkVersion = @"1.0"; + +@interface FBSDKAppLink () + +@property (nonatomic, strong) NSURL *sourceURL; +@property (nonatomic, copy) NSArray *targets; +@property (nonatomic, strong) NSURL *webURL; + +@property (nonatomic, assign, getter=isBackToReferrer) BOOL backToReferrer; + +@end + +@implementation FBSDKAppLink + ++ (instancetype)appLinkWithSourceURL:(NSURL *)sourceURL + targets:(NSArray *)targets + webURL:(NSURL *)webURL + isBackToReferrer:(BOOL)isBackToReferrer { + FBSDKAppLink *link = [[self alloc] initWithIsBackToReferrer:isBackToReferrer]; + link.sourceURL = sourceURL; + link.targets = [targets copy]; + link.webURL = webURL; + return link; +} + ++ (instancetype)appLinkWithSourceURL:(NSURL *)sourceURL + targets:(NSArray *)targets + webURL:(NSURL *)webURL { + return [self appLinkWithSourceURL:sourceURL + targets:targets + webURL:webURL + isBackToReferrer:NO]; +} + +- (FBSDKAppLink *)initWithIsBackToReferrer:(BOOL)backToReferrer { + if ((self = [super init])) { + _backToReferrer = backToReferrer; + } + return self; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkNavigation.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkNavigation.h new file mode 100644 index 0000000000000..7331872c65eef --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkNavigation.h @@ -0,0 +1,141 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import "FBSDKAppLink.h" +#import "FBSDKAppLinkResolving.h" + +NS_ASSUME_NONNULL_BEGIN + +/** + The result of calling navigate on a FBSDKAppLinkNavigation + */ +typedef NS_ENUM(NSInteger, FBSDKAppLinkNavigationType) { + /** Indicates that the navigation failed and no app was opened */ + FBSDKAppLinkNavigationTypeFailure, + /** Indicates that the navigation succeeded by opening the URL in the browser */ + FBSDKAppLinkNavigationTypeBrowser, + /** Indicates that the navigation succeeded by opening the URL in an app on the device */ + FBSDKAppLinkNavigationTypeApp +} NS_SWIFT_NAME(AppLinkNavigation.Type); + +/** + Describes the callback for appLinkFromURLInBackground. + @param navType the FBSDKAppLink representing the deferred App Link + @param error the error during the request, if any + + */ +typedef void (^FBSDKAppLinkNavigationBlock)(FBSDKAppLinkNavigationType navType, NSError * _Nullable error) +NS_SWIFT_NAME(AppLinkNavigationBlock); + +/** + Represents a pending request to navigate to an App Link. Most developers will + simply use navigateToURLInBackground: to open a URL, but developers can build + custom requests with additional navigation and app data attached to them by + creating FBSDKAppLinkNavigations themselves. + */ +NS_EXTENSION_UNAVAILABLE_IOS("Not available in app extension") +NS_SWIFT_NAME(AppLinkNavigation) +@interface FBSDKAppLinkNavigation : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + The default resolver to be used for App Link resolution. If the developer has not set one explicitly, + a basic, built-in FBSDKWebViewAppLinkResolver will be used. + */ +@property (class, nonatomic, strong) id defaultResolver +NS_SWIFT_NAME(default); + +/** + The extras for the AppLinkNavigation. This will generally contain application-specific + data that should be passed along with the request, such as advertiser or affiliate IDs or + other such metadata relevant on this device. + */ +@property (nonatomic, copy, readonly) NSDictionary *extras; + +/** + The al_applink_data for the AppLinkNavigation. This will generally contain data common to + navigation attempts such as back-links, user agents, and other information that may be used + in routing and handling an App Link request. + */ +@property (nonatomic, copy, readonly) NSDictionary *appLinkData; + +/** The AppLink to navigate to */ +@property (nonatomic, strong, readonly) FBSDKAppLink *appLink; + +/** + Return navigation type for current instance. + No-side-effect version of navigate: + */ +@property (nonatomic, readonly) FBSDKAppLinkNavigationType navigationType; + +/** Creates an AppLinkNavigation with the given link, extras, and App Link data */ ++ (instancetype)navigationWithAppLink:(FBSDKAppLink *)appLink + extras:(NSDictionary *)extras + appLinkData:(NSDictionary *)appLinkData +NS_SWIFT_NAME(init(appLink:extras:appLinkData:)); + +/** + Creates an NSDictionary with the correct format for iOS callback URLs, + to be used as 'appLinkData' argument in the call to navigationWithAppLink:extras:appLinkData: + */ ++ (NSDictionary *> *)callbackAppLinkDataForAppWithName:(NSString *)appName + url:(NSString *)url +NS_SWIFT_NAME(callbackAppLinkData(forApp:url:)); + +/** Performs the navigation */ +- (FBSDKAppLinkNavigationType)navigate:(NSError **)error +__attribute__((swift_error(nonnull_error))); + +/** Returns a FBSDKAppLink for the given URL */ ++ (void)resolveAppLink:(NSURL *)destination handler:(FBSDKAppLinkBlock)handler; + +/** Returns a FBSDKAppLink for the given URL using the given App Link resolution strategy */ ++ (void)resolveAppLink:(NSURL *)destination + resolver:(id)resolver + handler:(FBSDKAppLinkBlock)handler; + +/** Navigates to a FBSDKAppLink and returns whether it opened in-app or in-browser */ ++ (FBSDKAppLinkNavigationType)navigateToAppLink:(FBSDKAppLink *)link error:(NSError **)error +__attribute__((swift_error(nonnull_error))); + +/** + Returns a FBSDKAppLinkNavigationType based on a FBSDKAppLink. + It's essentially a no-side-effect version of navigateToAppLink:error:, + allowing apps to determine flow based on the link type (e.g. open an + internal web view instead of going straight to the browser for regular links.) + */ ++ (FBSDKAppLinkNavigationType)navigationTypeForLink:(FBSDKAppLink *)link; + +/** Navigates to a URL (an asynchronous action) and returns a FBSDKNavigationType */ ++ (void)navigateToURL:(NSURL *)destination handler:(FBSDKAppLinkNavigationBlock)handler; + +/** + Navigates to a URL (an asynchronous action) using the given App Link resolution + strategy and returns a FBSDKNavigationType + */ ++ (void)navigateToURL:(NSURL *)destination + resolver:(id)resolver + handler:(FBSDKAppLinkNavigationBlock)handler; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkNavigation.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkNavigation.m new file mode 100644 index 0000000000000..3da574a0fddb1 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkNavigation.m @@ -0,0 +1,294 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKAppLinkNavigation.h" + +#import "FBSDKAppLinkTarget.h" +#import "FBSDKAppLink_Internal.h" +#import "FBSDKMeasurementEvent_Internal.h" +#import "FBSDKSettings.h" +#import "FBSDKWebViewAppLinkResolver.h" + +FOUNDATION_EXPORT NSString *const FBSDKAppLinkDataParameterName; +FOUNDATION_EXPORT NSString *const FBSDKAppLinkTargetKeyName; +FOUNDATION_EXPORT NSString *const FBSDKAppLinkUserAgentKeyName; +FOUNDATION_EXPORT NSString *const FBSDKAppLinkExtrasKeyName; +FOUNDATION_EXPORT NSString *const FBSDKAppLinkVersionKeyName; +FOUNDATION_EXPORT NSString *const FBSDKAppLinkRefererAppLink; +FOUNDATION_EXPORT NSString *const FBSDKAppLinkRefererAppName; +FOUNDATION_EXPORT NSString *const FBSDKAppLinkRefererUrl; + +static id defaultResolver; + +@interface FBSDKAppLinkNavigation () + +@property (nonatomic, copy) NSDictionary *extras; +@property (nonatomic, copy) NSDictionary *appLinkData; +@property (nonatomic, strong) FBSDKAppLink *appLink; + +@end + +@implementation FBSDKAppLinkNavigation + ++ (instancetype)navigationWithAppLink:(FBSDKAppLink *)appLink + extras:(NSDictionary *)extras + appLinkData:(NSDictionary *)appLinkData { + FBSDKAppLinkNavigation *navigation = [[self alloc] init]; + navigation.appLink = appLink; + navigation.extras = extras; + navigation.appLinkData = appLinkData; + return navigation; +} + ++ (NSDictionary *> *)callbackAppLinkDataForAppWithName:(NSString *)appName + url:(NSString *)url { + return @{FBSDKAppLinkRefererAppLink: @{FBSDKAppLinkRefererAppName: appName, FBSDKAppLinkRefererUrl: url}}; +} + +- (NSString *)stringByEscapingQueryString:(NSString *)string { + return [string stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]]; +} + +- (NSURL *)appLinkURLWithTargetURL:(NSURL *)targetUrl error:(NSError **)error { + NSMutableDictionary *appLinkData = + [NSMutableDictionary dictionaryWithDictionary:self.appLinkData ?: @{}]; + + // Add applink protocol data + if (!appLinkData[FBSDKAppLinkUserAgentKeyName]) { + appLinkData[FBSDKAppLinkUserAgentKeyName] = [NSString stringWithFormat:@"FBSDK %@", FBSDKSettings.sdkVersion]; + } + if (!appLinkData[FBSDKAppLinkVersionKeyName]) { + appLinkData[FBSDKAppLinkVersionKeyName] = FBSDKAppLinkVersion; + } + if (self.appLink.sourceURL.absoluteString) { + appLinkData[FBSDKAppLinkTargetKeyName] = self.appLink.sourceURL.absoluteString; + } + appLinkData[FBSDKAppLinkExtrasKeyName] = self.extras ?: @{}; + + // JSON-ify the applink data + NSError *jsonError = nil; + NSData *jsonBlob = [NSJSONSerialization dataWithJSONObject:appLinkData options:0 error:&jsonError]; + if (!jsonError) { + NSString *jsonString = [[NSString alloc] initWithData:jsonBlob encoding:NSUTF8StringEncoding]; + NSString *encoded = [self stringByEscapingQueryString:jsonString]; + + NSString *endUrlString = [NSString stringWithFormat:@"%@%@%@=%@", + targetUrl.absoluteString, + targetUrl.query ? @"&" : @"?", + FBSDKAppLinkDataParameterName, + encoded]; + + return [NSURL URLWithString:endUrlString]; + } else { + if (error) { + *error = jsonError; + } + + // If there was an error encoding the app link data, fail hard. + return nil; + } +} + +- (FBSDKAppLinkNavigationType)navigate:(NSError **)error { + NSURL *openedURL = nil; + NSError *encodingError = nil; + FBSDKAppLinkNavigationType retType = FBSDKAppLinkNavigationTypeFailure; + + // Find the first eligible/launchable target in the FBSDKAppLink. + for (FBSDKAppLinkTarget *target in self.appLink.targets) { + NSURL *appLinkAppURL = [self appLinkURLWithTargetURL:target.URL error:&encodingError]; + if (encodingError || !appLinkAppURL) { + if (error) { + *error = encodingError; + } + } else if ([[UIApplication sharedApplication] openURL:appLinkAppURL]) { + retType = FBSDKAppLinkNavigationTypeApp; + openedURL = appLinkAppURL; + break; + } + } + + if (!openedURL && self.appLink.webURL) { + // Fall back to opening the url in the browser if available. + NSURL *appLinkBrowserURL = [self appLinkURLWithTargetURL:self.appLink.webURL error:&encodingError]; + if (encodingError || !appLinkBrowserURL) { + // If there was an error encoding the app link data, fail hard. + if (error) { + *error = encodingError; + } + } else if ([[UIApplication sharedApplication] openURL:appLinkBrowserURL]) { + // This was a browser navigation. + retType = FBSDKAppLinkNavigationTypeBrowser; + openedURL = appLinkBrowserURL; + } + } + + [self postAppLinkNavigateEventNotificationWithTargetURL:openedURL + error:error ? *error : nil + type:retType]; + return retType; +} + +- (void)postAppLinkNavigateEventNotificationWithTargetURL:(NSURL *)outputURL error:(NSError *)error type:(FBSDKAppLinkNavigationType)type { + NSString *const EVENT_YES_VAL = @"1"; + NSString *const EVENT_NO_VAL = @"0"; + NSMutableDictionary *logData = + [[NSMutableDictionary alloc] init]; + + NSString *outputURLScheme = outputURL.scheme; + NSString *outputURLString = outputURL.absoluteString; + if (outputURLScheme) { + logData[@"outputURLScheme"] = outputURLScheme; + } + if (outputURLString) { + logData[@"outputURL"] = outputURLString; + } + + NSString *sourceURLString = self.appLink.sourceURL.absoluteString; + NSString *sourceURLHost = self.appLink.sourceURL.host; + NSString *sourceURLScheme = self.appLink.sourceURL.scheme; + if (sourceURLString) { + logData[@"sourceURL"] = sourceURLString; + } + if (sourceURLHost) { + logData[@"sourceHost"] = sourceURLHost; + } + if (sourceURLScheme) { + logData[@"sourceScheme"] = sourceURLScheme; + } + if (error.localizedDescription) { + logData[@"error"] = error.localizedDescription; + } + NSString *success = nil; //no + NSString *linkType = nil; // unknown; + switch (type) { + case FBSDKAppLinkNavigationTypeFailure: + success = EVENT_NO_VAL; + linkType = @"fail"; + break; + case FBSDKAppLinkNavigationTypeBrowser: + success = EVENT_YES_VAL; + linkType = @"web"; + break; + case FBSDKAppLinkNavigationTypeApp: + success = EVENT_YES_VAL; + linkType = @"app"; + break; + default: + break; + } + if (success) { + logData[@"success"] = success; + } + if (linkType) { + logData[@"type"] = linkType; + } + + if (self.appLink.backToReferrer) { + [FBSDKMeasurementEvent postNotificationForEventName:FBSDKAppLinkNavigateBackToReferrerEventName args:logData]; + } else { + [FBSDKMeasurementEvent postNotificationForEventName:FBSDKAppLinkNavigateOutEventName args:logData]; + } +} + ++ (void)resolveAppLink:(NSURL *)destination + resolver:(id)resolver + handler:(FBSDKAppLinkBlock)handler { + [resolver appLinkFromURL:destination handler:handler]; +} + ++ (void)resolveAppLink:(NSURL *)destination handler:(FBSDKAppLinkBlock)handler { + [self resolveAppLink:destination resolver:[self defaultResolver] handler:handler]; +} + ++ (void)navigateToURL:(NSURL *)destination handler:(FBSDKAppLinkNavigationBlock)handler { + [self navigateToURL:destination resolver:[self defaultResolver] handler:handler]; +} + ++ (void)navigateToURL:(NSURL *)destination + resolver:(id)resolver + handler:(FBSDKAppLinkNavigationBlock)handler { + + dispatch_async(dispatch_get_main_queue(), ^{ + [self resolveAppLink:destination + resolver:resolver + handler:^(FBSDKAppLink * _Nullable appLink, NSError * _Nullable error) { + if (error) { + handler(FBSDKAppLinkNavigationTypeFailure, error); + return; + } + + NSError *navigateError = nil; + FBSDKAppLinkNavigationType result = [self navigateToAppLink:appLink error:&navigateError]; + handler(result, navigateError); + }]; + }); +} + ++ (FBSDKAppLinkNavigationType)navigateToAppLink:(FBSDKAppLink *)link error:(NSError **)error { + return [[FBSDKAppLinkNavigation navigationWithAppLink:link + extras:@{} + appLinkData:@{}] navigate:error]; +} + ++ (FBSDKAppLinkNavigationType)navigationTypeForLink:(FBSDKAppLink *)link { + return [[self navigationWithAppLink:link extras:@{} appLinkData:@{}] navigationType]; +} + +- (FBSDKAppLinkNavigationType)navigationType { + FBSDKAppLinkTarget *eligibleTarget = nil; + for (FBSDKAppLinkTarget *target in self.appLink.targets) { + if ([[UIApplication sharedApplication] canOpenURL:target.URL]) { + eligibleTarget = target; + break; + } + } + + if (eligibleTarget != nil) { + NSURL *appLinkURL = [self appLinkURLWithTargetURL:eligibleTarget.URL error:nil]; + if (appLinkURL != nil) { + return FBSDKAppLinkNavigationTypeApp; + } else { + return FBSDKAppLinkNavigationTypeFailure; + } + } + + if (self.appLink.webURL != nil) { + NSURL *appLinkURL = [self appLinkURLWithTargetURL:eligibleTarget.URL error:nil]; + if (appLinkURL != nil) { + return FBSDKAppLinkNavigationTypeBrowser; + } else { + return FBSDKAppLinkNavigationTypeFailure; + } + } + + return FBSDKAppLinkNavigationTypeFailure; +} + ++ (id)defaultResolver { + if (defaultResolver) { + return defaultResolver; + } + return [FBSDKWebViewAppLinkResolver sharedInstance]; +} + ++ (void)setDefaultResolver:(id)resolver { + defaultResolver = resolver; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkResolver.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkResolver.h new file mode 100644 index 0000000000000..85127fd93f1cb --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkResolver.h @@ -0,0 +1,66 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import "FBSDKAppLinkResolving.h" + +NS_ASSUME_NONNULL_BEGIN + +/** + Describes the callback for appLinkFromURLInBackground. + @param appLinks the FBSDKAppLinks representing the deferred App Links + @param error the error during the request, if any + */ +typedef void (^FBSDKAppLinksBlock)(NSDictionary * appLinks, + NSError * _Nullable error) +NS_SWIFT_NAME(AppLinksBlock); + +/** + + Provides an implementation of the FBSDKAppLinkResolving protocol that uses the Facebook App Link + Index API to resolve App Links given a URL. It also provides an additional helper method that can resolve + multiple App Links in a single call. + + Usage of this type requires a client token. See `[FBSDKSettings setClientToken:]` + */ + +NS_SWIFT_NAME(AppLinkResolver) +@interface FBSDKAppLinkResolver : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Asynchronously resolves App Link data for a given array of URLs. + + @param urls The URLs to resolve into an App Link. + @param handler The completion block that will return an App Link for the given URL. + */ +- (void)appLinksFromURLs:(NSArray *)urls handler:(FBSDKAppLinksBlock)handler +NS_EXTENSION_UNAVAILABLE_IOS("Not available in app extension"); + +/** + Allocates and initializes a new instance of FBSDKAppLinkResolver. + */ ++ (instancetype)resolver +NS_SWIFT_NAME(init()); + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkResolver.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkResolver.m new file mode 100644 index 0000000000000..48ecb2496ae36 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkResolver.m @@ -0,0 +1,174 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKAppLinkResolver.h" + +#import + +#import "FBSDKAccessToken.h" +#import "FBSDKAppLink.h" +#import "FBSDKAppLinkTarget.h" +#import "FBSDKGraphRequest+Internal.h" +#import "FBSDKGraphRequestConnection.h" +#import "FBSDKInternalUtility.h" +#import "FBSDKLogger.h" +#import "FBSDKSettings+Internal.h" +#import "FBSDKUtility.h" + +static NSString *const kURLKey = @"url"; +static NSString *const kIOSAppStoreIdKey = @"app_store_id"; +static NSString *const kIOSAppNameKey = @"app_name"; +static NSString *const kWebKey = @"web"; +static NSString *const kIOSKey = @"ios"; +static NSString *const kIPhoneKey = @"iphone"; +static NSString *const kIPadKey = @"ipad"; +static NSString *const kShouldFallbackKey = @"should_fallback"; +static NSString *const kAppLinksKey = @"app_links"; + +@interface FBSDKAppLinkResolver () + +@property (nonatomic, strong) NSMutableDictionary *cachedFBSDKAppLinks; +@property (nonatomic, assign) UIUserInterfaceIdiom userInterfaceIdiom; +@end + +@implementation FBSDKAppLinkResolver + ++ (void)initialize +{ + if (self == [FBSDKAppLinkResolver class]) { + } +} + +- (instancetype)initWithUserInterfaceIdiom:(UIUserInterfaceIdiom)userInterfaceIdiom +{ + if (self = [super init]) { + self.cachedFBSDKAppLinks = [NSMutableDictionary dictionary]; + self.userInterfaceIdiom = userInterfaceIdiom; + } + return self; +} + +- (void)appLinkFromURL:(NSURL *)url handler:(FBSDKAppLinkBlock)handler +{ + [self appLinksFromURLs:@[url] handler:^(NSDictionary *urls, NSError * _Nullable error) { + handler(urls[url], error); + }]; +} + +- (void)appLinksFromURLs:(NSArray *)urls handler:(FBSDKAppLinksBlock)handler +{ + if (![FBSDKSettings clientToken] && ![FBSDKAccessToken currentAccessToken]) { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors + logEntry:@"A user access token or clientToken is required to use FBAppLinkResolver"]; + } + NSMutableDictionary *appLinks = [NSMutableDictionary dictionary]; + NSMutableArray *toFind = [NSMutableArray array]; + NSMutableArray *toFindStrings = [NSMutableArray array]; + + @synchronized (self.cachedFBSDKAppLinks) { + for (NSURL *url in urls) { + if (self.cachedFBSDKAppLinks[url]) { + appLinks[url] = self.cachedFBSDKAppLinks[url]; + } else { + [toFind addObject:url]; +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" + NSString *toFindString = [url.absoluteString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; +#pragma clang diagnostic pop + if (toFindString) { + [toFindStrings addObject:toFindString]; + } + } + } + } + if (toFind.count == 0) { + // All of the URLs have already been found. + handler(_cachedFBSDKAppLinks, nil); + } + NSMutableArray *fields = [NSMutableArray arrayWithObject:kIOSKey]; + + NSString *idiomSpecificField = nil; + + switch (self.userInterfaceIdiom) { + case UIUserInterfaceIdiomPad: + idiomSpecificField = kIPadKey; + break; + case UIUserInterfaceIdiomPhone: + idiomSpecificField = kIPhoneKey; + break; + default: + break; + } + if (idiomSpecificField) { + [fields addObject:idiomSpecificField]; + } + NSString *path = [NSString stringWithFormat:@"?fields=%@.fields(%@)&ids=%@", + kAppLinksKey, + [fields componentsJoinedByString:@","], + [toFindStrings componentsJoinedByString:@","]]; + FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc] initWithGraphPath:path + parameters:nil + flags:FBSDKGraphRequestFlagDoNotInvalidateTokenOnError | FBSDKGraphRequestFlagDisableErrorRecovery]; + + [request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) { + if (error) { + handler(@{}, error); + return; + } + for (NSURL *url in toFind) { + id nestedObject = result[url.absoluteString][kAppLinksKey]; + NSMutableArray *rawTargets = [NSMutableArray array]; + if (idiomSpecificField) { + [rawTargets addObjectsFromArray:nestedObject[idiomSpecificField]]; + } + [rawTargets addObjectsFromArray:nestedObject[kIOSKey]]; + + NSMutableArray *targets = [NSMutableArray arrayWithCapacity:rawTargets.count]; + for (id rawTarget in rawTargets) { + [targets addObject:[FBSDKAppLinkTarget appLinkTargetWithURL:[NSURL URLWithString:rawTarget[kURLKey]] + appStoreId:rawTarget[kIOSAppStoreIdKey] + appName:rawTarget[kIOSAppNameKey]]]; + } + + id webTarget = nestedObject[kWebKey]; + NSString *webFallbackString = webTarget[kURLKey]; + NSURL *fallbackUrl = webFallbackString ? [NSURL URLWithString:webFallbackString] : url; + + NSNumber *shouldFallback = webTarget[kShouldFallbackKey]; + if (shouldFallback != nil && !shouldFallback.boolValue) { + fallbackUrl = nil; + } + + FBSDKAppLink *link = [FBSDKAppLink appLinkWithSourceURL:url + targets:targets + webURL:fallbackUrl]; + @synchronized (self.cachedFBSDKAppLinks) { + self.cachedFBSDKAppLinks[url] = link; + } + appLinks[url] = link; + } + handler(appLinks, nil); + }]; +} + ++ (instancetype)resolver +{ + return [[self alloc] initWithUserInterfaceIdiom:UI_USER_INTERFACE_IDIOM()]; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkResolving.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkResolving.h new file mode 100644 index 0000000000000..69d559101368f --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkResolving.h @@ -0,0 +1,54 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKAppLink; + +/** + Describes the callback for appLinkFromURLInBackground. + @param appLink the FBSDKAppLink representing the deferred App Link + @param error the error during the request, if any + + */ +typedef void (^FBSDKAppLinkBlock)(FBSDKAppLink * _Nullable appLink, NSError * _Nullable error) +NS_SWIFT_NAME(AppLinkBlock); + + +/** + Implement this protocol to provide an alternate strategy for resolving + App Links that may include pre-fetching, caching, or querying for App Link + data from an index provided by a service provider. + */ +NS_SWIFT_NAME(AppLinkResolving) +@protocol FBSDKAppLinkResolving + +/** + Asynchronously resolves App Link data for a given URL. + + @param url The URL to resolve into an App Link. + @param handler The completion block that will return an App Link for the given URL. + */ +- (void)appLinkFromURL:(NSURL *)url handler:(FBSDKAppLinkBlock)handler +NS_EXTENSION_UNAVAILABLE_IOS("Not available in app extension"); + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkReturnToRefererController.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkReturnToRefererController.h new file mode 100644 index 0000000000000..c8c5d48b1851f --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkReturnToRefererController.h @@ -0,0 +1,109 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import +#import + +#import "FBSDKAppLinkReturnToRefererView.h" + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKAppLink; +@class FBSDKAppLinkReturnToRefererController; + +/** + Protocol that a class can implement in order to be notified when the user has navigated back + to the referer of an App Link. + */ +NS_SWIFT_NAME(AppLinkReturnToRefererControllerDelegate) +@protocol FBSDKAppLinkReturnToRefererControllerDelegate + +@optional + +/** Called when the user has tapped to navigate, but before the navigation has been performed. */ +- (void)returnToRefererController:(FBSDKAppLinkReturnToRefererController *)controller + willNavigateToAppLink:(FBSDKAppLink *)appLink +NS_SWIFT_NAME(return(to:willNavigateTo:)); + +/** Called after the navigation has been attempted, with an indication of whether the referer + app link was successfully opened. */ +- (void)returnToRefererController:(FBSDKAppLinkReturnToRefererController *)controller + didNavigateToAppLink:(FBSDKAppLink *)url + type:(FBSDKAppLinkNavigationType)type +NS_SWIFT_NAME(return(to:didNavigateTo:type:)); + +@end + +/** + A controller class that implements default behavior for a FBSDKAppLinkReturnToRefererView, including + the ability to display the view above the navigation bar for navigation-based apps. + */ +NS_EXTENSION_UNAVAILABLE_IOS("Not available in app extension") +NS_SWIFT_NAME(AppLinkReturnToRefererController) +@interface FBSDKAppLinkReturnToRefererController : NSObject + +/** + The delegate that will be notified when the user navigates back to the referer. + */ +@property (nonatomic, weak, nullable) id delegate; + +/** + The FBSDKAppLinkReturnToRefererView this controller is controlling. + */ +@property (nonatomic, strong) FBSDKAppLinkReturnToRefererView *view; + +/** + Initializes a controller suitable for controlling a FBSDKAppLinkReturnToRefererView that is to be displayed + contained within another UIView (i.e., not displayed above the navigation bar). + */ +- (instancetype)init NS_DESIGNATED_INITIALIZER; + +/** + Initializes a controller suitable for controlling a FBSDKAppLinkReturnToRefererView that is to be displayed + displayed above the navigation bar. + + @param navController The Navigation Controller for display above + */ +- (instancetype)initForDisplayAboveNavController:(UINavigationController *)navController +NS_SWIFT_NAME(init(navController:)); + +/** + Removes the view entirely from the navigation controller it is currently displayed in. + */ +- (void)removeFromNavController; + +/** + Shows the FBSDKAppLinkReturnToRefererView with the specified referer information. If nil or missing data, + the view will not be displayed. */ +- (void)showViewForRefererAppLink:(FBSDKAppLink *)refererAppLink +NS_SWIFT_NAME(showView(forReferer:)); + +/** + Shows the FBSDKAppLinkReturnToRefererView with referer information extracted from the specified URL. + If nil or missing referer App Link data, the view will not be displayed. */ +- (void)showViewForRefererURL:(NSURL *)url +NS_SWIFT_NAME(showView(forReferer:)); + +/** + Closes the view, possibly animating it. + */ +- (void)closeViewAnimated:(BOOL)animated; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkReturnToRefererController.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkReturnToRefererController.m new file mode 100644 index 0000000000000..c2268f699c64e --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkReturnToRefererController.m @@ -0,0 +1,238 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKAppLinkReturnToRefererController.h" + +#import "FBSDKAppLink.h" +#import "FBSDKAppLinkReturnToRefererView_Internal.h" +#import "FBSDKURL_Internal.h" + +static const CFTimeInterval kFBSDKViewAnimationDuration = 0.25f; + +@implementation FBSDKAppLinkReturnToRefererController { + UINavigationController *_navigationController; + FBSDKAppLinkReturnToRefererView *_view; +} + +#pragma mark - Object lifecycle + +- (instancetype)init { + return [super init]; +} + +- (instancetype)initForDisplayAboveNavController:(UINavigationController *)navController { + self = [self init]; + if (self) { + _navigationController = navController; + + if (_navigationController != nil) { + NSNotificationCenter *nc = [NSNotificationCenter defaultCenter]; + [nc addObserver:self + selector:@selector(statusBarFrameWillChange:) + name:UIApplicationWillChangeStatusBarFrameNotification + object:nil]; + [nc addObserver:self + selector:@selector(statusBarFrameDidChange:) + name:UIApplicationDidChangeStatusBarFrameNotification + object:nil]; + [nc addObserver:self + selector:@selector(orientationDidChange:) + name:UIDeviceOrientationDidChangeNotification + object:nil]; + } + } + return self; +} + +- (void)dealloc { + _view.delegate = nil; + [[NSNotificationCenter defaultCenter] removeObserver:self]; +} + +#pragma mark - Public API + +- (FBSDKAppLinkReturnToRefererView *)view { + if (!_view) { + self.view = [[FBSDKAppLinkReturnToRefererView alloc] initWithFrame:CGRectZero]; + if (_navigationController) { + [_navigationController.view addSubview:_view]; + } + } + return _view; +} + +- (void)setView:(FBSDKAppLinkReturnToRefererView *)view { + if (_view != view) { + _view.delegate = nil; + } + + _view = view; + _view.delegate = self; + + if (_navigationController) { + _view.includeStatusBarInSize = FBSDKIncludeStatusBarInSizeAlways; + } +} + +- (void)showViewForRefererAppLink:(FBSDKAppLink *)refererAppLink { + self.view.refererAppLink = refererAppLink; + + [_view sizeToFit]; + + if (_navigationController) { + if (!_view.closed) { + dispatch_async(dispatch_get_main_queue(), ^{ + [self moveNavigationBar]; + }); + } + } +} + +- (void)showViewForRefererURL:(NSURL *)url { + FBSDKAppLink *appLink = [FBSDKURL URLForRenderBackToReferrerBarURL:url].appLinkReferer; + [self showViewForRefererAppLink:appLink]; +} + +- (void)removeFromNavController { + if (_navigationController) { + [_view removeFromSuperview]; + _navigationController = nil; + } +} + +#pragma mark - FBSDKAppLinkReturnToRefererViewDelegate + +- (void)returnToRefererViewDidTapInsideCloseButton:(FBSDKAppLinkReturnToRefererView *)view { + [self closeViewAnimated:YES explicitlyClosed:YES]; +} + +- (void)returnToRefererViewDidTapInsideLink:(FBSDKAppLinkReturnToRefererView *)view + link:(FBSDKAppLink *)link { + [self openRefererAppLink:link]; + [self closeViewAnimated:NO explicitlyClosed:NO]; +} + +#pragma mark - Private + +- (void)statusBarFrameWillChange:(NSNotification *)notification { + NSValue *rectValue = [notification.userInfo valueForKey:UIApplicationStatusBarFrameUserInfoKey]; + CGRect newFrame; + [rectValue getValue:&newFrame]; + + if (_navigationController && !_view.closed) { + if (CGRectGetHeight(newFrame) == 40) { + UIViewAnimationOptions options = UIViewAnimationOptionBeginFromCurrentState; + [UIView animateWithDuration:kFBSDKViewAnimationDuration delay:0.0 options:options animations:^{ + self->_view.frame = CGRectMake(0.0, 0.0, CGRectGetWidth(self->_view.bounds), 0.0); + } completion:nil]; + } + } +} + +- (void)statusBarFrameDidChange:(NSNotification *)notification { + NSValue *rectValue = [notification.userInfo valueForKey:UIApplicationStatusBarFrameUserInfoKey]; + CGRect newFrame; + [rectValue getValue:&newFrame]; + + if (_navigationController && !_view.closed) { + if (CGRectGetHeight(newFrame) == 40) { + UIViewAnimationOptions options = UIViewAnimationOptionBeginFromCurrentState; + [UIView animateWithDuration:kFBSDKViewAnimationDuration delay:0.0 options:options animations:^{ + [self->_view sizeToFit]; + [self moveNavigationBar]; + } completion:nil]; + } + } +} + +- (void)orientationDidChange:(NSNotificationCenter *)notification { + if (_navigationController && !_view.closed && CGRectGetHeight(_view.bounds) > 0) { + dispatch_async(dispatch_get_main_queue(), ^{ + [self moveNavigationBar]; + }); + } +} + +- (void)moveNavigationBar { + if (_view.closed || !_view.refererAppLink) { + return; + } + + [self updateNavigationBarY:CGRectGetHeight(_view.bounds)]; +} + +- (void)updateNavigationBarY:(CGFloat)y { + UINavigationBar *navigationBar = _navigationController.navigationBar; + CGRect navigationBarFrame = navigationBar.frame; + CGFloat oldContainerViewY = CGRectGetMaxY(navigationBarFrame); + navigationBarFrame.origin.y = y; + navigationBar.frame = navigationBarFrame; + + CGFloat dy = CGRectGetMaxY(navigationBarFrame) - oldContainerViewY; + UIView *containerView = _navigationController.visibleViewController.view.superview; + containerView.frame = UIEdgeInsetsInsetRect(containerView.frame, UIEdgeInsetsMake(dy, 0.0, 0.0, 0.0)); +} + +- (void)closeViewAnimated:(BOOL)animated { + [self closeViewAnimated:animated explicitlyClosed:YES]; +} + +- (void)closeViewAnimated:(BOOL)animated explicitlyClosed:(BOOL)explicitlyClosed { + void (^closer)(void) = ^{ + if (self->_navigationController) { + [self updateNavigationBarY:self->_view.statusBarHeight]; + } + + CGRect frame = self->_view.frame; + frame.size.height = 0.0; + self->_view.frame = frame; + }; + + if (animated) { + [UIView animateWithDuration:kFBSDKViewAnimationDuration animations:^{ + closer(); + } completion:^(BOOL finished) { + if (explicitlyClosed) { + self->_view.closed = YES; + } + }]; + } else { + closer(); + if (explicitlyClosed) { + self->_view.closed = YES; + } + } +} + +- (void)openRefererAppLink:(FBSDKAppLink *)refererAppLink { + if (refererAppLink) { + id delegate = _delegate; + if ([delegate respondsToSelector:@selector(returnToRefererController:willNavigateToAppLink:)]) { + [delegate returnToRefererController:self willNavigateToAppLink:refererAppLink]; + } + + NSError *error = nil; + FBSDKAppLinkNavigationType type = [FBSDKAppLinkNavigation navigateToAppLink:refererAppLink error:&error]; + + if ([delegate respondsToSelector:@selector(returnToRefererController:didNavigateToAppLink:type:)]) { + [delegate returnToRefererController:self didNavigateToAppLink:refererAppLink type:type]; + } + } +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkReturnToRefererView.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkReturnToRefererView.h new file mode 100644 index 0000000000000..e36366ae475e5 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkReturnToRefererView.h @@ -0,0 +1,94 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import +#import + +#import "FBSDKAppLinkNavigation.h" + +NS_ASSUME_NONNULL_BEGIN + +typedef NS_ENUM(NSUInteger, FBSDKIncludeStatusBarInSize) { + FBSDKIncludeStatusBarInSizeNever, + FBSDKIncludeStatusBarInSizeAlways, +} NS_SWIFT_NAME(FBAppLinkReturnToRefererView.StatusBarSizeInclude); + +@class FBSDKAppLinkReturnToRefererView; +@class FBSDKURL; + +/** + Protocol that a class can implement in order to be notified when the user has navigated back + to the referer of an App Link. + */ +NS_SWIFT_NAME(AppLinkReturnToRefererViewDelegate) +@protocol FBSDKAppLinkReturnToRefererViewDelegate + +/** + Called when the user has tapped inside the close button. + */ +- (void)returnToRefererViewDidTapInsideCloseButton:(FBSDKAppLinkReturnToRefererView *)view +NS_SWIFT_NAME(returnToRefererViewDidTapInsideCloseButton(_:)); + +/** + Called when the user has tapped inside the App Link portion of the view. + */ +- (void)returnToRefererViewDidTapInsideLink:(FBSDKAppLinkReturnToRefererView *)view + link:(FBSDKAppLink *)link +NS_SWIFT_NAME(returnToRefererView(_:didTapInside:)); + +@end + +/** + Provides a UIView that displays a button allowing users to navigate back to the + application that launched the App Link currently being handled, if the App Link + contained referer data. The user can also close the view by clicking a close button + rather than navigating away. If the view is provided an App Link that does not contain + referer data, it will have zero size and no UI will be displayed. + */ +NS_EXTENSION_UNAVAILABLE_IOS("Not available in app extension") +NS_SWIFT_NAME(FBAppLinkReturnToRefererView) +@interface FBSDKAppLinkReturnToRefererView : UIView + +/** + The delegate that will be notified when the user navigates back to the referer. + */ +@property (nonatomic, weak, nullable) id delegate; + +/** + The color of the text label and close button. + */ +@property (nonatomic, strong) UIColor *textColor; + +@property (nonatomic, strong) FBSDKAppLink *refererAppLink; + +/** + Indicates whether to extend the size of the view to include the current status bar + size, for use in scenarios where the view might extend under the status bar on iOS 7 and + above; this property has no effect on earlier versions of iOS. + */ +@property (nonatomic, assign) FBSDKIncludeStatusBarInSize includeStatusBarInSize +NS_SWIFT_NAME(statusBarSizeInclude); + +/** + Indicates whether the user has closed the view by clicking the close button. + */ +@property (nonatomic, assign, getter=isClosed) BOOL closed; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkReturnToRefererView.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkReturnToRefererView.m new file mode 100644 index 0000000000000..fa5f2b1588ba9 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkReturnToRefererView.m @@ -0,0 +1,266 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKAppLinkReturnToRefererView.h" + +#import "FBSDKAppLink.h" +#import "FBSDKAppLinkTarget.h" + +static const CGFloat FBSDKMarginX = 8.5f; +static const CGFloat FBSDKMarginY = 8.5f; + +static NSString *const FBSDKRefererAppLink = @"referer_app_link"; +static NSString *const FBSDKRefererAppName = @"app_name"; +static NSString *const FBSDKRefererUrl = @"url"; +static const CGFloat FBSDKCloseButtonWidth = 12.0; +static const CGFloat FBSDKCloseButtonHeight = 12.0; + +@interface FBSDKAppLinkReturnToRefererView () + +@property (nonatomic, strong) UILabel *labelView; +@property (nonatomic, strong) UIButton *closeButton; +@property (nonatomic, strong) UITapGestureRecognizer *insideTapGestureRecognizer; + +@end + +@implementation FBSDKAppLinkReturnToRefererView { + BOOL _explicitlyHidden; +} + +#pragma mark - Initialization + +- (instancetype)initWithFrame:(CGRect)frame { + self = [super initWithFrame:frame]; + if (self) { + [self commonInit]; + [self sizeToFit]; + } + return self; +} + +- (instancetype)initWithCoder:(NSCoder *)aDecoder { + self = [super initWithCoder:aDecoder]; + if (self) { + [self commonInit]; + } + return self; +} + +- (void)commonInit { + // Initialization code + _includeStatusBarInSize = FBSDKIncludeStatusBarInSizeAlways; + + // iOS 7 system blue color + self.backgroundColor = [UIColor colorWithRed:0.0f green:122.0f / 255.0f blue:1.0f alpha:1.0f]; + self.textColor = [UIColor whiteColor]; + self.clipsToBounds = YES; + + [self initViews]; +} + +- (void)initViews { + if (!_labelView && !_closeButton) { + _closeButton = [UIButton buttonWithType:UIButtonTypeCustom]; + _closeButton.backgroundColor = [UIColor clearColor]; + _closeButton.userInteractionEnabled = YES; + _closeButton.clipsToBounds = YES; + _closeButton.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleTopMargin; + _closeButton.contentMode = UIViewContentModeCenter; + [_closeButton addTarget:self action:@selector(closeButtonTapped:) forControlEvents:UIControlEventTouchUpInside]; + + [self addSubview:_closeButton]; + + _labelView = [[UILabel alloc] initWithFrame:CGRectZero]; + _labelView.font = [UIFont systemFontOfSize:[UIFont smallSystemFontSize]]; + _labelView.textColor = [UIColor whiteColor]; + _labelView.backgroundColor = [UIColor clearColor]; + _labelView.textAlignment = NSTextAlignmentCenter; + _labelView.clipsToBounds = YES; + [self updateLabelText]; + [self addSubview:_labelView]; + + _insideTapGestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(onTapInside:)]; + _labelView.userInteractionEnabled = YES; + [_labelView addGestureRecognizer:_insideTapGestureRecognizer]; + + [self updateColors]; + } +} + +#pragma mark - Layout + +- (CGSize)intrinsicContentSize { + CGSize size = self.bounds.size; + if (_closed || !self.hasRefererData) { + size.height = 0.0; + } else { + CGSize labelSize = [_labelView sizeThatFits:size]; + size = CGSizeMake(size.width, labelSize.height + 2 * FBSDKMarginY + self.statusBarHeight); + } + return size; +} + +- (void)layoutSubviews { + [super layoutSubviews]; + + CGRect bounds = self.bounds; + + _labelView.preferredMaxLayoutWidth = _labelView.bounds.size.width; + CGSize labelSize = [_labelView sizeThatFits:bounds.size]; + _labelView.frame = CGRectMake(FBSDKMarginX, + CGRectGetMaxY(bounds) - labelSize.height - 1.5f * FBSDKMarginY, + CGRectGetMaxX(bounds) - FBSDKCloseButtonWidth - 3 * FBSDKMarginX, + labelSize.height + FBSDKMarginY); + + _closeButton.frame = CGRectMake(CGRectGetMaxX(bounds) - FBSDKCloseButtonWidth - 2 * FBSDKMarginX, + _labelView.center.y - FBSDKCloseButtonHeight / 2.0f - FBSDKMarginY, + FBSDKCloseButtonWidth + 2 * FBSDKMarginX, + FBSDKCloseButtonHeight + 2 * FBSDKMarginY); +} + +- (CGSize)sizeThatFits:(CGSize)size { + if (_closed || !self.hasRefererData) { + size = CGSizeMake(size.width, 0.0); + } else { + CGSize labelSize = [_labelView sizeThatFits:size]; + size = CGSizeMake(size.width, labelSize.height + 2 * FBSDKMarginY + self.statusBarHeight); + } + return size; +} + +- (CGFloat)statusBarHeight { + UIApplication *application = [UIApplication sharedApplication]; + + BOOL include; + switch (_includeStatusBarInSize) { + case FBSDKIncludeStatusBarInSizeAlways: + include = YES; + break; + case FBSDKIncludeStatusBarInSizeNever: + include = NO; + break; + } + if (include && !application.statusBarHidden) { + BOOL landscape = UIInterfaceOrientationIsLandscape(application.statusBarOrientation); + CGRect statusBarFrame = application.statusBarFrame; + return landscape ? CGRectGetWidth(statusBarFrame) : CGRectGetHeight(statusBarFrame); + } + + return 0; +} + +#pragma mark - Public API + +- (void)setIncludeStatusBarInSize:(FBSDKIncludeStatusBarInSize)includeStatusBarInSize { + _includeStatusBarInSize = includeStatusBarInSize; + [self setNeedsLayout]; + [self invalidateIntrinsicContentSize]; +} + +- (void)setTextColor:(UIColor *)textColor { + _textColor = textColor; + [self updateColors]; +} + +- (void)setRefererAppLink:(FBSDKAppLink *)refererAppLink { + _refererAppLink = refererAppLink; + [self updateLabelText]; + [self updateHidden]; + [self invalidateIntrinsicContentSize]; +} + +- (void)setClosed:(BOOL)closed { + if (_closed != closed) { + _closed = closed; + [self updateHidden]; + [self invalidateIntrinsicContentSize]; + } +} + +- (void)setHidden:(BOOL)hidden { + _explicitlyHidden = hidden; + [self updateHidden]; +} + +#pragma mark - Private + +- (void)updateLabelText { + NSString *appName = (_refererAppLink && _refererAppLink.targets[0]) ? _refererAppLink.targets[0].appName : nil; + _labelView.text = [self localizedLabelForReferer:appName]; +} + +- (void)updateColors { + UIImage *closeButtonImage = [self drawCloseButtonImageWithColor:_textColor]; + + _labelView.textColor = _textColor; + [_closeButton setImage:closeButtonImage forState:UIControlStateNormal]; +} + +- (UIImage *)drawCloseButtonImageWithColor:(UIColor *)color { + + UIGraphicsBeginImageContextWithOptions(CGSizeMake(FBSDKCloseButtonWidth, FBSDKCloseButtonHeight), NO, 0.0f); + + CGContextRef context = UIGraphicsGetCurrentContext(); + + CGContextSetStrokeColorWithColor(context, color.CGColor); + CGContextSetFillColorWithColor(context, color.CGColor); + + CGContextSetLineWidth(context, 1.25f); + + CGFloat inset = 0.5f; + + CGContextMoveToPoint(context, inset, inset); + CGContextAddLineToPoint(context, FBSDKCloseButtonWidth - inset, FBSDKCloseButtonHeight - inset); + CGContextStrokePath(context); + + CGContextMoveToPoint(context, FBSDKCloseButtonWidth - inset, inset); + CGContextAddLineToPoint(context, inset, FBSDKCloseButtonHeight - inset); + CGContextStrokePath(context); + + UIImage *result = UIGraphicsGetImageFromCurrentImageContext(); + UIGraphicsEndImageContext(); + + return result; +} + +- (NSString *)localizedLabelForReferer:(NSString *)refererName { + if (!refererName) { + return nil; + } + + NSString *format = NSLocalizedString(@"Touch to return to %1$@", @"Format for the string to return to a calling app."); + return [NSString stringWithFormat:format, refererName]; +} + +- (BOOL)hasRefererData { + return _refererAppLink && _refererAppLink.targets[0]; +} + +- (void)closeButtonTapped:(id)sender { + [_delegate returnToRefererViewDidTapInsideCloseButton:self]; +} + +- (void)onTapInside:(UIGestureRecognizer *)sender { + [_delegate returnToRefererViewDidTapInsideLink:self link:_refererAppLink]; +} + +- (void)updateHidden { + super.hidden = _explicitlyHidden || _closed || !self.hasRefererData; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkTarget.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkTarget.h new file mode 100644 index 0000000000000..af3e5ee47073c --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkTarget.h @@ -0,0 +1,50 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Represents a target defined in App Link metadata, consisting of at least + a URL, and optionally an App Store ID and name. + */ +NS_SWIFT_NAME(AppLinkTarget) +@interface FBSDKAppLinkTarget : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** Creates a FBSDKAppLinkTarget with the given app site and target URL. */ ++ (instancetype)appLinkTargetWithURL:(nullable NSURL *)url + appStoreId:(nullable NSString *)appStoreId + appName:(NSString *)appName +NS_SWIFT_NAME(init(url:appStoreId:appName:)); + +/** The URL prefix for this app link target */ +@property (nonatomic, strong, readonly, nullable) NSURL *URL; + +/** The app ID for the app store */ +@property (nonatomic, copy, readonly, nullable) NSString *appStoreId; + +/** The name of the app */ +@property (nonatomic, copy, readonly) NSString *appName; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkTarget.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkTarget.m new file mode 100644 index 0000000000000..250ed1a1cadb6 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkTarget.m @@ -0,0 +1,41 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKAppLinkTarget.h" + +@interface FBSDKAppLinkTarget () + +@property (nonatomic, strong) NSURL *URL; +@property (nonatomic, copy) NSString *appStoreId; +@property (nonatomic, copy) NSString *appName; + +@end + +@implementation FBSDKAppLinkTarget + ++ (instancetype)appLinkTargetWithURL:(NSURL *)url + appStoreId:(NSString *)appStoreId + appName:(NSString *)appName { + FBSDKAppLinkTarget *target = [[self alloc] init]; + target.URL = url; + target.appStoreId = appStoreId; + target.appName = appName; + return target; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkUtility.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkUtility.h new file mode 100644 index 0000000000000..44cc91963b829 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkUtility.h @@ -0,0 +1,80 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Describes the callback for fetchDeferredAppLink. + @param url the url representing the deferred App Link + @param error the error during the request, if any + + + The url may also have a fb_click_time_utc query parameter that + represents when the click occurred that caused the deferred App Link to be created. + */ +typedef void (^FBSDKURLBlock)(NSURL *_Nullable url, NSError *_Nullable error) +NS_SWIFT_NAME(URLBlock); + + +/** + Class containing App Links related utility methods. + */ +NS_SWIFT_NAME(AppLinkUtility) +@interface FBSDKAppLinkUtility : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Call this method from the main thread to fetch deferred applink data if you use Mobile App + Engagement Ads (https://developers.facebook.com/docs/ads-for-apps/mobile-app-ads-engagement). + This may require a network round trip. If successful, the handler is invoked with the link + data (this will only return a valid URL once, and future calls will result in a nil URL + value in the callback). + + @param handler the handler to be invoked if there is deferred App Link data + + + The handler may contain an NSError instance to capture any errors. In the + common case where there simply was no app link data, the NSError instance will be nil. + + This method should only be called from a location that occurs after any launching URL has + been processed (e.g., you should call this method from your application delegate's + applicationDidBecomeActive:). + */ ++ (void)fetchDeferredAppLink:(nullable FBSDKURLBlock)handler; + +/* + Call this method to fetch promotion code from the url, if it's present. + + @param url App Link url that was passed to the app. + + @return Promotion code string. + + + Call this method to fetch App Invite Promotion Code from applink if present. + This can be used to fetch the promotion code that was associated with the invite when it + was created. This method should be called with the url from the openURL method. +*/ ++ (nullable NSString *)appInvitePromotionCodeFromURL:(NSURL *)url; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkUtility.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkUtility.m new file mode 100644 index 0000000000000..f709296cce2d9 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkUtility.m @@ -0,0 +1,102 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKAppLinkUtility.h" + +#import "FBSDKAppEventsUtility.h" +#import "FBSDKGraphRequest.h" +#import "FBSDKInternalUtility.h" +#import "FBSDKSettings.h" +#import "FBSDKURL.h" +#import "FBSDKUtility.h" + +static NSString *const FBSDKLastDeferredAppLink = @"com.facebook.sdk:lastDeferredAppLink%@"; +static NSString *const FBSDKDeferredAppLinkEvent = @"DEFERRED_APP_LINK"; + +@implementation FBSDKAppLinkUtility {} + ++ (void)fetchDeferredAppLink:(FBSDKURLBlock)handler +{ + NSAssert([NSThread isMainThread], @"FBSDKAppLink fetchDeferredAppLink: must be invoked from main thread."); + + NSString *appID = [FBSDKSettings appID]; + + // Deferred app links are only currently used for engagement ads, thus we consider the app to be an advertising one. + // If this is considered for organic, non-ads scenarios, we'll need to retrieve the FBAppEventsUtility.shouldAccessAdvertisingID + // before we make this call. + NSMutableDictionary *deferredAppLinkParameters = + [FBSDKAppEventsUtility activityParametersDictionaryForEvent:FBSDKDeferredAppLinkEvent + implicitEventsOnly:NO + shouldAccessAdvertisingID:YES]; + + FBSDKGraphRequest *deferredAppLinkRequest = [[FBSDKGraphRequest alloc] initWithGraphPath:[NSString stringWithFormat:@"%@/activities", appID, nil] + parameters:deferredAppLinkParameters + tokenString:nil + version:nil + HTTPMethod:FBSDKHTTPMethodPOST]; + + [deferredAppLinkRequest startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, + id result, + NSError *error) { + NSURL *applinkURL = nil; + if (!error) { + NSString *appLinkString = result[@"applink_url"]; + if (appLinkString) { + applinkURL = [NSURL URLWithString:appLinkString]; + + NSString *createTimeUtc = result[@"click_time"]; + if (createTimeUtc) { + // append/translate the create_time_utc so it can be used by clients + NSString *modifiedURLString = [applinkURL.absoluteString + stringByAppendingFormat:@"%@fb_click_time_utc=%@", + (applinkURL.query) ? @"&" : @"?" , + createTimeUtc]; + applinkURL = [NSURL URLWithString:modifiedURLString]; + } + } + } + + if (handler) { + dispatch_async(dispatch_get_main_queue(), ^{ + handler(applinkURL, error); + }); + } + }]; +} + ++ (NSString *)appInvitePromotionCodeFromURL:(NSURL *)url +{ + FBSDKURL *parsedUrl = [FBSDKURL URLWithURL:url]; + NSDictionary *extras = parsedUrl.appLinkExtras; + if (extras) { + NSString *deeplinkContextString = extras[@"deeplink_context"]; + + // Parse deeplinkContext and extract promo code + if (deeplinkContextString.length > 0) { + NSError *error = nil; + NSDictionary *deeplinkContextData = [FBSDKBasicUtility objectForJSONString:deeplinkContextString error:&error]; + if (!error && [deeplinkContextData isKindOfClass:[NSDictionary class]]) { + return deeplinkContextData[@"promo_code"]; + } + } + } + + return nil; + +} +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKWebViewAppLinkResolver.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKWebViewAppLinkResolver.h new file mode 100644 index 0000000000000..69fd2b5548b1f --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKWebViewAppLinkResolver.h @@ -0,0 +1,40 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import "FBSDKAppLinkResolving.h" + +NS_ASSUME_NONNULL_BEGIN + +/** + A reference implementation for an App Link resolver that uses a hidden WKWebView + to parse the HTML containing App Link metadata. + */ +NS_SWIFT_NAME(WebViewAppLinkResolver) +@interface FBSDKWebViewAppLinkResolver : NSObject + +/** + Gets the instance of a FBSDKWebViewAppLinkResolver. + */ +@property (class, nonatomic, readonly, strong) FBSDKWebViewAppLinkResolver *sharedInstance +NS_SWIFT_NAME(shared); + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKWebViewAppLinkResolver.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKWebViewAppLinkResolver.m new file mode 100644 index 0000000000000..51279d42998a8 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKWebViewAppLinkResolver.m @@ -0,0 +1,319 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKWebViewAppLinkResolver.h" + +#import +#import + +#import "FBSDKAppLink.h" +#import "FBSDKAppLinkTarget.h" + +/** + Describes the callback for appLinkFromURLInBackground. + @param result the results from following redirects + @param error the error during the request, if any + + */ +typedef void (^FBSDKURLFollowRedirectsBlock)(NSDictionary *result, NSError * _Nullable error) +NS_SWIFT_NAME(URLFollowRedirectsBlock); + +// Defines JavaScript to extract app link tags from HTML content +static NSString *const FBSDKWebViewAppLinkResolverTagExtractionJavaScript = @"" +"(function() {" +" var metaTags = document.getElementsByTagName('meta');" +" var results = [];" +" for (var i = 0; i < metaTags.length; i++) {" +" var property = metaTags[i].getAttribute('property');" +" if (property && property.substring(0, 'al:'.length) === 'al:') {" +" var tag = { \"property\": metaTags[i].getAttribute('property') };" +" if (metaTags[i].hasAttribute('content')) {" +" tag['content'] = metaTags[i].getAttribute('content');" +" }" +" results.push(tag);" +" }" +" }" +" return JSON.stringify(results);" +"})()"; +static NSString *const FBSDKWebViewAppLinkResolverIOSURLKey = @"url"; +static NSString *const FBSDKWebViewAppLinkResolverIOSAppStoreIdKey = @"app_store_id"; +static NSString *const FBSDKWebViewAppLinkResolverIOSAppNameKey = @"app_name"; +static NSString *const FBSDKWebViewAppLinkResolverDictionaryValueKey = @"_value"; +static NSString *const FBSDKWebViewAppLinkResolverPreferHeader = @"Prefer-Html-Meta-Tags"; +static NSString *const FBSDKWebViewAppLinkResolverMetaTagPrefix = @"al"; +static NSString *const FBSDKWebViewAppLinkResolverWebKey = @"web"; +static NSString *const FBSDKWebViewAppLinkResolverIOSKey = @"ios"; +static NSString *const FBSDKWebViewAppLinkResolverIPhoneKey = @"iphone"; +static NSString *const FBSDKWebViewAppLinkResolverIPadKey = @"ipad"; +static NSString *const FBSDKWebViewAppLinkResolverWebURLKey = @"url"; +static NSString *const FBSDKWebViewAppLinkResolverShouldFallbackKey = @"should_fallback"; + +@interface FBSDKWebViewAppLinkResolverWebViewDelegate : NSObject + +@property (nonatomic, copy) void (^didFinishLoad)(WKWebView *webView); +@property (nonatomic, copy) void (^didFailLoadWithError)(WKWebView *webView, NSError *error); +@property (nonatomic, assign) BOOL hasLoaded; + +@end + +@implementation FBSDKWebViewAppLinkResolverWebViewDelegate + +- (void)webView:(WKWebView *)webView didFinishNavigation:(WKNavigation *)navigation +{ + if (self.didFinishLoad) { + self.didFinishLoad(webView); + } +} + +- (void)webView:(WKWebView *)webView didFailNavigation:(WKNavigation *)navigation withError:(NSError *)error +{ + if (self.didFailLoadWithError) { + self.didFailLoadWithError(webView, error); + } +} + +- (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigationAction *)navigationAction decisionHandler:(void (^)(WKNavigationActionPolicy))decisionHandler +{ + if (self.hasLoaded) { + self.didFinishLoad(webView); + decisionHandler(WKNavigationActionPolicyCancel); + } + + self.hasLoaded = YES; + decisionHandler(WKNavigationActionPolicyAllow); +} + +@end + +@implementation FBSDKWebViewAppLinkResolver + ++ (instancetype)sharedInstance { + static id instance; + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + instance = [[self alloc] init]; + }); + return instance; +} + +- (void)followRedirects:(NSURL *)url handler:(FBSDKURLFollowRedirectsBlock)handler +{ + // This task will be resolved with either the redirect NSURL + // or a dictionary with the response data to be returned. + void (^completion)(NSURLResponse *response, NSData *data, NSError *error) = ^(NSURLResponse *response, NSData *data, NSError *error) { + if (error) { + handler(nil, error); + return; + } + + if ([response isKindOfClass:[NSHTTPURLResponse class]]) { + NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *)response; + + // NSURLConnection usually follows redirects automatically, but the + // documentation is unclear what the default is. This helps it along. + if (httpResponse.statusCode >= 300 && httpResponse.statusCode < 400) { + NSString *redirectString = httpResponse.allHeaderFields[@"Location"]; + NSURL *redirectURL = [NSURL URLWithString:redirectString]; + [self followRedirects:redirectURL handler:handler]; + return; + } + } + + handler(@{ @"response" : response, @"data" : data }, nil); + }; + + NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url]; + [request setValue:FBSDKWebViewAppLinkResolverMetaTagPrefix forHTTPHeaderField:FBSDKWebViewAppLinkResolverPreferHeader]; + + NSURLSession *session = [NSURLSession sharedSession]; + [[session dataTaskWithRequest:request completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { + completion(response, data, error); + }] resume]; +} + +- (void)appLinkFromURL:(NSURL *)url handler:(FBSDKAppLinkBlock)handler +{ + dispatch_async(dispatch_get_main_queue(), ^{ + [self followRedirects:url handler:^(NSDictionary *result, NSError * _Nullable error) { + + if (error) { + handler(nil, error); + return; + } + + NSData *responseData = result[@"data"]; + NSHTTPURLResponse *response = result[@"response"]; + + WKWebView *webView = [[WKWebView alloc] init]; + + FBSDKWebViewAppLinkResolverWebViewDelegate *listener = [[FBSDKWebViewAppLinkResolverWebViewDelegate alloc] init]; + __block FBSDKWebViewAppLinkResolverWebViewDelegate *retainedListener = listener; + listener.didFinishLoad = ^(WKWebView *view) { + if (retainedListener) { + [self getALDataFromLoadedPage:view handler:^(NSDictionary *ogData) { + [view removeFromSuperview]; + view.navigationDelegate = nil; + retainedListener = nil; + handler([self appLinkFromALData:ogData destination:url], nil); + }]; + } + }; + listener.didFailLoadWithError = ^(WKWebView *view, NSError *loadError) { + if (retainedListener) { + [view removeFromSuperview]; + view.navigationDelegate = nil; + retainedListener = nil; + handler(nil, loadError); + } + }; + webView.navigationDelegate = listener; + webView.hidden = YES; + if (@available(iOS 9.0, *)) { + [webView loadData:responseData + MIMEType:response.MIMEType + characterEncodingName:response.textEncodingName + baseURL:response.URL]; + } else { + NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url]; + [request setValue:FBSDKWebViewAppLinkResolverMetaTagPrefix forHTTPHeaderField:FBSDKWebViewAppLinkResolverPreferHeader]; + [webView loadRequest:request]; + } + + UIWindow *window = [UIApplication sharedApplication].windows.firstObject; + [window addSubview:webView]; + }]; + }); +} + +/* + Builds up a data structure filled with the app link data from the meta tags on a page. + The structure of this object is a dictionary where each key holds an array of app link + data dictionaries. Values are stored in a key called "_value". + */ +- (NSDictionary *)parseALData:(NSArray *> *)dataArray { + NSMutableDictionary *al = [NSMutableDictionary dictionary]; + for (NSDictionary *tag in dataArray) { + NSString *name = tag[@"property"]; + if (![name isKindOfClass:[NSString class]]) { + continue; + } + NSArray *nameComponents = [name componentsSeparatedByString:@":"]; + if (![nameComponents[0] isEqualToString:FBSDKWebViewAppLinkResolverMetaTagPrefix]) { + continue; + } + NSMutableDictionary *root = al; + for (NSUInteger i = 1; i < nameComponents.count; i++) { + NSMutableArray *> *children = root[nameComponents[i]]; + if (!children) { + children = [NSMutableArray array]; + root[nameComponents[i]] = children; + } + NSMutableDictionary *child = children.lastObject; + if (!child || i == nameComponents.count - 1) { + child = [NSMutableDictionary dictionary]; + [children addObject:child]; + } + root = child; + } + if (tag[@"content"]) { + root[FBSDKWebViewAppLinkResolverDictionaryValueKey] = tag[@"content"]; + } + } + return al; +} + +- (void)getALDataFromLoadedPage:(WKWebView *)webView + handler:(void (^)(NSDictionary *))handler +{ + // Run some JavaScript in the webview to fetch the meta tags. + [webView evaluateJavaScript:FBSDKWebViewAppLinkResolverTagExtractionJavaScript + completionHandler:^(id _Nullable evaluateResult, NSError * _Nullable error) { + NSString *jsonString = [evaluateResult isKindOfClass:[NSString class]] ? evaluateResult : nil; + error = nil; + NSArray *> *arr = + [NSJSONSerialization JSONObjectWithData:[jsonString dataUsingEncoding:NSUTF8StringEncoding] + options:0 + error:&error]; + handler([self parseALData:arr]); + }]; +} + +/* + Converts app link data into a FBSDKAppLink containing the targets relevant for this platform. + */ +- (FBSDKAppLink *)appLinkFromALData:(NSDictionary *)appLinkDict destination:(NSURL *)destination { + NSMutableArray *linkTargets = [NSMutableArray array]; + + NSArray *platformData = nil; + + const UIUserInterfaceIdiom idiom = UI_USER_INTERFACE_IDIOM(); + if (idiom == UIUserInterfaceIdiomPad) { + platformData = @[ appLinkDict[FBSDKWebViewAppLinkResolverIPadKey] ?: @{}, + appLinkDict[FBSDKWebViewAppLinkResolverIOSKey] ?: @{} ]; + } else if (idiom == UIUserInterfaceIdiomPhone) { + platformData = @[ appLinkDict[FBSDKWebViewAppLinkResolverIPhoneKey] ?: @{}, + appLinkDict[FBSDKWebViewAppLinkResolverIOSKey] ?: @{} ]; + } else { + // Future-proofing. Other User Interface idioms should only hit ios. + platformData = @[ appLinkDict[FBSDKWebViewAppLinkResolverIOSKey] ?: @{} ]; + } + + for (NSArray *platformObjects in platformData) { + for (NSDictionary *platformDict in platformObjects) { + // The schema requires a single url/app store id/app name, + // but we could find multiple of them. We'll make a best effort + // to interpret this data. + NSArray *> *urls = platformDict[FBSDKWebViewAppLinkResolverIOSURLKey]; + NSArray *> *appStoreIds = platformDict[FBSDKWebViewAppLinkResolverIOSAppStoreIdKey]; + NSArray *> *appNames = platformDict[FBSDKWebViewAppLinkResolverIOSAppNameKey]; + + NSUInteger maxCount = MAX(urls.count, MAX(appStoreIds.count, appNames.count)); + + for (NSUInteger i = 0; i < maxCount; i++) { + NSString *urlString = urls[i][FBSDKWebViewAppLinkResolverDictionaryValueKey]; + NSURL *url = urlString ? [NSURL URLWithString:urlString] : nil; + NSString *appStoreId = appStoreIds[i][FBSDKWebViewAppLinkResolverDictionaryValueKey]; + NSString *appName = appNames[i][FBSDKWebViewAppLinkResolverDictionaryValueKey]; + FBSDKAppLinkTarget *target = [FBSDKAppLinkTarget appLinkTargetWithURL:url + appStoreId:appStoreId + appName:appName]; + [linkTargets addObject:target]; + } + } + } + + NSDictionary *webDict = appLinkDict[FBSDKWebViewAppLinkResolverWebKey][0]; + NSString *webUrlString = webDict[FBSDKWebViewAppLinkResolverWebURLKey][0][FBSDKWebViewAppLinkResolverDictionaryValueKey]; + NSString *shouldFallbackString = webDict[FBSDKWebViewAppLinkResolverShouldFallbackKey][0][FBSDKWebViewAppLinkResolverDictionaryValueKey]; + + NSURL *webUrl = destination; + + if (shouldFallbackString && + [@[ @"no", @"false", @"0" ] containsObject:shouldFallbackString.lowercaseString]) { + webUrl = nil; + } + if (webUrl && webUrlString) { + webUrl = [NSURL URLWithString:webUrlString]; + } + + return [FBSDKAppLink appLinkWithSourceURL:destination + targets:linkTargets + webURL:webUrl]; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/Internal/FBSDKMeasurementEventListener.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/Internal/FBSDKMeasurementEventListener.h new file mode 100644 index 0000000000000..580cc1e30c91c --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/Internal/FBSDKMeasurementEventListener.h @@ -0,0 +1,31 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(MeasurementEventListener) +@interface FBSDKMeasurementEventListener : NSObject + +@property (class, nonatomic, strong, readonly) FBSDKMeasurementEventListener *defaultListener +NS_SWIFT_NAME(default); + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/Internal/FBSDKMeasurementEventListener.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/Internal/FBSDKMeasurementEventListener.m new file mode 100644 index 0000000000000..aca125d6af8a7 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/Internal/FBSDKMeasurementEventListener.m @@ -0,0 +1,86 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKMeasurementEventListener.h" + +#import "FBSDKAppEvents+Internal.h" +#import "FBSDKTimeSpentData.h" + +#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0 + +static NSNotificationName const FBSDKMeasurementEventNotification = @"com.facebook.facebook-objc-sdk.measurement_event"; + +#else + +static NSString *const FBSDKMeasurementEventNotification = @"com.facebook.facebook-objc-sdk.measurement_event"; + +#endif + +static NSString *const FBSDKMeasurementEventName = @"event_name"; +static NSString *const FBSDKMeasurementEventArgs = @"event_args"; +static NSString *const FBSDKMeasurementEventPrefix = @"bf_"; + +@implementation FBSDKMeasurementEventListener + ++ (instancetype)defaultListener +{ + static dispatch_once_t dispatchOnceLocker = 0; + static FBSDKMeasurementEventListener *defaultListener = nil; + dispatch_once(&dispatchOnceLocker, ^{ + defaultListener = [[self alloc] init]; + NSNotificationCenter *center = [NSNotificationCenter defaultCenter]; + [center addObserver:defaultListener + selector:@selector(logFBAppEventForNotification:) + name:FBSDKMeasurementEventNotification + object:nil]; + }); + return defaultListener; +} + +- (void)logFBAppEventForNotification:(NSNotification *)note +{ + // when catch al_nav_in event, we set source application for FBAppEvents. + if ([note.userInfo[FBSDKMeasurementEventName] isEqualToString:@"al_nav_in"]) { + NSString *sourceApplication = note.userInfo[FBSDKMeasurementEventArgs][@"sourceApplication"]; + if (sourceApplication) { + [FBSDKTimeSpentData setSourceApplication:sourceApplication isFromAppLink:YES]; + } + } + NSDictionary *eventArgs = note.userInfo[FBSDKMeasurementEventArgs]; + NSMutableDictionary *logData = [[NSMutableDictionary alloc] init]; + for (NSString *key in eventArgs.allKeys) { + NSError *error = nil; + NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:@"[^0-9a-zA-Z _-]" options:0 error:&error]; + NSString *safeKey = [regex stringByReplacingMatchesInString:key + options:0 + range:NSMakeRange(0, key.length) + withTemplate:@"-"]; + safeKey = [safeKey stringByTrimmingCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@" -"]]; + logData[safeKey] = eventArgs[key]; + } + [FBSDKAppEvents logInternalEvent:[FBSDKMeasurementEventPrefix stringByAppendingString:note.userInfo[FBSDKMeasurementEventName]] + parameters:logData + isImplicitlyLogged:YES]; +} + +- (void)dealloc +{ + [[NSNotificationCenter defaultCenter] removeObserver:self]; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Instrument/FBSDKCrashHandler.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Instrument/FBSDKCrashHandler.h new file mode 100644 index 0000000000000..d8b4efdb65ac8 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Instrument/FBSDKCrashHandler.h @@ -0,0 +1,34 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import "FBSDKCrashObserving.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface FBSDKCrashHandler : NSObject + ++ (void)disable; ++ (void)addObserver:(id)observer; ++ (void)removeObserver:(id)observer; ++ (void)clearCrashReportFiles; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Instrument/FBSDKCrashHandler.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Instrument/FBSDKCrashHandler.m new file mode 100644 index 0000000000000..10b75924ce5b4 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Instrument/FBSDKCrashHandler.m @@ -0,0 +1,322 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKCrashHandler.h" + +#import + +#import + +#import "FBSDKLibAnalyzer.h" + +#define FBSDK_MAX_CRASH_LOGS 5 +#define FBSDK_CRASH_PATH_NAME @"instrument" + +static NSUncaughtExceptionHandler *previousExceptionHandler = NULL; +static NSString *mappingTableIdentifier = NULL; +static NSString *directoryPath; + +NSString *const kFBSDKAppVersion = @"app_version"; +NSString *const kFBSDKCallstack = @"callstack"; +NSString *const kFBSDKCrashReason = @"reason"; +NSString *const kFBSDKCrashTimestamp = @"timestamp"; +NSString *const kFBSDKDeviceModel = @"device_model"; +NSString *const kFBSDKDeviceOSVersion = @"device_os_version"; + +NSString *const kFBSDKMapingTable = @"mapping_table"; +NSString *const kFBSDKMappingTableIdentifier = @"mapping_table_identifier"; + +@implementation FBSDKCrashHandler + +static NSHashTable> *_observers; +static NSArray *> *_processedCrashLogs; +static BOOL _isTurnedOff; + +# pragma mark - Class Methods + ++ (void)initialize +{ + NSString *dirPath = [NSTemporaryDirectory() stringByAppendingPathComponent:FBSDK_CRASH_PATH_NAME]; + if (![[NSFileManager defaultManager] fileExistsAtPath:dirPath]) { + [[NSFileManager defaultManager] createDirectoryAtPath:dirPath withIntermediateDirectories:NO attributes:NULL error:NULL]; + } + directoryPath = dirPath; + NSString *identifier = [[NSUUID UUID] UUIDString]; + mappingTableIdentifier = [identifier stringByReplacingOccurrencesOfString:@"-" withString:@""]; + _observers = [[NSHashTable alloc] init]; +} + ++ (void)sendCrashLogs +{ + NSArray> *observers = [_observers copy]; + for (id observer in observers) { + if (observer && [observer respondsToSelector:@selector(didReceiveCrashLogs:)]) { + NSArray *> *filteredCrashLogs = [self filterCrashLogs:observer.prefixes]; + [observer didReceiveCrashLogs:filteredCrashLogs]; + } + } +} + ++ (NSArray *> *)filterCrashLogs:(NSArray *)prefixList +{ + NSMutableArray *> *crashLogs = [NSMutableArray array]; + for (NSDictionary *crashLog in _processedCrashLogs) { + NSArray *callstack = crashLog[kFBSDKCallstack]; + if ([self callstack:callstack containsPrefix:prefixList]) { + [crashLogs addObject:crashLog]; + } + } + return crashLogs; +} + ++ (BOOL)callstack:(NSArray *)callstack + containsPrefix:(NSArray *)prefixList +{ + NSString *callStackString = [callstack componentsJoinedByString:@""]; + for (NSString *prefix in prefixList) { + if ([callStackString containsString:prefix]) { + return YES; + } + } + return NO; +} + ++ (void)disable +{ + _isTurnedOff = YES; + [FBSDKCrashHandler uninstallExceptionsHandler]; + _observers = nil; +} + ++ (void)addObserver:(id)observer +{ + if (_isTurnedOff || ![self isSafeToGenerateMapping]) { + return; + } + static dispatch_once_t onceToken = 0; + dispatch_once(&onceToken, ^{ + [FBSDKCrashHandler installExceptionsHandler]; + _processedCrashLogs = [self getProcessedCrashLogs]; + }); + if (![_observers containsObject:observer]) { + [_observers addObject:observer]; + [self generateMethodMapping:observer]; + [self sendCrashLogs]; + } +} + ++ (void)removeObserver:(id)observer +{ + if ([_observers containsObject:observer]) { + [_observers removeObject:observer]; + if (_observers.count == 0) { + [FBSDKCrashHandler uninstallExceptionsHandler]; + } + } +} + +# pragma mark handler function + ++ (void)installExceptionsHandler +{ + NSUncaughtExceptionHandler *currentHandler = NSGetUncaughtExceptionHandler(); + + if (currentHandler != FBSDKExceptionHandler) { + previousExceptionHandler = currentHandler; + NSSetUncaughtExceptionHandler(&FBSDKExceptionHandler); + } +} + ++ (void)uninstallExceptionsHandler +{ + NSSetUncaughtExceptionHandler(previousExceptionHandler); + previousExceptionHandler = nil; +} + +static void FBSDKExceptionHandler(NSException *exception) +{ + [FBSDKCrashHandler saveException:exception]; + if (previousExceptionHandler) { + previousExceptionHandler(exception); + } +} + +#pragma mark - Storage + ++ (void)saveException:(NSException *)exception +{ + if (exception.callStackSymbols && exception.name) { + NSArray *stackSymbols = [NSArray arrayWithArray:exception.callStackSymbols]; + [self saveCrashLog:@{ + kFBSDKCallstack : stackSymbols, + kFBSDKCrashReason : exception.name, + }]; + } +} + ++ (void)saveSignal:(int)signal withCallStack:(NSArray *)callStack +{ + if (callStack) { + NSString *signalDescription = [NSString stringWithCString:strsignal(signal) encoding:NSUTF8StringEncoding] ?: [NSString stringWithFormat:@"SIGNUM(%i)", signal]; + [self saveCrashLog:@{ + kFBSDKCallstack : callStack, + kFBSDKCrashReason : signalDescription, + }]; + } +} + ++ (NSArray *> *)getProcessedCrashLogs +{ + NSArray *> *crashLogs = [self loadCrashLogs]; + if (0 == crashLogs.count) { + [self clearCrashReportFiles]; + return nil; + } + NSMutableArray *> *processedCrashLogs = [NSMutableArray array]; + + for (NSDictionary *crashLog in crashLogs) { + NSArray *callstack = crashLog[kFBSDKCallstack]; + NSDictionary *methodMapping = [self loadLibData:crashLog]; + NSArray *symbolicatedCallstack = [FBSDKLibAnalyzer symbolicateCallstack:callstack methodMapping:methodMapping]; + NSMutableDictionary *symbolicatedCrashLog = [NSMutableDictionary dictionaryWithDictionary:crashLog]; + if (symbolicatedCallstack) { + [symbolicatedCrashLog setObject:symbolicatedCallstack forKey:kFBSDKCallstack]; + [symbolicatedCrashLog removeObjectForKey:kFBSDKMappingTableIdentifier]; + [processedCrashLogs addObject:symbolicatedCrashLog]; + } + } + return processedCrashLogs; +} + ++ (NSArray *> *)loadCrashLogs +{ + NSArray *files = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:directoryPath error:NULL]; + NSArray *fileNames = [[self getCrashLogFileNames:files] sortedArrayUsingComparator:^NSComparisonResult(id _Nonnull obj1, id _Nonnull obj2){ + return [obj2 compare:obj1]; + }]; + NSMutableArray *> *crashLogArray = [NSMutableArray array]; + + for (NSUInteger i = 0; i < MIN(fileNames.count, FBSDK_MAX_CRASH_LOGS); i++) { + NSDictionary *crashLog = [self loadCrashLog:fileNames[i]]; + [crashLogArray addObject:crashLog]; + } + return [crashLogArray copy]; +} + ++ (NSDictionary *)loadCrashLog:(NSString *)fileName +{ + return [NSDictionary dictionaryWithContentsOfFile:[directoryPath stringByAppendingPathComponent:fileName]]; +} + ++ (void)clearCrashReportFiles +{ + NSArray *files = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:directoryPath error:nil]; + + for (NSUInteger i = 0; i < files.count; i++) { + // remove all crash related files except for the current mapping table + if ([files[i] hasPrefix:@"crash_"] && ![files[i] containsString:mappingTableIdentifier]) { + [[NSFileManager defaultManager] removeItemAtPath:[directoryPath stringByAppendingPathComponent:files[i]] error:nil]; + } + } +} + ++ (NSArray *)getCrashLogFileNames:(NSArray *)files +{ + NSMutableArray *fileNames = [NSMutableArray array]; + + for (NSString *fileName in files) { + if ([fileName hasPrefix:@"crash_log_"] && [fileName hasSuffix:@".json"]) { + [fileNames addObject:fileName]; + } + } + + return fileNames; +} + ++ (void)saveCrashLog:(NSDictionary *)crashLog +{ + NSMutableDictionary *completeCrashLog = [NSMutableDictionary dictionaryWithDictionary:crashLog]; + NSString *currentTimestamp = [NSString stringWithFormat:@"%.0lf", [[NSDate date] timeIntervalSince1970]]; + + [completeCrashLog setObject:currentTimestamp forKey:kFBSDKCrashTimestamp]; + [completeCrashLog setObject:mappingTableIdentifier forKey:kFBSDKMappingTableIdentifier]; + + NSBundle *mainBundle = [NSBundle mainBundle]; + NSString *version = [mainBundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"]; + NSString *build = [mainBundle objectForInfoDictionaryKey:@"CFBundleVersion"]; + [completeCrashLog setObject:[NSString stringWithFormat:@"%@(%@)", version, build] forKey:kFBSDKAppVersion]; + + struct utsname systemInfo; + uname(&systemInfo); + [completeCrashLog setObject:@(systemInfo.machine) forKey:kFBSDKDeviceModel]; + + [completeCrashLog setObject:[UIDevice currentDevice].systemVersion forKey:kFBSDKDeviceOSVersion]; + + [completeCrashLog writeToFile:[self getPathToCrashFile:currentTimestamp] + atomically:YES]; +} + ++ (void)generateMethodMapping:(id)observer +{ + if (observer.prefixes.count == 0) { + return; + } + [[NSUserDefaults standardUserDefaults] setObject:mappingTableIdentifier forKey:kFBSDKMappingTableIdentifier]; + NSDictionary *methodMapping = [FBSDKLibAnalyzer getMethodsTable:observer.prefixes + frameworks:observer.frameworks]; + if (methodMapping.count > 0){ + [methodMapping writeToFile:[self getPathToLibDataFile:mappingTableIdentifier] + atomically:YES]; + } +} + ++ (NSDictionary *)loadLibData:(NSDictionary *)crashLog +{ + NSString *identifier = [crashLog objectForKey:kFBSDKMappingTableIdentifier]; + return [NSDictionary dictionaryWithContentsOfFile:[self getPathToLibDataFile:identifier]]; +} + ++ (NSString *)getPathToCrashFile:(NSString *)timestamp +{ + return [directoryPath stringByAppendingPathComponent: + [NSString stringWithFormat:@"crash_log_%@.json", timestamp]]; +} + ++ (NSString *)getPathToLibDataFile:(NSString *)identifier +{ + return [directoryPath stringByAppendingPathComponent: + [NSString stringWithFormat:@"crash_lib_data_%@.json", identifier]]; + +} + ++ (BOOL)isSafeToGenerateMapping +{ +#if TARGET_OS_SIMULATOR + return YES; +#else + NSString *identifier = [[NSUserDefaults standardUserDefaults] objectForKey:kFBSDKMappingTableIdentifier]; + //first app start + if (!identifier) { + return YES; + } + + return [[NSFileManager defaultManager] fileExistsAtPath:[self getPathToLibDataFile:identifier]]; +#endif +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Instrument/FBSDKCrashObserving.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Instrument/FBSDKCrashObserving.h new file mode 100644 index 0000000000000..070416cabf07c --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Instrument/FBSDKCrashObserving.h @@ -0,0 +1,34 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKCrashObserving + +@property (nonatomic, copy) NSArray *prefixes; +@property (nonatomic, copy, nullable) NSArray *frameworks; + +@optional + +- (void)didReceiveCrashLogs:(NSArray *> *)crashLogs; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Instrument/FBSDKLibAnalyzer.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Instrument/FBSDKLibAnalyzer.h new file mode 100644 index 0000000000000..e6873adef1ec3 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Instrument/FBSDKLibAnalyzer.h @@ -0,0 +1,32 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface FBSDKLibAnalyzer : NSObject + ++ (NSDictionary *)getMethodsTable:(NSArray *)prefixes + frameworks:(NSArray * _Nullable)frameworks; ++ (nullable NSArray *)symbolicateCallstack:(NSArray *)callstack + methodMapping:(NSDictionary *)methodMapping; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Instrument/FBSDKLibAnalyzer.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Instrument/FBSDKLibAnalyzer.m new file mode 100644 index 0000000000000..c96fd154a6271 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Instrument/FBSDKLibAnalyzer.m @@ -0,0 +1,218 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKLibAnalyzer.h" + +#import + +@implementation FBSDKLibAnalyzer + +static NSMutableDictionary *_methodMapping; + ++ (void)initialize +{ + _methodMapping = [NSMutableDictionary dictionary]; +} + ++ (NSDictionary *)getMethodsTable:(NSArray *)prefixes + frameworks:(NSArray *)frameworks +{ + NSArray *allClasses = [self getClassNames:prefixes frameworks:frameworks]; + for (NSString *className in allClasses) { + Class class = NSClassFromString(className); + if (class) { + [self addClass:class isClassMethod:NO]; + [self addClass:object_getClass(class) isClassMethod:YES]; + } + } + return [_methodMapping copy]; +} + +#pragma mark - private methods + ++ (NSArray *)getClassNames:(NSArray *)prefixes + frameworks:(NSArray *)frameworks +{ + NSMutableArray *classNames = [NSMutableArray new]; + // from main bundle + [classNames addObjectsFromArray:[self getClassesFrom:[[NSBundle mainBundle] executablePath] + prefixes:prefixes]]; + // from dynamic libraries + if (frameworks.count > 0) { + unsigned int count = 0; + const char **images = objc_copyImageNames(&count); + for (int i = 0; i < count; i++) { + NSString *image = [NSString stringWithUTF8String:images[i]]; + for (NSString *framework in frameworks) { + if ([image containsString:framework]) { + [classNames addObjectsFromArray:[self getClassesFrom:image + prefixes:nil]]; + } + } + } + free(images); + } + + return [classNames copy]; +} + ++ (NSArray *)getClassesFrom:(NSString *)image + prefixes:(NSArray *)prefixes +{ + NSMutableArray *classNames = [NSMutableArray array]; + unsigned int count = 0; + const char **classes = objc_copyClassNamesForImage([image UTF8String], &count); + for (unsigned int i = 0; i < count; i++){ + NSString *className = [NSString stringWithUTF8String:classes[i]]; + if (prefixes.count > 0) { + for (NSString *prefix in prefixes) { + if ([className hasPrefix:prefix]) { + [classNames addObject:className]; + break; + } + } + } else { + [classNames addObject:className]; + } + } + free(classes); + return [classNames copy]; +} + ++ (void)addClass:(Class)class + isClassMethod:(BOOL)isClassMethod +{ + unsigned int methodsCount = 0; + Method *methods = class_copyMethodList(class, &methodsCount); + + NSString *methodType = isClassMethod ? @"+" : @"-"; + + for (unsigned int i = 0; i < methodsCount; i++) { + Method method = methods[i]; + + if (method) { + SEL selector = method_getName(method); + + IMP methodImplementation = class_getMethodImplementation(class, selector); + NSString *methodAddress = [NSString stringWithFormat:@"0x%010lx", (unsigned long)methodImplementation]; + NSString *methodName = [NSString stringWithFormat:@"%@[%@ %@]", + methodType, + NSStringFromClass(class), + NSStringFromSelector(selector)]; + + if (methodAddress && methodName) { + [_methodMapping setObject:methodName forKey:methodAddress]; + } + } + } + free(methods); +} + ++ (NSArray *)symbolicateCallstack:(NSArray *)callstack + methodMapping:(NSDictionary *)methodMapping +{ + if (!callstack || !methodMapping) { + return nil; + } + NSArray *sortedAllAddress = [methodMapping.allKeys sortedArrayUsingComparator:^NSComparisonResult(id _Nonnull obj1, id _Nonnull obj2) { + return [obj1 compare:obj2]; + }]; + + BOOL containsFBSDKFunction = NO; + NSInteger nonSDKMethodCount = 0; + NSMutableArray *symbolicatedCallstack = [NSMutableArray array]; + + for (NSUInteger i = 0; i < callstack.count; i++){ + NSString *rawAddress = [self getAddress:callstack[i]]; + NSString *addressString = [NSString stringWithFormat:@"0x%@",[rawAddress substringWithRange:NSMakeRange(rawAddress.length - 10, 10)]]; + NSString *methodAddress = [self searchMethod:addressString sortedAllAddress:sortedAllAddress]; + + if (methodAddress) { + containsFBSDKFunction = YES; + nonSDKMethodCount == 0 ?: [symbolicatedCallstack addObject:[NSString stringWithFormat:@"(%ld DEV METHODS)", (long)nonSDKMethodCount]]; + nonSDKMethodCount = 0; + NSString *methodName = [methodMapping objectForKey:methodAddress]; + [symbolicatedCallstack addObject:[NSString stringWithFormat:@"%@%@", methodName, [self getOffset:addressString secondString:methodAddress]]]; + } else { + nonSDKMethodCount++; + } + } + nonSDKMethodCount == 0 ?: [symbolicatedCallstack addObject:[NSString stringWithFormat:@"(%ld DEV METHODS)", (long)nonSDKMethodCount]]; + + return containsFBSDKFunction ? symbolicatedCallstack : nil; +} + ++ (NSString *)getAddress:(NSString *)callstackEntry +{ + NSArray *components = [callstackEntry componentsSeparatedByString:@" "]; + for (NSString *component in components) { + if ([component containsString:@"0x"]) { + return component; + } + } + return nil; +} + ++ (NSString *)getOffset:(NSString *)firstString + secondString:(NSString *)secondString +{ + if (!firstString || !secondString) { + return nil; + } + unsigned long long first = 0, second = 0; + NSScanner *scanner = [NSScanner scannerWithString:firstString]; + [scanner scanHexLongLong:&first]; + + scanner = [NSScanner scannerWithString:secondString]; + [scanner scanHexLongLong:&second]; + + unsigned long long difference = first - second; + return [NSString stringWithFormat:@"+%llu", difference]; +} + ++ (NSString *)searchMethod:(NSString *)address + sortedAllAddress:(NSArray *)sortedAllAddress +{ + if (0 == sortedAllAddress.count) { + return nil; + } + NSString *lowestAddress = sortedAllAddress[0]; + NSString *highestAddress = sortedAllAddress[sortedAllAddress.count - 1]; + + if ([address compare:lowestAddress] == NSOrderedAscending || [address compare:highestAddress] == NSOrderedDescending) { + return nil; + } + + if ([address compare:lowestAddress] == NSOrderedSame) { + return lowestAddress; + } + + if ([address compare:highestAddress] == NSOrderedSame) { + return highestAddress; + } + + NSUInteger index = [sortedAllAddress indexOfObject:address + inSortedRange:NSMakeRange(0, sortedAllAddress.count - 1) + options:NSBinarySearchingInsertionIndex + usingComparator:^NSComparisonResult(id _Nonnull obj1, id _Nonnull obj2) { + return [obj1 compare:obj2]; + }]; + return sortedAllAddress[index - 1]; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKBasicUtility.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKBasicUtility.h new file mode 100644 index 0000000000000..078d3f73352e4 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKBasicUtility.h @@ -0,0 +1,135 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Describes the callback for appLinkFromURLInBackground. + @param object the FBSDKAppLink representing the deferred App Link + @param stop the error during the request, if any + + */ +typedef id _Nullable (^FBSDKInvalidObjectHandler)(id object, BOOL *stop) +NS_SWIFT_NAME(InvalidObjectHandler); + +@interface FBSDKBasicUtility : NSObject + +/** + Converts an object into a JSON string. + @param object The object to convert to JSON. + @param errorRef If an error occurs, upon return contains an NSError object that describes the problem. + @param invalidObjectHandler Handles objects that are invalid, returning a replacement value or nil to ignore. + @return A JSON string or nil if the object cannot be converted to JSON. + */ ++ (nullable NSString *)JSONStringForObject:(id)object + error:(NSError *__autoreleasing *)errorRef + invalidObjectHandler:(nullable FBSDKInvalidObjectHandler)invalidObjectHandler; + +/** + Sets an object for a key in a dictionary if it is not nil. + @param dictionary The dictionary to set the value for. + @param object The value to set. + @param key The key to set the value for. + */ ++ (void)dictionary:(NSMutableDictionary *)dictionary + setObject:(nullable id)object + forKey:(nullable id)key; + +/** + Sets an object for a key in a dictionary if it is not nil. + @param dictionary The dictionary to set the value for. + @param object The value to set after serializing to JSON. + @param key The key to set the value for. + @param errorRef If an error occurs, upon return contains an NSError object that describes the problem. + @return NO if an error occurred while serializing the object, otherwise YES. + */ ++ (BOOL)dictionary:(NSMutableDictionary *)dictionary +setJSONStringForObject:(id)object + forKey:(id)key + error:(NSError *__autoreleasing *)errorRef; + +/** + Adds an object to an array if it is not nil. + @param array The array to add the object to. + @param object The object to add to the array. + */ ++ (void)array:(NSMutableArray *)array addObject:(nullable id)object; + +/** + Converts a JSON string into an object + @param string The JSON string to convert. + @param errorRef If an error occurs, upon return contains an NSError object that describes the problem. + @return An NSDictionary, NSArray, NSString or NSNumber containing the object representation, or nil if the string + cannot be converted. + */ ++ (nullable id)objectForJSONString:(NSString *)string error:(NSError *__autoreleasing *)errorRef; + +/** + Constructs a query string from a dictionary. + @param dictionary The dictionary with key/value pairs for the query string. + @param errorRef If an error occurs, upon return contains an NSError object that describes the problem. + @param invalidObjectHandler Handles objects that are invalid, returning a replacement value or nil to ignore. + @return Query string representation of the parameters. + */ ++ (NSString *)queryStringWithDictionary:(NSDictionary *)dictionary + error:(NSError *__autoreleasing *)errorRef + invalidObjectHandler:(nullable FBSDKInvalidObjectHandler)invalidObjectHandler; + +/** + Converts simple value types to the string equivalent for serializing to a request query or body. + @param value The value to be converted. + @return The value that may have been converted if able (otherwise the input param). + */ ++ (id)convertRequestValue:(id)value; + +/** + Encodes a value for an URL. + @param value The value to encode. + @return The encoded value. + */ ++ (NSString *)URLEncode:(NSString *)value; + +/** + Parses a query string into a dictionary. + @param queryString The query string value. + @return A dictionary with the key/value pairs. + */ ++ (NSDictionary *)dictionaryWithQueryString:(NSString *)queryString; + +/** + Decodes a value from an URL. + @param value The value to decode. + @return The decoded value. + */ ++ (NSString *)URLDecode:(NSString *)value; + +/** + Gzip data with default compression level if possible. + @param data The raw data. + @return nil if unable to gzip the data, otherwise gzipped data. + */ ++ (nullable NSData *)gzip:(NSData *)data; + ++ (NSString *)anonymousID; ++ (NSString *)persistenceFilePath:(NSString *)filename; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKBasicUtility.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKBasicUtility.m new file mode 100644 index 0000000000000..522b17513a281 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKBasicUtility.m @@ -0,0 +1,341 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKBasicUtility.h" + +#import + +#import "FBSDKTypeUtility.h" + +#define kChunkSize 1024 + +static NSString *const FBSDK_BASICUTILITY_ANONYMOUSIDFILENAME = @"com-facebook-sdk-PersistedAnonymousID.json"; +static NSString *const FBSDK_BASICUTILITY_ANONYMOUSID_KEY = @"anon_id"; + +@protocol BASIC_FBSDKError + ++ (NSError *)invalidArgumentErrorWithName:(NSString *)name value:(id)value message:(NSString *)message; + +@end + +@implementation FBSDKBasicUtility + ++ (NSString *)JSONStringForObject:(id)object + error:(NSError *__autoreleasing *)errorRef + invalidObjectHandler:(FBSDKInvalidObjectHandler)invalidObjectHandler +{ + if (invalidObjectHandler || ![NSJSONSerialization isValidJSONObject:object]) { + object = [self _convertObjectToJSONObject:object invalidObjectHandler:invalidObjectHandler stop:NULL]; + if (![NSJSONSerialization isValidJSONObject:object]) { + if (errorRef != NULL) { + Class FBSDKErrorClass = NSClassFromString(@"FBSDKError"); + if ([FBSDKErrorClass respondsToSelector:@selector(invalidArgumentErrorWithName:value:message:)]) { + *errorRef = [FBSDKErrorClass invalidArgumentErrorWithName:@"object" + value:object + message:@"Invalid object for JSON serialization."]; + } + } + return nil; + } + } + NSData *data = [NSJSONSerialization dataWithJSONObject:object options:0 error:errorRef]; + if (!data) { + return nil; + } + return [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]; +} + ++ (BOOL)dictionary:(NSMutableDictionary *)dictionary +setJSONStringForObject:(id)object + forKey:(id)key + error:(NSError *__autoreleasing *)errorRef +{ + if (!object || !key) { + return YES; + } + NSString *JSONString = [self JSONStringForObject:object error:errorRef invalidObjectHandler:NULL]; + if (!JSONString) { + return NO; + } + [self dictionary:dictionary setObject:JSONString forKey:key]; + return YES; +} + ++ (id)_convertObjectToJSONObject:(id)object + invalidObjectHandler:(FBSDKInvalidObjectHandler)invalidObjectHandler + stop:(BOOL *)stopRef +{ + __block BOOL stop = NO; + if ([object isKindOfClass:[NSString class]] || [object isKindOfClass:[NSNumber class]]) { + // good to go, keep the object + } else if ([object isKindOfClass:[NSURL class]]) { + object = ((NSURL *)object).absoluteString; + } else if ([object isKindOfClass:[NSDictionary class]]) { + NSMutableDictionary *dictionary = [[NSMutableDictionary alloc] init]; + [(NSDictionary *)object enumerateKeysAndObjectsUsingBlock:^(id key, id obj, BOOL *dictionaryStop) { + [self dictionary:dictionary + setObject:[self _convertObjectToJSONObject:obj invalidObjectHandler:invalidObjectHandler stop:&stop] + forKey:[FBSDKTypeUtility stringValue:key]]; + if (stop) { + *dictionaryStop = YES; + } + }]; + object = dictionary; + } else if ([object isKindOfClass:[NSArray class]]) { + NSMutableArray *array = [[NSMutableArray alloc] init]; + for (id obj in (NSArray *)object) { + id convertedObj = [self _convertObjectToJSONObject:obj invalidObjectHandler:invalidObjectHandler stop:&stop]; + [self array:array addObject:convertedObj]; + if (stop) { + break; + } + } + object = array; + } else { + object = invalidObjectHandler(object, stopRef); + } + if (stopRef != NULL) { + *stopRef = stop; + } + return object; +} + ++ (void)dictionary:(NSMutableDictionary *)dictionary setObject:(id)object forKey:(id)key +{ + if (object && key) { + dictionary[key] = object; + } +} + ++ (void)array:(NSMutableArray *)array addObject:(id)object +{ + if (object) { + [array addObject:object]; + } +} + ++ (id)objectForJSONString:(NSString *)string error:(NSError *__autoreleasing *)errorRef +{ + NSData *data = [string dataUsingEncoding:NSUTF8StringEncoding]; + if (!data) { + if (errorRef != NULL) { + *errorRef = nil; + } + return nil; + } + return [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingAllowFragments error:errorRef]; +} + ++ (NSString *)queryStringWithDictionary:(NSDictionary *)dictionary + error:(NSError *__autoreleasing *)errorRef + invalidObjectHandler:(FBSDKInvalidObjectHandler)invalidObjectHandler +{ + NSMutableString *queryString = [[NSMutableString alloc] init]; + __block BOOL hasParameters = NO; + if (dictionary) { + NSMutableArray *keys = [dictionary.allKeys mutableCopy]; + // remove non-string keys, as they are not valid + [keys filterUsingPredicate:[NSPredicate predicateWithBlock:^BOOL(id evaluatedObject, NSDictionary *bindings) { + return [evaluatedObject isKindOfClass:[NSString class]]; + }]]; + // sort the keys so that the query string order is deterministic + [keys sortUsingSelector:@selector(compare:)]; + BOOL stop = NO; + for (NSString *key in keys) { + id value = [self convertRequestValue:dictionary[key]]; + if ([value isKindOfClass:[NSString class]]) { + value = [self URLEncode:value]; + } + if (invalidObjectHandler && ![value isKindOfClass:[NSString class]]) { + value = invalidObjectHandler(value, &stop); + if (stop) { + break; + } + } + if (value) { + if (hasParameters) { + [queryString appendString:@"&"]; + } + [queryString appendFormat:@"%@=%@", key, value]; + hasParameters = YES; + } + } + } + if (errorRef != NULL) { + *errorRef = nil; + } + return (queryString.length ? [queryString copy] : nil); +} + ++ (id)convertRequestValue:(id)value +{ + if ([value isKindOfClass:[NSNumber class]]) { + value = ((NSNumber *)value).stringValue; + } else if ([value isKindOfClass:[NSURL class]]) { + value = ((NSURL *)value).absoluteString; + } + return value; +} + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" ++ (NSString *)URLEncode:(NSString *)value +{ + return (__bridge_transfer NSString *)CFURLCreateStringByAddingPercentEscapes(NULL, + (CFStringRef)value, + NULL, // characters to leave unescaped + CFSTR(":!*();@/&?+$,='"), + kCFStringEncodingUTF8); +} + +#pragma clang diagnostic pop + ++ (NSDictionary *)dictionaryWithQueryString:(NSString *)queryString +{ + NSMutableDictionary *result = [[NSMutableDictionary alloc] init]; + NSArray *parts = [queryString componentsSeparatedByString:@"&"]; + + for (NSString *part in parts) { + if (part.length == 0) { + continue; + } + + NSRange index = [part rangeOfString:@"="]; + NSString *key; + NSString *value; + + if (index.location == NSNotFound) { + key = part; + value = @""; + } else { + key = [part substringToIndex:index.location]; + value = [part substringFromIndex:index.location + index.length]; + } + + key = [self URLDecode:key]; + value = [self URLDecode:value]; + if (key && value) { + result[key] = value; + } + } + return result; +} + ++ (NSString *)URLDecode:(NSString *)value +{ + value = [value stringByReplacingOccurrencesOfString:@"+" withString:@" "]; +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" + value = [value stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; +#pragma clang diagnostic pop + return value; +} + ++ (NSData *)gzip:(NSData *)data +{ + const void *bytes = data.bytes; + const NSUInteger length = data.length; + + if (!bytes || !length) { + return nil; + } + +#if defined(__LP64__) && __LP64__ + if (length > UINT_MAX) { + return nil; + } +#endif + + // initialze stream + z_stream stream; + bzero(&stream, sizeof(z_stream)); + + if (deflateInit2(&stream, -1, Z_DEFLATED, 31, 8, Z_DEFAULT_STRATEGY) != Z_OK) { + return nil; + } + stream.avail_in = (uint)length; + stream.next_in = (Bytef *)bytes; + + int retCode; + NSMutableData *result = [NSMutableData dataWithCapacity:(length / 4)]; + unsigned char output[kChunkSize]; + do { + stream.avail_out = kChunkSize; + stream.next_out = output; + retCode = deflate(&stream, Z_FINISH); + if (retCode != Z_OK && retCode != Z_STREAM_END) { + deflateEnd(&stream); + return nil; + } + unsigned size = kChunkSize - stream.avail_out; + if (size > 0) { + [result appendBytes:output length:size]; + } + } while (retCode == Z_OK); + + deflateEnd(&stream); + + return result; +} + ++ (NSString *)anonymousID +{ + // Grab previously written anonymous ID and, if none have been generated, create and + // persist a new one which will remain associated with this app. + NSString *result = [[self class] retrievePersistedAnonymousID]; + if (!result) { + // Generate a new anonymous ID. Create as a UUID, but then prepend the fairly + // arbitrary 'XZ' to the front so it's easily distinguishable from IDFA's which + // will only contain hex. + result = [NSString stringWithFormat:@"XZ%@", [NSUUID UUID].UUIDString]; + + [self persistAnonymousID:result]; + } + return result; +} + ++ (NSString *)retrievePersistedAnonymousID +{ + NSString *file = [[self class] persistenceFilePath:FBSDK_BASICUTILITY_ANONYMOUSIDFILENAME]; + NSString *content = [[NSString alloc] initWithContentsOfFile:file + encoding:NSASCIIStringEncoding + error:nil]; + NSDictionary *results = [FBSDKBasicUtility objectForJSONString:content error:NULL]; + return results[FBSDK_BASICUTILITY_ANONYMOUSID_KEY]; +} + ++ (NSString *)persistenceFilePath:(NSString *)filename +{ + NSSearchPathDirectory directory = NSLibraryDirectory; + NSArray *paths = NSSearchPathForDirectoriesInDomains(directory, NSUserDomainMask, YES); + NSString *docDirectory = paths[0]; + return [docDirectory stringByAppendingPathComponent:filename]; +} + ++ (void)persistAnonymousID:(NSString *)anonymousID +{ + NSDictionary *data = @{ FBSDK_BASICUTILITY_ANONYMOUSID_KEY : anonymousID }; + NSString *content = [self JSONStringForObject:data error:NULL invalidObjectHandler:NULL]; + + [content writeToFile:[[self class] persistenceFilePath:FBSDK_BASICUTILITY_ANONYMOUSIDFILENAME] + atomically:YES + encoding:NSASCIIStringEncoding + error:nil]; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKTypeUtility.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKTypeUtility.h new file mode 100644 index 0000000000000..6e36ed06d05bf --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKTypeUtility.h @@ -0,0 +1,37 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_SWIFT_NAME(TypeUtility) +@interface FBSDKTypeUtility : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + ++ (NSArray *)arrayValue:(id)object; ++ (BOOL)boolValue:(id)object; ++ (NSDictionary *)dictionaryValue:(id)object; ++ (NSInteger)integerValue:(id)object; ++ (id)objectValue:(id)object; ++ (NSString *)stringValue:(id)object; ++ (NSTimeInterval)timeIntervalValue:(id)object; ++ (NSUInteger)unsignedIntegerValue:(id)object; ++ (NSURL *)URLValue:(id)object; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKTypeUtility.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKTypeUtility.m new file mode 100644 index 0000000000000..baf61c31f24d2 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKTypeUtility.m @@ -0,0 +1,121 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKTypeUtility.h" + +@implementation FBSDKTypeUtility + +#pragma mark - Class Methods + ++ (NSArray *)arrayValue:(id)object +{ + return (NSArray *)[self _objectValue:object ofClass:[NSArray class]]; +} + ++ (BOOL)boolValue:(id)object +{ + if ([object isKindOfClass:[NSNumber class]]) { + // @0 or @NO returns NO, otherwise YES + return ((NSNumber *)object).boolValue; + } else if ([object isKindOfClass:[NSString class]]) { + // Returns YES on encountering one of "Y", "y", "T", "t", or a digit 1-9, otherwise NO + return ((NSString *)object).boolValue; + } else { + return ([self objectValue:object] != nil); + } +} + ++ (NSDictionary *)dictionaryValue:(id)object +{ + return (NSDictionary *)[self _objectValue:object ofClass:[NSDictionary class]]; +} + ++ (NSInteger)integerValue:(id)object +{ + if ([object isKindOfClass:[NSNumber class]]) { + return ((NSNumber *)object).integerValue; + } else if ([object isKindOfClass:[NSString class]]) { + return ((NSString *)object).integerValue; + } else { + return 0; + } +} + ++ (id)objectValue:(id)object +{ + return ([object isKindOfClass:[NSNull class]] ? nil : object); +} + ++ (NSString *)stringValue:(id)object +{ + if ([object isKindOfClass:[NSString class]]) { + return (NSString *)object; + } else if ([object isKindOfClass:[NSNumber class]]) { + return ((NSNumber *)object).stringValue; + } else if ([object isKindOfClass:[NSURL class]]) { + return ((NSURL *)object).absoluteString; + } else { + return nil; + } +} + ++ (NSTimeInterval)timeIntervalValue:(id)object +{ + if ([object isKindOfClass:[NSNumber class]]) { + return ((NSNumber *)object).doubleValue; + } else if ([object isKindOfClass:[NSString class]]) { + return ((NSString *)object).doubleValue; + } else { + return 0; + } +} + ++ (NSUInteger)unsignedIntegerValue:(id)object +{ + if ([object isKindOfClass:[NSNumber class]]) { + return ((NSNumber *)object).unsignedIntegerValue; + } else { + // there is no direct support for strings containing unsigned values > NSIntegerMax - not worth writing ourselves + // right now, so just cap unsigned values at NSIntegerMax until we have a need for larger + NSInteger integerValue = [self integerValue:object]; + if (integerValue < 0) { + integerValue = 0; + } + return (NSUInteger)integerValue; + } +} + ++ (NSURL *)URLValue:(id)object +{ + if ([object isKindOfClass:[NSURL class]]) { + return (NSURL *)object; + } else if ([object isKindOfClass:[NSString class]]) { + return [NSURL URLWithString:(NSString *)object]; + } else { + return nil; + } +} + +#pragma mark - Helper Methods + ++ (id)_objectValue:(id)object ofClass:(Class)expectedClass +{ + return ([object isKindOfClass:expectedClass] ? object : nil); +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKURLSession.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKURLSession.h new file mode 100644 index 0000000000000..34707dc4e1fc8 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKURLSession.h @@ -0,0 +1,45 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import "FBSDKURLSessionTask.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface FBSDKURLSession : NSObject + +@property (atomic, strong, nullable) NSURLSession *session; +@property (nonatomic, weak, nullable) id delegate; +@property (nonatomic, retain, nullable) NSOperationQueue *delegateQueue; + +- (instancetype)initWithDelegate:(id)delegate + delegateQueue:(NSOperationQueue *)delegateQueue; + +- (void)executeURLRequest:(NSURLRequest *)request + completionHandler:(FBSDKURLSessionTaskBlock)handler; + +- (void)updateSessionWithBlock:(dispatch_block_t)block; + +- (void)invalidateAndCancel; + +- (BOOL)valid; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKURLSession.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKURLSession.m new file mode 100644 index 0000000000000..cde4f151ab3eb --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKURLSession.m @@ -0,0 +1,71 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKURLSession.h" + +#import "FBSDKBasicUtility.h" +#import "FBSDKURLSessionTask.h" + +@implementation FBSDKURLSession + +- (instancetype)initWithDelegate:(id)delegate + delegateQueue:(NSOperationQueue *)queue +{ + if ((self = [super init])) { + self.delegate = delegate; + self.delegateQueue = queue; + } + return self; +} + +- (void)executeURLRequest:(NSURLRequest *)request + completionHandler:(FBSDKURLSessionTaskBlock)handler +{ + if (!self.valid) { + [self updateSessionWithBlock:^{ + FBSDKURLSessionTask *task = [[FBSDKURLSessionTask alloc] initWithRequest:request fromSession:self.session completionHandler:handler]; + [task start]; + }]; + } else { + FBSDKURLSessionTask *task = [[FBSDKURLSessionTask alloc] initWithRequest:request fromSession:self.session completionHandler:handler]; + [task start]; + } +} + +- (void)updateSessionWithBlock:(dispatch_block_t)block +{ + if (!self.valid) { + self.session = [NSURLSession sessionWithConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration] + delegate:_delegate + delegateQueue:_delegateQueue]; + } + block(); +} + +- (void)invalidateAndCancel +{ + [self.session invalidateAndCancel]; + self.session = nil; +} + +- (BOOL)valid +{ + return self.session != nil; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKURLSessionTask.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKURLSessionTask.h new file mode 100644 index 0000000000000..252d8b46c5fe3 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKURLSessionTask.h @@ -0,0 +1,45 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +typedef void (^FBSDKURLSessionTaskBlock)(NSData *responseData, + NSURLResponse *response, + NSError *error) +NS_SWIFT_NAME(URLSessionTaskBlock); + +NS_SWIFT_NAME(URLSessionTask) +@interface FBSDKURLSessionTask : NSObject + +@property (nonatomic, strong) NSURLSessionTask *task; +@property (atomic, readonly) NSURLSessionTaskState state; +@property (nonatomic, strong, readonly) NSDate *requestStartDate; +@property (nonatomic, copy) FBSDKURLSessionTaskBlock handler; +@property (nonatomic, assign) uint64_t requestStartTime; +@property (nonatomic, assign) NSUInteger loggerSerialNumber; + ++ (instancetype)new NS_UNAVAILABLE; + +- (instancetype)initWithRequest:(NSURLRequest *)request + fromSession:(NSURLSession *)session + completionHandler:(FBSDKURLSessionTaskBlock)handler; + +- (void)start; +- (void)cancel; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKURLSessionTask.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKURLSessionTask.m new file mode 100644 index 0000000000000..35f404adb87d5 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKURLSessionTask.m @@ -0,0 +1,60 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKURLSessionTask.h" + +@implementation FBSDKURLSessionTask + +- (instancetype)init +{ + if ((self = [super init])) { + _requestStartDate = [NSDate date]; + } + return self; +} + +- (instancetype)initWithRequest:(NSURLRequest *)request + fromSession:(NSURLSession *)session + completionHandler:(FBSDKURLSessionTaskBlock)handler +{ + if ((self = [self init])) { + self.requestStartTime = (uint64_t)([self.requestStartDate timeIntervalSince1970] * 1000); + self.task = [session dataTaskWithRequest:request completionHandler:handler]; + } + return self; +} + +- (NSURLSessionTaskState)state +{ + return self.task.state; +} + +#pragma mark - Task State + +- (void)start +{ + [self.task resume]; +} + +- (void)cancel +{ + [self.task cancel]; + self.handler = nil; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAccessToken.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAccessToken.h new file mode 100644 index 0000000000000..94f9f8f4bced4 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAccessToken.h @@ -0,0 +1,232 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0 + +/** + Notification indicating that the `currentAccessToken` has changed. + + the userInfo dictionary of the notification will contain keys + `FBSDKAccessTokenChangeOldKey` and + `FBSDKAccessTokenChangeNewKey`. + */ +FOUNDATION_EXPORT NSNotificationName const FBSDKAccessTokenDidChangeNotification +NS_SWIFT_NAME(AccessTokenDidChange); + +#else + +/** + Notification indicating that the `currentAccessToken` has changed. + + the userInfo dictionary of the notification will contain keys + `FBSDKAccessTokenChangeOldKey` and + `FBSDKAccessTokenChangeNewKey`. + */ +FOUNDATION_EXPORT NSString *const FBSDKAccessTokenDidChangeNotification +NS_SWIFT_NAME(AccessTokenDidChangeNotification); +#endif + +/** + A key in the notification's userInfo that will be set + if and only if the user ID changed between the old and new tokens. + + Token refreshes can occur automatically with the SDK + which do not change the user. If you're only interested in user + changes (such as logging out), you should check for the existence + of this key. The value is a NSNumber with a boolValue. + + On a fresh start of the app where the SDK reads in the cached value + of an access token, this key will also exist since the access token + is moving from a null state (no user) to a non-null state (user). + */ +FOUNDATION_EXPORT NSString *const FBSDKAccessTokenDidChangeUserIDKey +NS_SWIFT_NAME(AccessTokenDidChangeUserIDKey); + +/* + key in notification's userInfo object for getting the old token. + + If there was no old token, the key will not be present. + */ +FOUNDATION_EXPORT NSString *const FBSDKAccessTokenChangeOldKey +NS_SWIFT_NAME(AccessTokenChangeOldKey); + +/* + key in notification's userInfo object for getting the new token. + + If there is no new token, the key will not be present. + */ +FOUNDATION_EXPORT NSString *const FBSDKAccessTokenChangeNewKey +NS_SWIFT_NAME(AccessTokenChangeNewKey); + +/* + A key in the notification's userInfo that will be set + if and only if the token has expired. + */ +FOUNDATION_EXPORT NSString *const FBSDKAccessTokenDidExpireKey +NS_SWIFT_NAME(AccessTokenDidExpireKey); + + +/** + Represents an immutable access token for using Facebook services. + */ +NS_SWIFT_NAME(AccessToken) +@interface FBSDKAccessToken : NSObject + + +/** + The "global" access token that represents the currently logged in user. + + The `currentAccessToken` is a convenient representation of the token of the + current user and is used by other SDK components (like `FBSDKLoginManager`). + */ +@property (class, nonatomic, copy, nullable) FBSDKAccessToken *currentAccessToken; + +/** + Returns YES if currentAccessToken is not nil AND currentAccessToken is not expired + + */ +@property (class, nonatomic, assign, readonly, getter=isCurrentAccessTokenActive) BOOL currentAccessTokenIsActive; + +/** + Returns the app ID. + */ +@property (nonatomic, copy, readonly) NSString *appID; + +/** + Returns the expiration date for data access + */ +@property (nonatomic, copy, readonly) NSDate *dataAccessExpirationDate; + +/** + Returns the known declined permissions. + */ +@property (nonatomic, copy, readonly) NSSet *declinedPermissions +NS_REFINED_FOR_SWIFT; + +/** + Returns the known declined permissions. + */ +@property (nonatomic, copy, readonly) NSSet *expiredPermissions +NS_REFINED_FOR_SWIFT; + +/** + Returns the expiration date. + */ +@property (nonatomic, copy, readonly) NSDate *expirationDate; + +/** + Returns the known granted permissions. + */ +@property (nonatomic, copy, readonly) NSSet *permissions +NS_REFINED_FOR_SWIFT; + +/** + Returns the date the token was last refreshed. +*/ +@property (nonatomic, copy, readonly) NSDate *refreshDate; + +/** + Returns the opaque token string. + */ +@property (nonatomic, copy, readonly) NSString *tokenString; + +/** + Returns the user ID. + */ +@property (nonatomic, copy, readonly) NSString *userID; + +/** + Returns whether the access token is expired by checking its expirationDate property + */ +@property (readonly, assign, nonatomic, getter=isExpired) BOOL expired; + +/** + Returns whether user data access is still active for the given access token + */ +@property (readonly, assign, nonatomic, getter=isDataAccessExpired) BOOL dataAccessExpired; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Initializes a new instance. + @param tokenString the opaque token string. + @param permissions the granted permissions. Note this is converted to NSSet and is only + an NSArray for the convenience of literal syntax. + @param declinedPermissions the declined permissions. Note this is converted to NSSet and is only + an NSArray for the convenience of literal syntax. + @param expiredPermissions the expired permissions. Note this is converted to NSSet and is only + an NSArray for the convenience of literal syntax. + @param appID the app ID. + @param userID the user ID. + @param expirationDate the optional expiration date (defaults to distantFuture). + @param refreshDate the optional date the token was last refreshed (defaults to today). + @param dataAccessExpirationDate the date which data access will expire for the given user + (defaults to distantFuture). + + This initializer should only be used for advanced apps that + manage tokens explicitly. Typical login flows only need to use `FBSDKLoginManager` + along with `+currentAccessToken`. + */ +- (instancetype)initWithTokenString:(NSString *)tokenString + permissions:(NSArray *)permissions + declinedPermissions:(NSArray *)declinedPermissions + expiredPermissions:(NSArray *)expiredPermissions + appID:(NSString *)appID + userID:(NSString *)userID + expirationDate:(nullable NSDate *)expirationDate + refreshDate:(nullable NSDate *)refreshDate + dataAccessExpirationDate:(nullable NSDate *)dataAccessExpirationDate +NS_DESIGNATED_INITIALIZER; + +/** + Convenience getter to determine if a permission has been granted + @param permission The permission to check. + */ +- (BOOL)hasGranted:(NSString *)permission +NS_SWIFT_NAME(hasGranted(permission:)); + +/** + Compares the receiver to another FBSDKAccessToken + @param token The other token + @return YES if the receiver's values are equal to the other token's values; otherwise NO + */ +- (BOOL)isEqualToAccessToken:(FBSDKAccessToken *)token; + +/** + Refresh the current access token's permission state and extend the token's expiration date, + if possible. + @param completionHandler an optional callback handler that can surface any errors related to permission refreshing. + + On a successful refresh, the currentAccessToken will be updated so you typically only need to + observe the `FBSDKAccessTokenDidChangeNotification` notification. + + If a token is already expired, it cannot be refreshed. + */ ++ (void)refreshCurrentAccessToken:(nullable FBSDKGraphRequestBlock)completionHandler; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAccessToken.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAccessToken.m new file mode 100644 index 0000000000000..71d215af71289 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAccessToken.m @@ -0,0 +1,240 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKAccessToken.h" + +#import "FBSDKGraphRequestPiggybackManager.h" +#import "FBSDKInternalUtility.h" +#import "FBSDKMath.h" +#import "FBSDKSettings+Internal.h" + +#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0 + +NSNotificationName const FBSDKAccessTokenDidChangeNotification = @"com.facebook.sdk.FBSDKAccessTokenData.FBSDKAccessTokenDidChangeNotification"; + +#else + +NSString *const FBSDKAccessTokenDidChangeNotification = @"com.facebook.sdk.FBSDKAccessTokenData.FBSDKAccessTokenDidChangeNotification"; + +#endif + +NSString *const FBSDKAccessTokenDidChangeUserIDKey = @"FBSDKAccessTokenDidChangeUserIDKey"; +NSString *const FBSDKAccessTokenChangeNewKey = @"FBSDKAccessToken"; +NSString *const FBSDKAccessTokenChangeOldKey = @"FBSDKAccessTokenOld"; +NSString *const FBSDKAccessTokenDidExpireKey = @"FBSDKAccessTokenDidExpireKey"; + +static FBSDKAccessToken *g_currentAccessToken; + +#define FBSDK_ACCESSTOKEN_TOKENSTRING_KEY @"tokenString" +#define FBSDK_ACCESSTOKEN_PERMISSIONS_KEY @"permissions" +#define FBSDK_ACCESSTOKEN_DECLINEDPERMISSIONS_KEY @"declinedPermissions" +#define FBSDK_ACCESSTOKEN_EXPIREDPERMISSIONS_KEY @"expiredPermissions" +#define FBSDK_ACCESSTOKEN_APPID_KEY @"appID" +#define FBSDK_ACCESSTOKEN_USERID_KEY @"userID" +#define FBSDK_ACCESSTOKEN_REFRESHDATE_KEY @"refreshDate" +#define FBSDK_ACCESSTOKEN_EXPIRATIONDATE_KEY @"expirationDate" +#define FBSDK_ACCESSTOKEN_DATA_EXPIRATIONDATE_KEY @"dataAccessExpirationDate" + + +@implementation FBSDKAccessToken + +- (instancetype)initWithTokenString:(NSString *)tokenString + permissions:(NSArray *)permissions + declinedPermissions:(NSArray *)declinedPermissions + expiredPermissions:(NSArray *)expiredPermissions + appID:(NSString *)appID + userID:(NSString *)userID + expirationDate:(NSDate *)expirationDate + refreshDate:(NSDate *)refreshDate + dataAccessExpirationDate:(NSDate *)dataAccessExpirationDate +{ + if ((self = [super init])) { + _tokenString = [tokenString copy]; + _permissions = [NSSet setWithArray:permissions]; + _declinedPermissions = [NSSet setWithArray:declinedPermissions]; + _expiredPermissions = [NSSet setWithArray:expiredPermissions]; + _appID = [appID copy]; + _userID = [userID copy]; + _expirationDate = [expirationDate copy] ?: [NSDate distantFuture]; + _refreshDate = [refreshDate copy] ?: [NSDate date]; + _dataAccessExpirationDate = [dataAccessExpirationDate copy] ?: [NSDate distantFuture]; + } + return self; +} + +- (BOOL)hasGranted:(NSString *)permission +{ + return [self.permissions containsObject:permission]; + +} + +- (BOOL)isDataAccessExpired +{ + return [self.dataAccessExpirationDate compare:NSDate.date] == NSOrderedAscending; +} + +- (BOOL)isExpired +{ + return [self.expirationDate compare:NSDate.date] == NSOrderedAscending; +} + ++ (FBSDKAccessToken *)currentAccessToken +{ + return g_currentAccessToken; +} + ++ (void)setCurrentAccessToken:(FBSDKAccessToken *)token +{ + if (token != g_currentAccessToken) { + NSMutableDictionary *userInfo = [NSMutableDictionary dictionary]; + [FBSDKBasicUtility dictionary:userInfo setObject:token forKey:FBSDKAccessTokenChangeNewKey]; + [FBSDKBasicUtility dictionary:userInfo setObject:g_currentAccessToken forKey:FBSDKAccessTokenChangeOldKey]; + // We set this flag also when the current Access Token was not valid, since there might be legacy code relying on it + if (![g_currentAccessToken.userID isEqualToString:token.userID] || !self.isCurrentAccessTokenActive) { + userInfo[FBSDKAccessTokenDidChangeUserIDKey] = @YES; + } + + g_currentAccessToken = token; + + // Only need to keep current session in web view for the case when token is current + // When token is abandoned cookies must to be cleaned up immediately + if (token == nil) { + [FBSDKInternalUtility deleteFacebookCookies]; + } + + [FBSDKSettings accessTokenCache].accessToken = token; + [[NSNotificationCenter defaultCenter] postNotificationName:FBSDKAccessTokenDidChangeNotification + object:[self class] + userInfo:userInfo]; + } +} + ++ (BOOL)isCurrentAccessTokenActive +{ + FBSDKAccessToken *currentAccessToken = [self currentAccessToken]; + return currentAccessToken != nil && !currentAccessToken.isExpired; +} + ++ (void)refreshCurrentAccessToken:(FBSDKGraphRequestBlock)completionHandler +{ + if ([FBSDKAccessToken currentAccessToken]) { + FBSDKGraphRequestConnection *connection = [[FBSDKGraphRequestConnection alloc] init]; + [FBSDKGraphRequestPiggybackManager addRefreshPiggyback:connection permissionHandler:completionHandler]; + [connection start]; + } else if (completionHandler) { + completionHandler(nil, nil, [FBSDKError + errorWithCode:FBSDKErrorAccessTokenRequired + message:@"No current access token to refresh"]); + } +} + +#pragma mark - Equality + +- (NSUInteger)hash +{ + NSUInteger subhashes[] = { + self.tokenString.hash, + self.permissions.hash, + self.declinedPermissions.hash, + self.expiredPermissions.hash, + self.appID.hash, + self.userID.hash, + self.refreshDate.hash, + self.expirationDate.hash, + self.dataAccessExpirationDate.hash + }; + return [FBSDKMath hashWithIntegerArray:subhashes count:sizeof(subhashes) / sizeof(subhashes[0])]; +} + +- (BOOL)isEqual:(id)object +{ + if (self == object) { + return YES; + } + if (![object isKindOfClass:[FBSDKAccessToken class]]) { + return NO; + } + return [self isEqualToAccessToken:(FBSDKAccessToken *)object]; +} + +- (BOOL)isEqualToAccessToken:(FBSDKAccessToken *)token +{ + return (token && + [FBSDKInternalUtility object:self.tokenString isEqualToObject:token.tokenString] && + [FBSDKInternalUtility object:self.permissions isEqualToObject:token.permissions] && + [FBSDKInternalUtility object:self.declinedPermissions isEqualToObject:token.declinedPermissions] && + [FBSDKInternalUtility object:self.expiredPermissions isEqualToObject:token.expiredPermissions] && + [FBSDKInternalUtility object:self.appID isEqualToObject:token.appID] && + [FBSDKInternalUtility object:self.userID isEqualToObject:token.userID] && + [FBSDKInternalUtility object:self.refreshDate isEqualToObject:token.refreshDate] && + [FBSDKInternalUtility object:self.expirationDate isEqualToObject:token.expirationDate] && + [FBSDKInternalUtility object:self.dataAccessExpirationDate isEqualToObject:token.dataAccessExpirationDate] ); +} + +#pragma mark - NSCopying + +- (id)copyWithZone:(NSZone *)zone +{ + // we're immutable. + return self; +} + +#pragma mark NSCoding + ++ (BOOL)supportsSecureCoding +{ + return YES; +} + +- (instancetype)initWithCoder:(NSCoder *)decoder +{ + NSString *appID = [decoder decodeObjectOfClass:[NSString class] forKey:FBSDK_ACCESSTOKEN_APPID_KEY]; + NSSet *declinedPermissions = [decoder decodeObjectOfClass:[NSSet class] forKey:FBSDK_ACCESSTOKEN_DECLINEDPERMISSIONS_KEY]; + NSSet *expiredPermissions = [decoder decodeObjectOfClass:[NSSet class] forKey:FBSDK_ACCESSTOKEN_EXPIREDPERMISSIONS_KEY]; + NSSet *permissions = [decoder decodeObjectOfClass:[NSSet class] forKey:FBSDK_ACCESSTOKEN_PERMISSIONS_KEY]; + NSString *tokenString = [decoder decodeObjectOfClass:[NSString class] forKey:FBSDK_ACCESSTOKEN_TOKENSTRING_KEY]; + NSString *userID = [decoder decodeObjectOfClass:[NSString class] forKey:FBSDK_ACCESSTOKEN_USERID_KEY]; + NSDate *refreshDate = [decoder decodeObjectOfClass:[NSDate class] forKey:FBSDK_ACCESSTOKEN_REFRESHDATE_KEY]; + NSDate *expirationDate = [decoder decodeObjectOfClass:[NSDate class] forKey:FBSDK_ACCESSTOKEN_EXPIRATIONDATE_KEY]; + NSDate *dataAccessExpirationDate = [decoder decodeObjectOfClass:[NSDate class] forKey:FBSDK_ACCESSTOKEN_DATA_EXPIRATIONDATE_KEY]; + + return [self initWithTokenString:tokenString + permissions:permissions.allObjects + declinedPermissions:declinedPermissions.allObjects + expiredPermissions:expiredPermissions.allObjects + appID:appID + userID:userID + expirationDate:expirationDate + refreshDate:refreshDate + dataAccessExpirationDate:dataAccessExpirationDate]; +} + +- (void)encodeWithCoder:(NSCoder *)encoder +{ + [encoder encodeObject:self.appID forKey:FBSDK_ACCESSTOKEN_APPID_KEY]; + [encoder encodeObject:self.declinedPermissions forKey:FBSDK_ACCESSTOKEN_DECLINEDPERMISSIONS_KEY]; + [encoder encodeObject:self.expiredPermissions forKey:FBSDK_ACCESSTOKEN_EXPIREDPERMISSIONS_KEY]; + [encoder encodeObject:self.permissions forKey:FBSDK_ACCESSTOKEN_PERMISSIONS_KEY]; + [encoder encodeObject:self.tokenString forKey:FBSDK_ACCESSTOKEN_TOKENSTRING_KEY]; + [encoder encodeObject:self.userID forKey:FBSDK_ACCESSTOKEN_USERID_KEY]; + [encoder encodeObject:self.expirationDate forKey:FBSDK_ACCESSTOKEN_EXPIRATIONDATE_KEY]; + [encoder encodeObject:self.refreshDate forKey:FBSDK_ACCESSTOKEN_REFRESHDATE_KEY]; + [encoder encodeObject:self.dataAccessExpirationDate forKey:FBSDK_ACCESSTOKEN_DATA_EXPIRATIONDATE_KEY]; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKApplicationDelegate.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKApplicationDelegate.h new file mode 100644 index 0000000000000..f09048014e717 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKApplicationDelegate.h @@ -0,0 +1,112 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + + The FBSDKApplicationDelegate is designed to post process the results from Facebook Login + or Facebook Dialogs (or any action that requires switching over to the native Facebook + app or Safari). + + + + The methods in this class are designed to mirror those in UIApplicationDelegate, and you + should call them in the respective methods in your AppDelegate implementation. + */ +NS_SWIFT_NAME(ApplicationDelegate) +@interface FBSDKApplicationDelegate : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Gets the singleton instance. + */ +@property (class, nonatomic, readonly, strong) FBSDKApplicationDelegate *sharedInstance +NS_SWIFT_NAME(shared); + +/** + Call this method from the [UIApplicationDelegate application:openURL:sourceApplication:annotation:] method + of the AppDelegate for your app. It should be invoked for the proper processing of responses during interaction + with the native Facebook app or Safari as part of SSO authorization flow or Facebook dialogs. + + @param application The application as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. + + @param url The URL as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. + + @param sourceApplication The sourceApplication as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. + + @param annotation The annotation as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:]. + + @return YES if the url was intended for the Facebook SDK, NO if not. + */ +- (BOOL)application:(UIApplication *)application + openURL:(NSURL *)url + sourceApplication:(nullable NSString *)sourceApplication + annotation:(nullable id)annotation; + +#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_9_0 +/** + Call this method from the [UIApplicationDelegate application:openURL:options:] method + of the AppDelegate for your app. It should be invoked for the proper processing of responses during interaction + with the native Facebook app or Safari as part of SSO authorization flow or Facebook dialogs. + + @param application The application as passed to [UIApplicationDelegate application:openURL:options:]. + + @param url The URL as passed to [UIApplicationDelegate application:openURL:options:]. + + @param options The options dictionary as passed to [UIApplicationDelegate application:openURL:options:]. + + @return YES if the url was intended for the Facebook SDK, NO if not. + */ +- (BOOL)application:(UIApplication *)application + openURL:(NSURL *)url + options:(NSDictionary *)options; +#endif + +/** + Call this method from the [UIApplicationDelegate application:didFinishLaunchingWithOptions:] method + of the AppDelegate for your app. It should be invoked for the proper use of the Facebook SDK. + As part of SDK initialization basic auto logging of app events will occur, this can be +controlled via 'FacebookAutoLogAppEventsEnabled' key in the project info plist file. + + @param application The application as passed to [UIApplicationDelegate application:didFinishLaunchingWithOptions:]. + + @param launchOptions The launchOptions as passed to [UIApplicationDelegate application:didFinishLaunchingWithOptions:]. + + @return YES if the url was intended for the Facebook SDK, NO if not. + */ +- (BOOL)application:(UIApplication *)application +didFinishLaunchingWithOptions:(nullable NSDictionary *)launchOptions; + +/** + Call this method to manually initialize SDK. + As we initialize SDK automatically, this should only be called when auto initialization is disabled, this can be + controlled via 'FacebookAutoInitEnabled' key in the project info plist file. + + @param launchOptions The launchOptions as passed to [UIApplicationDelegate application:didFinishLaunchingWithOptions:]. + Could be nil if you don't call this function from [UIApplicationDelegate application:didFinishLaunchingWithOptions:]. + */ ++ (void)initializeSDK:(nullable NSDictionary *)launchOptions; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKApplicationDelegate.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKApplicationDelegate.m new file mode 100644 index 0000000000000..cfb35289e6d84 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKApplicationDelegate.m @@ -0,0 +1,404 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKApplicationDelegate.h" +#import "FBSDKApplicationDelegate+Internal.h" + +#import + +#import "FBSDKAppEvents+Internal.h" +#import "FBSDKConstants.h" +#import "FBSDKDynamicFrameworkLoader.h" +#import "FBSDKError.h" +#import "FBSDKFeatureManager.h" +#import "FBSDKGateKeeperManager.h" +#import "FBSDKInstrumentManager.h" +#import "FBSDKInternalUtility.h" +#import "FBSDKLogger.h" +#import "FBSDKServerConfiguration.h" +#import "FBSDKServerConfigurationManager.h" +#import "FBSDKSettings+Internal.h" +#import "FBSDKTimeSpentData.h" + +#if !TARGET_OS_TV +#import "FBSDKMeasurementEventListener.h" +#import "FBSDKContainerViewController.h" +#import "FBSDKProfile+Internal.h" +#endif + +#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0 + +NSNotificationName const FBSDKApplicationDidBecomeActiveNotification = @"com.facebook.sdk.FBSDKApplicationDidBecomeActiveNotification"; + +#else + +NSString *const FBSDKApplicationDidBecomeActiveNotification = @"com.facebook.sdk.FBSDKApplicationDidBecomeActiveNotification"; + +#endif + +static NSString *const FBSDKAppLinkInboundEvent = @"fb_al_inbound"; +static NSString *const FBSDKKitsBitmaskKey = @"com.facebook.sdk.kits.bitmask"; +static BOOL g_isSDKInitialized = NO; +static UIApplicationState _applicationState; + +@implementation FBSDKApplicationDelegate +{ + NSHashTable> *_applicationObservers; + BOOL _isAppLaunched; +} + +#pragma mark - Class Methods + ++ (void)load +{ + if ([FBSDKSettings isAutoInitEnabled]) { + // when the app becomes active by any means, kick off the initialization. + [[NSNotificationCenter defaultCenter] addObserver:self + selector:@selector(initializeWithLaunchData:) + name:UIApplicationDidFinishLaunchingNotification + object:nil]; + } +} + +// Initialize SDK listeners +// Don't call this function in any place else. It should only be called when the class is loaded. ++ (void)initializeWithLaunchData:(NSNotification *)note +{ + [self initializeSDK:note.userInfo]; + // Remove the observer + [[NSNotificationCenter defaultCenter] removeObserver:self + name:UIApplicationDidFinishLaunchingNotification + object:nil]; +} + ++ (void)initializeSDK:(NSDictionary *)launchOptions +{ + if (g_isSDKInitialized) { + // Do nothing if initialized already + return; + } + + g_isSDKInitialized = YES; + + FBSDKApplicationDelegate *delegate = [self sharedInstance]; + + NSNotificationCenter *defaultCenter = [NSNotificationCenter defaultCenter]; + [defaultCenter addObserver:delegate selector:@selector(applicationDidEnterBackground:) name:UIApplicationDidEnterBackgroundNotification object:nil]; + [defaultCenter addObserver:delegate selector:@selector(applicationDidBecomeActive:) name:UIApplicationDidBecomeActiveNotification object:nil]; + + [[FBSDKAppEvents singleton] registerNotifications]; + + [delegate application:[UIApplication sharedApplication] didFinishLaunchingWithOptions:launchOptions]; + + [FBSDKFeatureManager checkFeature:FBSDKFeatureInstrument completionBlock:^(BOOL enabled) { + if (enabled) { + [FBSDKInstrumentManager enable]; + } + }]; + + [FBSDKFeatureManager checkFeature:FBSDKFeatureRestrictiveDataFiltering completionBlock:^(BOOL enabled) { + if (enabled) { + [FBSDKRestrictiveDataFilterManager enable]; + } + }]; + +#if !TARGET_OS_TV + // Register Listener for App Link measurement events + [FBSDKMeasurementEventListener defaultListener]; +#endif + // Set the SourceApplication for time spent data. This is not going to update the value if the app has already launched. + [FBSDKTimeSpentData setSourceApplication:launchOptions[UIApplicationLaunchOptionsSourceApplicationKey] + openURL:launchOptions[UIApplicationLaunchOptionsURLKey]]; + // Register on UIApplicationDidEnterBackgroundNotification events to reset source application data when app backgrounds. + [FBSDKTimeSpentData registerAutoResetSourceApplication]; + + [FBSDKInternalUtility validateFacebookReservedURLSchemes]; +} + ++ (FBSDKApplicationDelegate *)sharedInstance +{ + static FBSDKApplicationDelegate *_sharedInstance; + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + _sharedInstance = [[self alloc] init]; + }); + return _sharedInstance; +} + +#pragma mark - Object Lifecycle + +- (instancetype)init +{ + if ((self = [super init]) != nil) { + _applicationObservers = [[NSHashTable alloc] init]; + } + return self; +} + +- (void)dealloc +{ + [[NSNotificationCenter defaultCenter] removeObserver:self]; +} + +#pragma mark - UIApplicationDelegate + +#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_9_0 +- (BOOL)application:(UIApplication *)application + openURL:(NSURL *)url + options:(NSDictionary *)options +{ + if (@available(iOS 9.0, *)) { + return [self application:application + openURL:url + sourceApplication:options[UIApplicationOpenURLOptionsSourceApplicationKey] + annotation:options[UIApplicationOpenURLOptionsAnnotationKey]]; + } + + return NO; +} +#endif + +- (BOOL)application:(UIApplication *)application + openURL:(NSURL *)url + sourceApplication:(NSString *)sourceApplication + annotation:(id)annotation +{ + if (sourceApplication != nil && ![sourceApplication isKindOfClass:[NSString class]]) { + @throw [NSException exceptionWithName:NSInvalidArgumentException + reason:@"Expected 'sourceApplication' to be NSString. Please verify you are passing in 'sourceApplication' from your app delegate (not the UIApplication* parameter). If your app delegate implements iOS 9's application:openURL:options:, you should pass in options[UIApplicationOpenURLOptionsSourceApplicationKey]. " + userInfo:nil]; + } + [FBSDKTimeSpentData setSourceApplication:sourceApplication openURL:url]; + + BOOL handled = NO; + NSArray> *observers = [_applicationObservers allObjects]; + for (id observer in observers) { + if ([observer respondsToSelector:@selector(application:openURL:sourceApplication:annotation:)]) { + if ([observer application:application + openURL:url + sourceApplication:sourceApplication + annotation:annotation]) { + handled = YES; + } + } + } + + if (handled) { + return YES; + } + + [self _logIfAppLinkEvent:url]; + + return NO; +} + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + if ([self isAppLaunched]) { + return NO; + } + + _isAppLaunched = YES; + FBSDKAccessToken *cachedToken = [FBSDKSettings accessTokenCache].accessToken; + [FBSDKAccessToken setCurrentAccessToken:cachedToken]; + // fetch app settings + [FBSDKServerConfigurationManager loadServerConfigurationWithCompletionBlock:NULL]; + + if (FBSDKSettings.isAutoLogAppEventsEnabled) { + [self _logSDKInitialize]; + } +#if !TARGET_OS_TV + FBSDKProfile *cachedProfile = [FBSDKProfile fetchCachedProfile]; + [FBSDKProfile setCurrentProfile:cachedProfile]; +#endif + NSArray> *observers = [_applicationObservers allObjects]; + BOOL handled = NO; + for (id observer in observers) { + if ([observer respondsToSelector:@selector(application:didFinishLaunchingWithOptions:)]) { + if ([observer application:application didFinishLaunchingWithOptions:launchOptions]) { + handled = YES; + } + } + } + + return handled; +} + +- (void)applicationDidEnterBackground:(NSNotification *)notification +{ + _applicationState = UIApplicationStateBackground; + NSArray> *observers = [_applicationObservers allObjects]; + for (id observer in observers) { + if ([observer respondsToSelector:@selector(applicationDidEnterBackground:)]) { + [observer applicationDidEnterBackground:notification.object]; + } + } +} + +- (void)applicationDidBecomeActive:(NSNotification *)notification +{ + _applicationState = UIApplicationStateActive; + // Auto log basic events in case autoLogAppEventsEnabled is set + if (FBSDKSettings.isAutoLogAppEventsEnabled) { + [FBSDKAppEvents activateApp]; + } + + NSArray> *observers = [_applicationObservers copy]; + for (id observer in observers) { + if ([observer respondsToSelector:@selector(applicationDidBecomeActive:)]) { + [observer applicationDidBecomeActive:notification.object]; + } + } +} + +#pragma mark - Internal Methods + +#pragma mark - FBSDKApplicationObserving + +- (void)addObserver:(id)observer +{ + if (![_applicationObservers containsObject:observer]) { + [_applicationObservers addObject:observer]; + } +} + +- (void)removeObserver:(id)observer +{ + if ([_applicationObservers containsObject:observer]) { + [_applicationObservers removeObject:observer]; + } +} + ++ (UIApplicationState)applicationState +{ + return _applicationState; +} + +#pragma mark - Helper Methods + +- (void)_logIfAppLinkEvent:(NSURL *)url +{ + if (!url) { + return; + } + NSDictionary *params = [FBSDKBasicUtility dictionaryWithQueryString:url.query]; + NSString *applinkDataString = params[@"al_applink_data"]; + if (!applinkDataString) { + return; + } + + NSDictionary *applinkData = [FBSDKBasicUtility objectForJSONString:applinkDataString error:NULL]; + if (!applinkData) { + return; + } + + NSString *targetURLString = applinkData[@"target_url"]; + NSURL *targetURL = [targetURLString isKindOfClass:[NSString class]] ? [NSURL URLWithString:targetURLString] : nil; + + NSMutableDictionary *logData = [[NSMutableDictionary alloc] init]; + [FBSDKBasicUtility dictionary:logData setObject:targetURL.absoluteString forKey:@"targetURL"]; + [FBSDKBasicUtility dictionary:logData setObject:targetURL.host forKey:@"targetURLHost"]; + + NSDictionary *refererData = applinkData[@"referer_data"]; + if (refererData) { + [FBSDKBasicUtility dictionary:logData setObject:refererData[@"target_url"] forKey:@"referralTargetURL"]; + [FBSDKBasicUtility dictionary:logData setObject:refererData[@"url"] forKey:@"referralURL"]; + [FBSDKBasicUtility dictionary:logData setObject:refererData[@"app_name"] forKey:@"referralAppName"]; + } + [FBSDKBasicUtility dictionary:logData setObject:url.absoluteString forKey:@"inputURL"]; + [FBSDKBasicUtility dictionary:logData setObject:url.scheme forKey:@"inputURLScheme"]; + + [FBSDKAppEvents logInternalEvent:FBSDKAppLinkInboundEvent + parameters:logData + isImplicitlyLogged:YES]; +} + +- (void)_logSDKInitialize +{ + NSDictionary *metaInfo = [NSDictionary dictionaryWithObjects:@[@"login_lib_included", + @"marketing_lib_included", + @"messenger_lib_included", + @"places_lib_included", + @"share_lib_included", + @"tv_lib_included"] + forKeys:@[@"FBSDKLoginManager", + @"FBSDKAutoLog", + @"FBSDKMessengerButton", + @"FBSDKPlacesManager", + @"FBSDKShareDialog", + @"FBSDKTVInterfaceFactory"]]; + + NSInteger bitmask = 0; + NSInteger bit = 0; + NSMutableDictionary *params = NSMutableDictionary.new; + params[@"core_lib_included"] = @1; + for (NSString *className in metaInfo.allKeys) { + NSString *keyName = [metaInfo objectForKey:className]; + if (objc_lookUpClass([className UTF8String])) { + params[keyName] = @1; + bitmask |= 1 << bit; + } + bit++; + } + + // Tracking if the consuming Application is using Swift + id delegate = [UIApplication sharedApplication].delegate; + NSString const *className = NSStringFromClass([delegate class]); + if ([className componentsSeparatedByString:@"."].count > 1) { + params[@"is_using_swift"] = @YES; + } + + void (^checkViewForSwift)(void) = ^void () + { + // Additional check to see if the consuming application perhaps was + // originally an objc project but is now using Swift + UIViewController *topMostViewController = [FBSDKInternalUtility topMostViewController]; + NSString const *vcClassName = NSStringFromClass([topMostViewController class]); + if ([vcClassName componentsSeparatedByString:@"."].count > 1) { + params[@"is_using_swift"] = @YES; + } + }; + + if ([NSThread isMainThread]) { + checkViewForSwift(); + } else { + dispatch_sync(dispatch_get_main_queue(), ^{ + checkViewForSwift(); + }); + } + + NSInteger existingBitmask = [[NSUserDefaults standardUserDefaults] integerForKey:FBSDKKitsBitmaskKey]; + if (existingBitmask != bitmask) { + [[NSUserDefaults standardUserDefaults] setInteger:bitmask forKey:FBSDKKitsBitmaskKey]; + [FBSDKAppEvents logInternalEvent:@"fb_sdk_initialize" + parameters:params + isImplicitlyLogged:NO]; + } +} + ++ (BOOL)isSDKInitialized +{ + return [FBSDKSettings isAutoInitEnabled] || g_isSDKInitialized; +} + +// Wrapping this makes it mockable and enables testability +- (BOOL)isAppLaunched { + return _isAppLaunched; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKButton.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKButton.h new file mode 100644 index 0000000000000..bf5f0047ad846 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKButton.h @@ -0,0 +1,31 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + A base class for common SDK buttons. + */ +NS_SWIFT_NAME(FBButton) +@interface FBSDKButton : UIButton + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKButton.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKButton.m new file mode 100644 index 0000000000000..088b5b5a719e6 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKButton.m @@ -0,0 +1,465 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKButton.h" +#import "FBSDKButton+Subclass.h" + +#import "FBSDKAccessToken.h" +#import "FBSDKAppEvents+Internal.h" +#import "FBSDKAppEvents.h" +#import "FBSDKApplicationDelegate+Internal.h" +#import "FBSDKLogo.h" +#import "FBSDKUIUtility.h" +#import "FBSDKViewImpressionTracker.h" + +#define HEIGHT_TO_FONT_SIZE 0.47 +#define HEIGHT_TO_MARGIN 0.27 +#define HEIGHT_TO_PADDING 0.23 +#define HEIGHT_TO_TEXT_PADDING_CORRECTION 0.08 + +@implementation FBSDKButton +{ + BOOL _skipIntrinsicContentSizing; + BOOL _isExplicitlyDisabled; +} + +#pragma mark - Object Lifecycle + +- (instancetype)initWithFrame:(CGRect)frame +{ + if ((self = [super initWithFrame:frame])) { + _skipIntrinsicContentSizing = YES; + [self configureButton]; + _skipIntrinsicContentSizing = NO; + } + return self; +} + +- (void)awakeFromNib +{ + [super awakeFromNib]; + _skipIntrinsicContentSizing = YES; + [self configureButton]; + _skipIntrinsicContentSizing = NO; +} + +- (void)dealloc +{ + [[NSNotificationCenter defaultCenter] removeObserver:self]; +} + +#pragma mark - Properties + +- (void)setEnabled:(BOOL)enabled +{ + _isExplicitlyDisabled = !enabled; + [self checkImplicitlyDisabled]; +} + +#pragma mark - Layout + +- (CGRect)imageRectForContentRect:(CGRect)contentRect +{ + if (self.hidden || CGRectIsEmpty(self.bounds)) { + return CGRectZero; + } + CGRect imageRect = UIEdgeInsetsInsetRect(contentRect, self.imageEdgeInsets); + CGFloat margin = [self _marginForHeight:[self _heightForContentRect:contentRect]]; + imageRect = CGRectInset(imageRect, margin, margin); + imageRect.size.width = CGRectGetHeight(imageRect); + return imageRect; +} + +- (CGSize)intrinsicContentSize +{ + if (_skipIntrinsicContentSizing) { + return CGSizeZero; + } + _skipIntrinsicContentSizing = YES; + CGSize size = [self sizeThatFits:CGSizeMake(CGFLOAT_MAX, CGFLOAT_MAX)]; + _skipIntrinsicContentSizing = NO; + return size; +} + +- (void)layoutSubviews +{ + // automatic impression tracking if the button conforms to FBSDKButtonImpressionTracking + if ([self conformsToProtocol:@protocol(FBSDKButtonImpressionTracking)]) { + NSString *eventName = ((id)self).impressionTrackingEventName; + NSString *identifier = ((id)self).impressionTrackingIdentifier; + NSDictionary *parameters = ((id)self).analyticsParameters; + if (eventName && identifier) { + FBSDKViewImpressionTracker *impressionTracker = [FBSDKViewImpressionTracker impressionTrackerWithEventName:eventName]; + [impressionTracker logImpressionWithIdentifier:identifier parameters:parameters]; + } + } + [super layoutSubviews]; +} + +- (CGSize)sizeThatFits:(CGSize)size +{ + if (self.hidden) { + return CGSizeZero; + } + CGSize normalSize = [self sizeThatFits:size title:[self titleForState:UIControlStateNormal]]; + CGSize selectedSize = [self sizeThatFits:size title:[self titleForState:UIControlStateSelected]]; + return CGSizeMake(MAX(normalSize.width, selectedSize.width), MAX(normalSize.height, selectedSize.height)); +} + +- (void)sizeToFit +{ + CGRect bounds = self.bounds; + bounds.size = [self sizeThatFits:CGSizeMake(CGFLOAT_MAX, CGFLOAT_MAX)]; + self.bounds = bounds; +} + +- (CGRect)titleRectForContentRect:(CGRect)contentRect +{ + if (self.hidden || CGRectIsEmpty(self.bounds)) { + return CGRectZero; + } + CGRect imageRect = [self imageRectForContentRect:contentRect]; + CGFloat height = [self _heightForContentRect:contentRect]; + CGFloat padding = [self _paddingForHeight:height]; + CGFloat titleX = CGRectGetMaxX(imageRect) + padding; + CGRect titleRect = CGRectMake(titleX, 0.0, CGRectGetWidth(contentRect) - titleX, CGRectGetHeight(contentRect)); + + UIEdgeInsets titleEdgeInsets = UIEdgeInsetsZero; + if (!self.layer.needsLayout) { + UILabel *titleLabel = self.titleLabel; + if (titleLabel.textAlignment == NSTextAlignmentCenter) { + // if the text is centered, we need to adjust the frame for the titleLabel based on the size of the text in order + // to keep the text centered in the button without adding extra blank space to the right when unnecessary + // 1. the text fits centered within the button without colliding with the image (imagePaddingWidth) + // 2. the text would run into the image, so adjust the insets to effectively left align it (textPaddingWidth) + CGSize titleSize = FBSDKTextSize(titleLabel.text, + titleLabel.font, + titleRect.size, + titleLabel.lineBreakMode); + CGFloat titlePaddingWidth = (CGRectGetWidth(titleRect) - titleSize.width) / 2; + CGFloat imagePaddingWidth = titleX / 2; + CGFloat inset = MIN(titlePaddingWidth, imagePaddingWidth); + titleEdgeInsets.left -= inset; + titleEdgeInsets.right += inset; + } + } + return UIEdgeInsetsInsetRect(titleRect, titleEdgeInsets); +} + +#pragma mark - Subclass Methods + +- (void)logTapEventWithEventName:(NSString *)eventName parameters:(NSDictionary *)parameters +{ + [FBSDKAppEvents logInternalEvent:eventName + parameters:parameters + isImplicitlyLogged:YES + accessToken:[FBSDKAccessToken currentAccessToken]]; +} + +- (void)checkImplicitlyDisabled +{ + BOOL enabled = !_isExplicitlyDisabled && !self.implicitlyDisabled; + BOOL currentEnabled = self.enabled; + super.enabled = enabled; + if (currentEnabled != enabled) { + [self invalidateIntrinsicContentSize]; + [self setNeedsLayout]; + } +} + +- (void)configureButton +{ + [self configureWithIcon:[self defaultIcon] + title:nil + backgroundColor:[self defaultBackgroundColor] + highlightedColor:[self defaultHighlightedColor]]; +} + +- (void)configureWithIcon:(FBSDKIcon *)icon + title:(NSString *)title + backgroundColor:(UIColor *)backgroundColor + highlightedColor:(UIColor *)highlightedColor +{ + [self _configureWithIcon:icon + title:title + backgroundColor:backgroundColor + highlightedColor:highlightedColor + selectedTitle:nil + selectedIcon:nil + selectedColor:nil + selectedHighlightedColor:nil]; +} + +- (void)configureWithIcon:(FBSDKIcon *)icon + title:(NSString *)title + backgroundColor:(UIColor *)backgroundColor + highlightedColor:(UIColor *)highlightedColor + selectedTitle:(NSString *)selectedTitle + selectedIcon:(FBSDKIcon *)selectedIcon + selectedColor:(UIColor *)selectedColor + selectedHighlightedColor:(UIColor *)selectedHighlightedColor +{ + [self _configureWithIcon:icon + title:title + backgroundColor:backgroundColor + highlightedColor:highlightedColor + selectedTitle:selectedTitle + selectedIcon:selectedIcon + selectedColor:selectedColor + selectedHighlightedColor:selectedHighlightedColor]; +} + +- (UIColor *)defaultBackgroundColor +{ + return [UIColor colorWithRed:24.0/255.0 green:119.0/255.0 blue:242.0/255.0 alpha:1.0]; +} + +- (UIColor *)defaultDisabledColor +{ + return [UIColor colorWithRed:189.0/255.0 green:193.0/255.0 blue:201.0/255.0 alpha:1.0]; +} + +- (UIFont *)defaultFont +{ + return [UIFont systemFontOfSize:14]; +} + +- (UIColor *)defaultHighlightedColor +{ + return [UIColor colorWithRed:21.0/255.0 green:105.0/255.0 blue:214.0/255.0 alpha:1.0]; +} + +- (FBSDKIcon *)defaultIcon +{ + return [[FBSDKLogo alloc] init]; +} + +- (UIColor *)defaultSelectedColor +{ + return [UIColor colorWithRed:124.0/255.0 green:143.0/255.0 blue:200.0/255.0 alpha:1.0]; +} + +- (UIColor *)highlightedContentColor +{ + return [UIColor colorWithRed:218.0/255.0 green:221.0/255.0 blue:226.0/255.0 alpha:1.0]; +} + +- (BOOL)isImplicitlyDisabled +{ + return NO; +} + +- (CGSize)sizeThatFits:(CGSize)size title:(NSString *)title +{ + UIFont *font = self.titleLabel.font; + CGFloat height = [self _heightForFont:font]; + + UIEdgeInsets contentEdgeInsets = self.contentEdgeInsets; + + CGSize constrainedContentSize = FBSDKEdgeInsetsInsetSize(size, contentEdgeInsets); + + CGSize titleSize = FBSDKTextSize(title, font, constrainedContentSize, self.titleLabel.lineBreakMode); + + CGFloat padding = [self _paddingForHeight:height]; + CGFloat textPaddingCorrection = [self _textPaddingCorrectionForHeight:height]; + CGSize contentSize = CGSizeMake(height + padding + titleSize.width - textPaddingCorrection, height); + return FBSDKEdgeInsetsOutsetSize(contentSize, contentEdgeInsets); +} + +#pragma mark - Helper Methods + +- (void)_applicationDidBecomeActiveNotification:(NSNotification *)notification +{ + [self checkImplicitlyDisabled]; +} + +- (UIImage *)_backgroundImageWithColor:(UIColor *)color cornerRadius:(CGFloat)cornerRadius scale:(CGFloat)scale +{ + CGFloat size = 1.0 + 2 * cornerRadius; + UIGraphicsBeginImageContextWithOptions(CGSizeMake(size, size), NO, scale); + CGContextRef context = UIGraphicsGetCurrentContext(); + CGContextSetFillColorWithColor(context, color.CGColor); + CGMutablePathRef path = CGPathCreateMutable(); + CGPathMoveToPoint(path, NULL, cornerRadius + 1.0, 0.0); + CGPathAddArcToPoint(path, NULL, size, 0.0, size, cornerRadius, cornerRadius); + CGPathAddLineToPoint(path, NULL, size, cornerRadius + 1.0); + CGPathAddArcToPoint(path, NULL, size, size, cornerRadius + 1.0, size, cornerRadius); + CGPathAddLineToPoint(path, NULL, cornerRadius, size); + CGPathAddArcToPoint(path, NULL, 0.0, size, 0.0, cornerRadius + 1.0, cornerRadius); + CGPathAddLineToPoint(path, NULL, 0.0, cornerRadius); + CGPathAddArcToPoint(path, NULL, 0.0, 0.0, cornerRadius, 0.0, cornerRadius); + CGPathCloseSubpath(path); + CGContextAddPath(context, path); + CGPathRelease(path); + CGContextFillPath(context); + UIImage *image = UIGraphicsGetImageFromCurrentImageContext(); + UIGraphicsEndImageContext(); +#if TARGET_OS_TV + return [image resizableImageWithCapInsets:UIEdgeInsetsMake(cornerRadius, cornerRadius, cornerRadius, cornerRadius) + resizingMode:UIImageResizingModeStretch]; +#else + return [image stretchableImageWithLeftCapWidth:cornerRadius topCapHeight:cornerRadius]; +#endif +} + +- (void)_configureWithIcon:(FBSDKIcon *)icon + title:(NSString *)title + backgroundColor:(UIColor *)backgroundColor + highlightedColor:(UIColor *)highlightedColor + selectedTitle:(NSString *)selectedTitle + selectedIcon:(FBSDKIcon *)selectedIcon + selectedColor:(UIColor *)selectedColor + selectedHighlightedColor:(UIColor *)selectedHighlightedColor +{ + [self checkImplicitlyDisabled]; + + if (!icon) { + icon = [self defaultIcon]; + } + if (!selectedIcon) { + selectedIcon = [self defaultIcon]; + } + if (!backgroundColor) { + backgroundColor = [self defaultBackgroundColor]; + } + if (!highlightedColor) { + highlightedColor = [self defaultHighlightedColor]; + } + if (!selectedColor) { + selectedColor = [self defaultSelectedColor]; + } + if (!selectedHighlightedColor) { + selectedHighlightedColor = highlightedColor; + } + + self.adjustsImageWhenDisabled = NO; + self.adjustsImageWhenHighlighted = NO; + self.contentHorizontalAlignment = UIControlContentHorizontalAlignmentFill; + self.contentVerticalAlignment = UIControlContentVerticalAlignmentFill; + self.tintColor = [UIColor whiteColor]; + + BOOL forceSizeToFit = CGRectIsEmpty(self.bounds); + + CGFloat scale = [UIScreen mainScreen].scale; + UIImage *backgroundImage; + + backgroundImage = [self _backgroundImageWithColor:backgroundColor cornerRadius:3.0 scale:scale]; + [self setBackgroundImage:backgroundImage forState:UIControlStateNormal]; +#if TARGET_OS_TV + [self setBackgroundImage:backgroundImage forState:UIControlStateFocused]; +#endif + + backgroundImage = [self _backgroundImageWithColor:highlightedColor cornerRadius:3.0 scale:scale]; + [self setBackgroundImage:backgroundImage forState:UIControlStateHighlighted]; + + backgroundImage = [self _backgroundImageWithColor:[self defaultDisabledColor] cornerRadius:3.0 scale:scale]; + [self setBackgroundImage:backgroundImage forState:UIControlStateDisabled]; + + if (selectedColor) { + backgroundImage = [self _backgroundImageWithColor:selectedColor cornerRadius:3.0 scale:scale]; + [self setBackgroundImage:backgroundImage forState:UIControlStateSelected]; + } + + if (selectedHighlightedColor) { + backgroundImage = [self _backgroundImageWithColor:selectedHighlightedColor cornerRadius:3.0 scale:scale]; + [self setBackgroundImage:backgroundImage forState:UIControlStateSelected | UIControlStateHighlighted]; +#if TARGET_OS_TV + [self setBackgroundImage:backgroundImage forState:UIControlStateSelected | UIControlStateFocused]; +#endif + } + + [self setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; + [self setTitleColor:[self highlightedContentColor] forState: UIControlStateHighlighted | UIControlStateSelected]; + + [self setTitle:title forState:UIControlStateNormal]; +#if TARGET_OS_TV + [self setTitle:title forState:UIControlStateFocused]; +#endif + if (selectedTitle) { + [self setTitle:selectedTitle forState:UIControlStateSelected]; + [self setTitle:selectedTitle forState:UIControlStateSelected | UIControlStateHighlighted]; +#if TARGET_OS_TV + [self setTitle:selectedTitle forState:UIControlStateSelected | UIControlStateFocused]; +#endif + } + + UILabel *titleLabel = self.titleLabel; + titleLabel.lineBreakMode = NSLineBreakByClipping; + UIFont *font = [self defaultFont]; + titleLabel.font = font; + + CGSize imageSize = CGSizeMake(font.pointSize, font.pointSize); + UIImage *image = [icon imageWithSize:imageSize]; + image = [image resizableImageWithCapInsets:UIEdgeInsetsZero resizingMode:UIImageResizingModeStretch]; + [self setImage:image forState:UIControlStateNormal]; +#if TARGET_OS_TV + [self setImage:image forState:UIControlStateFocused]; +#endif + + if (selectedIcon) { + UIImage *selectedImage = [selectedIcon imageWithSize:imageSize]; + selectedImage = [selectedImage resizableImageWithCapInsets:UIEdgeInsetsZero + resizingMode:UIImageResizingModeStretch]; + [self setImage:selectedImage forState:UIControlStateSelected]; + [self setImage:selectedImage forState:UIControlStateSelected | UIControlStateHighlighted]; +#if TARGET_OS_TV + [self setImage:selectedImage forState:UIControlStateSelected | UIControlStateFocused]; +#endif + } + + if (forceSizeToFit) { + [self sizeToFit]; + } + [[NSNotificationCenter defaultCenter] addObserver:self + selector:@selector(_applicationDidBecomeActiveNotification:) + name:FBSDKApplicationDidBecomeActiveNotification + object:[FBSDKApplicationDelegate sharedInstance]]; +} + +- (CGFloat)_fontSizeForHeight:(CGFloat)height +{ + return floorf(height * HEIGHT_TO_FONT_SIZE); +} + +- (CGFloat)_heightForContentRect:(CGRect)contentRect +{ + UIEdgeInsets contentEdgeInsets = self.contentEdgeInsets; + return contentEdgeInsets.top + CGRectGetHeight(contentRect) + contentEdgeInsets.bottom; +} + +- (CGFloat)_heightForFont:(UIFont *)font +{ + return floorf(font.pointSize / (1 - 2 * HEIGHT_TO_MARGIN)); +} + +- (CGFloat)_marginForHeight:(CGFloat)height +{ + return floorf(height * HEIGHT_TO_MARGIN); +} + +- (CGFloat)_paddingForHeight:(CGFloat)height +{ + return roundf(height * HEIGHT_TO_PADDING) - [self _textPaddingCorrectionForHeight:height]; +} + +- (CGFloat)_textPaddingCorrectionForHeight:(CGFloat)height +{ + return floorf(height * HEIGHT_TO_TEXT_PADDING_CORRECTION); +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKConstants.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKConstants.h new file mode 100644 index 0000000000000..6915368acd97a --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKConstants.h @@ -0,0 +1,370 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_ASSUME_NONNULL_BEGIN + +#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0 + +/** + The error domain for all errors from FBSDKCoreKit. + + Error codes from the SDK in the range 0-99 are reserved for this domain. + */ +FOUNDATION_EXPORT NSErrorDomain const FBSDKErrorDomain +NS_SWIFT_NAME(ErrorDomain); + +#else + +/** + The error domain for all errors from FBSDKCoreKit. + + Error codes from the SDK in the range 0-99 are reserved for this domain. + */ +FOUNDATION_EXPORT NSString *const FBSDKErrorDomain +NS_SWIFT_NAME(ErrorDomain); + +#endif + +#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_11_0 + +/* + @methodgroup error userInfo keys + */ + +/** + The userInfo key for the invalid collection for errors with FBSDKErrorInvalidArgument. + + If the invalid argument is a collection, the collection can be found with this key and the individual + invalid item can be found with FBSDKErrorArgumentValueKey. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorArgumentCollectionKey +NS_SWIFT_NAME(ErrorArgumentCollectionKey); + +/** + The userInfo key for the invalid argument name for errors with FBSDKErrorInvalidArgument. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorArgumentNameKey +NS_SWIFT_NAME(ErrorArgumentNameKey); + +/** + The userInfo key for the invalid argument value for errors with FBSDKErrorInvalidArgument. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorArgumentValueKey +NS_SWIFT_NAME(ErrorArgumentValueKey); + +/** + The userInfo key for the message for developers in NSErrors that originate from the SDK. + + The developer message will not be localized and is not intended to be presented within the app. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorDeveloperMessageKey +NS_SWIFT_NAME(ErrorDeveloperMessageKey); + +/** + The userInfo key describing a localized description that can be presented to the user. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorLocalizedDescriptionKey +NS_SWIFT_NAME(ErrorLocalizedDescriptionKey); + +/** + The userInfo key describing a localized title that can be presented to the user, used with `FBSDKLocalizedErrorDescriptionKey`. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKErrorLocalizedTitleKey +NS_SWIFT_NAME(ErrorLocalizedTitleKey); + +/* + @methodgroup FBSDKGraphRequest error userInfo keys + */ + +/** + The userInfo key describing the error category, for error recovery purposes. + + See `FBSDKGraphErrorRecoveryProcessor` and `[FBSDKGraphRequest disableErrorRecovery]`. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorKey +NS_SWIFT_NAME(GraphRequestErrorKey); + +/* + The userInfo key for the Graph API error code. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorGraphErrorCodeKey +NS_SWIFT_NAME(GraphRequestErrorGraphErrorCodeKey); + +/* + The userInfo key for the Graph API error subcode. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorGraphErrorSubcodeKey +NS_SWIFT_NAME(GraphRequestErrorGraphErrorSubcodeKey); + +/* + The userInfo key for the HTTP status code. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorHTTPStatusCodeKey +NS_SWIFT_NAME(GraphRequestErrorHTTPStatusCodeKey); + +/* + The userInfo key for the raw JSON response. + */ +FOUNDATION_EXPORT NSErrorUserInfoKey const FBSDKGraphRequestErrorParsedJSONResponseKey +NS_SWIFT_NAME(GraphRequestErrorParsedJSONResponseKey); + +#else + +/* + @methodgroup error userInfo keys + */ + +/** + The userInfo key for the invalid collection for errors with FBSDKErrorInvalidArgument. + + If the invalid argument is a collection, the collection can be found with this key and the individual + invalid item can be found with FBSDKErrorArgumentValueKey. + */ +FOUNDATION_EXPORT NSString *const FBSDKErrorArgumentCollectionKey +NS_SWIFT_NAME(ErrorArgumentCollectionKey); + +/** + The userInfo key for the invalid argument name for errors with FBSDKErrorInvalidArgument. + */ +FOUNDATION_EXPORT NSString *const FBSDKErrorArgumentNameKey +NS_SWIFT_NAME(ErrorArgumentNameKey); + +/** + The userInfo key for the invalid argument value for errors with FBSDKErrorInvalidArgument. + */ +FOUNDATION_EXPORT NSString *const FBSDKErrorArgumentValueKey +NS_SWIFT_NAME(ErrorArgumentValueKey); + +/** + The userInfo key for the message for developers in NSErrors that originate from the SDK. + + The developer message will not be localized and is not intended to be presented within the app. + */ +FOUNDATION_EXPORT NSString *const FBSDKErrorDeveloperMessageKey +NS_SWIFT_NAME(ErrorDeveloperMessageKey); + +/** + The userInfo key describing a localized description that can be presented to the user. + */ +FOUNDATION_EXPORT NSString *const FBSDKErrorLocalizedDescriptionKey +NS_SWIFT_NAME(ErrorLocalizedDescriptionKey); + +/** + The userInfo key describing a localized title that can be presented to the user, used with `FBSDKLocalizedErrorDescriptionKey`. + */ +FOUNDATION_EXPORT NSString *const FBSDKErrorLocalizedTitleKey +NS_SWIFT_NAME(ErrorLocalizedTitleKey); + +/* + @methodgroup FBSDKGraphRequest error userInfo keys + */ + +/** + The userInfo key describing the error category, for error recovery purposes. + + See `FBSDKGraphErrorRecoveryProcessor` and `[FBSDKGraphRequest disableErrorRecovery]`. + */ +FOUNDATION_EXPORT NSString *const FBSDKGraphRequestErrorKey +NS_SWIFT_NAME(GraphRequestErrorKey); + +/* + The userInfo key for the Graph API error code. + */ +FOUNDATION_EXPORT NSString *const FBSDKGraphRequestErrorGraphErrorCodeKey +NS_SWIFT_NAME(GraphRequestErrorGraphErrorCodeKey); + +/* + The userInfo key for the Graph API error subcode. + */ +FOUNDATION_EXPORT NSString *const FBSDKGraphRequestErrorGraphErrorSubcodeKey +NS_SWIFT_NAME(GraphRequestErrorGraphErrorSubcodeKey); + +/* + The userInfo key for the HTTP status code. + */ +FOUNDATION_EXPORT NSString *const FBSDKGraphRequestErrorHTTPStatusCodeKey +NS_SWIFT_NAME(GraphRequestErrorHTTPStatusCodeKey); + +/* + The userInfo key for the raw JSON response. + */ +FOUNDATION_EXPORT NSString *const FBSDKGraphRequestErrorParsedJSONResponseKey +NS_SWIFT_NAME(GraphRequestErrorParsedJSONResponseKey); + +#endif + +/* + @methodgroup Common Code Block typedefs + */ + +/** + Success Block + */ +typedef void (^FBSDKCodeBlock)(void) +NS_SWIFT_NAME(CodeBlock); + +/** + Error Block + */ +typedef void (^FBSDKErrorBlock)(NSError *_Nullable error) +NS_SWIFT_NAME(ErrorBlock); + +/** + Success Block + */ +typedef void (^FBSDKSuccessBlock)(BOOL success, NSError *_Nullable error) +NS_SWIFT_NAME(SuccessBlock); + +/* + @methodgroup Enums + */ + +#ifndef NS_ERROR_ENUM +#define NS_ERROR_ENUM(_domain, _name) \ +enum _name: NSInteger _name; \ +enum __attribute__((ns_error_domain(_domain))) _name: NSInteger +#endif + +/** + FBSDKCoreError + Error codes for FBSDKErrorDomain. + */ +typedef NS_ERROR_ENUM(FBSDKErrorDomain, FBSDKCoreError) +{ + /** + Reserved. + */ + FBSDKErrorReserved = 0, + + /** + The error code for errors from invalid encryption on incoming encryption URLs. + */ + FBSDKErrorEncryption, + + /** + The error code for errors from invalid arguments to SDK methods. + */ + FBSDKErrorInvalidArgument, + + /** + The error code for unknown errors. + */ + FBSDKErrorUnknown, + + /** + A request failed due to a network error. Use NSUnderlyingErrorKey to retrieve + the error object from the NSURLSession for more information. + */ + FBSDKErrorNetwork, + + /** + The error code for errors encountered during an App Events flush. + */ + FBSDKErrorAppEventsFlush, + + /** + An endpoint that returns a binary response was used with FBSDKGraphRequestConnection. + + Endpoints that return image/jpg, etc. should be accessed using NSURLRequest + */ + FBSDKErrorGraphRequestNonTextMimeTypeReturned, + + /** + The operation failed because the server returned an unexpected response. + + You can get this error if you are not using the most recent SDK, or you are accessing a version of the + Graph API incompatible with the current SDK. + */ + FBSDKErrorGraphRequestProtocolMismatch, + + /** + The Graph API returned an error. + + See below for useful userInfo keys (beginning with FBSDKGraphRequestError*) + */ + FBSDKErrorGraphRequestGraphAPI, + + /** + The specified dialog configuration is not available. + + This error may signify that the configuration for the dialogs has not yet been downloaded from the server + or that the dialog is unavailable. Subsequent attempts to use the dialog may succeed as the configuration is loaded. + */ + FBSDKErrorDialogUnavailable, + + /** + Indicates an operation failed because a required access token was not found. + */ + FBSDKErrorAccessTokenRequired, + + /** + Indicates an app switch (typically for a dialog) failed because the destination app is out of date. + */ + FBSDKErrorAppVersionUnsupported, + + /** + Indicates an app switch to the browser (typically for a dialog) failed. + */ + FBSDKErrorBrowserUnavailable, +} NS_SWIFT_NAME(CoreError); + +/** + FBSDKGraphRequestError + Describes the category of Facebook error. See `FBSDKGraphRequestErrorKey`. + */ +typedef NS_ENUM(NSUInteger, FBSDKGraphRequestError) +{ + /** The default error category that is not known to be recoverable. Check `FBSDKLocalizedErrorDescriptionKey` for a user facing message. */ + FBSDKGraphRequestErrorOther = 0, + /** Indicates the error is temporary (such as server throttling). While a recoveryAttempter will be provided with the error instance, the attempt is guaranteed to succeed so you can simply retry the operation if you do not want to present an alert. */ + FBSDKGraphRequestErrorTransient = 1, + /** Indicates the error can be recovered (such as requiring a login). A recoveryAttempter will be provided with the error instance that can take UI action. */ + FBSDKGraphRequestErrorRecoverable = 2 +} NS_SWIFT_NAME(GraphRequestError); + +/** + a formal protocol very similar to the informal protocol NSErrorRecoveryAttempting + */ +NS_SWIFT_UNAVAILABLE("") +@protocol FBSDKErrorRecoveryAttempting + +/** + attempt the recovery + @param error the error + @param recoveryOptionIndex the selected option index + @param delegate the delegate + @param didRecoverSelector the callback selector, see discussion. + @param contextInfo context info to pass back to callback selector, see discussion. + + + Given that an error alert has been presented document-modally to the user, and the user has chosen one of the error's recovery options, attempt recovery from the error, and send the selected message to the specified delegate. The option index is an index into the error's array of localized recovery options. The method selected by didRecoverSelector must have the same signature as: + + - (void)didPresentErrorWithRecovery:(BOOL)didRecover contextInfo:(void *)contextInfo; + + The value passed for didRecover must be YES if error recovery was completely successful, NO otherwise. + */ +- (void)attemptRecoveryFromError:(NSError *)error + optionIndex:(NSUInteger)recoveryOptionIndex + delegate:(nullable id)delegate + didRecoverSelector:(SEL)didRecoverSelector + contextInfo:(nullable void *)contextInfo; +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKConstants.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKConstants.m new file mode 100644 index 0000000000000..756a122d7ccac --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKConstants.m @@ -0,0 +1,64 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKConstants.h" + +#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0 + +NSErrorDomain const FBSDKErrorDomain = @"com.facebook.sdk.core"; + +#else + +NSString *const FBSDKErrorDomain = @"com.facebook.sdk.core"; + +#endif + + +#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0 + +NSErrorUserInfoKey const FBSDKErrorArgumentCollectionKey = @"com.facebook.sdk:FBSDKErrorArgumentCollectionKey"; +NSErrorUserInfoKey const FBSDKErrorArgumentNameKey = @"com.facebook.sdk:FBSDKErrorArgumentNameKey"; +NSErrorUserInfoKey const FBSDKErrorArgumentValueKey = @"com.facebook.sdk:FBSDKErrorArgumentValueKey"; +NSErrorUserInfoKey const FBSDKErrorDeveloperMessageKey = @"com.facebook.sdk:FBSDKErrorDeveloperMessageKey"; +NSErrorUserInfoKey const FBSDKErrorLocalizedDescriptionKey = @"com.facebook.sdk:FBSDKErrorLocalizedDescriptionKey"; +NSErrorUserInfoKey const FBSDKErrorLocalizedTitleKey = @"com.facebook.sdk:FBSDKErrorLocalizedErrorTitleKey"; + +NSErrorUserInfoKey const FBSDKGraphRequestErrorKey = @"com.facebook.sdk:FBSDKGraphRequestErrorKey"; +NSErrorUserInfoKey const FBSDKGraphRequestErrorCategoryKey = @"com.facebook.sdk:FBSDKGraphRequestErrorCategoryKey"; +NSErrorUserInfoKey const FBSDKGraphRequestErrorGraphErrorCodeKey = @"com.facebook.sdk:FBSDKGraphRequestErrorGraphErrorCodeKey"; +NSErrorUserInfoKey const FBSDKGraphRequestErrorGraphErrorSubcodeKey = @"com.facebook.sdk:FBSDKGraphRequestErrorGraphErrorSubcodeKey"; +NSErrorUserInfoKey const FBSDKGraphRequestErrorHTTPStatusCodeKey = @"com.facebook.sdk:FBSDKGraphRequestErrorHTTPStatusCodeKey"; +NSErrorUserInfoKey const FBSDKGraphRequestErrorParsedJSONResponseKey = @"com.facebook.sdk:FBSDKGraphRequestErrorParsedJSONResponseKey"; + +#else + +NSString *const FBSDKErrorArgumentCollectionKey = @"com.facebook.sdk:FBSDKErrorArgumentCollectionKey"; +NSString *const FBSDKErrorArgumentNameKey = @"com.facebook.sdk:FBSDKErrorArgumentNameKey"; +NSString *const FBSDKErrorArgumentValueKey = @"com.facebook.sdk:FBSDKErrorArgumentValueKey"; +NSString *const FBSDKErrorDeveloperMessageKey = @"com.facebook.sdk:FBSDKErrorDeveloperMessageKey"; +NSString *const FBSDKErrorLocalizedDescriptionKey = @"com.facebook.sdk:FBSDKErrorLocalizedDescriptionKey"; +NSString *const FBSDKErrorLocalizedTitleKey = @"com.facebook.sdk:FBSDKErrorLocalizedErrorTitleKey"; + +NSString *const FBSDKGraphRequestErrorKey = @"com.facebook.sdk:FBSDKGraphRequestErrorCategoryKey"; +NSString *const FBSDKGraphRequestErrorCategoryKey = @"com.facebook.sdk:FBSDKGraphRequestErrorCategoryKey"; +NSString *const FBSDKGraphRequestErrorGraphErrorCodeKey = @"com.facebook.sdk:FBSDKGraphRequestErrorGraphErrorCodeKey"; +NSString *const FBSDKGraphRequestErrorGraphErrorSubcodeKey = @"com.facebook.sdk:FBSDKGraphRequestErrorGraphErrorSubcodeKey"; +NSString *const FBSDKGraphRequestErrorHTTPStatusCodeKey = @"com.facebook.sdk:FBSDKGraphRequestErrorHTTPStatusCodeKey"; +NSString *const FBSDKGraphRequestErrorParsedJSONResponseKey = @"com.facebook.sdk:FBSDKGraphRequestErrorParsedJSONResponseKey"; + +#endif diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKCopying.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKCopying.h new file mode 100644 index 0000000000000..fc938bbd29d97 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKCopying.h @@ -0,0 +1,39 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Extension protocol for NSCopying that adds the copy method, which is implemented on NSObject. + + NSObject implicitly conforms to this protocol. + */ +NS_SWIFT_NAME(Copying) +@protocol FBSDKCopying + +/** + Implemented by NSObject as a convenience to copyWithZone:. + @return A copy of the receiver. + */ +- (id)copy; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit.h new file mode 100644 index 0000000000000..67cfcc6664012 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit.h @@ -0,0 +1,56 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import + +#if !TARGET_OS_TV +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#else +#import +#import +#endif + +#define FBSDK_VERSION_STRING @"5.8.0" +#define FBSDK_TARGET_PLATFORM_VERSION @"v4.0" diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphErrorRecoveryProcessor.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphErrorRecoveryProcessor.h new file mode 100644 index 0000000000000..465c6abb45c06 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphErrorRecoveryProcessor.h @@ -0,0 +1,114 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import "FBSDKConstants.h" + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKGraphErrorRecoveryProcessor; +@class FBSDKGraphRequest; + +/** + Defines a delegate for `FBSDKGraphErrorRecoveryProcessor`. + */ +NS_SWIFT_NAME(GraphErrorRecoveryProcessorDelegate) +@protocol FBSDKGraphErrorRecoveryProcessorDelegate + +/** + Indicates the error recovery has been attempted. + @param processor the processor instance. + @param didRecover YES if the recovery was successful. + @param error the error that that was attempted to be recovered from. + */ +- (void)processorDidAttemptRecovery:(FBSDKGraphErrorRecoveryProcessor *)processor + didRecover:(BOOL)didRecover + error:(nullable NSError *)error; + +@optional +/** + Indicates the processor is about to process the error. + @param processor the processor instance. + @param error the error is about to be processed. + + return NO if the processor should not process the error. For example, + if you want to prevent alerts of localized messages but otherwise perform retries and recoveries, + you could return NO for errors where userInfo[FBSDKGraphRequestErrorKey] equal to FBSDKGraphRequestErrorOther + */ +- (BOOL)processorWillProcessError:(FBSDKGraphErrorRecoveryProcessor *)processor + error:(nullable NSError *)error; + +@end + +NS_ASSUME_NONNULL_END + +NS_ASSUME_NONNULL_BEGIN + +/** + Defines a type that can process Facebook NSErrors with best practices. + + Facebook NSErrors can contain FBSDKErrorRecoveryAttempting instances to recover from errors, or + localized messages to present to the user. This class will process the instances as follows: + + 1. If the error is temporary as indicated by FBSDKGraphRequestErrorKey, assume the recovery succeeded and + notify the delegate. + 2. If a FBSDKErrorRecoveryAttempting instance is available, display an alert (dispatched to main thread) + with the recovery options and call the instance's [ attemptRecoveryFromError:optionIndex:...]. + 3. If a FBSDKErrorRecoveryAttempting is not available, check the userInfo for FBSDKLocalizedErrorDescriptionKey + and present that in an alert (dispatched to main thread). + + By default, FBSDKGraphRequests use this type to process errors and retry the request upon a successful + recovery. + + Note that Facebook recovery attempters can present UI or even cause app switches (such as to login). Any such + work is dispatched to the main thread (therefore your request handlers may then run on the main thread). + + Login recovery requires FBSDKLoginKit. Login will prompt the user + for all permissions last granted. If any are declined on the new request, the recovery is not successful but + the `[FBSDKAccessToken currentAccessToken]` might still have been updated. + . + */ +NS_SWIFT_UNAVAILABLE("") +@interface FBSDKGraphErrorRecoveryProcessor : NSObject + +/** + Gets the delegate. Note this is a strong reference, and is nil'ed out after recovery is complete. + */ +@property (nonatomic, strong, readonly, nullable) iddelegate; + +/** + Attempts to process the error, return YES if the error can be processed. + @param error the error to process. + @param request the related request that may be reissued. + @param delegate the delegate that will be retained until recovery is complete. + */ +- (BOOL)processError:(NSError *)error + request:(FBSDKGraphRequest *)request + delegate:(nullable id)delegate; + +/** + The callback for FBSDKErrorRecoveryAttempting + @param didRecover if the recovery succeeded + @param contextInfo unused + */ +- (void)didPresentErrorWithRecovery:(BOOL)didRecover contextInfo:(nullable void *)contextInfo; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphErrorRecoveryProcessor.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphErrorRecoveryProcessor.m new file mode 100644 index 0000000000000..1951d866b6aa6 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphErrorRecoveryProcessor.m @@ -0,0 +1,147 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#import "FBSDKGraphErrorRecoveryProcessor.h" + +#import + +#import "FBSDKErrorRecoveryAttempter.h" + +@interface FBSDKGraphErrorRecoveryProcessor() +{ + FBSDKErrorRecoveryAttempter *_recoveryAttempter; + NSError *_error; +} + +@property (nonatomic, strong, nullable) iddelegate; + +@end + +@implementation FBSDKGraphErrorRecoveryProcessor + +- (BOOL)processError:(NSError *)error request:(FBSDKGraphRequest *)request delegate:(id)delegate +{ + self.delegate = delegate; + if ([self.delegate respondsToSelector:@selector(processorWillProcessError:error:)]) { + if (![self.delegate processorWillProcessError:self error:error]) { + return NO; + } + } + + FBSDKGraphRequestError errorCategory = [error.userInfo[FBSDKGraphRequestErrorKey] unsignedIntegerValue]; + switch (errorCategory) { + case FBSDKGraphRequestErrorTransient : + [self.delegate processorDidAttemptRecovery:self didRecover:YES error:nil]; + self.delegate = nil; + return YES; + case FBSDKGraphRequestErrorRecoverable : + if ([request.tokenString isEqualToString:[FBSDKAccessToken currentAccessToken].tokenString]) { + _recoveryAttempter = error.recoveryAttempter; + + // Set up a block to do the typical recovery work so that we can chain it for ios auth special cases. + // the block returns YES if recovery UI is started (meaning we wait for the alertviewdelegate to resume control flow). + BOOL (^standardRecoveryWork)(void) = ^BOOL{ + NSArray *recoveryOptionsTitles = error.userInfo[NSLocalizedRecoveryOptionsErrorKey]; + if (recoveryOptionsTitles.count > 0 && self->_recoveryAttempter) { + NSString *recoverySuggestion = error.userInfo[NSLocalizedRecoverySuggestionErrorKey]; + self->_error = error; + dispatch_async(dispatch_get_main_queue(), ^{ + [self displayAlertWithRecoverySuggestion:recoverySuggestion recoveryOptionsTitles:recoveryOptionsTitles]; + }); + return YES; + } + return NO; + }; + + return standardRecoveryWork(); + } + return NO; + case FBSDKGraphRequestErrorOther : + if ([request.tokenString isEqualToString:[FBSDKAccessToken currentAccessToken].tokenString]) { + NSString *message = error.userInfo[FBSDKErrorLocalizedDescriptionKey]; + NSString *title = error.userInfo[FBSDKErrorLocalizedTitleKey]; + if (message) { + dispatch_async(dispatch_get_main_queue(), ^{ + NSString *localizedOK = + NSLocalizedStringWithDefaultValue(@"ErrorRecovery.Alert.OK", @"FacebookSDK", [FBSDKInternalUtility bundleForStrings], + @"OK", + @"The title of the label to dismiss the alert when presenting user facing error messages"); + [self displayAlertWithTitle:title message:message cancelButtonTitle:localizedOK]; + }); + } + } + return NO; + } + return NO; +} + +#pragma mark - UIAlertController support + +- (void)displayAlertWithRecoverySuggestion:(NSString *)recoverySuggestion recoveryOptionsTitles:(NSArray *)recoveryOptionsTitles +{ + UIAlertController *alertController = [UIAlertController alertControllerWithTitle:nil + message:recoverySuggestion + preferredStyle:UIAlertControllerStyleAlert]; + for (NSUInteger i = 0; i < recoveryOptionsTitles.count; i++) { + NSString *title = recoveryOptionsTitles[i]; + UIAlertAction *option = [UIAlertAction actionWithTitle:title + style:UIAlertActionStyleDefault + handler:^(UIAlertAction * _Nonnull action) { + [self->_recoveryAttempter attemptRecoveryFromError:self->_error + optionIndex:i + delegate:self + didRecoverSelector:@selector(didPresentErrorWithRecovery:contextInfo:) + contextInfo:nil]; + }]; + [alertController addAction:option]; + } + UIViewController *topMostViewController = [FBSDKInternalUtility topMostViewController]; + [topMostViewController presentViewController:alertController + animated:YES + completion:nil]; +} + +- (void)displayAlertWithTitle:(NSString *)title message:(NSString *)message cancelButtonTitle:(NSString *)localizedOK +{ + UIAlertController *alertController = [UIAlertController alertControllerWithTitle:nil + message:message + preferredStyle:UIAlertControllerStyleAlert]; + UIAlertAction *OKAction = [UIAlertAction actionWithTitle:localizedOK + style:UIAlertActionStyleCancel + handler:^(UIAlertAction * _Nonnull action) { + [self->_recoveryAttempter attemptRecoveryFromError:self->_error + optionIndex:0 + delegate:self + didRecoverSelector:@selector(didPresentErrorWithRecovery:contextInfo:) + contextInfo:nil]; + }]; + [alertController addAction:OKAction]; + UIViewController *topMostViewController = [FBSDKInternalUtility topMostViewController]; + [topMostViewController presentViewController:alertController + animated:YES + completion:nil]; +} + +#pragma mark - FBSDKErrorRecoveryAttempting "delegate" + +- (void)didPresentErrorWithRecovery:(BOOL)didRecover contextInfo:(void *)contextInfo +{ + [self.delegate processorDidAttemptRecovery:self didRecover:didRecover error:_error]; + self.delegate = nil; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphRequest.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphRequest.h new file mode 100644 index 0000000000000..802620c1e0312 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphRequest.h @@ -0,0 +1,158 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKAccessToken; + +/// typedef for FBSDKHTTPMethod +typedef NSString *const FBSDKHTTPMethod NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(HTTPMethod); + +/// GET Request +FOUNDATION_EXPORT FBSDKHTTPMethod FBSDKHTTPMethodGET NS_SWIFT_NAME(get); + +/// POST Request +FOUNDATION_EXPORT FBSDKHTTPMethod FBSDKHTTPMethodPOST NS_SWIFT_NAME(post); + +/// DELETE Request +FOUNDATION_EXPORT FBSDKHTTPMethod FBSDKHTTPMethodDELETE NS_SWIFT_NAME(delete); + +/** + Represents a request to the Facebook Graph API. + + + `FBSDKGraphRequest` encapsulates the components of a request (the + Graph API path, the parameters, error recovery behavior) and should be + used in conjunction with `FBSDKGraphRequestConnection` to issue the request. + + Nearly all Graph APIs require an access token. Unless specified, the + `[FBSDKAccessToken currentAccessToken]` is used. Therefore, most requests + will require login first (see `FBSDKLoginManager` in FBSDKLoginKit.framework). + + A `- start` method is provided for convenience for single requests. + + By default, FBSDKGraphRequest will attempt to recover any errors returned from + Facebook. You can disable this via `disableErrorRecovery:`. + + @see FBSDKGraphErrorRecoveryProcessor + */ +NS_SWIFT_NAME(GraphRequest) +@interface FBSDKGraphRequest : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Initializes a new instance that use use `[FBSDKAccessToken currentAccessToken]`. + @param graphPath the graph path (e.g., @"me"). + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath; + +/** + Initializes a new instance that use use `[FBSDKAccessToken currentAccessToken]`. + @param graphPath the graph path (e.g., @"me"). + @param method the HTTP method. Empty String defaults to @"GET". + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath + HTTPMethod:(FBSDKHTTPMethod)method; + +/** + Initializes a new instance that use use `[FBSDKAccessToken currentAccessToken]`. + @param graphPath the graph path (e.g., @"me"). + @param parameters the optional parameters dictionary. + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters; + +/** + Initializes a new instance that use use `[FBSDKAccessToken currentAccessToken]`. + @param graphPath the graph path (e.g., @"me"). + @param parameters the optional parameters dictionary. + @param method the HTTP method. Empty String defaults to @"GET". + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + HTTPMethod:(FBSDKHTTPMethod)method; + +/** + Initializes a new instance. + @param graphPath the graph path (e.g., @"me"). + @param parameters the optional parameters dictionary. + @param tokenString the token string to use. Specifying nil will cause no token to be used. + @param version the optional Graph API version (e.g., @"v2.0"). nil defaults to `[FBSDKSettings graphAPIVersion]`. + @param method the HTTP method. Empty String defaults to @"GET". + */ +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + tokenString:(nullable NSString *)tokenString + version:(nullable NSString *)version + HTTPMethod:(FBSDKHTTPMethod)method +NS_DESIGNATED_INITIALIZER; + +/** + The request parameters. + */ +@property (nonatomic, copy) NSDictionary *parameters; + +/** + The access token string used by the request. + */ +@property (nonatomic, copy, readonly, nullable) NSString *tokenString; + +/** + The Graph API endpoint to use for the request, for example "me". + */ +@property (nonatomic, copy, readonly) NSString *graphPath; + +/** + The HTTPMethod to use for the request, for example "GET" or "POST". + */ +@property (nonatomic, copy, readonly) FBSDKHTTPMethod HTTPMethod; + +/** + The Graph API version to use (e.g., "v2.0") + */ +@property (nonatomic, copy, readonly) NSString *version; + +/** + If set, disables the automatic error recovery mechanism. + @param disable whether to disable the automatic error recovery mechanism + + By default, non-batched FBSDKGraphRequest instances will automatically try to recover + from errors by constructing a `FBSDKGraphErrorRecoveryProcessor` instance that + re-issues the request on successful recoveries. The re-issued request will call the same + handler as the receiver but may occur with a different `FBSDKGraphRequestConnection` instance. + + This will override [FBSDKSettings setGraphErrorRecoveryDisabled:]. + */ +- (void)setGraphErrorRecoveryDisabled:(BOOL)disable +NS_SWIFT_NAME(setGraphErrorRecovery(disabled:)); + +/** + Starts a connection to the Graph API. + @param handler The handler block to call when the request completes. + */ +- (FBSDKGraphRequestConnection *)startWithCompletionHandler:(nullable FBSDKGraphRequestBlock)handler; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphRequest.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphRequest.m new file mode 100644 index 0000000000000..569357ca42b18 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphRequest.m @@ -0,0 +1,225 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKGraphRequest+Internal.h" + +#import + +#import "FBSDKAccessToken.h" +#import "FBSDKCoreKit.h" +#import "FBSDKGraphRequestConnection.h" +#import "FBSDKGraphRequestDataAttachment.h" +#import "FBSDKInternalUtility.h" +#import "FBSDKLogger.h" +#import "FBSDKSettings+Internal.h" + +// constants +FBSDKHTTPMethod FBSDKHTTPMethodGET = @"GET"; +FBSDKHTTPMethod FBSDKHTTPMethodPOST = @"POST"; +FBSDKHTTPMethod FBSDKHTTPMethodDELETE = @"DELETE"; + +@interface FBSDKGraphRequest() +@property (nonatomic, assign) FBSDKGraphRequestFlags flags; +@property (nonatomic, copy, readwrite) FBSDKHTTPMethod HTTPMethod; +@end + +@implementation FBSDKGraphRequest + +@synthesize HTTPMethod; + +- (instancetype)initWithGraphPath:(NSString *)graphPath { + return [self initWithGraphPath:graphPath parameters:@{}]; +} + +- (instancetype)initWithGraphPath:(NSString *)graphPath + HTTPMethod:(FBSDKHTTPMethod)method { + return [self initWithGraphPath:graphPath parameters:@{} HTTPMethod:method]; +} + +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters { + return [self initWithGraphPath:graphPath + parameters:parameters + flags:FBSDKGraphRequestFlagNone]; +} + +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + HTTPMethod:(FBSDKHTTPMethod)method { + return [self initWithGraphPath:graphPath + parameters:parameters + tokenString:[FBSDKAccessToken currentAccessToken].tokenString + version:nil + HTTPMethod:method]; +} + +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + flags:(FBSDKGraphRequestFlags)flags { + return [self initWithGraphPath:graphPath + parameters:parameters + tokenString:[FBSDKAccessToken currentAccessToken].tokenString + HTTPMethod:FBSDKHTTPMethodGET + flags:flags]; +} + +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + tokenString:(NSString *)tokenString + HTTPMethod:(FBSDKHTTPMethod)method + flags:(FBSDKGraphRequestFlags)flags { + if ((self = [self initWithGraphPath:graphPath + parameters:parameters + tokenString:tokenString + version:[FBSDKSettings graphAPIVersion] + HTTPMethod:method])) { + self.flags |= flags; + } + return self; +} + +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + tokenString:(NSString *)tokenString + version:(NSString *)version + HTTPMethod:(FBSDKHTTPMethod)method { + if ((self = [super init])) { + _tokenString = tokenString ? [tokenString copy] : nil; + _version = version ? [version copy] : [FBSDKSettings graphAPIVersion]; + _graphPath = [graphPath copy]; + self.HTTPMethod = method.length > 0 ? [method copy] : FBSDKHTTPMethodGET; + _parameters = parameters ?: @{}; + if (!FBSDKSettings.isGraphErrorRecoveryEnabled) { + _flags = FBSDKGraphRequestFlagDisableErrorRecovery; + } + } + return self; +} + +- (BOOL)isGraphErrorRecoveryDisabled +{ + return (self.flags & FBSDKGraphRequestFlagDisableErrorRecovery); +} + +- (void)setGraphErrorRecoveryDisabled:(BOOL)disable +{ + if (disable) { + self.flags |= FBSDKGraphRequestFlagDisableErrorRecovery; + } else { + self.flags &= ~FBSDKGraphRequestFlagDisableErrorRecovery; + } +} + +- (BOOL)hasAttachments +{ + __block BOOL hasAttachments = NO; + [self.parameters enumerateKeysAndObjectsUsingBlock:^(id key, id obj, BOOL *stop) { + if ([FBSDKGraphRequest isAttachment:obj]) { + hasAttachments = YES; + *stop = YES; + } + }]; + return hasAttachments; +} + ++ (BOOL)isAttachment:(id)item +{ + return ([item isKindOfClass:[UIImage class]] || + [item isKindOfClass:[NSData class]] || + [item isKindOfClass:[FBSDKGraphRequestDataAttachment class]]); +} + + ++ (NSString *)serializeURL:(NSString *)baseUrl + params:(NSDictionary *)params { + return [self serializeURL:baseUrl params:params httpMethod:FBSDKHTTPMethodGET]; +} + ++ (NSString *)serializeURL:(NSString *)baseUrl + params:(NSDictionary *)params + httpMethod:(NSString *)httpMethod { + return [self serializeURL:baseUrl params:params httpMethod:httpMethod forBatch:NO]; +} + ++ (NSString *)serializeURL:(NSString *)baseUrl + params:(NSDictionary *)params + httpMethod:(NSString *)httpMethod + forBatch:(BOOL)forBatch { + params = [self preprocessParams: params]; + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" + NSURL *parsedURL = [NSURL URLWithString:[baseUrl stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; +#pragma clang pop + + if ([httpMethod isEqualToString:FBSDKHTTPMethodPOST] && !forBatch) { + return baseUrl; + } + + NSString *queryPrefix = parsedURL.query ? @"&" : @"?"; + + NSString *query = [FBSDKBasicUtility queryStringWithDictionary:params error:NULL invalidObjectHandler:^id(id object, BOOL *stop) { + if ([self isAttachment:object]) { + if ([httpMethod isEqualToString:FBSDKHTTPMethodGET]) { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors logEntry:@"can not use GET to upload a file"]; + } + return nil; + } + return object; + }]; + return [NSString stringWithFormat:@"%@%@%@", baseUrl, queryPrefix, query]; +} + ++ (NSDictionary *)preprocessParams:(NSDictionary *)params +{ + NSString *debugValue = [FBSDKSettings graphAPIDebugParamValue]; + if (debugValue) { + NSMutableDictionary *mutableParams = [NSMutableDictionary dictionaryWithDictionary:params]; + mutableParams[@"debug"] = debugValue; + return mutableParams; + } + + return params; +} + +- (FBSDKGraphRequestConnection *)startWithCompletionHandler:(FBSDKGraphRequestBlock)handler +{ + FBSDKGraphRequestConnection *connection = [[FBSDKGraphRequestConnection alloc] init]; + [connection addRequest:self completionHandler:handler]; + [connection start]; + return connection; +} + +#pragma mark - Debugging helpers + +- (NSString *)description +{ + NSMutableString *result = [NSMutableString stringWithFormat:@"<%@: %p", + NSStringFromClass([self class]), + self]; + if (self.graphPath) { + [result appendFormat:@", graphPath: %@", self.graphPath]; + } + if (self.HTTPMethod) { + [result appendFormat:@", HTTPMethod: %@", self.HTTPMethod]; + } + [result appendFormat:@", parameters: %@>", self.parameters.description]; + return result; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphRequestConnection.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphRequestConnection.h new file mode 100644 index 0000000000000..bdab4dc722848 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphRequestConnection.h @@ -0,0 +1,310 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + The key in the result dictionary for requests to old versions of the Graph API + whose response is not a JSON object. + + + When a request returns a non-JSON response (such as a "true" literal), that response + will be wrapped into a dictionary using this const as the key. This only applies for very few Graph API + prior to v2.1. + */ +FOUNDATION_EXPORT NSString *const FBSDKNonJSONResponseProperty +NS_SWIFT_NAME(NonJSONResponseProperty); + +@class FBSDKGraphRequest; +@class FBSDKGraphRequestConnection; + +/** + FBSDKGraphRequestBlock + + A block that is passed to addRequest to register for a callback with the results of that + request once the connection completes. + + Pass a block of this type when calling addRequest. This will be called once + the request completes. The call occurs on the UI thread. + + @param connection The `FBSDKGraphRequestConnection` that sent the request. + + @param result The result of the request. This is a translation of + JSON data to `NSDictionary` and `NSArray` objects. This + is nil if there was an error. + + @param error The `NSError` representing any error that occurred. + + */ +typedef void (^FBSDKGraphRequestBlock)(FBSDKGraphRequestConnection *_Nullable connection, + id _Nullable result, + NSError *_Nullable error) +NS_SWIFT_NAME(GraphRequestBlock); + +/** + @protocol + + The `FBSDKGraphRequestConnectionDelegate` protocol defines the methods used to receive network + activity progress information from a . + */ +NS_SWIFT_NAME(GraphRequestConnectionDelegate) +@protocol FBSDKGraphRequestConnectionDelegate + +@optional + +/** + @method + + Tells the delegate the request connection will begin loading + + + + If the is created using one of the convenience factory methods prefixed with + start, the object returned from the convenience method has already begun loading and this method + will not be called when the delegate is set. + + @param connection The request connection that is starting a network request + */ +- (void)requestConnectionWillBeginLoading:(FBSDKGraphRequestConnection *)connection; + +/** + @method + + Tells the delegate the request connection finished loading + + + + If the request connection completes without a network error occurring then this method is called. + Invocation of this method does not indicate success of every made, only that the + request connection has no further activity. Use the error argument passed to the FBSDKGraphRequestBlock + block to determine success or failure of each . + + This method is invoked after the completion handler for each . + + @param connection The request connection that successfully completed a network request + */ +- (void)requestConnectionDidFinishLoading:(FBSDKGraphRequestConnection *)connection; + +/** + @method + + Tells the delegate the request connection failed with an error + + + + If the request connection fails with a network error then this method is called. The `error` + argument specifies why the network connection failed. The `NSError` object passed to the + FBSDKGraphRequestBlock block may contain additional information. + + @param connection The request connection that successfully completed a network request + @param error The `NSError` representing the network error that occurred, if any. May be nil + in some circumstances. Consult the `NSError` for the for reliable + failure information. + */ +- (void)requestConnection:(FBSDKGraphRequestConnection *)connection + didFailWithError:(NSError *)error; + +/** + @method + + Tells the delegate how much data has been sent and is planned to send to the remote host + + + + The byte count arguments refer to the aggregated objects, not a particular . + + Like `NSURLSession`, the values may change in unexpected ways if data needs to be resent. + + @param connection The request connection transmitting data to a remote host + @param bytesWritten The number of bytes sent in the last transmission + @param totalBytesWritten The total number of bytes sent to the remote host + @param totalBytesExpectedToWrite The total number of bytes expected to send to the remote host + */ +- (void)requestConnection:(FBSDKGraphRequestConnection *)connection + didSendBodyData:(NSInteger)bytesWritten + totalBytesWritten:(NSInteger)totalBytesWritten +totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite; + +@end + +/** + + The `FBSDKGraphRequestConnection` represents a single connection to Facebook to service a request. + + + + The request settings are encapsulated in a reusable object. The + `FBSDKGraphRequestConnection` object encapsulates the concerns of a single communication + e.g. starting a connection, canceling a connection, or batching requests. + + */ +NS_SWIFT_NAME(GraphRequestConnection) +@interface FBSDKGraphRequestConnection : NSObject + +/** + The default timeout on all FBSDKGraphRequestConnection instances. Defaults to 60 seconds. + */ +@property (class, nonatomic, assign) NSTimeInterval defaultConnectionTimeout; + +/** + The delegate object that receives updates. + */ +@property (nonatomic, weak, nullable) id delegate; + +/** + Gets or sets the timeout interval to wait for a response before giving up. + */ +@property (nonatomic, assign) NSTimeInterval timeout; + +/** + The raw response that was returned from the server. (readonly) + + + + This property can be used to inspect HTTP headers that were returned from + the server. + + The property is nil until the request completes. If there was a response + then this property will be non-nil during the FBSDKGraphRequestBlock callback. + */ +@property (nonatomic, retain, readonly, nullable) NSHTTPURLResponse *urlResponse; + +/** + Determines the operation queue that is used to call methods on the connection's delegate. + + By default, a connection is scheduled on the current thread in the default mode when it is created. + You cannot reschedule a connection after it has started. + */ +@property (nonatomic, retain) NSOperationQueue *delegateQueue; + +/** + @methodgroup Class methods + */ + +/** + @methodgroup Adding requests + */ + +/** + @method + + This method adds an object to this connection. + + @param request A request to be included in the round-trip when start is called. + @param handler A handler to call back when the round-trip completes or times out. + + The completion handler is retained until the block is called upon the + completion or cancellation of the connection. + */ +- (void)addRequest:(FBSDKGraphRequest *)request + completionHandler:(FBSDKGraphRequestBlock)handler; + +/** + @method + + This method adds an object to this connection. + + @param request A request to be included in the round-trip when start is called. + + @param handler A handler to call back when the round-trip completes or times out. + The handler will be invoked on the main thread. + + @param name A name for this request. This can be used to feed + the results of one request to the input of another in the same + `FBSDKGraphRequestConnection` as described in + [Graph API Batch Requests]( https://developers.facebook.com/docs/reference/api/batch/ ). + + The completion handler is retained until the block is called upon the + completion or cancellation of the connection. This request can be named + to allow for using the request's response in a subsequent request. + */ +- (void)addRequest:(FBSDKGraphRequest *)request + batchEntryName:(NSString *)name + completionHandler:(FBSDKGraphRequestBlock)handler; + +/** + @method + + This method adds an object to this connection. + + @param request A request to be included in the round-trip when start is called. + + @param handler A handler to call back when the round-trip completes or times out. + + @param batchParameters The dictionary of parameters to include for this request + as described in [Graph API Batch Requests]( https://developers.facebook.com/docs/reference/api/batch/ ). + Examples include "depends_on", "name", or "omit_response_on_success". + + The completion handler is retained until the block is called upon the + completion or cancellation of the connection. This request can be named + to allow for using the request's response in a subsequent request. + */ +- (void)addRequest:(FBSDKGraphRequest *)request + batchParameters:(nullable NSDictionary *)batchParameters + completionHandler:(FBSDKGraphRequestBlock)handler; + +/** + @methodgroup Instance methods + */ + +/** + @method + + Signals that a connection should be logically terminated as the + application is no longer interested in a response. + + Synchronously calls any handlers indicating the request was cancelled. Cancel + does not guarantee that the request-related processing will cease. It + does promise that all handlers will complete before the cancel returns. A call to + cancel prior to a start implies a cancellation of all requests associated + with the connection. + */ +- (void)cancel; + +/** + @method + + This method starts a connection with the server and is capable of handling all of the + requests that were added to the connection. + + + By default, a connection is scheduled on the current thread in the default mode when it is created. + See `setDelegateQueue:` for other options. + + This method cannot be called twice for an `FBSDKGraphRequestConnection` instance. + */ +- (void)start; + +/** + @method + + Overrides the default version for a batch request + + The SDK automatically prepends a version part, such as "v2.0" to API paths in order to simplify API versioning + for applications. If you want to override the version part while using batch requests on the connection, call + this method to set the version for the batch request. + + @param version This is a string in the form @"v2.0" which will be used for the version part of an API path + */ +- (void)overrideGraphAPIVersion:(NSString *)version; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphRequestConnection.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphRequestConnection.m new file mode 100644 index 0000000000000..39d388401e908 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphRequestConnection.m @@ -0,0 +1,1164 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKGraphRequestConnection+Internal.h" + +#import + +#import "FBSDKAppEvents+Internal.h" +#import "FBSDKConstants.h" +#import "FBSDKError.h" +#import "FBSDKErrorConfiguration.h" +#import "FBSDKGraphRequest+Internal.h" +#import "FBSDKGraphRequestBody.h" +#import "FBSDKGraphRequestDataAttachment.h" +#import "FBSDKGraphRequestMetadata.h" +#import "FBSDKGraphRequestPiggybackManager.h" +#import "FBSDKInternalUtility.h" +#import "FBSDKLogger.h" +#import "FBSDKSettings+Internal.h" +#import "FBSDKURLSessionTask.h" + +NSString *const FBSDKNonJSONResponseProperty = @"FACEBOOK_NON_JSON_RESULT"; + +// URL construction constants +static NSString *const kGraphURLPrefix = @"graph."; +static NSString *const kGraphVideoURLPrefix = @"graph-video."; + +static NSString *const kBatchKey = @"batch"; +static NSString *const kBatchMethodKey = @"method"; +static NSString *const kBatchRelativeURLKey = @"relative_url"; +static NSString *const kBatchAttachmentKey = @"attached_files"; +static NSString *const kBatchFileNamePrefix = @"file"; +static NSString *const kBatchEntryName = @"name"; + +static NSString *const kAccessTokenKey = @"access_token"; +#if TARGET_OS_TV +static NSString *const kSDK = @"tvos"; +static NSString *const kUserAgentBase = @"FBtvOSSDK"; +#else +static NSString *const kSDK = @"ios"; +static NSString *const kUserAgentBase = @"FBiOSSDK"; +#endif +static NSString *const kBatchRestMethodBaseURL = @"method/"; + +static NSTimeInterval g_defaultTimeout = 60.0; + +static FBSDKErrorConfiguration *g_errorConfiguration; + +#if !TARGET_OS_TV +static FBSDKAccessToken *_CreateExpiredAccessToken(FBSDKAccessToken *accessToken) +{ + if (accessToken == nil) { + return nil; + } + if (accessToken.isExpired) { + return accessToken; + } + NSDate *expirationDate = [NSDate dateWithTimeIntervalSinceNow:-1]; + return [[FBSDKAccessToken alloc] initWithTokenString:accessToken.tokenString + permissions:accessToken.permissions.allObjects + declinedPermissions:accessToken.declinedPermissions.allObjects + expiredPermissions:accessToken.expiredPermissions.allObjects + appID:accessToken.appID + userID:accessToken.userID + expirationDate:expirationDate + refreshDate:expirationDate + dataAccessExpirationDate:expirationDate]; +} +#endif + +// ---------------------------------------------------------------------------- +// FBSDKGraphRequestConnectionState + +typedef NS_ENUM(NSUInteger, FBSDKGraphRequestConnectionState) +{ + kStateCreated, + kStateSerialized, + kStateStarted, + kStateCompleted, + kStateCancelled, +}; + +// ---------------------------------------------------------------------------- +// Private properties and methods + +@interface FBSDKGraphRequestConnection () < +NSURLSessionDataDelegate +#if !TARGET_OS_TV +, FBSDKGraphErrorRecoveryProcessorDelegate +#endif +> + +@property (nonatomic, strong) FBSDKURLSession *session; +@property (nonatomic, retain) NSMutableArray *requests; +@property (nonatomic, assign) FBSDKGraphRequestConnectionState state; +@property (nonatomic, strong) FBSDKLogger *logger; +@property (nonatomic, assign) uint64_t requestStartTime; + +@end + +// ---------------------------------------------------------------------------- +// FBSDKGraphRequestConnection + +@implementation FBSDKGraphRequestConnection +{ + NSString *_overrideVersionPart; + NSUInteger _expectingResults; + NSOperationQueue *_delegateQueue; +#if !TARGET_OS_TV + FBSDKGraphRequestMetadata *_recoveringRequestMetadata; + FBSDKGraphErrorRecoveryProcessor *_errorRecoveryProcessor; +#endif +} + +- (instancetype)init +{ + if ((self = [super init])) { + _requests = [[NSMutableArray alloc] init]; + _timeout = g_defaultTimeout; + _state = kStateCreated; + _logger = [[FBSDKLogger alloc] initWithLoggingBehavior:FBSDKLoggingBehaviorNetworkRequests]; + _session = [[FBSDKURLSession alloc] initWithDelegate:self delegateQueue:_delegateQueue]; + } + return self; +} + +- (void)dealloc +{ + [self.session invalidateAndCancel]; +} + +#pragma mark - Public + ++ (void)setDefaultConnectionTimeout:(NSTimeInterval)defaultTimeout +{ + if (defaultTimeout >= 0) { + g_defaultTimeout = defaultTimeout; + } +} + ++ (NSTimeInterval)defaultConnectionTimeout { + return g_defaultTimeout; +} + +- (void)addRequest:(FBSDKGraphRequest *)request + completionHandler:(FBSDKGraphRequestBlock)handler +{ + [self addRequest:request batchEntryName:@"" completionHandler:handler]; +} + +- (void)addRequest:(FBSDKGraphRequest *)request + batchEntryName:(NSString *)name + completionHandler:(FBSDKGraphRequestBlock)handler +{ + NSDictionary *batchParams = name.length > 0 ? @{kBatchEntryName : name } : nil; + [self addRequest:request batchParameters:batchParams completionHandler:handler]; +} + +- (void)addRequest:(FBSDKGraphRequest *)request + batchParameters:(NSDictionary *)batchParameters + completionHandler:(FBSDKGraphRequestBlock)handler +{ + if (self.state != kStateCreated) { + @throw [NSException exceptionWithName:NSInternalInconsistencyException + reason:@"Cannot add requests once started or if a URLRequest is set" + userInfo:nil]; + } + FBSDKGraphRequestMetadata *metadata = [[FBSDKGraphRequestMetadata alloc] initWithRequest:request + completionHandler:handler + batchParameters:batchParameters]; + + [self.requests addObject:metadata]; +} + +- (void)cancel +{ + self.state = kStateCancelled; + [self.session invalidateAndCancel]; +} + +- (void)overrideGraphAPIVersion:(NSString *)version +{ + if (![_overrideVersionPart isEqualToString:version]) { + _overrideVersionPart = [version copy]; + } +} + +- (void)start +{ + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + g_errorConfiguration = [[FBSDKErrorConfiguration alloc] initWithDictionary:nil]; + }); + + if (![FBSDKApplicationDelegate isSDKInitialized]) { + NSString *msg = @"FBSDKGraphRequestConnection cannot be started before Facebook SDK initialized."; + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors + formatString:@"%@", msg]; + self.state = kStateCancelled; + [self completeFBSDKURLSessionWithResponse:nil + data:nil + networkError:[FBSDKError unknownErrorWithMessage:msg]]; + + return; + } + + //optimistically check for updated server configuration; + g_errorConfiguration = [FBSDKServerConfigurationManager cachedServerConfiguration].errorConfiguration ?: g_errorConfiguration; + + if (self.state != kStateCreated && self.state != kStateSerialized) { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors + formatString:@"FBSDKGraphRequestConnection cannot be started again."]; + return; + } + [FBSDKGraphRequestPiggybackManager addPiggybackRequests:self]; + NSMutableURLRequest *request = [self requestWithBatch:self.requests timeout:_timeout]; + + self.state = kStateStarted; + + [self logRequest:request bodyLength:0 bodyLogger:nil attachmentLogger:nil]; + _requestStartTime = [FBSDKInternalUtility currentTimeInMilliseconds]; + + FBSDKURLSessionTaskBlock completionHanlder = ^(NSData *responseDataV1, NSURLResponse *responseV1, NSError *errorV1) { + FBSDKURLSessionTaskBlock handler = ^(NSData *responseDataV2, + NSURLResponse *responseV2, + NSError *errorV2) { + [self completeFBSDKURLSessionWithResponse:responseV2 + data:responseDataV2 + networkError:errorV2]; + }; + + if(errorV1) { + [self taskDidCompleteWithError:errorV1 handler:handler]; + } else { + [self taskDidCompleteWithResponse:responseV1 data:responseDataV1 requestStartTime:self.requestStartTime handler:handler]; + } + }; + [self.session executeURLRequest:request completionHandler:completionHanlder]; + + id delegate = self.delegate; + if ([delegate respondsToSelector:@selector(requestConnectionWillBeginLoading:)]) { + if (_delegateQueue) { + [_delegateQueue addOperationWithBlock:^{ + [delegate requestConnectionWillBeginLoading:self]; + }]; + } else { + [delegate requestConnectionWillBeginLoading:self]; + } + } +} + +- (NSOperationQueue *)delegateQueue +{ + return _delegateQueue; +} + +- (void)setDelegateQueue:(NSOperationQueue *)queue +{ + _session.delegateQueue = queue; + _delegateQueue = queue; +} + +#pragma mark - Private methods (request generation) + +// +// Adds request data to a batch in a format expected by the JsonWriter. +// Binary attachments are referenced by name in JSON and added to the +// attachments dictionary. +// +- (void)addRequest:(FBSDKGraphRequestMetadata *)metadata + toBatch:(NSMutableArray *)batch + attachments:(NSMutableDictionary *)attachments + batchToken:(NSString *)batchToken +{ + NSMutableDictionary *requestElement = [[NSMutableDictionary alloc] init]; + + if (metadata.batchParameters) { + [requestElement addEntriesFromDictionary:metadata.batchParameters]; + } + + if (batchToken) { + NSMutableDictionary *params = [NSMutableDictionary + dictionaryWithDictionary:metadata.request.parameters]; + params[kAccessTokenKey] = batchToken; + metadata.request.parameters = params; + [self registerTokenToOmitFromLog:batchToken]; + } + + NSString *urlString = [self urlStringForSingleRequest:metadata.request forBatch:YES]; + requestElement[kBatchRelativeURLKey] = urlString; + requestElement[kBatchMethodKey] = metadata.request.HTTPMethod; + + NSMutableArray *attachmentNames = [NSMutableArray array]; + + [metadata.request.parameters enumerateKeysAndObjectsUsingBlock:^(id key, id value, BOOL *stop) { + if ([FBSDKGraphRequest isAttachment:value]) { + NSString *name = [NSString stringWithFormat:@"%@%lu", + kBatchFileNamePrefix, + (unsigned long)attachments.count]; + [attachmentNames addObject:name]; + attachments[name] = value; + } + }]; + + if (attachmentNames.count) { + requestElement[kBatchAttachmentKey] = [attachmentNames componentsJoinedByString:@","]; + } + + [batch addObject:requestElement]; +} + +- (void)appendAttachments:(NSDictionary *)attachments + toBody:(FBSDKGraphRequestBody *)body + addFormData:(BOOL)addFormData + logger:(FBSDKLogger *)logger +{ + [attachments enumerateKeysAndObjectsUsingBlock:^(id key, id value, BOOL *stop) { + value = [FBSDKBasicUtility convertRequestValue:value]; + if ([value isKindOfClass:[NSString class]]) { + if (addFormData) { + [body appendWithKey:key formValue:(NSString *)value logger:logger]; + } + } else if ([value isKindOfClass:[UIImage class]]) { + [body appendWithKey:key imageValue:(UIImage *)value logger:logger]; + } else if ([value isKindOfClass:[NSData class]]) { + [body appendWithKey:key dataValue:(NSData *)value logger:logger]; + } else if ([value isKindOfClass:[FBSDKGraphRequestDataAttachment class]]) { + [body appendWithKey:key dataAttachmentValue:(FBSDKGraphRequestDataAttachment *)value logger:logger]; + } else { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors formatString:@"Unsupported FBSDKGraphRequest attachment:%@, skipping.", value]; + } + }]; +} + +// +// Serializes all requests in the batch to JSON and appends the result to +// body. Also names all attachments that need to go as separate blocks in +// the body of the request. +// +// All the requests are serialized into JSON, with any binary attachments +// named and referenced by name in the JSON. +// +- (void)appendJSONRequests:(NSArray *)requests + toBody:(FBSDKGraphRequestBody *)body + andNameAttachments:(NSMutableDictionary *)attachments + logger:(FBSDKLogger *)logger +{ + NSMutableArray *batch = [[NSMutableArray alloc] init]; + NSString *batchToken = nil; + for (FBSDKGraphRequestMetadata *metadata in requests) { + NSString *individualToken = [self accessTokenWithRequest:metadata.request]; + BOOL isClientToken = [FBSDKSettings clientToken] && [individualToken hasSuffix:[FBSDKSettings clientToken]]; + if (!batchToken && + !isClientToken) { + batchToken = individualToken; + } + [self addRequest:metadata + toBatch:batch + attachments:attachments + batchToken:[batchToken isEqualToString:individualToken] ? nil : individualToken]; + } + + NSString *jsonBatch = [FBSDKBasicUtility JSONStringForObject:batch error:NULL invalidObjectHandler:NULL]; + + [body appendWithKey:kBatchKey formValue:jsonBatch logger:logger]; + if (batchToken) { + [body appendWithKey:kAccessTokenKey formValue:batchToken logger:logger]; + } +} + +- (BOOL)_shouldWarnOnMissingFieldsParam:(FBSDKGraphRequest *)request +{ + NSString *minVersion = @"2.4"; + NSString *version = request.version; + if (!version) { + return YES; + } + if ([version hasPrefix:@"v"]) { + version = [version substringFromIndex:1]; + } + + NSComparisonResult result = [version compare:minVersion options:NSNumericSearch]; + + // if current version is the same as minVersion, or if the current version is > minVersion + return (result == NSOrderedSame) || (result == NSOrderedDescending); +} + +// Validate that all GET requests after v2.4 have a "fields" param +- (void)_validateFieldsParamForGetRequests:(NSArray *)requests +{ + for (FBSDKGraphRequestMetadata *metadata in requests) { + FBSDKGraphRequest *request = metadata.request; + if ([request.HTTPMethod.uppercaseString isEqualToString:@"GET"] && + [self _shouldWarnOnMissingFieldsParam:request] && + !request.parameters[@"fields"] && + [request.graphPath rangeOfString:@"fields="].location == NSNotFound) { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors + formatString:@"starting with Graph API v2.4, GET requests for /%@ should contain an explicit \"fields\" parameter", request.graphPath]; + } + } +} + +// +// Generates a NSURLRequest based on the contents of self.requests, and sets +// options on the request. Chooses between URL-based request for a single +// request and JSON-based request for batches. +// +- (NSMutableURLRequest *)requestWithBatch:(NSArray *)requests + timeout:(NSTimeInterval)timeout +{ + FBSDKGraphRequestBody *body = [[FBSDKGraphRequestBody alloc] init]; + FBSDKLogger *bodyLogger = [[FBSDKLogger alloc] initWithLoggingBehavior:_logger.loggingBehavior]; + FBSDKLogger *attachmentLogger = [[FBSDKLogger alloc] initWithLoggingBehavior:_logger.loggingBehavior]; + + NSMutableURLRequest *request; + + if (requests.count == 0) { + [[NSException exceptionWithName:NSInvalidArgumentException + reason:@"FBSDKGraphRequestConnection: Must have at least one request or urlRequest not specified." + userInfo:nil] + raise]; + + } + + [self _validateFieldsParamForGetRequests:requests]; + + if (requests.count == 1) { + FBSDKGraphRequestMetadata *metadata = requests[0]; + NSURL *url = [NSURL URLWithString:[self urlStringForSingleRequest:metadata.request forBatch:NO]]; + request = [NSMutableURLRequest requestWithURL:url + cachePolicy:NSURLRequestUseProtocolCachePolicy + timeoutInterval:timeout]; + + // HTTP methods are case-sensitive; be helpful in case someone provided a mixed case one. + NSString *httpMethod = metadata.request.HTTPMethod.uppercaseString; + request.HTTPMethod = httpMethod; + [self appendAttachments:metadata.request.parameters + toBody:body + addFormData:[httpMethod isEqualToString:@"POST"] + logger:attachmentLogger]; + } else { + // Find the session with an app ID and use that as the batch_app_id. If we can't + // find one, try to load it from the plist. As a last resort, pass 0. + NSString *batchAppID = [FBSDKSettings appID]; + if (!batchAppID || batchAppID.length == 0) { + // The Graph API batch method requires either an access token or batch_app_id. + // If we can't determine an App ID to use for the batch, we can't issue it. + [[NSException exceptionWithName:NSInternalInconsistencyException + reason:@"FBSDKGraphRequestConnection: [FBSDKSettings appID] must be specified for batch requests" + userInfo:nil] + raise]; + } + + [body appendWithKey:@"batch_app_id" formValue:batchAppID logger:bodyLogger]; + + NSMutableDictionary *attachments = [[NSMutableDictionary alloc] init]; + + [self appendJSONRequests:requests + toBody:body + andNameAttachments:attachments + logger:bodyLogger]; + + [self appendAttachments:attachments + toBody:body + addFormData:NO + logger:attachmentLogger]; + + NSURL *url = [FBSDKInternalUtility + facebookURLWithHostPrefix:kGraphURLPrefix + path:@"" + queryParameters:@{} + defaultVersion:_overrideVersionPart + error:NULL]; + + request = [NSMutableURLRequest requestWithURL:url + cachePolicy:NSURLRequestUseProtocolCachePolicy + timeoutInterval:timeout]; + request.HTTPMethod = @"POST"; + } + + NSData *compressedData; + if ([request.HTTPMethod isEqualToString:@"POST"] && (compressedData = [body compressedData])) { + request.HTTPBody = compressedData; + [request setValue:@"gzip" forHTTPHeaderField:@"Content-Encoding"]; + } else { + request.HTTPBody = body.data; + } + [request setValue:[FBSDKGraphRequestConnection userAgent] forHTTPHeaderField:@"User-Agent"]; + [request setValue:[body mimeContentType] forHTTPHeaderField:@"Content-Type"]; + [request setHTTPShouldHandleCookies:NO]; + + [self logRequest:request bodyLength:(request.HTTPBody.length / 1024) bodyLogger:bodyLogger attachmentLogger:attachmentLogger]; + + return request; +} + +// +// Generates a URL for a batch containing only a single request, +// and names all attachments that need to go in the body of the +// request. +// +// The URL contains all parameters that are not body attachments, +// including the session key if present. +// +// Attachments are named and referenced by name in the URL. +// +- (NSString *)urlStringForSingleRequest:(FBSDKGraphRequest *)request forBatch:(BOOL)forBatch +{ + NSMutableDictionary *params = [NSMutableDictionary dictionaryWithDictionary:request.parameters]; + params[@"format"] = @"json"; + params[@"sdk"] = kSDK; + params[@"include_headers"] = @"false"; + + request.parameters = params; + + NSString *baseURL; + if (forBatch) { + baseURL = request.graphPath; + } else { + NSString *token = [self accessTokenWithRequest:request]; + if (token) { + [params setValue:token forKey:kAccessTokenKey]; + request.parameters = params; + [self registerTokenToOmitFromLog:token]; + } + + NSString *prefix = kGraphURLPrefix; + // We special case a graph post to /videos and send it to graph-video.facebook.com + // We only do this for non batch post requests + NSString *graphPath = request.graphPath.lowercaseString; + if ([request.HTTPMethod.uppercaseString isEqualToString:@"POST"] && + [graphPath hasSuffix:@"/videos"]) { + graphPath = [graphPath stringByTrimmingCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@"/"]]; + NSArray *components = [graphPath componentsSeparatedByString:@"/"]; + if (components.count == 2) { + prefix = kGraphVideoURLPrefix; + } + } + + baseURL = [FBSDKInternalUtility + facebookURLWithHostPrefix:prefix + path:request.graphPath + queryParameters:@{} + defaultVersion:request.version + error:NULL].absoluteString; + } + + NSString *url = [FBSDKGraphRequest serializeURL:baseURL + params:request.parameters + httpMethod:request.HTTPMethod + forBatch:forBatch]; + return url; +} + +#pragma mark - Private methods (response parsing) + +- (void)completeFBSDKURLSessionWithResponse:(NSURLResponse *)response + data:(NSData *)data + networkError:(NSError *)error +{ + if (self.state != kStateCancelled) { + NSAssert(self.state == kStateStarted, + @"Unexpected state %lu in completeWithResponse", + (unsigned long)self.state); + self.state = kStateCompleted; + } + + NSArray *results = nil; + _urlResponse = (NSHTTPURLResponse *)response; + if (response) { + NSAssert([response isKindOfClass:[NSHTTPURLResponse class]], + @"Expected NSHTTPURLResponse, got %@", + response); + + NSInteger statusCode = _urlResponse.statusCode; + + if (!error && [response.MIMEType hasPrefix:@"image"]) { + error = [FBSDKError errorWithCode:FBSDKErrorGraphRequestNonTextMimeTypeReturned + message:@"Response is a non-text MIME type; endpoints that return images and other " + @"binary data should be fetched using NSURLRequest and NSURLSession"]; + } else { + results = [self parseJSONResponse:data + error:&error + statusCode:statusCode]; + } + } else if (!error) { + error = [FBSDKError errorWithCode:FBSDKErrorUnknown + message:@"Missing NSURLResponse"]; + } + + if (!error) { + if (self.requests.count != results.count) { + error = [FBSDKError errorWithCode:FBSDKErrorGraphRequestProtocolMismatch + message:@"Unexpected number of results returned from server."]; + } else { + [_logger appendFormat:@"Response <#%lu>\nDuration: %llu msec\nSize: %lu kB\nResponse Body:\n%@\n\n", + (unsigned long)_logger.loggerSerialNumber, + [FBSDKInternalUtility currentTimeInMilliseconds] - _requestStartTime, + (unsigned long)data.length, + results]; + } + } + + if (error) { + [_logger appendFormat:@"Response <#%lu> :\n%@\n%@\n", + (unsigned long)_logger.loggerSerialNumber, + error.localizedDescription, + error.userInfo]; + } + [_logger emitToNSLog]; + + [self completeWithResults:results networkError:error]; + + [self.session invalidateAndCancel]; +} + +// +// If there is one request, the JSON is the response. +// If there are multiple requests, the JSON has an array of dictionaries whose +// body property is the response. +// [{ "code":200, +// "body":"JSON-response-as-a-string" }, +// { "code":200, +// "body":"JSON-response-as-a-string" }] +// +// In both cases, this function returns an NSArray containing the results. +// The NSArray looks just like the multiple request case except the body +// value is converted from a string to parsed JSON. +// +- (NSArray *)parseJSONResponse:(NSData *)data + error:(NSError **)error + statusCode:(NSInteger)statusCode +{ + // Graph API can return "true" or "false", which is not valid JSON. + // Translate that before asking JSON parser to look at it. + NSString *responseUTF8 = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]; + NSMutableArray *results = [[NSMutableArray alloc] init];; + id response = [self parseJSONOrOtherwise:responseUTF8 error:error]; + + if (responseUTF8 == nil) { + NSString *base64Data = data.length != 0 ? [data base64EncodedStringWithOptions:0] : @""; + if (base64Data != nil) { + [FBSDKAppEvents logInternalEvent:@"fb_response_invalid_utf8" + isImplicitlyLogged:YES]; + } + } + + NSDictionary *responseError = nil; + if (!response) { + if ((error != NULL) && (*error == nil)) { + *error = [self errorWithCode:FBSDKErrorUnknown + statusCode:statusCode + parsedJSONResponse:nil + innerError:nil + message:@"The server returned an unexpected response."]; + } + } else if (self.requests.count == 1) { + // response is the entry, so put it in a dictionary under "body" and add + // that to array of responses. + [results addObject:@{ + @"code":@(statusCode), + @"body":response + }]; + } else if ([response isKindOfClass:[NSArray class]]) { + // response is the array of responses, but the body element of each needs + // to be decoded from JSON. + for (id item in response) { + // Don't let errors parsing one response stop us from parsing another. + NSError *batchResultError = nil; + if (![item isKindOfClass:[NSDictionary class]]) { + [results addObject:item]; + } else { + NSMutableDictionary *result = [((NSDictionary *)item) mutableCopy]; + if (result[@"body"]) { + result[@"body"] = [self parseJSONOrOtherwise:result[@"body"] error:&batchResultError]; + } + [results addObject:result]; + } + if (batchResultError) { + // We'll report back the last error we saw. + *error = batchResultError; + } + } + } else if ([response isKindOfClass:[NSDictionary class]] && + (responseError = [FBSDKTypeUtility dictionaryValue:response[@"error"]]) != nil && + [responseError[@"type"] isEqualToString:@"OAuthException"]) { + // if there was one request then return the only result. if there were multiple requests + // but only one error then the server rejected the batch access token + NSDictionary *result = @{ + @"code":@(statusCode), + @"body":response + }; + + for (NSUInteger resultIndex = 0, resultCount = self.requests.count; resultIndex < resultCount; ++resultIndex) { + [results addObject:result]; + } + } else if (error != NULL) { + *error = [self errorWithCode:FBSDKErrorGraphRequestProtocolMismatch + statusCode:statusCode + parsedJSONResponse:results + innerError:nil + message:nil]; + } + + return results; +} + +- (id)parseJSONOrOtherwise:(NSString *)utf8 + error:(NSError **)error +{ + id parsed = nil; + if (!(*error) && [utf8 isKindOfClass:[NSString class]]) { + parsed = [FBSDKBasicUtility objectForJSONString:utf8 error:error]; + // if we fail parse we attempt a re-parse of a modified input to support results in the form "foo=bar", "true", etc. + // which is shouldn't be necessary since Graph API v2.1. + if (*error) { + // we round-trip our hand-wired response through the parser in order to remain + // consistent with the rest of the output of this function (note, if perf turns out + // to be a problem -- unlikely -- we can return the following dictionary outright) + NSDictionary *original = @{ FBSDKNonJSONResponseProperty : utf8 }; + NSString *jsonrep = [FBSDKBasicUtility JSONStringForObject:original error:NULL invalidObjectHandler:NULL]; + NSError *reparseError = nil; + parsed = [FBSDKBasicUtility objectForJSONString:jsonrep error:&reparseError]; + if (!reparseError) { + *error = nil; + } + } + } + return parsed; +} + +- (void)completeWithResults:(NSArray *)results + networkError:(NSError *)networkError +{ + NSUInteger count = self.requests.count; + _expectingResults = count; + NSUInteger disabledRecoveryCount = 0; + for (FBSDKGraphRequestMetadata *metadata in self.requests) { + if (metadata.request.graphErrorRecoveryDisabled) { + disabledRecoveryCount++; + } + } +#if !TARGET_OS_TV + BOOL isSingleRequestToRecover = (count - disabledRecoveryCount == 1); +#endif + + [self.requests enumerateObjectsUsingBlock:^(FBSDKGraphRequestMetadata *metadata, NSUInteger i, BOOL *stop) { + id result = networkError ? nil : results[i]; + NSError *resultError = networkError ?: [self errorFromResult:result request:metadata.request]; + + id body = nil; + if (!resultError && [result isKindOfClass:[NSDictionary class]]) { + NSDictionary *resultDictionary = [FBSDKTypeUtility dictionaryValue:result]; + body = [FBSDKTypeUtility dictionaryValue:resultDictionary[@"body"]]; + } + +#if !TARGET_OS_TV + if (resultError && !metadata.request.graphErrorRecoveryDisabled && isSingleRequestToRecover) { + self->_recoveringRequestMetadata = metadata; + self->_errorRecoveryProcessor = [[FBSDKGraphErrorRecoveryProcessor alloc] init]; + if ([self->_errorRecoveryProcessor processError:resultError request:metadata.request delegate:self]) { + return; + } + } +#endif + + [self processResultBody:body error:resultError metadata:metadata canNotifyDelegate:networkError == nil]; + }]; + + if (networkError) { + if ([_delegate respondsToSelector:@selector(requestConnection:didFailWithError:)]) { + [_delegate requestConnection:self didFailWithError:networkError]; + } + } +} + +- (void)processResultBody:(NSDictionary *)body error:(NSError *)error metadata:(FBSDKGraphRequestMetadata *)metadata canNotifyDelegate:(BOOL)canNotifyDelegate +{ + void (^finishAndInvokeCompletionHandler)(void) = ^{ + NSDictionary *graphDebugDict = body[@"__debug__"]; + if ([graphDebugDict isKindOfClass:[NSDictionary class]]) { + [self processResultDebugDictionary: graphDebugDict]; + } + [metadata invokeCompletionHandlerForConnection:self withResults:body error:error]; + + if (--self->_expectingResults == 0) { + if (canNotifyDelegate && [self->_delegate respondsToSelector:@selector(requestConnectionDidFinishLoading:)]) { + [self->_delegate requestConnectionDidFinishLoading:self]; + } + } + }; + +#if !TARGET_OS_TV + void (^clearToken)(NSInteger) = ^(NSInteger errorSubcode){ + if (metadata.request.flags & FBSDKGraphRequestFlagDoNotInvalidateTokenOnError) { + return; + } + if (errorSubcode == 493) { + [FBSDKAccessToken setCurrentAccessToken:_CreateExpiredAccessToken([FBSDKAccessToken currentAccessToken])]; + } else { + [FBSDKAccessToken setCurrentAccessToken:nil]; + } + + }; + + NSString *metadataTokenString = metadata.request.tokenString; + NSString *currentTokenString = [FBSDKAccessToken currentAccessToken].tokenString; + + if ([metadataTokenString isEqualToString:currentTokenString]) { + NSInteger errorCode = [error.userInfo[FBSDKGraphRequestErrorGraphErrorCodeKey] integerValue]; + NSInteger errorSubcode = [error.userInfo[FBSDKGraphRequestErrorGraphErrorSubcodeKey] integerValue]; + if (errorCode == 190 || errorCode == 102) { + clearToken(errorSubcode); + } + } +#endif + // this is already on the queue since we are currently in the NSURLSession callback. + finishAndInvokeCompletionHandler(); +} + +- (void)processResultDebugDictionary:(NSDictionary *)dict +{ + NSArray *messages = [FBSDKTypeUtility arrayValue:dict[@"messages"]]; + if (!messages.count) { + return; + } + + [messages enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) { + NSDictionary *messageDict = [FBSDKTypeUtility dictionaryValue:obj]; + NSString *message = [FBSDKTypeUtility stringValue:messageDict[@"message"]]; + NSString *type = [FBSDKTypeUtility stringValue:messageDict[@"type"]]; + NSString *link = [FBSDKTypeUtility stringValue:messageDict[@"link"]]; + if (!message || !type) { + return; + } + + NSString *loggingBehavior = FBSDKLoggingBehaviorGraphAPIDebugInfo; + if ([type isEqualToString:@"warning"]) { + loggingBehavior = FBSDKLoggingBehaviorGraphAPIDebugWarning; + } + if (link) { + message = [message stringByAppendingFormat:@" Link: %@", link]; + } + + [FBSDKLogger singleShotLogEntry:loggingBehavior logEntry:message]; + }]; + +} + +- (NSError *)errorFromResult:(id)result request:(FBSDKGraphRequest *)request +{ + if ([result isKindOfClass:[NSDictionary class]]) { + NSDictionary *errorDictionary = [FBSDKTypeUtility dictionaryValue:result[@"body"]][@"error"]; + + if ([errorDictionary isKindOfClass:[NSDictionary class]]) { + NSMutableDictionary *userInfo = [NSMutableDictionary dictionary]; + [FBSDKBasicUtility dictionary:userInfo setObject:errorDictionary[@"code"] forKey:FBSDKGraphRequestErrorGraphErrorCodeKey]; + [FBSDKBasicUtility dictionary:userInfo setObject:errorDictionary[@"error_subcode"] forKey:FBSDKGraphRequestErrorGraphErrorSubcodeKey]; + //"message" is preferred over error_msg or error_reason. + [FBSDKBasicUtility dictionary:userInfo setObject:errorDictionary[@"error_msg"] forKey:FBSDKErrorDeveloperMessageKey]; + [FBSDKBasicUtility dictionary:userInfo setObject:errorDictionary[@"error_reason"] forKey:FBSDKErrorDeveloperMessageKey]; + [FBSDKBasicUtility dictionary:userInfo setObject:errorDictionary[@"message"] forKey:FBSDKErrorDeveloperMessageKey]; + [FBSDKBasicUtility dictionary:userInfo setObject:errorDictionary[@"error_user_title"] forKey:FBSDKErrorLocalizedTitleKey]; + [FBSDKBasicUtility dictionary:userInfo setObject:errorDictionary[@"error_user_msg"] forKey:FBSDKErrorLocalizedDescriptionKey]; + [FBSDKBasicUtility dictionary:userInfo setObject:errorDictionary[@"error_user_msg"] forKey:NSLocalizedDescriptionKey]; + [FBSDKBasicUtility dictionary:userInfo setObject:result[@"code"] forKey:FBSDKGraphRequestErrorHTTPStatusCodeKey]; + [FBSDKBasicUtility dictionary:userInfo setObject:result forKey:FBSDKGraphRequestErrorParsedJSONResponseKey]; + + FBSDKErrorRecoveryConfiguration *recoveryConfiguration = [g_errorConfiguration + recoveryConfigurationForCode:[userInfo[FBSDKGraphRequestErrorGraphErrorCodeKey] stringValue] + subcode:[userInfo[FBSDKGraphRequestErrorGraphErrorSubcodeKey] stringValue] + request:request]; + if ([errorDictionary[@"is_transient"] boolValue]) { + userInfo[FBSDKGraphRequestErrorKey] = @(FBSDKGraphRequestErrorTransient); + } else { + [FBSDKBasicUtility dictionary:userInfo setObject:@(recoveryConfiguration.errorCategory) forKey:FBSDKGraphRequestErrorKey]; + } + [FBSDKBasicUtility dictionary:userInfo setObject:recoveryConfiguration.localizedRecoveryDescription forKey:NSLocalizedRecoverySuggestionErrorKey]; + [FBSDKBasicUtility dictionary:userInfo setObject:recoveryConfiguration.localizedRecoveryOptionDescriptions forKey:NSLocalizedRecoveryOptionsErrorKey]; + FBSDKErrorRecoveryAttempter *attempter = [FBSDKErrorRecoveryAttempter recoveryAttempterFromConfiguration:recoveryConfiguration]; + [FBSDKBasicUtility dictionary:userInfo setObject:attempter forKey:NSRecoveryAttempterErrorKey]; + + return [FBSDKError errorWithCode:FBSDKErrorGraphRequestGraphAPI + userInfo:userInfo + message:nil + underlyingError:nil]; + } + } + + return nil; +} + +- (NSError *)errorWithCode:(FBSDKCoreError)code + statusCode:(NSInteger)statusCode + parsedJSONResponse:(id)response + innerError:(NSError *)innerError + message:(NSString *)message { + NSMutableDictionary *userInfo = [[NSMutableDictionary alloc] init]; + userInfo[FBSDKGraphRequestErrorHTTPStatusCodeKey] = @(statusCode); + + if (response) { + userInfo[FBSDKGraphRequestErrorParsedJSONResponseKey] = response; + } + + if (innerError) { + userInfo[FBSDKGraphRequestErrorParsedJSONResponseKey] = innerError; + } + + if (message) { + userInfo[FBSDKErrorDeveloperMessageKey] = message; + } + + NSError *error = [[NSError alloc] + initWithDomain:FBSDKErrorDomain + code:code + userInfo:userInfo]; + + return error; +} + +#pragma mark - Private methods (logging and completion) + +- (void)logAndInvokeHandler:(FBSDKURLSessionTaskBlock)handler + error:(NSError *)error +{ + if (error) { + NSString *logEntry = [NSString + stringWithFormat:@"FBSDKURLSessionTask <#%lu>:\n Error: '%@'\n%@\n", + (unsigned long)[FBSDKLogger generateSerialNumber], + error.localizedDescription, + error.userInfo]; + + [self logMessage:logEntry]; + } + + [self invokeHandler:handler error:error response:nil responseData:nil]; +} + +- (void)logAndInvokeHandler:(FBSDKURLSessionTaskBlock)handler + response:(NSURLResponse *)response + responseData:(NSData *)responseData + requestStartTime:(uint64_t)requestStartTime +{ + // Basic logging just prints out the URL. FBSDKGraphRequest logging provides more details. + NSString *mimeType = response.MIMEType; + NSMutableString *mutableLogEntry = [NSMutableString stringWithFormat:@"FBSDKGraphRequestConnection <#%lu>:\n Duration: %llu msec\nResponse Size: %lu kB\n MIME type: %@\n", + (unsigned long)[FBSDKLogger generateSerialNumber], + [FBSDKInternalUtility currentTimeInMilliseconds] - requestStartTime, + (unsigned long)responseData.length / 1024, + mimeType]; + + if ([mimeType isEqualToString:@"text/javascript"]) { + NSString *responseUTF8 = [[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding]; + [mutableLogEntry appendFormat:@" Response:\n%@\n\n", responseUTF8]; + } + + [self logMessage:mutableLogEntry]; + + [self invokeHandler:handler error:nil response:response responseData:responseData]; +} + +- (void)invokeHandler:(FBSDKURLSessionTaskBlock)handler + error:(NSError *)error + response:(NSURLResponse *)response + responseData:(NSData *)responseData +{ + if (handler != nil) { + dispatch_async(dispatch_get_main_queue(), ^{ + handler(responseData, response, error); + }); + } +} + +- (void)logMessage:(NSString *)message +{ + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorNetworkRequests formatString:@"%@", message]; +} + +- (void)taskDidCompleteWithResponse:(NSURLResponse *)response + data:(NSData *)data + requestStartTime:(uint64_t)requestStartTime + handler:(FBSDKURLSessionTaskBlock)handler +{ + @try { + [self logAndInvokeHandler:handler + response:response + responseData:data + requestStartTime:requestStartTime]; + } @finally {} +} + +- (void)taskDidCompleteWithError:(NSError *)error + handler:(FBSDKURLSessionTaskBlock)handler +{ + @try { + if ([error.domain isEqualToString:NSURLErrorDomain] && error.code == kCFURLErrorSecureConnectionFailed) { + NSOperatingSystemVersion iOS9Version = { .majorVersion = 9, .minorVersion = 0, .patchVersion = 0 }; + if ([FBSDKInternalUtility isOSRunTimeVersionAtLeast:iOS9Version]) { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors + logEntry:@"WARNING: FBSDK secure network request failed. Please verify you have configured your " + "app for Application Transport Security compatibility described at https://developers.facebook.com/docs/ios/ios9"]; + } + } + [self logAndInvokeHandler:handler error:error]; + } @finally {} +} + +#pragma mark - Private methods (miscellaneous) + +- (void)logRequest:(NSMutableURLRequest *)request + bodyLength:(NSUInteger)bodyLength + bodyLogger:(FBSDKLogger *)bodyLogger + attachmentLogger:(FBSDKLogger *)attachmentLogger +{ + if (_logger.isActive) { + [_logger appendFormat:@"Request <#%lu>:\n", (unsigned long)_logger.loggerSerialNumber]; + [_logger appendKey:@"URL" value:request.URL.absoluteString]; + [_logger appendKey:@"Method" value:request.HTTPMethod]; + [_logger appendKey:@"UserAgent" value:[request valueForHTTPHeaderField:@"User-Agent"]]; + [_logger appendKey:@"MIME" value:[request valueForHTTPHeaderField:@"Content-Type"]]; + + if (bodyLength != 0) { + [_logger appendKey:@"Body Size" value:[NSString stringWithFormat:@"%lu kB", (unsigned long)bodyLength / 1024]]; + } + + if (bodyLogger != nil) { + [_logger appendKey:@"Body (w/o attachments)" value:bodyLogger.contents]; + } + + if (attachmentLogger != nil) { + [_logger appendKey:@"Attachments" value:attachmentLogger.contents]; + } + + [_logger appendString:@"\n"]; + + [_logger emitToNSLog]; + } +} + +- (NSString *)accessTokenWithRequest:(FBSDKGraphRequest *)request +{ + NSString *token = request.tokenString ?: request.parameters[kAccessTokenKey]; + if (!token && !(request.flags & FBSDKGraphRequestFlagSkipClientToken) && [FBSDKSettings clientToken].length > 0) { + return [NSString stringWithFormat:@"%@|%@", [FBSDKSettings appID], [FBSDKSettings clientToken]]; + } + return token; +} + +- (void)registerTokenToOmitFromLog:(NSString *)token +{ + if (![FBSDKSettings.loggingBehaviors containsObject:FBSDKLoggingBehaviorAccessTokens]) { + [FBSDKLogger registerStringToReplace:token replaceWith:@"ACCESS_TOKEN_REMOVED"]; + } +} + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Warc-performSelector-leaks" ++ (NSString *)userAgent +{ + static NSString *agent = nil; + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + agent = [NSString stringWithFormat:@"%@.%@", kUserAgentBase, FBSDK_VERSION_STRING]; + }); + NSString *agentWithSuffix = nil; + if ([FBSDKSettings userAgentSuffix]) { + agentWithSuffix = [NSString stringWithFormat:@"%@/%@", agent, [FBSDKSettings userAgentSuffix]]; + } + if (@available(iOS 13.0, *)) { + NSProcessInfo *processInfo = [NSProcessInfo processInfo]; + SEL selector = NSSelectorFromString(@"isMacCatalystApp"); + if (selector && [processInfo respondsToSelector:selector] && [processInfo performSelector:selector]) { + return [NSString stringWithFormat:@"%@/%@", agentWithSuffix ?: agent, @"macOS"]; + } + } + + return agentWithSuffix ?: agent; +} +#pragma clang diagnostic pop + +#pragma mark - NSURLSessionDataDelegate + +- (void)URLSession:(NSURLSession *)session + task:(NSURLSessionTask *)task + didSendBodyData:(int64_t)bytesSent + totalBytesSent:(int64_t)totalBytesSent +totalBytesExpectedToSend:(int64_t)totalBytesExpectedToSend +{ + id delegate = self.delegate; + + if ([delegate respondsToSelector:@selector(requestConnection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:)]) { + [delegate requestConnection:self + didSendBodyData:(NSUInteger)bytesSent + totalBytesWritten:(NSUInteger)totalBytesSent + totalBytesExpectedToWrite:(NSUInteger)totalBytesExpectedToSend]; + } +} + +#pragma mark - FBSDKGraphErrorRecoveryProcessorDelegate + +#if !TARGET_OS_TV +- (void)processorDidAttemptRecovery:(FBSDKGraphErrorRecoveryProcessor *)processor didRecover:(BOOL)didRecover error:(NSError *)error +{ + if (didRecover) { + FBSDKGraphRequest *originalRequest = _recoveringRequestMetadata.request; + FBSDKGraphRequest *retryRequest = [[FBSDKGraphRequest alloc] initWithGraphPath:originalRequest.graphPath + parameters:originalRequest.parameters + tokenString:[FBSDKAccessToken currentAccessToken].tokenString + version:originalRequest.version + HTTPMethod:originalRequest.HTTPMethod]; + // prevent further attempts at recovery (i.e., additional retries). + [retryRequest setGraphErrorRecoveryDisabled:YES]; + FBSDKGraphRequestMetadata *retryMetadata = [[FBSDKGraphRequestMetadata alloc] initWithRequest:retryRequest completionHandler:_recoveringRequestMetadata.completionHandler batchParameters:_recoveringRequestMetadata.batchParameters]; + [retryRequest startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *retriedError) { + [self processResultBody:result error:retriedError metadata:retryMetadata canNotifyDelegate:YES]; + self->_errorRecoveryProcessor = nil; + self->_recoveringRequestMetadata = nil; + }]; + } else { + [self processResultBody:nil error:error metadata:_recoveringRequestMetadata canNotifyDelegate:YES]; + _errorRecoveryProcessor = nil; + _recoveringRequestMetadata = nil; + } +} +#endif + +#pragma mark - Debugging helpers + +- (NSString *)description +{ + NSMutableString *result = [NSMutableString stringWithFormat:@"<%@: %p, %lu request(s): (\n", + NSStringFromClass([self class]), + self, + (unsigned long)self.requests.count]; + BOOL comma = NO; + for (FBSDKGraphRequestMetadata *metadata in self.requests) { + FBSDKGraphRequest *request = metadata.request; + if (comma) { + [result appendString:@",\n"]; + } + [result appendString:request.description]; + comma = YES; + } + [result appendString:@"\n)>"]; + return result; + +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphRequestDataAttachment.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphRequestDataAttachment.h new file mode 100644 index 0000000000000..ea07c7827ea34 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphRequestDataAttachment.h @@ -0,0 +1,60 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + A container class for data attachments so that additional metadata can be provided about the attachment. + */ +NS_SWIFT_NAME(GraphRequestDataAttachment) +@interface FBSDKGraphRequestDataAttachment : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Initializes the receiver with the attachment data and metadata. + @param data The attachment data (retained, not copied) + @param filename The filename for the attachment + @param contentType The content type for the attachment + */ +- (instancetype)initWithData:(NSData *)data + filename:(NSString *)filename + contentType:(NSString *)contentType +NS_DESIGNATED_INITIALIZER; + +/** + The content type for the attachment. + */ +@property (nonatomic, copy, readonly) NSString *contentType; + +/** + The attachment data. + */ +@property (nonatomic, strong, readonly) NSData *data; + +/** + The filename for the attachment. + */ +@property (nonatomic, copy, readonly) NSString *filename; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphRequestDataAttachment.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphRequestDataAttachment.m new file mode 100644 index 0000000000000..9a6161109f527 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphRequestDataAttachment.m @@ -0,0 +1,33 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKGraphRequestDataAttachment.h" + +@implementation FBSDKGraphRequestDataAttachment + +- (instancetype)initWithData:(NSData *)data filename:(NSString *)filename contentType:(NSString *)contentType +{ + if ((self = [super init])) { + _data = data; + _filename = [filename copy]; + _contentType = [contentType copy]; + } + return self; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKMeasurementEvent.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKMeasurementEvent.h new file mode 100644 index 0000000000000..85974a8877abd --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKMeasurementEvent.h @@ -0,0 +1,75 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_ASSUME_NONNULL_BEGIN + +#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0 + +/** The name of the notification posted by FBSDKMeasurementEvent */ +FOUNDATION_EXPORT NSNotificationName const FBSDKMeasurementEventNotification +NS_SWIFT_NAME(MeasurementEvent); + +#else + +/** The name of the notification posted by FBSDKMeasurementEvent */ +FOUNDATION_EXPORT NSString *const FBSDKMeasurementEventNotification +NS_SWIFT_NAME(MeasurementEventNotification); + +#endif + +/** Defines keys in the userInfo object for the notification named FBSDKMeasurementEventNotificationName */ +/** The string field for the name of the event */ +FOUNDATION_EXPORT NSString *const FBSDKMeasurementEventNameKey +NS_SWIFT_NAME(MeasurementEventNameKey); +/** The dictionary field for the arguments of the event */ +FOUNDATION_EXPORT NSString *const FBSDKMeasurementEventArgsKey +NS_SWIFT_NAME(MeasurementEventArgsKey); + +/** Events raised by FBSDKMeasurementEvent for Applink */ +/** + The name of the event posted when [FBSDKURL URLWithURL:] is called successfully. This represents the successful parsing of an app link URL. + */ +FOUNDATION_EXPORT NSString *const FBSDKAppLinkParseEventName +NS_SWIFT_NAME(AppLinkParseEventName); + +/** + The name of the event posted when [FBSDKURL URLWithInboundURL:] is called successfully. + This represents parsing an inbound app link URL from a different application + */ +FOUNDATION_EXPORT NSString *const FBSDKAppLinkNavigateInEventName +NS_SWIFT_NAME(AppLinkNavigateInEventName); + +/** The event raised when the user navigates from your app to other apps */ +FOUNDATION_EXPORT NSString *const FBSDKAppLinkNavigateOutEventName +NS_SWIFT_NAME(AppLinkNavigateOutEventName); + +/** + The event raised when the user navigates out from your app and back to the referrer app. + e.g when the user leaves your app after tapping the back-to-referrer navigation bar + */ +FOUNDATION_EXPORT NSString *const FBSDKAppLinkNavigateBackToReferrerEventName +NS_SWIFT_NAME(AppLinkNavigateBackToReferrerEventName); + +NS_SWIFT_NAME(MeasurementEvent) +@interface FBSDKMeasurementEvent : NSObject + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKMeasurementEvent.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKMeasurementEvent.m new file mode 100644 index 0000000000000..8170eb71b6f74 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKMeasurementEvent.m @@ -0,0 +1,82 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKMeasurementEvent_Internal.h" + +#import "FBSDKLogger.h" +#import "FBSDKSettings.h" + +#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0 + +NSNotificationName const FBSDKMeasurementEventNotification = @"com.facebook.facebook-objc-sdk.measurement_event"; + +#else + +NSString *const FBSDKMeasurementEventNotification = @"com.facebook.facebook-objc-sdk.measurement_event"; + +#endif + +NSString *const FBSDKMeasurementEventNotificationName = @"com.facebook.facebook-objc-sdk.measurement_event"; + +NSString *const FBSDKMeasurementEventNameKey = @"event_name"; +NSString *const FBSDKMeasurementEventArgsKey = @"event_args"; + +/** app Link Event raised by this FBSDKURL */ +NSString *const FBSDKAppLinkParseEventName = @"al_link_parse"; +NSString *const FBSDKAppLinkNavigateInEventName = @"al_nav_in"; + +/** AppLink events raised in this class */ +NSString *const FBSDKAppLinkNavigateOutEventName = @"al_nav_out"; +NSString *const FBSDKAppLinkNavigateBackToReferrerEventName = @"al_ref_back_out"; + +@implementation FBSDKMeasurementEvent { + NSString *_name; + NSDictionary *_args; +} + +- (void)postNotification { + if (!_name) { + [FBSDKLogger + singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors + logEntry:@"Warning: Missing event name when logging FBSDK measurement event.\nIgnoring this event in logging."]; + return; + } + NSNotificationCenter *center = [NSNotificationCenter defaultCenter]; + NSDictionary *userInfo = @{FBSDKMeasurementEventNameKey : _name, + FBSDKMeasurementEventArgsKey : _args}; + + [center postNotificationName:FBSDKMeasurementEventNotification + object:self + userInfo:userInfo]; +} + +- (instancetype)initEventWithName:(NSString *)name + args:(NSDictionary *)args { + if ((self = [super init])) { + _name = name; + _args = args ? args : @{}; + } + return self; +} + ++ (void)postNotificationForEventName:(NSString *)name + args:(NSDictionary *)args { + [[[self alloc] initEventWithName:name args:args] postNotification]; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKMutableCopying.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKMutableCopying.h new file mode 100644 index 0000000000000..edaae960ccee9 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKMutableCopying.h @@ -0,0 +1,41 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Extension protocol for NSMutableCopying that adds the mutableCopy method, which is implemented on NSObject. + + NSObject implicitly conforms to this protocol. + */ +NS_SWIFT_NAME(MutableCopying) +@protocol FBSDKMutableCopying + +/** + Implemented by NSObject as a convenience to mutableCopyWithZone:. + @return A mutable copy of the receiver. + */ +- (id)mutableCopy; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKProfile.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKProfile.h new file mode 100644 index 0000000000000..af8095d4d2fcf --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKProfile.h @@ -0,0 +1,191 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE." + +#import "FBSDKProfilePictureView.h" + +@class FBSDKProfile; + +NS_ASSUME_NONNULL_BEGIN + +#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0 + +/** + Notification indicating that the `currentProfile` has changed. + + the userInfo dictionary of the notification will contain keys + `FBSDKProfileChangeOldKey` and + `FBSDKProfileChangeNewKey`. + */ +FOUNDATION_EXPORT NSNotificationName const FBSDKProfileDidChangeNotification +NS_SWIFT_NAME(ProfileDidChange); + +#else + +/** + Notification indicating that the `currentProfile` has changed. + + the userInfo dictionary of the notification will contain keys + `FBSDKProfileChangeOldKey` and + `FBSDKProfileChangeNewKey`. + */ +FOUNDATION_EXPORT NSString *const FBSDKProfileDidChangeNotification +NS_SWIFT_NAME(ProfileDidChangeNotification); + +#endif + +/* key in notification's userInfo object for getting the old profile. + + If there was no old profile, the key will not be present. + */ +FOUNDATION_EXPORT NSString *const FBSDKProfileChangeOldKey +NS_SWIFT_NAME(ProfileChangeOldKey); + +/* key in notification's userInfo object for getting the new profile. + + If there is no new profile, the key will not be present. + */ +FOUNDATION_EXPORT NSString *const FBSDKProfileChangeNewKey +NS_SWIFT_NAME(ProfileChangeNewKey); + +/** + Describes the callback for loadCurrentProfileWithCompletion. + @param profile the FBSDKProfile + @param error the error during the request, if any + + */ +typedef void (^FBSDKProfileBlock)(FBSDKProfile *_Nullable profile, NSError *_Nullable error) +NS_SWIFT_NAME(ProfileBlock); + +/** + Represents an immutable Facebook profile + + This class provides a global "currentProfile" instance to more easily + add social context to your application. When the profile changes, a notification is + posted so that you can update relevant parts of your UI and is persisted to NSUserDefaults. + + Typically, you will want to call `enableUpdatesOnAccessTokenChange:YES` so that + it automatically observes changes to the `[FBSDKAccessToken currentAccessToken]`. + + You can use this class to build your own `FBSDKProfilePictureView` or in place of typical requests to "/me". + */ +NS_SWIFT_NAME(Profile) +@interface FBSDKProfile : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + initializes a new instance. + @param userID the user ID + @param firstName the user's first name + @param middleName the user's middle name + @param lastName the user's last name + @param name the user's complete name + @param linkURL the link for this profile + @param refreshDate the optional date this profile was fetched. Defaults to [NSDate date]. + */ +- (instancetype)initWithUserID:(NSString *)userID + firstName:(nullable NSString *)firstName + middleName:(nullable NSString *)middleName + lastName:(nullable NSString *)lastName + name:(nullable NSString *)name + linkURL:(nullable NSURL *)linkURL + refreshDate:(nullable NSDate *)refreshDate NS_DESIGNATED_INITIALIZER; + +/** + The current profile instance and posts the appropriate notification + if the profile parameter is different than the receiver. + + This persists the profile to NSUserDefaults. + */ + +/// The current profile +@property (class, nonatomic, strong, nullable) FBSDKProfile *currentProfile +NS_SWIFT_NAME(current); + +/** + The user id + */ +@property (nonatomic, copy, readonly) NSString *userID; +/** + The user's first name + */ +@property (nonatomic, copy, readonly, nullable) NSString *firstName; +/** + The user's middle name + */ +@property (nonatomic, copy, readonly, nullable) NSString *middleName; +/** + The user's last name + */ +@property (nonatomic, copy, readonly, nullable) NSString *lastName; +/** + The user's complete name + */ +@property (nonatomic, copy, readonly, nullable) NSString *name; +/** + A URL to the user's profile. + + Consider using `FBSDKAppLinkResolver` to resolve this + to an app link to link directly to the user's profile in the Facebook app. + */ +@property (nonatomic, readonly, nullable) NSURL *linkURL; + +/** + The last time the profile data was fetched. + */ +@property (nonatomic, readonly) NSDate *refreshDate; + +/** + Indicates if `currentProfile` will automatically observe `FBSDKAccessTokenDidChangeNotification` notifications + @param enable YES is observing + + If observing, this class will issue a graph request for public profile data when the current token's userID + differs from the current profile. You can observe `FBSDKProfileDidChangeNotification` for when the profile is updated. + + Note that if `[FBSDKAccessToken currentAccessToken]` is unset, the `currentProfile` instance remains. It's also possible + for `currentProfile` to return nil until the data is fetched. + */ ++ (void)enableUpdatesOnAccessTokenChange:(BOOL)enable +NS_SWIFT_NAME(enableUpdatesOnAccessTokenChange(_:)); + +/** + Loads the current profile and passes it to the completion block. + @param completion The block to be executed once the profile is loaded + + If the profile is already loaded, this method will call the completion block synchronously, otherwise it + will begin a graph request to update `currentProfile` and then call the completion block when finished. + */ ++ (void)loadCurrentProfileWithCompletion:(nullable FBSDKProfileBlock)completion; + +/** + A convenience method for returning a complete `NSURL` for retrieving the user's profile image. + @param mode The picture mode + @param size The height and width. This will be rounded to integer precision. + */ +- (nullable NSURL *)imageURLForPictureMode:(FBSDKProfilePictureMode)mode size:(CGSize)size +NS_SWIFT_NAME(imageURL(forMode:size:)); + +/** + Returns YES if the profile is equivalent to the receiver. + @param profile the profile to compare to. + */ +- (BOOL)isEqualToProfile:(FBSDKProfile *)profile; +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKProfile.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKProfile.m new file mode 100644 index 0000000000000..a6c7885ddfc4c --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKProfile.m @@ -0,0 +1,289 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKProfile+Internal.h" + +#import + +#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0 + +NSNotificationName const FBSDKProfileDidChangeNotification = @"com.facebook.sdk.FBSDKProfile.FBSDKProfileDidChangeNotification";; + +#else + +NSString *const FBSDKProfileDidChangeNotification = @"com.facebook.sdk.FBSDKProfile.FBSDKProfileDidChangeNotification";; + +#endif + +NSString *const FBSDKProfileChangeOldKey = @"FBSDKProfileOld"; +NSString *const FBSDKProfileChangeNewKey = @"FBSDKProfileNew"; +static NSString *const FBSDKProfileUserDefaultsKey = @"com.facebook.sdk.FBSDKProfile.currentProfile"; +static FBSDKProfile *g_currentProfile; + +#define FBSDKPROFILE_USERID_KEY @"userID" +#define FBSDKPROFILE_FIRSTNAME_KEY @"firstName" +#define FBSDKPROFILE_MIDDLENAME_KEY @"middleName" +#define FBSDKPROFILE_LASTNAME_KEY @"lastName" +#define FBSDKPROFILE_NAME_KEY @"name" +#define FBSDKPROFILE_LINKURL_KEY @"linkURL" +#define FBSDKPROFILE_REFRESHDATE_KEY @"refreshDate" + +// Once a day +#define FBSDKPROFILE_STALE_IN_SECONDS (60 * 60 * 24) + +@implementation FBSDKProfile + +- (instancetype)initWithUserID:(NSString *)userID + firstName:(NSString *)firstName + middleName:(NSString *)middleName + lastName:(NSString *)lastName + name:(NSString *)name + linkURL:(NSURL *)linkURL + refreshDate:(NSDate *)refreshDate +{ + if ((self = [super init])) { + _userID = [userID copy]; + _firstName = [firstName copy]; + _middleName = [middleName copy]; + _lastName = [lastName copy]; + _name = [name copy]; + _linkURL = [linkURL copy]; + _refreshDate = [refreshDate copy] ?: [NSDate date]; + } + return self; +} + ++ (FBSDKProfile *)currentProfile +{ + return g_currentProfile; +} + ++ (void)setCurrentProfile:(FBSDKProfile *)profile +{ + if (profile != g_currentProfile && ![profile isEqualToProfile:g_currentProfile]) { + [[self class] cacheProfile:profile]; + NSMutableDictionary *userInfo = [NSMutableDictionary dictionary]; + + [FBSDKBasicUtility dictionary:userInfo setObject:profile forKey:FBSDKProfileChangeNewKey]; + [FBSDKBasicUtility dictionary:userInfo setObject:g_currentProfile forKey:FBSDKProfileChangeOldKey]; + g_currentProfile = profile; + [[NSNotificationCenter defaultCenter] postNotificationName:FBSDKProfileDidChangeNotification + object:[self class] + userInfo:userInfo]; + } +} + +- (NSURL *)imageURLForPictureMode:(FBSDKProfilePictureMode)mode size:(CGSize)size +{ + NSString *type; + switch (mode) { + case FBSDKProfilePictureModeNormal: type = @"normal"; break; + case FBSDKProfilePictureModeSquare: type = @"square"; break; + } + + NSString *path = [NSString stringWithFormat:@"%@/picture?type=%@&width=%d&height=%d", + _userID, + type, + (int) roundf(size.width), + (int) roundf(size.height)]; + + return [FBSDKInternalUtility facebookURLWithHostPrefix:@"graph" + path:path + queryParameters:@{} + error:NULL]; +} + ++ (void)enableUpdatesOnAccessTokenChange:(BOOL)enable +{ + if (enable) { + [[NSNotificationCenter defaultCenter] addObserver:self + selector:@selector(observeChangeAccessTokenChange:) + name:FBSDKAccessTokenDidChangeNotification + object:nil]; + } else { + [[NSNotificationCenter defaultCenter] removeObserver:self]; + } +} + ++ (void)loadCurrentProfileWithCompletion:(FBSDKProfileBlock)completion +{ + [self loadProfileWithToken:[FBSDKAccessToken currentAccessToken] completion:completion]; +} + +#pragma mark - NSCopying + +- (instancetype)copyWithZone:(NSZone *)zone +{ + //immutable + return self; +} + +#pragma mark - Equality + +- (NSUInteger)hash +{ + NSUInteger subhashes[] = { + self.userID.hash, + self.firstName.hash, + self.middleName.hash, + self.lastName.hash, + self.name.hash, + self.linkURL.hash, + self.refreshDate.hash + }; + return [FBSDKMath hashWithIntegerArray:subhashes count:sizeof(subhashes) / sizeof(subhashes[0])]; +} + +- (BOOL)isEqual:(id)object +{ + if (self == object) { + return YES; + } + if (![object isKindOfClass:[FBSDKProfile class]]){ + return NO; + } + return [self isEqualToProfile:object]; +} + +- (BOOL)isEqualToProfile:(FBSDKProfile *)profile +{ + return ([_userID isEqualToString:profile.userID] && + [_firstName isEqualToString:profile.firstName] && + [_middleName isEqualToString:profile.middleName] && + [_lastName isEqualToString:profile.lastName] && + [_name isEqualToString:profile.name] && + [_linkURL isEqual:profile.linkURL] && + [_refreshDate isEqualToDate:profile.refreshDate]); +} +#pragma mark NSCoding + ++ (BOOL)supportsSecureCoding +{ + return YES; +} + +- (instancetype)initWithCoder:(NSCoder *)decoder +{ + NSString *userID = [decoder decodeObjectOfClass:[NSString class] forKey:FBSDKPROFILE_USERID_KEY]; + NSString *firstName = [decoder decodeObjectOfClass:[NSString class] forKey:FBSDKPROFILE_FIRSTNAME_KEY]; + NSString *middleName = [decoder decodeObjectOfClass:[NSString class] forKey:FBSDKPROFILE_MIDDLENAME_KEY]; + NSString *lastName = [decoder decodeObjectOfClass:[NSString class] forKey:FBSDKPROFILE_LASTNAME_KEY]; + NSString *name = [decoder decodeObjectOfClass:[NSString class] forKey:FBSDKPROFILE_NAME_KEY]; + NSURL *linkURL = [decoder decodeObjectOfClass:[NSURL class] forKey:FBSDKPROFILE_LINKURL_KEY]; + NSDate *refreshDate = [decoder decodeObjectOfClass:[NSURL class] forKey:FBSDKPROFILE_REFRESHDATE_KEY]; + return [self initWithUserID:userID + firstName:firstName + middleName:middleName + lastName:lastName + name:name + linkURL:linkURL + refreshDate:refreshDate]; +} + +- (void)encodeWithCoder:(NSCoder *)encoder +{ + [encoder encodeObject:self.userID forKey:FBSDKPROFILE_USERID_KEY]; + [encoder encodeObject:self.firstName forKey:FBSDKPROFILE_FIRSTNAME_KEY]; + [encoder encodeObject:self.middleName forKey:FBSDKPROFILE_MIDDLENAME_KEY]; + [encoder encodeObject:self.lastName forKey:FBSDKPROFILE_LASTNAME_KEY]; + [encoder encodeObject:self.name forKey:FBSDKPROFILE_NAME_KEY]; + [encoder encodeObject:self.linkURL forKey:FBSDKPROFILE_LINKURL_KEY]; + [encoder encodeObject:self.refreshDate forKey:FBSDKPROFILE_REFRESHDATE_KEY]; +} + +#pragma mark - Private + ++ (void)loadProfileWithToken:(FBSDKAccessToken *)token completion:(FBSDKProfileBlock)completion +{ + static FBSDKGraphRequestConnection *executingRequestConnection = nil; + + BOOL isStale = [[NSDate date] timeIntervalSinceDate:g_currentProfile.refreshDate] > FBSDKPROFILE_STALE_IN_SECONDS; + if (token && + (isStale || ![g_currentProfile.userID isEqualToString:token.userID])) { + FBSDKProfile *expectedCurrentProfile = g_currentProfile; + + NSString *graphPath = @"me?fields=id,first_name,middle_name,last_name,name,link"; + [executingRequestConnection cancel]; + FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc] initWithGraphPath:graphPath + parameters:nil + flags:FBSDKGraphRequestFlagDoNotInvalidateTokenOnError | FBSDKGraphRequestFlagDisableErrorRecovery]; + executingRequestConnection = [request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) { + if (expectedCurrentProfile != g_currentProfile) { + // current profile has already changed since request was started. Let's not overwrite. + if (completion != NULL) { + completion(nil, nil); + } + return; + } + FBSDKProfile *profile = nil; + if (!error) { + profile = [[FBSDKProfile alloc] initWithUserID:result[@"id"] + firstName:result[@"first_name"] + middleName:result[@"middle_name"] + lastName:result[@"last_name"] + name:result[@"name"] + linkURL:[NSURL URLWithString:result[@"link"]] + refreshDate:[NSDate date]]; + } + [[self class] setCurrentProfile:profile]; + if (completion != NULL) { + completion(profile, error); + } + }]; + } else if (completion != NULL) { + completion(g_currentProfile, nil); + } +} + ++ (void)observeChangeAccessTokenChange:(NSNotification *)notification +{ + FBSDKAccessToken *token = notification.userInfo[FBSDKAccessTokenChangeNewKey]; + [self loadProfileWithToken:token completion:NULL]; +} + +@end + +@implementation FBSDKProfile(Internal) + ++ (void)cacheProfile:(FBSDKProfile *)profile +{ + NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults]; + if (profile) { + NSData *data = [NSKeyedArchiver archivedDataWithRootObject:profile]; + [userDefaults setObject:data forKey:FBSDKProfileUserDefaultsKey]; + } else { + [userDefaults removeObjectForKey:FBSDKProfileUserDefaultsKey]; + } + [userDefaults synchronize]; +} + ++ (FBSDKProfile *)fetchCachedProfile +{ + NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults]; + NSData *data = [userDefaults objectForKey:FBSDKProfileUserDefaultsKey]; + if (data != nil) { + @try { + return [NSKeyedUnarchiver unarchiveObjectWithData:data]; + } @catch (NSException *exception) { + return nil; + } + } + return nil; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKProfilePictureView.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKProfilePictureView.h new file mode 100644 index 0000000000000..1ed2b766492ba --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKProfilePictureView.h @@ -0,0 +1,65 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + FBSDKProfilePictureMode enum + Defines the aspect ratio mode for the source image of the profile picture. + */ +typedef NS_ENUM(NSUInteger, FBSDKProfilePictureMode) +{ + /** + A square cropped version of the image will be included in the view. + */ + FBSDKProfilePictureModeSquare, + /** + The original picture's aspect ratio will be used for the source image in the view. + */ + FBSDKProfilePictureModeNormal, +} NS_SWIFT_NAME(Profile.PictureMode); + +/** + A view to display a profile picture. + */ +NS_SWIFT_NAME(FBProfilePictureView) +@interface FBSDKProfilePictureView : UIView + +/** + The mode for the receiver to determine the aspect ratio of the source image. + */ +@property (nonatomic, assign) FBSDKProfilePictureMode pictureMode; + +/** + The profile ID to show the picture for. + */ +@property (nonatomic, copy) NSString *profileID; + +/** + Explicitly marks the receiver as needing to update the image. + + This method is called whenever any properties that affect the source image are modified, but this can also + be used to trigger a manual update of the image if it needs to be re-downloaded. + */ +- (void)setNeedsImageUpdate; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKProfilePictureView.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKProfilePictureView.m new file mode 100644 index 0000000000000..faced70efb5f4 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKProfilePictureView.m @@ -0,0 +1,366 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKProfilePictureView.h" + +#import "FBSDKAccessToken.h" +#import "FBSDKInternalUtility.h" +#import "FBSDKMaleSilhouetteIcon.h" +#import "FBSDKMath.h" +#import "FBSDKUtility.h" + +@interface FBSDKProfilePictureViewState : NSObject + +- (instancetype)initWithProfileID:(NSString *)profileID + size:(CGSize)size + scale:(CGFloat)scale + pictureMode:(FBSDKProfilePictureMode)pictureMode + imageShouldFit:(BOOL)imageShouldFit; + +@property (nonatomic, assign, readonly) BOOL imageShouldFit; +@property (nonatomic, assign, readonly) FBSDKProfilePictureMode pictureMode; +@property (nonatomic, copy, readonly) NSString *profileID; +@property (nonatomic, assign, readonly) CGFloat scale; +@property (nonatomic, assign, readonly) CGSize size; + +- (BOOL)isEqualToState:(FBSDKProfilePictureViewState *)other; +- (BOOL)isValidForState:(FBSDKProfilePictureViewState *)other; + +@end + +@implementation FBSDKProfilePictureViewState + +- (instancetype)initWithProfileID:(NSString *)profileID + size:(CGSize)size + scale:(CGFloat)scale + pictureMode:(FBSDKProfilePictureMode)pictureMode + imageShouldFit:(BOOL)imageShouldFit +{ + if ((self = [super init])) { + _profileID = [profileID copy]; + _size = size; + _scale = scale; + _pictureMode = pictureMode; + _imageShouldFit = imageShouldFit; + } + return self; +} + +- (NSUInteger)hash +{ + NSUInteger subhashes[] = { + (NSUInteger)_imageShouldFit, + (NSUInteger)_size.width, + (NSUInteger)_size.height, + (NSUInteger)_scale, + (NSUInteger)_pictureMode, + _profileID.hash, + }; + return [FBSDKMath hashWithIntegerArray:subhashes count:sizeof(subhashes) / sizeof(subhashes[0])]; +} + +- (BOOL)isEqual:(id)object +{ + if (![object isKindOfClass:[FBSDKProfilePictureViewState class]]) { + return NO; + } + FBSDKProfilePictureViewState *other = (FBSDKProfilePictureViewState *)object; + return [self isEqualToState:other]; +} + +- (BOOL)isEqualToState:(FBSDKProfilePictureViewState *)other +{ + return ([self isValidForState:other] && + CGSizeEqualToSize(_size, other->_size) && + (_scale == other->_scale)); +} + +- (BOOL)isValidForState:(FBSDKProfilePictureViewState *)other +{ + return (other != nil && + (_imageShouldFit == other->_imageShouldFit) && + (_pictureMode == other->_pictureMode) && + [FBSDKInternalUtility object:_profileID isEqualToObject:other->_profileID]); +} + +@end + +@implementation FBSDKProfilePictureView +{ + BOOL _hasProfileImage; + UIImageView *_imageView; + FBSDKProfilePictureViewState *_lastState; + BOOL _needsImageUpdate; + BOOL _placeholderImageIsValid; +} + +#pragma mark - Object Lifecycle + +- (instancetype)initWithFrame:(CGRect)frame +{ + if ((self = [super initWithFrame:frame])) { + [self _configureProfilePictureView]; + } + return self; +} + +- (instancetype)initWithCoder:(NSCoder *)decoder +{ + if ((self = [super initWithCoder:decoder])) { + [self _configureProfilePictureView]; + } + return self; +} + +- (void)dealloc +{ + [[NSNotificationCenter defaultCenter] removeObserver:self]; +} + +#pragma mark - Properties + +- (void)setBounds:(CGRect)bounds +{ + dispatch_async(dispatch_get_main_queue(), ^{ + CGRect currentBounds = self.bounds; + if (!CGRectEqualToRect(currentBounds, bounds)) { + super.bounds = bounds; + if (!CGSizeEqualToSize(currentBounds.size, bounds.size)) { + self->_placeholderImageIsValid = NO; + [self setNeedsImageUpdate]; + } + } + }); +} + +- (UIViewContentMode)contentMode +{ + return _imageView.contentMode; +} + +- (void)setContentMode:(UIViewContentMode)contentMode +{ + if (_imageView.contentMode != contentMode) { + _imageView.contentMode = contentMode; + super.contentMode = contentMode; + [self setNeedsImageUpdate]; + } +} + +- (void)setMode:(FBSDKProfilePictureMode)pictureMode +{ + if (_pictureMode != pictureMode) { + _pictureMode = pictureMode; + [self setNeedsImageUpdate]; + } +} + +- (void)setProfileID:(NSString *)profileID +{ + if (![FBSDKInternalUtility object:_profileID isEqualToObject:profileID]) { + _profileID = [profileID copy]; + _placeholderImageIsValid = NO; + [self setNeedsImageUpdate]; + } +} + +#pragma mark - Public Methods + +- (void)setNeedsImageUpdate +{ + dispatch_async(dispatch_get_main_queue(), ^{ + if (!self->_imageView || CGRectIsEmpty(self.bounds)) { + // we can't do anything with an empty view, so just bail out until we have a size + return; + } + + // ensure that we have an image. do this here so we can draw the placeholder image synchronously if we don't have one + if (!self->_placeholderImageIsValid && !self->_hasProfileImage) { + [self _setPlaceholderImage]; + } + + // debounce calls to needsImage against the main runloop + if (self->_needsImageUpdate) { + return; + } + self->_needsImageUpdate = YES; + [self _needsImageUpdate]; + }); +} + +#pragma mark - Helper Methods + +- (void)_accessTokenDidChangeNotification:(NSNotification *)notification +{ + if (![_profileID isEqualToString:@"me"] || !notification.userInfo[FBSDKAccessTokenDidChangeUserIDKey]) { + return; + } + _lastState = nil; + [self setNeedsImageUpdate]; +} + +- (void)_configureProfilePictureView +{ + _imageView = [[UIImageView alloc] initWithFrame:self.bounds]; + _imageView.autoresizingMask = (UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight); + [self addSubview:_imageView]; + + _profileID = @"me"; + self.backgroundColor = [UIColor whiteColor]; + self.contentMode = UIViewContentModeScaleAspectFit; + self.userInteractionEnabled = NO; + [[NSNotificationCenter defaultCenter] addObserver:self + selector:@selector(_accessTokenDidChangeNotification:) + name:FBSDKAccessTokenDidChangeNotification + object:nil]; + + [self setNeedsImageUpdate]; +} + +- (BOOL)_imageShouldFit +{ + switch (self.contentMode) { + case UIViewContentModeBottom: + case UIViewContentModeBottomLeft: + case UIViewContentModeBottomRight: + case UIViewContentModeCenter: + case UIViewContentModeLeft: + case UIViewContentModeRedraw: + case UIViewContentModeRight: + case UIViewContentModeScaleAspectFit: + case UIViewContentModeTop: + case UIViewContentModeTopLeft: + case UIViewContentModeTopRight: + return YES; + case UIViewContentModeScaleAspectFill: + case UIViewContentModeScaleToFill: + return NO; + } +} + +- (CGSize)_imageSize:(BOOL)imageShouldFit scale:(CGFloat)scale +{ + // get the image size based on the contentMode and pictureMode + CGSize size = self.bounds.size; + switch (_pictureMode) { + case FBSDKProfilePictureModeSquare:{ + CGFloat imageSize; + if (imageShouldFit) { + imageSize = MIN(size.width, size.height); + } else { + imageSize = MAX(size.width, size.height); + } + size = CGSizeMake(imageSize, imageSize); + break; + } + case FBSDKProfilePictureModeNormal: + // use the bounds size + break; + } + + // adjust for the screen scale + size = CGSizeMake(size.width * scale, size.height * scale); + + return size; +} + +- (void)_needsImageUpdate +{ + _needsImageUpdate = NO; + + if (!_profileID) { + if (!_placeholderImageIsValid) { + [self _setPlaceholderImage]; + } + return; + } + + // if the current image is no longer representative of the current state, clear the current value out; otherwise, + // leave the current value until the new resolution image is downloaded + BOOL imageShouldFit = [self _imageShouldFit]; + UIScreen *screen = self.window.screen ?: [UIScreen mainScreen]; + CGFloat scale = screen.scale; + CGSize imageSize = [self _imageSize:imageShouldFit scale:scale]; + FBSDKProfilePictureViewState *state = [[FBSDKProfilePictureViewState alloc] initWithProfileID:_profileID + size:imageSize + scale:scale + pictureMode:_pictureMode + imageShouldFit:imageShouldFit]; + if (![_lastState isValidForState:state]) { + [self _setPlaceholderImage]; + } + _lastState = state; + + FBSDKAccessToken *accessToken = [FBSDKAccessToken currentAccessToken]; + if ([state.profileID isEqualToString:@"me"] && !accessToken) { + return; + } + + NSString *path = [[NSString alloc] initWithFormat:@"/%@/picture", [FBSDKUtility URLEncode:state.profileID]]; + CGSize size = state.size; + NSMutableDictionary *parameters = [[NSMutableDictionary alloc] init]; + parameters[@"width"] = @(size.width); + parameters[@"height"] = @(size.height); + [FBSDKBasicUtility dictionary:parameters setObject:accessToken.tokenString forKey:@"access_token"]; + NSURL *imageURL = [FBSDKInternalUtility facebookURLWithHostPrefix:@"graph" path:path queryParameters:parameters error:NULL]; + + __weak FBSDKProfilePictureView *weakSelf = self; + + NSURLRequest *request = [[NSURLRequest alloc] initWithURL:imageURL]; + NSURLSession *session = [NSURLSession sharedSession]; + [[session + dataTaskWithRequest:request + completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { + if (!error && data.length) { + [weakSelf _updateImageWithData:data state:state]; + } + }] resume]; +} + +- (void)_setPlaceholderImage +{ + UIColor *fillColor = [UIColor colorWithRed:157.0/255.0 green:177.0/255.0 blue:204.0/255.0 alpha:1.0]; + _placeholderImageIsValid = YES; + _hasProfileImage = NO; + + dispatch_async(dispatch_get_main_queue(), ^{ + self->_imageView.image = [[[FBSDKMaleSilhouetteIcon alloc] initWithColor:fillColor] imageWithSize:self->_imageView.bounds.size]; + }); +} + +- (void)_updateImageWithData:(NSData *)data state:(FBSDKProfilePictureViewState *)state +{ + // make sure we haven't updated the state since we began fetching the image + if (![state isValidForState:_lastState]) { + return; + } + + UIImage *image = [[UIImage alloc] initWithData:data scale:state.scale]; + if (image) { + _hasProfileImage = YES; + dispatch_async(dispatch_get_main_queue(), ^{ + self->_imageView.image = image; + }); + } else { + _hasProfileImage = NO; + _placeholderImageIsValid = NO; + [self setNeedsImageUpdate]; + } +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKSettings.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKSettings.h new file mode 100644 index 0000000000000..a6f14644dabf4 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKSettings.h @@ -0,0 +1,213 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_ASSUME_NONNULL_BEGIN + +/* + * Constants defining logging behavior. Use with <[FBSDKSettings setLoggingBehavior]>. + */ + +/// typedef for FBSDKAppEventName +typedef NSString *const FBSDKLoggingBehavior NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(LoggingBehavior); + +/** Include access token in logging. */ +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorAccessTokens; + +/** Log performance characteristics */ +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorPerformanceCharacteristics; + +/** Log FBSDKAppEvents interactions */ +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorAppEvents; + +/** Log Informational occurrences */ +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorInformational; + +/** Log cache errors. */ +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorCacheErrors; + +/** Log errors from SDK UI controls */ +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorUIControlErrors; + +/** Log debug warnings from API response, i.e. when friends fields requested, but user_friends permission isn't granted. */ +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorGraphAPIDebugWarning; + +/** Log warnings from API response, i.e. when requested feature will be deprecated in next version of API. + Info is the lowest level of severity, using it will result in logging all previously mentioned levels. + */ +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorGraphAPIDebugInfo; + +/** Log errors from SDK network requests */ +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorNetworkRequests; + +/** Log errors likely to be preventable by the developer. This is in the default set of enabled logging behaviors. */ +FOUNDATION_EXPORT FBSDKLoggingBehavior FBSDKLoggingBehaviorDeveloperErrors; + +NS_SWIFT_NAME(Settings) +@interface FBSDKSettings : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Retrieve the current iOS SDK version. + */ +@property (class, nonatomic, copy, readonly) NSString *sdkVersion; + +/** + Retrieve the current default Graph API version. + */ +@property (class, nonatomic, copy, readonly) NSString *defaultGraphAPIVersion; + +/** + The quality of JPEG images sent to Facebook from the SDK, + expressed as a value from 0.0 to 1.0. + + If not explicitly set, the default is 0.9. + + @see [UIImageJPEGRepresentation](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIKitFunctionReference/#//apple_ref/c/func/UIImageJPEGRepresentation) */ +@property (class, nonatomic, assign) CGFloat JPEGCompressionQuality +NS_SWIFT_NAME(jpegCompressionQuality); + +/** + Controls sdk auto initailization. + If not explicitly set, the default is true + */ +@property (class, nonatomic, assign, getter=isAutoInitEnabled) BOOL autoInitEnabled; + +/** + Controls sdk crash report + If not explicitly set, the default is true + */ +@property (class, nonatomic, assign, getter=isInstrumentEnabled) BOOL instrumentEnabled +__attribute((deprecated("This attribute is no longer used, use autoLogAppEventsEnabled instead."))); + +/** + Controls the auto logging of basic app events, such as activateApp and deactivateApp. + If not explicitly set, the default is true + */ +@property (class, nonatomic, assign, getter=isAutoLogAppEventsEnabled) BOOL autoLogAppEventsEnabled; + +/** + Controls the fb_codeless_debug logging event + If not explicitly set, the default is true + */ +@property (class, nonatomic, assign, getter=isCodelessDebugLogEnabled) BOOL codelessDebugLogEnabled; + +/** + Controls the fb_codeless_debug logging event + If not explicitly set, the default is true + */ +@property (class, nonatomic, assign, getter=isAdvertiserIDCollectionEnabled) BOOL advertiserIDCollectionEnabled; + +/** + Whether data such as that generated through FBSDKAppEvents and sent to Facebook + should be restricted from being used for other than analytics and conversions. + Defaults to NO. This value is stored on the device and persists across app launches. + */ +@property (class, nonatomic, assign, getter=shouldLimitEventAndDataUsage) BOOL limitEventAndDataUsage; + +/** + A convenient way to toggle error recovery for all FBSDKGraphRequest instances created after this is set. + */ +@property (class, nonatomic, assign, getter=isGraphErrorRecoveryEnabled) BOOL graphErrorRecoveryEnabled; + +/** + The Facebook App ID used by the SDK. + + If not explicitly set, the default will be read from the application's plist (FacebookAppID). + */ +@property (class, nonatomic, copy, nullable) NSString *appID; + +/** + The default url scheme suffix used for sessions. + + If not explicitly set, the default will be read from the application's plist (FacebookUrlSchemeSuffix). + */ +@property (class, nonatomic, copy, nullable) NSString *appURLSchemeSuffix; + +/** + The Client Token that has been set via [FBSDKSettings setClientToken]. + This is needed for certain API calls when made anonymously, without a user-based access token. + + The Facebook App's "client token", which, for a given appid can be found in the Security + section of the Advanced tab of the Facebook App settings found at + + If not explicitly set, the default will be read from the application's plist (FacebookClientToken). + */ +@property (class, nonatomic, copy, nullable) NSString *clientToken; + +/** + The Facebook Display Name used by the SDK. + + This should match the Display Name that has been set for the app with the corresponding Facebook App ID, + in the Facebook App Dashboard. + + If not explicitly set, the default will be read from the application's plist (FacebookDisplayName). + */ +@property (class, nonatomic, copy, nullable) NSString *displayName; + +/** + The Facebook domain part. This can be used to change the Facebook domain + (e.g. @"beta") so that requests will be sent to `graph.beta.facebook.com` + + If not explicitly set, the default will be read from the application's plist (FacebookDomainPart). + */ +@property (class, nonatomic, copy, nullable) NSString *facebookDomainPart; + +/** + The current Facebook SDK logging behavior. This should consist of strings + defined as constants with FBSDKLoggingBehavior*. + + This should consist a set of strings indicating what information should be logged + defined as constants with FBSDKLoggingBehavior*. Set to an empty set in order to disable all logging. + + You can also define this via an array in your app plist with key "FacebookLoggingBehavior" or add and remove individual values via enableLoggingBehavior: or disableLogginBehavior: + + The default is a set consisting of FBSDKLoggingBehaviorDeveloperErrors + */ +@property (class, nonatomic, copy) NSSet *loggingBehaviors +NS_REFINED_FOR_SWIFT; + +/** + Overrides the default Graph API version to use with `FBSDKGraphRequests`. This overrides `FBSDK_TARGET_PLATFORM_VERSION`. + + The string should be of the form `@"v2.7"`. + + Defaults to `FBSDK_TARGET_PLATFORM_VERSION`. +*/ +@property (class, nonatomic, copy, null_resettable) NSString *graphAPIVersion; + +/** + Enable a particular Facebook SDK logging behavior. + + @param loggingBehavior The LoggingBehavior to enable. This should be a string defined as a constant with FBSDKLoggingBehavior*. + */ ++ (void)enableLoggingBehavior:(FBSDKLoggingBehavior)loggingBehavior; + +/** + Disable a particular Facebook SDK logging behavior. + + @param loggingBehavior The LoggingBehavior to disable. This should be a string defined as a constant with FBSDKLoggingBehavior*. + */ ++ (void)disableLoggingBehavior:(FBSDKLoggingBehavior)loggingBehavior; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKSettings.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKSettings.m new file mode 100644 index 0000000000000..4e5f1ca1851e8 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKSettings.m @@ -0,0 +1,384 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKSettings+Internal.h" + +#import "FBSDKAccessTokenCache.h" +#import "FBSDKAccessTokenExpirer.h" +#import "FBSDKAppEvents+Internal.h" +#import "FBSDKCoreKit.h" + +#define FBSDKSETTINGS_PLIST_CONFIGURATION_SETTING_IMPL(TYPE, PLIST_KEY, GETTER, SETTER, DEFAULT_VALUE, ENABLE_CACHE) \ +static TYPE *g_##PLIST_KEY = nil; \ ++ (TYPE *)GETTER \ +{ \ + if (!g_##PLIST_KEY && ENABLE_CACHE) { \ + g_##PLIST_KEY = [[[NSUserDefaults standardUserDefaults] objectForKey:@#PLIST_KEY] copy]; \ + } \ + if (!g_##PLIST_KEY) { \ + g_##PLIST_KEY = [[[NSBundle mainBundle] objectForInfoDictionaryKey:@#PLIST_KEY] copy] ?: DEFAULT_VALUE; \ + } \ + return g_##PLIST_KEY; \ +} \ ++ (void)SETTER:(TYPE *)value { \ + g_##PLIST_KEY = [value copy]; \ + if (ENABLE_CACHE) { \ + if (value) { \ + [[NSUserDefaults standardUserDefaults] setObject:value forKey:@#PLIST_KEY]; \ + } else { \ + [[NSUserDefaults standardUserDefaults] removeObjectForKey:@#PLIST_KEY]; \ + } \ + } \ + [FBSDKSettings _logIfSDKSettingsChanged]; \ +} + +FBSDKLoggingBehavior FBSDKLoggingBehaviorAccessTokens = @"include_access_tokens"; +FBSDKLoggingBehavior FBSDKLoggingBehaviorPerformanceCharacteristics = @"perf_characteristics"; +FBSDKLoggingBehavior FBSDKLoggingBehaviorAppEvents = @"app_events"; +FBSDKLoggingBehavior FBSDKLoggingBehaviorInformational = @"informational"; +FBSDKLoggingBehavior FBSDKLoggingBehaviorCacheErrors = @"cache_errors"; +FBSDKLoggingBehavior FBSDKLoggingBehaviorUIControlErrors = @"ui_control_errors"; +FBSDKLoggingBehavior FBSDKLoggingBehaviorDeveloperErrors = @"developer_errors"; +FBSDKLoggingBehavior FBSDKLoggingBehaviorGraphAPIDebugWarning = @"graph_api_debug_warning"; +FBSDKLoggingBehavior FBSDKLoggingBehaviorGraphAPIDebugInfo = @"graph_api_debug_info"; +FBSDKLoggingBehavior FBSDKLoggingBehaviorNetworkRequests = @"network_requests"; + +static NSObject *g_tokenCache; +static NSMutableSet *g_loggingBehaviors; +static NSString *const FBSDKSettingsLimitEventAndDataUsage = @"com.facebook.sdk:FBSDKSettingsLimitEventAndDataUsage"; +static NSString *const FBSDKSettingsBitmask = @"com.facebook.sdk:FBSDKSettingsBitmask"; +static BOOL g_disableErrorRecovery; +static NSString *g_userAgentSuffix; +static NSString *g_defaultGraphAPIVersion; +static FBSDKAccessTokenExpirer *g_accessTokenExpirer; + +// +// Warning messages for App Event Flags +// + +static NSString *const autoLogAppEventsEnabledNotSetWarning = + @": Please set a value for FacebookAutoLogAppEventsEnabled. Set the flag to TRUE if you want " + "to collect app install, app launch and in-app purchase events automatically. To request user consent " + "before collecting data, set the flag value to FALSE, then change to TRUE once user consent is received. " + "Learn more: https://developers.facebook.com/docs/app-events/getting-started-app-events-ios#disable-auto-events."; +static NSString *const advertiserIDCollectionEnabledNotSetWarning = + @": You haven't set a value for FacebookAdvertiserIDCollectionEnabled. Set the flag to TRUE if " + "you want to collect Advertiser ID for better advertising and analytics results. To request user consent " + "before collecting data, set the flag value to FALSE, then change to TRUE once user consent is received. " + "Learn more: https://developers.facebook.com/docs/app-events/getting-started-app-events-ios#disable-auto-events."; +static NSString *const advertiserIDCollectionEnabledFalseWarning = + @": The value for FacebookAdvertiserIDCollectionEnabled is currently set to FALSE so you're sending app " + "events without collecting Advertiser ID. This can affect the quality of your advertising and analytics results."; + +@implementation FBSDKSettings + ++ (void)initialize +{ + if (self == [FBSDKSettings class]) { + g_tokenCache = [[FBSDKAccessTokenCache alloc] init]; + g_accessTokenExpirer = [[FBSDKAccessTokenExpirer alloc] init]; + + [FBSDKSettings logWarnings]; + [FBSDKSettings _logIfSDKSettingsChanged]; + } +} + +#pragma mark - Plist Configuration Settings + +FBSDKSETTINGS_PLIST_CONFIGURATION_SETTING_IMPL(NSString, FacebookAppID, appID, setAppID, nil, NO); +FBSDKSETTINGS_PLIST_CONFIGURATION_SETTING_IMPL(NSString, FacebookUrlSchemeSuffix, appURLSchemeSuffix, setAppURLSchemeSuffix, nil, NO); +FBSDKSETTINGS_PLIST_CONFIGURATION_SETTING_IMPL(NSString, FacebookClientToken, clientToken, setClientToken, nil, NO); +FBSDKSETTINGS_PLIST_CONFIGURATION_SETTING_IMPL(NSString, FacebookDisplayName, displayName, setDisplayName, nil, NO); +FBSDKSETTINGS_PLIST_CONFIGURATION_SETTING_IMPL(NSString, FacebookDomainPart, facebookDomainPart, setFacebookDomainPart, nil, NO); +FBSDKSETTINGS_PLIST_CONFIGURATION_SETTING_IMPL(NSNumber, FacebookJpegCompressionQuality, _JPEGCompressionQualityNumber, _setJPEGCompressionQualityNumber, @0.9, NO); +FBSDKSETTINGS_PLIST_CONFIGURATION_SETTING_IMPL(NSNumber, FacebookAutoInitEnabled, _autoInitEnabled, _setAutoInitEnabled, @1, YES); +FBSDKSETTINGS_PLIST_CONFIGURATION_SETTING_IMPL(NSNumber, FacebookInstrumentEnabled, _instrumentEnabled, _setInstrumentEnabled, @1, YES); +FBSDKSETTINGS_PLIST_CONFIGURATION_SETTING_IMPL(NSNumber, FacebookAutoLogAppEventsEnabled, _autoLogAppEventsEnabled, _setAutoLogAppEventsEnabled, @1, YES); +FBSDKSETTINGS_PLIST_CONFIGURATION_SETTING_IMPL(NSNumber, FacebookAdvertiserIDCollectionEnabled, _advertiserIDCollectionEnabled, _setAdvertiserIDCollectionEnabled, @1, YES); +FBSDKSETTINGS_PLIST_CONFIGURATION_SETTING_IMPL(NSNumber, FacebookCodelessDebugLogEnabled, _codelessDebugLogEnabled, + _setCodelessDebugLogEnabled, @0, YES); + ++ (BOOL)isGraphErrorRecoveryEnabled +{ + return !g_disableErrorRecovery; +} + ++ (void)setGraphErrorRecoveryEnabled:(BOOL)graphErrorRecoveryEnabled +{ + g_disableErrorRecovery = !graphErrorRecoveryEnabled; +} + ++ (CGFloat)JPEGCompressionQuality +{ + return [self _JPEGCompressionQualityNumber].floatValue; +} + ++ (void)setJPEGCompressionQuality:(CGFloat)JPEGCompressionQuality +{ + [self _setJPEGCompressionQualityNumber:@(JPEGCompressionQuality)]; +} + ++ (BOOL)isAutoInitEnabled +{ + return [self _autoInitEnabled].boolValue; +} + ++ (void)setAutoInitEnabled:(BOOL)autoInitEnabled +{ + [self _setAutoInitEnabled:@(autoInitEnabled)]; + if (autoInitEnabled) { + [FBSDKApplicationDelegate initializeSDK:nil]; + } +} + ++ (BOOL)isInstrumentEnabled +{ + return [self _instrumentEnabled].boolValue; +} + ++ (void)setInstrumentEnabled:(BOOL)instrumentEnabled +{ + [self _setInstrumentEnabled:@(instrumentEnabled)]; +} + ++ (BOOL)isCodelessDebugLogEnabled +{ + return [self _codelessDebugLogEnabled].boolValue; +} + ++ (void)setCodelessDebugLogEnabled:(BOOL)codelessDebugLogEnabled +{ + [self _setCodelessDebugLogEnabled:@(codelessDebugLogEnabled)]; +} + ++ (BOOL)isAutoLogAppEventsEnabled +{ + return [self _autoLogAppEventsEnabled].boolValue; +} + ++ (void)setAutoLogAppEventsEnabled:(BOOL)autoLogAppEventsEnabled +{ + [self _setAutoLogAppEventsEnabled:@(autoLogAppEventsEnabled)]; +} + ++ (BOOL)isAdvertiserIDCollectionEnabled +{ + return [self _advertiserIDCollectionEnabled].boolValue; +} + ++ (void)setAdvertiserIDCollectionEnabled:(BOOL)advertiserIDCollectionEnabled +{ + [self _setAdvertiserIDCollectionEnabled:@(advertiserIDCollectionEnabled)]; +} + ++ (BOOL)shouldLimitEventAndDataUsage +{ + NSNumber *storedValue = [[NSUserDefaults standardUserDefaults] objectForKey:FBSDKSettingsLimitEventAndDataUsage]; + if (storedValue == nil) { + return NO; + } + return storedValue.boolValue; +} + ++ (void)setLimitEventAndDataUsage:(BOOL)limitEventAndDataUsage +{ + NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; + [defaults setObject:@(limitEventAndDataUsage) forKey:FBSDKSettingsLimitEventAndDataUsage]; + [defaults synchronize]; +} + ++ (NSSet *)loggingBehaviors +{ + if (!g_loggingBehaviors) { + NSArray *bundleLoggingBehaviors = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"FacebookLoggingBehavior"]; + if (bundleLoggingBehaviors) { + g_loggingBehaviors = [[NSMutableSet alloc] initWithArray:bundleLoggingBehaviors]; + } else { + // Establish set of default enabled logging behaviors. You can completely disable logging by + // specifying an empty array for FacebookLoggingBehavior in your Info.plist. + g_loggingBehaviors = [[NSMutableSet alloc] initWithObjects:FBSDKLoggingBehaviorDeveloperErrors, nil]; + } + } + return [g_loggingBehaviors copy]; +} + ++ (void)setLoggingBehaviors:(NSSet *)loggingBehaviors +{ + if (![g_loggingBehaviors isEqualToSet:loggingBehaviors]) { + g_loggingBehaviors = [loggingBehaviors mutableCopy]; + + [self updateGraphAPIDebugBehavior]; + } +} + ++ (void)enableLoggingBehavior:(FBSDKLoggingBehavior)loggingBehavior +{ + if (!g_loggingBehaviors) { + [self loggingBehaviors]; + } + [g_loggingBehaviors addObject:loggingBehavior]; + [self updateGraphAPIDebugBehavior]; +} + ++ (void)disableLoggingBehavior:(FBSDKLoggingBehavior)loggingBehavior +{ + if (!g_loggingBehaviors) { + [self loggingBehaviors]; + } + [g_loggingBehaviors removeObject:loggingBehavior]; + [self updateGraphAPIDebugBehavior]; +} + +#pragma mark - Readonly Configuration Settings + ++ (NSString *)sdkVersion +{ + return FBSDK_VERSION_STRING; +} + +#pragma mark - Internal + ++ (NSObject *)accessTokenCache +{ + return g_tokenCache; +} + ++ (void)setAccessTokenCache:(NSObject *)cache +{ + if (g_tokenCache != cache) { + g_tokenCache = cache; + } +} + ++ (NSString *)userAgentSuffix +{ + return g_userAgentSuffix; +} + ++ (void)setUserAgentSuffix:(NSString *)suffix +{ + if (![g_userAgentSuffix isEqualToString:suffix]) { + g_userAgentSuffix = suffix; + } +} + ++ (void)setGraphAPIVersion:(NSString *)version +{ + if (![g_defaultGraphAPIVersion isEqualToString:version]) + { + g_defaultGraphAPIVersion = version; + } +} + ++ (NSString *)defaultGraphAPIVersion +{ + return FBSDK_TARGET_PLATFORM_VERSION; +} + ++ (NSString *)graphAPIVersion +{ + return g_defaultGraphAPIVersion ?: self.defaultGraphAPIVersion; +} + ++ (NSNumber *)appEventSettingsForPlistKey:(NSString *)plistKey + defaultValue:(NSNumber *)defaultValue +{ + return [[[NSBundle mainBundle] objectForInfoDictionaryKey:plistKey] copy] ?: defaultValue; +} + ++ (NSNumber *)appEventSettingsForUserDefaultsKey:(NSString *)userDefaultsKey + defaultValue:(NSNumber *)defaultValue +{ + NSData *data = [[NSUserDefaults standardUserDefaults] objectForKey:userDefaultsKey]; + if ([data isKindOfClass:[NSNumber class]]) { + return (NSNumber *)data; + } + return defaultValue; +} + ++ (void)logWarnings +{ + NSBundle *mainBundle = [NSBundle mainBundle]; + // Log warnings for App Event Flags + if (![mainBundle objectForInfoDictionaryKey:@"FacebookAutoLogAppEventsEnabled"]) { + NSLog(autoLogAppEventsEnabledNotSetWarning); + } + if (![mainBundle objectForInfoDictionaryKey:@"FacebookAdvertiserIDCollectionEnabled"]) { + NSLog(advertiserIDCollectionEnabledNotSetWarning); + } + if (![FBSDKSettings isAdvertiserIDCollectionEnabled]) { + NSLog(advertiserIDCollectionEnabledFalseWarning); + } +} + ++ (void)_logIfSDKSettingsChanged +{ + NSInteger bitmask = 0; + NSInteger bit = 0; + bitmask |= ([FBSDKSettings isAutoInitEnabled] ? 1 : 0) << bit++; + bitmask |= ([FBSDKSettings isAutoLogAppEventsEnabled] ? 1 : 0) << bit++; + bitmask |= ([FBSDKSettings isAdvertiserIDCollectionEnabled] ? 1 : 0) << bit++; + + NSInteger previousBitmask = [[NSUserDefaults standardUserDefaults] integerForKey:FBSDKSettingsBitmask]; + if (previousBitmask != bitmask) { + [[NSUserDefaults standardUserDefaults] setInteger:bitmask forKey:FBSDKSettingsBitmask]; + + NSArray *keys = @[@"FacebookAutoInitEnabled", + @"FacebookAutoLogAppEventsEnabled", + @"FacebookAdvertiserIDCollectionEnabled"]; + NSArray *defaultValues = @[@YES, @YES, @YES]; + NSInteger initialBitmask = 0; + NSInteger usageBitmask = 0; + for (int i = 0; i < keys.count; i++) { + NSNumber *plistValue = [[NSBundle mainBundle] objectForInfoDictionaryKey:keys[i]]; + BOOL initialValue = [(plistValue ?: defaultValues[i]) boolValue]; + initialBitmask |= (initialValue ? 1 : 0) << i; + usageBitmask |= (plistValue != nil ? 1 : 0) << i; + } + [FBSDKAppEvents logInternalEvent:@"fb_sdk_settings_changed" + parameters:@{@"usage": @(usageBitmask), + @"initial": @(initialBitmask), + @"previous":@(previousBitmask), + @"current": @(bitmask)} + isImplicitlyLogged:YES]; + } +} + +#pragma mark - Internal - Graph API Debug + ++ (void)updateGraphAPIDebugBehavior +{ + // Enable Warnings everytime Info is enabled + if ([g_loggingBehaviors containsObject:FBSDKLoggingBehaviorGraphAPIDebugInfo] + && ![g_loggingBehaviors containsObject:FBSDKLoggingBehaviorGraphAPIDebugWarning]) { + [g_loggingBehaviors addObject:FBSDKLoggingBehaviorGraphAPIDebugWarning]; + } +} + ++ (NSString *)graphAPIDebugParamValue +{ + if ([[self loggingBehaviors] containsObject:FBSDKLoggingBehaviorGraphAPIDebugInfo]) { + return @"info"; + } else if ([[self loggingBehaviors] containsObject:FBSDKLoggingBehaviorGraphAPIDebugWarning]) { + return @"warning"; + } + + return nil; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKTestUsersManager.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKTestUsersManager.h new file mode 100644 index 0000000000000..8b5ed3ea3d9dc --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKTestUsersManager.h @@ -0,0 +1,110 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import "FBSDKConstants.h" + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKAccessToken; + +/** + Callback block for returning an array of FBSDKAccessToken instances (and possibly `NSNull` instances); or an error. + */ +typedef void (^FBSDKAccessTokensBlock)(NSArray *tokens, NSError *_Nullable error) +NS_SWIFT_NAME(AccessTokensBlock); + + +/** + Provides methods for managing test accounts for testing Facebook integration. + + + Facebook allows developers to create test accounts for testing their applications' + Facebook integration (see https://developers.facebook.com/docs/test_users/). This class + simplifies use of these accounts for writing tests. It is not designed for use in + production application code. + + This class will make Graph API calls on behalf of your app to manage test accounts and requires + an app id and app secret. You will typically use this class to write unit or integration tests. + Make sure you NEVER include your app secret in your production app. + */ +NS_SWIFT_NAME(TestUsersManager) +@interface FBSDKTestUsersManager : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + construct or return the shared instance + @param appID the Facebook app id + @param appSecret the Facebook app secret + */ ++ (instancetype)sharedInstanceForAppID:(NSString *)appID appSecret:(NSString *)appSecret +NS_SWIFT_NAME(shared(forAppID:appSecret:)); + +/** + retrieve FBSDKAccessToken instances for test accounts with the specific permissions. + @param arraysOfPermissions an array of permissions sets, such as @[ [NSSet setWithObject:@"email"], [NSSet setWithObject:@"user_birthday"]] + if you needed two test accounts with email and birthday permissions, respectively. You can pass in empty nested sets + if you need two arbitrary test accounts. + @param createIfNotFound if YES, new test accounts are created if no test accounts existed that fit the permissions + requirement + @param handler the callback to invoke which will return an array of `FBAccessTokenData` instances or an `NSError`. + If param `createIfNotFound` is NO, the array may contain `[NSNull null]` instances. + + + If you are requesting test accounts with differing number of permissions, try to order + `arrayOfPermissionsArrays` so that the most number of permissions come first to minimize creation of new + test accounts. + */ +- (void)requestTestAccountTokensWithArraysOfPermissions:(NSArray *> *)arraysOfPermissions + createIfNotFound:(BOOL)createIfNotFound + completionHandler:(nullable FBSDKAccessTokensBlock)handler +NS_SWIFT_NAME(requestTestAccountTokens(withPermissions:createIfNotFound:completionHandler:)); + +/** + add a test account with the specified permissions + @param permissions the set of permissions, e.g., [NSSet setWithObjects:@"email", @"user_friends"] + @param handler the callback handler + */ +- (void)addTestAccountWithPermissions:(NSSet *)permissions + completionHandler:(nullable FBSDKAccessTokensBlock)handler; + +/** + remove a test account for the given user id + @param userId the user id + @param handler the callback handler + */ +- (void)removeTestAccount:(NSString *)userId + completionHandler:(nullable FBSDKErrorBlock)handler; + +/** + Make two test users friends with each other. + @param first the token of the first user + @param second the token of the second user + @param callback the callback handler + */ +- (void)makeFriendsWithFirst:(FBSDKAccessToken *)first + second:(FBSDKAccessToken *)second + callback:(nullable FBSDKErrorBlock)callback +NS_SWIFT_NAME(makeFriends(first:second:callback:)); + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKTestUsersManager.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKTestUsersManager.m new file mode 100644 index 0000000000000..b5ea95a14dfbc --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKTestUsersManager.m @@ -0,0 +1,329 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKTestUsersManager.h" + +#import + +static NSString *const kFBGraphAPITestUsersPathFormat = @"%@/accounts/test-users"; +static NSString *const kAccountsDictionaryTokenKey = @"access_token"; +static NSString *const kAccountsDictionaryPermissionsKey = @"permissions"; +static NSMutableDictionary *gInstancesDictionary; + +@interface FBSDKTestUsersManager() +- (instancetype)initWithAppID:(NSString *)appID appSecret:(NSString *)appSecret NS_DESIGNATED_INITIALIZER; +@end + +@implementation FBSDKTestUsersManager +{ + NSString *_appID; + NSString *_appSecret; + // dictionary with format like: + // { user_id : { kAccountsDictionaryTokenKey : "token", + // kAccountsDictionaryPermissionsKey : [ permissions ] } + NSMutableDictionary *_accounts; +} + +- (instancetype)initWithAppID:(NSString *)appID appSecret:(NSString *)appSecret { + if ((self = [super init])) { + _appID = [appID copy]; + _appSecret = [appSecret copy]; + _accounts = [NSMutableDictionary dictionary]; + } + return self; +} + ++ (instancetype)sharedInstanceForAppID:(NSString *)appID appSecret:(NSString *)appSecret { + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + gInstancesDictionary = [NSMutableDictionary dictionary]; + }); + + NSString *instanceKey = [NSString stringWithFormat:@"%@|%@", appID, appSecret]; + if (!gInstancesDictionary[instanceKey]) { + gInstancesDictionary[instanceKey] = [[FBSDKTestUsersManager alloc] initWithAppID:appID appSecret:appSecret]; + } + return gInstancesDictionary[instanceKey]; +} + +- (void)requestTestAccountTokensWithArraysOfPermissions:(NSArray *> *)arraysOfPermissions + createIfNotFound:(BOOL)createIfNotFound + completionHandler:(FBSDKAccessTokensBlock)handler { + arraysOfPermissions = arraysOfPermissions ?: @[[NSSet set]]; + + // wrap work in a block so that we can chain it to after a fetch of existing accounts if we need to. + void (^helper)(NSError *) = ^(NSError *error){ + if (error) { + if (handler) { + handler(@[], error); + } + return; + } + NSMutableArray *tokenDatum = [NSMutableArray arrayWithCapacity:arraysOfPermissions.count]; + NSMutableSet *collectedUserIds = [NSMutableSet setWithCapacity:arraysOfPermissions.count]; + __block BOOL canInvokeHandler = YES; + __weak id weakSelf = self; + [arraysOfPermissions enumerateObjectsUsingBlock:^(NSSet *desiredPermissions, NSUInteger idx, BOOL *stop) { + NSArray* userIdAndTokenPair = [self userIdAndTokenOfExistingAccountWithPermissions:desiredPermissions skip:collectedUserIds]; + if (!userIdAndTokenPair) { + if (createIfNotFound) { + [self addTestAccountWithPermissions:desiredPermissions + completionHandler:^(NSArray *tokens, NSError *addError) { + if (addError) { + if (handler) { + handler(@[], addError); + } + } else { + [weakSelf requestTestAccountTokensWithArraysOfPermissions:arraysOfPermissions + createIfNotFound:createIfNotFound + completionHandler:handler]; + } + }]; + // stop the enumeration (ane flag so that callback to addTestAccount* will resolve our handler now). + canInvokeHandler = NO; + *stop = YES; + return; + } else { + [tokenDatum addObject:[NSNull null]]; + } + } else { + NSString *userId = userIdAndTokenPair[0]; + NSString *tokenString = userIdAndTokenPair[1]; + [collectedUserIds addObject:userId]; + [tokenDatum addObject:[self tokenDataForTokenString:tokenString + permissions:desiredPermissions + userId:userId]]; + } + }]; + + if (canInvokeHandler && handler) { + handler(tokenDatum, nil); + } + }; + if (_accounts.count == 0) { + [self fetchExistingTestAccountsWithAfterCursor:nil handler:helper]; + } else { + helper(NULL); + } +} + +- (void)addTestAccountWithPermissions:(NSSet *)permissions + completionHandler:(FBSDKAccessTokensBlock)handler { + NSDictionary *params = @{ + @"installed" : @"true", + @"permissions" : [permissions.allObjects componentsJoinedByString:@","], + @"access_token" : self.appAccessToken + }; + FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc] initWithGraphPath:[NSString stringWithFormat:kFBGraphAPITestUsersPathFormat, _appID] + parameters:params + tokenString:[self appAccessToken] + version:nil + HTTPMethod:FBSDKHTTPMethodPOST]; + [request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) { + if (error) { + if (handler) { + handler(@[], error); + } + } else { + NSMutableDictionary *accountData = [NSMutableDictionary dictionaryWithCapacity:2]; + accountData[kAccountsDictionaryPermissionsKey] = [NSSet setWithSet:permissions]; + accountData[kAccountsDictionaryTokenKey] = result[@"access_token"]; + self->_accounts[result[@"id"]] = accountData; + + if (handler) { + FBSDKAccessToken *token = [self tokenDataForTokenString:accountData[kAccountsDictionaryTokenKey] + permissions:permissions + userId:result[@"id"]]; + handler(@[token], nil); + } + } + }]; +} + +- (void)makeFriendsWithFirst:(FBSDKAccessToken *)first second:(FBSDKAccessToken *)second callback:(FBSDKErrorBlock)callback +{ + __block int expectedCount = 2; + void (^complete)(NSError *) = ^(NSError *error) { + // ignore if they're already friends or pending request + if ([error.userInfo[FBSDKGraphRequestErrorGraphErrorCodeKey] integerValue] == 522 || + [error.userInfo[FBSDKGraphRequestErrorGraphErrorCodeKey] integerValue] == 520) { + error = nil; + } + if (--expectedCount == 0 || error) { + callback(error); + } + }; + FBSDKGraphRequest *one = [[FBSDKGraphRequest alloc] initWithGraphPath:[NSString stringWithFormat:@"%@/friends/%@", first.userID, second.userID] + parameters:@{} + tokenString:first.tokenString + version:nil + HTTPMethod:FBSDKHTTPMethodPOST]; + FBSDKGraphRequest *two = [[FBSDKGraphRequest alloc] initWithGraphPath:[NSString stringWithFormat:@"%@/friends/%@", second.userID, first.userID] + parameters:@{} + tokenString:second.tokenString + version:nil + HTTPMethod:FBSDKHTTPMethodPOST]; + FBSDKGraphRequestConnection *conn = [[FBSDKGraphRequestConnection alloc] init]; + [conn addRequest:one + batchEntryName:@"first" + completionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) { + complete(error); + }]; + [conn addRequest:two + batchParameters:@{ @"depends_on" : @"first"} + completionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) { + complete(error); + }]; + [conn start]; +} + +- (void)removeTestAccount:(NSString *)userId completionHandler:(FBSDKErrorBlock)handler { + FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc] initWithGraphPath:userId + parameters:@{} + tokenString:self.appAccessToken + version:nil + HTTPMethod:@"DELETE"]; + [request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) { + if (handler) { + handler(error); + } + }]; + [_accounts removeObjectForKey:userId]; +} + +#pragma mark - private methods +- (FBSDKAccessToken *)tokenDataForTokenString:(NSString *)tokenString permissions:(NSSet *)permissions userId:(NSString *)userId{ + return [[FBSDKAccessToken alloc] initWithTokenString:tokenString + permissions:permissions.allObjects + declinedPermissions:@[] + expiredPermissions:@[] + appID:_appID + userID:userId + expirationDate:nil + refreshDate:nil + dataAccessExpirationDate:nil]; +} + +- (NSArray *)userIdAndTokenOfExistingAccountWithPermissions:(NSSet *)permissions skip:(NSSet *)setToSkip { + __block NSString *userId = nil; + __block NSString *token = nil; + + [_accounts enumerateKeysAndObjectsUsingBlock:^(NSString *key, NSDictionary *accountData, BOOL *stop) { + if ([setToSkip containsObject:key]) { + return; + } + NSSet *accountPermissions = accountData[kAccountsDictionaryPermissionsKey]; + if ([permissions isSubsetOfSet:accountPermissions]) { + token = accountData[kAccountsDictionaryTokenKey]; + userId = key; + *stop = YES; + } + }]; + if (userId && token) { + return @[userId, token]; + } else { + return nil; + } +} + +- (NSString *)appAccessToken { + return [NSString stringWithFormat:@"%@|%@", _appID, _appSecret]; +} + +- (void)fetchExistingTestAccountsWithAfterCursor:(NSString *)after handler:(FBSDKErrorBlock)handler { + FBSDKGraphRequestConnection *connection = [[FBSDKGraphRequestConnection alloc] init]; + FBSDKGraphRequest *requestForAccountIds = [[FBSDKGraphRequest alloc] initWithGraphPath:[NSString stringWithFormat:kFBGraphAPITestUsersPathFormat, _appID] + parameters:@{@"limit" : @"50", + @"after" : after ?: @"", + @"fields": @"" + } + tokenString:self.appAccessToken + version:nil + HTTPMethod:FBSDKHTTPMethodGET]; + __block NSString *afterCursor = nil; + __block NSInteger expectedTestAccounts = 0; + FBSDKGraphRequestConnection *permissionConnection = [[FBSDKGraphRequestConnection alloc] init]; + [connection addRequest:requestForAccountIds completionHandler:^(FBSDKGraphRequestConnection *innerConnection, id result, NSError *error) { + if (error) { + if (handler) { + handler(error); + } + // on errors, clear out accounts since it may be in a bad state + [self->_accounts removeAllObjects]; + return; + } else { + for (NSDictionary *account in result[@"data"]) { + NSString *userId = account[@"id"]; + NSString *token = account[@"access_token"]; + if (userId && token) { + self->_accounts[userId] = [NSMutableDictionary dictionaryWithCapacity:2]; + self->_accounts[userId][kAccountsDictionaryTokenKey] = token; + expectedTestAccounts++; + [permissionConnection addRequest:[[FBSDKGraphRequest alloc] initWithGraphPath:[NSString stringWithFormat:@"%@?fields=permissions", userId] + parameters:@{} + tokenString:self.appAccessToken + version:nil + HTTPMethod:FBSDKHTTPMethodGET] + completionHandler:^(FBSDKGraphRequestConnection *innerConnection2, id innerResult, NSError *innerError) { + if (self->_accounts.count == 0) { + // indicates an earlier error that was already passed to handler, so just short circuit. + return; + } + if (innerError) { + if (handler) { + handler(innerError); + } + [self->_accounts removeAllObjects]; + return; + } else { + NSMutableSet *grantedPermissions = [NSMutableSet set]; + NSArray *resultPermissionsDictionaries = innerResult[@"permissions"][@"data"]; + [resultPermissionsDictionaries enumerateObjectsUsingBlock:^(NSDictionary *obj, NSUInteger idx, BOOL *stop) { + if ([obj[@"status"] isEqualToString:@"granted"]) { + [grantedPermissions addObject:obj[@"permission"]]; + } + }]; + self->_accounts[userId][kAccountsDictionaryPermissionsKey] = grantedPermissions; + } + expectedTestAccounts--; + if (!expectedTestAccounts) { + if (afterCursor) { + [self fetchExistingTestAccountsWithAfterCursor:afterCursor handler:handler]; + } else if (handler) { + handler(nil); + } + } + } + ]; + } + } + afterCursor = result[@"paging"][@"cursors"][@"after"]; + } + + if (expectedTestAccounts) { + // finished fetching ids and tokens, now kick off the request for all the permissions + [permissionConnection start]; + } else { + if (handler) { + handler(nil); + } + } + }]; + [connection start]; +} +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKURL.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKURL.h new file mode 100644 index 0000000000000..c7b0b0e1496c5 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKURL.h @@ -0,0 +1,93 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKAppLink; + +/** + Provides a set of utilities for working with NSURLs, such as parsing of query parameters + and handling for App Link requests. + */ +NS_SWIFT_NAME(AppLinkURL) +@interface FBSDKURL : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Creates a link target from a raw URL. + On success, this posts the FBSDKAppLinkParseEventName measurement event. If you are constructing the FBSDKURL within your application delegate's + application:openURL:sourceApplication:annotation:, you should instead use URLWithInboundURL:sourceApplication: + to support better FBSDKMeasurementEvent notifications + @param url The instance of `NSURL` to create FBSDKURL from. + */ ++ (instancetype)URLWithURL:(NSURL *)url +NS_SWIFT_NAME(init(url:)); + +/** + Creates a link target from a raw URL received from an external application. This is typically called from the app delegate's + application:openURL:sourceApplication:annotation: and will post the FBSDKAppLinkNavigateInEventName measurement event. + @param url The instance of `NSURL` to create FBSDKURL from. + @param sourceApplication the bundle ID of the app that is requesting your app to open the URL. The same sourceApplication in application:openURL:sourceApplication:annotation: + */ ++ (instancetype)URLWithInboundURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication +NS_SWIFT_NAME(init(inboundURL:sourceApplication:)); + +/** + Gets the target URL. If the link is an App Link, this is the target of the App Link. + Otherwise, it is the url that created the target. + */ +@property (nonatomic, strong, readonly) NSURL *targetURL; + +/** + Gets the query parameters for the target, parsed into an NSDictionary. + */ +@property (nonatomic, strong, readonly) NSDictionary *targetQueryParameters; + +/** + If this link target is an App Link, this is the data found in al_applink_data. + Otherwise, it is nil. + */ +@property (nonatomic, strong, readonly, nullable) NSDictionary *appLinkData; + +/** + If this link target is an App Link, this is the data found in extras. + */ +@property (nonatomic, strong, readonly, nullable) NSDictionary *appLinkExtras; + +/** + The App Link indicating how to navigate back to the referer app, if any. + */ +@property (nonatomic, strong, readonly, nullable) FBSDKAppLink *appLinkReferer; + +/** + The URL that was used to create this FBSDKURL. + */ +@property (nonatomic, strong, readonly) NSURL *inputURL; + +/** + The query parameters of the inputURL, parsed into an NSDictionary. + */ +@property (nonatomic, strong, readonly) NSDictionary *inputQueryParameters; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKURL.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKURL.m new file mode 100644 index 0000000000000..50d584cedb9d6 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKURL.m @@ -0,0 +1,152 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKURL_Internal.h" + +#import "FBSDKAppLinkTarget.h" +#import "FBSDKAppLink_Internal.h" +#import "FBSDKMeasurementEvent_Internal.h" + +@implementation FBSDKURL + +- (instancetype)initWithURL:(NSURL *)url forOpenInboundURL:(BOOL)forOpenURLEvent sourceApplication:(NSString *)sourceApplication forRenderBackToReferrerBar:(BOOL)forRenderBackToReferrerBar { + self = [super init]; + if (!self) return nil; + + _inputURL = url; + _targetURL = url; + + // Parse the query string parameters for the base URL + NSDictionary *baseQuery = [FBSDKURL queryParametersForURL:url]; + _inputQueryParameters = baseQuery; + _targetQueryParameters = baseQuery; + + // Check for applink_data + NSString *appLinkDataString = baseQuery[FBSDKAppLinkDataParameterName]; + if (appLinkDataString) { + // Try to parse the JSON + NSError *error = nil; + NSDictionary *applinkData = + [NSJSONSerialization JSONObjectWithData:[appLinkDataString dataUsingEncoding:NSUTF8StringEncoding] + options:0 + error:&error]; + if (!error && [applinkData isKindOfClass:[NSDictionary class]]) { + // If the version is not specified, assume it is 1. + NSString *version = applinkData[FBSDKAppLinkVersionKeyName] ?: @"1.0"; + NSString *target = applinkData[FBSDKAppLinkTargetKeyName]; + if ([version isKindOfClass:[NSString class]] && + [version isEqual:FBSDKAppLinkVersion]) { + // There's applink data! The target should actually be the applink target. + _appLinkData = applinkData; + id applinkExtras = applinkData[FBSDKAppLinkExtrasKeyName]; + if (applinkExtras && [applinkExtras isKindOfClass:[NSDictionary class]]) { + _appLinkExtras = applinkExtras; + } + _targetURL = ([target isKindOfClass:[NSString class]] ? [NSURL URLWithString:target] : url); + _targetQueryParameters = [FBSDKURL queryParametersForURL:_targetURL]; + + NSDictionary *refererAppLink = _appLinkData[FBSDKAppLinkRefererAppLink]; + NSString *refererURLString = refererAppLink[FBSDKAppLinkRefererUrl]; + NSString *refererAppName = refererAppLink[FBSDKAppLinkRefererAppName]; + + if (refererURLString && refererAppName) { + FBSDKAppLinkTarget *appLinkTarget = [FBSDKAppLinkTarget appLinkTargetWithURL:[NSURL URLWithString:refererURLString] + appStoreId:nil + appName:refererAppName]; + _appLinkReferer = [FBSDKAppLink appLinkWithSourceURL:[NSURL URLWithString:refererURLString] + targets:@[ appLinkTarget ] + webURL:nil + isBackToReferrer:YES]; + } + + // Raise Measurement Event + NSString *const EVENT_YES_VAL = @"1"; + NSString *const EVENT_NO_VAL = @"0"; + NSMutableDictionary *logData = [[NSMutableDictionary alloc] init]; + logData[@"version"] = version; + if (refererURLString) { + logData[@"refererURL"] = refererURLString; + } + if (refererAppName) { + logData[@"refererAppName"] = refererAppName; + } + if (sourceApplication) { + logData[@"sourceApplication"] = sourceApplication; + } + if (_targetURL.absoluteString) { + logData[@"targetURL"] = _targetURL.absoluteString; + } + if (_inputURL.absoluteString) { + logData[@"inputURL"] = _inputURL.absoluteString; + } + if (_inputURL.scheme) { + logData[@"inputURLScheme"] = _inputURL.scheme; + } + logData[@"forRenderBackToReferrerBar"] = forRenderBackToReferrerBar ? EVENT_YES_VAL : EVENT_NO_VAL; + logData[@"forOpenUrl"] = forOpenURLEvent ? EVENT_YES_VAL : EVENT_NO_VAL; + [FBSDKMeasurementEvent postNotificationForEventName:FBSDKAppLinkParseEventName args:logData]; + if (forOpenURLEvent) { + [FBSDKMeasurementEvent postNotificationForEventName:FBSDKAppLinkNavigateInEventName args:logData]; + } + } + } + } + + return self; +} + ++ (instancetype)URLWithURL:(NSURL *)url { + return [[FBSDKURL alloc] initWithURL:url forOpenInboundURL:NO sourceApplication:nil forRenderBackToReferrerBar:NO]; +} + ++ (instancetype)URLWithInboundURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication { + return [[FBSDKURL alloc] initWithURL:url forOpenInboundURL:YES sourceApplication:sourceApplication forRenderBackToReferrerBar:NO]; +} + ++ (instancetype)URLForRenderBackToReferrerBarURL:(NSURL *)url { + return [[FBSDKURL alloc] initWithURL:url forOpenInboundURL:NO sourceApplication:nil forRenderBackToReferrerBar:YES]; +} + ++ (NSString *)decodeURLString:(NSString *)string { + return (NSString *)CFBridgingRelease(CFURLCreateStringByReplacingPercentEscapes(NULL, + (CFStringRef)string, + CFSTR(""))); +} + ++ (NSDictionary *)queryParametersForURL:(NSURL *)url { + NSMutableDictionary *parameters = [NSMutableDictionary dictionary]; + NSString *query = url.query; + if ([query isEqualToString:@""]) { + return @{}; + } + NSArray *queryComponents = [query componentsSeparatedByString:@"&"]; + for (NSString *component in queryComponents) { + NSRange equalsLocation = [component rangeOfString:@"="]; + if (equalsLocation.location == NSNotFound) { + // There's no equals, so associate the key with NSNull + parameters[[self decodeURLString:component]] = [NSNull null]; + } else { + NSString *key = [self decodeURLString:[component substringToIndex:equalsLocation.location]]; + NSString *value = [self decodeURLString:[component substringFromIndex:equalsLocation.location + 1]]; + parameters[key] = value; + } + } + return [NSDictionary dictionaryWithDictionary:parameters]; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKUtility.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKUtility.h new file mode 100644 index 0000000000000..13c4a5dd90737 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKUtility.h @@ -0,0 +1,91 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Class to contain common utility methods. + */ +NS_SWIFT_NAME(Utility) +@interface FBSDKUtility : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Parses a query string into a dictionary. + @param queryString The query string value. + @return A dictionary with the key/value pairs. + */ ++ (NSDictionary *)dictionaryWithQueryString:(NSString *)queryString +NS_SWIFT_NAME(dictionary(withQuery:)); + +/** + Constructs a query string from a dictionary. + @param dictionary The dictionary with key/value pairs for the query string. + @param errorRef If an error occurs, upon return contains an NSError object that describes the problem. + @return Query string representation of the parameters. + */ ++ (NSString *)queryStringWithDictionary:(NSDictionary *)dictionary + error:(NSError **)errorRef +NS_SWIFT_NAME(query(from:)) +__attribute__((swift_error(nonnull_error))); + +/** + Decodes a value from an URL. + @param value The value to decode. + @return The decoded value. + */ ++ (NSString *)URLDecode:(NSString *)value +NS_SWIFT_NAME(decode(urlString:)); + +/** + Encodes a value for an URL. + @param value The value to encode. + @return The encoded value. + */ ++ (NSString *)URLEncode:(NSString *)value +NS_SWIFT_NAME(encode(urlString:)); + +/** + Creates a timer using Grand Central Dispatch. + @param interval The interval to fire the timer, in seconds. + @param block The code block to execute when timer is fired. + @return The dispatch handle. + */ ++ (dispatch_source_t)startGCDTimerWithInterval:(double)interval block:(dispatch_block_t)block; + +/** + Stop a timer that was started by startGCDTimerWithInterval. + @param timer The dispatch handle received from startGCDTimerWithInterval. + */ ++ (void)stopGCDTimer:(dispatch_source_t)timer; + +/** + Get SHA256 hased string of NSString/NSData + + @param input The data that needs to be hashed, it could be NSString or NSData. + */ ++ (nullable NSString *)SHA256Hash:(nullable NSObject *)input +NS_SWIFT_NAME(sha256Hash(_:)); + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKUtility.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKUtility.m new file mode 100644 index 0000000000000..8a32c665e0bfd --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKUtility.m @@ -0,0 +1,97 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKUtility.h" + +#import + +#import "FBSDKInternalUtility.h" + +@implementation FBSDKUtility + ++ (NSDictionary *)dictionaryWithQueryString:(NSString *)queryString +{ + return [FBSDKBasicUtility dictionaryWithQueryString:queryString]; +} + ++ (NSString *)queryStringWithDictionary:(NSDictionary *)dictionary error:(NSError **)errorRef +{ + return [FBSDKBasicUtility queryStringWithDictionary:dictionary error:errorRef invalidObjectHandler:NULL]; +} + ++ (NSString *)URLDecode:(NSString *)value +{ + return [FBSDKBasicUtility URLDecode:value]; +} + ++ (NSString *)URLEncode:(NSString *)value +{ + return [FBSDKBasicUtility URLEncode:value]; +} + ++ (dispatch_source_t)startGCDTimerWithInterval:(double)interval block:(dispatch_block_t)block +{ + dispatch_source_t timer = dispatch_source_create(DISPATCH_SOURCE_TYPE_TIMER, // source type + 0, // handle + 0, // mask + dispatch_get_main_queue()); // queue + + dispatch_source_set_timer(timer, // dispatch source + dispatch_time(DISPATCH_TIME_NOW, interval * NSEC_PER_SEC), // start + interval * NSEC_PER_SEC, // interval + 0 * NSEC_PER_SEC); // leeway + + dispatch_source_set_event_handler(timer, block); + + dispatch_resume(timer); + + return timer; +} + ++ (void)stopGCDTimer:(dispatch_source_t)timer +{ + if (timer) { + dispatch_source_cancel(timer); + } +} + ++ (NSString *)SHA256Hash:(NSObject *)input +{ + NSData *data = nil; + + if ([input isKindOfClass:[NSData class]]) { + data = (NSData *)input; + } else if ([input isKindOfClass:[NSString class]]) { + data = [(NSString *)input dataUsingEncoding:NSUTF8StringEncoding]; + } + + if (!data) { + return nil; + } + + uint8_t digest[CC_SHA256_DIGEST_LENGTH]; + CC_SHA256(data.bytes, (CC_LONG)data.length, digest); + NSMutableString *hashed = [NSMutableString stringWithCapacity:CC_SHA256_DIGEST_LENGTH * 2]; + for (int i = 0; i < CC_SHA256_DIGEST_LENGTH; i++) { + [hashed appendFormat:@"%02x", digest[i]]; + } + + return [hashed copy]; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Base64/FBSDKBase64.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Base64/FBSDKBase64.h new file mode 100644 index 0000000000000..ccc976e3fa742 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Base64/FBSDKBase64.h @@ -0,0 +1,52 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_SWIFT_NAME(Base64) +@interface FBSDKBase64 : NSObject + +/** + Decodes a base-64 encoded string. + @param string The base-64 encoded string. + @return NSData containing the decoded bytes. + */ ++ (NSData *)decodeAsData:(NSString *)string; + +/** + Decodes a base-64 encoded string into a string. + @param string The base-64 encoded string. + @return NSString with the decoded UTF-8 value. + */ ++ (NSString *)decodeAsString:(NSString *)string; + +/** + Encodes data into a string. + @param data The data to be encoded. + @return The base-64 encoded string. + */ ++ (NSString *)encodeData:(NSData *)data; + +/** + Encodes string into a base-64 representation. + @param string The string to be encoded. + @return The base-64 encoded string. + */ ++ (NSString *)encodeString:(NSString *)string; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Base64/FBSDKBase64.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Base64/FBSDKBase64.m new file mode 100644 index 0000000000000..dd81d5a3a1449 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Base64/FBSDKBase64.m @@ -0,0 +1,99 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKBase64.h" + +@implementation FBSDKBase64 + +static FBSDKBase64 *_decoder; +static FBSDKBase64 *_encoder; + +#pragma mark - Class Methods + ++ (void)initialize +{ + if (self == [FBSDKBase64 class]) { + _decoder = [[FBSDKBase64 alloc] init]; + _encoder = [[FBSDKBase64 alloc] init]; + } +} + ++ (NSData *)decodeAsData:(NSString *)string +{ + return [_decoder decodeAsData:string]; +} + ++ (NSString *)decodeAsString:(NSString *)string +{ + return [_decoder decodeAsString:string]; +} + ++ (NSString *)encodeData:(NSData *)data +{ + return [_encoder encodeData:data]; +} + ++ (NSString *)encodeString:(NSString *)string +{ + return [_encoder encodeString:string]; +} + +#pragma mark - Object Lifecycle + +#pragma mark - Implementation Methods + +- (NSData *)decodeAsData:(NSString *)string +{ + if (!string) { + return nil; + } + // This padding will be appended before stripping unknown characters, so if there are unknown characters of count % 4 + // it will not be able to decode. Since we assume valid base64 data, we will take this as is. + int needPadding = string.length % 4; + if (needPadding > 0) { + needPadding = 4 - needPadding; + string = [string stringByPaddingToLength:string.length+needPadding withString:@"=" startingAtIndex:0]; + } + + return [[NSData alloc] initWithBase64EncodedString:string options:NSDataBase64DecodingIgnoreUnknownCharacters]; +} + +- (NSString *)decodeAsString:(NSString *)string +{ + NSData *data = [self decodeAsData:string]; + if (!data) { + return nil; + } + return [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]; +} + +- (NSString *)encodeData:(NSData *)data +{ + if (!data) { + return nil; + } + + return [data base64EncodedStringWithOptions:0]; +} + +- (NSString *)encodeString:(NSString *)string +{ + return [self encodeData:[string dataUsingEncoding:NSUTF8StringEncoding]]; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPI.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPI.h new file mode 100644 index 0000000000000..b94cd470cb409 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPI.h @@ -0,0 +1,58 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import +#import + +#import + +#import "FBSDKBridgeAPIProtocol.h" +#import "FBSDKBridgeAPIProtocolType.h" +#import "FBSDKBridgeAPIRequest.h" +#import "FBSDKBridgeAPIResponse.h" +#import "FBSDKURLOpening.h" + +NS_ASSUME_NONNULL_BEGIN + +typedef void (^FBSDKBridgeAPIResponseBlock)(FBSDKBridgeAPIResponse *response) +NS_SWIFT_NAME(BridgeAPIResponseBlock); + +@interface FBSDKBridgeAPI : NSObject + +- (void)openBridgeAPIRequest:(FBSDKBridgeAPIRequest *)request + useSafariViewController:(BOOL)useSafariViewController + fromViewController:(nullable UIViewController *)fromViewController + completionBlock:(FBSDKBridgeAPIResponseBlock)completionBlock; + +- (void)openURLWithSafariViewController:(NSURL *)url + sender:(nullable id)sender + fromViewController:(UIViewController *)fromViewController + handler:(FBSDKSuccessBlock)handler; + +- (void)openURL:(NSURL *)url + sender:(nullable id)sender + handler:(FBSDKSuccessBlock)handler; + +@property (class, nonatomic, readonly, strong) FBSDKBridgeAPI *sharedInstance +NS_SWIFT_NAME(shared); +@property (nonatomic, readonly, getter=isActive) BOOL active; + + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPI.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPI.m new file mode 100644 index 0000000000000..afdb596e0eebc --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPI.m @@ -0,0 +1,435 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKBridgeAPI.h" + +#import + +typedef void (^FBSDKAuthenticationCompletionHandler)(NSURL *_Nullable callbackURL, NSError *_Nullable error); + +@protocol FBSDKAuthenticationSession + +- (instancetype)initWithURL:(NSURL *)URL callbackURLScheme:(nullable NSString *)callbackURLScheme completionHandler:(FBSDKAuthenticationCompletionHandler)completionHandler; +- (BOOL)start; +- (void)cancel; +@optional +- (void)setPresentationContextProvider:(id)presentationContextProvider; + +@end + +#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000 +#import +@interface FBSDKBridgeAPI() +#else +@interface FBSDKBridgeAPI() +#endif + +@end + +@implementation FBSDKBridgeAPI { + FBSDKBridgeAPIRequest *_pendingRequest; + FBSDKBridgeAPIResponseBlock _pendingRequestCompletionBlock; + id _pendingURLOpen; + id _authenticationSession NS_AVAILABLE_IOS(11_0); + FBSDKAuthenticationCompletionHandler _authenticationSessionCompletionHandler NS_AVAILABLE_IOS(11_0); + + BOOL _expectingBackground; + BOOL _isRequestingSFAuthenticationSession; + UIViewController *_safariViewController; + BOOL _isDismissingSafariViewController; + BOOL _isAppLaunched; +} + ++ (void)load +{ + [[FBSDKApplicationDelegate sharedInstance] addObserver:[FBSDKBridgeAPI sharedInstance]]; +} + ++ (FBSDKBridgeAPI *)sharedInstance +{ + static FBSDKBridgeAPI *_sharedInstance; + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + _sharedInstance = [[self alloc] init]; + }); + return _sharedInstance; +} + +- (void)applicationDidBecomeActive:(UIApplication *)application +{ + // _expectingBackground can be YES if the caller started doing work (like login) + // within the app delegate's lifecycle like openURL, in which case there + // might have been a "didBecomeActive" event pending that we want to ignore. + BOOL notExpectingBackground = !_expectingBackground && !_safariViewController && !_isDismissingSafariViewController && !_isRequestingSFAuthenticationSession; + if (notExpectingBackground) { + _active = YES; + + [_pendingURLOpen applicationDidBecomeActive:application]; + [self _cancelBridgeRequest]; + + [[NSNotificationCenter defaultCenter] postNotificationName:FBSDKApplicationDidBecomeActiveNotification object:self]; + } +} + +- (void)applicationDidEnterBackground:(UIApplication *)application +{ + _isRequestingSFAuthenticationSession = NO; + _active = NO; + _expectingBackground = NO; +} + +- (BOOL)application:(UIApplication *)application + openURL:(NSURL *)url + sourceApplication:(NSString *)sourceApplication + annotation:(id)annotation +{ + id pendingURLOpen = _pendingURLOpen; + + void (^completePendingOpenURLBlock)(void) = ^{ + self->_pendingURLOpen = nil; + [pendingURLOpen application:application + openURL:url + sourceApplication:sourceApplication + annotation:annotation]; + self->_isDismissingSafariViewController = NO; + }; + // if they completed a SFVC flow, dismiss it. + if (_safariViewController) { + _isDismissingSafariViewController = YES; + [_safariViewController.presentingViewController dismissViewControllerAnimated:YES + completion:completePendingOpenURLBlock]; + _safariViewController = nil; + } else { + if (@available(iOS 11.0, *)) { + if (_authenticationSession != nil) { + [_authenticationSession cancel]; + _authenticationSession = nil; + } + } + completePendingOpenURLBlock(); + } + + if ([pendingURLOpen canOpenURL:url + forApplication:application + sourceApplication:sourceApplication + annotation:annotation]) { + return YES; + } + + if ([self _handleBridgeAPIResponseURL:url sourceApplication:sourceApplication]) { + return YES; + } + + return NO; +} + +- (BOOL)application:(UIApplication *)application +didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + NSURL *launchedURL = launchOptions[UIApplicationLaunchOptionsURLKey]; + NSString *sourceApplication = launchOptions[UIApplicationLaunchOptionsSourceApplicationKey]; + + if (launchedURL && + sourceApplication) { + Class loginManagerClass = NSClassFromString(@"FBSDKLoginManager"); + if (loginManagerClass) { + id annotation = launchOptions[UIApplicationLaunchOptionsAnnotationKey]; + id loginManager = [[loginManagerClass alloc] init]; + return [loginManager application:application + openURL:launchedURL + sourceApplication:sourceApplication + annotation:annotation]; + } + } + + return NO; +} + +#pragma mark - Internal Methods + +- (void)openURL:(NSURL *)url sender:(id)sender handler:(FBSDKSuccessBlock)handler +{ + _expectingBackground = YES; + _pendingURLOpen = sender; + dispatch_async(dispatch_get_main_queue(), ^{ + // Dispatch openURL calls to prevent hangs if we're inside the current app delegate's openURL flow already + NSOperatingSystemVersion iOS10Version = { .majorVersion = 10, .minorVersion = 0, .patchVersion = 0 }; + if ([FBSDKInternalUtility isOSRunTimeVersionAtLeast:iOS10Version]) { + if (@available(iOS 10.0, *)) { + [[UIApplication sharedApplication] openURL:url options:@{} completionHandler:^(BOOL success) { + handler(success, nil); + }]; + } + } else { + BOOL opened = [[UIApplication sharedApplication] openURL:url]; + + if ([url.scheme hasPrefix:@"http"] && !opened) { + NSOperatingSystemVersion iOS8Version = { .majorVersion = 8, .minorVersion = 0, .patchVersion = 0 }; + if (![FBSDKInternalUtility isOSRunTimeVersionAtLeast:iOS8Version]) { + // Safari openURL calls can wrongly return NO on iOS 7 so manually overwrite that case to YES. + // Otherwise we would rather trust in the actual result of openURL + opened = YES; + } + } + if (handler) { + handler(opened, nil); + } + } + }); +} + +- (void)openBridgeAPIRequest:(FBSDKBridgeAPIRequest *)request + useSafariViewController:(BOOL)useSafariViewController + fromViewController:(UIViewController *)fromViewController + completionBlock:(FBSDKBridgeAPIResponseBlock)completionBlock +{ + if (!request) { + return; + } + NSError *error; + NSURL *requestURL = [request requestURL:&error]; + if (!requestURL) { + FBSDKBridgeAPIResponse *response = [FBSDKBridgeAPIResponse bridgeAPIResponseWithRequest:request error:error]; + completionBlock(response); + return; + } + _pendingRequest = request; + _pendingRequestCompletionBlock = [completionBlock copy]; + void (^handler)(BOOL, NSError *) = ^(BOOL openedURL, NSError *anError) { + if (!openedURL) { + self->_pendingRequest = nil; + self->_pendingRequestCompletionBlock = nil; + NSError *openedURLError; + if ([request.scheme hasPrefix:@"http"]) { + openedURLError = [FBSDKError errorWithCode:FBSDKErrorBrowserUnavailable + message:@"the app switch failed because the browser is unavailable"]; + } else { + openedURLError = [FBSDKError errorWithCode:FBSDKErrorAppVersionUnsupported + message:@"the app switch failed because the destination app is out of date"]; + } + FBSDKBridgeAPIResponse *response = [FBSDKBridgeAPIResponse bridgeAPIResponseWithRequest:request + error:openedURLError]; + completionBlock(response); + return; + } + }; + if (useSafariViewController) { + [self openURLWithSafariViewController:requestURL sender:nil fromViewController:fromViewController handler:handler]; + } else { + [self openURL:requestURL sender:nil handler:handler]; + } +} + +- (void)openURLWithSafariViewController:(NSURL *)url + sender:(id)sender + fromViewController:(UIViewController *)fromViewController + handler:(FBSDKSuccessBlock)handler +{ + if (![url.scheme hasPrefix:@"http"]) { + [self openURL:url sender:sender handler:handler]; + return; + } + + _expectingBackground = NO; + _pendingURLOpen = sender; + + if (@available(iOS 11.0, *)) { + if ([sender isAuthenticationURL:url]) { + [self _setSessionCompletionHandlerFromHandler:handler]; + [self _openURLWithAuthenticationSession:url]; + return; + } + } + + // trying to dynamically load SFSafariViewController class + // so for the cases when it is available we can send users through Safari View Controller flow + // in cases it is not available regular flow will be selected + Class SFSafariViewControllerClass = fbsdkdfl_SFSafariViewControllerClass(); + + if (SFSafariViewControllerClass) { + UIViewController *parent = fromViewController ?: [FBSDKInternalUtility topMostViewController]; + if (parent == nil) { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors + formatString:@"There are no valid ViewController to present SafariViewController with", nil]; + return; + } + + NSURLComponents *components = [NSURLComponents componentsWithURL:url resolvingAgainstBaseURL:NO]; + NSURLQueryItem *sfvcQueryItem = [[NSURLQueryItem alloc] initWithName:@"sfvc" value:@"1"]; + components.queryItems = [components.queryItems arrayByAddingObject:sfvcQueryItem]; + url = components.URL; + FBSDKContainerViewController *container = [[FBSDKContainerViewController alloc] init]; + container.delegate = self; + if (parent.transitionCoordinator != nil) { + // Wait until the transition is finished before presenting SafariVC to avoid a blank screen. + [parent.transitionCoordinator animateAlongsideTransition:NULL completion:^(id context) { + // Note SFVC init must occur inside block to avoid blank screen. + self->_safariViewController = [[SFSafariViewControllerClass alloc] initWithURL:url]; + // Disable dismissing with edge pan gesture + self->_safariViewController.modalPresentationStyle = UIModalPresentationOverFullScreen; + [self->_safariViewController performSelector:@selector(setDelegate:) withObject:self]; + [container displayChildController:self->_safariViewController]; + [parent presentViewController:container animated:YES completion:nil]; + }]; + } else { + _safariViewController = [[SFSafariViewControllerClass alloc] initWithURL:url]; + // Disable dismissing with edge pan gesture + _safariViewController.modalPresentationStyle = UIModalPresentationOverFullScreen; + [_safariViewController performSelector:@selector(setDelegate:) withObject:self]; + [container displayChildController:_safariViewController]; + [parent presentViewController:container animated:YES completion:nil]; + } + + // Assuming Safari View Controller always opens + if (handler) { + handler(YES, nil); + } + } else { + [self openURL:url sender:sender handler:handler]; + } +} + +- (void)_openURLWithAuthenticationSession:(NSURL *)url +{ + Class AuthenticationSessionClass = fbsdkdfl_ASWebAuthenticationSessionClass(); + + if (!AuthenticationSessionClass) { + AuthenticationSessionClass = fbsdkdfl_SFAuthenticationSessionClass(); + } + + if (AuthenticationSessionClass != nil) { + if (_authenticationSession != nil) { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors + formatString:@"There is already a request for authenticated session. Cancelling active SFAuthenticationSession before starting the new one.", nil]; + [_authenticationSession cancel]; + } + _authenticationSession = [[AuthenticationSessionClass alloc] initWithURL:url + callbackURLScheme:[FBSDKInternalUtility appURLScheme] + completionHandler:_authenticationSessionCompletionHandler]; + if (@available(iOS 13.0, *)) { + if ([_authenticationSession respondsToSelector:@selector(setPresentationContextProvider:)]) { + [_authenticationSession setPresentationContextProvider:self]; + } + } + _isRequestingSFAuthenticationSession = YES; + [_authenticationSession start]; + } +} + +- (void)_setSessionCompletionHandlerFromHandler:(void(^)(BOOL, NSError *))handler +{ + __weak FBSDKBridgeAPI *weakSelf = self; + _authenticationSessionCompletionHandler = ^ (NSURL *aURL, NSError *error) { + FBSDKBridgeAPI *strongSelf = weakSelf; + strongSelf->_isRequestingSFAuthenticationSession = NO; + handler(error == nil, error); + if (error == nil) { + [strongSelf application:[UIApplication sharedApplication] openURL:aURL sourceApplication:@"com.apple" annotation:nil]; + } + strongSelf->_authenticationSession = nil; + strongSelf->_authenticationSessionCompletionHandler = nil; + }; +} + +#pragma mark -- SFSafariViewControllerDelegate + +// This means the user tapped "Done" which we should treat as a cancellation. +- (void)safariViewControllerDidFinish:(UIViewController *)safariViewController +{ + if (_pendingURLOpen) { + id pendingURLOpen = _pendingURLOpen; + + _pendingURLOpen = nil; + + [pendingURLOpen application:nil + openURL:nil + sourceApplication:nil + annotation:nil]; + } + [self _cancelBridgeRequest]; + _safariViewController = nil; +} + +#pragma mark -- FBSDKContainerViewControllerDelegate + +- (void)viewControllerDidDisappear:(FBSDKContainerViewController *)viewController animated:(BOOL)animated +{ + if (_safariViewController) { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors + logEntry:@"**ERROR**:\n The SFSafariViewController's parent view controller was dismissed.\n" + "This can happen if you are triggering login from a UIAlertController. Instead, make sure your top most view " + "controller will not be prematurely dismissed."]; + [self safariViewControllerDidFinish:_safariViewController]; + } +} + +#pragma mark - Helper Methods + +- (BOOL)_handleBridgeAPIResponseURL:(NSURL *)responseURL sourceApplication:(NSString *)sourceApplication +{ + FBSDKBridgeAPIRequest *request = _pendingRequest; + FBSDKBridgeAPIResponseBlock completionBlock = _pendingRequestCompletionBlock; + _pendingRequest = nil; + _pendingRequestCompletionBlock = NULL; + if (![responseURL.scheme isEqualToString:[FBSDKInternalUtility appURLScheme]]) { + return NO; + } + if (![responseURL.host isEqualToString:@"bridge"]) { + return NO; + } + if (!request) { + return NO; + } + if (!completionBlock) { + return YES; + } + NSError *error; + FBSDKBridgeAPIResponse *response = [FBSDKBridgeAPIResponse bridgeAPIResponseWithRequest:request + responseURL:responseURL + sourceApplication:sourceApplication + error:&error]; + if (response) { + completionBlock(response); + return YES; + } else if (error) { + completionBlock([FBSDKBridgeAPIResponse bridgeAPIResponseWithRequest:request error:error]); + return YES; + } else { + return NO; + } +} + +- (void)_cancelBridgeRequest +{ + if (_pendingRequest && _pendingRequestCompletionBlock) { + _pendingRequestCompletionBlock([FBSDKBridgeAPIResponse bridgeAPIResponseCancelledWithRequest:_pendingRequest]); + } + _pendingRequest = nil; + _pendingRequestCompletionBlock = NULL; +} + +#pragma mark - ASWebAuthenticationPresentationContextProviding +#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000 +- (ASPresentationAnchor)presentationAnchorForWebAuthenticationSession:(ASWebAuthenticationSession *)session API_AVAILABLE(ios(13.0)){ +#else +- (UIWindow *)presentationAnchorForWebAuthenticationSession:(id)session API_AVAILABLE(ios(11.0)) { +#endif + return UIApplication.sharedApplication.keyWindow; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPIProtocol.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPIProtocol.h new file mode 100644 index 0000000000000..87cf8f2a1c573 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPIProtocol.h @@ -0,0 +1,43 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import "FBSDKBridgeAPIProtocolType.h" + +@class FBSDKBridgeAPIRequest; + +FOUNDATION_EXPORT NSString *const FBSDKBridgeAPIAppIDKey; +FOUNDATION_EXPORT NSString *const FBSDKBridgeAPISchemeSuffixKey; +FOUNDATION_EXPORT NSString *const FBSDKBridgeAPIVersionKey; + +NS_SWIFT_NAME(BridgeAPIProtocol) +@protocol FBSDKBridgeAPIProtocol + +- (NSURL *)requestURLWithActionID:(NSString *)actionID + scheme:(NSString *)scheme + methodName:(NSString *)methodName + methodVersion:(NSString *)methodVersion + parameters:(NSDictionary *)parameters + error:(NSError *__autoreleasing *)errorRef; +- (NSDictionary *)responseParametersForActionID:(NSString *)actionID + queryParameters:(NSDictionary *)queryParameters + cancelled:(BOOL *)cancelledRef + error:(NSError *__autoreleasing *)errorRef; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPIProtocolType.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPIProtocolType.h new file mode 100644 index 0000000000000..3d69a1f33e38a --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPIProtocolType.h @@ -0,0 +1,25 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +typedef NS_ENUM(NSUInteger, FBSDKBridgeAPIProtocolType) +{ + FBSDKBridgeAPIProtocolTypeNative, + FBSDKBridgeAPIProtocolTypeWeb, +} NS_SWIFT_NAME(BridgeAPIProtocol.Type); diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPIRequest+Private.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPIRequest+Private.h new file mode 100644 index 0000000000000..4455e2268b68b --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPIRequest+Private.h @@ -0,0 +1,35 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKBridgeAPIProtocol.h" +#import "FBSDKBridgeAPIRequest.h" + +@interface FBSDKBridgeAPIRequest () + +- (instancetype)initWithProtocol:(id)protocol + protocolType:(FBSDKBridgeAPIProtocolType)protocolType + scheme:(NSString *)scheme + methodName:(NSString *)methodName + methodVersion:(NSString *)methodVersion + parameters:(NSDictionary *)parameters + userInfo:(NSDictionary *)userInfo +NS_DESIGNATED_INITIALIZER; + +@property (nonatomic, strong, readonly) id protocol; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPIRequest.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPIRequest.h new file mode 100644 index 0000000000000..9e027bcf68d67 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPIRequest.h @@ -0,0 +1,47 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import + +#import "FBSDKBridgeAPIProtocolType.h" + +NS_SWIFT_NAME(BridgeAPIRequest) +@interface FBSDKBridgeAPIRequest : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; ++ (instancetype)bridgeAPIRequestWithProtocolType:(FBSDKBridgeAPIProtocolType)protocolType + scheme:(NSString *)scheme + methodName:(NSString *)methodName + methodVersion:(NSString *)methodVersion + parameters:(NSDictionary *)parameters + userInfo:(NSDictionary *)userInfo; + +@property (nonatomic, copy, readonly) NSString *actionID; +@property (nonatomic, copy, readonly) NSString *methodName; +@property (nonatomic, copy, readonly) NSString *methodVersion; +@property (nonatomic, copy, readonly) NSDictionary *parameters; +@property (nonatomic, assign, readonly) FBSDKBridgeAPIProtocolType protocolType; +@property (nonatomic, copy, readonly) NSString *scheme; +@property (nonatomic, copy, readonly) NSDictionary *userInfo; + +- (NSURL *)requestURL:(NSError *__autoreleasing *)errorRef; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPIRequest.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPIRequest.m new file mode 100644 index 0000000000000..97aa8a3e52f73 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPIRequest.m @@ -0,0 +1,151 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKBridgeAPIRequest.h" +#import "FBSDKBridgeAPIRequest+Private.h" + +#import "FBSDKBridgeAPIProtocolNativeV1.h" +#import "FBSDKBridgeAPIProtocolWebV1.h" +#import "FBSDKBridgeAPIProtocolWebV2.h" +#import "FBSDKInternalUtility.h" +#import "FBSDKSettings.h" + +NSString *const FBSDKBridgeAPIAppIDKey = @"app_id"; +NSString *const FBSDKBridgeAPISchemeSuffixKey = @"scheme_suffix"; +NSString *const FBSDKBridgeAPIVersionKey = @"version"; + +@implementation FBSDKBridgeAPIRequest + +#pragma mark - Class Methods + ++ (instancetype)bridgeAPIRequestWithProtocolType:(FBSDKBridgeAPIProtocolType)protocolType + scheme:(NSString *)scheme + methodName:(NSString *)methodName + methodVersion:(NSString *)methodVersion + parameters:(NSDictionary *)parameters + userInfo:(NSDictionary *)userInfo +{ + return [[self alloc] initWithProtocol:[self _protocolForType:protocolType scheme:scheme] + protocolType:protocolType + scheme:scheme + methodName:methodName + methodVersion:methodVersion + parameters:parameters + userInfo:userInfo]; +} + ++ (NSDictionary *)protocolMap +{ + static NSDictionary *_protocolMap; + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + _protocolMap = @{ + @(FBSDKBridgeAPIProtocolTypeNative): @{ + FBSDK_CANOPENURL_FACEBOOK:[[FBSDKBridgeAPIProtocolNativeV1 alloc] initWithAppScheme:@"fbapi20130214"], + FBSDK_CANOPENURL_MESSENGER:[[FBSDKBridgeAPIProtocolNativeV1 alloc] initWithAppScheme:@"fb-messenger-share-api"], + FBSDK_CANOPENURL_MSQRD_PLAYER:[[FBSDKBridgeAPIProtocolNativeV1 alloc] initWithAppScheme:@"msqrdplayer-api20170208"] + }, + @(FBSDKBridgeAPIProtocolTypeWeb): @{ + @"https": [[FBSDKBridgeAPIProtocolWebV1 alloc] init], + @"web": [[FBSDKBridgeAPIProtocolWebV2 alloc] init] + }, + }; + }); + return _protocolMap; +} + +#pragma mark - Object Lifecycle + +- (instancetype)initWithProtocol:(id)protocol + protocolType:(FBSDKBridgeAPIProtocolType)protocolType + scheme:(NSString *)scheme + methodName:(NSString *)methodName + methodVersion:(NSString *)methodVersion + parameters:(NSDictionary *)parameters + userInfo:(NSDictionary *)userInfo +{ + if (!protocol) { + return nil; + } + if ((self = [super init])) { + _protocol = protocol; + _protocolType = protocolType; + _scheme = [scheme copy]; + _methodName = [methodName copy]; + _methodVersion = [methodVersion copy]; + _parameters = [parameters copy]; + _userInfo = [userInfo copy]; + + _actionID = [NSUUID UUID].UUIDString; + } + return self; +} + +#pragma mark - Public Methods + +- (NSURL *)requestURL:(NSError *__autoreleasing *)errorRef +{ + NSURL *requestURL = [_protocol requestURLWithActionID:self.actionID + scheme:self.scheme + methodName:self.methodName + methodVersion:self.methodVersion + parameters:self.parameters + error:errorRef]; + if (!requestURL) { + return nil; + } + + [FBSDKInternalUtility validateURLSchemes]; + + NSDictionary *requestQueryParameters = [FBSDKBasicUtility dictionaryWithQueryString:requestURL.query]; + NSMutableDictionary *queryParameters = [[NSMutableDictionary alloc] initWithDictionary:requestQueryParameters]; + [FBSDKBasicUtility dictionary:queryParameters setObject:[FBSDKSettings appID] forKey:FBSDKBridgeAPIAppIDKey]; + [FBSDKBasicUtility dictionary:queryParameters + setObject:[FBSDKSettings appURLSchemeSuffix] + forKey:FBSDKBridgeAPISchemeSuffixKey]; + requestURL = [FBSDKInternalUtility URLWithScheme:requestURL.scheme + host:requestURL.host + path:requestURL.path + queryParameters:queryParameters + error:errorRef]; + return requestURL; +} + +#pragma mark - NSCopying + +- (id)copyWithZone:(NSZone *)zone +{ + return self; +} + ++ (id)_protocolForType:(FBSDKBridgeAPIProtocolType)type scheme:(NSString *)scheme +{ + id protocol = [self protocolMap][@(type)][scheme]; + if (type == FBSDKBridgeAPIProtocolTypeWeb) { + return protocol; + } + NSURLComponents *components = [[NSURLComponents alloc] init]; + components.scheme = scheme; + components.path = @"/"; + if ([[UIApplication sharedApplication] canOpenURL:components.URL]) { + return protocol; + } + return nil; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPIResponse.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPIResponse.h new file mode 100644 index 0000000000000..0fca5fd619bab --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPIResponse.h @@ -0,0 +1,43 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import + +#import "FBSDKBridgeAPIRequest.h" + +NS_SWIFT_NAME(BridgeAPIResponse) +@interface FBSDKBridgeAPIResponse : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + ++ (instancetype)bridgeAPIResponseWithRequest:(FBSDKBridgeAPIRequest *)request error:(NSError *)error; ++ (instancetype)bridgeAPIResponseWithRequest:(FBSDKBridgeAPIRequest *)request + responseURL:(NSURL *)responseURL + sourceApplication:(NSString *)sourceApplication + error:(NSError *__autoreleasing *)errorRef; ++ (instancetype)bridgeAPIResponseCancelledWithRequest:(FBSDKBridgeAPIRequest *)request; + +@property (nonatomic, assign, readonly, getter=isCancelled) BOOL cancelled; +@property (nonatomic, copy, readonly) NSError *error; +@property (nonatomic, copy, readonly) FBSDKBridgeAPIRequest *request; +@property (nonatomic, copy, readonly) NSDictionary *responseParameters; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPIResponse.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPIResponse.m new file mode 100644 index 0000000000000..06617ba3b6158 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPIResponse.m @@ -0,0 +1,121 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKBridgeAPIResponse.h" + +#import "FBSDKBridgeAPIProtocol.h" +#import "FBSDKBridgeAPIProtocolType.h" +#import "FBSDKBridgeAPIRequest+Private.h" +#import "FBSDKInternalUtility.h" +#import "FBSDKTypeUtility.h" + +@interface FBSDKBridgeAPIResponse () +- (instancetype)initWithRequest:(FBSDKBridgeAPIRequest *)request + responseParameters:(NSDictionary *)responseParameters + cancelled:(BOOL)cancelled + error:(NSError *)error +NS_DESIGNATED_INITIALIZER; +@end + +@implementation FBSDKBridgeAPIResponse + +#pragma mark - Class Methods + ++ (instancetype)bridgeAPIResponseWithRequest:(FBSDKBridgeAPIRequest *)request error:(NSError *)error +{ + return [[self alloc] initWithRequest:request + responseParameters:nil + cancelled:NO + error:error]; +} + ++ (instancetype)bridgeAPIResponseWithRequest:(FBSDKBridgeAPIRequest *)request + responseURL:(NSURL *)responseURL + sourceApplication:(NSString *)sourceApplication + error:(NSError *__autoreleasing *)errorRef +{ + FBSDKBridgeAPIProtocolType protocolType = request.protocolType; + switch (protocolType) { + case FBSDKBridgeAPIProtocolTypeNative:{ + if (![FBSDKInternalUtility isFacebookBundleIdentifier:sourceApplication]) { + return nil; + } + break; + } + case FBSDKBridgeAPIProtocolTypeWeb:{ + if (![FBSDKInternalUtility isSafariBundleIdentifier:sourceApplication]) { + return nil; + } + break; + } + } + NSDictionary *const queryParameters = [FBSDKBasicUtility dictionaryWithQueryString:responseURL.query]; + if (!queryParameters) { + return nil; + } + id protocol = request.protocol; + BOOL cancelled; + NSError *error; + NSDictionary *responseParameters = [protocol responseParametersForActionID:request.actionID + queryParameters:queryParameters + cancelled:&cancelled + error:&error]; + if (errorRef != NULL) { + *errorRef = error; + } + if (!responseParameters) { + return nil; + } + return [[self alloc] initWithRequest:request + responseParameters:responseParameters + cancelled:cancelled + error:error]; +} + ++ (instancetype)bridgeAPIResponseCancelledWithRequest:(FBSDKBridgeAPIRequest *)request +{ + return [[self alloc] initWithRequest:request + responseParameters:nil + cancelled:YES + error:nil]; +} + +#pragma mark - Object Lifecycle + +- (instancetype)initWithRequest:(FBSDKBridgeAPIRequest *)request + responseParameters:(NSDictionary *)responseParameters + cancelled:(BOOL)cancelled + error:(NSError *)error +{ + if ((self = [super init])) { + _request = [request copy]; + _responseParameters = [responseParameters copy]; + _cancelled = cancelled; + _error = [error copy]; + } + return self; +} + +#pragma mark - NSCopying + +- (id)copyWithZone:(NSZone *)zone +{ + return self; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKURLOpening.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKURLOpening.h new file mode 100644 index 0000000000000..56715093dedee --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKURLOpening.h @@ -0,0 +1,42 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +NS_SWIFT_NAME(URLOpening) +@protocol FBSDKURLOpening + +// Implementations should make sure they can handle nil parameters +// which is possible in SafariViewController. +// see canOpenURL below. +- (BOOL)application:(UIApplication *)application + openURL:(NSURL *)url + sourceApplication:(NSString *)sourceApplication + annotation:(id)annotation; + +// create a different handler to return YES/NO if the receiver can process the above openURL:. +// This is separated so that we can process the openURL: in callbacks, while still returning +// the result of canOpenURL synchronously in FBSDKApplicationDelegate +- (BOOL)canOpenURL:(NSURL *)url + forApplication:(UIApplication *)application + sourceApplication:(NSString *)sourceApplication + annotation:(id)annotation; + +- (void)applicationDidBecomeActive:(UIApplication *)application; + +- (BOOL)isAuthenticationURL:(NSURL *)url; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/ProtocolVersions/FBSDKBridgeAPIProtocolNativeV1.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/ProtocolVersions/FBSDKBridgeAPIProtocolNativeV1.h new file mode 100644 index 0000000000000..fa527a8d8dc8c --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/ProtocolVersions/FBSDKBridgeAPIProtocolNativeV1.h @@ -0,0 +1,72 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import "FBSDKBridgeAPIProtocol.h" + +typedef struct +{ + __unsafe_unretained NSString *bridgeArgs; + __unsafe_unretained NSString *methodArgs; + __unsafe_unretained NSString *methodVersion; +} FBSDKBridgeAPIProtocolNativeV1OutputKeysStruct; +FOUNDATION_EXPORT const FBSDKBridgeAPIProtocolNativeV1OutputKeysStruct FBSDKBridgeAPIProtocolNativeV1OutputKeys; + +typedef struct +{ + __unsafe_unretained NSString *actionID; + __unsafe_unretained NSString *appIcon; + __unsafe_unretained NSString *appName; + __unsafe_unretained NSString *sdkVersion; +} FBSDKBridgeAPIProtocolNativeV1BridgeParameterOutputKeysStruct; +FOUNDATION_EXPORT const FBSDKBridgeAPIProtocolNativeV1BridgeParameterOutputKeysStruct FBSDKBridgeAPIProtocolNativeV1BridgeParameterOutputKeys; + +typedef struct +{ + __unsafe_unretained NSString *bridgeArgs; + __unsafe_unretained NSString *methodResults; +} FBSDKBridgeAPIProtocolNativeV1InputKeysStruct; +FOUNDATION_EXPORT const FBSDKBridgeAPIProtocolNativeV1InputKeysStruct FBSDKBridgeAPIProtocolNativeV1InputKeys; + +typedef struct +{ + __unsafe_unretained NSString *actionID; + __unsafe_unretained NSString *error; +} FBSDKBridgeAPIProtocolNativeV1BridgeParameterInputKeysStruct; +FOUNDATION_EXPORT const FBSDKBridgeAPIProtocolNativeV1BridgeParameterInputKeysStruct FBSDKBridgeAPIProtocolNativeV1BridgeParameterInputKeys; + +NS_SWIFT_NAME(BridgeAPIProtocolNativeV1) +@interface FBSDKBridgeAPIProtocolNativeV1 : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +- (instancetype)initWithAppScheme:(NSString *)appScheme; +- (instancetype)initWithAppScheme:(NSString *)appScheme + pasteboard:(UIPasteboard *)pasteboard + dataLengthThreshold:(NSUInteger)dataLengthThreshold + includeAppIcon:(BOOL)includeAppIcon +NS_DESIGNATED_INITIALIZER; + +@property (nonatomic, copy, readonly) NSString *appScheme; +@property (nonatomic, assign, readonly) NSUInteger dataLengthThreshold; +@property (nonatomic, assign, readonly, getter=shouldIncludeAppIcon) BOOL includeAppIcon; +@property (nonatomic, strong, readonly) UIPasteboard *pasteboard; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/ProtocolVersions/FBSDKBridgeAPIProtocolNativeV1.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/ProtocolVersions/FBSDKBridgeAPIProtocolNativeV1.m new file mode 100644 index 0000000000000..7ab71861d06a1 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/ProtocolVersions/FBSDKBridgeAPIProtocolNativeV1.m @@ -0,0 +1,335 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKBridgeAPIProtocolNativeV1.h" + +#import + +#import "FBSDKApplicationDelegate+Internal.h" +#import "FBSDKBase64.h" +#import "FBSDKBridgeAPIRequest.h" +#import "FBSDKConstants.h" +#import "FBSDKError.h" +#import "FBSDKInternalUtility.h" +#import "FBSDKSettings.h" +#import "FBSDKTypeUtility.h" + +#define FBSDKBridgeAPIProtocolNativeV1BridgeMaxBase64DataLengthThreshold (1024 * 16) + +const FBSDKBridgeAPIProtocolNativeV1OutputKeysStruct FBSDKBridgeAPIProtocolNativeV1OutputKeys = +{ + .bridgeArgs = @"bridge_args", + .methodArgs = @"method_args", + .methodVersion = @"version", +}; + +const FBSDKBridgeAPIProtocolNativeV1BridgeParameterOutputKeysStruct FBSDKBridgeAPIProtocolNativeV1BridgeParameterOutputKeys = +{ + .actionID = @"action_id", + .appIcon = @"app_icon", + .appName = @"app_name", + .sdkVersion = @"sdk_version", +}; + +const FBSDKBridgeAPIProtocolNativeV1InputKeysStruct FBSDKBridgeAPIProtocolNativeV1InputKeys = +{ + .bridgeArgs = @"bridge_args", + .methodResults = @"method_results", +}; + +const FBSDKBridgeAPIProtocolNativeV1BridgeParameterInputKeysStruct FBSDKBridgeAPIProtocolNativeV1BridgeParameterInputKeys = +{ + .actionID = @"action_id", + .error = @"error", +}; + +static const struct +{ + __unsafe_unretained NSString *isBase64; + __unsafe_unretained NSString *isPasteboard; + __unsafe_unretained NSString *tag; + __unsafe_unretained NSString *value; +} FBSDKBridgeAPIProtocolNativeV1DataKeys = +{ + .isBase64 = @"isBase64", + .isPasteboard = @"isPasteboard", + .tag = @"tag", + .value = @"fbAppBridgeType_jsonReadyValue", +}; + +static NSString *const FBSDKBridgeAPIProtocolNativeV1DataPasteboardKey = @"com.facebook.Facebook.FBAppBridgeType"; + +static const struct +{ + __unsafe_unretained NSString *data; + __unsafe_unretained NSString *image; +} FBSDKBridgeAPIProtocolNativeV1DataTypeTags = +{ + .data = @"data", + // we serialize jpegs but use png for backward compatibility - it is any image format that UIImage can handle + .image = @"png", +}; + +static const struct +{ + __unsafe_unretained NSString *code; + __unsafe_unretained NSString *domain; + __unsafe_unretained NSString *userInfo; +} FBSDKBridgeAPIProtocolNativeV1ErrorKeys = +{ + .code = @"code", + .domain = @"domain", + .userInfo = @"user_info", +}; + +@implementation FBSDKBridgeAPIProtocolNativeV1 + +#pragma mark - Object Lifecycle + +- (instancetype)initWithAppScheme:(NSString *)appScheme +{ + return [self initWithAppScheme:appScheme + pasteboard:[UIPasteboard generalPasteboard] + dataLengthThreshold:FBSDKBridgeAPIProtocolNativeV1BridgeMaxBase64DataLengthThreshold + includeAppIcon:YES]; +} + +- (instancetype)initWithAppScheme:(NSString *)appScheme + pasteboard:(UIPasteboard *)pasteboard + dataLengthThreshold:(NSUInteger)dataLengthThreshold + includeAppIcon:(BOOL)includeAppIcon +{ + if ((self = [super init])) { + _appScheme = [appScheme copy]; + _pasteboard = pasteboard; + _dataLengthThreshold = dataLengthThreshold; + _includeAppIcon = includeAppIcon; + } + return self; +} + +#pragma mark - FBSDKBridgeAPIProtocol + +- (NSURL *)requestURLWithActionID:(NSString *)actionID + scheme:(NSString *)scheme + methodName:(NSString *)methodName + methodVersion:(NSString *)methodVersion + parameters:(NSDictionary *)parameters + error:(NSError *__autoreleasing *)errorRef +{ + NSString *const host = @"dialog"; + NSString *const path = [@"/" stringByAppendingString:methodName]; + + NSMutableDictionary *const queryParameters = [[NSMutableDictionary alloc] init]; + [FBSDKBasicUtility dictionary:queryParameters setObject:methodVersion + forKey:FBSDKBridgeAPIProtocolNativeV1OutputKeys.methodVersion]; + + if (parameters.count) { + NSString *const parametersString = [self _JSONStringForObject:parameters enablePasteboard:YES error:errorRef]; + if (!parametersString) { + return nil; + } + NSString *const escapedParametersString = [parametersString stringByReplacingOccurrencesOfString:@"&" + withString:@"%26" + options:NSCaseInsensitiveSearch + range:NSMakeRange(0, + parametersString.length)]; + [FBSDKBasicUtility dictionary:queryParameters + setObject:escapedParametersString + forKey:FBSDKBridgeAPIProtocolNativeV1OutputKeys.methodArgs]; + } + + NSDictionary *const bridgeParameters = [self _bridgeParametersWithActionID:actionID error:errorRef]; + if (!bridgeParameters) { + return nil; + } + NSString *const bridgeParametersString = [self _JSONStringForObject:bridgeParameters enablePasteboard:NO error:errorRef]; + if (!bridgeParametersString) { + return nil; + } + [FBSDKBasicUtility dictionary:queryParameters + setObject:bridgeParametersString + forKey:FBSDKBridgeAPIProtocolNativeV1OutputKeys.bridgeArgs]; + + + return [FBSDKInternalUtility URLWithScheme:self.appScheme + host:host + path:path + queryParameters:queryParameters + error:errorRef]; +} + +- (NSDictionary *)responseParametersForActionID:(NSString *)actionID + queryParameters:(NSDictionary *)queryParameters + cancelled:(BOOL *)cancelledRef + error:(NSError *__autoreleasing *)errorRef +{ + if (cancelledRef != NULL) { + *cancelledRef = NO; + } + if (errorRef != NULL) { + *errorRef = nil; + } + NSError *error; + NSString *bridgeParametersJSON = queryParameters[FBSDKBridgeAPIProtocolNativeV1InputKeys.bridgeArgs]; + NSDictionary *bridgeParameters = [FBSDKBasicUtility objectForJSONString:bridgeParametersJSON error:&error]; + bridgeParameters = [FBSDKTypeUtility dictionaryValue:bridgeParameters]; + if (!bridgeParameters) { + if (error && (errorRef != NULL)) { + *errorRef = [FBSDKError invalidArgumentErrorWithName:FBSDKBridgeAPIProtocolNativeV1InputKeys.bridgeArgs + value:bridgeParametersJSON + message:@"Invalid bridge_args." + underlyingError:error]; + } + return nil; + } + NSString *responseActionID = bridgeParameters[FBSDKBridgeAPIProtocolNativeV1BridgeParameterInputKeys.actionID]; + responseActionID = [FBSDKTypeUtility stringValue:responseActionID]; + if (![responseActionID isEqualToString:actionID]) { + return nil; + } + NSDictionary *errorDictionary = bridgeParameters[FBSDKBridgeAPIProtocolNativeV1BridgeParameterInputKeys.error]; + errorDictionary = [FBSDKTypeUtility dictionaryValue:errorDictionary]; + if (errorDictionary) { + error = [self _errorWithDictionary:errorDictionary]; + if (errorRef != NULL) { + *errorRef = error; + } + return nil; + } + NSString *resultParametersJSON = queryParameters[FBSDKBridgeAPIProtocolNativeV1InputKeys.methodResults]; + NSDictionary *resultParameters = [FBSDKBasicUtility objectForJSONString:resultParametersJSON error:&error]; + if (!resultParameters) { + if (errorRef != NULL) { + *errorRef = [FBSDKError invalidArgumentErrorWithName:FBSDKBridgeAPIProtocolNativeV1InputKeys.methodResults + value:resultParametersJSON + message:@"Invalid method_results." + underlyingError:error]; + } + return nil; + } + if (cancelledRef != NULL) { + NSString *completionGesture = [FBSDKTypeUtility stringValue:resultParameters[@"completionGesture"]]; + *cancelledRef = [completionGesture isEqualToString:@"cancel"]; + } + return resultParameters; +} + +#pragma mark - Helper Methods + +- (UIImage *)_appIcon +{ + if (!_includeAppIcon) { + return nil; + } + NSArray *files = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleIcons"] + [@"CFBundlePrimaryIcon"] + [@"CFBundleIconFiles"]; + if (!files.count) { + return nil; + } + return [UIImage imageNamed:files[0]]; +} + +- (NSDictionary *)_bridgeParametersWithActionID:(NSString *)actionID error:(NSError *__autoreleasing *)errorRef +{ + NSMutableDictionary *bridgeParameters = [[NSMutableDictionary alloc] init]; + [FBSDKBasicUtility dictionary:bridgeParameters setObject:actionID + forKey:FBSDKBridgeAPIProtocolNativeV1BridgeParameterOutputKeys.actionID]; + [FBSDKBasicUtility dictionary:bridgeParameters setObject:[self _appIcon] + forKey:FBSDKBridgeAPIProtocolNativeV1BridgeParameterOutputKeys.appIcon]; + [FBSDKBasicUtility dictionary:bridgeParameters setObject:[FBSDKSettings displayName] + forKey:FBSDKBridgeAPIProtocolNativeV1BridgeParameterOutputKeys.appName]; + [FBSDKBasicUtility dictionary:bridgeParameters setObject:[FBSDKSettings sdkVersion] + forKey:FBSDKBridgeAPIProtocolNativeV1BridgeParameterOutputKeys.sdkVersion]; + return bridgeParameters; +} + +- (NSError *)_errorWithDictionary:(NSDictionary *)dictionary +{ + if (!dictionary) { + return nil; + } + NSString *domain = [FBSDKTypeUtility stringValue:dictionary[FBSDKBridgeAPIProtocolNativeV1ErrorKeys.domain]] ?: + FBSDKErrorDomain; + NSInteger code = [FBSDKTypeUtility integerValue:dictionary[FBSDKBridgeAPIProtocolNativeV1ErrorKeys.code]] ?: + FBSDKErrorUnknown; + NSDictionary *userInfo = [FBSDKTypeUtility dictionaryValue:dictionary[FBSDKBridgeAPIProtocolNativeV1ErrorKeys.userInfo]]; + return [NSError errorWithDomain:domain code:code userInfo:userInfo]; +} + +- (NSString *)_JSONStringForObject:(id)object enablePasteboard:(BOOL)enablePasteboard error:(NSError **)errorRef +{ + __block BOOL didAddToPasteboard = NO; + return [FBSDKBasicUtility JSONStringForObject:object error:errorRef invalidObjectHandler:^id(id invalidObject, BOOL *stop) { + NSString *dataTag = FBSDKBridgeAPIProtocolNativeV1DataTypeTags.data; + if ([invalidObject isKindOfClass:[UIImage class]]) { + UIImage *image = (UIImage *)invalidObject; + // due to backward compatibility, we must send UIImage as NSData even though UIPasteboard can handle UIImage + invalidObject = UIImageJPEGRepresentation(image, [FBSDKSettings JPEGCompressionQuality]); + dataTag = FBSDKBridgeAPIProtocolNativeV1DataTypeTags.image; + } + if ([invalidObject isKindOfClass:[NSData class]]) { + NSData *data = (NSData *)invalidObject; + NSMutableDictionary *dictionary = [[NSMutableDictionary alloc] init]; + if (didAddToPasteboard || !enablePasteboard || !self->_pasteboard || (data.length < self->_dataLengthThreshold)) { + dictionary[FBSDKBridgeAPIProtocolNativeV1DataKeys.isBase64] = @YES; + dictionary[FBSDKBridgeAPIProtocolNativeV1DataKeys.tag] = dataTag; + [FBSDKBasicUtility dictionary:dictionary + setObject:[FBSDKBase64 encodeData:data] + forKey:FBSDKBridgeAPIProtocolNativeV1DataKeys.value]; + } else { + dictionary[FBSDKBridgeAPIProtocolNativeV1DataKeys.isPasteboard] = @YES; + dictionary[FBSDKBridgeAPIProtocolNativeV1DataKeys.tag] = dataTag; + dictionary[FBSDKBridgeAPIProtocolNativeV1DataKeys.value] = self->_pasteboard.name; + [self->_pasteboard setData:data forPasteboardType:FBSDKBridgeAPIProtocolNativeV1DataPasteboardKey]; + // this version of the protocol only supports a single item on the pasteboard, so if when we add an item, make + // sure we don't add another item + didAddToPasteboard = YES; + // if we are adding this to the general pasteboard, then we want to remove it when we are done with the share. + // the Facebook app will not clear the value with this version of the protocol, so we should do it when the app + // becomes active again + NSString *pasteboardName = self->_pasteboard.name; + if ([pasteboardName isEqualToString:UIPasteboardNameGeneral] || + [pasteboardName isEqualToString:UIPasteboardNameFind]) { + [[self class] clearData:data fromPasteboardOnApplicationDidBecomeActive:self->_pasteboard]; + } + } + return dictionary; + } else if ([invalidObject isKindOfClass:[NSURL class]]) { + return ((NSURL *)invalidObject).absoluteString; + } + return invalidObject; + }]; +} + ++ (void)clearData:(NSData *)data fromPasteboardOnApplicationDidBecomeActive:(UIPasteboard *)pasteboard +{ + void(^notificationBlock)(NSNotification *) = ^(NSNotification *note){ + NSData *pasteboardData = [pasteboard dataForPasteboardType:FBSDKBridgeAPIProtocolNativeV1DataPasteboardKey]; + if ([data isEqualToData:pasteboardData]) { + [pasteboard setData:[NSData data] forPasteboardType:FBSDKBridgeAPIProtocolNativeV1DataPasteboardKey]; + } + }; + [[NSNotificationCenter defaultCenter] addObserverForName:FBSDKApplicationDidBecomeActiveNotification + object:[FBSDKApplicationDelegate sharedInstance] + queue:nil + usingBlock:notificationBlock]; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/ProtocolVersions/FBSDKBridgeAPIProtocolWebV1.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/ProtocolVersions/FBSDKBridgeAPIProtocolWebV1.h new file mode 100644 index 0000000000000..999eb52e87b3b --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/ProtocolVersions/FBSDKBridgeAPIProtocolWebV1.h @@ -0,0 +1,26 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import "FBSDKBridgeAPIProtocol.h" + +NS_SWIFT_NAME(BridgeAPIProtocolWebV1) +@interface FBSDKBridgeAPIProtocolWebV1 : NSObject + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/ProtocolVersions/FBSDKBridgeAPIProtocolWebV1.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/ProtocolVersions/FBSDKBridgeAPIProtocolWebV1.m new file mode 100644 index 0000000000000..2a4c0de1142b3 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/ProtocolVersions/FBSDKBridgeAPIProtocolWebV1.m @@ -0,0 +1,115 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKBridgeAPIProtocolWebV1.h" + +#import + +#import "FBSDKBase64.h" +#import "FBSDKBridgeAPIRequest.h" +#import "FBSDKError.h" +#import "FBSDKInternalUtility.h" +#import "FBSDKSettings.h" +#import "FBSDKTypeUtility.h" + +#define FBSDK_BRIDGE_API_PROTOCOL_WEB_V1_ACTION_ID_KEY @"action_id" +#define FBSDK_BRIDGE_API_PROTOCOL_WEB_V1_BRIDGE_ARGS_KEY @"bridge_args" + +@implementation FBSDKBridgeAPIProtocolWebV1 + +#pragma mark - FBSDKBridgeAPIProtocol + +- (NSURL *)requestURLWithActionID:(NSString *)actionID + scheme:(NSString *)scheme + methodName:(NSString *)methodName + methodVersion:(NSString *)methodVersion + parameters:(NSDictionary *)parameters + error:(NSError *__autoreleasing *)errorRef +{ + NSMutableDictionary *queryParameters = [[NSMutableDictionary alloc] initWithDictionary:parameters]; + queryParameters[@"display"] = @"touch"; + NSString *bridgeArgs = [FBSDKBasicUtility JSONStringForObject:@{ FBSDK_BRIDGE_API_PROTOCOL_WEB_V1_ACTION_ID_KEY: actionID } + error:NULL + invalidObjectHandler:NULL]; + NSDictionary *redirectQueryParameters = @{ FBSDK_BRIDGE_API_PROTOCOL_WEB_V1_BRIDGE_ARGS_KEY: bridgeArgs }; + NSURL *redirectURL = [FBSDKInternalUtility appURLWithHost:@"bridge" + path:methodName + queryParameters:redirectQueryParameters + error:NULL]; + [FBSDKBasicUtility dictionary:queryParameters setObject:redirectURL forKey:@"redirect_uri"]; + [queryParameters addEntriesFromDictionary:parameters]; + return [FBSDKInternalUtility facebookURLWithHostPrefix:@"m" + path:[@"/dialog/" stringByAppendingString:methodName] + queryParameters:queryParameters + error:NULL]; +} + +- (NSDictionary *)responseParametersForActionID:(NSString *)actionID + queryParameters:(NSDictionary *)queryParameters + cancelled:(BOOL *)cancelledRef + error:(NSError *__autoreleasing *)errorRef +{ + if (errorRef != NULL) { + *errorRef = nil; + } + NSInteger errorCode = [FBSDKTypeUtility integerValue:queryParameters[@"error_code"]]; + switch (errorCode) { + case 0:{ + // good to go, handle the other codes and bail + break; + } + case 4201:{ + return @{ + @"completionGesture": @"cancel", + }; + break; + } + default:{ + if (errorRef != NULL) { + *errorRef = [FBSDKError errorWithCode:errorCode + message:[FBSDKTypeUtility stringValue:queryParameters[@"error_message"]]]; + } + return nil; + break; + } + } + + NSError *error; + NSString *bridgeParametersJSON = [FBSDKTypeUtility stringValue:queryParameters[FBSDK_BRIDGE_API_PROTOCOL_WEB_V1_BRIDGE_ARGS_KEY]]; + NSDictionary *bridgeParameters = [FBSDKBasicUtility objectForJSONString:bridgeParametersJSON error:&error]; + if (!bridgeParameters) { + if (error && (errorRef != NULL)) { + *errorRef = [FBSDKError invalidArgumentErrorWithName:FBSDK_BRIDGE_API_PROTOCOL_WEB_V1_BRIDGE_ARGS_KEY + value:bridgeParametersJSON + message:nil + underlyingError:error]; + } + return nil; + } + NSString *responseActionID = bridgeParameters[FBSDK_BRIDGE_API_PROTOCOL_WEB_V1_ACTION_ID_KEY]; + responseActionID = [FBSDKTypeUtility stringValue:responseActionID]; + if (![responseActionID isEqualToString:actionID]) { + return nil; + } + NSMutableDictionary *resultParameters = [queryParameters mutableCopy]; + [resultParameters removeObjectForKey:FBSDK_BRIDGE_API_PROTOCOL_WEB_V1_BRIDGE_ARGS_KEY]; + resultParameters[@"didComplete"] = @YES; + return resultParameters; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/ProtocolVersions/FBSDKBridgeAPIProtocolWebV2.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/ProtocolVersions/FBSDKBridgeAPIProtocolWebV2.h new file mode 100644 index 0000000000000..cf83b331d9224 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/ProtocolVersions/FBSDKBridgeAPIProtocolWebV2.h @@ -0,0 +1,26 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import "FBSDKBridgeAPIProtocol.h" + +NS_SWIFT_NAME(BridgeAPIProtocolWebV2) +@interface FBSDKBridgeAPIProtocolWebV2 : NSObject + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/ProtocolVersions/FBSDKBridgeAPIProtocolWebV2.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/ProtocolVersions/FBSDKBridgeAPIProtocolWebV2.m new file mode 100644 index 0000000000000..0314799a52703 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/ProtocolVersions/FBSDKBridgeAPIProtocolWebV2.m @@ -0,0 +1,129 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKBridgeAPIProtocolWebV2.h" + +#import "FBSDKBridgeAPIProtocolNativeV1.h" +#import "FBSDKDialogConfiguration.h" +#import "FBSDKError.h" +#import "FBSDKInternalUtility.h" +#import "FBSDKServerConfiguration.h" +#import "FBSDKServerConfigurationManager.h" + +@implementation FBSDKBridgeAPIProtocolWebV2 +{ + FBSDKBridgeAPIProtocolNativeV1 *_nativeProtocol; +} + +#pragma mark - Object Lifecycle + +- (instancetype)init +{ + if ((self = [super init])) { + _nativeProtocol = [[FBSDKBridgeAPIProtocolNativeV1 alloc] initWithAppScheme:nil + pasteboard:nil + dataLengthThreshold:0 + includeAppIcon:NO]; + } + return self; +} + +#pragma mark - FBSDKBridgeAPIProtocol + +- (NSURL *)_redirectURLWithActionID:(NSString *)actionID methodName:(NSString *)methodName error:(NSError **)errorRef +{ + NSDictionary *queryParameters = nil; + if (actionID) { + NSDictionary *bridgeArgs = @{ FBSDKBridgeAPIProtocolNativeV1BridgeParameterInputKeys.actionID: actionID }; + NSString *bridgeArgsString = [FBSDKBasicUtility JSONStringForObject:bridgeArgs + error:NULL + invalidObjectHandler:NULL]; + queryParameters = @{ FBSDKBridgeAPIProtocolNativeV1InputKeys.bridgeArgs: bridgeArgsString }; + } + return [FBSDKInternalUtility appURLWithHost:@"bridge" path:methodName queryParameters:queryParameters error:errorRef]; +} + +- (NSURL *)_requestURLForDialogConfiguration:(FBSDKDialogConfiguration *)dialogConfiguration error:(NSError **)errorRef +{ + NSURL *requestURL = dialogConfiguration.URL; + if (!requestURL.scheme) { + requestURL = [FBSDKInternalUtility facebookURLWithHostPrefix:@"m" + path:requestURL.path + queryParameters:@{} + defaultVersion:@"" + error:errorRef]; + } + return requestURL; +} + +- (NSURL *)requestURLWithActionID:(NSString *)actionID + scheme:(NSString *)scheme + methodName:(NSString *)methodName + methodVersion:(NSString *)methodVersion + parameters:(NSDictionary *)parameters + error:(NSError *__autoreleasing *)errorRef +{ + FBSDKServerConfiguration *serverConfiguration = [FBSDKServerConfigurationManager cachedServerConfiguration]; + FBSDKDialogConfiguration *dialogConfiguration = [serverConfiguration dialogConfigurationForDialogName:methodName]; + if (!dialogConfiguration) { + if (errorRef != NULL) { + *errorRef = [FBSDKError errorWithCode:FBSDKErrorDialogUnavailable message:nil]; + } + return nil; + } + + NSURL *requestURL = [_nativeProtocol requestURLWithActionID:actionID + scheme:scheme + methodName:methodName + methodVersion:methodVersion + parameters:parameters error:errorRef]; + if (!requestURL) { + return nil; + } + + NSMutableDictionary *queryParameters = [[FBSDKBasicUtility dictionaryWithQueryString:requestURL.query] mutableCopy]; + queryParameters[@"ios_bundle_id"] = [NSBundle mainBundle].bundleIdentifier; + NSURL *redirectURL = [self _redirectURLWithActionID:nil methodName:methodName error:errorRef]; + if (!redirectURL) { + return nil; + } + queryParameters[@"redirect_url"] = redirectURL; + + requestURL = [self _requestURLForDialogConfiguration:dialogConfiguration error:errorRef]; + if (!requestURL) { + return nil; + } + return [FBSDKInternalUtility URLWithScheme:requestURL.scheme + host:requestURL.host + path:requestURL.path + queryParameters:queryParameters + error:errorRef]; +} + +- (NSDictionary *)responseParametersForActionID:(NSString *)actionID + queryParameters:(NSDictionary *)queryParameters + cancelled:(BOOL *)cancelledRef + error:(NSError *__autoreleasing *)errorRef +{ + return [_nativeProtocol responseParametersForActionID:actionID + queryParameters:queryParameters + cancelled:cancelledRef + error:errorRef]; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Cryptography/FBSDKCrypto.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Cryptography/FBSDKCrypto.h new file mode 100644 index 0000000000000..226bb9b4479dc --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Cryptography/FBSDKCrypto.h @@ -0,0 +1,37 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_SWIFT_NAME(Crypto) +@interface FBSDKCrypto : NSObject + +/** + Generate numOfBytes random data. + + This calls the system-provided function SecRandomCopyBytes, based on /dev/random. + */ ++ (NSData *)randomBytes:(NSUInteger)numOfBytes; + +/** + * Generate numOfBytes random data, base64-encoded. + * This calls the system-provided function SecRandomCopyBytes, based on /dev/random. + */ ++ (NSString *)randomString:(NSUInteger)numOfBytes; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Cryptography/FBSDKCrypto.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Cryptography/FBSDKCrypto.m new file mode 100644 index 0000000000000..f9365b8ce20c4 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Cryptography/FBSDKCrypto.m @@ -0,0 +1,53 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKCrypto.h" + +#import "FBSDKBase64.h" +#import "FBSDKDynamicFrameworkLoader.h" + +static inline void FBSDKCryptoBlankData(NSData *data) +{ + if (!data) { + return; + } + bzero((void *) [data bytes], [data length]); +} + +@implementation FBSDKCrypto + ++ (NSData *)randomBytes:(NSUInteger)numOfBytes +{ + uint8_t *buffer = malloc(numOfBytes); + int result = fbsdkdfl_SecRandomCopyBytes([FBSDKDynamicFrameworkLoader loadkSecRandomDefault], numOfBytes, buffer); + if (result != 0) { + free(buffer); + return nil; + } + return [NSData dataWithBytesNoCopy:buffer length:numOfBytes]; +} + ++ (NSString *)randomString:(NSUInteger)numOfBytes +{ + NSData *randomStringData = [FBSDKCrypto randomBytes:numOfBytes]; + NSString *randomString = [FBSDKBase64 encodeData:randomStringData]; + FBSDKCryptoBlankData(randomStringData); + return randomString; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ErrorRecovery/FBSDKErrorRecoveryAttempter.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ErrorRecovery/FBSDKErrorRecoveryAttempter.h new file mode 100644 index 0000000000000..4c40c05c1399b --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ErrorRecovery/FBSDKErrorRecoveryAttempter.h @@ -0,0 +1,35 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import + +@class FBSDKErrorRecoveryConfiguration; + +NS_SWIFT_NAME(ErrorRecoveryAttempter) +@interface FBSDKErrorRecoveryAttempter : NSObject + +// can return nil if configuration is not supported. ++ (instancetype)recoveryAttempterFromConfiguration:(FBSDKErrorRecoveryConfiguration *)configuration; + +@end + +@interface FBSDKErrorRecoveryAttempter (Protected) +- (void)completeRecovery:(BOOL)didRecover delegate:(id)delegate didRecoverSelector:(SEL)didRecoverSelector contextInfo:(void *)contextInfo; +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ErrorRecovery/FBSDKErrorRecoveryAttempter.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ErrorRecovery/FBSDKErrorRecoveryAttempter.m new file mode 100644 index 0000000000000..07aa418dbc0a8 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ErrorRecovery/FBSDKErrorRecoveryAttempter.m @@ -0,0 +1,56 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKErrorRecoveryAttempter.h" + +#import "_FBSDKTemporaryErrorRecoveryAttempter.h" +#import "FBSDKErrorRecoveryConfiguration.h" + +@implementation FBSDKErrorRecoveryAttempter + ++ (instancetype)recoveryAttempterFromConfiguration:(FBSDKErrorRecoveryConfiguration *)configuration +{ + if (configuration.errorCategory == FBSDKGraphRequestErrorTransient) { + return [[_FBSDKTemporaryErrorRecoveryAttempter alloc] init]; + } else if (configuration.errorCategory == FBSDKGraphRequestErrorOther) { + return nil; + } + if ([configuration.recoveryActionName isEqualToString:@"login"]) { + Class loginRecoveryAttmpterClass = NSClassFromString(@"_FBSDKLoginRecoveryAttempter"); + if (loginRecoveryAttmpterClass) { + return [[loginRecoveryAttmpterClass alloc] init]; + } + } + return nil; +} + +- (void)attemptRecoveryFromError:(NSError *)error optionIndex:(NSUInteger)recoveryOptionIndex delegate:(id)delegate didRecoverSelector:(SEL)didRecoverSelector contextInfo:(void *)contextInfo +{ + // should be implemented by subclasses. +} +@end + +@implementation FBSDKErrorRecoveryAttempter(Protected) + +- (void)completeRecovery:(BOOL)didRecover delegate:(id)delegate didRecoverSelector:(SEL)didRecoverSelector contextInfo:(void *)contextInfo +{ + void (*callback)(id, SEL, BOOL, void *) = (void *)[delegate methodForSelector:didRecoverSelector]; + (*callback)(delegate, didRecoverSelector, didRecover, contextInfo); +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ErrorRecovery/_FBSDKTemporaryErrorRecoveryAttempter.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ErrorRecovery/_FBSDKTemporaryErrorRecoveryAttempter.h new file mode 100644 index 0000000000000..21ad040d1d154 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ErrorRecovery/_FBSDKTemporaryErrorRecoveryAttempter.h @@ -0,0 +1,23 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKErrorRecoveryAttempter.h" + +@interface _FBSDKTemporaryErrorRecoveryAttempter : FBSDKErrorRecoveryAttempter + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ErrorRecovery/_FBSDKTemporaryErrorRecoveryAttempter.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ErrorRecovery/_FBSDKTemporaryErrorRecoveryAttempter.m new file mode 100644 index 0000000000000..bb555aa7f8b06 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ErrorRecovery/_FBSDKTemporaryErrorRecoveryAttempter.m @@ -0,0 +1,28 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "_FBSDKTemporaryErrorRecoveryAttempter.h" + +@implementation _FBSDKTemporaryErrorRecoveryAttempter + +- (void)attemptRecoveryFromError:(NSError *)error optionIndex:(NSUInteger)recoveryOptionIndex delegate:(id)delegate didRecoverSelector:(SEL)didRecoverSelector contextInfo:(void *)contextInfo +{ + [super completeRecovery:YES delegate:delegate didRecoverSelector:didRecoverSelector contextInfo:contextInfo]; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKAppLinkReturnToRefererView_Internal.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKAppLinkReturnToRefererView_Internal.h new file mode 100644 index 0000000000000..96997007fa842 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKAppLinkReturnToRefererView_Internal.h @@ -0,0 +1,25 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKAppLinkReturnToRefererView.h" + +@interface FBSDKAppLinkReturnToRefererView (Internal) + +- (CGFloat)statusBarHeight; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKAppLink_Internal.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKAppLink_Internal.h new file mode 100644 index 0000000000000..c81fe1ec77dde --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKAppLink_Internal.h @@ -0,0 +1,40 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKAppLink.h" + +FOUNDATION_EXPORT NSString *const FBSDKAppLinkDataParameterName; +FOUNDATION_EXPORT NSString *const FBSDKAppLinkTargetKeyName; +FOUNDATION_EXPORT NSString *const FBSDKAppLinkUserAgentKeyName; +FOUNDATION_EXPORT NSString *const FBSDKAppLinkExtrasKeyName; +FOUNDATION_EXPORT NSString *const FBSDKAppLinkVersionKeyName; +FOUNDATION_EXPORT NSString *const FBSDKAppLinkRefererAppLink; +FOUNDATION_EXPORT NSString *const FBSDKAppLinkRefererAppName; +FOUNDATION_EXPORT NSString *const FBSDKAppLinkRefererUrl; + +@interface FBSDKAppLink (Internal) + ++ (instancetype)appLinkWithSourceURL:(NSURL *)sourceURL + targets:(NSArray *)targets + webURL:(NSURL *)webURL + isBackToReferrer:(BOOL)isBackToReferrer; + +/** return if this AppLink is to go back to referrer. */ +@property (nonatomic, assign, readonly, getter=isBackToReferrer) BOOL backToReferrer; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKApplicationDelegate+Internal.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKApplicationDelegate+Internal.h new file mode 100644 index 0000000000000..54324f2160cbc --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKApplicationDelegate+Internal.h @@ -0,0 +1,46 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import + +#import "FBSDKCoreKit+Internal.h" + +NS_ASSUME_NONNULL_BEGIN + +#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0 + +FOUNDATION_EXPORT NSNotificationName const FBSDKApplicationDidBecomeActiveNotification; + +#else + +FOUNDATION_EXPORT NSString *const FBSDKApplicationDidBecomeActiveNotification; + +#endif + +@interface FBSDKApplicationDelegate () + +- (void)addObserver:(id)observer; +- (void)removeObserver:(id)observer; ++ (BOOL)isSDKInitialized; ++ (UIApplicationState)applicationState; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKApplicationObserving.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKApplicationObserving.h new file mode 100644 index 0000000000000..9eba4ce116194 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKApplicationObserving.h @@ -0,0 +1,38 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKApplicationObserving + +@optional +- (void)applicationDidBecomeActive:(nullable UIApplication *)application; +- (void)applicationDidEnterBackground:(nullable UIApplication *)application; +- (BOOL)application:(UIApplication *)application +didFinishLaunchingWithOptions:(nullable NSDictionary *)launchOptions; + +- (BOOL)application:(UIApplication *)application + openURL:(NSURL *)url + sourceApplication:(nullable NSString *)sourceApplication + annotation:(nullable id)annotation; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKAudioResourceLoader.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKAudioResourceLoader.h new file mode 100644 index 0000000000000..0bddb3cce1258 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKAudioResourceLoader.h @@ -0,0 +1,40 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface FBSDKAudioResourceLoader : NSObject + ++ (instancetype)sharedLoader; + +- (BOOL)loadSound:(NSError *__autoreleasing *)errorRef; +- (void)playSound; + +@end + +@interface FBSDKAudioResourceLoader (Subclass) + +@property (class, nonatomic, copy, nullable, readonly) NSString *name; +@property (class, nonatomic, copy, nullable, readonly) NSData *data; +@property (class, nonatomic, assign, readonly) NSUInteger version; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKAudioResourceLoader.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKAudioResourceLoader.m new file mode 100644 index 0000000000000..b7ea5d7d21204 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKAudioResourceLoader.m @@ -0,0 +1,151 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKAudioResourceLoader.h" + +#import "FBSDKDynamicFrameworkLoader.h" +#import "FBSDKLogger.h" +#import "FBSDKSettings.h" + +@implementation FBSDKAudioResourceLoader +{ + NSFileManager *_fileManager; + NSURL *_fileURL; + SystemSoundID _systemSoundID; +} + +#pragma mark - Class Methods + ++ (instancetype)sharedLoader +{ + static NSMutableDictionary *_loaderCache = nil; + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + _loaderCache = [[NSMutableDictionary alloc] init]; + }); + + NSString *name = [self name]; + FBSDKAudioResourceLoader *loader; + @synchronized(_loaderCache) { + loader = _loaderCache[name]; + if (!loader) { + loader = [[self alloc] init]; + NSError *error = nil; + if ([loader loadSound:&error]) { + _loaderCache[name] = loader; + } else { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors + formatString:@"%@ error: %@", self, error]; + } + } + } + + return loader; +} + +#pragma mark - Object Lifecycle + +- (instancetype)init +{ + if ((self = [super init])) { + _fileManager = [[NSFileManager alloc] init]; + } + return self; +} + +- (void)dealloc +{ + fbsdkdfl_AudioServicesDisposeSystemSoundID(_systemSoundID); +} + +#pragma mark - Public API + +- (BOOL)loadSound:(NSError **)errorRef +{ + NSURL *fileURL = [self _fileURL:errorRef]; + + if (![_fileManager fileExistsAtPath:fileURL.path]) { + NSData *data = [[self class] data]; + if (![data writeToURL:fileURL options:NSDataWritingAtomic error:errorRef]) { + return NO; + } + } + + OSStatus status = fbsdkdfl_AudioServicesCreateSystemSoundID((__bridge CFURLRef)fileURL, &_systemSoundID); + return (status == kAudioServicesNoError); +} + +- (void)playSound +{ + if ((_systemSoundID == 0) && ![self loadSound:NULL]) { + return; + } + fbsdkdfl_AudioServicesPlaySystemSound(_systemSoundID); +} + +#pragma mark - Helper Methods + +- (NSURL *)_fileURL:(NSError **)errorRef +{ + if (_fileURL) { + return _fileURL; + } + + NSURL *baseURL = [_fileManager URLForDirectory:NSCachesDirectory + inDomain:NSUserDomainMask + appropriateForURL:nil + create:YES + error:errorRef]; + if (!baseURL) { + return nil; + } + + NSURL *directoryURL = [baseURL URLByAppendingPathComponent:@"fb_audio" isDirectory:YES]; + NSURL *versionURL = [directoryURL URLByAppendingPathComponent:[NSString stringWithFormat:@"%lu", (unsigned long)[[self class] version]] + isDirectory:YES]; + if (![_fileManager createDirectoryAtURL:versionURL withIntermediateDirectories:YES attributes:nil error:errorRef]) { + return nil; + } + + _fileURL = [[versionURL URLByAppendingPathComponent:[[self class] name]] copy]; + + return _fileURL; +} + +@end + +@implementation FBSDKAudioResourceLoader (Subclass) + +#pragma mark - Subclass Methods + ++ (NSString *)name +{ + return nil; +} + ++ (NSUInteger)version +{ + return 0; +} + ++ (NSData *)data +{ + return nil; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKContainerViewController.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKContainerViewController.h new file mode 100644 index 0000000000000..b83dd08a2fbf7 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKContainerViewController.h @@ -0,0 +1,41 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKContainerViewController; + +NS_SWIFT_NAME(ContainerViewControllerDelegate) +@protocol FBSDKContainerViewControllerDelegate + +- (void)viewControllerDidDisappear:(FBSDKContainerViewController *)viewController animated:(BOOL)animated; + +@end + +NS_SWIFT_NAME(FBContainerViewController) +@interface FBSDKContainerViewController : UIViewController + +@property (nonatomic, weak, nullable) id delegate; + +- (void)displayChildController:(UIViewController *)childController; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKContainerViewController.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKContainerViewController.m new file mode 100644 index 0000000000000..e1c2e6d93a726 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKContainerViewController.m @@ -0,0 +1,78 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKContainerViewController.h" + +@implementation FBSDKContainerViewController + +- (void)viewDidDisappear:(BOOL)animated +{ + [super viewDidDisappear:animated]; + if ([self.delegate respondsToSelector:@selector(viewControllerDidDisappear:animated:)]) { + [self.delegate viewControllerDidDisappear:self animated:animated]; + } +} + +- (void)displayChildController:(UIViewController *)childController +{ + [self addChildViewController:childController]; + UIView *view = self.view; + UIView *childView = childController.view; + childView.translatesAutoresizingMaskIntoConstraints = NO; + childView.frame = view.frame; + [view addSubview:childView]; + + [view addConstraints: + @[ + [NSLayoutConstraint constraintWithItem:childView + attribute:NSLayoutAttributeTop + relatedBy:NSLayoutRelationEqual + toItem:view + attribute:NSLayoutAttributeTop + multiplier:1.0 + constant:0.0], + + [NSLayoutConstraint constraintWithItem:childView + attribute:NSLayoutAttributeBottom + relatedBy:NSLayoutRelationEqual + toItem:view + attribute:NSLayoutAttributeBottom + multiplier:1.0 + constant:0.0], + + [NSLayoutConstraint constraintWithItem:childView + attribute:NSLayoutAttributeLeading + relatedBy:NSLayoutRelationEqual + toItem:view + attribute:NSLayoutAttributeLeading + multiplier:1.0 + constant:0.0], + + [NSLayoutConstraint constraintWithItem:childView + attribute:NSLayoutAttributeTrailing + relatedBy:NSLayoutRelationEqual + toItem:view + attribute:NSLayoutAttributeTrailing + multiplier:1.0 + constant:0.0], + ]]; + + [childController didMoveToParentViewController:self]; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKCoreKit+Internal.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKCoreKit+Internal.h new file mode 100644 index 0000000000000..07a2b00364306 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKCoreKit+Internal.h @@ -0,0 +1,165 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import + +#ifdef COCOAPODS + +#if !TARGET_OS_TV +#import "FBSDKViewHierarchy.h" +#import "FBSDKCodelessMacros.h" +#import "FBSDKCodelessIndexer.h" +#import "FBSDKMetadataIndexer.h" +#import "FBSDKCrypto.h" +#import "FBSDKAudioResourceLoader.h" +#import "FBSDKContainerViewController.h" +#import "FBSDKBridgeAPI.h" +#import "FBSDKMonotonicTime.h" +#import "FBSDKTriStateBOOL.h" +#import "FBSDKCloseIcon.h" +#import "FBSDKColor.h" +#import "FBSDKMaleSilhouetteIcon.h" +#import "FBSDKUIUtility.h" +#import "FBSDKViewImpressionTracker.h" +#import "FBSDKWebDialog.h" +#else +#import "FBSDKDeviceButton+Internal.h" +#import "FBSDKDeviceDialogView.h" +#import "FBSDKSmartDeviceDialogView.h" +#import "FBSDKDeviceViewControllerBase+Internal.h" +#import "FBSDKModalFormPresentationController.h" +#endif + +#import "FBSDKAppEvents+Internal.h" +#import "FBSDKAppEventsState.h" +#import "FBSDKAppEventsStateManager.h" +#import "FBSDKAppEventsUtility.h" +#import "FBSDKRestrictiveDataFilterManager.h" +#import "FBSDKTimeSpentData.h" +#import "FBSDKUserDataStore.h" +#import "FBSDKBase64.h" +#import "FBSDKErrorRecoveryAttempter.h" +#import "FBSDKDynamicFrameworkLoader.h" +#import "FBSDKApplicationObserving.h" +#import "FBSDKApplicationDelegate+Internal.h" +#import "FBSDKDeviceRequestsHelper.h" +#import "FBSDKError.h" +#import "FBSDKImageDownloader.h" +#import "FBSDKInternalUtility.h" +#import "FBSDKLogger.h" +#import "FBSDKMath.h" +#import "FBSDKSettings+Internal.h" +#import "FBSDKSwizzler.h" +#import "FBSDKTypeUtility.h" +#import "FBSDKBasicUtility.h" +#import "FBSDKURLSession.h" +#import "FBSDKURLSessionTask.h" +#import "FBSDKCrashHandler.h" +#import "FBSDKLibAnalyzer.h" +#import "FBSDKCrashObserving.h" +#import "FBSDKGraphRequest+Internal.h" +#import "FBSDKGraphRequestConnection+Internal.h" +#import "FBSDKGraphRequestMetadata.h" +#import "FBSDKDialogConfiguration.h" +#import "FBSDKServerConfiguration+Internal.h" +#import "FBSDKServerConfiguration.h" +#import "FBSDKServerConfigurationManager+Internal.h" +#import "FBSDKServerConfigurationManager.h" +#import "FBSDKGateKeeperManager.h" +#import "FBSDKAccessTokenCache.h" +#import "FBSDKAccessTokenCaching.h" +#import "FBSDKKeychainStore.h" +#import "FBSDKKeychainStoreViaBundleID.h" +#import "FBSDKButton+Subclass.h" +#import "FBSDKIcon.h" +#import "FBSDKLogo.h" + +#else + +#if !TARGET_OS_TV +#import "../AppEvents/Internal/Codeless/FBSDKViewHierarchy.h" +#import "../AppEvents/Internal/Codeless/FBSDKCodelessMacros.h" +#import "../AppEvents/Internal/Codeless/FBSDKCodelessIndexer.h" +#import "../AppEvents/Internal/AAM/FBSDKMetadataIndexer.h" +#import "Cryptography/FBSDKCrypto.h" +#import "FBSDKAudioResourceLoader.h" +#import "FBSDKContainerViewController.h" +#import "BridgeAPI/FBSDKBridgeAPI.h" +#import "FBSDKMonotonicTime.h" +#import "FBSDKTriStateBOOL.h" +#import "UI/FBSDKCloseIcon.h" +#import "UI/FBSDKColor.h" +#import "UI/FBSDKMaleSilhouetteIcon.h" +#import "UI/FBSDKUIUtility.h" +#import "UI/FBSDKViewImpressionTracker.h" +#import "WebDialog/FBSDKWebDialog.h" +#else +#import "Device/FBSDKDeviceButton+Internal.h" +#import "Device/FBSDKDeviceDialogView.h" +#import "Device/FBSDKSmartDeviceDialogView.h" +#import "Device/FBSDKDeviceViewControllerBase+Internal.h" +#import "Device/FBSDKModalFormPresentationController.h" +#endif + +#import "../AppEvents/Internal/FBSDKAppEvents+Internal.h" +#import "../AppEvents/Internal/FBSDKAppEventsState.h" +#import "../AppEvents/Internal/FBSDKAppEventsStateManager.h" +#import "../AppEvents/Internal/FBSDKAppEventsUtility.h" +#import "../AppEvents/Internal/RestrictiveDataFilter/FBSDKRestrictiveDataFilterManager.h" +#import "../AppEvents/Internal/FBSDKTimeSpentData.h" +#import "../AppEvents/Internal/FBSDKUserDataStore.h" +#import "Base64/FBSDKBase64.h" +#import "ErrorRecovery/FBSDKErrorRecoveryAttempter.h" +#import "FBSDKDynamicFrameworkLoader.h" +#import "FBSDKApplicationObserving.h" +#import "FBSDKApplicationDelegate+Internal.h" +#import "FBSDKDeviceRequestsHelper.h" +#import "FBSDKError.h" +#import "FBSDKImageDownloader.h" +#import "FBSDKInternalUtility.h" +#import "FBSDKLogger.h" +#import "FBSDKMath.h" +#import "FBSDKSettings+Internal.h" +#import "FBSDKSwizzler.h" +#import "../Basics/Internal/FBSDKTypeUtility.h" +#import "../Basics/Internal/FBSDKBasicUtility.h" +#import "../Basics/Internal/FBSDKURLSession.h" +#import "../Basics/Internal/FBSDKURLSessionTask.h" +#import "../Basics/Instrument/FBSDKCrashHandler.h" +#import "../Basics/Instrument/FBSDKLibAnalyzer.h" +#import "../Basics/Instrument/FBSDKCrashObserving.h" +#import "Network/FBSDKGraphRequest+Internal.h" +#import "Network/FBSDKGraphRequestConnection+Internal.h" +#import "Network/FBSDKGraphRequestMetadata.h" +#import "ServerConfiguration/FBSDKDialogConfiguration.h" +#import "ServerConfiguration/FBSDKServerConfiguration+Internal.h" +#import "ServerConfiguration/FBSDKServerConfiguration.h" +#import "ServerConfiguration/FBSDKServerConfigurationManager+Internal.h" +#import "ServerConfiguration/FBSDKServerConfigurationManager.h" +#import "ServerConfiguration/FBSDKGateKeeperManager.h" +#import "TokenCaching/FBSDKAccessTokenCache.h" +#import "TokenCaching/FBSDKAccessTokenCaching.h" +#import "TokenCaching/FBSDKKeychainStore.h" +#import "TokenCaching/FBSDKKeychainStoreViaBundleID.h" +#import "UI/FBSDKButton+Subclass.h" +#import "UI/FBSDKIcon.h" +#import "UI/FBSDKLogo.h" + +#endif diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKDeviceRequestsHelper.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKDeviceRequestsHelper.h new file mode 100644 index 0000000000000..3f02723a90e92 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKDeviceRequestsHelper.h @@ -0,0 +1,63 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +#define FBSDK_DEVICE_INFO_PARAM @"device_info" + +/* + @class + + Helper class for device requests mDNS broadcasts. Note this is only intended for + internal consumption. + */ +NS_SWIFT_NAME(DeviceRequestsHelper) +@interface FBSDKDeviceRequestsHelper : NSObject + +/** + Get device info to include with the GraphRequest + */ +@property (class, nonatomic, copy, readonly) NSString *getDeviceInfo; + +/** + Start the mDNS advertisement service for a device request + @param loginCode The login code associated with the action for the device request. + @return True if the service broadcast was successfully started. + */ ++ (BOOL)startAdvertisementService:(NSString *)loginCode withDelegate:(id)delegate; + +/** + Check if a service delegate is registered with particular advertisement service + @param delegate The delegate to check if registered. + @param service The advertisement service to check for. + @return True if the service is the one the delegate registered with. + */ ++ (BOOL)isDelegate:(id)delegate forAdvertisementService:(NSNetService *)service; + +/** + Stop the mDNS advertisement service for a device request + @param delegate The delegate registered with the service. + */ ++ (void)cleanUpAdvertisementService:(id)delegate; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKDeviceRequestsHelper.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKDeviceRequestsHelper.m new file mode 100644 index 0000000000000..d99e0efe35764 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKDeviceRequestsHelper.m @@ -0,0 +1,122 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKDeviceRequestsHelper.h" + +#import + +#import + +#import + +#define FBSDK_DEVICE_INFO_DEVICE @"device" +#define FBSDK_DEVICE_INFO_MODEL @"model" +#define FBSDK_HEADER @"fbsdk" +#if !TARGET_OS_TV +#define FBSDK_FLAVOR @"ios" +#else +#define FBSDK_FLAVOR @"tvos" +#endif +#define FBSDK_SERVICE_TYPE @"_fb._tcp." + +static NSMapTable *g_mdnsAdvertisementServices; + +@implementation FBSDKDeviceRequestsHelper + +#pragma mark - Class Methods + ++ (void)initialize { + // We use weak to strong in order to retain the advertisement services + // without having to pass them back to the delegate that started them + // Note that in case the delegate is destroyed before it had a chance to + // stop the service, the service will continue broadcasting until the map + // resizes itself and releases the service, causing it to stop + g_mdnsAdvertisementServices = [NSMapTable weakToStrongObjectsMapTable]; +} + ++ (NSString *)getDeviceInfo +{ + struct utsname systemInfo; + uname(&systemInfo); + NSDictionary *deviceInfo = @{ + FBSDK_DEVICE_INFO_DEVICE: @(systemInfo.machine), + FBSDK_DEVICE_INFO_MODEL: [UIDevice currentDevice].model, + }; + NSError *err; + NSData *jsonDeviceInfo = [NSJSONSerialization dataWithJSONObject:deviceInfo + options:0 + error:&err]; + + return [[NSString alloc] initWithData:jsonDeviceInfo encoding:NSUTF8StringEncoding]; +} + ++ (BOOL)startAdvertisementService:(NSString *)loginCode withDelegate:(id)delegate +{ + static NSString *sdkVersion = nil; + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + // Dots in the version will mess up the bonjour DNS record parsing + sdkVersion = [[FBSDKSettings sdkVersion] stringByReplacingOccurrencesOfString:@"." withString:@"|"]; + if (sdkVersion.length > 10 || + ![[NSCharacterSet decimalDigitCharacterSet] characterIsMember:[sdkVersion characterAtIndex:0]]) { + sdkVersion = @"dev"; + } + }); + NSString *serviceName = [NSString stringWithFormat:@"%@_%@_%@", + FBSDK_HEADER, + [NSString stringWithFormat:@"%@-%@", + FBSDK_FLAVOR, + sdkVersion + ], + loginCode + ]; + if (serviceName.length > 60) { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors logEntry:@"serviceName exceeded 60 characters"]; + } + NSNetService *mdnsAdvertisementService = [[NSNetService alloc] + initWithDomain:@"local." + type:FBSDK_SERVICE_TYPE + name:serviceName + port:0]; + mdnsAdvertisementService.delegate = delegate; + [mdnsAdvertisementService publishWithOptions:NSNetServiceNoAutoRename | NSNetServiceListenForConnections]; + [FBSDKAppEvents logInternalEvent:FBSDKAppEventNameFBSDKSmartLoginService + isImplicitlyLogged:YES]; + [g_mdnsAdvertisementServices setObject:mdnsAdvertisementService forKey:delegate]; + + return YES; +} + ++ (BOOL)isDelegate:(id)delegate forAdvertisementService:(NSNetService *)service +{ + NSNetService *mdnsAdvertisementService = [g_mdnsAdvertisementServices objectForKey:delegate]; + return (mdnsAdvertisementService == service); +} + ++ (void)cleanUpAdvertisementService:(id)delegate +{ + NSNetService *mdnsAdvertisementService = [g_mdnsAdvertisementServices objectForKey:delegate]; + if (mdnsAdvertisementService != nil) { + // We are not interested in the stop publish event + mdnsAdvertisementService.delegate = nil; + [mdnsAdvertisementService stop]; + [g_mdnsAdvertisementServices removeObjectForKey:delegate]; + } +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKDynamicFrameworkLoader.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKDynamicFrameworkLoader.h new file mode 100644 index 0000000000000..35d002c16ee23 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKDynamicFrameworkLoader.h @@ -0,0 +1,244 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +#pragma mark - Security APIs + +// These are local wrappers around the corresponding methods in Security/SecRandom.h +FOUNDATION_EXPORT int fbsdkdfl_SecRandomCopyBytes(SecRandomRef rnd, size_t count, uint8_t *bytes); + +// These are local wrappers around Keychain API +FOUNDATION_EXPORT OSStatus fbsdkdfl_SecItemUpdate(CFDictionaryRef query, CFDictionaryRef attributesToUpdate); +FOUNDATION_EXPORT OSStatus fbsdkdfl_SecItemAdd(CFDictionaryRef attributes, CFTypeRef _Nullable * _Nullable result); +FOUNDATION_EXPORT OSStatus fbsdkdfl_SecItemCopyMatching(CFDictionaryRef query, CFTypeRef _Nullable * _Nullable result); +FOUNDATION_EXPORT OSStatus fbsdkdfl_SecItemDelete(CFDictionaryRef query); + +#pragma mark - Social Constants + +FOUNDATION_EXPORT NSString *fbsdkdfl_SLServiceTypeFacebook(void); +FOUNDATION_EXPORT NSString *fbsdkdfl_SLServiceTypeTwitter(void); + +#pragma mark - Social Classes + +FOUNDATION_EXPORT Class fbsdkdfl_SLComposeViewControllerClass(void); + +#pragma mark - MessageUI Classes + +FOUNDATION_EXPORT Class fbsdkdfl_MFMailComposeViewControllerClass(void); +FOUNDATION_EXPORT Class fbsdkdfl_MFMessageComposeViewControllerClass(void); + +#pragma mark - QuartzCore Classes + +FOUNDATION_EXPORT Class fbsdkdfl_CATransactionClass(void); + +#pragma mark - QuartzCore APIs + +// These are local wrappers around the corresponding transform methods from QuartzCore.framework/CATransform3D.h +FOUNDATION_EXPORT CATransform3D fbsdkdfl_CATransform3DMakeScale (CGFloat sx, CGFloat sy, CGFloat sz); +FOUNDATION_EXPORT CATransform3D fbsdkdfl_CATransform3DMakeTranslation (CGFloat tx, CGFloat ty, CGFloat tz); +FOUNDATION_EXPORT CATransform3D fbsdkdfl_CATransform3DConcat (CATransform3D a, CATransform3D b); + +FOUNDATION_EXPORT const CATransform3D fbsdkdfl_CATransform3DIdentity; + +#pragma mark - AudioToolbox APIs + +// These are local wrappers around the corresponding methods in AudioToolbox/AudioToolbox.h +FOUNDATION_EXPORT OSStatus fbsdkdfl_AudioServicesCreateSystemSoundID(CFURLRef inFileURL, SystemSoundID *outSystemSoundID); +FOUNDATION_EXPORT OSStatus fbsdkdfl_AudioServicesDisposeSystemSoundID(SystemSoundID inSystemSoundID); +FOUNDATION_EXPORT void fbsdkdfl_AudioServicesPlaySystemSound(SystemSoundID inSystemSoundID); + +#pragma mark - AdSupport Classes + +FOUNDATION_EXPORT Class fbsdkdfl_ASIdentifierManagerClass(void); + +#pragma mark - SafariServices Classes + +FOUNDATION_EXPORT Class fbsdkdfl_SFSafariViewControllerClass(void); +FOUNDATION_EXPORT Class fbsdkdfl_SFAuthenticationSessionClass(void); + +#pragma mark - AuthenticationServices Classes + +FOUNDATION_EXPORT Class fbsdkdfl_ASWebAuthenticationSessionClass(void); + +#pragma mark - Accounts Constants + +FOUNDATION_EXPORT NSString *fbsdkdfl_ACFacebookAppIdKey(void); +FOUNDATION_EXPORT NSString *fbsdkdfl_ACFacebookAudienceEveryone(void); +FOUNDATION_EXPORT NSString *fbsdkdfl_ACFacebookAudienceFriends(void); +FOUNDATION_EXPORT NSString *fbsdkdfl_ACFacebookAudienceKey(void); +FOUNDATION_EXPORT NSString *fbsdkdfl_ACFacebookAudienceOnlyMe(void); +FOUNDATION_EXPORT NSString *fbsdkdfl_ACFacebookPermissionsKey(void); + +#pragma mark - Accounts Classes + +FOUNDATION_EXPORT Class fbsdkdfl_ACAccountStoreClass(void); + +#pragma mark - StoreKit classes + +FOUNDATION_EXPORT Class fbsdkdfl_SKPaymentQueueClass(void); +FOUNDATION_EXPORT Class fbsdkdfl_SKProductsRequestClass(void); + +#pragma mark - AssetsLibrary Classes + +FOUNDATION_EXPORT Class fbsdkdfl_ALAssetsLibraryClass(void); + +#pragma mark - CoreTelephony Classes + +FOUNDATION_EXPORT Class fbsdkdfl_CTTelephonyNetworkInfoClass(void); + +#pragma mark - CoreImage + +FOUNDATION_EXPORT Class fbsdkdfl_CIImageClass(void); +FOUNDATION_EXPORT Class fbsdkdfl_CIFilterClass(void); +FOUNDATION_EXPORT NSString *fbsdkdfl_kCIInputImageKey(void); +FOUNDATION_EXPORT NSString *fbsdkdfl_kCIInputRadiusKey(void); +FOUNDATION_EXPORT NSString *fbsdkdfl_kCIOutputImageKey(void); + +#pragma mark - Photos.framework + +FOUNDATION_EXPORT Class fbsdkdfl_PHPhotoLibrary(void); +FOUNDATION_EXPORT Class fbsdkdfl_PHAssetChangeRequest(void); + +#pragma mark - MobileCoreServices + +FOUNDATION_EXPORT CFStringRef fbsdkdfl_UTTypeCopyPreferredTagWithClass(CFStringRef inUTI, + CFStringRef inTagClass); +FOUNDATION_EXPORT CFStringRef fbsdkdfl_kUTTagClassMIMEType(void); +FOUNDATION_EXPORT CFStringRef fbsdkdfl_kUTTypeJPEG(void); +FOUNDATION_EXPORT CFStringRef fbsdkdfl_kUTTypePNG(void); + +#pragma mark - WebKit Classes + +FOUNDATION_EXPORT Class fbsdkdfl_WKWebViewClass(void); +FOUNDATION_EXPORT Class fbsdkdfl_WKUserScriptClass(void); + +/** + + This class provides a way to load constants and methods from Apple Frameworks in a dynamic + fashion. It allows the SDK to be just dragged into a project without having to specify additional + frameworks to link against. It is an internal class and not to be used by 3rd party developers. + + As new types are needed, they should be added and strongly typed. + */ +NS_SWIFT_NAME(DynamicFrameworkLoader) +@interface FBSDKDynamicFrameworkLoader : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +#pragma mark - Security Constants + +/** + Load the kSecRandomDefault value from the Security Framework + + @return The kSecRandomDefault value or nil. + */ ++ (SecRandomRef)loadkSecRandomDefault; + +/** + Load the kSecAttrAccessible value from the Security Framework + + @return The kSecAttrAccessible value or nil. + */ ++ (CFTypeRef)loadkSecAttrAccessible; + +/** + Load the kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly value from the Security Framework + + @return The kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly value or nil. + */ ++ (CFTypeRef)loadkSecAttrAccessibleAfterFirstUnlockThisDeviceOnly; + +/** + Load the kSecAttrAccount value from the Security Framework + + @return The kSecAttrAccount value or nil. + */ ++ (CFTypeRef)loadkSecAttrAccount; + +/** + Load the kSecAttrService value from the Security Framework + + @return The kSecAttrService value or nil. + */ ++ (CFTypeRef)loadkSecAttrService; + +/** + Load the kSecAttrGeneric value from the Security Framework + + @return The kSecAttrGeneric value or nil. + */ ++ (CFTypeRef)loadkSecAttrGeneric; + +/** + Load the kSecValueData value from the Security Framework + + @return The kSecValueData value or nil. + */ ++ (CFTypeRef)loadkSecValueData; + +/** + Load the kSecClassGenericPassword value from the Security Framework + + @return The kSecClassGenericPassword value or nil. + */ ++ (CFTypeRef)loadkSecClassGenericPassword; + +/** + Load the kSecAttrAccessGroup value from the Security Framework + + @return The kSecAttrAccessGroup value or nil. + */ ++ (CFTypeRef)loadkSecAttrAccessGroup; + +/** + Load the kSecMatchLimitOne value from the Security Framework + + @return The kSecMatchLimitOne value or nil. + */ ++ (CFTypeRef)loadkSecMatchLimitOne; + +/** + Load the kSecMatchLimit value from the Security Framework + + @return The kSecMatchLimit value or nil. + */ ++ (CFTypeRef)loadkSecMatchLimit; + +/** + Load the kSecReturnData value from the Security Framework + + @return The kSecReturnData value or nil. + */ ++ (CFTypeRef)loadkSecReturnData; + +/** + Load the kSecClass value from the Security Framework + + @return The kSecClass value or nil. + */ ++ (CFTypeRef)loadkSecClass; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKError.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKError.h new file mode 100644 index 0000000000000..6a01e44f1b949 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKError.h @@ -0,0 +1,98 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(SDKError) +@interface FBSDKError : NSObject + ++ (NSError *)errorWithCode:(NSInteger)code message:(nullable NSString *)message; + ++ (NSError *)errorWithDomain:(NSErrorDomain)domain code:(NSInteger)code message:(nullable NSString *)message; + ++ (NSError *)errorWithCode:(NSInteger)code + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError; + ++ (NSError *)errorWithDomain:(NSErrorDomain)domain + code:(NSInteger)code + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError; + ++ (NSError *)errorWithCode:(NSInteger)code + userInfo:(nullable NSDictionary *)userInfo + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError; + ++ (NSError *)errorWithDomain:(NSErrorDomain)domain + code:(NSInteger)code + userInfo:(nullable NSDictionary *)userInfo + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError; + ++ (NSError *)invalidArgumentErrorWithName:(NSString *)name + value:(nullable id)value + message:(nullable NSString *)message; + ++ (NSError *)invalidArgumentErrorWithDomain:(NSErrorDomain)domain + name:(NSString *)name + value:(nullable id)value + message:(nullable NSString *)message; + ++ (NSError *)invalidArgumentErrorWithName:(NSString *)name + value:(nullable id)value + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError; + ++ (NSError *)invalidArgumentErrorWithDomain:(NSErrorDomain)domain + name:(NSString *)name + value:(nullable id)value + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError; + ++ (NSError *)invalidCollectionErrorWithName:(NSString *)name + collection:(id)collection + item:(id)item + message:(nullable NSString *)message; + ++ (NSError *)invalidCollectionErrorWithName:(NSString *)name + collection:(id)collection + item:(id)item + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError; + ++ (NSError *)requiredArgumentErrorWithName:(NSString *)name message:(nullable NSString *)message; + ++ (NSError *)requiredArgumentErrorWithDomain:(NSErrorDomain)domain + name:(NSString *)name + message:(nullable NSString *)message; + ++ (NSError *)requiredArgumentErrorWithName:(NSString *)name + message:(nullable NSString *)message + underlyingError:(nullable NSError *)underlyingError; + ++ (NSError *)unknownErrorWithMessage:(NSString *)message; + ++ (BOOL)isNetworkError:(NSError *)error; ++ (void)enableErrorReport; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKError.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKError.m new file mode 100644 index 0000000000000..10bbafea3e442 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKError.m @@ -0,0 +1,212 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKError.h" + +#import "FBSDKConstants.h" +#import "FBSDKErrorReport.h" +#import "FBSDKFeatureManager.h" +#import "FBSDKInternalUtility.h" +#import "FBSDKSettings.h" + +@implementation FBSDKError + +static BOOL isErrorReportEnabled = NO; + +#pragma mark - Class Methods + ++ (NSError *)errorWithCode:(NSInteger)code message:(NSString *)message +{ + return [self errorWithCode:code message:message underlyingError:nil]; +} + ++ (NSError *)errorWithDomain:(NSErrorDomain)domain code:(NSInteger)code message:(NSString *)message +{ + return [self errorWithDomain:domain code:code message:message underlyingError:nil]; +} + ++ (NSError *)errorWithCode:(NSInteger)code message:(NSString *)message underlyingError:(NSError *)underlyingError +{ + return [self errorWithCode:code userInfo:@{} message:message underlyingError:underlyingError]; +} + ++ (NSError *)errorWithDomain:(NSErrorDomain)domain + code:(NSInteger)code + message:(NSString *)message + underlyingError:(NSError *)underlyingError +{ + return [self errorWithDomain:domain code:code userInfo:@{} message:message underlyingError:underlyingError]; +} + ++ (NSError *)errorWithCode:(NSInteger)code + userInfo:(NSDictionary *)userInfo + message:(NSString *)message + underlyingError:(NSError *)underlyingError +{ + return [self errorWithDomain:FBSDKErrorDomain + code:code + userInfo:userInfo + message:message + underlyingError:underlyingError]; +} + ++ (NSError *)errorWithDomain:(NSErrorDomain)domain + code:(NSInteger)code + userInfo:(NSDictionary *)userInfo + message:(NSString *)message + underlyingError:(NSError *)underlyingError +{ + NSMutableDictionary *fullUserInfo = [[NSMutableDictionary alloc] initWithDictionary:userInfo]; + [FBSDKBasicUtility dictionary:fullUserInfo setObject:message forKey:FBSDKErrorDeveloperMessageKey]; + [FBSDKBasicUtility dictionary:fullUserInfo setObject:underlyingError forKey:NSUnderlyingErrorKey]; + userInfo = fullUserInfo.count ? [fullUserInfo copy] : nil; + if (isErrorReportEnabled) { + [FBSDKErrorReport saveError:code errorDomain:domain message:message]; + } + + return [[NSError alloc] initWithDomain:domain code:code userInfo:userInfo]; +} + ++ (NSError *)invalidArgumentErrorWithName:(NSString *)name value:(id)value message:(NSString *)message +{ + return [self invalidArgumentErrorWithName:name value:value message:message underlyingError:nil]; +} + ++ (NSError *)invalidArgumentErrorWithDomain:(NSErrorDomain)domain + name:(NSString *)name + value:(id)value + message:(NSString *)message +{ + return [self invalidArgumentErrorWithDomain:domain name:name value:value message:message underlyingError:nil]; +} + ++ (NSError *)invalidArgumentErrorWithName:(NSString *)name + value:(id)value + message:(NSString *)message + underlyingError:(NSError *)underlyingError +{ + return [self invalidArgumentErrorWithDomain:FBSDKErrorDomain + name:name + value:value + message:message + underlyingError:underlyingError]; +} ++ (NSError *)invalidArgumentErrorWithDomain:(NSErrorDomain)domain + name:(NSString *)name + value:(id)value + message:(NSString *)message + underlyingError:(NSError *)underlyingError +{ + if (!message) { + message = [[NSString alloc] initWithFormat:@"Invalid value for %@: %@", name, value]; + } + NSMutableDictionary *userInfo = [[NSMutableDictionary alloc] init]; + [FBSDKBasicUtility dictionary:userInfo setObject:name forKey:FBSDKErrorArgumentNameKey]; + [FBSDKBasicUtility dictionary:userInfo setObject:value forKey:FBSDKErrorArgumentValueKey]; + return [self errorWithDomain:domain + code:FBSDKErrorInvalidArgument + userInfo:userInfo + message:message + underlyingError:underlyingError]; +} + ++ (NSError *)invalidCollectionErrorWithName:(NSString *)name + collection:(id)collection + item:(id)item + message:(NSString *)message +{ + return [self invalidCollectionErrorWithName:name collection:collection item:item message:message underlyingError:nil]; +} + ++ (NSError *)invalidCollectionErrorWithName:(NSString *)name + collection:(id)collection + item:(id)item + message:(NSString *)message + underlyingError:(NSError *)underlyingError +{ + if (!message) { + message = + [[NSString alloc] initWithFormat:@"Invalid item (%@) found in collection for %@: %@", item, name, collection]; + } + NSMutableDictionary *userInfo = [[NSMutableDictionary alloc] init]; + [FBSDKBasicUtility dictionary:userInfo setObject:name forKey:FBSDKErrorArgumentNameKey]; + [FBSDKBasicUtility dictionary:userInfo setObject:item forKey:FBSDKErrorArgumentValueKey]; + [FBSDKBasicUtility dictionary:userInfo setObject:collection forKey:FBSDKErrorArgumentCollectionKey]; + return [self errorWithCode:FBSDKErrorInvalidArgument + userInfo:userInfo + message:message + underlyingError:underlyingError]; +} + ++ (NSError *)requiredArgumentErrorWithName:(NSString *)name message:(NSString *)message +{ + return [self requiredArgumentErrorWithName:name message:message underlyingError:nil]; +} + ++ (NSError *)requiredArgumentErrorWithDomain:(NSErrorDomain)domain name:(NSString *)name message:(NSString *)message +{ + if (!message) { + message = [[NSString alloc] initWithFormat:@"Value for %@ is required.", name]; + } + return [self invalidArgumentErrorWithDomain:domain name:name value:nil message:message underlyingError:nil]; +} + ++ (NSError *)requiredArgumentErrorWithName:(NSString *)name + message:(NSString *)message + underlyingError:(NSError *)underlyingError +{ + if (!message) { + message = [[NSString alloc] initWithFormat:@"Value for %@ is required.", name]; + } + return [self invalidArgumentErrorWithName:name value:nil message:message underlyingError:underlyingError]; +} + ++ (NSError *)unknownErrorWithMessage:(NSString *)message +{ + return [self errorWithCode:FBSDKErrorUnknown userInfo:@{} message:message underlyingError:nil]; +} + ++ (BOOL)isNetworkError:(NSError *)error +{ + NSError *innerError = error.userInfo[NSUnderlyingErrorKey]; + if (innerError && [self isNetworkError:innerError]) { + return YES; + } + + switch (error.code) { + case NSURLErrorTimedOut: + case NSURLErrorCannotFindHost: + case NSURLErrorCannotConnectToHost: + case NSURLErrorNetworkConnectionLost: + case NSURLErrorDNSLookupFailed: + case NSURLErrorNotConnectedToInternet: + case NSURLErrorInternationalRoamingOff: + case NSURLErrorCallIsActive: + case NSURLErrorDataNotAllowed: + return YES; + default: + return NO; + } +} + ++ (void)enableErrorReport +{ + isErrorReportEnabled = YES; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKFeatureManager.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKFeatureManager.h new file mode 100644 index 0000000000000..0dd84d46487ec --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKFeatureManager.h @@ -0,0 +1,78 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + FBSDKFeature enum + Defines features in SDK + + Sample: + FBSDKFeatureAppEvents = 0x00010000, + ^ ^ ^ ^ + | | | | + kit | | | + feature | | + sub-feature | + sub-sub-feature + 1st byte: kit + 2nd byte: feature + 3rd byte: sub-feature + 4th byte: sub-sub-feature + */ +typedef NS_ENUM(NSUInteger, FBSDKFeature) +{ + // Features in CoreKit + /** Essential of CoreKit */ + FBSDKFeatureCore = 0x00000000, + + FBSDKFeatureAppEvents = 0x00010000, + FBSDKFeatureCodelessEvents = 0x00010100, + FBSDKFeatureRestrictiveDataFiltering = 0x00010200, + FBSDKFeatureAAM = 0x00010300, + FBSDKFeatureInstrument = 0x00020000, + FBSDKFeatureCrashReport = 0x00020100, + FBSDKFeatureErrorReport = 0x00020200, + + + // Features in LoginKit + /** Essential of LoginKit */ + FBSDKFeatureLogin = 0x01000000, + + // Features in ShareKit + /** Essential of ShareKit */ + FBDSDKFeatureShare = 0x02000000, + + // Features in PlacesKit + /** Essential of PlacesKit */ + FBSDKFeaturePlaces = 0x03000000, + +} NS_SWIFT_NAME(SDKFeature); + +typedef void (^FBSDKFeatureManagerBlock)(BOOL enabled); + +@interface FBSDKFeatureManager : NSObject + ++ (void)checkFeature:(FBSDKFeature)feature + completionBlock:(FBSDKFeatureManagerBlock)completionBlock; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKFeatureManager.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKFeatureManager.m new file mode 100644 index 0000000000000..01d486f8f442b --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKFeatureManager.m @@ -0,0 +1,104 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKFeatureManager.h" +#import "ServerConfiguration/FBSDKGateKeeperManager.h" + +@implementation FBSDKFeatureManager + ++ (void)checkFeature:(FBSDKFeature)feature + completionBlock:(FBSDKFeatureManagerBlock)completionBlock +{ + [FBSDKGateKeeperManager loadGateKeepers:^(NSError * _Nullable error) { + if (completionBlock) { + completionBlock([FBSDKFeatureManager isEnabled:feature]); + } + }]; +} + ++ (BOOL)isEnabled:(FBSDKFeature)feature +{ + if (FBSDKFeatureCore == feature) { + return YES; + } + + FBSDKFeature parentFeature = [self getParentFeature:feature]; + if (parentFeature == feature) { + return [self checkGK:feature]; + } else { + return [FBSDKFeatureManager isEnabled:parentFeature] && [self checkGK:feature]; + } +} + ++ (FBSDKFeature)getParentFeature:(FBSDKFeature)feature +{ + if ((feature & 0xFF) > 0) { + return feature & 0xFFFFFF00; + } else if ((feature & 0xFF00) > 0) { + return feature & 0xFFFF0000; + } else if ((feature & 0xFF0000) > 0) { + return feature & 0xFF000000; + } else return 0; +} + ++ (BOOL)checkGK:(FBSDKFeature)feature +{ + NSString *key = [NSString stringWithFormat:@"FBSDKFeature%@", [self featureName:feature]]; + BOOL defaultValue = [self defaultStatus:feature]; + + return [FBSDKGateKeeperManager boolForKey:key + defaultValue:defaultValue]; +} + ++ (NSString *)featureName:(FBSDKFeature)feature +{ + NSString *featureName; + switch (feature) { + case FBSDKFeatureCore: featureName = @"CoreKit"; break; + case FBSDKFeatureAppEvents: featureName = @"AppEvents"; break; + case FBSDKFeatureCodelessEvents: featureName = @"CodelessEvents"; break; + case FBSDKFeatureRestrictiveDataFiltering: featureName = @"RestrictiveDataFiltering"; break; + case FBSDKFeatureAAM: featureName = @"AAM"; break; + case FBSDKFeatureInstrument: featureName = @"Instrument"; break; + case FBSDKFeatureCrashReport: featureName = @"CrashReport"; break; + case FBSDKFeatureErrorReport: featureName = @"ErrorReport"; break; + + case FBSDKFeatureLogin: featureName = @"LoginKit"; break; + + case FBDSDKFeatureShare: featureName = @"ShareKit"; break; + + case FBSDKFeaturePlaces: featureName = @"PlacesKit"; break; + } + + return featureName; +} + ++ (BOOL)defaultStatus:(FBSDKFeature)feature +{ + switch (feature) { + case FBSDKFeatureRestrictiveDataFiltering: + case FBSDKFeatureInstrument: + case FBSDKFeatureCrashReport: + case FBSDKFeatureErrorReport: + case FBSDKFeatureAAM: + return NO; + default: return YES; + } +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKImageDownloader.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKImageDownloader.h new file mode 100644 index 0000000000000..0a8376342b3ac --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKImageDownloader.h @@ -0,0 +1,55 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + Describes the callback for downloadImageWithURL:ttl:completion:. + @param image the optional image returned + */ +typedef void (^FBSDKImageDownloadBlock)(UIImage *_Nullable image) +NS_SWIFT_NAME(ImageDownloadBlock); + +/* + simple class to manage image downloads + + this class is not smart enough to dedupe identical requests in flight. + */ +NS_SWIFT_NAME(ImageDownloader) +@interface FBSDKImageDownloader : NSObject + +@property (class, nonatomic, strong, readonly) FBSDKImageDownloader *sharedInstance; + +/* + download an image or retrieve it from cache + @param url the url to download + @param ttl the amount of time (in seconds) that using a cached version is acceptable. + @param completion the callback with the image - for simplicity nil is returned rather than surfacing an error. + */ +- (void)downloadImageWithURL:(NSURL *)url + ttl:(NSTimeInterval)ttl + completion:(nullable FBSDKImageDownloadBlock)completion; + +- (void)removeAll; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKImageDownloader.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKImageDownloader.m new file mode 100644 index 0000000000000..9b8f4284390c1 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKImageDownloader.m @@ -0,0 +1,101 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKImageDownloader.h" + +static NSString *const kImageDirectory = @"fbsdkimages"; +static NSString *const kCachedResponseUserInfoKeyTimestamp = @"timestamp"; + +@implementation FBSDKImageDownloader { + NSURLCache *_urlCache; +} + ++ (FBSDKImageDownloader *)sharedInstance +{ + static FBSDKImageDownloader *instance; + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + instance = [[FBSDKImageDownloader alloc] init]; + }); + return instance; +} + +- (instancetype)init +{ + if ((self = [super init])) { +#if TARGET_OS_MACCATALYST + _urlCache = [[NSURLCache alloc] initWithMemoryCapacity:1024*1024*8 + diskCapacity:1024*1024*100 + directoryURL:[NSURL URLWithString:kImageDirectory]]; +#else + _urlCache = [[NSURLCache alloc] initWithMemoryCapacity:1024*1024*8 + diskCapacity:1024*1024*100 + diskPath:kImageDirectory]; +#endif + } + return self; +} + +- (void)removeAll +{ + [_urlCache removeAllCachedResponses]; +} + +- (void)downloadImageWithURL:(NSURL *)url + ttl:(NSTimeInterval)ttl + completion:(FBSDKImageDownloadBlock)completion +{ + NSURLRequest *request = [NSURLRequest requestWithURL:url]; + NSCachedURLResponse *cachedResponse = [_urlCache cachedResponseForRequest:request]; + NSDate *modificationDate = cachedResponse.userInfo[kCachedResponseUserInfoKeyTimestamp]; + BOOL isExpired = ([[modificationDate dateByAddingTimeInterval:ttl] compare:[NSDate date]] == NSOrderedAscending); + + void (^completionWrapper)(NSCachedURLResponse *) = ^(NSCachedURLResponse *responseData){ + if (completion != NULL) { + UIImage *image = [UIImage imageWithData:responseData.data]; + completion(image); + } + }; + + if (cachedResponse == nil || isExpired) { + NSURLSession *session = [NSURLSession sharedSession]; + NSURLSessionDataTask *task = [session dataTaskWithRequest:request + completionHandler: + ^(NSData *data, NSURLResponse *response, NSError *error) { + if ([response isKindOfClass:[NSHTTPURLResponse class]] && + ((NSHTTPURLResponse *)response).statusCode == 200 && + error == nil && + data != nil) { + NSCachedURLResponse *responseToCache = + [[NSCachedURLResponse alloc] initWithResponse:response + data:data + userInfo:@{ kCachedResponseUserInfoKeyTimestamp : [NSDate date] } + storagePolicy:NSURLCacheStorageAllowed]; + [self->_urlCache storeCachedResponse:responseToCache forRequest:request]; + completionWrapper(responseToCache); + } else if (completion != NULL) { + completion(nil); + } + }]; + [task resume]; + } else { + completionWrapper(cachedResponse); + } +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKInternalUtility.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKInternalUtility.h new file mode 100644 index 0000000000000..beb8d0ccb39df --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKInternalUtility.h @@ -0,0 +1,317 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import +#import + +#import "FBSDKCoreKit+Internal.h" + +NS_ASSUME_NONNULL_BEGIN + +#define FBSDK_CANOPENURL_FACEBOOK @"fbauth2" +#define FBSDK_CANOPENURL_FBAPI @"fbapi" +#define FBSDK_CANOPENURL_MESSENGER @"fb-messenger-share-api" +#define FBSDK_CANOPENURL_MSQRD_PLAYER @"msqrdplayer" +#define FBSDK_CANOPENURL_SHARE_EXTENSION @"fbshareextension" + +typedef NS_ENUM(int32_t, FBSDKUIKitVersion) +{ + FBSDKUIKitVersion_6_0 = 0x0944, + FBSDKUIKitVersion_6_1 = 0x094C, + FBSDKUIKitVersion_7_0 = 0x0B57, + FBSDKUIKitVersion_7_1 = 0x0B77, + FBSDKUIKitVersion_8_0 = 0x0CF6, +} NS_SWIFT_NAME(FBUIKit.Version); + +/** + Describes the callback for appLinkFromURLInBackground. + @param object the FBSDKAppLink representing the deferred App Link + @param stop the error during the request, if any + + */ +typedef id _Nullable (^FBSDKInvalidObjectHandler)(id object, BOOL *stop) +NS_SWIFT_NAME(InvalidObjectHandler); + + + +NS_SWIFT_NAME(InternalUtility) +@interface FBSDKInternalUtility : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Constructs the scheme for apps that come to the current app through the bridge. + */ +@property (class, nonatomic, copy, readonly) NSString *appURLScheme; + +/** + Returns bundle for returning localized strings + + We assume a convention of a bundle named FBSDKStrings.bundle, otherwise we + return the main bundle. + */ +@property (class, nonatomic, strong, readonly) NSBundle *bundleForStrings; + +/** + Gets the milliseconds since the Unix Epoch. + + Changes in the system clock will affect this value. + @return The number of milliseconds since the Unix Epoch. + */ +@property (class, nonatomic, assign, readonly) uint64_t currentTimeInMilliseconds; + +/** + The version of the operating system on which the process is executing. + */ +@property (class, nonatomic, assign, readonly) NSOperatingSystemVersion operatingSystemVersion; + +/** + Tests whether the orientation should be manually adjusted for views outside of the root view controller. + + With the legacy layout the developer must worry about device orientation when working with views outside of + the window's root view controller and apply the correct rotation transform and/or swap a view's width and height + values. If the application was linked with UIKit on iOS 7 or earlier or the application is running on iOS 7 or earlier + then we need to use the legacy layout code. Otherwise if the application was linked with UIKit on iOS 8 or later and + the application is running on iOS 8 or later, UIKit handles all of the rotation complexity and the origin is always in + the top-left and no rotation transform is necessary. + @return YES if if the orientation must be manually adjusted, otherwise NO. + */ +@property (class, nonatomic, assign, readonly) BOOL shouldManuallyAdjustOrientation; + +/* + Checks if the app is Unity. + */ +@property (class, nonatomic, assign, readonly) BOOL isUnity; + +/** + Constructs an URL for the current app. + @param host The host for the URL. + @param path The path for the URL. + @param queryParameters The query parameters for the URL. This will be converted into a query string. + @param errorRef If an error occurs, upon return contains an NSError object that describes the problem. + @return The app URL. + */ ++ (NSURL *)appURLWithHost:(NSString *)host + path:(NSString *)path + queryParameters:(NSDictionary *)queryParameters + error:(NSError *__autoreleasing *)errorRef; + +/** + Parses an FB url's query params (and potentially fragment) into a dictionary. + @param url The FB url. + @return A dictionary with the key/value pairs. + */ ++ (NSDictionary *)dictionaryFromFBURL:(NSURL *)url; + +/** + Constructs a Facebook URL. + @param hostPrefix The prefix for the host, such as 'm', 'graph', etc. + @param path The path for the URL. This may or may not include a version. + @param queryParameters The query parameters for the URL. This will be converted into a query string. + @param errorRef If an error occurs, upon return contains an NSError object that describes the problem. + @return The Facebook URL. + */ ++ (NSURL *)facebookURLWithHostPrefix:(NSString *)hostPrefix + path:(NSString *)path + queryParameters:(NSDictionary *)queryParameters + error:(NSError *__autoreleasing *)errorRef; + +/** + Constructs a Facebook URL. + @param hostPrefix The prefix for the host, such as 'm', 'graph', etc. + @param path The path for the URL. This may or may not include a version. + @param queryParameters The query parameters for the URL. This will be converted into a query string. + @param defaultVersion A version to add to the URL if none is found in the path. + @param errorRef If an error occurs, upon return contains an NSError object that describes the problem. + @return The Facebook URL. + */ ++ (NSURL *)facebookURLWithHostPrefix:(NSString *)hostPrefix + path:(NSString *)path + queryParameters:(NSDictionary *)queryParameters + defaultVersion:(NSString *)defaultVersion + error:(NSError *__autoreleasing *)errorRef; + +/** + Tests whether the supplied URL is a valid URL for opening in the browser. + @param URL The URL to test. + @return YES if the URL refers to an http or https resource, otherwise NO. + */ ++ (BOOL)isBrowserURL:(NSURL *)URL; + +/** + Tests whether the supplied bundle identifier references a Facebook app. + @param bundleIdentifier The bundle identifier to test. + @return YES if the bundle identifier refers to a Facebook app, otherwise NO. + */ ++ (BOOL)isFacebookBundleIdentifier:(NSString *)bundleIdentifier; + +/** + Tests whether the operating system is at least the specified version. + @param version The version to test against. + @return YES if the operating system is greater than or equal to the specified version, otherwise NO. + */ ++ (BOOL)isOSRunTimeVersionAtLeast:(NSOperatingSystemVersion)version; + +/** + Tests whether the supplied bundle identifier references the Safari app. + @param bundleIdentifier The bundle identifier to test. + @return YES if the bundle identifier refers to the Safari app, otherwise NO. + */ ++ (BOOL)isSafariBundleIdentifier:(NSString *)bundleIdentifier; + +/** + Tests whether the UIKit version that the current app was linked to is at least the specified version. + @param version The version to test against. + @return YES if the linked UIKit version is greater than or equal to the specified version, otherwise NO. + */ ++ (BOOL)isUIKitLinkTimeVersionAtLeast:(FBSDKUIKitVersion)version; + +/** + Tests whether the UIKit version in the runtime is at least the specified version. + @param version The version to test against. + @return YES if the runtime UIKit version is greater than or equal to the specified version, otherwise NO. + */ ++ (BOOL)isUIKitRunTimeVersionAtLeast:(FBSDKUIKitVersion)version; + +/** + Checks equality between 2 objects. + + Checks for pointer equality, nils, isEqual:. + @param object The first object to compare. + @param other The second object to compare. + @return YES if the objects are equal, otherwise NO. + */ ++ (BOOL)object:(id)object isEqualToObject:(id)other; + +/** + Constructs an NSURL. + @param scheme The scheme for the URL. + @param host The host for the URL. + @param path The path for the URL. + @param queryParameters The query parameters for the URL. This will be converted into a query string. + @param errorRef If an error occurs, upon return contains an NSError object that describes the problem. + @return The URL. + */ ++ (nullable NSURL *)URLWithScheme:(NSString *)scheme + host:(NSString *)host + path:(NSString *)path + queryParameters:(NSDictionary *)queryParameters + error:(NSError *__autoreleasing *)errorRef; + +/** + * Deletes all the cookies in the NSHTTPCookieStorage for Facebook web dialogs + */ ++ (void)deleteFacebookCookies; + +/** + Extracts permissions from a response fetched from me/permissions + @param responseObject the response + @param grantedPermissions the set to add granted permissions to + @param declinedPermissions the set to add declined permissions to. + */ ++ (void)extractPermissionsFromResponse:(NSDictionary *)responseObject + grantedPermissions:(NSMutableSet *)grantedPermissions + declinedPermissions:(NSMutableSet *)declinedPermissions + expiredPermissions:(NSMutableSet *)expiredPermissions; + +/** + Registers a transient object so that it will not be deallocated until unregistered + @param object The transient object + */ ++ (void)registerTransientObject:(id)object; + +/** + Unregisters a transient object that was previously registered with registerTransientObject: + @param object The transient object + */ ++ (void)unregisterTransientObject:(__weak id)object; + +/** + validates that the app ID is non-nil, throws an NSException if nil. + */ ++ (void)validateAppID; + +/** + Validates that the client access token is non-nil, otherwise - throws an NSException otherwise. + Returns the composed client access token. + */ ++ (NSString *)validateRequiredClientAccessToken; + +/** + validates that the right URL schemes are registered, throws an NSException if not. + */ ++ (void)validateURLSchemes; + +/** + validates that Facebook reserved URL schemes are not registered, throws an NSException if they are. + */ ++ (void)validateFacebookReservedURLSchemes; + +/** + Attempts to find the first UIViewController in the view's responder chain. Returns nil if not found. + */ ++ (nullable UIViewController *)viewControllerForView:(UIView *)view; + +/** + returns true if the url scheme is registered in the CFBundleURLTypes + */ ++ (BOOL)isRegisteredURLScheme:(NSString *)urlScheme; + +/** + returns the current key window + */ ++ (nullable UIWindow *)findWindow; + +/** + returns currently displayed top view controller. + */ ++ (nullable UIViewController *)topMostViewController; + +/** + Converts NSData to a hexadecimal UTF8 String. + */ ++ (nullable NSString *)hexadecimalStringFromData:(NSData *)data; + +/* + Checks if the permission is a publish permission. + */ ++ (BOOL)isPublishPermission:(NSString *)permission; + +#pragma mark - FB Apps Installed + +@property (class, nonatomic, assign, readonly) BOOL isFacebookAppInstalled; +@property (class, nonatomic, assign, readonly) BOOL isMessengerAppInstalled; +@property (class, nonatomic, assign, readonly) BOOL isMSQRDPlayerAppInstalled; + ++ (void)checkRegisteredCanOpenURLScheme:(NSString *)urlScheme; ++ (BOOL)isRegisteredCanOpenURLScheme:(NSString *)urlScheme; + +#define FBSDKConditionalLog(condition, loggingBehavior, desc, ...) \ +{ \ + if (!(condition)) { \ + NSString *msg = [NSString stringWithFormat:(desc), ##__VA_ARGS__]; \ + [FBSDKLogger singleShotLogEntry:loggingBehavior logEntry:msg]; \ + } \ +} + +#define FB_BASE_URL @"facebook.com" + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKInternalUtility.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKInternalUtility.m new file mode 100644 index 0000000000000..2a3e5a7da1f7b --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKInternalUtility.m @@ -0,0 +1,631 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKInternalUtility.h" + +#import + +#import +#import + +#import "FBSDKError.h" +#import "FBSDKSettings+Internal.h" +#import "FBSDKSettings.h" + +typedef NS_ENUM(NSUInteger, FBSDKInternalUtilityVersionMask) +{ + FBSDKInternalUtilityMajorVersionMask = 0xFFFF0000, + //FBSDKInternalUtilityMinorVersionMask = 0x0000FF00, // unused + //FBSDKInternalUtilityPatchVersionMask = 0x000000FF, // unused +}; + +typedef NS_ENUM(NSUInteger, FBSDKInternalUtilityVersionShift) +{ + FBSDKInternalUtilityMajorVersionShift = 16, + //FBSDKInternalUtilityMinorVersionShift = 8, // unused + //FBSDKInternalUtilityPatchVersionShift = 0, // unused +}; + +@implementation FBSDKInternalUtility + +#pragma mark - Class Methods + ++ (NSString *)appURLScheme +{ + NSString *appID = ([FBSDKSettings appID] ?: @""); + NSString *suffix = ([FBSDKSettings appURLSchemeSuffix] ?: @""); + return [[NSString alloc] initWithFormat: @"fb%@%@", appID, suffix]; +} + ++ (NSURL *)appURLWithHost:(NSString *)host + path:(NSString *)path + queryParameters:(NSDictionary *)queryParameters + error:(NSError *__autoreleasing *)errorRef +{ + return [self URLWithScheme:[self appURLScheme] + host:host + path:path + queryParameters:queryParameters + error:errorRef]; +} + ++ (NSDictionary *)dictionaryFromFBURL:(NSURL *)url +{ + // version 3.2.3 of the Facebook app encodes the parameters in the query but + // version 3.3 and above encode the parameters in the fragment; + // merge them together with fragment taking priority. + NSMutableDictionary *params = [NSMutableDictionary dictionary]; + [params addEntriesFromDictionary:[FBSDKBasicUtility dictionaryWithQueryString:url.query]]; + + // Only get the params from the fragment if it has authorize as the host + if ([url.host isEqualToString:@"authorize"]) { + [params addEntriesFromDictionary:[FBSDKBasicUtility dictionaryWithQueryString:url.fragment]]; + } + return params; +} + ++ (NSBundle *)bundleForStrings +{ + static NSBundle *bundle; + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + NSString *stringsBundlePath = [[NSBundle bundleForClass:[FBSDKApplicationDelegate class]] + pathForResource:@"FacebookSDKStrings" + ofType:@"bundle"]; + bundle = [NSBundle bundleWithPath:stringsBundlePath] ?: [NSBundle mainBundle]; + }); + return bundle; +} + ++ (uint64_t)currentTimeInMilliseconds +{ + struct timeval time; + gettimeofday(&time, NULL); + return ((uint64_t)time.tv_sec * 1000) + (time.tv_usec / 1000); +} + ++ (void)extractPermissionsFromResponse:(NSDictionary *)responseObject + grantedPermissions:(NSMutableSet *)grantedPermissions + declinedPermissions:(NSMutableSet *)declinedPermissions + expiredPermissions:(NSMutableSet *)expiredPermissions +{ + NSArray *resultData = responseObject[@"data"]; + if (resultData.count > 0) { + for (NSDictionary *permissionsDictionary in resultData) { + NSString *permissionName = permissionsDictionary[@"permission"]; + NSString *status = permissionsDictionary[@"status"]; + + if ([status isEqualToString:@"granted"]) { + [grantedPermissions addObject:permissionName]; + } else if ([status isEqualToString:@"declined"]) { + [declinedPermissions addObject:permissionName]; + } else if ([status isEqualToString:@"expired"]) { + [expiredPermissions addObject:permissionName]; + } + } + } +} + ++ (NSURL *)facebookURLWithHostPrefix:(NSString *)hostPrefix + path:(NSString *)path + queryParameters:(NSDictionary *)queryParameters + error:(NSError *__autoreleasing *)errorRef +{ + return [self facebookURLWithHostPrefix:hostPrefix + path:path + queryParameters:queryParameters + defaultVersion:@"" + error:errorRef]; +} + ++ (NSURL *)facebookURLWithHostPrefix:(NSString *)hostPrefix + path:(NSString *)path + queryParameters:(NSDictionary *)queryParameters + defaultVersion:(NSString *)defaultVersion + error:(NSError *__autoreleasing *)errorRef +{ + if (hostPrefix.length && ![hostPrefix hasSuffix:@"."]) { + hostPrefix = [hostPrefix stringByAppendingString:@"."]; + } + + NSString *host = @"facebook.com"; + NSString *domainPart = [FBSDKSettings facebookDomainPart]; + if (domainPart.length) { + host = [[NSString alloc] initWithFormat:@"%@.%@", domainPart, host]; + } + host = [NSString stringWithFormat:@"%@%@", hostPrefix ?: @"", host ?: @""]; + + NSString *version = (defaultVersion.length > 0) ? defaultVersion : [FBSDKSettings graphAPIVersion]; + if (version.length) { + version = [@"/" stringByAppendingString:version]; + } + + if (path.length) { + NSScanner *versionScanner = [[NSScanner alloc] initWithString:path]; + if ([versionScanner scanString:@"/v" intoString:NULL] && + [versionScanner scanInteger:NULL] && + [versionScanner scanString:@"." intoString:NULL] && + [versionScanner scanInteger:NULL]) { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors + logEntry:[NSString stringWithFormat:@"Invalid Graph API version:%@, assuming %@ instead", + version, + [FBSDKSettings graphAPIVersion]]]; + version = nil; + } + if (![path hasPrefix:@"/"]) { + path = [@"/" stringByAppendingString:path]; + } + } + path = [[NSString alloc] initWithFormat:@"%@%@", version ?: @"", path ?: @""]; + + return [self URLWithScheme:@"https" + host:host + path:path + queryParameters:queryParameters + error:errorRef]; +} + ++ (BOOL)isBrowserURL:(NSURL *)URL +{ + NSString *scheme = URL.scheme.lowercaseString; + return ([scheme isEqualToString:@"http"] || [scheme isEqualToString:@"https"]); +} + ++ (BOOL)isFacebookBundleIdentifier:(NSString *)bundleIdentifier +{ + return ([bundleIdentifier hasPrefix:@"com.facebook."] || + [bundleIdentifier hasPrefix:@".com.facebook."]); +} + ++ (BOOL)isOSRunTimeVersionAtLeast:(NSOperatingSystemVersion)version +{ + return ([self _compareOperatingSystemVersion:[self operatingSystemVersion] toVersion:version] != NSOrderedAscending); +} + ++ (BOOL)isSafariBundleIdentifier:(NSString *)bundleIdentifier +{ + return ([bundleIdentifier isEqualToString:@"com.apple.mobilesafari"] || + [bundleIdentifier isEqualToString:@"com.apple.SafariViewService"]); +} + ++ (BOOL)isUIKitLinkTimeVersionAtLeast:(FBSDKUIKitVersion)version +{ + static int32_t linkTimeMajorVersion; + static dispatch_once_t getVersionOnce; + dispatch_once(&getVersionOnce, ^{ + int32_t linkTimeVersion = NSVersionOfLinkTimeLibrary("UIKit"); + linkTimeMajorVersion = [self getMajorVersionFromFullLibraryVersion:linkTimeVersion]; + }); + return (version <= linkTimeMajorVersion); +} + ++ (BOOL)isUIKitRunTimeVersionAtLeast:(FBSDKUIKitVersion)version +{ + static int32_t runTimeMajorVersion; + static dispatch_once_t getVersionOnce; + dispatch_once(&getVersionOnce, ^{ + int32_t runTimeVersion = NSVersionOfRunTimeLibrary("UIKit"); + runTimeMajorVersion = [self getMajorVersionFromFullLibraryVersion:runTimeVersion]; + }); + return (version <= runTimeMajorVersion); +} + ++ (int32_t)getMajorVersionFromFullLibraryVersion:(int32_t)version +{ + // Negative values returned by NSVersionOfRunTimeLibrary/NSVersionOfLinkTimeLibrary + // are still valid version numbers, as long as it's not -1. + // After bitshift by 16, the negatives become valid positive major version number. + // We ran into this first time with iOS 12. + if (version != -1) { + return ((version & FBSDKInternalUtilityMajorVersionMask) >> FBSDKInternalUtilityMajorVersionShift); + } else { + return 0; + } +} + ++ (BOOL)object:(id)object isEqualToObject:(id)other +{ + if (object == other) { + return YES; + } + if (!object || !other) { + return NO; + } + return [object isEqual:other]; +} + ++ (NSOperatingSystemVersion)operatingSystemVersion +{ + static NSOperatingSystemVersion operatingSystemVersion = { + .majorVersion = 0, + .minorVersion = 0, + .patchVersion = 0, + }; + static dispatch_once_t getVersionOnce; + dispatch_once(&getVersionOnce, ^{ + if ([NSProcessInfo instancesRespondToSelector:@selector(operatingSystemVersion)]) { + operatingSystemVersion = [NSProcessInfo processInfo].operatingSystemVersion; + } else { + NSArray *components = [[UIDevice currentDevice].systemVersion componentsSeparatedByString:@"."]; + switch (components.count) { + default: + case 3: + operatingSystemVersion.patchVersion = [components[2] integerValue]; + // fall through + case 2: + operatingSystemVersion.minorVersion = [components[1] integerValue]; + // fall through + case 1: + operatingSystemVersion.majorVersion = [components[0] integerValue]; + break; + case 0: + operatingSystemVersion.majorVersion = ([self isUIKitLinkTimeVersionAtLeast:FBSDKUIKitVersion_7_0] ? 7 : 6); + break; + } + } + }); + return operatingSystemVersion; +} + ++ (BOOL)shouldManuallyAdjustOrientation +{ + return (![self isUIKitLinkTimeVersionAtLeast:FBSDKUIKitVersion_8_0] || + ![self isUIKitRunTimeVersionAtLeast:FBSDKUIKitVersion_8_0]); +} + ++ (NSURL *)URLWithScheme:(NSString *)scheme + host:(NSString *)host + path:(NSString *)path + queryParameters:(NSDictionary *)queryParameters + error:(NSError *__autoreleasing *)errorRef +{ + if (![path hasPrefix:@"/"]) { + path = [@"/" stringByAppendingString:path ?: @""]; + } + + NSString *queryString = nil; + if (queryParameters.count) { + NSError *queryStringError; + queryString = [@"?" stringByAppendingString:[FBSDKBasicUtility queryStringWithDictionary:queryParameters + error:&queryStringError + invalidObjectHandler:NULL]]; + if (!queryString) { + if (errorRef != NULL) { + *errorRef = [FBSDKError invalidArgumentErrorWithName:@"queryParameters" + value:queryParameters + message:nil + underlyingError:queryStringError]; + } + return nil; + } + } + + NSURL *const URL = [NSURL URLWithString:[NSString stringWithFormat: + @"%@://%@%@%@", + scheme ?: @"", + host ?: @"", + path ?: @"", + queryString ?: @""]]; + if (errorRef != NULL) { + if (URL) { + *errorRef = nil; + } else { + *errorRef = [FBSDKError unknownErrorWithMessage:@"Unknown error building URL."]; + } + } + return URL; +} + ++ (void)deleteFacebookCookies +{ + NSHTTPCookieStorage *cookies = [NSHTTPCookieStorage sharedHTTPCookieStorage]; + NSArray *facebookCookies = [cookies cookiesForURL:[self facebookURLWithHostPrefix:@"m." + path:@"/dialog/" + queryParameters:@{} + error:NULL]]; + + for (NSHTTPCookie *cookie in facebookCookies) { + [cookies deleteCookie:cookie]; + } +} + +static NSMapTable *_transientObjects; + ++ (void)registerTransientObject:(id)object +{ + NSAssert([NSThread isMainThread], @"Must be called from the main thread!"); + if (!_transientObjects) { + _transientObjects = [[NSMapTable alloc] init]; + } + NSUInteger count = ((NSNumber *)[_transientObjects objectForKey:object]).unsignedIntegerValue; + [_transientObjects setObject:@(count + 1) forKey:object]; +} + ++ (void)unregisterTransientObject:(__weak id)object +{ + if (!object) { + return; + } + NSAssert([NSThread isMainThread], @"Must be called from the main thread!"); + NSUInteger count = ((NSNumber *)[_transientObjects objectForKey:object]).unsignedIntegerValue; + if (count == 1) { + [_transientObjects removeObjectForKey:object]; + } else if (count != 0) { + [_transientObjects setObject:@(count - 1) forKey:object]; + } else { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors + formatString:@"unregisterTransientObject:%@ count is 0. This may indicate a bug in the FBSDK. Please" + " file a report to developers.facebook.com/bugs if you encounter any problems. Thanks!", [object class]]; + } +} + ++ (UIViewController *)viewControllerForView:(UIView *)view +{ + UIResponder *responder = view.nextResponder; + while (responder) { + if ([responder isKindOfClass:[UIViewController class]]) { + return (UIViewController *)responder; + } + responder = responder.nextResponder; + } + return nil; +} + +#pragma mark - FB Apps Installed + ++ (BOOL)isFacebookAppInstalled +{ + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + [FBSDKInternalUtility checkRegisteredCanOpenURLScheme:FBSDK_CANOPENURL_FACEBOOK]; + }); + return [self _canOpenURLScheme:FBSDK_CANOPENURL_FACEBOOK]; +} + ++ (BOOL)isMessengerAppInstalled +{ + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + [FBSDKInternalUtility checkRegisteredCanOpenURLScheme:FBSDK_CANOPENURL_MESSENGER]; + }); + return [self _canOpenURLScheme:FBSDK_CANOPENURL_MESSENGER]; +} + ++ (BOOL)isMSQRDPlayerAppInstalled +{ + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + [FBSDKInternalUtility checkRegisteredCanOpenURLScheme:FBSDK_CANOPENURL_MSQRD_PLAYER]; + }); + return [self _canOpenURLScheme:FBSDK_CANOPENURL_MSQRD_PLAYER]; +} + +#pragma mark - Helper Methods + ++ (NSComparisonResult)_compareOperatingSystemVersion:(NSOperatingSystemVersion)version1 + toVersion:(NSOperatingSystemVersion)version2 +{ + if (version1.majorVersion < version2.majorVersion) { + return NSOrderedAscending; + } else if (version1.majorVersion > version2.majorVersion) { + return NSOrderedDescending; + } else if (version1.minorVersion < version2.minorVersion) { + return NSOrderedAscending; + } else if (version1.minorVersion > version2.minorVersion) { + return NSOrderedDescending; + } else if (version1.patchVersion < version2.patchVersion) { + return NSOrderedAscending; + } else if (version1.patchVersion > version2.patchVersion) { + return NSOrderedDescending; + } else { + return NSOrderedSame; + } +} + ++ (BOOL)_canOpenURLScheme:(NSString *)scheme +{ + NSURLComponents *components = [[NSURLComponents alloc] init]; + components.scheme = scheme; + components.path = @"/"; + return [[UIApplication sharedApplication] canOpenURL:components.URL]; +} + ++ (void)validateAppID +{ + if (![FBSDKSettings appID]) { + NSString *reason = @"App ID not found. Add a string value with your app ID for the key " + @"FacebookAppID to the Info.plist or call [FBSDKSettings setAppID:]."; + @throw [NSException exceptionWithName:@"InvalidOperationException" reason:reason userInfo:nil]; + } +} + ++ (NSString *)validateRequiredClientAccessToken { + if (![FBSDKSettings clientToken]) { + NSString *reason = @"ClientToken is required to be set for this operation. " + @"Set the FacebookClientToken in the Info.plist or call [FBSDKSettings setClientToken:]. " + @"You can find your client token in your App Settings -> Advanced."; + @throw [NSException exceptionWithName:@"InvalidOperationException" reason:reason userInfo:nil]; + } + return [NSString stringWithFormat:@"%@|%@", [FBSDKSettings appID], [FBSDKSettings clientToken]]; +} + ++ (void)validateURLSchemes +{ + [self validateAppID]; + NSString *defaultUrlScheme = [NSString stringWithFormat:@"fb%@%@", [FBSDKSettings appID], [FBSDKSettings appURLSchemeSuffix] ?: @""]; + if (![self isRegisteredURLScheme:defaultUrlScheme]) { + NSString *reason = [NSString stringWithFormat:@"%@ is not registered as a URL scheme. Please add it in your Info.plist", defaultUrlScheme]; + @throw [NSException exceptionWithName:@"InvalidOperationException" reason:reason userInfo:nil]; + } +} + ++ (void)validateFacebookReservedURLSchemes +{ + for (NSString * fbUrlScheme in @[FBSDK_CANOPENURL_FACEBOOK, FBSDK_CANOPENURL_MESSENGER, FBSDK_CANOPENURL_FBAPI, FBSDK_CANOPENURL_SHARE_EXTENSION]) { + if ([self isRegisteredURLScheme:fbUrlScheme]) { + NSString *reason = [NSString stringWithFormat:@"%@ is registered as a URL scheme. Please move the entry from CFBundleURLSchemes in your Info.plist to LSApplicationQueriesSchemes. If you are trying to resolve \"canOpenURL: failed\" warnings, those only indicate that the Facebook app is not installed on your device or simulator and can be ignored.", fbUrlScheme]; + @throw [NSException exceptionWithName:@"InvalidOperationException" reason:reason userInfo:nil]; + } + } +} + ++ (UIWindow *)findWindow +{ + UIWindow *window = [UIApplication sharedApplication].keyWindow; + if (window == nil || window.windowLevel != UIWindowLevelNormal) { + for (window in [UIApplication sharedApplication].windows) { + if (window.windowLevel == UIWindowLevelNormal) { + break; + } + } + } + + // Find active key window from UIScene + if (@available(iOS 13.0, tvOS 13, *)) { + NSSet *scenes = [[UIApplication sharedApplication] valueForKey:@"connectedScenes"]; + for (id scene in scenes) { + if (window) { + break; + } + + id activationState = [scene valueForKeyPath:@"activationState"]; + BOOL isActive = activationState != nil && [activationState integerValue] == 0; + if (isActive) { + Class WindowScene = NSClassFromString(@"UIWindowScene"); + if ([scene isKindOfClass:WindowScene]) { + NSArray *windows = [scene valueForKeyPath:@"windows"]; + for (UIWindow *w in windows) { + if (w.isKeyWindow) { + window = w; + break; + } + } + } + } + } + } + + if (window == nil) { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors + formatString:@"Unable to find a valid UIWindow", nil]; + } + return window; +} + ++ (UIViewController *)topMostViewController +{ + UIWindow *keyWindow = [self findWindow]; + // SDK expects a key window at this point, if it is not, make it one + if (keyWindow != nil && !keyWindow.isKeyWindow) { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors + formatString:@"Unable to obtain a key window, marking %@ as keyWindow", keyWindow.description]; + [keyWindow makeKeyWindow]; + } + + UIViewController *topController = keyWindow.rootViewController; + while (topController.presentedViewController) { + topController = topController.presentedViewController; + } + return topController; +} + ++ (NSString *)hexadecimalStringFromData:(NSData *)data +{ + NSUInteger dataLength = data.length; + if (dataLength == 0) { + return nil; + } + + const unsigned char *dataBuffer = data.bytes; + NSMutableString *hexString = [NSMutableString stringWithCapacity:(dataLength * 2)]; + for (int i = 0; i < dataLength; ++i) { + [hexString appendFormat:@"%02x", dataBuffer[i]]; + } + return [hexString copy]; +} + ++ (BOOL)isRegisteredURLScheme:(NSString *)urlScheme { + static dispatch_once_t fetchBundleOnce; + static NSArray *urlTypes = nil; + + dispatch_once(&fetchBundleOnce, ^{ + urlTypes = [[NSBundle mainBundle].infoDictionary valueForKey:@"CFBundleURLTypes"]; + }); + for (NSDictionary *urlType in urlTypes) { + NSArray *urlSchemes = [urlType valueForKey:@"CFBundleURLSchemes"]; + if ([urlSchemes containsObject:urlScheme]) { + return YES; + } + } + return NO; +} + ++ (void)checkRegisteredCanOpenURLScheme:(NSString *)urlScheme +{ + static dispatch_once_t initCheckedSchemesOnce; + static NSMutableSet *checkedSchemes = nil; + + dispatch_once(&initCheckedSchemesOnce, ^{ + checkedSchemes = [NSMutableSet set]; + }); + + @synchronized(self) { + if ([checkedSchemes containsObject:urlScheme]) { + return; + } else { + [checkedSchemes addObject:urlScheme]; + } + } + + if (![self isRegisteredCanOpenURLScheme:urlScheme]){ + NSString *reason = [NSString stringWithFormat:@"%@ is missing from your Info.plist under LSApplicationQueriesSchemes and is required for iOS 9.0", urlScheme]; + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors logEntry:reason]; + } +} + ++ (BOOL)isRegisteredCanOpenURLScheme:(NSString *)urlScheme +{ + static dispatch_once_t fetchBundleOnce; + static NSArray *schemes = nil; + + dispatch_once(&fetchBundleOnce, ^{ + schemes = [[NSBundle mainBundle].infoDictionary valueForKey:@"LSApplicationQueriesSchemes"]; + }); + + return [schemes containsObject:urlScheme]; +} + ++ (BOOL)isPublishPermission:(NSString *)permission +{ + return [permission hasPrefix:@"publish"] || + [permission hasPrefix:@"manage"] || + [permission isEqualToString:@"ads_management"] || + [permission isEqualToString:@"create_event"] || + [permission isEqualToString:@"rsvp_event"]; +} + ++ (BOOL)isUnity +{ + NSString *userAgentSuffix = [FBSDKSettings userAgentSuffix]; + if (userAgentSuffix != nil && [userAgentSuffix rangeOfString:@"Unity"].location != NSNotFound) { + return YES; + } + return NO; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKLogger.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKLogger.h new file mode 100644 index 0000000000000..04f5fc8bd43c6 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKLogger.h @@ -0,0 +1,91 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + + Simple logging utility for conditionally logging strings and then emitting them + via NSLog(). + + @unsorted + */ +NS_SWIFT_NAME(Logger) +@interface FBSDKLogger : NSObject + +// Access current accumulated contents of the logger. +@property (copy, nonatomic) NSString *contents; + +// Each FBSDKLogger gets a unique serial number to allow the client to log these numbers and, for instance, correlation of Request/Response +@property (nonatomic, readonly) NSUInteger loggerSerialNumber; + +// The logging behavior of this logger. See the FB_LOG_BEHAVIOR* constants in FBSession.h +@property (copy, nonatomic, readonly) NSString *loggingBehavior; + +// Is the current logger instance active, based on its loggingBehavior? +@property (nonatomic, readonly, getter=isActive) BOOL active; + +// +// Instance methods +// + +// Create with specified logging behavior +- (instancetype)initWithLoggingBehavior:(NSString *)loggingBehavior; + +// Append string, or key/value pair +- (void)appendString:(NSString *)string; +- (void)appendFormat:(NSString *)formatString, ... NS_FORMAT_FUNCTION(1,2); +- (void)appendKey:(NSString *)key value:(NSString *)value; + +// Emit log, clearing out the logger contents. +- (void)emitToNSLog; + +// +// Class methods +// + +// +// Return a globally unique serial number to be used for correlating multiple output from the same logger. +// ++ (NSUInteger)generateSerialNumber; + +// Simple helper to write a single log entry, based upon whether the behavior matches a specified on. ++ (void)singleShotLogEntry:(NSString *)loggingBehavior + logEntry:(NSString *)logEntry; + ++ (void)singleShotLogEntry:(NSString *)loggingBehavior + formatString:(NSString *)formatString, ... NS_FORMAT_FUNCTION(2,3); + ++ (void)singleShotLogEntry:(NSString *)loggingBehavior + timestampTag:(NSObject *)timestampTag + formatString:(NSString *)formatString, ... NS_FORMAT_FUNCTION(3,4); + +// Register a timestamp label with the "current" time, to then be retrieved by singleShotLogEntry +// to include a duration. ++ (void)registerCurrentTime:(NSString *)loggingBehavior + withTag:(NSObject *)timestampTag; + +// When logging strings, replace all instances of 'replace' with instances of 'replaceWith'. ++ (void)registerStringToReplace:(NSString *)replace + replaceWith:(NSString *)replaceWith; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKLogger.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKLogger.m new file mode 100644 index 0000000000000..d5169b1c52a99 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKLogger.m @@ -0,0 +1,218 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKLogger.h" + +#import "FBSDKInternalUtility.h" +#import "FBSDKSettings+Internal.h" + +static NSUInteger g_serialNumberCounter = 1111; +static NSMutableDictionary *g_stringsToReplace = nil; +static NSMutableDictionary *g_startTimesWithTags = nil; + +@interface FBSDKLogger () + +@property (nonatomic, strong, readonly) NSMutableString *internalContents; + +@end + +@implementation FBSDKLogger + +// Lifetime + +- (instancetype)initWithLoggingBehavior:(NSString *)loggingBehavior +{ + if ((self = [super init])) { + _active = [FBSDKSettings.loggingBehaviors containsObject:loggingBehavior]; + _loggingBehavior = loggingBehavior; + if (_active) { + _internalContents = [[NSMutableString alloc] init]; + _loggerSerialNumber = [FBSDKLogger generateSerialNumber]; + } + } + + return self; +} + +// Public properties + +- (NSString *)contents +{ + return _internalContents; +} + +- (void)setContents:(NSString *)contents +{ + if (_active) { + _internalContents = [NSMutableString stringWithString:contents]; + } +} + +// Public instance methods + +- (void)appendString:(NSString *)string +{ + if (_active) { + [_internalContents appendString:string]; + } +} + +- (void)appendFormat:(NSString *)formatString, ... +{ + if (_active) { + va_list vaArguments; + va_start(vaArguments, formatString); + NSString *logString = [[NSString alloc] initWithFormat:formatString arguments:vaArguments]; + va_end(vaArguments); + + [self appendString:logString]; + } +} + + +- (void)appendKey:(NSString *)key value:(NSString *)value +{ + if (_active && value.length) { + [_internalContents appendFormat:@" %@:\t%@\n", key, value]; + } +} + +- (void)emitToNSLog +{ + if (_active) { + + for (NSString *key in [g_stringsToReplace keyEnumerator]) { + [_internalContents replaceOccurrencesOfString:key + withString:g_stringsToReplace[key] + options:NSLiteralSearch + range:NSMakeRange(0, _internalContents.length)]; + } + + // Xcode 4.4 hangs on extremely long NSLog output (http://openradar.appspot.com/11972490). Truncate if needed. + const int MAX_LOG_STRING_LENGTH = 10000; + NSString *logString = _internalContents; + if (_internalContents.length > MAX_LOG_STRING_LENGTH) { + logString = [NSString stringWithFormat:@"TRUNCATED: %@", [_internalContents substringToIndex:MAX_LOG_STRING_LENGTH]]; + } + NSLog(@"FBSDKLog: %@", logString); + + [_internalContents setString:@""]; + } +} + +// Public static methods + ++ (NSUInteger)generateSerialNumber +{ + return g_serialNumberCounter++; +} + ++ (void)singleShotLogEntry:(NSString *)loggingBehavior + logEntry:(NSString *)logEntry { + if ([FBSDKSettings.loggingBehaviors containsObject:loggingBehavior]) { + FBSDKLogger *logger = [[FBSDKLogger alloc] initWithLoggingBehavior:loggingBehavior]; + [logger appendString:logEntry]; + [logger emitToNSLog]; + } +} + ++ (void)singleShotLogEntry:(NSString *)loggingBehavior + formatString:(NSString *)formatString, ... { + + if ([FBSDKSettings.loggingBehaviors containsObject:loggingBehavior]) { + va_list vaArguments; + va_start(vaArguments, formatString); + NSString *logString = [[NSString alloc] initWithFormat:formatString arguments:vaArguments]; + va_end(vaArguments); + + [self singleShotLogEntry:loggingBehavior logEntry:logString]; + } +} + + ++ (void)singleShotLogEntry:(NSString *)loggingBehavior + timestampTag:(NSObject *)timestampTag + formatString:(NSString *)formatString, ... { + + if ([FBSDKSettings.loggingBehaviors containsObject:loggingBehavior]) { + va_list vaArguments; + va_start(vaArguments, formatString); + NSString *logString = [[NSString alloc] initWithFormat:formatString arguments:vaArguments]; + va_end(vaArguments); + + // Start time of this "timestampTag" is stashed in the dictionary. + // Treat the incoming object tag simply as an address, since it's only used to identify during lifetime. If + // we send in as an object, the dictionary will try to copy it. + NSNumber *tagAsNumber = @((unsigned long)(__bridge void *)timestampTag); + NSNumber *startTimeNumber = g_startTimesWithTags[tagAsNumber]; + + // Only log if there's been an associated start time. + if (startTimeNumber != nil) { + uint64_t elapsed = [FBSDKInternalUtility currentTimeInMilliseconds] - startTimeNumber.unsignedLongLongValue; + [g_startTimesWithTags removeObjectForKey:tagAsNumber]; // served its purpose, remove + + // Log string is appended with "%d msec", with nothing intervening. This gives the most control to the caller. + logString = [NSString stringWithFormat:@"%@%llu msec", logString, elapsed]; + + [self singleShotLogEntry:loggingBehavior logEntry:logString]; + } + } +} + ++ (void)registerCurrentTime:(NSString *)loggingBehavior + withTag:(NSObject *)timestampTag { + + if ([FBSDKSettings.loggingBehaviors containsObject:loggingBehavior]) { + + if (!g_startTimesWithTags) { + g_startTimesWithTags = [[NSMutableDictionary alloc] init]; + } + + if (g_startTimesWithTags.count >= 1000) { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors logEntry: + @"Unexpectedly large number of outstanding perf logging start times, something is likely wrong."]; + } + + uint64_t currTime = [FBSDKInternalUtility currentTimeInMilliseconds]; + + // Treat the incoming object tag simply as an address, since it's only used to identify during lifetime. If + // we send in as an object, the dictionary will try to copy it. + unsigned long tagAsNumber = (unsigned long)(__bridge void *)timestampTag; + g_startTimesWithTags[@(tagAsNumber)] = @(currTime); + } +} + + ++ (void)registerStringToReplace:(NSString *)replace + replaceWith:(NSString *)replaceWith { + + // Strings sent in here never get cleaned up, but that's OK, don't ever expect too many. + + if (FBSDKSettings.loggingBehaviors.count > 0) { // otherwise there's no logging. + + if (!g_stringsToReplace) { + g_stringsToReplace = [[NSMutableDictionary alloc] init]; + } + + [g_stringsToReplace setValue:replaceWith forKey:replace]; + } +} + + + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKMath.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKMath.h new file mode 100644 index 0000000000000..e4eb673f605d4 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKMath.h @@ -0,0 +1,46 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +NS_SWIFT_NAME(Math) +@interface FBSDKMath : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + ++ (CGPoint)ceilForPoint:(CGPoint)value; ++ (CGSize)ceilForSize:(CGSize)value; ++ (CGPoint)floorForPoint:(CGPoint)value; ++ (CGSize)floorForSize:(CGSize)value; ++ (NSUInteger)hashWithCGFloat:(CGFloat)value; ++ (NSUInteger)hashWithCString:(const char *)value; ++ (NSUInteger)hashWithDouble:(double)value; ++ (NSUInteger)hashWithFloat:(float)value; ++ (NSUInteger)hashWithInteger:(NSUInteger)value; ++ (NSUInteger)hashWithInteger:(NSUInteger)value1 andInteger:(NSUInteger)value2; ++ (NSUInteger)hashWithIntegerArray:(NSUInteger *)values count:(NSUInteger)count; ++ (NSUInteger)hashWithLong:(unsigned long long)value; ++ (NSUInteger)hashWithPointer:(const void *)value; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKMath.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKMath.m new file mode 100644 index 0000000000000..302e80b170e37 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKMath.m @@ -0,0 +1,149 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +// +// Based on Thomas Wang 32/64 bit mix hash +// http://www.concentric.net/~Ttwang/tech/inthash.htm +// + +#import "FBSDKMath.h" + +#import + +@implementation FBSDKMath + +#pragma mark - Class Methods + ++ (CGPoint)ceilForPoint:(CGPoint)value +{ + return CGPointMake(ceilf(value.x), ceilf(value.x)); +} + ++ (CGSize)ceilForSize:(CGSize)value +{ + return CGSizeMake(ceilf(value.width), ceilf(value.height)); +} + ++ (CGPoint)floorForPoint:(CGPoint)value +{ + return CGPointMake(floorf(value.x), floorf(value.y)); +} + ++ (CGSize)floorForSize:(CGSize)value +{ + return CGSizeMake(floorf(value.width), floorf(value.height)); +} + ++ (NSUInteger)hashWithCGFloat:(CGFloat)value +{ +#if CGFLOAT_IS_DOUBLE + return [self hashWithDouble:value]; +#else + return [self hashWithFloat:value]; +#endif +} + ++ (NSUInteger)hashWithCString:(const char *)value +{ + // FNV-1a hash. + NSUInteger hash = sizeof(NSUInteger) == 4 ? 2166136261U : 14695981039346656037U; + while (*value) { + hash ^= *value++; + hash *= sizeof(NSUInteger) == 4 ? 16777619 : 1099511628211; + } + return hash; +} + ++ (NSUInteger)hashWithDouble:(double)value +{ + assert(sizeof(double) == sizeof(uint64_t)); // Size of double must be 8 bytes + union { + double key; + uint64_t bits; + } u; + u.key = value; + return [self hashWithLong:u.bits]; +} + ++ (NSUInteger)hashWithFloat:(float)value +{ + assert(sizeof(float) == sizeof(uint32_t)); // Size of float must be 4 bytes + union { + float key; + uint32_t bits; + } u; + u.key = value; + return [self hashWithInteger:u.bits]; +} + ++ (NSUInteger)hashWithInteger:(NSUInteger)value +{ + return [self hashWithPointer:(void *)value]; +} + ++ (NSUInteger)hashWithInteger:(NSUInteger)value1 andInteger:(NSUInteger)value2 +{ + return [self hashWithLong:(((unsigned long long)value1) << 32 | value2)]; +} + ++ (NSUInteger)hashWithIntegerArray:(NSUInteger *)values count:(NSUInteger)count +{ + if (count == 0) { + return 0; + } + NSUInteger hash = values[0]; + for (NSUInteger i = 1; i < count; ++i) { + hash = [self hashWithInteger:hash andInteger:values[i]]; + } + return hash; +} + ++ (NSUInteger)hashWithLong:(unsigned long long)value +{ + value = (~value) + (value << 18); // key = (key << 18) - key - 1; + value ^= (value >> 31); + value *= 21; // key = (key + (key << 2)) + (key << 4); + value ^= (value >> 11); + value += (value << 6); + value ^= (value >> 22); + return (NSUInteger)value; +} + ++ (NSUInteger)hashWithPointer:(const void *)value +{ + NSUInteger hash = (NSUInteger)value; +#if !TARGET_RT_64_BIT + hash = ~hash + (hash << 15); // key = (key << 15) - key - 1; + hash ^= (hash >> 12); + hash += (hash << 2); + hash ^= (hash >> 4); + hash *= 2057; // key = (key + (key << 3)) + (key << 11); + hash ^= (hash >> 16); +#else + hash += ~hash + (hash << 21); // key = (key << 21) - key - 1; + hash ^= (hash >> 24); + hash = (hash + (hash << 3)) + (hash << 8); + hash ^= (hash >> 14); + hash = (hash + (hash << 2)) + (hash << 4); // key * 21 + hash ^= (hash >> 28); + hash += (hash << 31); +#endif + return hash; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKMeasurementEvent_Internal.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKMeasurementEvent_Internal.h new file mode 100644 index 0000000000000..a7fec078ff273 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKMeasurementEvent_Internal.h @@ -0,0 +1,33 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKMeasurementEvent.h" + +NS_ASSUME_NONNULL_BEGIN + +/** + Provides methods for posting notifications from App Links + */ +@interface FBSDKMeasurementEvent (Internal) + ++ (void)postNotificationForEventName:(NSString *)name + args:(NSDictionary *)args; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKMonotonicTime.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKMonotonicTime.h new file mode 100644 index 0000000000000..d504d9733ec31 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKMonotonicTime.h @@ -0,0 +1,67 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#include + +typedef double FBSDKMonotonicTimeSeconds; +typedef uint64_t FBSDKMonotonicTimeMilliseconds; +typedef uint64_t FBSDKMonotonicTimeNanoseconds; +typedef uint64_t FBSDKMachAbsoluteTimeUnits; + +/** + * return current monotonic time in Milliseconds + * Millisecond precision, uint64_t value. + * Avoids float/double math operations, thus more efficient than FBSDKMonotonicTimeGetCurrentSeconds. + * Should be preferred over FBSDKMonotonicTimeGetCurrentSeconds in case millisecond + * precision is required. + * IMPORTANT: this timer doesn't run while the device is sleeping. + */ +FBSDKMonotonicTimeMilliseconds FBSDKMonotonicTimeGetCurrentMilliseconds(void); + +/** + * return current monotonic time in Seconds + * Nanosecond precision, double value. + * Should be preferred over FBSDKMonotonicTimeGetCurrentMilliseconds in case + * nanosecond precision is required. + * IMPORTANT: this timer doesn't run while the device is sleeping. + */ +FBSDKMonotonicTimeSeconds FBSDKMonotonicTimeGetCurrentSeconds(void); + +/** + * return current monotonic time in NanoSeconds + * Nanosecond precision, uint64_t value. + * Useful when nanosecond precision is required but you want to avoid float/double math operations. + * IMPORTANT: this timer doesn't run while the device is sleeping. + */ +FBSDKMonotonicTimeNanoseconds FBSDKMonotonicTimeGetCurrentNanoseconds(void); + +/** + * return number of MachTimeUnits for given number of seconds + * this is useful when you want to use the really fast mach_absolute_time() function + * to calculate deltas between two points and then check it against a (precomputed) threshold. + * Nanosecond precision, uint64_t value. + */ +FBSDKMachAbsoluteTimeUnits FBSDKMonotonicTimeConvertSecondsToMachUnits(FBSDKMonotonicTimeSeconds seconds); + +/** + * return the number of seconds for a given amount of MachTimeUnits + * this is useful when you want to use the really fast mach_absolute_time() function, take + * deltas between time points, and when you're out of the timing critical section, use + * this function to compute how many seconds the delta works out to be. + */ +FBSDKMonotonicTimeSeconds FBSDKMonotonicTimeConvertMachUnitsToSeconds(FBSDKMachAbsoluteTimeUnits machUnits); diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKMonotonicTime.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKMonotonicTime.m new file mode 100644 index 0000000000000..7a3a3426e2086 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKMonotonicTime.m @@ -0,0 +1,87 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKMonotonicTime.h" + +#include +#include +#include + +#include + +/** + * PLEASE NOTE: FBSDKSDKMonotonicTimeTests work fine, but are disabled + * because they take several seconds. Please re-enable them to test + * any changes you're making here! + */ +static uint64_t _get_time_nanoseconds(void) +{ + static struct mach_timebase_info tb_info = {0}; + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + int ret = mach_timebase_info(&tb_info); + assert(0 == ret); + }); + + return (mach_absolute_time() * tb_info.numer) / tb_info.denom; +} + +FBSDKMonotonicTimeSeconds FBSDKMonotonicTimeGetCurrentSeconds(void) +{ + const uint64_t nowNanoSeconds = _get_time_nanoseconds(); + return (FBSDKMonotonicTimeSeconds)nowNanoSeconds / (FBSDKMonotonicTimeSeconds)1000000000.0; +} + +FBSDKMonotonicTimeMilliseconds FBSDKMonotonicTimeGetCurrentMilliseconds(void) +{ + const uint64_t nowNanoSeconds = _get_time_nanoseconds(); + return nowNanoSeconds / 1000000; +} + +FBSDKMonotonicTimeNanoseconds FBSDKMonotonicTimeGetCurrentNanoseconds(void) +{ + return _get_time_nanoseconds(); +} + +FBSDKMachAbsoluteTimeUnits FBSDKMonotonicTimeConvertSecondsToMachUnits(FBSDKMonotonicTimeSeconds seconds) +{ + static double ratio = 0; + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + struct mach_timebase_info tb_info = {0}; + int ret = mach_timebase_info(&tb_info); + assert(0 == ret); + ratio = ((double) tb_info.denom / (double)tb_info.numer) * 1000000000.0; + }); + + return seconds * ratio; +} + +FBSDKMonotonicTimeSeconds FBSDKMonotonicTimeConvertMachUnitsToSeconds(FBSDKMachAbsoluteTimeUnits machUnits) +{ + static double ratio = 0; + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + struct mach_timebase_info tb_info = {0}; + int ret = mach_timebase_info(&tb_info); + assert(0 == ret); + ratio = ((double) tb_info.numer / (double)tb_info.denom) / 1000000000.0; + }); + + return ratio * (double)machUnits; +} diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKProfile+Internal.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKProfile+Internal.h new file mode 100644 index 0000000000000..486ccf45a4855 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKProfile+Internal.h @@ -0,0 +1,30 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKProfile.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface FBSDKProfile(Internal) + ++ (void)cacheProfile:(nullable FBSDKProfile *)profile; ++ (nullable FBSDKProfile *)fetchCachedProfile; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKSettings+Internal.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKSettings+Internal.h new file mode 100644 index 0000000000000..2d0eae89075ab --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKSettings+Internal.h @@ -0,0 +1,34 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +@protocol FBSDKAccessTokenCaching; + +@interface FBSDKSettings(Internal) + ++ (NSObject *)accessTokenCache; + ++ (void)setAccessTokenCache:(NSObject *)accessTokenCache; + +@property (class, nonatomic, copy, readonly) NSString *graphAPIDebugParamValue; + +// used by Unity. +@property (class, nonatomic, copy) NSString *userAgentSuffix; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKSwizzler.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKSwizzler.h new file mode 100644 index 0000000000000..9e7b57dfc6c32 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKSwizzler.h @@ -0,0 +1,39 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +// Cast to turn things that are not ids into NSMapTable keys +#define MAPTABLE_ID(x) (__bridge id)((void *)x) + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wstrict-prototypes" + +typedef void (^swizzleBlock)(); + +#pragma clang diagnostic pop + +// Rename to avoid duplicate symbol errors +NS_SWIFT_NAME(Swizzler) +@interface FBSDKSwizzler : NSObject + ++ (void)swizzleSelector:(SEL)aSelector onClass:(Class)aClass withBlock:(swizzleBlock)block named:(NSString *)aName; ++ (void)unswizzleSelector:(SEL)aSelector onClass:(Class)aClass named:(NSString *)aName; ++ (void)printSwizzles; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKSwizzler.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKSwizzler.m new file mode 100644 index 0000000000000..45686c9f1e0cb --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKSwizzler.m @@ -0,0 +1,324 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKSwizzler.h" + +#import + +#define MIN_ARGS 2 +#define MAX_ARGS 5 + +@interface FBSDKSwizzle : NSObject + +@property (nonatomic, assign) Class class; +@property (nonatomic, assign) SEL selector; +@property (nonatomic, assign) IMP originalMethod; +@property (nonatomic, assign) uint numArgs; +@property (nonatomic, copy) NSMapTable *blocks; + +- (instancetype)initWithBlock:(swizzleBlock)aBlock + named:(NSString *)aName + forClass:(Class)aClass + selector:(SEL)aSelector + originalMethod:(IMP)aMethod + withNumArgs:(uint)numArgs; + +@end + +static NSMapTable *swizzles; + +static FBSDKSwizzle* fb_findSwizzle(id self, SEL _cmd){ + Method aMethod = class_getInstanceMethod([self class], _cmd); + FBSDKSwizzle *swizzle = (FBSDKSwizzle *)[swizzles objectForKey:MAPTABLE_ID(aMethod)]; + Class this_class = [self class]; + while (!swizzle && class_getSuperclass(this_class)){ + this_class = class_getSuperclass(this_class); + aMethod = class_getInstanceMethod(this_class, _cmd); + swizzle = (FBSDKSwizzle *)[swizzles objectForKey:MAPTABLE_ID(aMethod)]; + } + return swizzle; +} + +static void fb_swizzledMethod_2(id self, SEL _cmd) +{ + FBSDKSwizzle *swizzle = fb_findSwizzle(self, _cmd); + if (swizzle) { + ((void(*)(id, SEL))swizzle.originalMethod)(self, _cmd); + + NSEnumerator *blocks = [swizzle.blocks objectEnumerator]; + swizzleBlock block; + while ((block = [blocks nextObject])) { + block(self, _cmd); + } + } +} + +static void fb_swizzledMethod_3(id self, SEL _cmd, id arg) +{ + FBSDKSwizzle *swizzle = fb_findSwizzle(self, _cmd); + if (swizzle) { + ((void(*)(id, SEL, id))swizzle.originalMethod)(self, _cmd, arg); + + NSEnumerator *blocks = [swizzle.blocks objectEnumerator]; + swizzleBlock block; + while ((block = [blocks nextObject])) { + block(self, _cmd, arg); + } + } +} + +static void fb_swizzledMethod_4(id self, SEL _cmd, id arg, id arg2) +{ + FBSDKSwizzle *swizzle = fb_findSwizzle(self, _cmd); + if (swizzle) { + ((void(*)(id, SEL, id, id))swizzle.originalMethod)(self, _cmd, arg, arg2); + + NSEnumerator *blocks = [swizzle.blocks objectEnumerator]; + swizzleBlock block; + while ((block = [blocks nextObject])) { + block(self, _cmd, arg, arg2); + } + } +} + +static void fb_swizzledMethod_5(id self, SEL _cmd, id arg, id arg2, id arg3) +{ + FBSDKSwizzle *swizzle = fb_findSwizzle(self, _cmd); + if (swizzle) { + ((void(*)(id, SEL, id, id, id))swizzle.originalMethod)(self, _cmd, arg, arg2, arg3); + + NSEnumerator *blocks = [swizzle.blocks objectEnumerator]; + swizzleBlock block; + while ((block = [blocks nextObject])) { + block(self, _cmd, arg, arg2, arg3); + } + } +} + +static void fb_swizzleMethod_4_io(id self, SEL _cmd, NSInteger arg, id arg2) +{ + FBSDKSwizzle *swizzle = fb_findSwizzle(self, _cmd); + if (swizzle) { + ((void(*)(id, SEL, NSInteger, id))swizzle.originalMethod)(self, _cmd, arg, arg2); + + NSEnumerator *blocks = [swizzle.blocks objectEnumerator]; + swizzleBlock block; + while ((block = [blocks nextObject])) { + block(self, _cmd, arg, arg2); + } + } +} + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wstrict-prototypes" + +static void (*fb_swizzledMethods[MAX_ARGS - MIN_ARGS + 1])() = {fb_swizzledMethod_2, fb_swizzledMethod_3, fb_swizzledMethod_4, fb_swizzledMethod_5}; + +#pragma clang diagnostic pop + +@implementation FBSDKSwizzler + ++ (void)initialize +{ + swizzles = [NSMapTable mapTableWithKeyOptions:(NSPointerFunctionsOpaqueMemory | + NSPointerFunctionsOpaquePersonality) + valueOptions:(NSPointerFunctionsStrongMemory | + NSPointerFunctionsObjectPointerPersonality)]; + [FBSDKSwizzler resolveConflict]; +} + ++ (void)resolveConflict +{ + Class swizzler = objc_lookUpClass("MPSwizzler"); + if (swizzler) { + Method method = class_getClassMethod(swizzler, @selector(swizzleSelector:onClass:withBlock:named:)); + Method newMethod = class_getClassMethod(self, @selector(swizzleSelector:onClass:withBlock:named:)); + method_setImplementation(method, method_getImplementation(newMethod)); + } +} + ++ (void)printSwizzles +{ + NSEnumerator *en = [swizzles objectEnumerator]; + FBSDKSwizzle *swizzle; + while ((swizzle = (FBSDKSwizzle *)[en nextObject])) { + NSLog(@"%@", swizzle); + } +} + ++ (FBSDKSwizzle *)swizzleForMethod:(Method)aMethod +{ + return (FBSDKSwizzle *)[swizzles objectForKey:MAPTABLE_ID(aMethod)]; +} + ++ (void)removeSwizzleForMethod:(Method)aMethod +{ + [swizzles removeObjectForKey:MAPTABLE_ID(aMethod)]; +} + ++ (void)setSwizzle:(FBSDKSwizzle *)swizzle forMethod:(Method)aMethod +{ + [swizzles setObject:swizzle forKey:MAPTABLE_ID(aMethod)]; +} + ++ (BOOL)isLocallyDefinedMethod:(Method)aMethod onClass:(Class)aClass +{ + uint count; + BOOL isLocal = NO; + Method *methods = class_copyMethodList(aClass, &count); + for (NSUInteger i = 0; i < count; i++) { + if (aMethod == methods[i]) { + isLocal = YES; + break; + } + } + free(methods); + return isLocal; +} + ++ (void)swizzleSelector:(SEL)aSelector onClass:(Class)aClass withBlock:(swizzleBlock)aBlock named:(NSString *)aName +{ + Method aMethod = class_getInstanceMethod(aClass, aSelector); + if (aMethod) { + uint numArgs = method_getNumberOfArguments(aMethod); + if (numArgs >= MIN_ARGS && numArgs <= MAX_ARGS) { + + BOOL isLocal = [FBSDKSwizzler isLocallyDefinedMethod:aMethod onClass:aClass]; + IMP swizzledMethod = (IMP)fb_swizzledMethods[numArgs - 2]; + // Check whether the first parameter is integer + if (4 == numArgs) { + char *type = method_copyArgumentType(aMethod, 2); + NSString *firstType = [NSString stringWithCString:type encoding:NSUTF8StringEncoding]; + NSString *integerTypes = @"islq"; + if ([integerTypes containsString:firstType.lowercaseString]) { + swizzledMethod = (IMP)fb_swizzleMethod_4_io; + } + free(type); + } + + FBSDKSwizzle *swizzle = [FBSDKSwizzler swizzleForMethod:aMethod]; + + if (isLocal) { + if (!swizzle) { + IMP originalMethod = method_getImplementation(aMethod); + + // Replace the local implementation of this method with the swizzled one + method_setImplementation(aMethod,swizzledMethod); + + // Create and add the swizzle + swizzle = [[FBSDKSwizzle alloc] initWithBlock:aBlock named:aName forClass:aClass selector:aSelector originalMethod:originalMethod withNumArgs:numArgs]; + [FBSDKSwizzler setSwizzle:swizzle forMethod:aMethod]; + + } else { + [swizzle.blocks setObject:aBlock forKey:aName]; + } + } else { + IMP originalMethod = swizzle ? swizzle.originalMethod : method_getImplementation(aMethod); + + // Add the swizzle as a new local method on the class. + if (!class_addMethod(aClass, aSelector, swizzledMethod, method_getTypeEncoding(aMethod))) { + return; + } + // Now re-get the Method, it should be the one we just added. + Method newMethod = class_getInstanceMethod(aClass, aSelector); + if (aMethod == newMethod) { + return; + } + + FBSDKSwizzle *newSwizzle = [[FBSDKSwizzle alloc] initWithBlock:aBlock named:aName forClass:aClass selector:aSelector originalMethod:originalMethod withNumArgs:numArgs]; + [FBSDKSwizzler setSwizzle:newSwizzle forMethod:newMethod]; + } + } + } +} + ++ (void)unswizzleSelector:(SEL)aSelector onClass:(Class)aClass +{ + Method aMethod = class_getInstanceMethod(aClass, aSelector); + FBSDKSwizzle *swizzle = [FBSDKSwizzler swizzleForMethod:aMethod]; + if (swizzle) { + method_setImplementation(aMethod, swizzle.originalMethod); + [FBSDKSwizzler removeSwizzleForMethod:aMethod]; + } +} + +/* + Remove the named swizzle from the given class/selector. If aName is nil, remove all + swizzles for this class/selector +*/ ++ (void)unswizzleSelector:(SEL)aSelector onClass:(Class)aClass named:(NSString *)aName +{ + Method aMethod = class_getInstanceMethod(aClass, aSelector); + FBSDKSwizzle *swizzle = [FBSDKSwizzler swizzleForMethod:aMethod]; + if (swizzle) { + if (aName) { + [swizzle.blocks removeObjectForKey:aName]; + } + if (!aName || swizzle.blocks.count == 0) { + method_setImplementation(aMethod, swizzle.originalMethod); + [FBSDKSwizzler removeSwizzleForMethod:aMethod]; + } + } +} + +@end + + +@implementation FBSDKSwizzle + +- (instancetype)init +{ + if ((self = [super init])) { + self.blocks = [NSMapTable mapTableWithKeyOptions:(NSPointerFunctionsStrongMemory + | NSPointerFunctionsObjectPersonality) + valueOptions:(NSPointerFunctionsStrongMemory + | NSPointerFunctionsObjectPointerPersonality)]; + } + return self; +} + +- (instancetype)initWithBlock:(swizzleBlock)aBlock + named:(NSString *)aName + forClass:(Class)aClass + selector:(SEL)aSelector + originalMethod:(IMP)aMethod + withNumArgs:(uint)numArgs +{ + if ((self = [self init])) { + self.class = aClass; + self.selector = aSelector; + self.numArgs = numArgs; + self.originalMethod = aMethod; + [_blocks setObject:aBlock forKey:aName]; + } + return self; +} + +- (NSString *)description +{ + NSString *descriptors = @""; + NSString *key; + NSEnumerator *keys = [_blocks keyEnumerator]; + while ((key = [keys nextObject])) { + descriptors = [descriptors stringByAppendingFormat:@"\t%@ : %@\n", key, [_blocks objectForKey:key]]; + } + return [NSString stringWithFormat:@"Swizzle on %@::%@ [\n%@]", NSStringFromClass(self.class), + NSStringFromSelector(self.selector), descriptors]; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKTriStateBOOL.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKTriStateBOOL.h new file mode 100644 index 0000000000000..100499c86b21d --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKTriStateBOOL.h @@ -0,0 +1,30 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +typedef NS_ENUM(NSInteger, FBSDKTriStateBOOL) +{ + FBSDKTriStateBOOLValueUnknown = -1, + FBSDKTriStateBOOLValueNO = 0, + FBSDKTriStateBOOLValueYES = 1, +} NS_SWIFT_NAME(TriStateBool.Value); + +FOUNDATION_EXPORT FBSDKTriStateBOOL FBSDKTriStateBOOLFromBOOL(BOOL value); +FOUNDATION_EXPORT FBSDKTriStateBOOL FBSDKTriStateBOOLFromNSNumber(NSNumber *value); +FOUNDATION_EXPORT BOOL BOOLFromFBSDKTriStateBOOL(FBSDKTriStateBOOL value, BOOL defaultValue); diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKTriStateBOOL.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKTriStateBOOL.m new file mode 100644 index 0000000000000..aafcb39355733 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKTriStateBOOL.m @@ -0,0 +1,43 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKTriStateBOOL.h" + +FBSDKTriStateBOOL FBSDKTriStateBOOLFromBOOL(BOOL value) +{ + return value ? FBSDKTriStateBOOLValueYES : FBSDKTriStateBOOLValueNO; +} + +FBSDKTriStateBOOL FBSDKTriStateBOOLFromNSNumber(NSNumber *value) +{ + return ([value isKindOfClass:[NSNumber class]] ? + FBSDKTriStateBOOLFromBOOL(value.boolValue) : + FBSDKTriStateBOOLValueUnknown); +} + +BOOL BOOLFromFBSDKTriStateBOOL(FBSDKTriStateBOOL value, BOOL defaultValue) +{ + switch (value) { + case FBSDKTriStateBOOLValueYES: + return YES; + case FBSDKTriStateBOOLValueNO: + return NO; + case FBSDKTriStateBOOLValueUnknown: + return defaultValue; + } +} diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKURL_Internal.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKURL_Internal.h new file mode 100644 index 0000000000000..bb452f771a1d5 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKURL_Internal.h @@ -0,0 +1,23 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKURL.h" + +@interface FBSDKURL (Internal) ++ (FBSDKURL *)URLForRenderBackToReferrerBarURL:(NSURL *)url; +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/CrashReport/FBSDKCrashObserver.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/CrashReport/FBSDKCrashObserver.h new file mode 100644 index 0000000000000..f7ea35bcedf99 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/CrashReport/FBSDKCrashObserver.h @@ -0,0 +1,31 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import "FBSDKCrashObserving.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface FBSDKCrashObserver : NSObject + ++ (void)enable; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/CrashReport/FBSDKCrashObserver.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/CrashReport/FBSDKCrashObserver.m new file mode 100644 index 0000000000000..fd0aa45ba7802 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/CrashReport/FBSDKCrashObserver.m @@ -0,0 +1,79 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKCrashObserver.h" + +#import "FBSDKCrashHandler.h" +#import "FBSDKGraphRequest.h" +#import "FBSDKGraphRequestConnection.h" +#import "FBSDKLibAnalyzer.h" +#import "FBSDKSettings.h" + +@implementation FBSDKCrashObserver + +@synthesize prefixes, frameworks; + +- (instancetype)init +{ + if ((self = [super init])) { + prefixes = @[@"FBSDK", @"_FBSDK"]; + frameworks = @[@"FBSDKCoreKit", + @"FBSDKLoginKit", + @"FBSDKShareKit", + @"FBSDKPlacesKit", + @"FBSDKTVOSKit"]; + } + return self; +} + ++ (void)enable +{ + [FBSDKCrashHandler addObserver:[FBSDKCrashObserver sharedInstance]]; +} + ++ (FBSDKCrashObserver *)sharedInstance +{ + static FBSDKCrashObserver *_sharedInstance; + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + _sharedInstance = [[self alloc] init]; + }); + return _sharedInstance; +} + +- (void)didReceiveCrashLogs:(NSArray *> *)processedCrashLogs +{ + if (0 == processedCrashLogs.count) { + return; + } + NSData *jsonData = [NSJSONSerialization dataWithJSONObject:processedCrashLogs options:0 error:nil]; + if (jsonData) { + NSString *crashReports = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding]; + FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc] initWithGraphPath:[NSString stringWithFormat:@"%@/instruments", [FBSDKSettings appID]] + parameters:@{@"crash_reports" : crashReports ?: @""} + HTTPMethod:FBSDKHTTPMethodPOST]; + + [request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) { + if (!error && [result isKindOfClass:[NSDictionary class]] && result[@"success"]) { + [FBSDKCrashHandler clearCrashReportFiles]; + } + }]; + } +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/ErrorReport/FBSDKErrorReport.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/ErrorReport/FBSDKErrorReport.h new file mode 100644 index 0000000000000..16d1c6604e3b6 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/ErrorReport/FBSDKErrorReport.h @@ -0,0 +1,36 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import +#import "FBSDKError.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface FBSDKErrorReport : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + ++ (void)enable; ++ (void)saveError:(NSInteger)errorCode + errorDomain:(NSErrorDomain)errorDomain + message:(nullable NSString *)message; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/ErrorReport/FBSDKErrorReport.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/ErrorReport/FBSDKErrorReport.m new file mode 100644 index 0000000000000..64739019cb2eb --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/ErrorReport/FBSDKErrorReport.m @@ -0,0 +1,137 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKErrorReport.h" + +#import "FBSDKGraphRequest.h" +#import "FBSDKGraphRequestConnection.h" +#import "FBSDKLogger.h" +#import "FBSDKSettings.h" + +#define FBSDK_MAX_ERROR_REPORT_LOGS 1000 + +@implementation FBSDKErrorReport + +static NSString *ErrorReportStorageDirName = @"instrument/"; +static NSString *directoryPath; + +NSString *const kFBSDKErrorCode = @"error_code"; +NSString *const kFBSDKErrorDomain = @"domain"; +NSString *const kFBSDKErrorTimestamp = @"timestamp"; + +# pragma mark - Class Methods + ++ (void)initialize +{ + NSString *dirPath = [NSTemporaryDirectory() stringByAppendingPathComponent:ErrorReportStorageDirName]; + if (![[NSFileManager defaultManager] fileExistsAtPath:dirPath]) { + if (![[NSFileManager defaultManager] createDirectoryAtPath:dirPath withIntermediateDirectories:NO attributes:NULL error:NULL]) { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorInformational formatString:@"Failed to create library at %@", dirPath]; + } + } + directoryPath = dirPath; +} + ++ (void)enable +{ + [self uploadError]; + [FBSDKError enableErrorReport]; +} + ++ (void)uploadError +{ + NSArray *> *errorReports = [self loadErrorReports]; + if ([errorReports count] == 0) { + return [self clearErrorInfo]; + } + NSData *jsonData = [NSJSONSerialization dataWithJSONObject:errorReports options:0 error:nil]; + if (!jsonData){ + return; + } + NSString *errorData = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding]; + FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc] initWithGraphPath:[NSString stringWithFormat:@"%@/instruments", [FBSDKSettings appID]] + parameters:@{@"error_reports" : errorData ?: @""} + HTTPMethod:FBSDKHTTPMethodPOST]; + + [request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) { + if (!error && [result isKindOfClass:[NSDictionary class]] && result[@"success"]) { + [self clearErrorInfo]; + } + }]; +} + ++ (void)saveError:(NSInteger)errorCode + errorDomain:(NSErrorDomain)errorDomain + message:(nullable NSString *)message +{ + NSString *timestamp = [NSString stringWithFormat:@"%.0lf", [[NSDate date] timeIntervalSince1970]]; + [self saveErrorInfoToDisk: @{ + kFBSDKErrorCode:@(errorCode), + kFBSDKErrorDomain:errorDomain, + kFBSDKErrorTimestamp:timestamp, + }]; +} + ++ (NSArray *> *)loadErrorReports +{ + NSMutableArray *> *errorReportArr = [NSMutableArray array]; + NSArray *fileNames = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:directoryPath error:NULL]; + NSPredicate *predicate = [NSPredicate predicateWithBlock:^BOOL(id _Nullable evaluatedObject, NSDictionary * _Nullable bindings) { + NSString *str = (NSString *)evaluatedObject; + return [str hasPrefix:@"error_report_"] && [str hasSuffix:@".plist"]; + }]; + fileNames = [fileNames filteredArrayUsingPredicate:predicate]; + fileNames = [fileNames sortedArrayUsingComparator:^NSComparisonResult(id _Nonnull obj1, id _Nonnull obj2){ + return [obj2 compare:obj1]; + }]; + if (fileNames.count > 0){ + fileNames = [fileNames subarrayWithRange:NSMakeRange(0, MIN(fileNames.count, FBSDK_MAX_ERROR_REPORT_LOGS))]; + for (NSUInteger i = 0; i < fileNames.count; i++) { + NSDictionary *errorReport = [NSDictionary dictionaryWithContentsOfFile:[directoryPath stringByAppendingPathComponent:fileNames[i]]]; + if (errorReport) { + [errorReportArr addObject:errorReport]; + } + } + } + return [errorReportArr copy]; +} + ++ (void)clearErrorInfo +{ + NSArray *files = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:directoryPath error:nil]; + for (NSUInteger i = 0; i < files.count; i++) { + if ([files[i] hasPrefix:@"error_report"]) { + [[NSFileManager defaultManager] removeItemAtPath:[directoryPath stringByAppendingPathComponent:files[i]] error:nil]; + } + } +} + +#pragma mark - disk operations + ++ (void)saveErrorInfoToDisk:(NSDictionary *)errorInfo +{ + [errorInfo writeToFile:[self pathToErrorInfoFile] + atomically:YES]; +} + ++ (NSString *)pathToErrorInfoFile +{ + NSString *timestamp = [NSString stringWithFormat:@"%.0lf", [[NSDate date] timeIntervalSince1970]]; + return [directoryPath stringByAppendingPathComponent:[NSString stringWithFormat:@"error_report_%@.plist",timestamp]]; +} +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/FBSDKInstrumentManager.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/FBSDKInstrumentManager.h new file mode 100644 index 0000000000000..86415e09f9201 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/FBSDKInstrumentManager.h @@ -0,0 +1,29 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface FBSDKInstrumentManager : NSObject + ++ (void)enable; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/FBSDKInstrumentManager.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/FBSDKInstrumentManager.m new file mode 100644 index 0000000000000..091658dd4ce13 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/FBSDKInstrumentManager.m @@ -0,0 +1,46 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKInstrumentManager.h" + +#import "FBSDKCrashObserver.h" +#import "FBSDKErrorReport.h" +#import "FBSDKFeatureManager.h" +#import "FBSDKSettings.h" + +@implementation FBSDKInstrumentManager + ++ (void)enable +{ + if (![FBSDKSettings isAutoLogAppEventsEnabled]) { + return; + } + + [FBSDKFeatureManager checkFeature:FBSDKFeatureCrashReport completionBlock:^(BOOL enabled) { + if (enabled) { + [FBSDKCrashObserver enable]; + } + }]; + [FBSDKFeatureManager checkFeature:FBSDKFeatureErrorReport completionBlock:^(BOOL enabled) { + if (enabled) { + [FBSDKErrorReport enable]; + } + }]; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequest+Internal.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequest+Internal.h new file mode 100644 index 0000000000000..1912f5d86ee1e --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequest+Internal.h @@ -0,0 +1,57 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import + +typedef NS_OPTIONS(NSUInteger, FBSDKGraphRequestFlags) +{ + FBSDKGraphRequestFlagNone = 0, + // indicates this request should not use a client token as its token parameter + FBSDKGraphRequestFlagSkipClientToken = 1 << 1, + // indicates this request should not close the session if its response is an oauth error + FBSDKGraphRequestFlagDoNotInvalidateTokenOnError = 1 << 2, + // indicates this request should not perform error recovery + FBSDKGraphRequestFlagDisableErrorRecovery = 1 << 3, +}; +@interface FBSDKGraphRequest (Internal) + +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + flags:(FBSDKGraphRequestFlags)flags; +- (instancetype)initWithGraphPath:(NSString *)graphPath + parameters:(NSDictionary *)parameters + tokenString:(NSString *)tokenString + HTTPMethod:(NSString *)HTTPMethod + flags:(FBSDKGraphRequestFlags)flags; +// Generally, requests automatically issued by the SDK +// should not invalidate the token and should disableErrorRecovery +// so that we don't cause a sudden change in token state or trigger recovery +// out of context of any user action. +@property (nonatomic, assign) FBSDKGraphRequestFlags flags; +@property (nonatomic, readonly, getter=isGraphErrorRecoveryDisabled) BOOL graphErrorRecoveryDisabled; +@property (nonatomic, readonly) BOOL hasAttachments; + ++ (BOOL)isAttachment:(id)item; ++ (NSString *)serializeURL:(NSString *)baseUrl + params:(NSDictionary *)params + httpMethod:(NSString *)httpMethod + forBatch:(BOOL)forBatch; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequestBody.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequestBody.h new file mode 100644 index 0000000000000..37bf777e45041 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequestBody.h @@ -0,0 +1,50 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import +#import + +@class FBSDKGraphRequestDataAttachment; +@class FBSDKLogger; + +NS_SWIFT_NAME(GraphRequestBody) +@interface FBSDKGraphRequestBody : NSObject + +@property (nonatomic, retain, readonly) NSData *data; + +- (void)appendWithKey:(NSString *)key + formValue:(NSString *)value + logger:(FBSDKLogger *)logger; + +- (void)appendWithKey:(NSString *)key + imageValue:(UIImage *)image + logger:(FBSDKLogger *)logger; + +- (void)appendWithKey:(NSString *)key + dataValue:(NSData *)data + logger:(FBSDKLogger *)logger; + +- (void)appendWithKey:(NSString *)key + dataAttachmentValue:(FBSDKGraphRequestDataAttachment *)dataAttachment + logger:(FBSDKLogger *)logger; + +- (NSString *)mimeContentType; + +- (NSData *)compressedData; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequestBody.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequestBody.m new file mode 100644 index 0000000000000..6b507c4b10e19 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequestBody.m @@ -0,0 +1,168 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKGraphRequestBody.h" + +#import "../../Basics/Internal/FBSDKBasicUtility.h" + +#import "FBSDKConstants.h" +#import "FBSDKCrypto.h" +#import "FBSDKGraphRequestDataAttachment.h" +#import "FBSDKInternalUtility.h" +#import "FBSDKLogger.h" +#import "FBSDKSettings.h" + +#define kNewline @"\r\n" + +@implementation FBSDKGraphRequestBody +{ + NSMutableData *_data; + NSMutableDictionary *_json; + NSString *_stringBoundary; +} + +- (instancetype)init +{ + if ((self = [super init])) { + _stringBoundary = [FBSDKCrypto randomString:32]; + _data = [[NSMutableData alloc] init]; + _json = [NSMutableDictionary dictionary]; + } + + return self; +} + +- (NSString *)mimeContentType +{ + if (_json) { + return @"application/json"; + } else { + return [NSString stringWithFormat:@"multipart/form-data; boundary=%@", _stringBoundary]; + } +} + +- (void)appendUTF8:(NSString *)utf8 +{ + if (!_data.length) { + NSString *headerUTF8 = [NSString stringWithFormat:@"--%@%@", _stringBoundary, kNewline]; + NSData *headerData = [headerUTF8 dataUsingEncoding:NSUTF8StringEncoding]; + [_data appendData:headerData]; + } + NSData *data = [utf8 dataUsingEncoding:NSUTF8StringEncoding]; + [_data appendData:data]; +} + +- (void)appendWithKey:(NSString *)key + formValue:(NSString *)value + logger:(FBSDKLogger *)logger +{ + [self _appendWithKey:key filename:nil contentType:nil contentBlock:^{ + [self appendUTF8:value]; + }]; + if (key && value) { + _json[key] = value; + } + [logger appendFormat:@"\n %@:\t%@", key, (NSString *)value]; +} + +- (void)appendWithKey:(NSString *)key + imageValue:(UIImage *)image + logger:(FBSDKLogger *)logger +{ + NSData *data = UIImageJPEGRepresentation(image, [FBSDKSettings JPEGCompressionQuality]); + [self _appendWithKey:key filename:key contentType:@"image/jpeg" contentBlock:^{ + [self->_data appendData:data]; + }]; + _json = nil; + [logger appendFormat:@"\n %@:\t", key, (unsigned long)(data.length / 1024)]; +} + +- (void)appendWithKey:(NSString *)key + dataValue:(NSData *)data + logger:(FBSDKLogger *)logger +{ + [self _appendWithKey:key filename:key contentType:@"content/unknown" contentBlock:^{ + [self->_data appendData:data]; + }]; + _json = nil; + [logger appendFormat:@"\n %@:\t", key, (unsigned long)(data.length / 1024)]; +} + +- (void)appendWithKey:(NSString *)key + dataAttachmentValue:(FBSDKGraphRequestDataAttachment *)dataAttachment + logger:(FBSDKLogger *)logger +{ + NSString *filename = dataAttachment.filename ?: key; + NSString *contentType = dataAttachment.contentType ?: @"content/unknown"; + NSData *data = dataAttachment.data; + [self _appendWithKey:key filename:filename contentType:contentType contentBlock:^{ + [self->_data appendData:data]; + }]; + _json = nil; + [logger appendFormat:@"\n %@:\t", key, (unsigned long)(data.length / 1024)]; +} + +- (NSData *)data +{ + if (_json) { + NSData *jsonData; + if (_json.allKeys.count > 0) { + jsonData = [NSJSONSerialization dataWithJSONObject:_json options:0 error:nil]; + } else { + jsonData = [NSData data]; + } + + return jsonData; + } + return [_data copy]; +} + +- (void)_appendWithKey:(NSString *)key + filename:(NSString *)filename + contentType:(NSString *)contentType + contentBlock:(FBSDKCodeBlock)contentBlock +{ + NSMutableArray *disposition = [[NSMutableArray alloc] init]; + [disposition addObject:@"Content-Disposition: form-data"]; + if (key) { + [disposition addObject:[[NSString alloc] initWithFormat:@"name=\"%@\"", key]]; + } + if (filename) { + [disposition addObject:[[NSString alloc] initWithFormat:@"filename=\"%@\"", filename]]; + } + [self appendUTF8:[[NSString alloc] initWithFormat:@"%@%@", [disposition componentsJoinedByString:@"; "], kNewline]]; + if (contentType) { + [self appendUTF8:[[NSString alloc] initWithFormat:@"Content-Type: %@%@", contentType, kNewline]]; + } + [self appendUTF8:kNewline]; + if (contentBlock != NULL) { + contentBlock(); + } + [self appendUTF8:[[NSString alloc] initWithFormat:@"%@--%@%@", kNewline, _stringBoundary, kNewline]]; +} + +- (NSData *)compressedData +{ + if (!self.data.length || ![[self mimeContentType] isEqualToString:@"application/json"]) { + return nil; + } + + return [FBSDKBasicUtility gzip:self.data]; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequestConnection+Internal.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequestConnection+Internal.h new file mode 100644 index 0000000000000..c63688cd41b1d --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequestConnection+Internal.h @@ -0,0 +1,25 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +@interface FBSDKGraphRequestConnection(Internal) + +@property (nonatomic, readonly) NSMutableArray *requests; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequestMetadata.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequestMetadata.h new file mode 100644 index 0000000000000..dc64191f2872b --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequestMetadata.h @@ -0,0 +1,44 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import + +// Internal only class to facilitate FBSDKGraphRequest processing, specifically +// associating FBSDKGraphRequest and FBSDKGraphRequestBlock instances and necessary +// data for retry processing. +NS_SWIFT_NAME(GraphRequestMetadata) +@interface FBSDKGraphRequestMetadata : NSObject + +@property (nonatomic, retain) FBSDKGraphRequest *request; +@property (nonatomic, copy) FBSDKGraphRequestBlock completionHandler; +@property (nonatomic, copy) NSDictionary *batchParameters; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +- (instancetype)initWithRequest:(FBSDKGraphRequest *)request + completionHandler:(FBSDKGraphRequestBlock)handler + batchParameters:(NSDictionary *)batchParameters +NS_DESIGNATED_INITIALIZER; + +- (void)invokeCompletionHandlerForConnection:(FBSDKGraphRequestConnection *)connection + withResults:(id)results + error:(NSError *)error; +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequestMetadata.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequestMetadata.m new file mode 100644 index 0000000000000..2f09f8cd2346a --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequestMetadata.m @@ -0,0 +1,55 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKGraphRequestMetadata.h" + +#import "FBSDKGraphRequest.h" + +@implementation FBSDKGraphRequestMetadata + +- (instancetype)initWithRequest:(FBSDKGraphRequest *)request + completionHandler:(FBSDKGraphRequestBlock)handler + batchParameters:(NSDictionary *)batchParameters { + + if ((self = [super init])) { + _request = request; + _batchParameters = [batchParameters copy]; + _completionHandler = [handler copy]; + } + return self; +} + +- (void)invokeCompletionHandlerForConnection:(FBSDKGraphRequestConnection *)connection + withResults:(id)results + error:(NSError *)error { + if (self.completionHandler) { + self.completionHandler(connection, results, error); + } +} + +- (NSString *)description +{ + return [NSString stringWithFormat:@"<%@: %p, batchParameters: %@, completionHandler: %@, request: %@>", + NSStringFromClass([self class]), + self, + self.batchParameters, + self.completionHandler, + self.request.description]; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequestPiggybackManager.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequestPiggybackManager.h new file mode 100644 index 0000000000000..465295e7a7f9f --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequestPiggybackManager.h @@ -0,0 +1,31 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_SWIFT_NAME(GraphRequestPiggybackManager) +@interface FBSDKGraphRequestPiggybackManager : NSObject + ++ (void)addPiggybackRequests:(FBSDKGraphRequestConnection *)connection; + ++ (void)addRefreshPiggyback:(FBSDKGraphRequestConnection *)connection permissionHandler:(FBSDKGraphRequestBlock)permissionHandler; + ++ (void)addRefreshPiggybackIfStale:(FBSDKGraphRequestConnection *)connection; + ++ (void)addServerConfigurationPiggyback:(FBSDKGraphRequestConnection *)connection; +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequestPiggybackManager.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequestPiggybackManager.m new file mode 100644 index 0000000000000..064dfe2b36cb0 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequestPiggybackManager.m @@ -0,0 +1,155 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKGraphRequestPiggybackManager.h" + +#import + +static int const FBSDKTokenRefreshThresholdSeconds = 24 * 60 * 60; // day +static int const FBSDKTokenRefreshRetrySeconds = 60 * 60; // hour + +@implementation FBSDKGraphRequestPiggybackManager + ++ (void)addPiggybackRequests:(FBSDKGraphRequestConnection *)connection +{ + if ([FBSDKSettings appID].length > 0) { + BOOL safeForPiggyback = YES; + for (FBSDKGraphRequestMetadata *metadata in connection.requests) { + if (![metadata.request.version isEqualToString:[FBSDKSettings graphAPIVersion]] || + metadata.request.hasAttachments) { + safeForPiggyback = NO; + break; + } + } + if (safeForPiggyback) { + [[self class] addRefreshPiggybackIfStale:connection]; + [[self class] addServerConfigurationPiggyback:connection]; + } + } +} + ++ (void)addRefreshPiggyback:(FBSDKGraphRequestConnection *)connection permissionHandler:(FBSDKGraphRequestBlock)permissionHandler +{ + FBSDKAccessToken *expectedToken = [FBSDKAccessToken currentAccessToken]; + __block NSMutableSet *permissions = nil; + __block NSMutableSet *declinedPermissions = nil; + __block NSMutableSet *expiredPermissions = nil; + __block NSString *tokenString = nil; + __block NSNumber *expirationDateNumber = nil; + __block NSNumber *dataAccessExpirationDateNumber = nil; + __block int expectingCallbacksCount = 2; + void (^expectingCallbackComplete)(void) = ^{ + if (--expectingCallbacksCount == 0) { + FBSDKAccessToken *currentToken = [FBSDKAccessToken currentAccessToken]; + NSDate *expirationDate = currentToken.expirationDate; + if (expirationDateNumber != nil) { + expirationDate = (expirationDateNumber.doubleValue > 0 ? + [NSDate dateWithTimeIntervalSince1970:expirationDateNumber.doubleValue] : + [NSDate distantFuture]); + } + NSDate *dataExpirationDate = currentToken.dataAccessExpirationDate; + if (dataAccessExpirationDateNumber != nil) { + dataExpirationDate = (dataAccessExpirationDateNumber.doubleValue > 0 ? + [NSDate dateWithTimeIntervalSince1970:dataAccessExpirationDateNumber.doubleValue] : + [NSDate distantFuture]); + } + FBSDKAccessToken *refreshedToken = [[FBSDKAccessToken alloc] initWithTokenString:tokenString ?: currentToken.tokenString + permissions:(permissions ?: currentToken.permissions).allObjects + declinedPermissions:(declinedPermissions ?: currentToken.declinedPermissions).allObjects + expiredPermissions:(expiredPermissions ?: currentToken.expiredPermissions).allObjects + appID:currentToken.appID + userID:currentToken.userID + expirationDate:expirationDate + refreshDate:[NSDate date] + dataAccessExpirationDate:dataExpirationDate]; + if (expectedToken == currentToken) { + [FBSDKAccessToken setCurrentAccessToken:refreshedToken]; + } + } + }; + FBSDKGraphRequest *extendRequest = [[FBSDKGraphRequest alloc] initWithGraphPath:@"oauth/access_token" + parameters:@{@"grant_type" : @"fb_extend_sso_token", + @"fields": @"" + } + flags:FBSDKGraphRequestFlagDisableErrorRecovery]; + + [connection addRequest:extendRequest completionHandler:^(FBSDKGraphRequestConnection *innerConnection, id result, NSError *error) { + tokenString = result[@"access_token"]; + expirationDateNumber = result[@"expires_at"]; + dataAccessExpirationDateNumber = result[@"data_access_expiration_time"]; + expectingCallbackComplete(); + }]; + FBSDKGraphRequest *permissionsRequest = [[FBSDKGraphRequest alloc] initWithGraphPath:@"me/permissions" + parameters:@{@"fields": @""} + flags:FBSDKGraphRequestFlagDisableErrorRecovery]; + + [connection addRequest:permissionsRequest completionHandler:^(FBSDKGraphRequestConnection *innerConnection, id result, NSError *error) { + if (!error) { + permissions = [NSMutableSet set]; + declinedPermissions = [NSMutableSet set]; + expiredPermissions = [NSMutableSet set]; + + [FBSDKInternalUtility extractPermissionsFromResponse:result + grantedPermissions:permissions + declinedPermissions:declinedPermissions + expiredPermissions:expiredPermissions]; + } + expectingCallbackComplete(); + if (permissionHandler) { + permissionHandler(innerConnection, result, error); + } + }]; +} + ++ (void)addRefreshPiggybackIfStale:(FBSDKGraphRequestConnection *)connection +{ + // don't piggy back more than once an hour as a cheap way of + // retrying in cases of errors and preventing duplicate refreshes. + // obviously this is not foolproof but is simple and sufficient. + static NSDate *lastRefreshTry; + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + lastRefreshTry = [NSDate distantPast]; + }); + + NSDate *now = [NSDate date]; + NSDate *tokenRefreshDate = [FBSDKAccessToken currentAccessToken].refreshDate; + if (tokenRefreshDate && + [now timeIntervalSinceDate:lastRefreshTry] > FBSDKTokenRefreshRetrySeconds && + [now timeIntervalSinceDate:tokenRefreshDate] > FBSDKTokenRefreshThresholdSeconds) { + [self addRefreshPiggyback:connection permissionHandler:NULL]; + lastRefreshTry = [NSDate date]; + } +} + ++ (void)addServerConfigurationPiggyback:(FBSDKGraphRequestConnection *)connection +{ + if (![FBSDKServerConfigurationManager cachedServerConfiguration].isDefaults + && [[NSDate date] timeIntervalSinceDate:[FBSDKServerConfigurationManager cachedServerConfiguration].timestamp] + < FBSDK_SERVER_CONFIGURATION_MANAGER_CACHE_TIMEOUT) { + return; + } + NSString *appID = [FBSDKSettings appID]; + FBSDKGraphRequest *serverConfigurationRequest = [FBSDKServerConfigurationManager requestToLoadServerConfiguration:appID]; + [connection addRequest:serverConfigurationRequest + completionHandler:^(FBSDKGraphRequestConnection *conn, id result, NSError *error) { + [FBSDKServerConfigurationManager processLoadRequestResponse:result error:error appID:appID]; + }]; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKDialogConfiguration.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKDialogConfiguration.h new file mode 100644 index 0000000000000..82d4835a1bc6d --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKDialogConfiguration.h @@ -0,0 +1,38 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import + +NS_SWIFT_NAME(DialogConfiguration) +@interface FBSDKDialogConfiguration : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +- (instancetype)initWithName:(NSString *)name + URL:(NSURL *)URL + appVersions:(NSArray *)appVersions +NS_DESIGNATED_INITIALIZER; + +@property (nonatomic, copy, readonly) NSArray *appVersions; +@property (nonatomic, copy, readonly) NSString *name; +@property (nonatomic, copy, readonly) NSURL *URL; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKDialogConfiguration.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKDialogConfiguration.m new file mode 100644 index 0000000000000..9010fb99ebd3e --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKDialogConfiguration.m @@ -0,0 +1,70 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKDialogConfiguration.h" + +#define FBSDK_DIALOG_CONFIGURATION_APP_VERSIONS_KEY @"appVersions" +#define FBSDK_DIALOG_CONFIGURATION_NAME_KEY @"name" +#define FBSDK_DIALOG_CONFIGURATION_URL_KEY @"url" + +@implementation FBSDKDialogConfiguration + +#pragma mark - Object Lifecycle + +- (instancetype)initWithName:(NSString *)name URL:(NSURL *)URL appVersions:(NSArray *)appVersions +{ + if ((self = [super init])) { + _name = [name copy]; + _URL = [URL copy]; + _appVersions = [appVersions copy]; + } + return self; +} + +#pragma mark NSCoding + ++ (BOOL)supportsSecureCoding +{ + return YES; +} + +- (id)initWithCoder:(NSCoder *)decoder +{ + NSString *name = [decoder decodeObjectOfClass:[NSString class] forKey:FBSDK_DIALOG_CONFIGURATION_NAME_KEY]; + NSURL *URL = [decoder decodeObjectOfClass:[NSURL class] forKey:FBSDK_DIALOG_CONFIGURATION_URL_KEY]; + NSSet *appVersionsClasses = [NSSet setWithObjects:[NSArray class], [NSNumber class], nil]; + NSArray *appVersions = [decoder decodeObjectOfClasses:appVersionsClasses + forKey:FBSDK_DIALOG_CONFIGURATION_APP_VERSIONS_KEY]; + return [self initWithName:name URL:URL appVersions:appVersions]; +} + +- (void)encodeWithCoder:(NSCoder *)encoder +{ + [encoder encodeObject:_appVersions forKey:FBSDK_DIALOG_CONFIGURATION_APP_VERSIONS_KEY]; + [encoder encodeObject:_name forKey:FBSDK_DIALOG_CONFIGURATION_NAME_KEY]; + [encoder encodeObject:_URL forKey:FBSDK_DIALOG_CONFIGURATION_URL_KEY]; +} + +#pragma mark - NSCopying + +- (id)copyWithZone:(NSZone *)zone +{ + return self; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKErrorConfiguration.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKErrorConfiguration.h new file mode 100644 index 0000000000000..af3524c370431 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKErrorConfiguration.h @@ -0,0 +1,40 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKErrorRecoveryConfiguration.h" + +@class FBSDKGraphRequest; + +// maps codes and subcodes pairs to FBSDKErrorRecoveryConfiguration instances. +NS_SWIFT_NAME(ErrorConfiguration) +@interface FBSDKErrorConfiguration : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +// initialize from optional dictionary of existing configurations. If not supplied a fallback will be created. +- (instancetype)initWithDictionary:(NSDictionary *)dictionary NS_DESIGNATED_INITIALIZER; + +// parses the array (supplied from app settings endpoint) +- (void)parseArray:(NSArray *)array; + +// NSString "code" instances support "*" wildcard semantics (nil is treated as "*" also) +// 'request' is optional, typically for identifying special graph request semantics (e.g., no recovery for client token) +- (FBSDKErrorRecoveryConfiguration *)recoveryConfigurationForCode:(NSString *)code subcode:(NSString *)subcode request:(FBSDKGraphRequest *)request; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKErrorConfiguration.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKErrorConfiguration.m new file mode 100644 index 0000000000000..188dbd92a8332 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKErrorConfiguration.m @@ -0,0 +1,172 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKErrorConfiguration.h" + +#import + +#import "FBSDKErrorRecoveryConfiguration.h" + +static NSString *const kErrorCategoryOther = @"other"; +static NSString *const kErrorCategoryTransient = @"transient"; +static NSString *const kErrorCategoryLogin = @"login"; + +#define FBSDKERRORCONFIGURATION_DICTIONARY_KEY @"configurationDictionary" + +@implementation FBSDKErrorConfiguration +{ + NSMutableDictionary *_configurationDictionary; +} + +- (instancetype)initWithDictionary:(NSDictionary *)dictionary +{ + if ((self = [super init])) { + if (dictionary) { + _configurationDictionary = [NSMutableDictionary dictionaryWithDictionary:dictionary]; + } else { + _configurationDictionary = [NSMutableDictionary dictionary]; + NSString *localizedOK = + NSLocalizedStringWithDefaultValue(@"ErrorRecovery.OK", @"FacebookSDK", [FBSDKInternalUtility bundleForStrings], + @"OK", + @"The title of the label to start attempting error recovery"); + NSString *localizedCancel = + NSLocalizedStringWithDefaultValue(@"ErrorRecovery.Cancel", @"FacebookSDK", [FBSDKInternalUtility bundleForStrings], + @"Cancel", + @"The title of the label to decline attempting error recovery"); + NSString *localizedTransientSuggestion = + NSLocalizedStringWithDefaultValue(@"ErrorRecovery.Transient.Suggestion", @"FacebookSDK", [FBSDKInternalUtility bundleForStrings], + @"The server is temporarily busy, please try again.", + @"The fallback message to display to retry transient errors"); + NSString *localizedLoginRecoverableSuggestion = + NSLocalizedStringWithDefaultValue(@"ErrorRecovery.Login.Suggestion", @"FacebookSDK", [FBSDKInternalUtility bundleForStrings], + @"Please log into this app again to reconnect your Facebook account.", + @"The fallback message to display to recover invalidated tokens"); + NSArray *fallbackArray = @[ + @{ @"name" : @"login", + @"items" : @[ @{ @"code" : @102 }, + @{ @"code" : @190 } ], + @"recovery_message" : localizedLoginRecoverableSuggestion, + @"recovery_options" : @[ localizedOK, localizedCancel] + }, + @{ @"name" : @"transient", + @"items" : @[ @{ @"code" : @1 }, + @{ @"code" : @2 }, + @{ @"code" : @4 }, + @{ @"code" : @9 }, + @{ @"code" : @17 }, + @{ @"code" : @341 } ], + @"recovery_message" : localizedTransientSuggestion, + @"recovery_options" : @[ localizedOK] + }, + ]; + [self parseArray:fallbackArray]; + } + } + return self; +} + +- (FBSDKErrorRecoveryConfiguration *)recoveryConfigurationForCode:(NSString *)code subcode:(NSString *)subcode request:(FBSDKGraphRequest *)request +{ + code = code ?: @"*"; + subcode = subcode ?: @"*"; + FBSDKErrorRecoveryConfiguration *configuration = (_configurationDictionary[code][subcode] ?: + _configurationDictionary[code][@"*"] ?: + _configurationDictionary[@"*"][subcode] ?: + _configurationDictionary[@"*"][@"*"]); + if (configuration.errorCategory == FBSDKGraphRequestErrorRecoverable && + [FBSDKSettings clientToken] && + [request.parameters[@"access_token"] hasSuffix:[FBSDKSettings clientToken]]) { + // do not attempt to recovery client tokens. + return nil; + } + return configuration; +} + +- (void)parseArray:(NSArray *)array +{ + for (NSDictionary *dictionary in array) { + [dictionary enumerateKeysAndObjectsUsingBlock:^(NSString *key, id obj, BOOL *stop) { + FBSDKGraphRequestError category; + NSString *action = dictionary[@"name"]; + if ([action isEqualToString:kErrorCategoryOther]) { + category = FBSDKGraphRequestErrorOther; + } else if ([action isEqualToString:kErrorCategoryTransient]) { + category = FBSDKGraphRequestErrorTransient; + } else { + category = FBSDKGraphRequestErrorRecoverable; + } + NSString *suggestion = dictionary[@"recovery_message"]; + NSArray *options = dictionary[@"recovery_options"]; + for (NSDictionary *codeSubcodesDictionary in dictionary[@"items"]) { + NSString *code = [codeSubcodesDictionary[@"code"] stringValue]; + + NSMutableDictionary *currentSubcodes = self->_configurationDictionary[code]; + if (!currentSubcodes) { + currentSubcodes = [NSMutableDictionary dictionary]; + self->_configurationDictionary[code] = currentSubcodes; + } + + NSArray *subcodes = codeSubcodesDictionary[@"subcodes"]; + if (subcodes.count > 0) { + for (NSNumber *subcodeNumber in subcodes) { + currentSubcodes[subcodeNumber.stringValue] = [[FBSDKErrorRecoveryConfiguration alloc] + initWithRecoveryDescription:suggestion + optionDescriptions:options + category:category + recoveryActionName:action]; + } + } else { + currentSubcodes[@"*"] = [[FBSDKErrorRecoveryConfiguration alloc] + initWithRecoveryDescription:suggestion + optionDescriptions:options + category:category + recoveryActionName:action]; + } + } + }]; + } +} + +#pragma mark - NSSecureCoding + ++ (BOOL)supportsSecureCoding +{ + return YES; +} + +- (id)initWithCoder:(NSCoder *)decoder +{ + NSSet *classes = [[NSSet alloc] initWithObjects:[NSDictionary class], [FBSDKErrorRecoveryConfiguration class], nil]; + NSDictionary *configurationDictionary = [decoder decodeObjectOfClasses:classes + forKey:FBSDKERRORCONFIGURATION_DICTIONARY_KEY]; + return [self initWithDictionary:configurationDictionary]; +} + +- (void)encodeWithCoder:(NSCoder *)encoder +{ + [encoder encodeObject:_configurationDictionary forKey:FBSDKERRORCONFIGURATION_DICTIONARY_KEY]; +} + +#pragma mark - NSCopying + +- (id)copyWithZone:(NSZone *)zone +{ + return self; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKErrorRecoveryConfiguration.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKErrorRecoveryConfiguration.h new file mode 100644 index 0000000000000..d5ebaaf95ad9b --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKErrorRecoveryConfiguration.h @@ -0,0 +1,39 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import + +//immutable +NS_SWIFT_NAME(ErrorRecoveryConfiguration) +@interface FBSDKErrorRecoveryConfiguration : NSObject + +@property (nonatomic, readonly) NSString *localizedRecoveryDescription; +@property (nonatomic, readonly) NSArray *localizedRecoveryOptionDescriptions; +@property (nonatomic, readonly) FBSDKGraphRequestError errorCategory; +@property (nonatomic, readonly) NSString *recoveryActionName; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +- (instancetype)initWithRecoveryDescription:(NSString *)description + optionDescriptions:(NSArray *)optionDescriptions + category:(FBSDKGraphRequestError)category + recoveryActionName:(NSString *)recoveryActionName NS_DESIGNATED_INITIALIZER; +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKErrorRecoveryConfiguration.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKErrorRecoveryConfiguration.m new file mode 100644 index 0000000000000..97eb0610334d3 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKErrorRecoveryConfiguration.m @@ -0,0 +1,77 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKErrorRecoveryConfiguration.h" + +#define FBSDK_ERROR_RECOVERY_CONFIGURATION_DESCRIPTION_KEY @"description" +#define FBSDK_ERROR_RECOVERY_CONFIGURATION_OPTIONS_KEY @"options" +#define FBSDK_ERROR_RECOVERY_CONFIGURATION_CATEGORY_KEY @"category" +#define FBSDK_ERROR_RECOVERY_CONFIGURATION_ACTION_KEY @"action" + +@implementation FBSDKErrorRecoveryConfiguration + +- (instancetype)initWithRecoveryDescription:(NSString *)description + optionDescriptions:(NSArray *)optionDescriptions + category:(FBSDKGraphRequestError)category + recoveryActionName:(NSString *)recoveryActionName { + if ((self = [super init])) { + _localizedRecoveryDescription = [description copy]; + _localizedRecoveryOptionDescriptions = [optionDescriptions copy]; + _errorCategory = category; + _recoveryActionName = [recoveryActionName copy]; + } + return self; +} + +#pragma mark - NSSecureCoding + ++ (BOOL)supportsSecureCoding +{ + return YES; +} + +- (id)initWithCoder:(NSCoder *)decoder +{ + NSString *description = [decoder decodeObjectOfClass:[NSString class] forKey:FBSDK_ERROR_RECOVERY_CONFIGURATION_DESCRIPTION_KEY]; + NSArray *options = [decoder decodeObjectOfClass:[NSArray class] forKey:FBSDK_ERROR_RECOVERY_CONFIGURATION_OPTIONS_KEY]; + NSNumber *category = [decoder decodeObjectOfClass:[NSNumber class] forKey:FBSDK_ERROR_RECOVERY_CONFIGURATION_CATEGORY_KEY]; + NSString *action = [decoder decodeObjectOfClass:[NSString class] forKey:FBSDK_ERROR_RECOVERY_CONFIGURATION_ACTION_KEY]; + + return [self initWithRecoveryDescription:description + optionDescriptions:options + category:category.unsignedIntegerValue + recoveryActionName:action]; +} + +- (void)encodeWithCoder:(NSCoder *)encoder +{ + [encoder encodeObject:_localizedRecoveryDescription forKey:FBSDK_ERROR_RECOVERY_CONFIGURATION_DESCRIPTION_KEY]; + [encoder encodeObject:_localizedRecoveryOptionDescriptions forKey:FBSDK_ERROR_RECOVERY_CONFIGURATION_OPTIONS_KEY]; + [encoder encodeObject:@(_errorCategory) forKey:FBSDK_ERROR_RECOVERY_CONFIGURATION_CATEGORY_KEY]; + [encoder encodeObject:_recoveryActionName forKey:FBSDK_ERROR_RECOVERY_CONFIGURATION_ACTION_KEY]; +} + +#pragma mark - NSCopying + +- (id)copyWithZone:(NSZone *)zone +{ + //immutable + return self; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKGateKeeperManager.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKGateKeeperManager.h new file mode 100644 index 0000000000000..fa8a5b65936cd --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKGateKeeperManager.h @@ -0,0 +1,46 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#define FBSDK_GATEKEEPER_MANAGER_CACHE_TIMEOUT (60 * 60) + +NS_ASSUME_NONNULL_BEGIN + +/// typedef for FBSDKAppEventUserDataType +typedef NSString *const FBSDKGateKeeperKey NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(GateKeeperManager.GateKeeperKey); +typedef void (^FBSDKGKManagerBlock)(NSError * _Nullable error) +NS_SWIFT_NAME(GKManagerBlock); + +@interface FBSDKGateKeeperManager : NSObject +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + Returns the locally cached configuration. + */ ++ (BOOL)boolForKey:(NSString *)key defaultValue:(BOOL)defaultValue; + +/** + Load the gate keeper configurations from server + */ ++ (void)loadGateKeepers:(nullable FBSDKGKManagerBlock)completionBlock; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKGateKeeperManager.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKGateKeeperManager.m new file mode 100644 index 0000000000000..dede1ae6bda97 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKGateKeeperManager.m @@ -0,0 +1,200 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +#import "FBSDKGateKeeperManager.h" + +#import + +#import + +#import "FBSDKAppEventsUtility.h" +#import "FBSDKGraphRequest+Internal.h" +#import "FBSDKGraphRequest.h" +#import "FBSDKInternalUtility.h" +#import "FBSDKSettings.h" +#import "FBSDKTypeUtility.h" + +#define FBSDK_GATEKEEPERS_USER_DEFAULTS_KEY @"com.facebook.sdk:GateKeepers%@" + +#define FBSDK_GATEKEEPER_APP_GATEKEEPER_EDGE @"mobile_sdk_gk" +#define FBSDK_GATEKEEPER_APP_GATEKEEPER_FIELDS @"gatekeepers" + +@implementation FBSDKGateKeeperManager + +static NSDictionary *_gateKeepers; +static NSMutableArray *_completionBlocks; +static const NSTimeInterval kTimeout = 4.0; +static NSDate *_timestamp; +static BOOL _loadingGateKeepers; +static BOOL _requeryFinishedForAppStart; + +#pragma mark - Public Class Methods ++ (void)initialize +{ + if (self == [FBSDKGateKeeperManager class]) { + _completionBlocks = [NSMutableArray array]; + } +} + ++ (BOOL)boolForKey:(NSString *)key defaultValue:(BOOL)defaultValue +{ + [self loadGateKeepers:nil]; + + return _gateKeepers[key] ? [_gateKeepers[key] boolValue] : defaultValue; +} + ++ (void)loadGateKeepers:(FBSDKGKManagerBlock)completionBlock +{ + @synchronized(self) { + NSString *appID = [FBSDKSettings appID]; + if (!appID) { + _gateKeepers = nil; + if (completionBlock != NULL) { + completionBlock(nil); + } + return; + } + + if (!_gateKeepers) { + // load the defaults + NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; + NSString *defaultKey = [NSString stringWithFormat:FBSDK_GATEKEEPERS_USER_DEFAULTS_KEY, + appID]; + NSData *data = [defaults objectForKey:defaultKey]; + if ([data isKindOfClass:[NSData class]]) { + NSDictionary *gatekeeper = [NSKeyedUnarchiver unarchiveObjectWithData:data]; + if (gatekeeper != nil && [gatekeeper isKindOfClass:[NSDictionary class]]) { + _gateKeepers = gatekeeper; + } + } + } + + // Query the server when the requery is not finished for app start or the timestamp is not valid + if ([self _gateKeeperIsValid]) { + if (completionBlock) { + completionBlock(nil); + } + } else { + [FBSDKBasicUtility array:_completionBlocks addObject:completionBlock]; + if (!_loadingGateKeepers) { + _loadingGateKeepers = YES; + FBSDKGraphRequest *request = [[self class] requestToLoadGateKeepers]; + + // start request with specified timeout instead of the default 180s + FBSDKGraphRequestConnection *requestConnection = [[FBSDKGraphRequestConnection alloc] init]; + requestConnection.timeout = kTimeout; + [requestConnection addRequest:request completionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) { + _requeryFinishedForAppStart = YES; + [self processLoadRequestResponse:result error:error]; + }]; + [requestConnection start]; + } + } + } +} + +#pragma mark - Internal Class Methods + ++ (FBSDKGraphRequest *)requestToLoadGateKeepers +{ + NSString *sdkVersion = [FBSDKSettings sdkVersion]; + + NSDictionary *parameters = @{ @"platform": @"ios" , + @"sdk_version": sdkVersion, + @"fields": FBSDK_GATEKEEPER_APP_GATEKEEPER_FIELDS}; + + FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc] initWithGraphPath:[NSString stringWithFormat:@"%@/%@", + [FBSDKSettings appID], FBSDK_GATEKEEPER_APP_GATEKEEPER_EDGE] + parameters:parameters + tokenString:nil + HTTPMethod:nil + flags:FBSDKGraphRequestFlagSkipClientToken | FBSDKGraphRequestFlagDisableErrorRecovery]; + return request; +} + +#pragma mark - Helper Class Methods + ++ (void)processLoadRequestResponse:(id)result error:(NSError *)error +{ + @synchronized(self) { + _loadingGateKeepers = NO; + + if (!error) { + // Update the timestamp only when there is no error + _timestamp = [NSDate date]; + + NSMutableDictionary *gateKeeper = [_gateKeepers mutableCopy]; + if (!gateKeeper) { + gateKeeper = [[NSMutableDictionary alloc] init]; + } + NSDictionary *resultDictionary = [FBSDKTypeUtility dictionaryValue:result]; + NSDictionary *fetchedData = [FBSDKTypeUtility dictionaryValue:[resultDictionary[@"data"] firstObject]]; + NSArray *gateKeeperList = fetchedData != nil ? [FBSDKTypeUtility arrayValue:fetchedData[FBSDK_GATEKEEPER_APP_GATEKEEPER_FIELDS]] : nil; + + if (gateKeeperList != nil) { + // updates gate keeper with fetched data + for (id gateKeeperEntry in gateKeeperList) { + NSDictionary *entry = [FBSDKTypeUtility dictionaryValue:gateKeeperEntry]; + NSString *key = [FBSDKTypeUtility stringValue:entry[@"key"]]; + id value = entry[@"value"]; + if (entry != nil && key != nil && value != nil) { + gateKeeper[key] = value; + } + } + _gateKeepers = [gateKeeper copy]; + } + + // update the cached copy in user defaults + NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; + NSString *defaultKey = [NSString stringWithFormat:FBSDK_GATEKEEPERS_USER_DEFAULTS_KEY, + [FBSDKSettings appID]]; + NSData *data = [NSKeyedArchiver archivedDataWithRootObject:gateKeeper]; + [defaults setObject:data forKey:defaultKey]; + } + + [self _didProcessGKFromNetwork:error]; + } +} + ++ (void)_didProcessGKFromNetwork:(NSError *)error +{ + NSArray *completionBlocks = [NSArray arrayWithArray:_completionBlocks]; + [_completionBlocks removeAllObjects]; + for (FBSDKGKManagerBlock completionBlock in completionBlocks) { + completionBlock(error); + } +} + ++ (BOOL)_gateKeeperTimestampIsValid:(NSDate *)timestamp +{ + if (timestamp == nil) { + return NO; + } + return ([[NSDate date] timeIntervalSinceDate:timestamp] < FBSDK_GATEKEEPER_MANAGER_CACHE_TIMEOUT); +} + ++ (BOOL)_gateKeeperIsValid +{ + if (_requeryFinishedForAppStart && (_timestamp && [self _gateKeeperTimestampIsValid:_timestamp])) { + return YES; + } + return NO; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKServerConfiguration+Internal.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKServerConfiguration+Internal.h new file mode 100644 index 0000000000000..2e71d7be38def --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKServerConfiguration+Internal.h @@ -0,0 +1,25 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +FOUNDATION_EXPORT NSString *const FBSDKDialogConfigurationNameDefault; +FOUNDATION_EXPORT NSString *const FBSDKDialogConfigurationNameSharing; + +FOUNDATION_EXPORT NSString *const FBSDKDialogConfigurationFeatureUseNativeFlow; +FOUNDATION_EXPORT NSString *const FBSDKDialogConfigurationFeatureUseSafariViewController; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKServerConfiguration.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKServerConfiguration.h new file mode 100644 index 0000000000000..6e98852f82a93 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKServerConfiguration.h @@ -0,0 +1,110 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import + +#import "FBSDKDialogConfiguration.h" +#import "FBSDKErrorConfiguration.h" + +// login kit +FOUNDATION_EXPORT NSString *const FBSDKDialogConfigurationNameLogin; + +// share kit +FOUNDATION_EXPORT NSString *const FBSDKDialogConfigurationNameAppInvite; +FOUNDATION_EXPORT NSString *const FBSDKDialogConfigurationNameGameRequest; +FOUNDATION_EXPORT NSString *const FBSDKDialogConfigurationNameGroup; +FOUNDATION_EXPORT NSString *const FBSDKDialogConfigurationNameLike; +FOUNDATION_EXPORT NSString *const FBSDKDialogConfigurationNameMessage; +FOUNDATION_EXPORT NSString *const FBSDKDialogConfigurationNameShare; + +FOUNDATION_EXPORT const NSInteger FBSDKServerConfigurationVersion; + +typedef NS_OPTIONS(NSUInteger, FBSDKServerConfigurationSmartLoginOptions) +{ + FBSDKServerConfigurationSmartLoginOptionsUnknown = 0, + FBSDKServerConfigurationSmartLoginOptionsEnabled = 1 << 0, + FBSDKServerConfigurationSmartLoginOptionsRequireConfirmation = 1 << 1, +}; + +NS_SWIFT_NAME(ServerConfiguration) +@interface FBSDKServerConfiguration : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +- (instancetype)initWithAppID:(NSString *)appID + appName:(NSString *)appName + loginTooltipEnabled:(BOOL)loginTooltipEnabled + loginTooltipText:(NSString *)loginTooltipText + defaultShareMode:(NSString *)defaultShareMode + advertisingIDEnabled:(BOOL)advertisingIDEnabled + implicitLoggingEnabled:(BOOL)implicitLoggingEnabled +implicitPurchaseLoggingEnabled:(BOOL)implicitPurchaseLoggingEnabled + codelessEventsEnabled:(BOOL)codelessEventsEnabled + systemAuthenticationEnabled:(BOOL)systemAuthenticationEnabled + nativeAuthFlowEnabled:(BOOL)nativeAuthFlowEnabled + uninstallTrackingEnabled:(BOOL)uninstallTrackingEnabled + dialogConfigurations:(NSDictionary *)dialogConfigurations + dialogFlows:(NSDictionary *)dialogFlows + timestamp:(NSDate *)timestamp + errorConfiguration:(FBSDKErrorConfiguration *)errorConfiguration + sessionTimeoutInterval:(NSTimeInterval) sessionTimeoutInterval + defaults:(BOOL)defaults + loggingToken:(NSString *)loggingToken + smartLoginOptions:(FBSDKServerConfigurationSmartLoginOptions)smartLoginOptions + smartLoginBookmarkIconURL:(NSURL *)smartLoginBookmarkIconURL + smartLoginMenuIconURL:(NSURL *)smartLoginMenuIconURL + updateMessage:(NSString *)updateMessage + eventBindings:(NSArray *)eventBindings + restrictiveParams:(NSDictionary *)restrictiveParams + AAMRules:(NSDictionary *)AAMRules +NS_DESIGNATED_INITIALIZER; + +@property (nonatomic, assign, readonly, getter=isAdvertisingIDEnabled) BOOL advertisingIDEnabled; +@property (nonatomic, copy, readonly) NSString *appID; +@property (nonatomic, copy, readonly) NSString *appName; +@property (nonatomic, assign, readonly, getter=isDefaults) BOOL defaults; +@property (nonatomic, copy, readonly) NSString *defaultShareMode; +@property (nonatomic, strong, readonly) FBSDKErrorConfiguration *errorConfiguration; +@property (nonatomic, assign, readonly, getter=isImplicitLoggingSupported) BOOL implicitLoggingEnabled; +@property (nonatomic, assign, readonly, getter=isImplicitPurchaseLoggingSupported) BOOL implicitPurchaseLoggingEnabled; +@property (nonatomic, assign, readonly, getter=isCodelessEventsEnabled) BOOL codelessEventsEnabled; +@property (nonatomic, assign, readonly, getter=isLoginTooltipEnabled) BOOL loginTooltipEnabled; +@property (nonatomic, assign, readonly, getter=isNativeAuthFlowEnabled) BOOL nativeAuthFlowEnabled; +@property (nonatomic, assign, readonly, getter=isSystemAuthenticationEnabled) BOOL systemAuthenticationEnabled; +@property (nonatomic, assign, readonly, getter=isUninstallTrackingEnabled) BOOL uninstallTrackingEnabled; +@property (nonatomic, copy, readonly) NSString *loginTooltipText; +@property (nonatomic, copy, readonly) NSDate *timestamp; +@property (nonatomic, assign) NSTimeInterval sessionTimoutInterval; +@property (nonatomic, copy, readonly) NSString *loggingToken; +@property (nonatomic, assign, readonly) FBSDKServerConfigurationSmartLoginOptions smartLoginOptions; +@property (nonatomic, copy, readonly) NSURL *smartLoginBookmarkIconURL; +@property (nonatomic, copy, readonly) NSURL *smartLoginMenuIconURL; +@property (nonatomic, copy, readonly) NSString *updateMessage; +@property (nonatomic, copy, readonly) NSArray *eventBindings; +@property (nonatomic, copy, readonly) NSDictionary *restrictiveParams; +@property (nonatomic, copy, readonly) NSDictionary *AAMRules; +@property (nonatomic, readonly) NSInteger version; + +- (FBSDKDialogConfiguration *)dialogConfigurationForDialogName:(NSString *)dialogName; +- (BOOL)useNativeDialogForDialogName:(NSString *)dialogName; +- (BOOL)useSafariViewControllerForDialogName:(NSString *)dialogName; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKServerConfiguration.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKServerConfiguration.m new file mode 100644 index 0000000000000..6451e960b2de0 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKServerConfiguration.m @@ -0,0 +1,295 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKServerConfiguration.h" +#import "FBSDKServerConfiguration+Internal.h" + +#import "FBSDKInternalUtility.h" + +#define FBSDK_SERVER_CONFIGURATION_ADVERTISING_ID_ENABLED_KEY @"advertisingIDEnabled" +#define FBSDK_SERVER_CONFIGURATION_APP_ID_KEY @"appID" +#define FBSDK_SERVER_CONFIGURATION_APP_NAME_KEY @"appName" +#define FBSDK_SERVER_CONFIGURATION_DIALOG_CONFIGS_KEY @"dialogConfigs" +#define FBSDK_SERVER_CONFIGURATION_DIALOG_FLOWS_KEY @"dialogFlows" +#define FBSDK_SERVER_CONFIGURATION_ERROR_CONFIGS_KEY @"errorConfigs" +#define FBSDK_SERVER_CONFIGURATION_IMPLICIT_LOGGING_ENABLED_KEY @"implicitLoggingEnabled" +#define FBSDK_SERVER_CONFIGURATION_DEFAULT_SHARE_MODE_KEY @"defaultShareMode" +#define FBSDK_SERVER_CONFIGURATION_IMPLICIT_PURCHASE_LOGGING_ENABLED_KEY @"implicitPurchaseLoggingEnabled" +#define FBSDK_SERVER_CONFIGURATION_CODELESS_EVENTS_ENABLED_KEY @"codelessEventsEnabled" +#define FBSDK_SERVER_CONFIGURATION_LOGIN_TOOLTIP_ENABLED_KEY @"loginTooltipEnabled" +#define FBSDK_SERVER_CONFIGURATION_LOGIN_TOOLTIP_TEXT_KEY @"loginTooltipText" +#define FBSDK_SERVER_CONFIGURATION_SYSTEM_AUTHENTICATION_ENABLED_KEY @"systemAuthenticationEnabled" +#define FBSDK_SERVER_CONFIGURATION_NATIVE_AUTH_FLOW_ENABLED_KEY @"nativeAuthFlowEnabled" +#define FBSDK_SERVER_CONFIGURATION_TIMESTAMP_KEY @"timestamp" +#define FBSDK_SERVER_CONFIGURATION_SESSION_TIMEOUT_INTERVAL @"sessionTimeoutInterval" +#define FBSDK_SERVER_CONFIGURATION_LOGGING_TOKEN @"loggingToken" +#define FBSDK_SERVER_CONFIGURATION_SMART_LOGIN_OPTIONS_KEY @"smartLoginEnabled" +#define FBSDK_SERVER_CONFIGURATION_SMART_LOGIN_BOOKMARK_ICON_URL_KEY @"smarstLoginBookmarkIconURL" +#define FBSDK_SERVER_CONFIGURATION_SMART_LOGIN_MENU_ICON_URL_KEY @"smarstLoginBookmarkMenuURL" +#define FBSDK_SERVER_CONFIGURATION_UPDATE_MESSAGE_KEY @"SDKUpdateMessage" +#define FBSDK_SERVER_CONFIGURATION_EVENT_BINDINGS @"eventBindings" +#define FBSDK_SERVER_CONFIGURATION_RESTRICTIVE_PARAMS @"restrictiveParams" +#define FBSDK_SERVER_CONFIGURATION_AAM_RULES @"AAMRules" +#define FBSDK_SERVER_CONFIGURATION_VERSION_KEY @"version" +#define FBSDK_SERVER_CONFIGURATION_TRACK_UNINSTALL_ENABLED_KEY @"trackAppUninstallEnabled" + +#pragma mark - Dialog Names + +NSString *const FBSDKDialogConfigurationNameDefault = @"default"; + +NSString *const FBSDKDialogConfigurationNameLogin = @"login"; + +NSString *const FBSDKDialogConfigurationNameSharing = @"sharing"; + +NSString *const FBSDKDialogConfigurationNameAppInvite = @"app_invite"; +NSString *const FBSDKDialogConfigurationNameGameRequest = @"game_request"; +NSString *const FBSDKDialogConfigurationNameGroup = @"group"; +NSString *const FBSDKDialogConfigurationNameLike = @"like"; +NSString *const FBSDKDialogConfigurationNameMessage = @"message"; +NSString *const FBSDKDialogConfigurationNameShare = @"share"; + +NSString *const FBSDKDialogConfigurationFeatureUseNativeFlow = @"use_native_flow"; +NSString *const FBSDKDialogConfigurationFeatureUseSafariViewController = @"use_safari_vc"; + +// Increase this value when adding new fields and previous cached configurations should be +// treated as stale. +const NSInteger FBSDKServerConfigurationVersion = 2; + +@implementation FBSDKServerConfiguration +{ + NSDictionary *_dialogConfigurations; + NSDictionary *_dialogFlows; + NSInteger _version; +} + +#pragma mark - Object Lifecycle + +- (instancetype)initWithAppID:(NSString *)appID + appName:(NSString *)appName + loginTooltipEnabled:(BOOL)loginTooltipEnabled + loginTooltipText:(NSString *)loginTooltipText + defaultShareMode:(NSString*)defaultShareMode + advertisingIDEnabled:(BOOL)advertisingIDEnabled + implicitLoggingEnabled:(BOOL)implicitLoggingEnabled +implicitPurchaseLoggingEnabled:(BOOL)implicitPurchaseLoggingEnabled + codelessEventsEnabled:(BOOL)codelessEventsEnabled + systemAuthenticationEnabled:(BOOL)systemAuthenticationEnabled + nativeAuthFlowEnabled:(BOOL)nativeAuthFlowEnabled + uninstallTrackingEnabled:(BOOL)uninstallTrackingEnabled + dialogConfigurations:(NSDictionary *)dialogConfigurations + dialogFlows:(NSDictionary *)dialogFlows + timestamp:(NSDate *)timestamp + errorConfiguration:(FBSDKErrorConfiguration *)errorConfiguration + sessionTimeoutInterval:(NSTimeInterval) sessionTimeoutInterval + defaults:(BOOL)defaults + loggingToken:(NSString *)loggingToken + smartLoginOptions:(FBSDKServerConfigurationSmartLoginOptions)smartLoginOptions + smartLoginBookmarkIconURL:(NSURL *)smartLoginBookmarkIconURL + smartLoginMenuIconURL:(NSURL *)smartLoginMenuIconURL + updateMessage:(NSString *)updateMessage + eventBindings:(NSArray *)eventBindings + restrictiveParams:(NSDictionary *)restrictiveParams + AAMRules:(NSDictionary *)AAMRules +{ + if ((self = [super init])) { + _appID = [appID copy]; + _appName = [appName copy]; + _loginTooltipEnabled = loginTooltipEnabled; + _loginTooltipText = [loginTooltipText copy]; + _defaultShareMode = defaultShareMode; + _advertisingIDEnabled = advertisingIDEnabled; + _implicitLoggingEnabled = implicitLoggingEnabled; + _implicitPurchaseLoggingEnabled = implicitPurchaseLoggingEnabled; + _codelessEventsEnabled = codelessEventsEnabled; + _systemAuthenticationEnabled = systemAuthenticationEnabled; + _uninstallTrackingEnabled = uninstallTrackingEnabled; + _nativeAuthFlowEnabled = nativeAuthFlowEnabled; + _dialogConfigurations = [dialogConfigurations copy]; + _dialogFlows = [dialogFlows copy]; + _timestamp = [timestamp copy]; + _errorConfiguration = [errorConfiguration copy]; + _sessionTimoutInterval = sessionTimeoutInterval; + _defaults = defaults; + _loggingToken = loggingToken; + _smartLoginOptions = smartLoginOptions; + _smartLoginMenuIconURL = [smartLoginMenuIconURL copy]; + _smartLoginBookmarkIconURL = [smartLoginBookmarkIconURL copy]; + _updateMessage = [updateMessage copy]; + _eventBindings = eventBindings; + _restrictiveParams = restrictiveParams; + _AAMRules = AAMRules; + _version = FBSDKServerConfigurationVersion; + } + return self; +} + +#pragma mark - Public Methods + +- (FBSDKDialogConfiguration *)dialogConfigurationForDialogName:(NSString *)dialogName +{ + return _dialogConfigurations[dialogName]; +} + +- (BOOL)useNativeDialogForDialogName:(NSString *)dialogName +{ + return [self _useFeatureWithKey:FBSDKDialogConfigurationFeatureUseNativeFlow dialogName:dialogName]; +} + +- (BOOL)useSafariViewControllerForDialogName:(NSString *)dialogName +{ + return [self _useFeatureWithKey:FBSDKDialogConfigurationFeatureUseSafariViewController dialogName:dialogName]; +} + +#pragma mark - Helper Methods + +- (BOOL)_useFeatureWithKey:(NSString *)key dialogName:(NSString *)dialogName +{ + if ([dialogName isEqualToString:FBSDKDialogConfigurationNameLogin]) { + return ((NSNumber *)(_dialogFlows[dialogName][key] ?: + _dialogFlows[FBSDKDialogConfigurationNameDefault][key])).boolValue; + } else { + return ((NSNumber *)(_dialogFlows[dialogName][key] ?: + _dialogFlows[FBSDKDialogConfigurationNameSharing][key] ?: + _dialogFlows[FBSDKDialogConfigurationNameDefault][key])).boolValue; + } +} + +#pragma mark - NSCoding + ++ (BOOL)supportsSecureCoding +{ + return YES; +} + +- (id)initWithCoder:(NSCoder *)decoder +{ + NSString *appID = [decoder decodeObjectOfClass:[NSString class] forKey:FBSDK_SERVER_CONFIGURATION_APP_ID_KEY]; + NSString *appName = [decoder decodeObjectOfClass:[NSString class] forKey:FBSDK_SERVER_CONFIGURATION_APP_NAME_KEY]; + BOOL loginTooltipEnabled = [decoder decodeBoolForKey:FBSDK_SERVER_CONFIGURATION_LOGIN_TOOLTIP_ENABLED_KEY]; + NSString *loginTooltipText = [decoder decodeObjectOfClass:[NSString class] + forKey:FBSDK_SERVER_CONFIGURATION_LOGIN_TOOLTIP_TEXT_KEY]; + NSString *defaultShareMode = [decoder decodeObjectOfClass:[NSString class] + forKey:FBSDK_SERVER_CONFIGURATION_DEFAULT_SHARE_MODE_KEY]; + BOOL advertisingIDEnabled = [decoder decodeBoolForKey:FBSDK_SERVER_CONFIGURATION_ADVERTISING_ID_ENABLED_KEY]; + BOOL implicitLoggingEnabled = [decoder decodeBoolForKey:FBSDK_SERVER_CONFIGURATION_IMPLICIT_LOGGING_ENABLED_KEY]; + BOOL implicitPurchaseLoggingEnabled = + [decoder decodeBoolForKey:FBSDK_SERVER_CONFIGURATION_IMPLICIT_PURCHASE_LOGGING_ENABLED_KEY]; + BOOL codelessEventsEnabled = + [decoder decodeBoolForKey:FBSDK_SERVER_CONFIGURATION_CODELESS_EVENTS_ENABLED_KEY]; + BOOL systemAuthenticationEnabled = + [decoder decodeBoolForKey:FBSDK_SERVER_CONFIGURATION_SYSTEM_AUTHENTICATION_ENABLED_KEY]; + BOOL uninstallTrackingEnabled = + [decoder decodeBoolForKey:FBSDK_SERVER_CONFIGURATION_TRACK_UNINSTALL_ENABLED_KEY]; + FBSDKServerConfigurationSmartLoginOptions smartLoginOptions = [decoder decodeIntegerForKey:FBSDK_SERVER_CONFIGURATION_SMART_LOGIN_OPTIONS_KEY]; + BOOL nativeAuthFlowEnabled = [decoder decodeBoolForKey:FBSDK_SERVER_CONFIGURATION_NATIVE_AUTH_FLOW_ENABLED_KEY]; + NSDate *timestamp = [decoder decodeObjectOfClass:[NSDate class] forKey:FBSDK_SERVER_CONFIGURATION_TIMESTAMP_KEY]; + NSSet *dialogConfigurationsClasses = [[NSSet alloc] initWithObjects: + [NSDictionary class], + [FBSDKDialogConfiguration class], + nil]; + NSDictionary *dialogConfigurations = [decoder decodeObjectOfClasses:dialogConfigurationsClasses + forKey:FBSDK_SERVER_CONFIGURATION_DIALOG_CONFIGS_KEY]; + NSSet *dialogFlowsClasses = [[NSSet alloc] initWithObjects: + [NSDictionary class], + [NSString class], + [NSNumber class], + nil]; + NSDictionary *dialogFlows = [decoder decodeObjectOfClasses:dialogFlowsClasses + forKey:FBSDK_SERVER_CONFIGURATION_DIALOG_FLOWS_KEY]; + FBSDKErrorConfiguration *errorConfiguration = [decoder decodeObjectOfClass:[FBSDKErrorConfiguration class] forKey:FBSDK_SERVER_CONFIGURATION_ERROR_CONFIGS_KEY]; + NSTimeInterval sessionTimeoutInterval = [decoder decodeDoubleForKey:FBSDK_SERVER_CONFIGURATION_SESSION_TIMEOUT_INTERVAL]; + NSString *loggingToken = [decoder decodeObjectOfClass:[NSString class] forKey:FBSDK_SERVER_CONFIGURATION_LOGGING_TOKEN]; + NSURL *smartLoginBookmarkIconURL = [decoder decodeObjectOfClass:[NSURL class] forKey:FBSDK_SERVER_CONFIGURATION_SMART_LOGIN_BOOKMARK_ICON_URL_KEY]; + NSURL *smartLoginMenuIconURL = [decoder decodeObjectOfClass:[NSURL class] forKey:FBSDK_SERVER_CONFIGURATION_SMART_LOGIN_MENU_ICON_URL_KEY]; + NSString *updateMessage = [decoder decodeObjectOfClass:[NSString class] forKey:FBSDK_SERVER_CONFIGURATION_UPDATE_MESSAGE_KEY]; + NSArray *eventBindings = [decoder decodeObjectOfClass:[NSArray class] forKey:FBSDK_SERVER_CONFIGURATION_EVENT_BINDINGS]; + NSDictionary *restrictiveParams = [decoder decodeObjectOfClass:[NSDictionary class] forKey:FBSDK_SERVER_CONFIGURATION_RESTRICTIVE_PARAMS]; + NSDictionary *AAMRules = [decoder decodeObjectOfClass:[NSDictionary class] forKey:FBSDK_SERVER_CONFIGURATION_AAM_RULES]; + NSInteger version = [decoder decodeIntegerForKey:FBSDK_SERVER_CONFIGURATION_VERSION_KEY]; + FBSDKServerConfiguration *configuration = [self initWithAppID:appID + appName:appName + loginTooltipEnabled:loginTooltipEnabled + loginTooltipText:loginTooltipText + defaultShareMode:defaultShareMode + advertisingIDEnabled:advertisingIDEnabled + implicitLoggingEnabled:implicitLoggingEnabled + implicitPurchaseLoggingEnabled:implicitPurchaseLoggingEnabled + codelessEventsEnabled:codelessEventsEnabled + systemAuthenticationEnabled:systemAuthenticationEnabled + nativeAuthFlowEnabled:nativeAuthFlowEnabled + uninstallTrackingEnabled:uninstallTrackingEnabled + dialogConfigurations:dialogConfigurations + dialogFlows:dialogFlows + timestamp:timestamp + errorConfiguration:errorConfiguration + sessionTimeoutInterval:sessionTimeoutInterval + defaults:NO + loggingToken:loggingToken + smartLoginOptions:smartLoginOptions + smartLoginBookmarkIconURL:smartLoginBookmarkIconURL + smartLoginMenuIconURL:smartLoginMenuIconURL + updateMessage:updateMessage + eventBindings:eventBindings + restrictiveParams:restrictiveParams + AAMRules:AAMRules + ]; + configuration->_version = version; + return configuration; +} + +- (void)encodeWithCoder:(NSCoder *)encoder +{ + [encoder encodeBool:_advertisingIDEnabled forKey:FBSDK_SERVER_CONFIGURATION_ADVERTISING_ID_ENABLED_KEY]; + [encoder encodeObject:_appID forKey:FBSDK_SERVER_CONFIGURATION_APP_ID_KEY]; + [encoder encodeObject:_appName forKey:FBSDK_SERVER_CONFIGURATION_APP_NAME_KEY]; + [encoder encodeObject:_defaultShareMode forKey:FBSDK_SERVER_CONFIGURATION_DEFAULT_SHARE_MODE_KEY]; + [encoder encodeObject:_dialogConfigurations forKey:FBSDK_SERVER_CONFIGURATION_DIALOG_CONFIGS_KEY]; + [encoder encodeObject:_dialogFlows forKey:FBSDK_SERVER_CONFIGURATION_DIALOG_FLOWS_KEY]; + [encoder encodeObject:_errorConfiguration forKey:FBSDK_SERVER_CONFIGURATION_ERROR_CONFIGS_KEY]; + [encoder encodeBool:_implicitLoggingEnabled forKey:FBSDK_SERVER_CONFIGURATION_IMPLICIT_LOGGING_ENABLED_KEY]; + [encoder encodeBool:_implicitPurchaseLoggingEnabled + forKey:FBSDK_SERVER_CONFIGURATION_IMPLICIT_PURCHASE_LOGGING_ENABLED_KEY]; + [encoder encodeBool:_codelessEventsEnabled + forKey:FBSDK_SERVER_CONFIGURATION_CODELESS_EVENTS_ENABLED_KEY]; + [encoder encodeBool:_loginTooltipEnabled forKey:FBSDK_SERVER_CONFIGURATION_LOGIN_TOOLTIP_ENABLED_KEY]; + [encoder encodeBool:_uninstallTrackingEnabled + forKey:FBSDK_SERVER_CONFIGURATION_TRACK_UNINSTALL_ENABLED_KEY]; + [encoder encodeObject:_loginTooltipText forKey:FBSDK_SERVER_CONFIGURATION_LOGIN_TOOLTIP_TEXT_KEY]; + [encoder encodeBool:_nativeAuthFlowEnabled forKey:FBSDK_SERVER_CONFIGURATION_NATIVE_AUTH_FLOW_ENABLED_KEY]; + [encoder encodeBool:_systemAuthenticationEnabled forKey:FBSDK_SERVER_CONFIGURATION_SYSTEM_AUTHENTICATION_ENABLED_KEY]; + [encoder encodeObject:_timestamp forKey:FBSDK_SERVER_CONFIGURATION_TIMESTAMP_KEY]; + [encoder encodeDouble:_sessionTimoutInterval forKey:FBSDK_SERVER_CONFIGURATION_SESSION_TIMEOUT_INTERVAL]; + [encoder encodeObject:_loggingToken forKey:FBSDK_SERVER_CONFIGURATION_LOGGING_TOKEN]; + [encoder encodeInteger:_smartLoginOptions forKey:FBSDK_SERVER_CONFIGURATION_SMART_LOGIN_OPTIONS_KEY]; + [encoder encodeObject:_smartLoginBookmarkIconURL forKey:FBSDK_SERVER_CONFIGURATION_SMART_LOGIN_BOOKMARK_ICON_URL_KEY]; + [encoder encodeObject:_smartLoginMenuIconURL forKey:FBSDK_SERVER_CONFIGURATION_SMART_LOGIN_MENU_ICON_URL_KEY]; + [encoder encodeObject:_updateMessage forKey:FBSDK_SERVER_CONFIGURATION_UPDATE_MESSAGE_KEY]; + [encoder encodeObject:_eventBindings forKey:FBSDK_SERVER_CONFIGURATION_EVENT_BINDINGS]; + [encoder encodeObject:_restrictiveParams forKey:FBSDK_SERVER_CONFIGURATION_RESTRICTIVE_PARAMS]; + [encoder encodeObject:_AAMRules forKey:FBSDK_SERVER_CONFIGURATION_AAM_RULES]; + [encoder encodeInteger:_version forKey:FBSDK_SERVER_CONFIGURATION_VERSION_KEY]; +} + +#pragma mark - NSCopying + +- (id)copyWithZone:(NSZone *)zone +{ + return self; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKServerConfigurationManager+Internal.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKServerConfigurationManager+Internal.h new file mode 100644 index 0000000000000..b84b02353e03d --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKServerConfigurationManager+Internal.h @@ -0,0 +1,33 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import "FBSDKServerConfigurationManager.h" + +@class FBSDKGraphRequest; + +@interface FBSDKServerConfigurationManager () + ++ (void)processLoadRequestResponse:(id)result error:(NSError *)error appID:(NSString *)appID; + ++ (FBSDKGraphRequest *)requestToLoadServerConfiguration:(NSString *)appID; + ++ (void)clearCache; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKServerConfigurationManager.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKServerConfigurationManager.h new file mode 100644 index 0000000000000..78557e5cfcad1 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKServerConfigurationManager.h @@ -0,0 +1,45 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import "FBSDKServerConfiguration.h" + +#define FBSDK_SERVER_CONFIGURATION_MANAGER_CACHE_TIMEOUT (60 * 60) +typedef void (^FBSDKServerConfigurationBlock)(FBSDKServerConfiguration *serverConfiguration, NSError *error) +NS_SWIFT_NAME(ServerConfigurationBlock); + +NS_SWIFT_NAME(ServerConfigurationManager) +@interface FBSDKServerConfigurationManager : NSObject + +/** + Returns the locally cached configuration. + + The result will be valid for the appID from FBSDKSettings, but may be expired. A network request will be + initiated to update the configuration if a valid and unexpired configuration is not available. + */ ++ (FBSDKServerConfiguration *)cachedServerConfiguration; + +/** + Executes the completionBlock with a valid and current configuration when it is available. + + This method will use a cached configuration if it is valid and not expired. + */ ++ (void)loadServerConfigurationWithCompletionBlock:(FBSDKServerConfigurationBlock)completionBlock; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKServerConfigurationManager.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKServerConfigurationManager.m new file mode 100644 index 0000000000000..e2cc7e092564b --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKServerConfigurationManager.m @@ -0,0 +1,473 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKServerConfigurationManager+Internal.h" + +#import + +#import "FBSDKAppEventsUtility.h" +#import "FBSDKGateKeeperManager.h" +#import "FBSDKGraphRequest+Internal.h" +#import "FBSDKGraphRequest.h" +#import "FBSDKImageDownloader.h" +#import "FBSDKInternalUtility.h" +#import "FBSDKLogger.h" +#import "FBSDKRestrictiveDataFilterManager.h" +#import "FBSDKServerConfiguration+Internal.h" +#import "FBSDKServerConfiguration.h" +#import "FBSDKSettings.h" +#import "FBSDKTypeUtility.h" + +// one minute +#define DEFAULT_SESSION_TIMEOUT_INTERVAL 60 + +#define FBSDK_SERVER_CONFIGURATION_USER_DEFAULTS_KEY @"com.facebook.sdk:serverConfiguration%@" + +#define FBSDK_SERVER_CONFIGURATION_APP_EVENTS_FEATURES_FIELD @"app_events_feature_bitmask" +#define FBSDK_SERVER_CONFIGURATION_APP_NAME_FIELD @"name" +#define FBSDK_SERVER_CONFIGURATION_DEFAULT_SHARE_MODE_FIELD @"default_share_mode" +#define FBSDK_SERVER_CONFIGURATION_DIALOG_CONFIGS_FIELD @"ios_dialog_configs" +#define FBSDK_SERVER_CONFIGURATION_DIALOG_FLOWS_FIELD @"ios_sdk_dialog_flows" +#define FBSDK_SERVER_CONFIGURATION_ERROR_CONFIGURATION_FIELD @"ios_sdk_error_categories" +#define FBSDK_SERVER_CONFIGURATION_IMPLICIT_LOGGING_ENABLED_FIELD @"supports_implicit_sdk_logging" +#define FBSDK_SERVER_CONFIGURATION_LOGIN_TOOLTIP_ENABLED_FIELD @"gdpv4_nux_enabled" +#define FBSDK_SERVER_CONFIGURATION_LOGIN_TOOLTIP_TEXT_FIELD @"gdpv4_nux_content" +#define FBSDK_SERVER_CONFIGURATION_NATIVE_PROXY_AUTH_FLOW_ENABLED_FIELD @"ios_supports_native_proxy_auth_flow" +#define FBSDK_SERVER_CONFIGURATION_SYSTEM_AUTHENTICATION_ENABLED_FIELD @"ios_supports_system_auth" +#define FBSDK_SERVER_CONFIGURATION_SESSION_TIMEOUT_FIELD @"app_events_session_timeout" +#define FBSDK_SERVER_CONFIGURATION_LOGGIN_TOKEN_FIELD @"logging_token" +#define FBSDK_SERVER_CONFIGURATION_SMART_LOGIN_OPTIONS_FIELD @"seamless_login" +#define FBSDK_SERVER_CONFIGURATION_SMART_LOGIN_BOOKMARK_ICON_URL_FIELD @"smart_login_bookmark_icon_url" +#define FBSDK_SERVER_CONFIGURATION_SMART_LOGIN_MENU_ICON_URL_FIELD @"smart_login_menu_icon_url" +#define FBSDK_SERVER_CONFIGURATION_UPDATE_MESSAGE_FIELD @"sdk_update_message" +#define FBSDK_SERVER_CONFIGURATION_EVENT_BINDINGS_FIELD @"auto_event_mapping_ios" +#define FBSDK_SERVER_CONFIGURATION_RESTRICTIVE_PARAMS_FIELD @"restrictive_data_filter_params" +#define FBSDK_SERVER_CONFIGURATION_AAM_RULES_FIELD @"aam_rules" + +@implementation FBSDKServerConfigurationManager + +static NSMutableArray *_completionBlocks; +static BOOL _loadingServerConfiguration; +static FBSDKServerConfiguration *_serverConfiguration; +static NSError *_serverConfigurationError; +static NSDate *_serverConfigurationErrorTimestamp; +static const NSTimeInterval kTimeout = 4.0; +static BOOL _printedUpdateMessage; +static BOOL _requeryFinishedForAppStart; + +typedef NS_OPTIONS(NSUInteger, FBSDKServerConfigurationManagerAppEventsFeatures) +{ + FBSDKServerConfigurationManagerAppEventsFeaturesNone = 0, + FBSDKServerConfigurationManagerAppEventsFeaturesAdvertisingIDEnabled = 1 << 0, + FBSDKServerConfigurationManagerAppEventsFeaturesImplicitPurchaseLoggingEnabled = 1 << 1, + FBSDKServerConfigurationManagerAppEventsFeaturesCodelessEventsTriggerEnabled = 1 << 5, + FBSDKServerConfigurationManagerAppEventsFeaturesUninstallTrackingEnabled = 1 << 7, +}; + +#pragma mark - Public Class Methods + ++ (void)initialize +{ + if (self == [FBSDKServerConfigurationManager class]) { + _completionBlocks = [[NSMutableArray alloc] init]; + } +} + ++ (void)clearCache +{ + _serverConfiguration = nil; + _serverConfigurationError = nil; + _serverConfigurationErrorTimestamp = nil; + NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; + NSString *defaultsKey = [NSString stringWithFormat:FBSDK_SERVER_CONFIGURATION_USER_DEFAULTS_KEY, [FBSDKSettings appID]]; + [defaults removeObjectForKey:defaultsKey]; + [defaults synchronize]; +} + ++ (FBSDKServerConfiguration *)cachedServerConfiguration +{ + NSString *appID = [FBSDKSettings appID]; + @synchronized(self) { + // load the server configuration if we don't have it already + [self loadServerConfigurationWithCompletionBlock:nil]; + + // use whatever configuration we have or the default + return _serverConfiguration ?: [self _defaultServerConfigurationForAppID:appID]; + } +} + ++ (void)loadServerConfigurationWithCompletionBlock:(FBSDKServerConfigurationBlock)completionBlock +{ + void (^loadBlock)(void) = nil; + NSString *appID = [FBSDKSettings appID]; + @synchronized(self) { + // validate the cached configuration has the correct appID + if (_serverConfiguration && ![_serverConfiguration.appID isEqualToString:appID]) { + _serverConfiguration = nil; + _serverConfigurationError = nil; + _serverConfigurationErrorTimestamp = nil; + } + + // load the configuration from NSUserDefaults + if (!_serverConfiguration) { + // load the defaults + NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; + NSString *defaultsKey = [NSString stringWithFormat:FBSDK_SERVER_CONFIGURATION_USER_DEFAULTS_KEY, appID]; + NSData *data = [defaults objectForKey:defaultsKey]; + if ([data isKindOfClass:[NSData class]]) { + // decode the configuration + FBSDKServerConfiguration *serverConfiguration = [NSKeyedUnarchiver unarchiveObjectWithData:data]; + if ([serverConfiguration isKindOfClass:[FBSDKServerConfiguration class]]) { + // ensure that the configuration points to the current appID + if ([serverConfiguration.appID isEqualToString:appID]) { + _serverConfiguration = serverConfiguration; + } + } + } + } + + if (_requeryFinishedForAppStart && + ((_serverConfiguration && [self _serverConfigurationTimestampIsValid:_serverConfiguration.timestamp] && _serverConfiguration.version >= FBSDKServerConfigurationVersion))) { + // we have a valid server configuration, use that + loadBlock = [self _wrapperBlockForLoadBlock:completionBlock]; + } else { + // hold onto the completion block + [FBSDKBasicUtility array:_completionBlocks addObject:[completionBlock copy]]; + + // check if we are already loading + if (!_loadingServerConfiguration) { + // load the configuration from the network + _loadingServerConfiguration = YES; + FBSDKGraphRequest *request = [[self class] requestToLoadServerConfiguration:appID]; + + // start request with specified timeout instead of the default 180s + FBSDKGraphRequestConnection *requestConnection = [[FBSDKGraphRequestConnection alloc] init]; + requestConnection.timeout = kTimeout; + [requestConnection addRequest:request completionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) { + _requeryFinishedForAppStart = YES; + [self processLoadRequestResponse:result error:error appID:appID]; + }]; + [requestConnection start]; + } + } + } + + if (loadBlock) { + loadBlock(); + } + + // Fetch app gatekeepers + [FBSDKGateKeeperManager loadGateKeepers:nil]; +} + +#pragma mark - Internal Class Methods + ++ (void)processLoadRequestResponse:(id)result error:(NSError *)error appID:(NSString *)appID +{ + if (error) { + [self _didProcessConfigurationFromNetwork:nil appID:appID error:error]; + return; + } + + NSDictionary *resultDictionary = [FBSDKTypeUtility dictionaryValue:result]; + NSUInteger appEventsFeatures = [FBSDKTypeUtility unsignedIntegerValue:resultDictionary[FBSDK_SERVER_CONFIGURATION_APP_EVENTS_FEATURES_FIELD]]; + BOOL advertisingIDEnabled = (appEventsFeatures & FBSDKServerConfigurationManagerAppEventsFeaturesAdvertisingIDEnabled) != 0; + BOOL implicitPurchaseLoggingEnabled = (appEventsFeatures & FBSDKServerConfigurationManagerAppEventsFeaturesImplicitPurchaseLoggingEnabled) != 0; + BOOL codelessEventsEnabled = (appEventsFeatures & FBSDKServerConfigurationManagerAppEventsFeaturesCodelessEventsTriggerEnabled) != 0; + BOOL uninstallTrackingEnabled = (appEventsFeatures & FBSDKServerConfigurationManagerAppEventsFeaturesUninstallTrackingEnabled) != 0; + NSString *appName = [FBSDKTypeUtility stringValue:resultDictionary[FBSDK_SERVER_CONFIGURATION_APP_NAME_FIELD]]; + BOOL loginTooltipEnabled = [FBSDKTypeUtility boolValue:resultDictionary[FBSDK_SERVER_CONFIGURATION_LOGIN_TOOLTIP_ENABLED_FIELD]]; + NSString *loginTooltipText = [FBSDKTypeUtility stringValue:resultDictionary[FBSDK_SERVER_CONFIGURATION_LOGIN_TOOLTIP_TEXT_FIELD]]; + NSString *defaultShareMode = [FBSDKTypeUtility stringValue:resultDictionary[FBSDK_SERVER_CONFIGURATION_DEFAULT_SHARE_MODE_FIELD]]; + BOOL implicitLoggingEnabled = [FBSDKTypeUtility boolValue:resultDictionary[FBSDK_SERVER_CONFIGURATION_IMPLICIT_LOGGING_ENABLED_FIELD]]; + BOOL systemAuthenticationEnabled = [FBSDKTypeUtility boolValue:resultDictionary[FBSDK_SERVER_CONFIGURATION_SYSTEM_AUTHENTICATION_ENABLED_FIELD]]; + BOOL nativeAuthFlowEnabled = [FBSDKTypeUtility boolValue:resultDictionary[FBSDK_SERVER_CONFIGURATION_NATIVE_PROXY_AUTH_FLOW_ENABLED_FIELD]]; + NSDictionary *dialogConfigurations = [FBSDKTypeUtility dictionaryValue:resultDictionary[FBSDK_SERVER_CONFIGURATION_DIALOG_CONFIGS_FIELD]]; + dialogConfigurations = [self _parseDialogConfigurations:dialogConfigurations]; + NSDictionary *dialogFlows = [FBSDKTypeUtility dictionaryValue:resultDictionary[FBSDK_SERVER_CONFIGURATION_DIALOG_FLOWS_FIELD]]; + FBSDKErrorConfiguration *errorConfiguration = [[FBSDKErrorConfiguration alloc] initWithDictionary:nil]; + [errorConfiguration parseArray:resultDictionary[FBSDK_SERVER_CONFIGURATION_ERROR_CONFIGURATION_FIELD]]; + NSTimeInterval sessionTimeoutInterval = [FBSDKTypeUtility timeIntervalValue:resultDictionary[FBSDK_SERVER_CONFIGURATION_SESSION_TIMEOUT_FIELD]] ?: DEFAULT_SESSION_TIMEOUT_INTERVAL; + NSString *loggingToken = [FBSDKTypeUtility stringValue:resultDictionary[FBSDK_SERVER_CONFIGURATION_LOGGIN_TOKEN_FIELD]]; + FBSDKServerConfigurationSmartLoginOptions smartLoginOptions = [FBSDKTypeUtility integerValue:resultDictionary[FBSDK_SERVER_CONFIGURATION_SMART_LOGIN_OPTIONS_FIELD]]; + NSURL *smartLoginBookmarkIconURL = [FBSDKTypeUtility URLValue:resultDictionary[FBSDK_SERVER_CONFIGURATION_SMART_LOGIN_BOOKMARK_ICON_URL_FIELD]]; + NSURL *smartLoginMenuIconURL = [FBSDKTypeUtility URLValue:resultDictionary[FBSDK_SERVER_CONFIGURATION_SMART_LOGIN_MENU_ICON_URL_FIELD]]; + NSString *updateMessage = [FBSDKTypeUtility stringValue:resultDictionary[FBSDK_SERVER_CONFIGURATION_UPDATE_MESSAGE_FIELD]]; + NSArray *eventBindings = [FBSDKTypeUtility arrayValue:resultDictionary[FBSDK_SERVER_CONFIGURATION_EVENT_BINDINGS_FIELD]]; + NSDictionary *restrictiveParams = [FBSDKBasicUtility objectForJSONString:resultDictionary[FBSDK_SERVER_CONFIGURATION_RESTRICTIVE_PARAMS_FIELD] error:nil]; + NSDictionary *AAMRules = [FBSDKBasicUtility objectForJSONString:resultDictionary[FBSDK_SERVER_CONFIGURATION_AAM_RULES_FIELD] error:nil]; + FBSDKServerConfiguration *serverConfiguration = [[FBSDKServerConfiguration alloc] initWithAppID:appID + appName:appName + loginTooltipEnabled:loginTooltipEnabled + loginTooltipText:loginTooltipText + defaultShareMode:defaultShareMode + advertisingIDEnabled:advertisingIDEnabled + implicitLoggingEnabled:implicitLoggingEnabled + implicitPurchaseLoggingEnabled:implicitPurchaseLoggingEnabled + codelessEventsEnabled:codelessEventsEnabled + systemAuthenticationEnabled:systemAuthenticationEnabled + nativeAuthFlowEnabled:nativeAuthFlowEnabled + uninstallTrackingEnabled:uninstallTrackingEnabled + dialogConfigurations:dialogConfigurations + dialogFlows:dialogFlows + timestamp:[NSDate date] + errorConfiguration:errorConfiguration + sessionTimeoutInterval:sessionTimeoutInterval + defaults:NO + loggingToken:loggingToken + smartLoginOptions:smartLoginOptions + smartLoginBookmarkIconURL:smartLoginBookmarkIconURL + smartLoginMenuIconURL:smartLoginMenuIconURL + updateMessage:updateMessage + eventBindings:eventBindings + restrictiveParams:restrictiveParams + AAMRules:AAMRules + ]; + if (restrictiveParams) { + [FBSDKRestrictiveDataFilterManager updateFilters:restrictiveParams]; + } +#if TARGET_OS_TV + // don't download icons more than once a day. + static const NSTimeInterval kSmartLoginIconsTTL = 60 * 60 * 24; + + BOOL smartLoginEnabled = (smartLoginOptions & FBSDKServerConfigurationSmartLoginOptionsEnabled); + // for TVs go ahead and prime the images + if (smartLoginEnabled && + smartLoginMenuIconURL && + smartLoginBookmarkIconURL) { + [[FBSDKImageDownloader sharedInstance] downloadImageWithURL:serverConfiguration.smartLoginBookmarkIconURL + ttl:kSmartLoginIconsTTL + completion:nil]; + [[FBSDKImageDownloader sharedInstance] downloadImageWithURL:serverConfiguration.smartLoginMenuIconURL + ttl:kSmartLoginIconsTTL + completion:nil]; + } +#endif + [self _didProcessConfigurationFromNetwork:serverConfiguration appID:appID error:nil]; +} + ++ (FBSDKGraphRequest *)requestToLoadServerConfiguration:(NSString *)appID +{ + NSOperatingSystemVersion operatingSystemVersion = [FBSDKInternalUtility operatingSystemVersion]; + NSString *dialogFlowsField = [NSString stringWithFormat:@"%@.os_version(%ti.%ti.%ti)", + FBSDK_SERVER_CONFIGURATION_DIALOG_FLOWS_FIELD, + operatingSystemVersion.majorVersion, + operatingSystemVersion.minorVersion, + operatingSystemVersion.patchVersion]; + NSArray *fields = @[FBSDK_SERVER_CONFIGURATION_APP_EVENTS_FEATURES_FIELD, + FBSDK_SERVER_CONFIGURATION_APP_NAME_FIELD, + FBSDK_SERVER_CONFIGURATION_DEFAULT_SHARE_MODE_FIELD, + FBSDK_SERVER_CONFIGURATION_DIALOG_CONFIGS_FIELD, + dialogFlowsField, + FBSDK_SERVER_CONFIGURATION_ERROR_CONFIGURATION_FIELD, + FBSDK_SERVER_CONFIGURATION_IMPLICIT_LOGGING_ENABLED_FIELD, + FBSDK_SERVER_CONFIGURATION_LOGIN_TOOLTIP_ENABLED_FIELD, + FBSDK_SERVER_CONFIGURATION_LOGIN_TOOLTIP_TEXT_FIELD, + FBSDK_SERVER_CONFIGURATION_NATIVE_PROXY_AUTH_FLOW_ENABLED_FIELD, + FBSDK_SERVER_CONFIGURATION_SYSTEM_AUTHENTICATION_ENABLED_FIELD, + FBSDK_SERVER_CONFIGURATION_SESSION_TIMEOUT_FIELD, + FBSDK_SERVER_CONFIGURATION_LOGGIN_TOKEN_FIELD, + FBSDK_SERVER_CONFIGURATION_RESTRICTIVE_PARAMS_FIELD, + FBSDK_SERVER_CONFIGURATION_AAM_RULES_FIELD +#if !TARGET_OS_TV + ,FBSDK_SERVER_CONFIGURATION_EVENT_BINDINGS_FIELD +#endif +#ifdef DEBUG + ,FBSDK_SERVER_CONFIGURATION_UPDATE_MESSAGE_FIELD +#endif +#if TARGET_OS_TV + ,FBSDK_SERVER_CONFIGURATION_SMART_LOGIN_OPTIONS_FIELD, + FBSDK_SERVER_CONFIGURATION_SMART_LOGIN_BOOKMARK_ICON_URL_FIELD, + FBSDK_SERVER_CONFIGURATION_SMART_LOGIN_MENU_ICON_URL_FIELD +#endif + ]; + NSDictionary *parameters = @{ @"fields": [fields componentsJoinedByString:@","]}; + + FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc] initWithGraphPath:appID + parameters:parameters + tokenString:nil + HTTPMethod:nil + flags:FBSDKGraphRequestFlagSkipClientToken | FBSDKGraphRequestFlagDisableErrorRecovery]; + return request; +} + +#pragma mark - Helper Class Methods + ++ (FBSDKServerConfiguration *)_defaultServerConfigurationForAppID:(NSString *)appID +{ + // Use a default configuration while we do not have a configuration back from the server. This allows us to set + // the default values for any of the dialog sets or anything else in a centralized location while we are waiting for + // the server to respond. + static FBSDKServerConfiguration *_defaultServerConfiguration = nil; + if (![_defaultServerConfiguration.appID isEqualToString:appID]) { + // Bypass the native dialog flow for iOS 9+, as it produces a series of additional confirmation dialogs that lead to + // extra friction that is not desirable. + NSOperatingSystemVersion iOS9Version = { .majorVersion = 9, .minorVersion = 0, .patchVersion = 0 }; + BOOL useNativeFlow = ![FBSDKInternalUtility isOSRunTimeVersionAtLeast:iOS9Version]; + // Also enable SFSafariViewController by default. + NSDictionary *dialogFlows = @{ + FBSDKDialogConfigurationNameDefault: @{ + FBSDKDialogConfigurationFeatureUseNativeFlow: @(useNativeFlow), + FBSDKDialogConfigurationFeatureUseSafariViewController: @YES, + }, + FBSDKDialogConfigurationNameMessage: @{ + FBSDKDialogConfigurationFeatureUseNativeFlow: @YES, + }, + }; + _defaultServerConfiguration = [[FBSDKServerConfiguration alloc] initWithAppID:appID + appName:nil + loginTooltipEnabled:NO + loginTooltipText:nil + defaultShareMode:nil + advertisingIDEnabled:NO + implicitLoggingEnabled:NO + implicitPurchaseLoggingEnabled:NO + codelessEventsEnabled:NO + systemAuthenticationEnabled:NO + nativeAuthFlowEnabled:NO + uninstallTrackingEnabled:NO + dialogConfigurations:nil + dialogFlows:dialogFlows + timestamp:nil + errorConfiguration:nil + sessionTimeoutInterval:DEFAULT_SESSION_TIMEOUT_INTERVAL + defaults:YES + loggingToken:nil + smartLoginOptions:FBSDKServerConfigurationSmartLoginOptionsUnknown + smartLoginBookmarkIconURL:nil + smartLoginMenuIconURL:nil + updateMessage:nil + eventBindings:nil + restrictiveParams:nil + AAMRules:nil + ]; + } + return _defaultServerConfiguration; +} + ++ (void)_didProcessConfigurationFromNetwork:(FBSDKServerConfiguration *)serverConfiguration + appID:(NSString *)appID + error:(NSError *)error +{ + NSMutableArray *completionBlocks = [[NSMutableArray alloc] init]; + @synchronized(self) { + if (error) { + // Only set the error if we don't have previously fetched app settings. + // (i.e., if we have app settings and a new call gets an error, we'll + // ignore the error and surface the last successfully fetched settings). + if (_serverConfiguration && [_serverConfiguration.appID isEqualToString:appID]) { + // We have older app settings but the refresh received an error. + // Log and ignore the error. + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorInformational + formatString:@"loadServerConfigurationWithCompletionBlock failed with %@", error]; + } else { + _serverConfiguration = nil; + } + _serverConfigurationError = error; + _serverConfigurationErrorTimestamp = [NSDate date]; + } else { + _serverConfiguration = serverConfiguration; + _serverConfigurationError = nil; + _serverConfigurationErrorTimestamp = nil; + +#ifdef DEBUG + NSString *updateMessage = _serverConfiguration.updateMessage; + if (updateMessage && updateMessage.length > 0 && !_printedUpdateMessage) { + _printedUpdateMessage = YES; + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorInformational logEntry:updateMessage]; + } +#endif + + if (!_printedUpdateMessage) { + _printedUpdateMessage = _printedUpdateMessage; + } + } + + // update the cached copy in NSUserDefaults + NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; + NSString *defaultsKey = [NSString stringWithFormat:FBSDK_SERVER_CONFIGURATION_USER_DEFAULTS_KEY, appID]; + if (serverConfiguration) { + NSData *data = [NSKeyedArchiver archivedDataWithRootObject:serverConfiguration]; + [defaults setObject:data forKey:defaultsKey]; + } + + // wrap the completion blocks + for (FBSDKServerConfigurationBlock completionBlock in _completionBlocks) { + [completionBlocks addObject:[self _wrapperBlockForLoadBlock:completionBlock]]; + } + [_completionBlocks removeAllObjects]; + _loadingServerConfiguration = NO; + } + + // release the lock before calling out of this class + for (void (^completionBlock)(void) in completionBlocks) { + completionBlock(); + } +} + ++ (NSDictionary *)_parseDialogConfigurations:(NSDictionary *)dictionary +{ + NSMutableDictionary *dialogConfigurations = [[NSMutableDictionary alloc] init]; + NSArray *dialogConfigurationsArray = [FBSDKTypeUtility arrayValue:dictionary[@"data"]]; + for (id dialogConfiguration in dialogConfigurationsArray) { + NSDictionary *dialogConfigurationDictionary = [FBSDKTypeUtility dictionaryValue:dialogConfiguration]; + if (dialogConfigurationDictionary) { + NSString *name = [FBSDKTypeUtility stringValue:dialogConfigurationDictionary[@"name"]]; + if (name.length) { + NSURL *URL = [FBSDKTypeUtility URLValue:dialogConfigurationDictionary[@"url"]]; + NSArray *appVersions = [FBSDKTypeUtility arrayValue:dialogConfigurationDictionary[@"versions"]]; + dialogConfigurations[name] = [[FBSDKDialogConfiguration alloc] initWithName:name + URL:URL + appVersions:appVersions]; + } + } + } + return dialogConfigurations; +} + ++ (BOOL)_serverConfigurationTimestampIsValid:(NSDate *)timestamp +{ + return ([[NSDate date] timeIntervalSinceDate:timestamp] < FBSDK_SERVER_CONFIGURATION_MANAGER_CACHE_TIMEOUT); +} + ++ (FBSDKCodeBlock)_wrapperBlockForLoadBlock:(FBSDKServerConfigurationBlock)loadBlock +{ + if (!loadBlock) { + return nil; + } + + // create local vars to capture the current values from the ivars to allow this wrapper to be called outside of a lock + FBSDKServerConfiguration *serverConfiguration; + NSError *serverConfigurationError; + @synchronized(self) { + serverConfiguration = _serverConfiguration; + serverConfigurationError = _serverConfigurationError; + } + return ^{ + loadBlock(serverConfiguration, serverConfigurationError); + }; +} + +#pragma mark - Object Lifecycle + +- (instancetype)init +{ + return nil; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKAccessTokenCache.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKAccessTokenCache.h new file mode 100644 index 0000000000000..e1851329361e7 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKAccessTokenCache.h @@ -0,0 +1,28 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import + +#import "FBSDKAccessTokenCaching.h" + +NS_SWIFT_NAME(AccessTokenCache) +@interface FBSDKAccessTokenCache : NSObject + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKAccessTokenCache.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKAccessTokenCache.m new file mode 100644 index 0000000000000..8d1ca028432a9 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKAccessTokenCache.m @@ -0,0 +1,99 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKAccessTokenCache.h" + +#import "FBSDKDynamicFrameworkLoader.h" +#import "FBSDKInternalUtility.h" +#import "FBSDKKeychainStore.h" + +static NSString *const kFBSDKAccessTokenUserDefaultsKey = @"com.facebook.sdk.v4.FBSDKAccessTokenInformationKey"; +static NSString *const kFBSDKAccessTokenKeychainKey = @"com.facebook.sdk.v4.FBSDKAccessTokenInformationKeychainKey"; +static NSString *const kFBSDKAccessTokenUUIDKey = @"tokenUUID"; +static NSString *const kFBSDKAccessTokenEncodedKey = @"tokenEncoded"; + +@implementation FBSDKAccessTokenCache +{ + FBSDKKeychainStore *_keychainStore; +} + +- (instancetype)init +{ + if ((self = [super init])) { + NSString *keyChainServiceIdentifier = [NSString stringWithFormat:@"com.facebook.sdk.tokencache.%@", [NSBundle mainBundle].bundleIdentifier]; + _keychainStore = [[FBSDKKeychainStore alloc] initWithService:keyChainServiceIdentifier accessGroup:nil]; + } + return self; +} + +- (FBSDKAccessToken *)accessToken +{ + NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; + NSString *uuid = [defaults objectForKey:kFBSDKAccessTokenUserDefaultsKey]; + + NSDictionary *dict = [_keychainStore dictionaryForKey:kFBSDKAccessTokenKeychainKey]; + if ([dict[kFBSDKAccessTokenUUIDKey] isKindOfClass:[NSString class]]) { + // there is a bug while running on simulator that the uuid stored in dict can be NSData, + // do a type check to make sure it is NSString + if ([dict[kFBSDKAccessTokenUUIDKey] isEqualToString:uuid]) { + id tokenData = dict[kFBSDKAccessTokenEncodedKey]; + if ([tokenData isKindOfClass:[NSData class]]) { + return [NSKeyedUnarchiver unarchiveObjectWithData:tokenData]; + } + } + } + // if the uuid doesn't match (including if there is no uuid in defaults which means uninstalled case) + // clear the keychain and return nil. + [self clearCache]; + return nil; +} + +- (void)setAccessToken:(FBSDKAccessToken *)token +{ + if (!token) { + [self clearCache]; + return; + } + NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; + NSString *uuid = [defaults objectForKey:kFBSDKAccessTokenUserDefaultsKey]; + if (!uuid) { + uuid = [NSUUID UUID].UUIDString; + [defaults setObject:uuid forKey:kFBSDKAccessTokenUserDefaultsKey]; + [defaults synchronize]; + } + NSData *tokenData = [NSKeyedArchiver archivedDataWithRootObject:token]; + NSDictionary *dict = @{ + kFBSDKAccessTokenUUIDKey : uuid, + kFBSDKAccessTokenEncodedKey : tokenData + }; + + [_keychainStore setDictionary:dict + forKey:kFBSDKAccessTokenKeychainKey + accessibility:[FBSDKDynamicFrameworkLoader loadkSecAttrAccessibleAfterFirstUnlockThisDeviceOnly]]; +} + +- (void)clearCache +{ + [_keychainStore setDictionary:nil + forKey:kFBSDKAccessTokenKeychainKey + accessibility:NULL]; + NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; + [defaults removeObjectForKey:kFBSDKAccessTokenUserDefaultsKey]; + [defaults synchronize]; +} +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKAccessTokenCaching.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKAccessTokenCaching.h new file mode 100644 index 0000000000000..e5595db760e7c --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKAccessTokenCaching.h @@ -0,0 +1,30 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +@class FBSDKAccessToken; + +NS_SWIFT_NAME(AccessTokenCaching) +@protocol FBSDKAccessTokenCaching + +@property (nonatomic, copy) FBSDKAccessToken *accessToken; + +- (void)clearCache; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKAccessTokenExpirer.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKAccessTokenExpirer.h new file mode 100644 index 0000000000000..5b9636d91542a --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKAccessTokenExpirer.h @@ -0,0 +1,24 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_SWIFT_NAME(AccessTokenExpirer) +@interface FBSDKAccessTokenExpirer : NSObject + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKAccessTokenExpirer.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKAccessTokenExpirer.m new file mode 100644 index 0000000000000..05cda6191f49e --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKAccessTokenExpirer.m @@ -0,0 +1,71 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKAccessTokenExpirer.h" + +#import "FBSDKAccessToken.h" +#import "FBSDKApplicationDelegate+Internal.h" +#import "FBSDKInternalUtility.h" + +@implementation FBSDKAccessTokenExpirer +{ + NSTimer *_timer; +} + +- (instancetype)init +{ + if (self = [super init]) { + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_checkAccessTokenExpirationDate) name:FBSDKAccessTokenDidChangeNotification object:nil]; + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_checkAccessTokenExpirationDate) name:FBSDKApplicationDidBecomeActiveNotification object:nil]; + [self _checkAccessTokenExpirationDate]; + } + return self; +} + +- (void)dealloc +{ + [_timer invalidate]; + _timer = nil; + [[NSNotificationCenter defaultCenter] removeObserver:self]; +} + +- (void)_checkAccessTokenExpirationDate +{ + [_timer invalidate]; + _timer = nil; + FBSDKAccessToken *accessToken = FBSDKAccessToken.currentAccessToken; + if (accessToken == nil || accessToken.isExpired) { + return; + } + _timer = [NSTimer scheduledTimerWithTimeInterval:accessToken.expirationDate.timeIntervalSinceNow target:self selector:@selector(_timerDidFire) userInfo:nil repeats:NO]; +} + +- (void)_timerDidFire +{ + FBSDKAccessToken *accessToken = FBSDKAccessToken.currentAccessToken; + NSMutableDictionary *userInfo = [NSMutableDictionary dictionary]; + [FBSDKBasicUtility dictionary:userInfo setObject:accessToken forKey:FBSDKAccessTokenChangeNewKey]; + [FBSDKBasicUtility dictionary:userInfo setObject:accessToken forKey:FBSDKAccessTokenChangeOldKey]; + userInfo[FBSDKAccessTokenDidExpireKey] = @YES; + + [[NSNotificationCenter defaultCenter] postNotificationName:FBSDKAccessTokenDidChangeNotification + object:[FBSDKAccessToken class] + userInfo:userInfo]; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKKeychainStore.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKKeychainStore.h new file mode 100644 index 0000000000000..15fc40b7e3c49 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKKeychainStore.h @@ -0,0 +1,43 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_SWIFT_NAME(KeychainStore) +@interface FBSDKKeychainStore : NSObject + +@property (nonatomic, readonly, copy) NSString *service; +@property (nonatomic, readonly, copy) NSString *accessGroup; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; +- (instancetype)initWithService:(NSString *)service accessGroup:(NSString *)accessGroup NS_DESIGNATED_INITIALIZER; + +- (BOOL)setDictionary:(NSDictionary *)value forKey:(NSString *)key accessibility:(CFTypeRef)accessibility; +- (NSDictionary *)dictionaryForKey:(NSString *)key; + +- (BOOL)setString:(NSString *)value forKey:(NSString *)key accessibility:(CFTypeRef)accessibility; +- (NSString *)stringForKey:(NSString *)key; + +- (BOOL)setData:(NSData *)value forKey:(NSString *)key accessibility:(CFTypeRef)accessibility; +- (NSData *)dataForKey:(NSString *)key; + +// hook for subclasses to override keychain query construction. +- (NSMutableDictionary *)queryForKey:(NSString *)key; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKKeychainStore.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKKeychainStore.m new file mode 100644 index 0000000000000..78bc9d6598e4b --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKKeychainStore.m @@ -0,0 +1,166 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKKeychainStore.h" + +#import "FBSDKDynamicFrameworkLoader.h" +#import "FBSDKLogger.h" +#import "FBSDKSettings.h" + +@implementation FBSDKKeychainStore + +- (instancetype)initWithService:(NSString *)service accessGroup:(NSString *)accessGroup +{ + if ((self = [super init])) { + _service = service ? [service copy] : [NSBundle mainBundle].bundleIdentifier; + _accessGroup = [accessGroup copy]; + NSAssert(_service, @"Keychain must be initialized with service"); + } + + return self; +} + +- (BOOL)setDictionary:(NSDictionary *)value forKey:(NSString *)key accessibility:(CFTypeRef)accessibility +{ + NSData *data = value == nil ? nil : [NSKeyedArchiver archivedDataWithRootObject:value]; + return [self setData:data forKey:key accessibility:accessibility]; +} + +- (NSDictionary *)dictionaryForKey:(NSString *)key +{ + NSData *data = [self dataForKey:key]; + if (!data) { + return nil; + } + + NSDictionary *dict = [NSKeyedUnarchiver unarchiveObjectWithData:data]; + if (![dict isKindOfClass:[NSDictionary class]]) { + return nil; + } + + return dict; +} + +- (BOOL)setString:(NSString *)value forKey:(NSString *)key accessibility:(CFTypeRef)accessibility +{ + NSData *data = [value dataUsingEncoding:NSUTF8StringEncoding]; + return [self setData:data forKey:key accessibility:accessibility]; +} + +- (NSString *)stringForKey:(NSString *)key +{ + NSData *data = [self dataForKey:key]; + if (!data) { + return nil; + } + + return [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]; +} + +- (BOOL)setData:(NSData *)value forKey:(NSString *)key accessibility:(CFTypeRef)accessibility +{ + if (!key) { + return NO; + } + +#if TARGET_OS_SIMULATOR + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorInformational + logEntry:@"Falling back to storing access token in NSUserDefaults because of simulator bug"]; + [[NSUserDefaults standardUserDefaults] setObject:value forKey:key]; + + return [[NSUserDefaults standardUserDefaults] synchronize]; +#else + NSMutableDictionary *query = [self queryForKey:key]; + + OSStatus status; + if (value) { + NSMutableDictionary *attributesToUpdate = [NSMutableDictionary dictionary]; + [attributesToUpdate setObject:value forKey:[FBSDKDynamicFrameworkLoader loadkSecValueData]]; + + status = fbsdkdfl_SecItemUpdate((__bridge CFDictionaryRef)query, (__bridge CFDictionaryRef)attributesToUpdate); + if (status == errSecItemNotFound) { +#if !TARGET_OS_TV + if (@available(macOS 10.9, iOS 8, *)) { + if (accessibility) { + [query setObject:(__bridge id)(accessibility) forKey:[FBSDKDynamicFrameworkLoader loadkSecAttrAccessible]]; + } + } +#endif + [query setObject:value forKey:[FBSDKDynamicFrameworkLoader loadkSecValueData]]; + + status = fbsdkdfl_SecItemAdd((__bridge CFDictionaryRef)query, NULL); + } + } else { + status = fbsdkdfl_SecItemDelete((__bridge CFDictionaryRef)query); + if (status == errSecItemNotFound) { + status = errSecSuccess; + } + } + + return (status == errSecSuccess); +#endif +} + +- (NSData *)dataForKey:(NSString *)key +{ + if (!key) { + return nil; + } + +#if TARGET_OS_SIMULATOR + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorInformational + logEntry:@"Falling back to loading access token from NSUserDefaults because of simulator bug"]; + return [[NSUserDefaults standardUserDefaults] dataForKey:key]; +#else + NSMutableDictionary *query = [self queryForKey:key]; + [query setObject:(id)kCFBooleanTrue forKey:[FBSDKDynamicFrameworkLoader loadkSecReturnData]]; + [query setObject:[FBSDKDynamicFrameworkLoader loadkSecMatchLimitOne] forKey:[FBSDKDynamicFrameworkLoader loadkSecMatchLimit]]; + + CFTypeRef data = nil; + OSStatus status = fbsdkdfl_SecItemCopyMatching((__bridge CFDictionaryRef)query, &data); + if (status != errSecSuccess) { + return nil; + } + + if (!data || CFGetTypeID(data) != CFDataGetTypeID()) { + return nil; + } + + NSData *ret = [NSData dataWithData:(__bridge NSData *)(data)]; + CFRelease(data); + + return ret; +#endif +} + +- (NSMutableDictionary *)queryForKey:(NSString *)key +{ + NSMutableDictionary *query = [NSMutableDictionary dictionary]; + [query setObject:[FBSDKDynamicFrameworkLoader loadkSecClassGenericPassword] forKey:[FBSDKDynamicFrameworkLoader loadkSecClass]]; + [query setObject:_service forKey:[FBSDKDynamicFrameworkLoader loadkSecAttrService]]; + [query setObject:key forKey:[FBSDKDynamicFrameworkLoader loadkSecAttrAccount]]; +#if !TARGET_IPHONE_SIMULATOR + if (_accessGroup) { + [query setObject:_accessGroup forKey:[FBSDKDynamicFrameworkLoader loadkSecAttrAccessGroup]]; + } +#endif + + return query; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKKeychainStoreViaBundleID.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKKeychainStoreViaBundleID.h new file mode 100644 index 0000000000000..85ae2d0796634 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKKeychainStoreViaBundleID.h @@ -0,0 +1,30 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKKeychainStore.h" + +// This is the keychainstore defined in 3.17 that incorrectly used the bundle id as the service id +// and should NOT be used outside of this cache. +NS_SWIFT_NAME(KeychainStoreViaBundleID) +@interface FBSDKKeychainStoreViaBundleID : FBSDKKeychainStore + +// since this subclass represents the old keychainstore behavior, +// the designated initializer is just the `init`. +- (instancetype)init NS_DESIGNATED_INITIALIZER; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKKeychainStoreViaBundleID.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKKeychainStoreViaBundleID.m new file mode 100644 index 0000000000000..6fdc12b340575 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKKeychainStoreViaBundleID.m @@ -0,0 +1,50 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKKeychainStoreViaBundleID.h" + +#import "FBSDKDynamicFrameworkLoader.h" +#import "FBSDKInternalUtility.h" + +@implementation FBSDKKeychainStoreViaBundleID + +- (instancetype)init +{ + return [super initWithService:[NSBundle mainBundle].bundleIdentifier accessGroup:nil]; +} + +- (instancetype)initWithService:(NSString *)service accessGroup:(NSString *)accessGroup +{ + return [self init]; +} + +- (NSMutableDictionary*)queryForKey:(NSString *)key +{ + NSMutableDictionary *query = [NSMutableDictionary dictionary]; + query[(__bridge id)[FBSDKDynamicFrameworkLoader loadkSecClass]] = (__bridge id)([FBSDKDynamicFrameworkLoader loadkSecClassGenericPassword]); + query[(__bridge id)[FBSDKDynamicFrameworkLoader loadkSecAttrService]] = self.service; + query[(__bridge id)[FBSDKDynamicFrameworkLoader loadkSecAttrGeneric]] = key; + +#if !TARGET_IPHONE_SIMULATOR + [FBSDKBasicUtility dictionary:query setObject:self.accessGroup forKey:[FBSDKDynamicFrameworkLoader loadkSecAttrAccessGroup]]; +#endif + + return query; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKButton+Subclass.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKButton+Subclass.h new file mode 100644 index 0000000000000..ccddaba1c9b30 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKButton+Subclass.h @@ -0,0 +1,62 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import + +#import "FBSDKIcon.h" + +NS_SWIFT_NAME(FBButtonImpressionTracking) +@protocol FBSDKButtonImpressionTracking + +@property (nonatomic, readonly, copy) NSDictionary *analyticsParameters; +@property (nonatomic, readonly, copy) NSString *impressionTrackingEventName; +@property (nonatomic, readonly, copy) NSString *impressionTrackingIdentifier; + +@end + +@interface FBSDKButton () + +@property (nonatomic, readonly, getter=isImplicitlyDisabled) BOOL implicitlyDisabled; + +- (void)logTapEventWithEventName:(NSString *)eventName + parameters:(NSDictionary *)parameters; +- (void)checkImplicitlyDisabled; +- (void)configureButton; +- (void)configureWithIcon:(FBSDKIcon *)icon + title:(NSString *)title + backgroundColor:(UIColor *)backgroundColor + highlightedColor:(UIColor *)highlightedColor; +- (void)configureWithIcon:(FBSDKIcon *)icon + title:(NSString *)title + backgroundColor:(UIColor *)backgroundColor + highlightedColor:(UIColor *)highlightedColor + selectedTitle:(NSString *)selectedTitle + selectedIcon:(FBSDKIcon *)selectedIcon + selectedColor:(UIColor *)selectedColor + selectedHighlightedColor:(UIColor *)selectedHighlightedColor; +- (UIColor *)defaultBackgroundColor; +- (UIColor *)defaultDisabledColor; +- (UIFont *)defaultFont; +- (UIColor *)defaultHighlightedColor; +- (FBSDKIcon *)defaultIcon; +- (UIColor *)defaultSelectedColor; +- (CGSize)sizeThatFits:(CGSize)size title:(NSString *)title; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKCloseIcon.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKCloseIcon.h new file mode 100644 index 0000000000000..660b73f8539f3 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKCloseIcon.h @@ -0,0 +1,26 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_SWIFT_NAME(FBCloseIcon) +@interface FBSDKCloseIcon : NSObject + +- (UIImage *)imageWithSize:(CGSize)size; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKCloseIcon.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKCloseIcon.m new file mode 100644 index 0000000000000..93b3ee192cc54 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKCloseIcon.m @@ -0,0 +1,87 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKCloseIcon.h" + +@implementation FBSDKCloseIcon + +#pragma mark - Public API + +- (UIImage *)imageWithSize:(CGSize)size +{ + CGFloat scale = [UIScreen mainScreen].scale; + UIGraphicsBeginImageContextWithOptions(size, NO, scale); + CGContextRef context = UIGraphicsGetCurrentContext(); + + CGFloat iconSize = MIN(size.width, size.height); + + CGRect rect = CGRectMake((size.width - iconSize) / 2, (size.height - iconSize) / 2, iconSize, iconSize); + CGFloat step = iconSize / 12; + + // shadow + rect = CGRectIntegral(CGRectInset(rect, step, step)); + NSArray *colors = @[ + (__bridge id)[UIColor colorWithWhite:0.0 alpha:0.7].CGColor, + (__bridge id)[UIColor colorWithWhite:0.0 alpha:0.3].CGColor, + (__bridge id)[UIColor colorWithWhite:0.0 alpha:0.1].CGColor, + (__bridge id)[UIColor colorWithWhite:0.0 alpha:0.0].CGColor, + ]; + CGFloat locations[4] = { + 0.70, + 0.80, + 0.90, + 1.0, + }; + CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceGray(); + CGGradientRef gradient = CGGradientCreateWithColors(colorSpace, (__bridge CFArrayRef)colors, locations); + CGColorSpaceRelease(colorSpace); + CGPoint center = CGPointMake(CGRectGetMidX(rect) - step / 6, CGRectGetMidY(rect) + step / 4); + CGContextDrawRadialGradient(context, gradient, center, 0.0, center, (CGRectGetWidth(rect) - step / 2) / 2, 0); + CGGradientRelease(gradient); + + // outer circle + rect = CGRectIntegral(CGRectInset(rect, step, step)); + [[UIColor whiteColor] setFill]; + CGContextFillEllipseInRect(context, rect); + + // inner circle + rect = CGRectIntegral(CGRectInset(rect, step, step)); + [[UIColor blackColor] setFill]; + CGContextFillEllipseInRect(context, rect); + + // cross + rect = CGRectIntegral(CGRectInset(rect, step, step)); + CGFloat lineWidth = step * 5 / 4; + rect.origin.y = CGRectGetMidY(rect) - lineWidth / 2; + rect.size.height = lineWidth; + [[UIColor whiteColor] setFill]; + CGContextTranslateCTM(context, size.width / 2, size.height / 2); + CGContextRotateCTM(context, M_PI_4); + CGContextTranslateCTM(context, -size.width / 2, -size.height / 2); + CGContextFillRect(context, rect); + CGContextTranslateCTM(context, size.width / 2, size.height / 2); + CGContextRotateCTM(context, M_PI_2); + CGContextTranslateCTM(context, -size.width / 2, -size.height / 2); + CGContextFillRect(context, rect); + + UIImage *image = UIGraphicsGetImageFromCurrentImageContext(); + UIGraphicsEndImageContext(); + return image; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKColor.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKColor.h new file mode 100644 index 0000000000000..54825b60754dd --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKColor.h @@ -0,0 +1,22 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +UIColor *FBSDKUIColorWithRGBA(uint8_t r, uint8_t g, uint8_t b, CGFloat a); +UIColor *FBSDKUIColorWithRGB(uint8_t r, uint8_t g, uint8_t b); diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKColor.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKColor.m new file mode 100644 index 0000000000000..71b3d80e88af3 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKColor.m @@ -0,0 +1,31 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKColor.h" + +static const CGFloat kFBRGBMax = 255.0; + +UIColor *FBSDKUIColorWithRGBA(uint8_t r, uint8_t g, uint8_t b, CGFloat a) +{ + return [UIColor colorWithRed:(r / kFBRGBMax) green:(g / kFBRGBMax) blue:(b / kFBRGBMax) alpha:a]; +} + +UIColor *FBSDKUIColorWithRGB(uint8_t r, uint8_t g, uint8_t b) +{ + return FBSDKUIColorWithRGBA(r, g, b, 1.0); +} diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKIcon.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKIcon.h new file mode 100644 index 0000000000000..ca78c86442cb1 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKIcon.h @@ -0,0 +1,32 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_SWIFT_NAME(Icon) +@interface FBSDKIcon : NSObject + +- (instancetype)initWithColor:(UIColor *)color NS_DESIGNATED_INITIALIZER; + +@property (nonatomic, strong, readonly) UIColor *color; + +- (UIImage *)imageWithSize:(CGSize)size; + +- (CGPathRef)pathWithSize:(CGSize)size; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKIcon.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKIcon.m new file mode 100644 index 0000000000000..b46a8d6c1b0ea --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKIcon.m @@ -0,0 +1,62 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKIcon.h" + +@implementation FBSDKIcon + +#pragma mark - Object Lifecycle + +- (instancetype)initWithColor:(UIColor *)color +{ + if ((self = [super init])) { + _color = [color copy]; + } + return self; +} + +- (instancetype)init +{ + return [self initWithColor:[UIColor whiteColor]]; +} + +#pragma mark - Public API + +- (UIImage *)imageWithSize:(CGSize)size +{ + if ((size.width == 0) || (size.height == 0)) { + return nil; + } + CGFloat scale = [UIScreen mainScreen].scale; + UIGraphicsBeginImageContextWithOptions(size, NO, scale); + CGContextRef context = UIGraphicsGetCurrentContext(); + CGPathRef path = [self pathWithSize:size]; + CGContextAddPath(context, path); + CGContextSetFillColorWithColor(context, self.color.CGColor); + CGContextFillPath(context); + UIImage *image = UIGraphicsGetImageFromCurrentImageContext(); + UIGraphicsEndImageContext(); + return image; +} + +- (CGPathRef)pathWithSize:(CGSize)size +{ + return NULL; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKLogo.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKLogo.h new file mode 100644 index 0000000000000..b7432a690e0fa --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKLogo.h @@ -0,0 +1,26 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import "FBSDKIcon.h" + +NS_SWIFT_NAME(FBLogo) +@interface FBSDKLogo : FBSDKIcon + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKLogo.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKLogo.m new file mode 100644 index 0000000000000..f13364f061dfc --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKLogo.m @@ -0,0 +1,71 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKLogo.h" + +@implementation FBSDKLogo + +- (CGPathRef)pathWithSize:(CGSize)size +{ + CGFloat originalCanvasWidth = 1366; + CGFloat originalCanvasHeight = 1366; + + CGAffineTransform transformValue = CGAffineTransformMakeScale(size.width / originalCanvasWidth, size.height / originalCanvasHeight); + + UIBezierPath* path = [UIBezierPath bezierPath]; + [path moveToPoint: CGPointMake(1365.33, 682.67)]; + [path addCurveToPoint: CGPointMake(682.67, -0) + controlPoint1: CGPointMake(1365.33, 305.64) + controlPoint2: CGPointMake(1059.69, -0)]; + [path addCurveToPoint: CGPointMake(0, 682.67) + controlPoint1: CGPointMake(305.64, -0) + controlPoint2: CGPointMake(0, 305.64)]; + [path addCurveToPoint: CGPointMake(576, 1357.04) + controlPoint1: CGPointMake(0, 1023.41) + controlPoint2: CGPointMake(249.64, 1305.83)]; + [path addLineToPoint: CGPointMake(576, 880)]; + [path addLineToPoint: CGPointMake(402.67, 880)]; + [path addLineToPoint: CGPointMake(402.67, 682.67)]; + [path addLineToPoint: CGPointMake(576, 682.67)]; + [path addLineToPoint: CGPointMake(576, 532.27)]; + [path addCurveToPoint: CGPointMake(833.85, 266.67) + controlPoint1: CGPointMake(576, 361.17) + controlPoint2: CGPointMake(677.92, 266.67)]; + [path addCurveToPoint: CGPointMake(986.67, 280) + controlPoint1: CGPointMake(908.54, 266.67) + controlPoint2: CGPointMake(986.67, 280)]; + [path addLineToPoint: CGPointMake(986.67, 448)]; + [path addLineToPoint: CGPointMake(900.58, 448)]; + [path addCurveToPoint: CGPointMake(789.33, 554.61) + controlPoint1: CGPointMake(815.78, 448) + controlPoint2: CGPointMake(789.33, 500.62)]; + [path addLineToPoint: CGPointMake(789.33, 682.67)]; + [path addLineToPoint: CGPointMake(978.67, 682.67)]; + [path addLineToPoint: CGPointMake(948.4, 880)]; + [path addLineToPoint: CGPointMake(789.33, 880)]; + [path addLineToPoint: CGPointMake(789.33, 1357.04)]; + [path addCurveToPoint: CGPointMake(1365.33, 682.67) + controlPoint1: CGPointMake(1115.69, 1305.83) + controlPoint2: CGPointMake(1365.33, 1023.41)]; + [path closePath]; + [path applyTransform:transformValue]; + + return [path CGPath]; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKMaleSilhouetteIcon.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKMaleSilhouetteIcon.h new file mode 100644 index 0000000000000..2dbea5e7cbc92 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKMaleSilhouetteIcon.h @@ -0,0 +1,26 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import "FBSDKIcon.h" + +NS_SWIFT_NAME(FBMaleSilhouetteIcon) +@interface FBSDKMaleSilhouetteIcon : FBSDKIcon + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKMaleSilhouetteIcon.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKMaleSilhouetteIcon.m new file mode 100644 index 0000000000000..6e0e1ede846b8 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKMaleSilhouetteIcon.m @@ -0,0 +1,51 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKMaleSilhouetteIcon.h" + +@implementation FBSDKMaleSilhouetteIcon + +- (CGPathRef)pathWithSize:(CGSize)size +{ + CGAffineTransform transformValue = CGAffineTransformMakeScale(size.width / 158.783, size.height / 158.783); + CGAffineTransform *transform = &transformValue; + CGMutablePathRef path = CGPathCreateMutable(); + CGPathMoveToPoint(path, transform, 158.783, 158.783); + CGPathAddCurveToPoint(path, transform, 156.39, 131.441, 144.912, 136.964, 105.607, 117.32); + CGPathAddCurveToPoint(path, transform, 103.811, 113.941, 103.348, 108.8965, 103.013, 107.4781); + CGPathAddLineToPoint(path, transform, 100.434, 106.7803); + CGPathAddCurveToPoint(path, transform, 97.2363, 82.7701, 100.67, 101.5845, 106.006, 75.2188); + CGPathAddCurveToPoint(path, transform, 107.949, 76.2959, 108.268, 70.7417, 108.971, 66.5743); + CGPathAddCurveToPoint(path, transform, 109.673, 62.4068, 110.864, 58.9082, 107.139, 58.9082); + CGPathAddCurveToPoint(path, transform, 107.94, 42.7652, 110.299, 31.3848, 101.335, 23.3072); + CGPathAddCurveToPoint(path, transform, 92.3808, 15.23781, 87.874, 15.52349, 95.0483, 9.6036128); + CGPathAddCurveToPoint(path, transform, 91.2319, 8.892613, 70.2036, 12.01861, 57.4487, 23.3072); + CGPathAddCurveToPoint(path, transform, 48.4121, 31.3042, 50.8437, 42.7652, 51.6445, 58.9082); + CGPathAddCurveToPoint(path, transform, 47.9194, 58.9082, 49.1108, 62.4068, 49.813, 66.5743); + CGPathAddCurveToPoint(path, transform, 50.5156, 70.7417, 50.8349, 76.2959, 52.7778, 75.2188); + CGPathAddCurveToPoint(path, transform, 58.1138, 110.1135, 61.5478, 82.7701, 58.3501, 106.7803); + CGPathAddLineToPoint(path, transform, 55.7705, 107.4781); + CGPathAddCurveToPoint(path, transform, 55.4355, 108.8965, 54.9722, 113.941, 53.1767, 117.32); + CGPathAddCurveToPoint(path, transform, 13.8711, 136.964, 2.3945, 131.441, 0.0, 158.783); + CGPathAddLineToPoint(path, transform, 158.783, 158.783); + CGPathRef result = CGPathCreateCopy(path); + CGPathRelease(path); + return CFAutorelease(result); +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKUIUtility.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKUIUtility.h new file mode 100644 index 0000000000000..dfa023356c651 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKUIUtility.h @@ -0,0 +1,77 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +/** + Insets a CGSize with the insets in a UIEdgeInsets. + */ +static inline CGSize FBSDKEdgeInsetsInsetSize(CGSize size, UIEdgeInsets insets) +{ + CGRect rect = CGRectZero; + rect.size = size; + return UIEdgeInsetsInsetRect(rect, insets).size; +} + +/** + Outsets a CGSize with the insets in a UIEdgeInsets. + */ +static inline CGSize FBSDKEdgeInsetsOutsetSize(CGSize size, UIEdgeInsets insets) +{ + return CGSizeMake(insets.left + size.width + insets.right, + insets.top + size.height + insets.bottom); +} + +/** + Limits a CGFloat value, using the scale to limit to pixels (instead of points). + + + The limitFunction is frequention floorf, ceilf or roundf. If the scale is 2.0, + you may get back values of *.5 to correspond to pixels. + */ +typedef float (*FBSDKLimitFunctionType)(float); +static inline CGFloat FBSDKPointsForScreenPixels(FBSDKLimitFunctionType limitFunction, + CGFloat screenScale, + CGFloat pointValue) +{ + return limitFunction(pointValue * screenScale) / screenScale; +} + +static inline CGSize FBSDKTextSize(NSString *text, + UIFont *font, + CGSize constrainedSize, + NSLineBreakMode lineBreakMode) +{ + if (!text) { + return CGSizeZero; + } + + NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init]; + paragraphStyle.lineBreakMode = lineBreakMode; + NSDictionary *attributes = @{ + NSFontAttributeName: font, + NSParagraphStyleAttributeName: paragraphStyle, + }; + NSAttributedString *attributedString = [[NSAttributedString alloc] initWithString:text attributes:attributes]; + CGSize size = [attributedString boundingRectWithSize:constrainedSize + options:(NSStringDrawingUsesDeviceMetrics | + NSStringDrawingUsesLineFragmentOrigin | + NSStringDrawingUsesFontLeading) + context:NULL].size; + return CGSizeMake(ceilf(size.width), ceilf(size.height)); +} diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKViewImpressionTracker.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKViewImpressionTracker.h new file mode 100644 index 0000000000000..d69ee86af047a --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKViewImpressionTracker.h @@ -0,0 +1,30 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_SWIFT_NAME(ViewImpressionTracker) +@interface FBSDKViewImpressionTracker : NSObject + ++ (instancetype)impressionTrackerWithEventName:(NSString *)eventName; + +@property (nonatomic, copy, readonly) NSString *eventName; + +- (void)logImpressionWithIdentifier:(NSString *)identifier parameters:(NSDictionary *)parameters; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKViewImpressionTracker.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKViewImpressionTracker.m new file mode 100644 index 0000000000000..f20f584443a5b --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKViewImpressionTracker.m @@ -0,0 +1,97 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKViewImpressionTracker.h" + +#import "FBSDKAccessToken.h" +#import "FBSDKAppEvents+Internal.h" + +@implementation FBSDKViewImpressionTracker +{ + NSMutableSet *_trackedImpressions; +} + +#pragma mark - Class Methods + ++ (instancetype)impressionTrackerWithEventName:(NSString *)eventName +{ + static NSMutableDictionary *_impressionTrackers = nil; + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + _impressionTrackers = [[NSMutableDictionary alloc] init]; + }); + // Maintains a single instance of an impression tracker for each event name + FBSDKViewImpressionTracker *impressionTracker = _impressionTrackers[eventName]; + if (!impressionTracker) { + impressionTracker = [[self alloc] initWithEventName:eventName]; + _impressionTrackers[eventName] = impressionTracker; + } + return impressionTracker; +} + +#pragma mark - Object Lifecycle + +- (instancetype)initWithEventName:(NSString *)eventName +{ + if ((self = [super init])) { + _eventName = [eventName copy]; + _trackedImpressions = [[NSMutableSet alloc] init]; + + [[NSNotificationCenter defaultCenter] addObserver:self + selector:@selector(_applicationDidEnterBackgroundNotification:) + name:UIApplicationDidEnterBackgroundNotification + object:[UIApplication sharedApplication]]; + } + return self; +} + +- (void)dealloc +{ + [[NSNotificationCenter defaultCenter] removeObserver:self]; +} + +#pragma mark - Public API + +- (void)logImpressionWithIdentifier:(NSString *)identifier parameters:(NSDictionary *)parameters +{ + NSMutableDictionary *keys = [NSMutableDictionary dictionary]; + keys[@"__view_impression_identifier__"] = identifier; + [keys addEntriesFromDictionary:parameters]; + NSDictionary *impressionKey = [keys copy]; + // Ensure that each impression is only tracked once + if ([_trackedImpressions containsObject:impressionKey]) { + return; + } + [_trackedImpressions addObject:impressionKey]; + + [FBSDKAppEvents logInternalEvent:self.eventName + parameters:parameters + isImplicitlyLogged:YES + accessToken:[FBSDKAccessToken currentAccessToken]]; +} + +#pragma mark - Helper Methods + +- (void)_applicationDidEnterBackgroundNotification:(NSNotification *)notification +{ + // reset all tracked impressions when the app backgrounds so we will start tracking them again the next time they + // are triggered. + [_trackedImpressions removeAllObjects]; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/WebDialog/FBSDKWebDialog.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/WebDialog/FBSDKWebDialog.h new file mode 100644 index 0000000000000..6775276c0262a --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/WebDialog/FBSDKWebDialog.h @@ -0,0 +1,47 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_SWIFT_NAME(WebDialogDelegate) +@protocol FBSDKWebDialogDelegate; + +NS_SWIFT_NAME(WebDialog) +@interface FBSDKWebDialog : NSObject + ++ (instancetype)showWithName:(NSString *)name + parameters:(NSDictionary *)parameters + delegate:(id)delegate; + +@property (nonatomic, assign, getter=shouldDeferVisibility) BOOL deferVisibility; +@property (nonatomic, weak) id delegate; +@property (nonatomic, copy) NSString *name; +@property (nonatomic, copy) NSDictionary *parameters; + +- (BOOL)show; + +@end + +NS_SWIFT_NAME(WebDialogDelegate) +@protocol FBSDKWebDialogDelegate + +- (void)webDialog:(FBSDKWebDialog *)webDialog didCompleteWithResults:(NSDictionary *)results; +- (void)webDialog:(FBSDKWebDialog *)webDialog didFailWithError:(NSError *)error; +- (void)webDialogDidCancel:(FBSDKWebDialog *)webDialog; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/WebDialog/FBSDKWebDialog.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/WebDialog/FBSDKWebDialog.m new file mode 100644 index 0000000000000..aec996b5bafe6 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/WebDialog/FBSDKWebDialog.m @@ -0,0 +1,344 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKWebDialog.h" + +#import "FBSDKAccessToken.h" +#import "FBSDKDynamicFrameworkLoader.h" +#import "FBSDKInternalUtility.h" +#import "FBSDKLogger.h" +#import "FBSDKSettings.h" +#import "FBSDKTypeUtility.h" +#import "FBSDKWebDialogView.h" + +#define FBSDK_WEB_DIALOG_SHOW_ANIMATION_DURATION 0.2 +#define FBSDK_WEB_DIALOG_DISMISS_ANIMATION_DURATION 0.3 + +typedef void (^FBSDKBoolBlock)(BOOL finished); + +static FBSDKWebDialog *g_currentDialog = nil; + +@interface FBSDKWebDialog () +@end + +@implementation FBSDKWebDialog +{ + UIView *_backgroundView; + FBSDKWebDialogView *_dialogView; +} + +#pragma mark - Class Methods + ++ (instancetype)showWithName:(NSString *)name + parameters:(NSDictionary *)parameters + delegate:(id)delegate +{ + FBSDKWebDialog *dialog = [[self alloc] init]; + dialog.name = name; + dialog.parameters = parameters; + dialog.delegate = delegate; + [dialog show]; + return dialog; +} + +#pragma mark - Object Lifecycle + +- (void)dealloc +{ + [[NSNotificationCenter defaultCenter] removeObserver:self]; + _dialogView.delegate = nil; + [_dialogView removeFromSuperview]; + [_backgroundView removeFromSuperview]; +} + +#pragma mark - Public Methods + +- (BOOL)show +{ + if (g_currentDialog == self) { + return NO; + } + [g_currentDialog _dismissAnimated:YES]; + + NSError *error; + NSURL *URL = [self _generateURL:&error]; + if (!URL) { + [self _failWithError:error]; + return NO; + } + + g_currentDialog = self; + + UIWindow *window = [FBSDKInternalUtility findWindow]; + if (!window) { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors + formatString:@"There are no valid ViewController to present FBSDKWebDialog", nil]; + [self _failWithError:nil]; + return NO; + } + + CGRect frame = [self _applicationFrameForOrientation]; + _dialogView = [[FBSDKWebDialogView alloc] initWithFrame:frame]; + + _dialogView.delegate = self; + [_dialogView loadURL:URL]; + + if (!_deferVisibility) { + [self _showWebView]; + } + + return YES; +} + +#pragma mark - FBSDKWebDialogViewDelegate + +- (void)webDialogView:(FBSDKWebDialogView *)webDialogView didCompleteWithResults:(NSDictionary *)results +{ + [self _completeWithResults:results]; +} + +- (void)webDialogView:(FBSDKWebDialogView *)webDialogView didFailWithError:(NSError *)error +{ + [self _failWithError:error]; +} + +- (void)webDialogViewDidCancel:(FBSDKWebDialogView *)webDialogView +{ + [self _cancel]; +} + +- (void)webDialogViewDidFinishLoad:(FBSDKWebDialogView *)webDialogView +{ + if (_deferVisibility) { + dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.05 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ + if (self->_dialogView) { + [self _showWebView]; + } + }); + } +} + +#pragma mark - Notifications + +- (void)_addObservers +{ + NSNotificationCenter *nc = [NSNotificationCenter defaultCenter]; + [nc addObserver:self + selector:@selector(_deviceOrientationDidChangeNotification:) + name:UIDeviceOrientationDidChangeNotification + object:nil]; +} + +- (void)_deviceOrientationDidChangeNotification:(NSNotification *)notification +{ + BOOL animated = [FBSDKTypeUtility boolValue:notification.userInfo[@"UIDeviceOrientationRotateAnimatedUserInfoKey"]]; + Class CATransactionClass = fbsdkdfl_CATransactionClass(); + CFTimeInterval animationDuration = (animated ? [CATransactionClass animationDuration] : 0.0); + [self _updateViewsWithScale:1.0 alpha:1.0 animationDuration:animationDuration completion:^(BOOL finished) { + if (finished) { + [self->_dialogView setNeedsDisplay]; + } + }]; +} + +- (void)_removeObservers +{ + NSNotificationCenter *nc = [NSNotificationCenter defaultCenter]; + [nc removeObserver:self name:UIDeviceOrientationDidChangeNotification object:nil]; +} + +#pragma mark - Helper Methods + +- (void)_cancel +{ + FBSDKWebDialog *dialog = self; + [self _dismissAnimated:YES]; // may cause the receiver to be released + [_delegate webDialogDidCancel:dialog]; +} + +- (void)_completeWithResults:(NSDictionary *)results +{ + FBSDKWebDialog *dialog = self; + [self _dismissAnimated:YES]; // may cause the receiver to be released + [_delegate webDialog:dialog didCompleteWithResults:results]; +} + +- (void)_dismissAnimated:(BOOL)animated +{ + [self _removeObservers]; + UIView *backgroundView = _backgroundView; + _backgroundView = nil; + FBSDKWebDialogView *dialogView = _dialogView; + _dialogView.delegate = nil; + _dialogView = nil; + void(^didDismiss)(BOOL) = ^(BOOL finished){ + [backgroundView removeFromSuperview]; + [dialogView removeFromSuperview]; + }; + if (animated) { + [UIView animateWithDuration:FBSDK_WEB_DIALOG_DISMISS_ANIMATION_DURATION animations:^{ + dialogView.alpha = 0.0; + backgroundView.alpha = 0.0; + } completion:didDismiss]; + } else { + didDismiss(YES); + } + if (g_currentDialog == self) { + g_currentDialog = nil; + } +} + +- (void)_failWithError:(NSError *)error +{ + // defer so that the consumer is guaranteed to have an opportunity to set the delegate before we fail + dispatch_async(dispatch_get_main_queue(), ^{ + [self _dismissAnimated:YES]; + [self->_delegate webDialog:self didFailWithError:error]; + }); +} + +- (NSURL *)_generateURL:(NSError **)errorRef +{ + NSMutableDictionary *parameters = [[NSMutableDictionary alloc] init]; + parameters[@"display"] = @"touch"; + parameters[@"sdk"] = [NSString stringWithFormat:@"ios-%@", [FBSDKSettings sdkVersion]]; + parameters[@"redirect_uri"] = @"fbconnect://success"; + [FBSDKBasicUtility dictionary:parameters setObject:[FBSDKSettings appID] forKey:@"app_id"]; + [FBSDKBasicUtility dictionary:parameters + setObject:[FBSDKAccessToken currentAccessToken].tokenString + forKey:@"access_token"]; + [parameters addEntriesFromDictionary:self.parameters]; + return [FBSDKInternalUtility facebookURLWithHostPrefix:@"m" + path:[@"/dialog/" stringByAppendingString:self.name] + queryParameters:parameters + error:errorRef]; +} + +- (BOOL)_showWebView +{ + UIWindow *window = [FBSDKInternalUtility findWindow]; + if (!window) { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors + formatString:@"There are no valid ViewController to present FBSDKWebDialog", nil]; + [self _failWithError:nil]; + return NO; + } + + [self _addObservers]; + + _backgroundView = [[UIView alloc] initWithFrame:window.bounds]; + _backgroundView.alpha = 0.0; + _backgroundView.autoresizingMask = (UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight); + _backgroundView.backgroundColor = [UIColor colorWithWhite:0.3 alpha:0.8]; + [window addSubview:_backgroundView]; + [window addSubview:_dialogView]; + + [_dialogView becomeFirstResponder]; // dismisses the keyboard if it there was another first responder with it + [self _updateViewsWithScale:0.001 alpha:0.0 animationDuration:0.0 completion:NULL]; + [self _updateViewsWithScale:1.1 alpha:1.0 animationDuration:FBSDK_WEB_DIALOG_SHOW_ANIMATION_DURATION completion:^(BOOL finished1) { + [self _updateViewsWithScale:0.9 alpha:1.0 animationDuration:FBSDK_WEB_DIALOG_SHOW_ANIMATION_DURATION completion:^(BOOL finished2) { + [self _updateViewsWithScale:1.0 alpha:1.0 animationDuration:FBSDK_WEB_DIALOG_SHOW_ANIMATION_DURATION completion:NULL]; + }]; + }]; + return YES; +} + +- (CGAffineTransform)_transformForOrientation +{ + // iOS 8 simply adjusts the application frame to adapt to the current orientation and deprecated the concept of + // interface orientations + if ([FBSDKInternalUtility shouldManuallyAdjustOrientation]) { + switch ([UIApplication sharedApplication].statusBarOrientation) { + case UIInterfaceOrientationLandscapeLeft: + return CGAffineTransformMakeRotation(M_PI * 1.5); + case UIInterfaceOrientationLandscapeRight: + return CGAffineTransformMakeRotation(M_PI/2); + case UIInterfaceOrientationPortraitUpsideDown: + return CGAffineTransformMakeRotation(-M_PI); + case UIInterfaceOrientationPortrait: + case UIInterfaceOrientationUnknown: + // don't adjust the orientation + break; + } + } + return CGAffineTransformIdentity; +} + +- (CGRect)_applicationFrameForOrientation +{ + CGRect applicationFrame = _dialogView.window.screen.bounds; + + UIEdgeInsets insets = UIEdgeInsetsZero; +#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_11_0 + if (@available(iOS 11.0, *)) { + insets = _dialogView.window.safeAreaInsets; + } +#endif + + if (insets.top == 0.0) { + insets.top = [[UIApplication sharedApplication] statusBarFrame].size.height; + } + applicationFrame.origin.x += insets.left; + applicationFrame.origin.y += insets.top; + applicationFrame.size.width -= insets.left + insets.right; + applicationFrame.size.height -= insets.top + insets.bottom; + + if ([FBSDKInternalUtility shouldManuallyAdjustOrientation]) { + switch ([UIApplication sharedApplication].statusBarOrientation) { + case UIInterfaceOrientationLandscapeLeft: + case UIInterfaceOrientationLandscapeRight: + return CGRectMake(0, 0, CGRectGetHeight(applicationFrame), CGRectGetWidth(applicationFrame)); + case UIInterfaceOrientationPortraitUpsideDown: + case UIInterfaceOrientationPortrait: + case UIInterfaceOrientationUnknown: + return applicationFrame; + } + } else { + return applicationFrame; + } +} + +- (void)_updateViewsWithScale:(CGFloat)scale + alpha:(CGFloat)alpha + animationDuration:(CFTimeInterval)animationDuration + completion:(FBSDKBoolBlock)completion +{ + CGAffineTransform transform; + CGRect applicationFrame = [self _applicationFrameForOrientation]; + if (scale == 1.0) { + transform = _dialogView.transform; + _dialogView.transform = CGAffineTransformIdentity; + _dialogView.frame = applicationFrame; + _dialogView.transform = transform; + } + transform = CGAffineTransformScale([self _transformForOrientation], scale, scale); + void(^updateBlock)(void) = ^{ + self->_dialogView.transform = transform; + self->_dialogView.center = CGPointMake(CGRectGetMidX(applicationFrame), + CGRectGetMidY(applicationFrame)); + self->_dialogView.alpha = alpha; + self->_backgroundView.alpha = alpha; + }; + if (animationDuration == 0.0) { + updateBlock(); + } else { + [UIView animateWithDuration:animationDuration animations:updateBlock completion:completion]; + } +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/WebDialog/FBSDKWebDialogView.h b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/WebDialog/FBSDKWebDialogView.h new file mode 100644 index 0000000000000..bcb67eeaf4362 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/WebDialog/FBSDKWebDialogView.h @@ -0,0 +1,41 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +@protocol FBSDKWebDialogViewDelegate; + +NS_SWIFT_NAME(FBWebDialogView) +@interface FBSDKWebDialogView : UIView + +@property (nonatomic, weak) id delegate; + +- (void)loadURL:(NSURL *)URL; +- (void)stopLoading; + +@end + +NS_SWIFT_NAME(WebDialogViewDelegate) +@protocol FBSDKWebDialogViewDelegate + +- (void)webDialogView:(FBSDKWebDialogView *)webDialogView didCompleteWithResults:(NSDictionary *)results; +- (void)webDialogView:(FBSDKWebDialogView *)webDialogView didFailWithError:(NSError *)error; +- (void)webDialogViewDidCancel:(FBSDKWebDialogView *)webDialogView; +- (void)webDialogViewDidFinishLoad:(FBSDKWebDialogView *)webDialogView; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/WebDialog/FBSDKWebDialogView.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/WebDialog/FBSDKWebDialogView.m new file mode 100644 index 0000000000000..ad21e792b5df1 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/WebDialog/FBSDKWebDialogView.m @@ -0,0 +1,195 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKWebDialogView.h" + +#import + +#import "FBSDKCloseIcon.h" +#import "FBSDKError.h" +#import "FBSDKInternalUtility.h" +#import "FBSDKTypeUtility.h" + +#define FBSDK_WEB_DIALOG_VIEW_BORDER_WIDTH 10.0 + +@interface FBSDKWebDialogView () +@end + +@implementation FBSDKWebDialogView +{ + UIButton *_closeButton; + UIActivityIndicatorView *_loadingView; + WKWebView *_webView; +} + +#pragma mark - Object Lifecycle + +- (instancetype)initWithFrame:(CGRect)frame +{ + if ((self = [super initWithFrame:frame])) { + self.backgroundColor = [UIColor clearColor]; + self.opaque = NO; + + _webView = [[WKWebView alloc] initWithFrame:CGRectZero]; + _webView.navigationDelegate = self; + [self addSubview:_webView]; + + _closeButton = [UIButton buttonWithType:UIButtonTypeCustom]; + UIImage *closeImage = [[[FBSDKCloseIcon alloc] init] imageWithSize:CGSizeMake(29.0, 29.0)]; + [_closeButton setImage:closeImage forState:UIControlStateNormal]; + [_closeButton setTitleColor:[UIColor colorWithRed:167.0/255.0 + green:184.0/255.0 + blue:216.0/255.0 + alpha:1.0] forState:UIControlStateNormal]; + [_closeButton setTitleColor:[UIColor whiteColor] forState:UIControlStateHighlighted]; + _closeButton.showsTouchWhenHighlighted = YES; + [_closeButton sizeToFit]; + [self addSubview:_closeButton]; + [_closeButton addTarget:self action:@selector(_close:) forControlEvents:UIControlEventTouchUpInside]; + + _loadingView = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge]; + _loadingView.color = [UIColor grayColor]; + [_webView addSubview:_loadingView]; + } + return self; +} + +- (void)dealloc +{ + _webView.navigationDelegate = nil; +} + +#pragma mark - Public Methods + +- (void)loadURL:(NSURL *)URL +{ + [_loadingView startAnimating]; + [_webView loadRequest:[NSURLRequest requestWithURL:URL]]; +} + +- (void)stopLoading +{ + [_webView stopLoading]; +} + +#pragma mark - Layout + +- (void)drawRect:(CGRect)rect +{ + CGContextRef context = UIGraphicsGetCurrentContext(); + CGContextSaveGState(context); + [self.backgroundColor setFill]; + CGContextFillRect(context, self.bounds); + [[UIColor blackColor] setStroke]; + CGContextSetLineWidth(context, 1.0 / self.layer.contentsScale); + CGContextStrokeRect(context, _webView.frame); + CGContextRestoreGState(context); + [super drawRect:rect]; +} + +- (void)layoutSubviews +{ + [super layoutSubviews]; + + CGRect bounds = self.bounds; + if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { + CGFloat horizontalInset = CGRectGetWidth(bounds) * 0.2; + CGFloat verticalInset = CGRectGetHeight(bounds) * 0.2; + UIEdgeInsets iPadInsets = UIEdgeInsetsMake(verticalInset, horizontalInset, verticalInset, horizontalInset); + bounds = UIEdgeInsetsInsetRect(bounds, iPadInsets); + } + UIEdgeInsets webViewInsets = UIEdgeInsetsMake(FBSDK_WEB_DIALOG_VIEW_BORDER_WIDTH, + FBSDK_WEB_DIALOG_VIEW_BORDER_WIDTH, + FBSDK_WEB_DIALOG_VIEW_BORDER_WIDTH, + FBSDK_WEB_DIALOG_VIEW_BORDER_WIDTH); + _webView.frame = CGRectIntegral(UIEdgeInsetsInsetRect(bounds, webViewInsets)); + + CGRect webViewBounds = _webView.bounds; + _loadingView.center = CGPointMake(CGRectGetMidX(webViewBounds), CGRectGetMidY(webViewBounds)); + + if (CGRectGetHeight(webViewBounds) == 0.0) { + _closeButton.alpha = 0.0; + } else { + _closeButton.alpha = 1.0; + CGRect closeButtonFrame = _closeButton.bounds; + closeButtonFrame.origin = bounds.origin; + _closeButton.frame = CGRectIntegral(closeButtonFrame); + } +} + +#pragma mark - Actions + +- (void)_close:(id)sender +{ + [_delegate webDialogViewDidCancel:self]; +} + +#pragma mark - WKNavigationDelegate + +- (void)webView:(WKWebView *)webView didFailNavigation:(WKNavigation *)navigation withError:(NSError *)error +{ + [_loadingView stopAnimating]; + + // 102 == WebKitErrorFrameLoadInterruptedByPolicyChange + // NSURLErrorCancelled == "Operation could not be completed", note NSURLErrorCancelled occurs when the user clicks + // away before the page has completely loaded, if we find cases where we want this to result in dialog failure + // (usually this just means quick-user), then we should add something more robust here to account for differences in + // application needs + if (!(([error.domain isEqualToString:NSURLErrorDomain] && error.code == NSURLErrorCancelled) || + ([error.domain isEqualToString:@"WebKitErrorDomain"] && error.code == 102))) { + [_delegate webDialogView:self didFailWithError:error]; + } +} + +- (void)webView:(WKWebView *)webView +decidePolicyForNavigationAction:(WKNavigationAction *)navigationAction +decisionHandler:(void (^)(WKNavigationActionPolicy))decisionHandler +{ + NSURL *URL = navigationAction.request.URL; + + if ([URL.scheme isEqualToString:@"fbconnect"]) { + NSMutableDictionary *parameters = [[FBSDKBasicUtility dictionaryWithQueryString:URL.query] mutableCopy]; + [parameters addEntriesFromDictionary:[FBSDKBasicUtility dictionaryWithQueryString:URL.fragment]]; + if ([URL.resourceSpecifier hasPrefix:@"//cancel"]) { + NSInteger errorCode = [FBSDKTypeUtility integerValue:parameters[@"error_code"]]; + if (errorCode) { + NSString *errorMessage = [FBSDKTypeUtility stringValue:parameters[@"error_msg"]]; + NSError *error = [FBSDKError errorWithCode:errorCode message:errorMessage]; + [_delegate webDialogView:self didFailWithError:error]; + } else { + [_delegate webDialogViewDidCancel:self]; + } + } else { + [_delegate webDialogView:self didCompleteWithResults:parameters]; + } + decisionHandler(WKNavigationActionPolicyCancel); + } else if (navigationAction.navigationType == WKNavigationTypeLinkActivated) { + [[UIApplication sharedApplication] openURL:URL]; + decisionHandler(WKNavigationActionPolicyCancel); + } else { + decisionHandler(WKNavigationActionPolicyAllow); + } +} + +- (void)webView:(WKWebView *)webView didFinishNavigation:(WKNavigation *)navigation +{ + [_loadingView stopAnimating]; + [_delegate webDialogViewDidFinishLoad:self]; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal_NoARC/FBSDKDynamicFrameworkLoader.m b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal_NoARC/FBSDKDynamicFrameworkLoader.m new file mode 100644 index 0000000000000..234979dcc67df --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal_NoARC/FBSDKDynamicFrameworkLoader.m @@ -0,0 +1,589 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKDynamicFrameworkLoader.h" + +#import + +#import +#import +#import + +#import "FBSDKLogger.h" +#import "FBSDKSettings.h" + +static NSString *const g_frameworkPathTemplate = @"/System/Library/Frameworks/%@.framework/%@"; + +#pragma mark - Library and Symbol Loading + +struct FBSDKDFLLoadSymbolContext +{ + void *(*library)(void); // function to retrieve the library handle (it's a function instead of void * so it can be staticlly bound) + const char *name; // name of the symbol to retrieve + void **address; // [out] address of the symbol in the process address space +}; + +// Retrieves the handle for a library for framework. The paths for each are constructed +// differently so the loading function passed to dispatch_once() calls this. +static void *fbsdkdfl_load_library_once(const char *path) +{ + void *handle = dlopen(path, RTLD_LAZY); + if (handle) { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorInformational formatString:@"Dynamically loaded library at %s", path]; + } else { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorInformational formatString:@"Failed to load library at %s", path]; + } + return handle; +} + +// Constructs the path for a system framework with the given name and returns the handle for dlsym +static void *fbsdkdfl_load_framework_once(NSString *framework) +{ + NSString *path = [NSString stringWithFormat:g_frameworkPathTemplate, framework, framework]; + return fbsdkdfl_load_library_once(path.fileSystemRepresentation); +} + +// Implements the callback for dispatch_once() that loads the handle for specified framework name +#define _fbsdkdfl_load_framework_once_impl_(FRAMEWORK) \ + static void fbsdkdfl_load_##FRAMEWORK##_once(void *context) { \ + *(void **)context = fbsdkdfl_load_framework_once(@#FRAMEWORK); \ + } + +// Implements the framework/library retrieval function for the given name. +// It calls the loading function once and caches the handle in a local static variable +#define _fbsdkdfl_handle_get_impl_(LIBRARY) \ + static void *fbsdkdfl_handle_get_##LIBRARY(void) { \ + static void *LIBRARY##_handle; \ + static dispatch_once_t LIBRARY##_once; \ + dispatch_once_f(&LIBRARY##_once, &LIBRARY##_handle, &fbsdkdfl_load_##LIBRARY##_once); \ + return LIBRARY##_handle;\ + } + +// Callback from dispatch_once() to load a specific symbol +static void fbsdkdfl_load_symbol_once(void *context) +{ + struct FBSDKDFLLoadSymbolContext *ctx = context; + *ctx->address = dlsym(ctx->library(), ctx->name); +} + +// The boilerplate code for loading a symbol from a given library once and caching it in a static local +#define _fbsdkdfl_symbol_get(LIBRARY, PREFIX, SYMBOL, TYPE, VARIABLE_NAME) \ + static TYPE VARIABLE_NAME; \ + static dispatch_once_t SYMBOL##_once; \ + static struct FBSDKDFLLoadSymbolContext ctx = { .library = &fbsdkdfl_handle_get_##LIBRARY, .name = PREFIX #SYMBOL, .address = (void **)&VARIABLE_NAME }; \ + dispatch_once_f(&SYMBOL##_once, &ctx, &fbsdkdfl_load_symbol_once) + +#define _fbsdkdfl_symbol_get_c(LIBRARY, SYMBOL) _fbsdkdfl_symbol_get(LIBRARY, "OBJC_CLASS_$_", SYMBOL, Class, c) // convenience symbol retrieval macro for getting an Objective-C class symbol and storing it in the local static c +#define _fbsdkdfl_symbol_get_f(LIBRARY, SYMBOL) _fbsdkdfl_symbol_get(LIBRARY, "", SYMBOL, SYMBOL##_type, f) // convenience symbol retrieval macro for getting a function pointer and storing it in the local static f +#define _fbsdkdfl_symbol_get_k(LIBRARY, SYMBOL, TYPE) _fbsdkdfl_symbol_get(LIBRARY, "", SYMBOL, TYPE, k) // convenience symbol retrieval macro for getting a pointer to a named variable and storing it in the local static k + +// convenience macro for verifying a pointer to a named variable was successfully loaded and returns the value +#define _fbsdkdfl_return_k(FRAMEWORK, SYMBOL) \ + NSCAssert(k != NULL, @"Failed to load constant %@ in the %@ framework", @#SYMBOL, @#FRAMEWORK); \ + return *k + +// convenience macro for getting a pointer to a named NSString, verifying it loaded correctly, and returning it +#define _fbsdkdfl_get_and_return_NSString(LIBRARY, SYMBOL) \ + _fbsdkdfl_symbol_get_k(LIBRARY, SYMBOL, NSString **); \ + NSCAssert([*k isKindOfClass:[NSString class]], @"Loaded symbol %@ is not of type NSString *", @#SYMBOL); \ + _fbsdkdfl_return_k(LIBRARY, SYMBOL) + +#pragma mark - Security Framework + +_fbsdkdfl_load_framework_once_impl_(Security) +_fbsdkdfl_handle_get_impl_(Security) + +#pragma mark - Security Constants + +@implementation FBSDKDynamicFrameworkLoader + +#define _fbsdkdfl_Security_get_k(SYMBOL) _fbsdkdfl_symbol_get_k(Security, SYMBOL, CFTypeRef *) + +#define _fbsdkdfl_Security_get_and_return_k(SYMBOL) \ + _fbsdkdfl_Security_get_k(SYMBOL); \ + _fbsdkdfl_return_k(Security, SYMBOL) + ++ (SecRandomRef)loadkSecRandomDefault +{ + _fbsdkdfl_symbol_get_k(Security, kSecRandomDefault, SecRandomRef *); + _fbsdkdfl_return_k(Security, kSecRandomDefault); +} + ++ (CFTypeRef)loadkSecAttrAccessible +{ + _fbsdkdfl_Security_get_and_return_k(kSecAttrAccessible); +} + ++ (CFTypeRef)loadkSecAttrAccessibleAfterFirstUnlockThisDeviceOnly +{ + _fbsdkdfl_Security_get_and_return_k(kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly); +} + ++ (CFTypeRef)loadkSecAttrAccount +{ + _fbsdkdfl_Security_get_and_return_k(kSecAttrAccount); +} + ++ (CFTypeRef)loadkSecAttrService +{ + _fbsdkdfl_Security_get_and_return_k(kSecAttrService); +} + ++ (CFTypeRef)loadkSecAttrGeneric +{ + _fbsdkdfl_Security_get_and_return_k(kSecAttrGeneric); +} + ++ (CFTypeRef)loadkSecValueData +{ + _fbsdkdfl_Security_get_and_return_k(kSecValueData); +} + ++ (CFTypeRef)loadkSecClassGenericPassword +{ + _fbsdkdfl_Security_get_and_return_k(kSecClassGenericPassword); +} + ++ (CFTypeRef)loadkSecAttrAccessGroup +{ + _fbsdkdfl_Security_get_and_return_k(kSecAttrAccessGroup); +} + ++ (CFTypeRef)loadkSecMatchLimitOne +{ + _fbsdkdfl_Security_get_and_return_k(kSecMatchLimitOne); +} + ++ (CFTypeRef)loadkSecMatchLimit +{ + _fbsdkdfl_Security_get_and_return_k(kSecMatchLimit); +} + ++ (CFTypeRef)loadkSecReturnData +{ + _fbsdkdfl_Security_get_and_return_k(kSecReturnData); +} + ++ (CFTypeRef)loadkSecClass +{ + _fbsdkdfl_Security_get_and_return_k(kSecClass); +} + +@end + +#pragma mark - Security APIs + +#define _fbsdkdfl_Security_get_f(SYMBOL) _fbsdkdfl_symbol_get_f(Security, SYMBOL) + +typedef int (*SecRandomCopyBytes_type)(SecRandomRef, size_t, uint8_t *); +typedef OSStatus (*SecItemUpdate_type)(CFDictionaryRef, CFDictionaryRef); +typedef OSStatus (*SecItemAdd_type)(CFDictionaryRef, CFTypeRef); +typedef OSStatus (*SecItemCopyMatching_type)(CFDictionaryRef, CFTypeRef); +typedef OSStatus (*SecItemDelete_type)(CFDictionaryRef); + +int fbsdkdfl_SecRandomCopyBytes(SecRandomRef rnd, size_t count, uint8_t *bytes) +{ + _fbsdkdfl_Security_get_f(SecRandomCopyBytes); + return f(rnd, count, bytes); +} + +OSStatus fbsdkdfl_SecItemUpdate(CFDictionaryRef query, CFDictionaryRef attributesToUpdate) +{ + _fbsdkdfl_Security_get_f(SecItemUpdate); + return f(query, attributesToUpdate); +} + +OSStatus fbsdkdfl_SecItemAdd(CFDictionaryRef attributes, CFTypeRef *result) +{ + _fbsdkdfl_Security_get_f(SecItemAdd); + return f(attributes, result); +} + +OSStatus fbsdkdfl_SecItemCopyMatching(CFDictionaryRef query, CFTypeRef *result) +{ + _fbsdkdfl_Security_get_f(SecItemCopyMatching); + return f(query, result); +} + +OSStatus fbsdkdfl_SecItemDelete(CFDictionaryRef query) +{ + _fbsdkdfl_Security_get_f(SecItemDelete); + return f(query); +} + +#pragma mark - Social Constants + +_fbsdkdfl_load_framework_once_impl_(Social) +_fbsdkdfl_handle_get_impl_(Social) + +#define _fbsdkdfl_Social_get_and_return_constant(SYMBOL) _fbsdkdfl_get_and_return_NSString(Social, SYMBOL) + +NSString *fbsdkdfl_SLServiceTypeFacebook(void) +{ + _fbsdkdfl_Social_get_and_return_constant(SLServiceTypeFacebook); +} + +NSString *fbsdkdfl_SLServiceTypeTwitter(void) +{ + _fbsdkdfl_Social_get_and_return_constant(SLServiceTypeTwitter); +} + +#pragma mark - Social Classes + +#define _fbsdkdfl_Social_get_c(SYMBOL) _fbsdkdfl_symbol_get_c(Social, SYMBOL) + +Class fbsdkdfl_SLComposeViewControllerClass(void) +{ + _fbsdkdfl_Social_get_c(SLComposeViewController); + return c; +} + +#pragma mark - MessageUI Classes + +_fbsdkdfl_load_framework_once_impl_(MessageUI) +_fbsdkdfl_handle_get_impl_(MessageUI) + +#define _fbsdkdfl_MessageUI_get_c(SYMBOL) _fbsdkdfl_symbol_get_c(MessageUI, SYMBOL) + +Class fbsdkdfl_MFMailComposeViewControllerClass(void) +{ + _fbsdkdfl_MessageUI_get_c(MFMailComposeViewController); + return c; +} + +Class fbsdkdfl_MFMessageComposeViewControllerClass(void) +{ + _fbsdkdfl_MessageUI_get_c(MFMessageComposeViewController); + return c; +} + +#pragma mark - QuartzCore Classes + +_fbsdkdfl_load_framework_once_impl_(QuartzCore) +_fbsdkdfl_handle_get_impl_(QuartzCore) + +#define _fbsdkdfl_QuartzCore_get_c(SYMBOL) _fbsdkdfl_symbol_get_c(QuartzCore, SYMBOL); + +Class fbsdkdfl_CATransactionClass(void) +{ + _fbsdkdfl_QuartzCore_get_c(CATransaction); + return c; +} + +#pragma mark - QuartzCore APIs + +#define _fbsdkdfl_QuartzCore_get_f(SYMBOL) _fbsdkdfl_symbol_get_f(QuartzCore, SYMBOL) + +typedef CATransform3D (*CATransform3DMakeScale_type)(CGFloat, CGFloat, CGFloat); +typedef CATransform3D (*CATransform3DMakeTranslation_type)(CGFloat, CGFloat, CGFloat); +typedef CATransform3D (*CATransform3DConcat_type)(CATransform3D, CATransform3D); + +const CATransform3D fbsdkdfl_CATransform3DIdentity = {1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1}; + +CATransform3D fbsdkdfl_CATransform3DMakeScale(CGFloat sx, CGFloat sy, CGFloat sz) +{ + _fbsdkdfl_QuartzCore_get_f(CATransform3DMakeScale); + return f(sx, sy, sz); +} + +CATransform3D fbsdkdfl_CATransform3DMakeTranslation(CGFloat tx, CGFloat ty, CGFloat tz) +{ + _fbsdkdfl_QuartzCore_get_f(CATransform3DMakeTranslation); + return f(tx, ty, tz); +} + +CATransform3D fbsdkdfl_CATransform3DConcat(CATransform3D a, CATransform3D b) +{ + _fbsdkdfl_QuartzCore_get_f(CATransform3DConcat); + return f(a, b); +} + +#pragma mark - AudioToolbox APIs + +_fbsdkdfl_load_framework_once_impl_(AudioToolbox) +_fbsdkdfl_handle_get_impl_(AudioToolbox) + +#define _fbsdkdfl_AudioToolbox_get_f(SYMBOL) _fbsdkdfl_symbol_get_f(AudioToolbox, SYMBOL) + +typedef OSStatus (*AudioServicesCreateSystemSoundID_type)(CFURLRef, SystemSoundID *); +typedef OSStatus (*AudioServicesDisposeSystemSoundID_type)(SystemSoundID); +typedef void (*AudioServicesPlaySystemSound_type)(SystemSoundID); + +OSStatus fbsdkdfl_AudioServicesCreateSystemSoundID(CFURLRef inFileURL, SystemSoundID *outSystemSoundID) +{ + _fbsdkdfl_AudioToolbox_get_f(AudioServicesCreateSystemSoundID); + return f(inFileURL, outSystemSoundID); +} + +OSStatus fbsdkdfl_AudioServicesDisposeSystemSoundID(SystemSoundID inSystemSoundID) +{ + _fbsdkdfl_AudioToolbox_get_f(AudioServicesDisposeSystemSoundID); + return f(inSystemSoundID); +} + +void fbsdkdfl_AudioServicesPlaySystemSound(SystemSoundID inSystemSoundID) +{ + _fbsdkdfl_AudioToolbox_get_f(AudioServicesPlaySystemSound); + return f(inSystemSoundID); +} + +#pragma mark - Ad Support Classes + +_fbsdkdfl_load_framework_once_impl_(AdSupport) +_fbsdkdfl_handle_get_impl_(AdSupport) + +#define _fbsdkdfl_AdSupport_get_c(SYMBOL) _fbsdkdfl_symbol_get_c(AdSupport, SYMBOL); + +Class fbsdkdfl_ASIdentifierManagerClass(void) +{ + _fbsdkdfl_AdSupport_get_c(ASIdentifierManager); + return c; +} + +#pragma mark - Safari Services +_fbsdkdfl_load_framework_once_impl_(SafariServices) +_fbsdkdfl_handle_get_impl_(SafariServices) + +#define _fbsdkdfl_SafariServices_get_c(SYMBOL) _fbsdkdfl_symbol_get_c(SafariServices, SYMBOL); + +Class fbsdkdfl_SFSafariViewControllerClass(void) +{ + _fbsdkdfl_SafariServices_get_c(SFSafariViewController); + return c; +} + +Class fbsdkdfl_SFAuthenticationSessionClass(void) +{ + _fbsdkdfl_SafariServices_get_c(SFAuthenticationSession); + return c; +} + +#pragma mark - Authentication Services +_fbsdkdfl_load_framework_once_impl_(AuthenticationServices) +_fbsdkdfl_handle_get_impl_(AuthenticationServices) + +#define _fbsdkdfl_AuthenticationServices_get_c(SYMBOL) _fbsdkdfl_symbol_get_c(AuthenticationServices, SYMBOL); + +Class fbsdkdfl_ASWebAuthenticationSessionClass(void) +{ + _fbsdkdfl_AuthenticationServices_get_c(ASWebAuthenticationSession); + return c; +} + +#pragma mark - Accounts Constants + +_fbsdkdfl_load_framework_once_impl_(Accounts) +_fbsdkdfl_handle_get_impl_(Accounts) + +#define _fbsdkdfl_Accounts_get_and_return_NSString(SYMBOL) _fbsdkdfl_get_and_return_NSString(Accounts, SYMBOL) + +NSString *fbsdkdfl_ACFacebookAppIdKey(void) +{ + _fbsdkdfl_Accounts_get_and_return_NSString(ACFacebookAppIdKey); +} + +NSString *fbsdkdfl_ACFacebookAudienceEveryone(void) +{ + _fbsdkdfl_Accounts_get_and_return_NSString(ACFacebookAudienceEveryone); +} + +NSString *fbsdkdfl_ACFacebookAudienceFriends(void) +{ + _fbsdkdfl_Accounts_get_and_return_NSString(ACFacebookAudienceFriends); +} + +NSString *fbsdkdfl_ACFacebookAudienceKey(void) +{ + _fbsdkdfl_Accounts_get_and_return_NSString(ACFacebookAudienceKey); +} + +NSString *fbsdkdfl_ACFacebookAudienceOnlyMe(void) +{ + _fbsdkdfl_Accounts_get_and_return_NSString(ACFacebookAudienceOnlyMe); +} + +NSString *fbsdkdfl_ACFacebookPermissionsKey(void) +{ + _fbsdkdfl_Accounts_get_and_return_NSString(ACFacebookPermissionsKey); +} + +#pragma mark - Accounts Classes + +#define _fbsdkdfl_Accounts_get_c(SYMBOL) _fbsdkdfl_symbol_get_c(Accounts, SYMBOL); + +Class fbsdkdfl_ACAccountStoreClass(void) +{ + _fbsdkdfl_Accounts_get_c(ACAccountStore); + return c; +} + +#pragma mark - StoreKit Classes + +_fbsdkdfl_load_framework_once_impl_(StoreKit) +_fbsdkdfl_handle_get_impl_(StoreKit) + +#define _fbsdkdfl_StoreKit_get_c(SYMBOL) _fbsdkdfl_symbol_get_c(StoreKit, SYMBOL); + +Class fbsdkdfl_SKPaymentQueueClass(void) +{ + _fbsdkdfl_StoreKit_get_c(SKPaymentQueue); + return c; +} + +Class fbsdkdfl_SKProductsRequestClass(void) +{ + _fbsdkdfl_StoreKit_get_c(SKProductsRequest); + return c; +} + +#pragma mark - AssetsLibrary Classes + +_fbsdkdfl_load_framework_once_impl_(AssetsLibrary) +_fbsdkdfl_handle_get_impl_(AssetsLibrary) + +#define _fbsdkdfl_AssetsLibrary_get_c(SYMBOL) _fbsdkdfl_symbol_get_c(AssetsLibrary, SYMBOL); + +Class fbsdkdfl_ALAssetsLibraryClass(void) +{ + _fbsdkdfl_AssetsLibrary_get_c(ALAssetsLibrary); + return c; +} + +#pragma mark - CoreTelephony Classes + +_fbsdkdfl_load_framework_once_impl_(CoreTelephony) +_fbsdkdfl_handle_get_impl_(CoreTelephony) + +#define _fbsdkdfl_CoreTelephonyLibrary_get_c(SYMBOL) _fbsdkdfl_symbol_get_c(CoreTelephony, SYMBOL); + +Class fbsdkdfl_CTTelephonyNetworkInfoClass(void) +{ + _fbsdkdfl_CoreTelephonyLibrary_get_c(CTTelephonyNetworkInfo); + return c; +} + +#pragma mark - CoreImage + +_fbsdkdfl_load_framework_once_impl_(CoreImage) +_fbsdkdfl_handle_get_impl_(CoreImage) + +#define _fbsdkdfl_CoreImage_get_c(SYMBOL) _fbsdkdfl_symbol_get_c(CoreImage, SYMBOL); +#define _fbsdkdfl_CoreImage_get_and_return_NSString(SYMBOL) _fbsdkdfl_get_and_return_NSString(CoreImage, SYMBOL) + + +Class fbsdkdfl_CIImageClass(void) +{ + _fbsdkdfl_CoreImage_get_c(CIImage); + return c; +} + +Class fbsdkdfl_CIFilterClass(void) +{ + _fbsdkdfl_CoreImage_get_c(CIFilter); + return c; +} + +NSString *fbsdkdfl_kCIInputImageKey(void) +{ + _fbsdkdfl_CoreImage_get_and_return_NSString(kCIInputImageKey); +} + +NSString *fbsdkdfl_kCIInputRadiusKey(void) +{ + _fbsdkdfl_CoreImage_get_and_return_NSString(kCIInputRadiusKey); +} + +NSString *fbsdkdfl_kCIOutputImageKey(void) +{ + _fbsdkdfl_CoreImage_get_and_return_NSString(kCIOutputImageKey); +} + +#pragma mark - Photos.framework + +_fbsdkdfl_load_framework_once_impl_(Photos) +_fbsdkdfl_handle_get_impl_(Photos) + +#define _fbsdkdfl_Photos_get_c(SYMBOL) _fbsdkdfl_symbol_get_c(Photos, SYMBOL); +#define _fbsdkdfl_Photos_get_and_return_NSString(SYMBOL) _fbsdkdfl_get_and_return_NSString(Photos, SYMBOL) + +Class fbsdkdfl_PHPhotoLibrary(void) +{ + _fbsdkdfl_Photos_get_c(PHPhotoLibrary); + return c; +} + +Class fbsdkdfl_PHAssetChangeRequest(void) +{ + _fbsdkdfl_Photos_get_c(PHAssetChangeRequest); + return c; +} + +#pragma mark - MobileCoreServices + +_fbsdkdfl_load_framework_once_impl_(MobileCoreServices) +_fbsdkdfl_handle_get_impl_(MobileCoreServices) + +#define _fbsdkdfl_MobileCoreServices_get_k(SYMBOL) _fbsdkdfl_symbol_get_k(MobileCoreServices, SYMBOL, CFStringRef *) + +#define _fbsdkdfl_MobileCoreServices_get_and_return_k(SYMBOL) \ +_fbsdkdfl_MobileCoreServices_get_k(SYMBOL); \ +_fbsdkdfl_return_k(MobileCoreServices, SYMBOL) + +#define _fbsdkdfl_MobileCoreServices_get_f(SYMBOL) _fbsdkdfl_symbol_get_f(MobileCoreServices, SYMBOL) + +typedef CFStringRef (*UTTypeCopyPreferredTagWithClass_type)(CFStringRef inUTI, CFStringRef inTagClass); + +CFStringRef fbsdkdfl_UTTypeCopyPreferredTagWithClass(CFStringRef inUTI, + CFStringRef inTagClass) +{ + _fbsdkdfl_MobileCoreServices_get_f(UTTypeCopyPreferredTagWithClass); + return f(inUTI, inTagClass); +} + +CFStringRef fbsdkdfl_kUTTagClassMIMEType(void) +{ + _fbsdkdfl_MobileCoreServices_get_and_return_k(kUTTagClassMIMEType); +} + +CFStringRef fbsdkdfl_kUTTypeJPEG(void) +{ + _fbsdkdfl_MobileCoreServices_get_and_return_k(kUTTypeJPEG); +} + +CFStringRef fbsdkdfl_kUTTypePNG(void) +{ + _fbsdkdfl_MobileCoreServices_get_and_return_k(kUTTypePNG); +} + +#pragma mark - WebKit Classes +_fbsdkdfl_load_framework_once_impl_(WebKit) +_fbsdkdfl_handle_get_impl_(WebKit) + +#define _fbsdkdfl_WebKit_get_c(SYMBOL) _fbsdkdfl_symbol_get_c(WebKit, SYMBOL); + +Class fbsdkdfl_WKWebViewClass(void) +{ + _fbsdkdfl_WebKit_get_c(WKWebView); + return c; +} + +Class fbsdkdfl_WKUserScriptClass(void) +{ + _fbsdkdfl_WebKit_get_c(WKUserScript); + return c; +} diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/af.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/af.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..e6bf3afa111b0 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/af.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "Besoek %@ en voer die kode in wat hierbo vertoon word."; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "Om jou rekening te verbind, maak die Facebook-toepassing op jou mobiele toestel oop en kontroleer vir kennisgewings."; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- OF -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "Goed"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "Kanselleer"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "Meld asseblief weer by hierdie toepassing aan om jou Facebook-rekening te herkoppel. "; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "Goed"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "Die bediener is tydelik besig, probeer asseblief weer."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "Hou van"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "Hou van"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "Kanselleer"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "Meld af"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Met Facebook aangemeld"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "As %@ aangemeld"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "Meld aan"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Gaan voort met Facebook"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Meld met Facebook aan"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "Meld af"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "Toegang is nie na die Facebook-rekening verleen nie. Verifieer toestelinstellings."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "Kan nie aan Facebook koppel nie. Gaan jou netwerkverbinding na en probeer weer."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "Jou Facebook-wagwoord het verander. Om jou wagwoord te bevestig, maak Instellings > Facebook oop en tik jou naam."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "Die Facebook-rekening is nie op die toestel opgestel nie."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "Jou rekening is nie bevestig nie. Meld asseblief by www.facebook.com aan en volg die gegewe instruksies."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "Jy kan nie op die oomblik by toepassings aanmeld nie. Meld asseblief by www.facebook.com aan en volg die gegewe instruksies."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "Jy is in beheer – kies watter inligting jy met toepassings wil deel."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "Meld aan"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "Stuur"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "Deel"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "Nie jy nie?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "Bevestig aantekening"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "Gaan voort as %@"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/ar.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/ar.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..0911c786b66a4 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/ar.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "تفضل بزيارة %@ وإدخال الرمز الموضح أدناه."; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "لربط حسابك، افتح تطبيق فيسبوك على جهازك المحمول ثم تفقد الإشعارات."; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- أو -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "موافق"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "إلغاء"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "يرجى تسجيل الدخول إلى هذا التطبيق مرة أخرى لإعادة الاتصال بحساب فيسبوك."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "موافق"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "الخادم مشغول مؤقتًا، يرجى إعادة المحاولة."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "إعجاب"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "أعجبني"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "إلغاء"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "تسجيل الخروج"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "تم تسجيل الدخول بحساب فيسبوك"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "تم تسجيل الدخول باسم %@"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "تسجيل الدخول"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "متابعة بحساب فيسبوك"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "تسجيل الدخول بحساب فيسبوك"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "تسجيل الخروج"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "لم يتم منح إذن الوصول لحساب فيسبوك. تحقق من إعدادات الجهاز."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "تعذر الاتصال بفيسبوك. يُرجى التحقق من الاتصال بالإنترنت وإعادة المحاولة."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "تم تغيير كلمة سر فيسبوك الخاصة بك. لتأكيد كلمة السر، افتح الإعدادات > فيسبوك ثم اضغط على اسمك."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "لم تتم تهيئة حساب فيسبوك على الجهاز."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "لم يتم تأكيد حسابك. يُرجى تسجيل الدخول إلى www.facebook.com واتباع التعليمات الموضحة."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "لا يمكنك تسجيل الدخول إلى التطبيقات حاليًا. يُرجى تسجيل الدخول إلى www.facebook.com واتباع التعليمات الموضحة."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "أنت المتحكم - اختر المعلومات التي تريد مشاركتها مع التطبيقات."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "تسجيل الدخول"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "إرسال"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "مشاركة"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "لست أنت؟"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "تأكيد تسجيل الدخول"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "متابعة باسم %@"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/bn.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/bn.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..6570752307960 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/bn.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "%@ -এ যান এবং উপরে যে কোডটি দেখানো হয়েছে সেটি লিখুন।"; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "আপনার অ্যাকাউন্টে সংযোগ করতে, আপনার মোবাইল ডিভাইসে Facebook অ্যাপটি খুলুন এবং বিজ্ঞপ্তি চেক করুন।"; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- অথবা -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "ঠিক আছে"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "বাতিল করুন"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "আপনার Facebook অ্যাকাউন্টটিতে পুনরায় সংযোগ করার জন্য অনুগ্রহ করে এই অ্যাপটিতে লগ ইন করুন৷"; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "ঠিক আছে"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "এই সার্ভারটি সাময়িকভাবে ব্যস্ত আছে, অনুগ্রহ করে পুনরায় চেষ্টা করুন৷"; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "পছন্দ করুন"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "পছন্দ করা হয়েছে"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "বাতিল করুন"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "লগ আউট করুন"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Facebook ব্যবহার করে লগ ইন করা হয়েছে"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "%@ হিসাবে লগ ইন করা হয়েছে"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "লগ ইন করুন"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Facebook এর সাথে চালিয়ে যান"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Facebook -এর সাথে লগ ইন করুন"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "লগ আউট করুন"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "Facebook অ্যাকাউন্টটিতে অ্যাক্সেস করার অনুমতি নেই৷ ডিভাইস সেটিংস যাচাই করুন৷"; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "Facebook-এ সংযোগ করা যাচ্ছে না৷ আপনার নেটওয়ার্ক সংযোগটি পরীক্ষা করুন এবং পুনরায় চেষ্টা করুন৷"; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "আপনার Facebook পাসওয়ার্ডটি পরিবর্তিত হয়েছে৷ আপনার পাসওয়ার্ডটি নিশ্চিত করতে, সেটিংস > Facebook খুলুন এবং আপনার নামটি ট্যাপ করুন৷"; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "Facebook অ্যাকাউন্টটি এই ডিভাইসে কনফিগার করা যাযনি৷"; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "আপনার অ্যাকাউন্টটি নিশ্চিত করা যায়নি৷ অনুগ্রহ করে www.facebook.com-এ লগ ইন করুন এবং উল্লিখিত নির্দেশাবলী অনুসরণ করুন৷"; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "এই সময়ে আপনি অ্যাপসে লগ ইন করতে পারবেন না৷ অনুগ্রহ করে www.facebook.com-এ লগ ইন করুন এবং উল্লিখিত নির্দেশাবলী অনুসরণ করুন৷"; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "আপনি নিয়ন্ত্রণে আছেন - অ্যাপ্সের সাথে আপনি যে তথ্য শেয়ার করতে চান তা বাছুন৷"; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "লগ ইন করুন"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "পাঠান"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "ভাগ করুন"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "আপনি নন?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "লগ ইন নিশ্চিত করুন"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "%@ হিসেবে চালিয়ে যান"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/cs.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/cs.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..1de061a656073 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/cs.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "Navštivte %@ a zadejte nahoře uvedený kód."; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "Účet si můžete připojit tak, že si na mobilním zařízení spustíte aplikaci Facebook a podíváte se do upozornění."; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- NEBO -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "OK"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "Zrušit"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "Pokud se chcete ke svému Facebook účtu znovu připojit, přihlaste se k této aplikaci ještě jednou."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "OK"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "Server je dočasně zaneprázdněný, zkuste to znovu."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "To se mi líbí"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "Už se mi to líbí"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "Zrušit"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "Odhlásit"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Přihlášen(a) přes Facebook"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "Přihlášen(a) jako %@"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "Přihlásit"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Pokračovat přes Facebook"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Přihlásit se přes Facebook"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "Odhlásit"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "Facebook účtu nebylo oprávnění uděleno. Ověřte nastavení zařízení."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "K Facebooku se nedá připojit. Zkontrolujte připojení k síti a zkuste to znovu."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "Vaše heslo na Facebook je změněné. Pokud chcete heslo potvrdit, přejděte do Nastavení > Facebook a klepněte na své jméno."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "V tomto zařízení není Facebook účet konfigurovaný."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "Váš účet není potvrzený. Přihlaste se na www. facebook.com a postupujte podle uvedených pokynů."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "Do aplikací se v této chvíli přihlásit nemůžete. Přihlaste se na www. facebook.com a postupujte podle uvedených pokynů."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "Je jen na vás, které informace chcete s aplikacemi sdílet."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "Přihlásit"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "Odeslat"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "Sdílet"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "Nejste to vy?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "Potvrdit přihlášení"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "Pokračovat jako %@"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/da.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/da.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..9a49bb5122145 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/da.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "Gå til %@, og indtast den kode, der er angivet ovenfor."; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "Du kan tilknytte din konto ved at åbne Facebook-appen på din mobilenhed og tjekke notifikationerne."; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- ELLER -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "OK"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "Annuller"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "Log på denne app igen for at genoprette forbindelsen til din Facebook-konto."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "OK"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "Serveren er optaget i øjeblikket. Prøv igen."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "Synes godt om"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "Synes godt om"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "Annuller"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "Log af"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Logget på med Facebook"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "Logget på som %@"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "Log på"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Fortsæt med Facebook"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Log på med Facebook"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "Log af"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "Der er ikke blevet givet adgang til Facebook-kontoen. Kontrollér enhedsindstillingerne."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "Kunne ikke oprette forbindelse til Facebook. Kontrollér din netværksforbindelse, og prøv igen."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "Din Facebook-adgangskode er ændret. For at bekræfte din adgangskode skal du åbne Indstillinger > Facebook og trykke på dit navn."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "Facebook-kontoen er ikke blevet konfigureret på enheden."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "Din konto er ikke bekræftet. Log på www.facebook.com, og følg instruktionerne."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "Du kan ikke logge på apps på nuværende tidspunkt. Log på www.facebook.com, og følg instruktionerne."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "Du har styringen – vælg de oplysninger, som du vil dele med apps."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "Log på"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "Send"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "Del"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "Ikke dig?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "Bekræft login"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "Fortsæt som %@"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/de.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/de.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..331aa9b1f2d4e --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/de.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "Besuche %@ und gib den oben angezeigten Code ein."; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "Um dein Konto zu verbinden, öffne die Facebook-App auf deinem Mobilgerät und prüfe, ob du Benachrichtigungen erhalten hast."; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "– ODER –"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "OK"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "Abbrechen"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "Melde dich bitte erneut bei dieser App an, um die Verbindung mit deinem Facebook-Konto wiederherzustellen."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "OK"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "Der Server ist vorübergehend beschäftigt. Bitte versuche es erneut."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "Gefällt mir"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "Gefällt dir"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "Abbrechen"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "Abmelden"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Über Facebook angemeldet"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "Als %@ angemeldet"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "Anmelden"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Mit Facebook fortfahren"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Über Facebook anmelden"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "Abmelden"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "Auf das Facebook-Konto wurde kein Zugriff erteilt. Überprüfe bitte die Geräteeinstellungen."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "Verbindung zu Facebook kann nicht hergestellt werden. Bitte überprüfe deine Netzwerkverbindung und versuche es erneut."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "Dein Facebook-Passwort hat sich geändert. Öffne „Einstellungen“ > „Facebook“ und tippe auf deinen Namen, um dein Passwort zu bestätigen."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "Das Facebook-Konto wurde für dieses Gerät nicht konfiguriert."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "Dein Konto wurde nicht bestätigt. Bitte melde dich unter www.facebook.com an und folge den Anweisungen."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "Du kannst dich zurzeit nicht bei Apps anmelden. Bitte melde dich unter www.facebook.com an und folge den Anweisungen."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "Es liegt ganz an dir – du kannst dir aussuchen, was du mit Apps teilen möchtest."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "Anmelden"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "Senden"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "Teilen"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "Nicht du?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "Login bestätigen"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "Fortfahren als %@"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/el.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/el.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..9b7a3bdde9481 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/el.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "Επισκεφτείτε τη διεύθυνση %@ και συμπληρώστε τον παραπάνω κωδικό."; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "Για να συνδεθείτε στο λογαριασμό σας, ανοίξτε την εφαρμογή Facebook στη φορητή συσκευή σας και ελέγξτε τις ειδοποιήσεις."; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- Ή -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "OK"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "Άκυρο"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "Συνδεθείτε ξανά σε αυτή την εφαρμογή για να συνδέσετε και πάλι το λογαριασμό σας στο Facebook."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "OK"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "Ο διακομιστής είναι προσωρινά απασχολημένος, προσπαθήστε ξανά."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "Μου αρέσει!"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "Σας αρέσει"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "Άκυρο"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "Αποσύνδεση"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Έχει γίνει σύνδεση μέσω Facebook"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "Έχει γίνει σύνδεση ως %@"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "Σύνδεση"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Συνεχίστε με το Facebook"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Σύνδεση μέσω Facebook"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "Αποσύνδεση"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "Δεν έχει παραχωρηθεί πρόσβαση στο λογαριασμό Facebook. Επαληθεύστε τις ρυθμίσεις της συσκευής σας."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "Δεν είναι δυνατή η σύνδεση στο Facebook. Ελέγξτε τη σύνδεση στο δίκτυο και προσπαθήστε ξανά."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "Ο κωδικός πρόσβασής σας στο Facebook άλλαξε. Για να επιβεβαιώσετε τον κωδικό σας, πηγαίνετε στις Ρυθμίσεις > Facebook και πατήστε το όνομά σας."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "Ο λογαριασμός Facebook δεν έχει διαμορφωθεί στη συσκευή."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "Ο λογαριασμός σας δεν επιβεβαιώθηκε. Συνδεθείτε στο www.facebook.com και ακολουθήστε τις οδηγίες που εμφανίζονται."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "Προς το παρόν δεν μπορείτε να συνδεθείτε σε εφαρμογές. Συνδεθείτε στο www.facebook.com και ακολουθήστε τις οδηγίες που εμφανίζονται."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "Έχετε τον έλεγχο - επιλέξτε ποιες πληροφορίες θέλετε να κοινοποιούνται στις εφαρμογές."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "Σύνδεση"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "Αποστολή"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "Κοινοποίηση"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "Δεν είστε εσείς;"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "Επιβεβαίωση σύνδεσης"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "Συνέχεια ως %@"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/en.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/en.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..6e6afcf99e603 Binary files /dev/null and b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/en.lproj/FacebookSDK.strings differ diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/en_GB.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/en_GB.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..358a92c5adbb8 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/en_GB.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* The format string for device login instructions */ +"DeviceLogin.LogInPrompt" = "Visit %@ and enter the code shown above."; + +/* The 'or' string for smart login instructions */ +"DeviceLogin.SmartLogInOrLabel" = "-- OR --"; + +/* The string for smart login instructions */ +"DeviceLogin.SmartLogInPrompt" = "To connect your account, open the Facebook app on your mobile device and check for notifications."; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "OK"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "Cancel"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "Please log in to this app again to reconnect your Facebook account."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "OK"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "The server is temporarily busy, please try again."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "Like"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "Liked"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "Cancel"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "Log out"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Logged in using Facebook"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "Logged in as %@"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "Log in"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Continue with Facebook"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Log in with Facebook"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "Log out"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "Access has not been granted to the Facebook account. Verify device settings."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "Unable to connect to Facebook. Please check your network connection and try again."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "Your Facebook password has changed. To confirm your password, open Settings > Facebook and tap your name."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "The Facebook account has not been configured on the device."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "Your account is not confirmed. Please log in to www.facebook.com and follow the instructions given."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "You cannot log in to apps at this time. Please log in to www.facebook.com and follow the instructions given."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "You're in control – choose what information you want to share with apps."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "Log In"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "Send"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "Share"; + +/* The title for the alert when smart login requires confirmation */ +"SmartLogin.ConfirmationTitle" = "Confirm Login"; + +/* The format string to continue as for the alert when smart login requires confirmation */ +"SmartLogin.Continue" = "Continue as %@"; + +/* The cancel label for the alert when smart login requires confirmation */ +"SmartLogin.NotYou" = "Not you?"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/es.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/es.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..7038004d9685a --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/es.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "Visita %@ e ingresa el código que se muestra arriba."; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "Para conectar tu cuenta, abre la aplicación de Facebook en tu dispositivo móvil y comprueba las notificaciones."; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- O -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "Aceptar"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "Cancelar"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "Inicia sesión de nuevo en esta aplicación para volver a conectarte a tu cuenta de Facebook."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "Aceptar"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "El servidor está temporalmente ocupado. Vuelve a intentarlo."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "Me gusta"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "Te gusta"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "Cancelar"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "Cerrar sesión"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Sesión iniciada con Facebook"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "Sesión iniciada como %@"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "Inicio de sesión"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Continuar con Facebook"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Iniciar sesión con Facebook"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "Salir"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "No se concedió acceso a la cuenta de Facebook. Verifica la configuración del dispositivo."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "No es posible conectarse a Facebook. Comprueba tu conexión a internet y vuelve a intentarlo."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "Cambió tu contraseña de Facebook. Para confirmar tu contraseña, abre Configuración > Facebook y toca tu nombre."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "No se configuró la cuenta de Facebook en el dispositivo."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "Tu cuenta no está confirmada. Inicia sesión en www.facebook.com y sigue las instrucciones."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "No puedes iniciar sesión en las aplicaciones en este momento. Inicia sesión en www.facebook.com y sigue las instrucciones."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "Tú decides: elige qué información quieres compartir con las aplicaciones."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "Inicio de sesión"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "Enviar"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "Compartir"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "¿No eres tú?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "Confirmar inicio de sesión"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "Continuar como %@"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/es_ES.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/es_ES.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..963fa96f606d5 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/es_ES.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "Visita %@ e introduce el código que se muestra arriba."; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "Para conectar tu cuenta, abre la aplicación de Facebook en tu dispositivo móvil y comprueba las notificaciones."; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- O -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "Aceptar"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "Cancelar"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "Vuelve a iniciar sesión en esta aplicación para volver a conectar tu cuenta de Facebook."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "Aceptar"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "El servidor está ocupado temporalmente. Vuelve a intentarlo más tarde."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "Me gusta"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "Te gusta"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "Cancelar"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "Salir"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Sesión iniciada con Facebook"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "Sesión iniciada como %@"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "Inicio de sesión"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Continuar con Facebook"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Iniciar sesión con Facebook"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "Salir"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "No se ha otorgado acceso a la cuenta de Facebook. Verifica la configuración del dispositivo."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "No es posible conectarse a Facebook. Comprueba tu conexión de red y vuelve a intentarlo."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "Tu contraseña de Facebook ha cambiado. Para confirmar tu contraseña, abre Configuración > Facebook y toca tu nombre."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "La cuenta de Facebook no se ha configurado en el dispositivo."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "Tu cuenta no se ha confirmado. Inicia sesión en www.facebook.com y sigue las instrucciones."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "No puedes iniciar sesión en las aplicaciones en este momento. Inicia sesión en www.facebook.com y sigue las instrucciones."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "Tú tienes el control: elige la información que quieres compartir con las aplicaciones."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "Inicio de sesión"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "Enviar"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "Compartir"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "¿No eres tú?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "Confirmar inicio de sesión"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "Continuar como %@"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/fi.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/fi.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..1f1cc78722dad --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/fi.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "Siirry osoitteeseen %@ ja kirjoita oheinen koodi sivulle."; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "Pääset liittämään käyttäjätilisi avaamalla Facebook-sovelluksen mobiililaitteellasi ja tarkistamalla ilmoitukset."; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- TAI -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "OK"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "Peruuta"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "Kirjaudu tähän sovellukseen uudelleen, jotta voit yhdistää Facebook-tilisi uudelleen."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "OK"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "Palvelin on tilapäisesti varattu, yritä uudelleen."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "Tykkää"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "Tykätty"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "Peruuta"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "Kirjaudu ulos"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Sisäänkirjautunut Facebookin avulla"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "Sisäänkirjautunut nimellä %@"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "Kirjaudu sisään"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Jatka Facebook-tunnuksilla"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Kirjaudu sisään Facebookin avulla"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "Kirjaudu ulos"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "Pääsyä Facebook-tiliin ei ole myönnetty. Tarkista laiteasetukset."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "Yhteyttä Facebookiin ei voi muodostaa. Tarkista verkkoyhteys ja yritä sitten uudelleen."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "Facebook-salasanasi on vaihdettu. Vahvista salasanasi avaamalla Asetukset > Facebook ja napauttamalla nimeäsi."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "Facebook-tiliä ei ole määritetty laitteessa."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "Tiliäsi ei ole vahvistettu. Kirjaudu sisään osoitteeseen www.facebook.com ja noudata annettuja ohjeita."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "Et pysty kirjautumaan sovelluksiin tällä hetkellä. Kirjaudu sisään osoitteeseen www.facebook.com ja noudata annettuja ohjeita."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "Sinä voit valita, mitä tietoja jaat sovelluksille."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "Kirjaudu sisään"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "Lähetä"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "Jaa"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "Etkö tämä ole sinä?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "Vahvista sisäänkirjautuminen"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "Jatka nimellä %@"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/fil.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/fil.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..5daf341fdb6c6 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/fil.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "Pumunta sa %@ at ilagay ang code na ipinapakita sa itaas."; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "Para ikonekta ang iyong account, buksan ang Facebook app sa iyong cellphone at tumingin ng mga notification."; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- O KAYA -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "OK"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "Kanselahin"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "Mangyaring mag-log in muli sa app na ito para ikonekta muli ang iyong Facebook account."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "OK"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "Pansamantalang abala ang server, pakisubukan muli."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "Gustuhin"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "Nagustuhan"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "Kanselahin"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "Mag-log Out"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Naka-log in gamit ang Facebook"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "Naka-log in bilang si %@"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "Mag-log in"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Magatuloy sa Facebook"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Mag-log in sa pamamagitan ng Facebook"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "Mag-log out"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "Hindi binigyan ng access ang Facebook account. Beripikahin ang mga setting ng device."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "Hindi nakakonekta sa Facebook. Tingnan ang iyong koneksyon sa network at subukan muli."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "Nagbago ang iyong password sa Facebook. Para makumpirma ang iyong password, buksan ang Mga Setting > Facebook at i-tap ang iyong pangalan."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "Hindi na-configure sa device ang Facebook account."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "Hindi nakumpirma ang iyong account. Mangyaring mag-log in sa www.facebook.com at sundin ang mga ibinigay na tagubilin."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "Hindi ka makakapag-log in sa mga app sa oras na ito. Mangyaring mag-log in sa www.facebook.com at sundin ang mga ibinigay na tagubilin."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "Ikaw ang may kontrol - piliin kung anong impormasyon ang gusto mong ibahagi sa mga app."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "Mag-log In"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "Ipadala"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "Ibahagi"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "Hindi ikaw?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "I-confirm ang Pag-log in"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "Magpatuloy bilang %@"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/fr.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/fr.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..65fb07c8d1e59 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/fr.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "Consultez la page %@ et saisissez le code indiqué ci-dessus."; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "Pour connecter votre compte, lancez l’application Facebook sur votre appareil mobile et consultez les notifications."; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- OU -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "OK"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "Annuler"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "Veuillez vous connecter à nouveau à cette application pour reconnecter votre compte Facebook."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "OK"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "Le serveur est temporairement occupé. Veuillez réessayer plus tard."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "J’aime"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "J’aime déjà"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "Annuler"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "Déconnexion"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Connecté(e) à l’aide de Facebook"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "Connecté(e) en tant que %@"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "Connexion"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Continuer avec Facebook"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Connexion avec Facebook"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "Déconnexion"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "L’accès au compte Facebook n’a pas été autorisé. Vérifiez les paramètres de l’appareil."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "Connexion à Facebook impossible. Vérifiez votre connexion avant de réessayer."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "Votre mot de passe Facebook a changé. Pour confirmer votre mot de passe, ouvrez Paramètres > Facebook et saisissez votre nom."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "Le compte Facebook n’a pas été configuré sur l’appareil."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "Votre compte n’est pas confirmé. Veuillez vous connecter à www.facebook.com et suivre les instructions indiquées."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "Vous ne pouvez pas vous connecter à des applications pour le moment. Veuillez vous connecter à www.facebook.com et suivre les instructions indiquées."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "Vous gardez le contrôle. Choisissez les informations que vous souhaitez partager avec les applications."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "Connexion"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "Envoyer"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "Partager"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "Ce n’est pas vous ?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "Confirmer la connexion"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "Continuer en tant que %@"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/gu.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/gu.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..a91785a83c3f6 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/gu.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "%@ ની મુલાકાત લો અને ઉપર બતાવ્યા પ્રમાણે કોડ દાખલ કરો."; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "તમારા એકાઉન્ટ સાથે જોડાવા માટે, તમારા મોબાઇલ ઉપકરણ પર Facebook એપ્લિકેશન ખોલો અને સૂચનો માટે તપાસો."; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- અથવા -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "ઠીક"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "રદ કરો"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "તમારા ફેસબુક ખાતાને ફરીથી કનેક્ટ કરવા માટે કૃપા કરીને આ એપ્લિકેશનમાં ફરી લૉગ ઇન કરો."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "ઠીક"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "સર્વર અસ્થાયીરૂપે વ્યસ્ત છે, કૃપા કરીને ફરી પ્રયાસ કરો."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "પસંદ કરો"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "પસંદ કર્યું"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "રદ કરો"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "લૉગ આઉટ કરો"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "ફેસબુકનો ઉપયોગ કરીને લૉગ ઇન કરો"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "%@ તરીકે લૉગ ઇન થયાં"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "લૉગ ઇન કરો"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Facebook સાથે ચાલુ રાખો"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "ફેસબુક સાથે લૉગ ઇન કરો"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "લૉગ આઉટ કરો"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "ફેસબુક ખાતા પર ઍક્સેસ આપવામાં આવી નથી. ઉપકરણ સેટિંગ્સ ચકાસો"; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "ફેસબુકથી કનેક્ટ કરવામાં અસમર્થ. તમારું નેટવર્ક કનેક્શન તપાસો અને ફરી પ્રયાસ કરો."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "તમારો ફેસબુક પાસવર્ડ બદલાઈ ગયો છે. તમારા પાસવર્ડની પુષ્ટિ કરવા માટે, સેટિંગ્સ > ફેસબુક ખોલો અને તમારા નામ પર ટૅપ કરો."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "ઉપકરણ પર ફેસબુક ખાતું કન્ફિગર કરવામાં આવ્યું નથી."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "તમારા ખાતાની પુષ્ટિ કરવામાં આવી નથી. કૃપા કરીને www.facebook.com પર લૉગ ઇન કરો અને આપેલા સૂચનોને અનુસરો."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "તમે આ સમયે એપ્લિકેશન્સમાં લૉગ ઇન કરી શકતાં નથી. કૃપા કરીને www.facebook.com પર લૉગ ઇન કરો અને આપેલા સૂચનોને અનુસરો."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "તમે નિયંત્રણ કરો છો - તમે એપ્લિકેશન્સ સાથે કઈ માહિતી શેર કરવા માંગો છો તે પસંદ કરો."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "લૉગ ઇન કરો"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "મોકલો"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "શેર કરો"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "તમે નહિ?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "લૉગિનની પુષ્ટિ કરો"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "%@ તરીકે ચાલુ રાખો"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/he.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/he.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..2e2a3c56a869e --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/he.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "בקר ב-%@ והזן את הקוד המופיע למעלה."; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "כדי לחבר את החשבון שלך, פתח את אפליקציית פייסבוק במכשיר הנייד שלך ובדוק אם יש התראות."; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- או -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "אישור"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "ביטול"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "התחבר לאפליקציה זו שוב כדי לחבר מחדש את חשבון הפייסבוק שלך."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "אישור"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "השרת עמוס באופן זמני, נסה שוב."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "אהבתי"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "אהבתי"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "ביטול"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "התנתק"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "מחובר באמצעות פייסבוק"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "מחובר בתור %@"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "התחבר"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "המשך עם פייסבוק"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "התחבר באמצעות פייסבוק"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "התנתק"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "לא הוענקה גישה לחשבון הפייסבוק. אמת את הגדרות המכשיר."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "לא ניתן להתחבר לפייסבוק. בדוק את החיבור שלך לרשת ונסה שוב."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "סיסמת הפייסבוק שלך השתנתה. כדי לאשר את הסיסמה, פתח את 'הגדרות' > 'פייסבוק' והקש על שמך."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "חשבון הפייסבוק לא הוגדר במכשיר."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "החשבון שלך לא אושר. התחבר ל-www.facebook.com ופעל בהתאם להוראות שיוצגו."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "לא ניתן להתחבר לאפליקציות כעת. התחבר ל-www.facebook.com ופעל בהתאם להוראות שיוצגו."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "אתה מחליט - בחר איזה מידע אתה רוצה לשתף עם אפליקציות."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "התחבר"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "שלח"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "שתף"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "לא אתה?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "אשר התחברות"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "המשך כ-%@"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/hi.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/hi.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..14b1b959efb37 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/hi.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "%@ पर जाएँ और ऊपर दिया गया कोड दर्ज करें."; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "अपने खाते को कनेक्ट करने के लिए, अपने मोबाइल एप्लिकेशन में Facebook एप्लिकेशन खोलें और सूचनाओं के लिए जाँच करें."; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- या -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "ठीक"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "रद्द करें"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "अपने Facebook खाते से फिर से कनेक्ट होने के लिए कृपया इस एप्लिकेशन में फिर से लॉग इन करें."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "ठीक"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "सर्वर अस्थायी रूप से व्यस्त है, कृपया फिर से कोशिश करें."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "पसंद करें"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "पसंद किया"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "रद्द करें"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "लॉग आउट करें"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Facebook का उपयोग करके लॉग इन किया हुआ है"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "%@ के रूप में लॉग इन किया हुआ है"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "लॉग इन करें"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Facebook के साथ जारी रखें"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Facebook से लॉग इन करें"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "लॉग आउट"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "Facebook खाते को एक्सेस नहीं दी गई है. डिवाइस सेटिंग सत्यापित करें."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "Facebook से कनेक्ट होने में असमर्थ. कृपया अपने नेटवर्क कनेक्शन की जाँच करें फिर से प्रयास करें."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "आपका Facebook पासवर्ड बदल गया है. अपना पासवर्ड कन्फ़र्म करने के लिए, सेटिंग > Facebook खोलें और अपना नाम टैप करें."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "डिवाइस पर Facebook खाता कॉन्फ़िगर नहीं किया गया है."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "आपका खाता कन्फ़र्म नहीं किया गया है. कृपया www.facebook.com में लॉग इन करें और दिए गए निर्देशों का पालन करें."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "आप इस समय एप्लिकेशन में लॉग इन नहीं कर सकते. कृपया www.facebook.com में लॉग इन करें और दिए गए निर्देशों का पालन करें."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "आप नियंत्रण में हैं - चुनें कि आप एप्लिकेशन से कौन-सी जानकारी साझा करना चाहते हैं."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "लॉग इन करें"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "भेजें"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "साझा करें"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "आप नहीं हैं?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "लॉग इन कन्फ़र्म करें"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "%@ के रूप में जारी रखें"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/hr.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/hr.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..45e33126427fb --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/hr.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "Posjetite adresu %@ i unesite gore prikazan kod."; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "Da biste povezali račun, otvorite aplikaciju Facebook na mobilnom uređaju i potražite obavijesti."; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- ILI -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "U redu"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "Odustani"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "Ponovo se prijavite u ovu aplikaciju kako biste se ponovo povezali s Facebook računom."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "U redu"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "Poslužitelj je privremeno zauzet, pokušajte ponovo."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "Sviđa mi se"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "Označeno sa \"sviđa mi se\""; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "Odustani"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "Odjavi se"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Prijavljen putem Facebooka"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "Prijavljen kao %@"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "Prijavi se"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Nastavite s korištenjem Facebooka"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Prijava putem Facebooka"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "Odjavi se"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "Pristup Facebook računu nije odobren. Provjerite postavke uređaja."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "Povezivanje s Facebookom nije uspjelo. Provjerite mrežnu vezu i pokušajte ponovo."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "Promijenili ste lozinku za Facebook. Za potvrdu lozinke otvorite Postavke > Facebook i dodirnite svoje ime."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "Na uređaju nije konfiguriran račun za Facebook."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "Vaš račun nije potvrđen. Prijavite se na www.facebook.com i slijedite upute."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "U ovome trenutku prijava u aplikacije nije moguća. Prijavite se na www.facebook.com i slijedite upute."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "Vi odlučujete – odaberite koje podatke želite dijeliti u aplikacijama."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "Prijava"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "Pošalji"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "Dijeli"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "To niste vi?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "Potvrda prijave"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "Nastavi kao %@"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/hu.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/hu.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..6d74f467030c8 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/hu.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "Keresd fel a %@ címet, és írd be a fent megjelenített kódot."; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "A fiók hozzákapcsolásához nyisd meg a Facebook alkalmazást a mobilkészülékeden, és nézd meg az értesítéseket."; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- VAGY -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "OK"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "Mégsem"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "Kérjük, jelentkezz be újra ebbe az alkalmazásba, ha szeretnéd ismét összekapcsolni a Facebook-fiókoddal."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "OK"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "A kiszolgáló átmenetileg foglalt, próbáld meg újra."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "Tetszik"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "Kedveled"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "Mégsem"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "Kijelentkezés"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Bejelentkezve a Facebook használatával"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "Bejelentkezve %@ néven"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "Bejelentkezés"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Folytatás a Facebookkal"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Bejelentkezés a Facebook használatával"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "Kijelentkezés"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "A Facebook-fiókhoz nincs megadva a hozzáférés. Ellenőrizd az eszköz beállításait."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "Nem sikerült kapcsolódni a Facebookhoz. Ellenőrizd a hálózati kapcsolatot, majd próbáld meg újra."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "Facebook-jelszavad megváltozott. A jelszó megerősítéséhez nyisd meg a Settings (Beállítások) > Facebook pontot, és koppints a nevedre."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "A készüléken nincs beállítva a Facebook-fiók."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "A fiókod nincs megerősítve. Jelentkezz be a www.facebook.com címre, és kövesd az utasításokat."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "Jelenleg nem tudsz alkalmazásokba bejelentkezni. Jelentkezz be a www.facebook.com címre, és kövesd az utasításokat."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "A döntés a kezedben van: kiválaszthatod, hogy milyen adatokat osztasz meg az alkalmazásokkal."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "Bejelentkezés"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "Küldés"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "Megosztás"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "Nem te vagy az?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "Bejelentkezés megerősítése"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "Folytatás mint %@"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/id.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/id.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..651b51b22d068 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/id.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "Kunjungi %@ dan masukkan kode yang ditampilkan di atas."; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "Untuk menghubungkan akun Anda, buka aplikasi Facebook di perangkat seluler Anda dan periksa pemberitahuan."; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- ATAU -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "OK"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "Batal"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "Harap masuk ke aplikasi ini lagi untuk menghubungkan kembali akun Facebook Anda."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "OK"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "Server untuk sementara sedang sibuk, harap coba lagi."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "Suka"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "Disukai"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "Batal"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "Keluar"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Masuk menggunakan Facebook"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "Masuk sebagai %@"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "Masuk"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Lanjutkan dengan Facebook"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Masuk menggunakan Facebook"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "Keluar"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "Akses belum diberikan ke akun Facebook. Verifikasi pengaturan perangkat."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "Tidak dapat terhubung ke Facebook. Periksa koneksi jaringan dan coba lagi."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "Kata sandi Facebook Anda telah diubah. Untuk mengonfirmasi kata sandi Anda, buka Pengaturan > Facebook, lalu ketuk nama Anda."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "Akun Facebook belum dikonfigurasikan di perangkat."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "Akun Anda tidak dikonfirmasi. Masuk ke www.facebook.com dan ikuti petunjuknya."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "Saat ini Anda tidak dapat masuk ke aplikasi. Masuk ke www.facebook.com dan ikuti petunjuknya."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "Anda memegang kendali - pilih info yang ingin Anda bagikan dengan aplikasi."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "Masuk"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "Kirim"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "Berbagi"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "Bukan Anda?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "Konfirmasikan Masuk"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "Lanjutkan sebagai %@"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/it.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/it.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..469ea536a7b33 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/it.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "Visita %@ e inserisci il codice mostrato sopra."; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "Per collegare il tuo account, apri l'app Facebook sul tuo dispositivo mobile e controlla se hai notifiche."; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- OPPURE -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "OK"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "Annulla"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "Effettua di nuovo l'accesso a questa applicazione per riconnettere il tuo account Facebook."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "OK"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "Il server è temporaneamente occupato, riprova."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "Mi piace"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "Ti piace"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "Annulla"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "Esci"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Accesso effettuato tramite Facebook"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "Accesso effettuato come %@"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "Accedi"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Continua con Facebook"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Accedi con Facebook"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "Esci"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "All'account Facebook non è stato concesso l'accesso. Verifica le impostazioni del dispositivo."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "Impossibile connettersi a Facebook. Controlla la tua connessione e riprova."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "La tua password di Facebook è stata modificata. Per confermare la password, apri Impostazioni > Facebook e tocca il tuo nome."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "L'account Facebook non è stato configurato nel dispositivo."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "Il tuo account non è stato verificato. Accedi a www.facebook.com e segui le istruzioni fornite."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "Impossibile accedere alle applicazioni al momento. Accedi a www.facebook.com e segui le istruzioni fornite."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "Il controllo è nelle tue mani: scegli quali informazioni condividere con le app."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "Accedi"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "Invia"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "Condividi"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "Non sei tu?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "Conferma l'accesso"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "Continua come %@"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/ja.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/ja.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..fb08bd740bde7 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/ja.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "%@にアクセスし、上に表示されているコードを入力してください。"; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "アカウントをリンクするには、お使いのモバイル機器でFacebookアプリを開き、お知らせをご確認ください。"; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- または -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "OK"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "キャンセル"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "このアプリにもう一度ログインして、Facebookアカウントを再接続してください。"; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "OK"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "サーバーが一時的にビジーです。もう一度お試しください。"; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "いいね!"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "いいね!済み"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "キャンセル"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "ログアウト"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Facebookを使用してログイン中"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "%@としてログイン中"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "ログイン"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Facebookで続ける"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Facebookでログイン"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "ログアウト"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "Facebookアカウントにアクセス権が与えられていません。デバイス設定を確認してください。"; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "Facebookに接続できませんでした。ネットワーク接続を確認してもう一度お試しください。"; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "Facebookパスワードが変更されています。パスワードを確認するには、[設定] > [Facebook]の順に開き、名前をタップしてください。"; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "デバイスにFacebookアカウントが構成されていません。"; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "アカウントが確認されません。www.facebook.comにログインし、表示される説明に従ってください。"; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "今はアプリにログインできません。www.facebook.comにログインし、表示される説明に従ってください。"; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "アプリと共有する情報をコントロールできます。"; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "ログイン"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "送信"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "シェア"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "別のユーザーとしてログイン"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "ログインの確認"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "%@として続行"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/kn.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/kn.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..f743a2793c006 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/kn.lproj/FacebookSDK.strings @@ -0,0 +1,77 @@ +/* The format string for device login instructions */ +"DeviceLogin.LogInPrompt" = "ನಿಮ್ಮ ಸ್ಮಾರ್ಟ್‌ ಫೋನ್‌ ಅಥವಾ ಕಂಪ್ಯೂಟರ್‌ನಲ್ಲಿ %@ ಗೆ ಭೇಟಿ ನೀಡಿ ಮತ್ತು ಈ ಕೋಡ್‌ ಅನ್ನು ನಮೂದಿಸಿ:"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "ಸರಿ"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "ರದ್ದುಮಾಡು"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "ನಿಮ್ಮ Facebook ಖಾತೆಯನ್ನು ಮರುಸಂಪರ್ಕಗೊಳಿಸಲು ಈ ಅಪ್ಲಿಕೇಶನ್‌ನಲ್ಲಿ ಮತ್ತೊಮ್ಮೆ ಲಾಗಿನ್‌ ಮಾಡಿ."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "ಸರಿ"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "ಸರ್ವರ್ ತಾತ್ಕಾಲಿಕವಾಗಿ ಕಾರ್ಯನಿರತವಾಗಿದೆ, ದಯವಿಟ್ಟು ನಂತರ ಮತ್ತೆ ಪ್ರಯತ್ನಿಸಿ."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "ಇಷ್ಟವಾಗಿದೆ"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "ಇಷ್ಟಪಟ್ಟಿದ್ದಾರೆ"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "ರದ್ದುಮಾಡು"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "ಲಾಗ್‌ ಔಟ್‌"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Facebook ಬಳಸಿಕೊಂಡು ಲಾಗಿನ್‌ ಮಾಡಲಾಗಿದೆ"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "%@ ರಂತೆ ಲಾಗಿನ್‌ ಮಾಡಲಾಗಿದೆ"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "ಲಾಗ್‌ ಇನ್‌"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Facebook ಅನ್ನು ಮುಂದುವರಿಸಿ"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Facebook ಮೂಲಕ ಲಾಗ್‌ ಇನ್‌ ಮಾಡಿ"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "ಲಾಗ್‌ ಔಟ್‌"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "Facebook ಖಾತೆಗೆ ಪ್ರವೇಶವನ್ನು ಅನುಮತಿಸಲಾಗಿಲ್ಲ. ಸಾಧನದ ಸೆಟ್ಟಿಂಗ್‌ಗಳನ್ನು ಪರಿಶೀಲಿಸಿ."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "Facebook ಗೆ ಸಂಪರ್ಕಿಸಲು ಸಾಧ್ಯವಿಲ್ಲ. ನಿಮ್ಮ ನೆಟ್‌ವರ್ಕ್‌ ಸಂಪರ್ಕವನ್ನು ಪರಿಶೀಲಿಸಿ ಹಾಗೂ ಮತ್ತೆ ಪ್ರಯತ್ನಿಸಿ."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "ನಿಮ್ಮ Facebook ಪಾಸ್‌ವರ್ಡ್‌ ಬದಲಿಸಲಾಗಿದೆ. ನಿಮ್ಮ ಪಾಸ್‌ವರ್ಡ್‌ ಖಚಿತಪಡಿಸಲು, ಸೆಟ್ಟಿಂಗ್‌ಗಳು > Facebook ತೆರೆಯಿರಿ ಮತ್ತು ನಿಮ್ಮ ಹೆಸರನ್ನು ಟ್ಯಾಪ್‌ ಮಾಡಿ."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "Facebook ಖಾತೆಯನ್ನು ಸಾಧನದಲ್ಲಿ ಕಾನ್ಫಿಗರ್ ಮಾಡಲಾಗಿಲ್ಲ."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "ನಿಮ್ಮ ಖಾತೆಯನ್ನು ದೃಢೀಕರಿಸಿಲ್ಲ. ದಯವಿಟ್ಟು www.facebook.com ಗೆ ಲಾಗಿನ್‌ ಮಾಡಿ ಮತ್ತು ಕೆಳಗೆ ನೀಡಿದ ಸೂಚನೆಗಳನ್ನು ಅನುಸರಿಸಿ."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "ನೀವು ಈ ಸಮಯದಲ್ಲಿ ಅಪ್ಲಿಕೇಶನ್‌ಗಳಿಗೆ ಲಾಗಿನ್‌ ಮಾಡಲು ಸಾಧ್ಯವಿಲ್ಲ. ದಯವಿಟ್ಟು www.facebook.com ಗೆ ಲಾಗಿನ್‌ ಮಾಡಿ ಮತ್ತು ಕೆಳಗೆ ನೀಡಿದ ಸೂಚನೆಗಳನ್ನು ಅನುಸರಿಸಿ."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "ನೀವು ನಿಯಂತ್ರಣದಲ್ಲಿರುವಿರಿ - ನೀವು ಅಪ್ಲಿಕೇಶನ್‌ಗಳನ್ನು ಬಳಸಿಕೊಂಡು ಹಂಚಿಕೊಳ್ಳಲು ಬಯಸುವ ವಿಷಯವನ್ನು ಆರಿಸಿ."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "ಲಾಗ್‌ ಇನ್‌"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "ಕಳುಹಿಸಿ"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "ಹಂಚಿಕೊಳ್ಳಿ"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/ko.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/ko.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..0dbd73faa80f9 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/ko.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "%@를 방문하여 위에 표시된 코드를 입력하세요."; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "계정을 연결하려면 모바일 기기에서 Facebook 앱을 열고 알림을 확인하세요."; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- 또는 -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "확인"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "취소"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "Facebook 계정을 다시 연결하려면 이 앱에 다시 로그인하세요."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "확인"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "일시적으로 서버 사용량이 많아졌습니다. 다시 시도하세요."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "좋아요"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "좋아요"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "취소"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "로그아웃"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Facebook 계정으로 로그인함"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "%@(으)로 로그인함"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "로그인"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Facebook으로 계속"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Facebook으로 로그인"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "로그아웃"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "Facebook 계정에 대한 액세스가 승인되지 않았습니다. 기기 설정을 확인하세요."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "Facebook에 연결할 수 없습니다. 네트워크 연결을 확인하고 다시 시도하세요."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "Facebook 비밀번호가 변경되었습니다. 비밀번호를 확인하려면 설정 > Facebook으로 이동하여 이름을 누르세요."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "Facebook 계정이 기기에 구성되어 있지 않습니다."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "계정이 확인되지 않았습니다. www.facebook.com에 로그인한 뒤 안내를 따라주세요."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "현재 앱에 로그인할 수 없습니다. www.facebook.com에 로그인한 뒤 안내를 따라주세요."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "원하는 정보를 선택하여 앱에 공유할 수 있습니다."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "로그인"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "보내기"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "공유하기"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "회원님이 아닌가요?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "로그인 확인"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "%@님으로 계속"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/ml.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/ml.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..e7a0189b59a82 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/ml.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "%@ സന്ദർശിച്ച്‌ മുകളിൽ കാണിച്ച‌ കോഡ്‌ നൽകുക."; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "നിങ്ങളുടെ അക്കൗണ്ട്‌ കണക്‌റ്റുചെയ്യാൻ, നിങ്ങളുടെ മൊബൈൽ ഉപകരണത്തിലെ Facebook ആപ്പ്‌ തുറന്ന്‌ അറിയിപ്പുകൾ പരിശോധിക്കുക."; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- അല്ലെങ്കിൽ -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "ശരി"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "റദ്ദാക്കുക"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "നിങ്ങളുടെ Facebook അക്കൗണ്ടുമായി വീണ്ടും കണക്‌റ്റുചെയ്യുന്നതിന് ഈ ആപ്ലിക്കേഷനിൽ വീണ്ടും ലോഗിൻ ചെയ്യുക."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "ശരി"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "സെർവർ താൽക്കാലികമായി തിരക്കിലാണ്, വീണ്ടും ശ്രമിക്കുക."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "ലൈക്കുചെയ്യുക"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "ലൈക്കുചെയ്‌‌തു"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "റദ്ദാക്കുക"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "ലോഗ്ഔട്ട് ചെയ്യുക"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Facebook ഉപയോഗിച്ച് ലോഗിൻ ചെയ്‌തു"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "%@ എന്നതായി ലോഗിൻ ചെയ്‌തു"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "ലോഗിൻ ചെയ്യുക"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Facebook ഉപയോഗിച്ച് തുടരുക"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Facebook ഉപയോഗിച്ച് ലോഗിൻ ചെയ്യുക"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "ലോഗ്ഔട്ട് ചെയ്യുക"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "Facebook അക്കൗണ്ടിലേക്ക് ആക്‌സസ് നൽകിയിട്ടില്ല. ഉപകരണ ക്രമീകരണങ്ങൾ പരിശോധിച്ചുറപ്പിക്കുക."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "Facebook-ലേക്ക് കണക്‌റ്റുചെയ്യാനായില്ല. നിങ്ങളുടെ നെറ്റ്‌വർക്ക് കണക്ഷൻ പരിശോധിച്ച് വീണ്ടും ശ്രമിക്കുക."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "നിങ്ങളുടെ Facebook പാസ്‌വേഡ് മാറി. പാ‌സ്‌വേഡ് സ്ഥിരീകരിക്കുന്നതിന് ക്രമീകരണങ്ങൾ > Facebook എന്നത് തുറന്ന് പേര് ടാപ്പുചെയ്യുക."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "ഉപകരണത്തിൽ Facebook അക്കൗണ്ട് കോൺഫിഗർ ചെയ്‌തിട്ടില്ല."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "അക്കൗണ്ട് സ്ഥിരീകരിച്ചു. www.facebook.com എന്നതിലേക്ക് ലോഗിൻ ചെയ്‌ത് തന്നിരിക്കുന്ന നിർദ്ദേശങ്ങൾ പാലിക്കുക."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "നിങ്ങൾക്ക് ഈ സമയം ആപ്ലിക്കേഷനുകളിലേക്ക് ലോഗിൻ ചെയ്യാനാവില്ല. www.facebook.com എന്നതിലേക്ക് ലോഗിൻ ചെയ്‌ത് തന്നിരിക്കുന്ന നിർദ്ദേശങ്ങൾ പാലിക്കുക."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "നിങ്ങളുടെ നിയന്ത്രണത്തിലാണ് - നിങ്ങൾക്ക് ആപ്‌സുമായി ഏതെല്ലാം വിവരങ്ങൾ പങ്കിടണമെന്ന് തിരഞ്ഞെടുക്കുക."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "ലോഗിൻ ചെയ്യുക"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "അയയ്‌ക്കുക"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "പങ്കിടൂ"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "നിങ്ങൾ അല്ലേ?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "ലോഗിൻ സ്ഥിരീകരിക്കുക"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "%@ ആയി തുടരുക"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/mr.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/mr.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..246b69266c981 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/mr.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "%@ वर भेट द्या आणि वर दर्शवलेला कोड प्रविष्ट करा."; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "तुमचे खाते कनेक्ट करण्यासाठी, तुमच्या मोबाईल उपकरणावर Facebook अॅप उघडा आणि सूचना तपासा."; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- किंवा -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "ठीक"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "रद्द करा"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "कृपया आपले फेसबुक खाते रीकनेक्ट करण्यासाठी या अनुप्रयोगावर पुन्हा लॉग इन करा."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "ठीक"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "सर्व्हर तात्पुरता व्यस्त आहे, कृपया पुन्हा प्रयत्न करा."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "आवडले"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "आवडलेले"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "रद्द करा"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "लॉग आउट करा"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "फेसबुक वापरून लॉग इन केले"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "%@ म्हणून लॉग इन केले"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "लॉग इन करा"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Facebook सह चालू ठेवा"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "फेसबुकसह लॉग इन करा"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "लॉग आउट करा"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "फेसबुक खात्यावर प्रवेशास मंजूरी दिली गेली नाही. डिव्हाइस सेटिंग्ज सत्यापित करा."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "फेसबुकशी कनेक्ट करण्यात अक्षम. आपले नेटवर्क कनेक्शन तपासा आणि पुन्हा प्रयत्न करा."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "आपला फेसबुक पासवर्ड बदलला आहे. आपल्या पासवर्डची पुष्टी करण्यासाठी, सेटिंग्ज > फेसबुक उघडा आणि आपले नाव टॅप करा."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "डिव्हाइसवर फेसबुक खाते कॉन्फिगर केले गेले नाही."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "आपल्या खात्याची पुष्टी झाली नाही. कृपया www.facebook.com वर लॉग इन करा आणि दिलेल्या सूचनांचे अनुसरण करा."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "आपण यावेळी अनुप्रयोगांवर लॉग इन करू शकत नाही. कृपया www.facebook.com वर लॉग इन करा आणि दिलेल्या सूचनांचे अनुसरण करा."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "तुम्ही नियंत्रणात आहात - तुम्ही कोणती माहिती अॅपसह सामायिक करू इच्छिता ते निवडा."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "लॉग इन करा"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "पाठवा"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "सामायिक करा"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "तुम्ही नाही?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "लॉग इन पुष्टी करा"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "%@ म्हणून चालू ठेवा"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/ms.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/ms.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..20b212aa369da --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/ms.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "Lawati %@ dan masukkan kod yang ditunjukkan di atas."; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "Untuk menghubungkan akaun anda, buka apl Facebook di peranti mudah alih anda dan semak pemberitahuan."; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "Bukan anda?"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "OK"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "Batal"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "Sila log masuk ke aplikasi ini sekali lagi untuk menyambung semula akaun Facebook anda."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "OK"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "Pelayan ini sibuk buat sementara waktu, sila cuba lagi."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "Suka"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "Disukai"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "Batal"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "Log Keluar"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Dilog masuk menggunakan Facebook"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "Dilog masuk sebagai %@"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "Log masuk"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Teruskan dengan Facebook"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Log masuk dengan Facebook"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "Log keluar"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "Akses ke akaun Facebook tidak diberikan. Sahkan tetapan peranti."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "Tidak dapat menyambung ke Facebook. Semak sambungan rangkaian anda dan cuba lagi."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "Kata laluan Facebook anda telah ditukar. Untuk mengesahkan kata laluan anda, buka Tetapan > Facebook dan ketik nama anda."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "Akaun Facebook masih belum dikonfigurasikan pada peranti."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "Akaun anda tidak disahkan. Sila log masuk ke www.facebook.com dan ikuti arahan yang diberi."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "Anda tidak boleh log masuk ke aplikasi pada masa ini. Sila log masuk ke www.facebook.com dan ikuti arahan yang diberi."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "Anda yang mengawal - pilih maklumat yang anda ingin kongsi dengan apl."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "Log Masuk"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "Hantar"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "Kongsi"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "Sahkan Log Masuk"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "Teruskan sebagai %@"; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- ATAU -"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/nb.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/nb.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..2307ecb030357 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/nb.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "Gå til %@, og oppgi koden som vises ovenfor."; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "Koble til kontoen din ved å åpne Facebook-appen på mobilenheten din og se etter varsler."; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- ELLER -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "OK"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "Avbryt"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "Logg deg inn igjen på denne appen for å koble til Facebook-kontoen på nytt."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "OK"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "Serveren er midlertidig opptatt. Prøv på nytt."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "Liker"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "Likt"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "Avbryt"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "Logg ut"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Logget inn med Facebook"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "Logget inn som %@"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "Logg inn"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Fortsett med Facebook"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Logg inn med Facebook"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "Logg ut"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "Det er ikke gitt tilgang til Facebook-kontoen. Bekreft enhetsinnstillinger."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "Kunne ikke koble til Facebook. Kontroller nettverkstilkoblingen, og prøv på nytt."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "Facebook-passordet ditt er endret. Bekreft passordet ditt ved å gå til Innstillinger > Facebook og trykke på navnet ditt."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "Facebook-kontoen er ikke konfigurert på enheten."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "Kontoen din er bekreftet. Logg deg inn på www.facebook.com, og følg instruksjonene."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "Du kan ikke logge deg inn på apper for øyeblikket. Logg deg inn på www.facebook.com, og følg instruksjonene."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "Du bestemmer – velg hvilke opplysninger du vil dele med appene."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "Logg inn"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "Send"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "Del"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "Ikke deg?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "Bekreft innlogging"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "Fortsett som %@"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/nl.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/nl.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..899870ef3f9ed --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/nl.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "Ga naar %@ en voer de bovenstaande code in."; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "Om je account te verbinden, open je de Facebook-app op je mobiele apparaat en controleer of je meldingen ziet."; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- OF -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "OK"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "Annuleren"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "Meld je nogmaals aan bij deze app om verbinding te maken met je Facebook-account."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "OK"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "De server is tijdelijk niet beschikbaar. Probeer het opnieuw."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "Vind ik leuk"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "Vind ik leuk"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "Annuleren"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "Afmelden"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Aangemeld via Facebook"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "Aangemeld als %@"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "Aanmelden"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Doorgaan met Facebook"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Aanmelden met Facebook"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "Afmelden"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "Er is geen toegang verleend aan het Facebook-account. Verifieer de apparaatinstellingen."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "Er kan geen verbinding worden gemaakt met Facebook. Controleer je netwerkverbinding en probeer het opnieuw."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "Je Facebook-wachtwoord is gewijzigd. Open Instellingen > Facebook en tik op je naam om je wachtwoord te bevestigen."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "Het Facebook-account is niet geconfigureerd op het apparaat."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "Je account is niet bevestigd. Meld je aan bij www.facebook.com en volg de instructies."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "Je kunt je momenteel niet aanmelden bij apps. Meld je aan bij www.facebook.com en volg de instructies."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "Jij hebt de controle. Kies welke informatie je met apps wilt delen."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "Aanmelden"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "Verzenden"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "Delen"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "Ben jij dit niet?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "Aanmelden bevestigen"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "Doorgaan als %@"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/pa.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/pa.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..29ca536836bd1 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/pa.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "%@ ਵਿੱਚ ਜਾਓ ਅਤੇ ਉੱਤੇ ਦਿਖਾਏ ਗਏ ਕੋਡ ਨੂੰ ਦਾਖ਼ਲ ਕਰੋ।"; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "ਆਪਣੇ ਖਾਤੇ ਨਾਲ ਕਨੈਕਟ ਕਰਨ ਲਈ, ਆਪਣੀ ਮੋਬਾਈਲ ਡਿਵਾਈਸ 'ਤੇ Facebook ਐਪ ਨੂੰ ਖੋਲ੍ਹੋ ਅਤੇ ਸੂਚਨਾਵਾਂ ਨੂੰ ਦੇਖੋ।"; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- ਜਾਂ -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "ਠੀਕ"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "ਰੱਦ ਕਰੋ"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "ਕਿਰਪਾ ਕਰਕੇ ਆਪਣੇ Facebook ਖਾਤੇ ਨਾਲ ਮੁੜ ਕਨੈਕਟ ਕਰਨ ਲਈ ਇਸ ਐਪ ਵਿੱਚ ਦੁਬਾਰਾ ਲੌਗ ਇਨ ਕਰੋ।"; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "ਠੀਕ"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "ਇਹ ਸਰਵਰ ਅਸਥਾਈ ਰੂਪ ਵਿੱਚ ਵਿਅਸਤ ਹੈ, ਕਿਰਪਾ ਕਰਕੇ ਦੁਬਾਰਾ ਕੋਸ਼ਿਸ਼ ਕਰੋ।"; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "ਪਸੰਦ ਕਰੋ"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "ਪਸੰਦ ਕੀਤਾ ਗਿਆ"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "ਰੱਦ ਕਰੋ"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "ਲੌਗ ਆਉਟ ਕਰੋ"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Facebook ਦਾ ਉਪਯੋਗ ਕਰਕੇ ਲੌਗ ਇਨ ਕੀਤਾ ਗਿਆ"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "%@ ਵੱਜੋਂ ਲੌਗ ਇਨ ਕੀਤਾ ਗਿਆ"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "ਲੌਗ ਇਨ ਕਰੋ"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Facebook ਦੇ ਨਾਲ ਜਾਰੀ ਰੱਖੋ"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Facebook ਦੇ ਨਾਲ ਲੌਗ ਇਨ ਕਰੋ"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "ਲੌਗ ਆਉਟ ਕਰੋ"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "Facebook ਖਾਤੇ ਨੂੰ ਐਕਸੈਸ ਪ੍ਰਦਾਨ ਨਹੀਂ ਕੀਤੀ ਗਈ। ਡਿਵਾਈਸ ਸੈੱਟਿੰਗਜ਼ ਦੀ ਪੁਸ਼ਟੀ ਕਰੋ।"; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "Facebook ਨਾਲ ਕਨੈਕਟ ਕਰਨ ਵਿੱਚ ਅਸਮਰਥਿਤ ਆਪਣੇ ਨੈੱਟਵਰਕ ਕਨੈਕਸ਼ਨ ਦੀ ਜਾਂਚ ਕਰੋ ਅਤੇ ਦੁਬਾਰਾ ਕੋਸ਼ਿਸ਼ ਕਰੋ।"; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "ਤੁਹਾਡੇ Facebook ਪਾਸਵਰਡ ਨੂੰ ਬਦਲ ਦਿੱਤਾ ਗਿਆ ਹੈ। ਆਪਣੇ ਪਾਸਵਰਡ ਦੀ ਪੁਸ਼ਟੀ ਕਰਨ ਲਈ, ਸੈੱਟਿੰਗਜ਼ > Facebook ਖੋਲ੍ਹੋ ਅਤੇ ਆਪਣੇ ਨਾਂ ਨੂੰ ਟੈਪ ਕਰੋ।"; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "Facebook ਖਾਤੇ ਨੂੰ ਡਿਵਾਈਸ 'ਤੇ ਕਨਫ਼ੀਗਰ ਨਹੀਂ ਕੀਤਾ ਗਿਆ ਹੈ।"; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "ਤੁਹਾਡੇ ਖਾਤੇ ਦੀ ਪੁਸ਼ਟੀ ਨਹੀਂ ਕੀਤੀ ਗਈ ਹੈ। ਕਿਰਪਾ ਕਰਕੇ www.facebook.com ਵਿੱਚ ਲੌਗ ਇਨ ਕਰੋ ਅਤੇ ਹੇਠਾਂ ਦਿੱਤੇ ਨਿਰਦੇਸ਼ਾਂ ਦਾ ਪਾਲਣ ਕਰੋ।"; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "ਤੁਸੀਂ ਇਸ ਸਮੇਂ ਐਪ ਵਿੱਚ ਲੌਗ ਇਨ ਨਹੀਂ ਕਰ ਸਕਦੇ ਹੋ। ਕਿਰਪਾ ਕਰਕੇ www.facebook.com ਵਿੱਚ ਲੌਗ ਇਨ ਕਰੋ ਅਤੇ ਹੇਠਾਂ ਦਿੱਤੇ ਨਿਰਦੇਸ਼ਾਂ ਦਾ ਪਾਲਣ ਕਰੋ।"; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "ਤੁ\ਸੀਂ ਨਿਯੰਤਰਣ ਵਿੱਚ ਹੋ - ਉਹ ਜਾਣਕਾਰੀ ਚੁਣੋ ਜੋ ਤੁਸੀਂ ਐਪਸ ਦੇ ਨਾਲ ਸਾਂਝੀ ਕਰਨੀ ਚਾਹੁੰਦੇ ਹੋ।"; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "ਲੌਗ ਇਨ ਕਰੋ"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "ਸਾਂਝਾ ਕਰੋ"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "ਭੇਜੋ"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "ਕੀ ਤੁਸੀਂ ਨਹੀਂ ਹੋ?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "ਲੌਗਇਨ ਦੀ ਪੁਸ਼ਟੀ ਕਰੋ"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "%@ ਵੱਜੋਂ ਜਾਰੀ ਰੱਖੋ"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/pl.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/pl.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..f7e86816c49c0 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/pl.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "Wejdź na stronę %@ i wprowadź podany powyżej kod."; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "Aby połączyć konto, otwórz aplikację Facebook na urządzeniu mobilnym i sprawdź powiadomienia."; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- LUB -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "OK"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "Anuluj"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "Zaloguj się jeszcze raz do aplikacji, aby ponownie przyłączyć swoje konto na Facebooku."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "OK"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "Serwer jest zajęty, spróbuj później."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "Lubię to!"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "Polubione"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "Anuluj"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "Wyloguj się"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Zalogowano przez Facebooka"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "Zalogowano jako %@"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "Zaloguj się"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Kontynuuj za pośrednictwem Facebooka"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Zaloguj się przez Facebooka"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "Wyloguj się"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "Brak dostępu z tego konta na Facebooku. Sprawdź ustawienia urządzenia."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "Nie można połączyć się z Facebookiem. Sprawdź połączenie sieciowe i spróbuj ponownie."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "Twoje hasło do Facebooka zostało zmienione. Aby potwierdzić hasło, otwórz Ustawienia > Facebook i dotknij swojego imienia i nazwiska."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "Na tym urządzeniu nie skonfigurowano konta na Facebooku."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "Konto niepotwierdzone. Zaloguj się przez stronę www.facebook.com i postępuj zgodnie ze wskazówkami."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "Brak możliwości logowania się do aplikacji. Zaloguj się przez stronę www.facebook.com i postępuj zgodnie ze wskazówkami."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "Masz pełną kontrolę – określ, jakie informacje chcesz udostępniać aplikacjom."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "Zaloguj się"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "Wyślij"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "Udostępnij"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "To nie Ty?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "Potwierdź logowanie"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "Kontynuuj jako %@"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/pt.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/pt.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..781791229d8f1 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/pt.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "Acesse %@ e introduza o código mostrado acima."; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "Para conectar sua conta, abra o aplicativo Facebook em seu dispositivo móvel e verifique se tem notificações."; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "– OU –"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "OK"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "Cancelar"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "Entre nesse aplicativo novamente para reconectar sua conta do Facebook."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "OK"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "O servidor está temporariamente ocupado. Tente novamente."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "Curtir"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "Curtiu"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "Cancelar"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "Sair"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Você entrou usando o Facebook"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "Conectado como %@"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "Entrar"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Continuar com o Facebook"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Entrar com o Facebook"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "Sair"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "O acesso à conta do Facebook não foi permitido. Verifique as configurações do dispositivo."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "Não foi possível se conectar ao Facebook. Verifique sua conexão de rede e tente novamente."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "A sua senha do Facebook foi alterada. Para confirmar a sua senha, abra Configurações > Facebook e toque no seu nome."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "A conta do Facebook não foi configurada no dispositivo."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "A sua conta não foi confirmada. Entre no site www.facebook.com e siga as instruções fornecidas."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "Não é possível entrar em aplicativos neste momento. Entre no site www.facebook.com e siga as instruções fornecidas."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "Você é quem controla — escolha quais informações você quer compartilhar com os aplicativos."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "Entrar"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "Envio"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "Compartilhar"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "Não é você?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "Confirme o login"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "Continue como %@"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/pt_PT.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/pt_PT.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..1fd2d29ea4724 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/pt_PT.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "Visita %@ e introduz o código mostrado acima."; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "Para ligares a tua conta, abre a app Facebook no teu dispositivo móvel e verifica se tens notificações."; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "– OU –"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "OK"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "Cancelar"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "Volta a iniciar sessão nesta aplicação para te ligares novamente à tua conta do Facebook."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "OK"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "O servidor está temporariamente ocupado. Tenta novamente."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "Gosto"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "Gostei"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "Cancelar"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "Terminar sessão"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Com sessão iniciada através do Facebook"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "Com sessão iniciada como %@"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "Iniciar sessão"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Continuar com o Facebook"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Iniciar sessão com o Facebook"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "Terminar a sessão"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "O acesso não foi concedido à conta do Facebook. Verificar as definições do dispositivo."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "Não é possível ligar ao Facebook. Verifica a tua ligação à rede e tenta novamente."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "A tua palavra-passe do Facebook foi alterada. Para confirmares a tua palavra-passe, abre as Definições > Facebook e toca no teu nome."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "A conta do Facebook não foi configurada no dispositivo."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "A tua conta não foi confirmada. Inicia sessão em www.facebook.com e segue as instruções indicadas."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "Não podes iniciar sessão em aplicações neste momento. Inicia sessão em www.facebook.com e segue as instruções indicadas."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "Tens o controlo: escolhe a informação que pretendes partilhar com as apps."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "Iniciar sessão"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "Enviar"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "Partilhar"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "Não és tu?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "Confirmar Início de Sessão"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "Continuar como %@"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/ru.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/ru.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..114e0be23d0e6 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/ru.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "Откройте страницу %@ и введите представленный выше код."; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "Чтобы подключить аккаунт, откройте приложение Facebook на мобильном устройстве и проверьте уведомления."; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- ИЛИ -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "OK"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "Отменить"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "Войдите в это приложение еще раз, чтобы повторно подключить ваш аккаунт Facebook."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "OK"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "Сервер временно загружен, повторите попытку."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "Нравится"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "Понравилось"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "Отменить"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "Выход"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Выполнен вход с помощью Facebook"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "Вы вошли как %@"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "Вход"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Продолжить с Facebook"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Вход через Facebook"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "Выход"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "Аккаунту Facebook доступ не предоставлен. Проверьте настройки устройства."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "Не удалось подключиться к Facebook. Проверьте сетевое подключение и повторите попытку."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "Ваш пароль Facebook изменен. Чтобы подтвердить пароль, откройте «Настройки» > Facebook и коснитесь вашего имени."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "На устройстве не настроен аккаунт Facebook."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "Ваш аккаунт не подтвержден. Войдите на сайт www.facebook.com и следуйте инструкциям."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "Сейчас нельзя войти в приложения. Войдите на сайт www.facebook.com и следуйте инструкциям."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "Вы сами выбираете, какой информацией поделиться с приложениями."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "Вход в систему"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "Отправить"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "Поделиться"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "Это не вы?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "Подтвердить вход"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "Продолжить как %@"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/sk.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/sk.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..1c1e2a8363e5c --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/sk.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "Navštívte stránku %@ a zadajte kód zobrazený vyššie."; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "Na pripojenie svojho účtu otvorte vo svojom mobilnom zariadení aplikáciu Facebook a skontrolujte upozornenia."; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- ALEBO -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "OK"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "Zrušiť"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "Ak sa chcete znova pripojiť k svojmu účtu na Facebooku, prihláste sa znova do tejto aplikácie."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "OK"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "Server je dočasne zaneprázdnený – skúste znova."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "Páči sa mi to"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "Páči sa mi to"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "Zrušiť"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "Odhlásiť"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Prihlásený cez Facebook"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "Prihlásený ako %@"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "Prihlásiť sa"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Pokračovať s Facebookom"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Prihlásiť sa cez Facebook"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "Odhlásiť sa"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "Danému účtu na Facebooku nebol poskytnutý prístup. Skontrolujte nastavenia zariadenia."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "Nedá sa pripojiť k Facebooku. Skontrolujte svoje sieťové pripojenie a skúste znova."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "Vaše heslo pre Facebook sa zmenilo. Na potvrdenie svojho hesla otvorte Nastavenia > Facebook a ťuknite na svoje meno."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "Daný účet na Facebooku nebol nastavený v zariadení."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "Váš účet nie je potvrdený. Prihláste sa na stránke www.facebook.com a postupujte podľa pokynov."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "Momentálne sa nemôžete prihlásiť do aplikácií. Prihláste sa na stránke www.facebook.com a postupujte podľa pokynov."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "Máte to pod kontrolou: vyberte, ktoré informácie chcete zdieľať s aplikáciami."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "Prihlásenie sa"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "Odoslať"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "Zdieľať"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "Nie ste to vy?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "Potvrdiť prihlásenie"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "Pokračovať ako %@"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/sv.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/sv.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..3fd3107bfd229 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/sv.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "Besök %@ och ange koden som visas ovan."; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "Koppla ditt konto genom att öppna Facebook-appen på din mobila enhet och söka efter aviseringar."; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- ELLER -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "OK"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "Avbryt"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "Logga in på den här appen igen om du vill ansluta ditt Facebook-konto på nytt."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "OK"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "Servern är upptagen för tillfället. Försök igen."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "Gilla"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "Gillade"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "Avbryt"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "Logga ut"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Inloggad med Facebook"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "Inloggad som %@"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "Logga in"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Fortsätt med Facebook"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Logga in med Facebook"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "Logga ut"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "Du har inte fått tillgång till Facebook-kontot. Verifiera enhetsinställningar."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "Det går inte att ansluta till Facebook. Kontrollera nätverksanslutningen och försök igen."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "Ditt Facebook-lösenord har ändrats. Bekräfta lösenordet genom att öppna Inställningar > Facebook och skriva in ditt namn."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "Facebook-konto har inte konfigurerats på enheten."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "Ditt konto har inte bekräftats. Logga in på www.facebook.com och följ instruktionerna."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "Du kan inte logga in på appar för närvarande. Logga in på www.facebook.com och följ instruktionerna."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "Du bestämmer – välj vilken info du vill dela med appar."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "Logga in"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "Skicka"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "Dela"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "Inte du?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "Bekräfta inloggning"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "Fortsätt som %@"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/ta.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/ta.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..c0d2d08da8e51 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/ta.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "%@ என்பதற்குச் சென்று மேலே தெரியும் குறியீட்டை உள்ளிடவும்."; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "உங்கள் கணக்குடன் இணைக்க, உங்கள் மொபைல் சாதனத்தில் Facebook பயன்பாட்டைத் திறந்து அறிவிப்புகளைப் பார்க்கவும்."; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- அல்லது -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "சரி"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "ரத்துசெய்"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "உங்கள் Facebook கணக்கில் மீண்டும் இணைய, இந்தப் பயன்பாட்டில் மீண்டும் உள்நுழையவும்."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "சரி"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "சேவையகம் தற்காலிகமாக பிஸியாக உள்ளது, மீண்டும் முயற்சிக்கவும்."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "விருப்பம்"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "விரும்பப்பட்டது"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "ரத்துசெய்"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "வெளியேறு"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Facebook மூலம் உள்நுழையப்பட்டுள்ளது"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "%@ இல் உள்நுழைந்துள்ளீர்கள்"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "உள்நுழைவு"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Facebook இல் தொடரவும்"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Facebook மூலம் உள்நுழையவும்"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "வெளியேறு"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "Facebook கணக்கிற்கு அணுகல் வழங்கப்படவில்லை. சாதன அமைப்புகளைச் சரிபார்க்கவும்."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "Facebook இல் இணைய முடியவில்லை. இணைய இணைப்பைச் சரிபார்த்து, மீண்டும் முயற்சிக்கவும்."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "Facebook கடவுச்சொல் மாற்றப்பட்டது. கடவுச்சொல்லை உறுதிசெய்ய, அமைப்புகள் > Facebook க்கு சென்று உங்கள் பெயரைத் தட்டவும்."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "சாதனத்தில் Facebook கணக்கு உள்ளமைக்கப்படவில்லை."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "உங்கள் கணக்கு உறுதிசெய்யப்படவில்லை. www.facebook.com இல் உள்நுழைந்து, வழங்கப்பட்டுள்ள வழிமுறைகளைப் பின்பற்றவும்."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "இப்போது பயன்பாடுகளில் உள்நுழைய முடியாது. www.facebook.com இல் உள்நுழைந்து, வழங்கப்பட்டுள்ள வழிமுறைகளைப் பின்பற்றவும்."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "பயன்பாடுகளில் எந்தத் தகவலைப் பகிர விரும்புகிறீர்கள் என்பதை நீங்கள் கட்டுப்படுத்தலாம்."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "உள்நுழைவு"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "அனுப்பு"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "பகிர்"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "நீங்கள் இல்லையா?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "உள்நுழைவை உறுதிப்படுத்தவும்"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "%@ ஆகத் தொடரவும்"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/te.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/te.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..7605c9b5e806c --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/te.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "%@ లింక్‌ను సందర్శించి, ఎగువ చూపిన కోడ్‌ను నమోదు చేయండి."; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "మీ ఖాతాను అనుసంధానించడానికి, మీ మొబైల్ పరికరంలో Facebook అనువర్తనాన్ని తెరిచి, నోటిఫికేషన్‌లను తనిఖీ చేయండి."; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- లేదా -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "ఒప్పుకుంటున్నాను"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "రద్దు చేయి"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "దయచేసి మీ Facebook ఖాతాను మళ్లీ కనెక్ట్ చేయడానికి ఈ అప్లికేషన్‌కు మళ్లీ లాగిన్ చేయండి."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "ఒప్పుకుంటున్నాను"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "సర్వర్ తాత్కాలికంగా బిజీగా ఉంది, దయచేసి మళ్లీ ప్రయత్నించండి."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "ఇష్టంగా గుర్తు పెట్టు"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "ఇష్టంగా గుర్తు పెట్టబడింది"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "రద్దు చేయి"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "లాగ్ అవుట్ చేయి"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Facebook ఉపయోగించి లాగిన్ చేసారు"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "%@గా లాగిన్ చేసారు"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "లాగిన్ చేయి"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Facebookతో కొనసాగించండి"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Facebookతో లాగిన్ చేయి"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "లాగ్ అవుట్ చేయి"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "Facebook ఖాతాకు ప్రాప్యత మంజూరు చేయలేదు. పరికర సెట్టింగ్‌లను సరిచూడండి."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "Facebookకి కనెక్ట్ చేయడం సాధ్యపడలేదు. మీ నెట్‌వర్క్ కనెక్షన్‌ను తనిఖీ చేసి, మళ్లీ ప్రయత్నించండి."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "మీ Facebook పాస్‌వర్డ్ మారింది. మీ పాస్‌వర్డ్‌ను నిర్ధారించడానికి, సెట్టింగ్‌లు > Facebook తెరిచి, మీ పేరు నొక్కండి."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "పరికరంలో Facebook ఖాతా కాన్ఫిగర్ చేయబడలేదు."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "మీ ఖాతా నిర్ధారించబడలేదు. దయచేసి www.facebook.comకి లాగిన్ చేసి, అందించిన సూచనలను అనుసరించండి."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "ప్రస్తుతం మీరు అప్లికేషన్‌లకు లాగిన్ చేయలేరు. దయచేసి www.facebook.comకి లాగిన్ చేసి, అందించిన సూచనలను అనుసరించండి."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "మీకు నియంత్రణ ఉంది - మీరు అనువర్తనాలతో భాగస్వామ్యం చేయాలనుకునే సమాచారాన్ని ఎంచుకోండి."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "లాగిన్ చేయండి"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "పంపు"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "భాగస్వామ్యం చేయండి"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "మీరు కాదా?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "లాగిన్‌ను నిర్ధారించండి"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "%@ వలె కొనసాగండి"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/th.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/th.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..8c5c9fde4919b --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/th.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "ไปที่ %@ และใส่โค้ดที่แสดงด้านบน"; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "หากต้องการเชื่อมต่อบัญชีผู้ใช้ของคุณ ให้เปิดแอพ Facebook บนอุปกรณ์มือถือของคุณและตรวจสอบการแจ้งเตือน"; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- หรือ -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "ตกลง"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "ยกเลิก"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "โปรดลงชื่อเข้าใช้แอพนี้อีกครั้งเพื่อเชื่อมต่อบัญชีผู้ใช้ Facebook ของคุณใหม่"; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "ตกลง"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "เซิร์ฟเวอร์ไม่พร้อมให้บริการชั่วคราว โปรดลองใหม่อีกครั้ง"; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "ถูกใจ"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "ถูกใจแล้ว"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "ยกเลิก"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "ออกจากระบบ"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "เข้าสู่ระบบโดยใช้ Facebook"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "เข้าสู่ระบบในชื่อ %@"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "เข้าสู่ระบบ"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "ดำเนินการต่อด้วย Facebook"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "เข้าสู่ระบบด้วย Facebook"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "ออกจากระบบ"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "บัญชีผู้ใช้ Facebook ไม่ได้รับอนุญาตให้เข้าถึง ตรวจสอบการตั้งค่าของอุปกรณ์"; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "ไม่สามารถเชื่อมต่อกับ Facebook ตรวจสอบการเชื่อมต่อเครือข่ายและลองอีกครั้ง"; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "เปลี่ยนรหัสผ่าน Facebook ของคุณแล้ว เพื่อยืนยันรหัสผ่านของคุณ ให้เปิด การตั้งค่า > Facebook แล้วแตะชื่อของคุณ"; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "บัญชีผู้ใช้ Facebook ไม่ได้รับการกำหนดค่าบนอุปกรณ์เครื่องนี้"; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "บัญชีผู้ใช้ของคุณไม่ได้รับการยืนยัน โปรดเข้าสู่ระบบที่ www.facebook.com และทำตามคำแนะนำที่ปรากฏ"; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "คุณไม่สามารถเข้าสู่ระบบของแอพได้ในตอนนี้ โปรดเข้าสู่ระบบที่ www.facebook.com และทำตามคำแนะนำที่ปรากฏ"; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "คุณเป็นฝ่ายควบคุม โปรดเลือกข้อมูลที่คุณต้องการแชร์ด้วยแอพ"; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "เข้าสู่ระบบ"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "ส่ง"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "แชร์"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "หากไม่ใช่คุณ"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "ยืนยันการเข้าสู่ระบบ"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "ดำเนินการต่อในชื่อ %@"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/tr.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/tr.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..3d57b8f2190f9 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/tr.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "%@ adresini ziyaret edin ve yukarıda görülen kodu girin."; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "Hesabınızı bağlamak için, mobil cihazınızda Facebook uygulamasını açın ve bildirimlerinizi kontrol edin."; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- YA DA -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "Tamam"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "İptal"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "Facebook hesabına yeniden bağlanmak için lütfen bu uygulamaya tekrar giriş yap."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "Tamam"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "Sunucu geçici olarak meşgul. Lütfen tekrar dene."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "Beğen"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "Beğendin"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "İptal"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "Çıkış Yap"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Facebook ile giriş yapıldı"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "%@ olarak giriş yapıldı"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "Giriş yap"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Facebook ile Devam Et"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Facebook ile giriş yap"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "Çıkış yap"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "Facebook hesabına erişim izni verilmedi. Cihaz ayarlarını doğrula."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "Facebook'a bağlanılamıyor. Ağ bağlantını kontrol edip tekrar dene."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "Facebook şifren değiştirildi. Şifreni onaylamak için Ayarlar > Facebook'u aç ve adına dokunun."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "Facebook hesabı cihaz üzerinde yapılandırılmadı."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "Hesabın onaylanmadı. Lütfen www.facebook.com adresine giriş yap ve verilen talimatları izle."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "Şu an için uygulamalara giriş yapamazsın. Lütfen www.facebook.com adresine giriş yap ve verilen talimatları izle."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "Kontrol sende. Uygulamalarla paylaşmak istediğin bilgileri seç."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "Giriş Yap"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "Gönder"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "Paylaş"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "Sen değil misin?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "Girişi Onayla"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "%@ olarak devam et"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/vi.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/vi.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..e7b69465efb0d --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/vi.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "Truy cập %@ và nhập mã hiển thị ở trên."; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "Để kết nối tài khoản của bạn, hãy mở ứng dụng Facebook trên thiết bị di động và kiểm tra thông báo."; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- HOẶC -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "OK"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "Hủy"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "Vui lòng đăng nhập lại vào ứng dụng này để kết nối lại tài khoản Facebook của bạn."; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "OK"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "Máy chủ hiện đang bận, vui lòng thử lại sau."; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "Thích"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "Đã thích"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "Hủy"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "Đăng xuất"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "Đã đăng nhập bằng Facebook"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "Đã đăng nhập với tư cách là"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "Đăng nhập"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "Tiếp tục với Facebook"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "Đăng nhập bằng Facebook"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "Đăng xuất"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "Quyền truy cập chưa được cấp cho tài khoản Facebook. Xác minh thiết lập của thiết bị."; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "Không thể kết nối với Facebook. Vui lòng kiểm tra kết nối mạng của bạn và thử lại."; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "Mật khẩu Facebook của bạn đã thay đổi. Để xác nhận mật khẩu của bạn, hãy mở Thiết lập > Facebook và nhấn vào tên bạn."; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "Tài khoản Facebook chưa được định cấu hình trên thiết bị."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "Tài khoản của bạn không được xác nhận. Vui lòng đăng nhập vào www.facebook.com và làm theo hướng dẫn được cung cấp."; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "Bạn không thể đăng nhập vào các ứng dụng lúc này. Vui lòng đăng nhập vào www.facebook.com và làm theo hướng dẫn được cung cấp."; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "Bạn đang có quyền kiểm soát - hãy chọn thông tin bạn muốn chia sẻ với ứng dụng."; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "Đăng nhập"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "Gửi"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "Chia sẻ"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "Không phải bạn?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "Xác nhận đăng nhập"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "Tiếp tục với tư cách %@"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/zh.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/zh.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..e153685846a6f --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/zh.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "请访问 %@ 并输入上方显示的验证码。"; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "要关联你的帐户,请在移动设备上打开 Facebook 应用,并查看通知。"; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- 或者 -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "确定"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "取消"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "请再次登录此应用,以便重新连接您的 Facebook 帐户。"; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "确定"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "服务器暂时繁忙,请重试。"; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "赞"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "赞了"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "取消"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "退出"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "已使用 Facebook 登录"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "已以 %@ 身份登录"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "登录"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "继续使用 Facebook 登录"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "使用 Facebook 登录"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "退出"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "未授予该 Facebook 帐户访问权限。验证设备设置。"; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "无法连接到 Facebook。检查网络连接并重试。"; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "您的 Facebook 密码已更改。要确认密码,请打开设置 > Facebook,并轻触您的姓名。"; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "未在设备上配置 Facebook 帐户。"; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "您的帐户未确认。请登录 www.facebook.com,并按照提供的说明操作。"; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "您此时不能登录应用。请登录 www.facebook.com,并按照提供的说明操作。"; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "一切任您掌控 — 选择您想通过应用分享的信息。"; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "登录"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "发送"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "分享"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "不是你?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "确认登录"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "以%@的身份继续"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/zh_Hant_HK.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/zh_Hant_HK.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..fcf0c3ed3bcdc --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/zh_Hant_HK.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "前往 %@ 並輸入上方的程式碼。"; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "若要連結您的帳戶,請在您的流動裝置上開啟 Facebook 應用程式並查看通知。"; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- 或 -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "確定"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "取消"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "請再次登入此應用程式以重新連接您的 Facebook 帳戶。"; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "確定"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "伺服器暫時忙碌中,請再試一次。"; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "讚好"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "已讚好"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "取消"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "登出"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "使用 Facebook 登入"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "以 %@ 身分登入"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "登入"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "繼續使用 Facebook"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "使用 Facebook 登入"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "登出"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "沒有獲得 Facebook 帳戶的存取授權。確認裝置設定。"; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "無法與 Facebook 連線。請檢查網絡連線,然後再試一次。"; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "您的 Facebook 密碼已經變更。要確認密碼,請開啟設定 > Facebook,然後點按您的名稱。"; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "Facebook 帳戶尚未在此裝置上設定。"; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "您的帳戶尚未確認。請登入 www.facebook.com 並依據指示操作。"; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "您現時無法登入應用程式。請登入 www.facebook.com 並依據指示操作。"; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "控制權在您 - 選擇您要與應用程式分享的資訊。"; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "登入"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "傳送"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "分享"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "這不是您?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "確認登入"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "以%@的身分繼續"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/zh_Hant_TW.lproj/FacebookSDK.strings b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/zh_Hant_TW.lproj/FacebookSDK.strings new file mode 100644 index 0000000000000..f02b0c86de68e --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/FacebookSDKStrings.bundle/Resources/zh_Hant_TW.lproj/FacebookSDK.strings @@ -0,0 +1,92 @@ +/* Prompts a person to go to the URL listed to enter the confirmation code that is presented to them above the given string. */ +"DeviceLogin.LogInPrompt" = "請前往 %@ 並輸入上方顯示的代碼。"; + +/* Prompts a person that the next thing they need to do to finish connecting their Smart TV and Facebook application is to navigate to their Facebook application on their mobile device and look through their notifications for a message about the connection being formed */ +"DeviceLogin.SmartLogInPrompt" = "若要連結帳號,請從行動裝置開啟 Facebook 應用程式,並查看通知。"; + +/* Displayed as a separator between two options. First option is on a line above this, and second option is below */ +"DeviceLogin.SmartLogInOrLabel" = "- 或 -"; + +/* The title of the label to dismiss the alert when presenting user facing error messages */ +"ErrorRecovery.Alert.OK" = "是"; + +/* The title of the label to decline attempting error recovery */ +"ErrorRecovery.Cancel" = "取消"; + +/* The fallback message to display to recover invalidated tokens */ +"ErrorRecovery.Login.Suggestion" = "請重新登入此應用程式以重新連結您的 Facebook 帳號。"; + +/* The title of the label to start attempting error recovery */ +"ErrorRecovery.OK" = "是"; + +/* The fallback message to display to retry transient errors */ +"ErrorRecovery.Transient.Suggestion" = "伺服器暫時忙碌中,請再試一次。"; + +/* The label for the FBSDKLikeButton when the object is not currently liked. */ +"LikeButton.Like" = "讚"; + +/* The label for the FBSDKLikeButton when the object is currently liked. */ +"LikeButton.Liked" = "說讚"; + +/* The label for the FBSDKLoginButton action sheet to cancel logging out */ +"LoginButton.CancelLogout" = "取消"; + +/* The label for the FBSDKLoginButton action sheet to confirm logging out */ +"LoginButton.ConfirmLogOut" = "登出"; + +/* The fallback string for the FBSDKLoginButton label when the user name is not available yet */ +"LoginButton.LoggedIn" = "已使用 Facebook 登入"; + +/* The format string for the FBSDKLoginButton label when the user is logged in */ +"LoginButton.LoggedInAs" = "以 %@ 身分登入"; + +/* The short label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogIn" = "登入"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInContinue" = "繼續使用 Facebook 帳號"; + +/* The long label for the FBSDKLoginButton when the user is currently logged out */ +"LoginButton.LogInLong" = "使用 Facebook 登入"; + +/* The label for the FBSDKLoginButton when the user is currently logged in */ +"LoginButton.LogOut" = "登出"; + +/* The user facing error message when the app slider has been disabled and login fails. */ +"LoginError.SystemAccount.Disabled" = "尚未取得授權,無法存取 Facebook 帳號。請確認裝置設定。"; + +/* The user facing error message when the Accounts framework encounters a network error. */ +"LoginError.SystemAccount.Network" = "無法連線到 Facebook。請檢查網路連線,然後再試一次。"; + +/* The user facing error message when the device Facebook account password is incorrect and login fails. */ +"LoginError.SystemAccount.PasswordChange" = "您的 Facebook 密碼已經更改。若要確認您的密碼,請開啟「設定」>「Facebook」,然後點按您的姓名。"; + +/* The user facing error message when the device Facebook account is unavailable and login fails. */ +"LoginError.SystemAccount.Unavailable" = "尚未透過裝置設定 Facebook 帳號。"; + +/* The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed. */ +"LoginError.SystemAccount.UnconfirmedUser" = "您的帳號尚未確認。請登入 www.facebook.com,然後按照指示操作。"; + +/* The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed. */ +"LoginError.SystemAccount.UserCheckpointed" = "您目前無法登入應用程式。請登入 www.facebook.com,然後按照指示操作。"; + +/* The message of the FBSDKLoginTooltipView */ +"LoginTooltip.Message" = "您可以全盤掌控!選擇您想和應用程式分享的資訊內容。"; + +/* Title of the web dialog that prompts the user to log in to Facebook. */ +"LoginWeb.LogInTitle" = "登入"; + +/* The label for FBSDKSendButton */ +"SendButton.Send" = "傳送"; + +/* The label for FBSDKShareButton */ +"ShareButton.Share" = "分享"; + +/* Prompts a person if this is their current account */ +"SmartLogin.NotYou" = "這不是您?"; + +/* Text on a button that a person presses to confirm that they are finished with the login experience */ +"SmartLogin.ConfirmationTitle" = "確認登入"; + +/* Text on a button that lets a person continue with their name linked to a Facebook account (Name = %@) */ +"SmartLogin.Continue" = "以 %@ 身分繼續"; diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/LICENSE b/apps/bare-expo/ios/Pods/FBSDKCoreKit/LICENSE new file mode 100644 index 0000000000000..bdb9fc54bed90 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/LICENSE @@ -0,0 +1,17 @@ +Copyright (c) 2014-present, Facebook, Inc. All rights reserved. + +You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +copy, modify, and distribute this software in source code or binary form for use +in connection with the web services and APIs provided by Facebook. + +As with any software that integrates with the Facebook platform, your use of +this software is subject to the Facebook Developer Principles and Policies +[http://developers.facebook.com/policy/]. This copyright notice shall be +included in all copies or substantial portions of the software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/apps/bare-expo/ios/Pods/FBSDKCoreKit/README.md b/apps/bare-expo/ios/Pods/FBSDKCoreKit/README.md new file mode 100644 index 0000000000000..ad7fa154a7d98 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKCoreKit/README.md @@ -0,0 +1,62 @@ +# Facebook SDK for iOS + +[![Platforms](https://img.shields.io/cocoapods/p/FBSDKCoreKit.svg)](https://cocoapods.org/pods/FBSDKCoreKit) +[![Build Status](https://travis-ci.org/facebook/facebook-ios-sdk.svg?branch=master)](https://travis-ci.org/facebook/facebook-ios-sdk) + +[![CocoaPods](https://img.shields.io/cocoapods/v/FBSDKCoreKit.svg)](https://cocoapods.org/pods/FBSDKCoreKit) +[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) + +This open-source library allows you to integrate Facebook into your iOS app. + +Learn more about the provided samples, documentation, integrating the SDK into your app, accessing source code, and more +at https://developers.facebook.com/docs/ios + +NOTE: By default, the Facebook SDK for iOS is installed in ~/Documents/FacebookSDK + +## TRY IT OUT + +1. Download the SDK at or via CocoaPods by adding the 'FBSDKCoreKit', + 'FBSDKLoginKit', and 'FBSDKShareKit' pods. +2. Test your install: build and run the project at `~/Documents/FacebookSDK/Samples/Scrumptious/Scrumptious.xcodeproj` +3. Check-out the tutorials available online at: +4. Start coding! Visit for tutorials and reference documentation. + +## FEATURES + +- Login - +- Sharing - +- App Links - +- Graph API - +- Analytics - + +## GIVE FEEDBACK + +Please report bugs or issues to our designated developer support team -- -- as this will help us resolve them more quickly. + +You can also visit our [Facebook Developer Community Forum](https://developers.facebook.com/community/), +join the [Facebook Developers Group on Facebook](https://www.facebook.com/groups/fbdevelopers/), +ask questions on [Stack Overflow](http://facebook.stackoverflow.com), +or open an issue in this repository. + +## LICENSE + +See the [LICENSE](LICENSE) file. + +## DEVELOPER TERMS + +- By enabling Facebook integrations, including through this SDK, you can share information with Facebook, including + information about people’s use of your app. Facebook will use information received in accordance with our + [Data Use Policy](https://www.facebook.com/about/privacy/), including to provide you with insights about the + effectiveness of your ads and the use of your app. These integrations also enable us and our partners to serve ads on + and off Facebook. +- You may limit your sharing of information with us by updating the Insights control in the developer tool + `https://developers.facebook.com/apps/{app_id}/settings/advanced`. +- If you use a Facebook integration, including to share information with us, you agree and confirm that you have + provided appropriate and sufficiently prominent notice to and obtained the appropriate consent from your users + regarding such collection, use, and disclosure (including, at a minimum, through your privacy policy). You further + agree that you will not share information with us about children under the age of 13. +- You agree to comply with all applicable laws and regulations and also agree to our Terms + , including our Platform Policies .and + Advertising Guidelines, as applicable . + +By using the Facebook SDK for iOS you agree to these terms. diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit.xcodeproj/project.pbxproj b/apps/bare-expo/ios/Pods/FBSDKLoginKit.xcodeproj/project.pbxproj new file mode 100644 index 0000000000000..579fb9887e1a4 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit.xcodeproj/project.pbxproj @@ -0,0 +1,523 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 117D66A8D749F806D00E0A93C16C8857 /* FBSDKLoginKit+Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = F7A23F9999810FFC90AD25ECBBBDB6F5 /* FBSDKLoginKit+Internal.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 166B6E13F073A124CF9356A5BF654508 /* FBSDKLoginKit.h in Headers */ = {isa = PBXBuildFile; fileRef = 0D63CDFB789BA54604AEC9350D2FACA5 /* FBSDKLoginKit.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 1F1EB8ABEF796477E4898405FEB0E922 /* FBSDKLoginManagerLogger.m in Sources */ = {isa = PBXBuildFile; fileRef = 8ED9C2FEDA0833C48F606887850EF43D /* FBSDKLoginManagerLogger.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 1F8001332C42E80477D152B0E92517A7 /* FBSDKLoginUtility.h in Headers */ = {isa = PBXBuildFile; fileRef = 9C77F84A785B06C8637D6C585D7315B2 /* FBSDKLoginUtility.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 21E078E0A6C8FA99E93D62AC855DA10E /* FBSDKDeviceLoginManagerResult.m in Sources */ = {isa = PBXBuildFile; fileRef = FC561D041F1218A53A704E986855307D /* FBSDKDeviceLoginManagerResult.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 2B96E31D7280939AF1962C650E39776C /* FBSDKLoginConstants.h in Headers */ = {isa = PBXBuildFile; fileRef = 20C75C836031DEFE046C0CED7B599298 /* FBSDKLoginConstants.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 352EF21441106158527BDC11FC2B4E4A /* FBSDKLoginManagerLogger.h in Headers */ = {isa = PBXBuildFile; fileRef = 6E47DFFF21D6CF18BCD98C22891011BB /* FBSDKLoginManagerLogger.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 39F57EF5AAC241C9F5835B6DA81FD1EB /* FBSDKDeviceLoginCodeInfo+Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = D45C199E0C42F85EB7A3690F0043D318 /* FBSDKDeviceLoginCodeInfo+Internal.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 3F819BB22111566E7FA5C9001F4A7346 /* FBSDKLoginCompletion+Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = D49617EAA08B40AC00F2F443AE46D8A2 /* FBSDKLoginCompletion+Internal.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 464855979514FEC5EBD4DF3B8C83D49E /* FBSDKLoginError.h in Headers */ = {isa = PBXBuildFile; fileRef = 41DBED9DC32B4D99441203B8738203E0 /* FBSDKLoginError.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 497BB55DF4CC38EF9FA840A4E6234506 /* FBSDKLoginButton.m in Sources */ = {isa = PBXBuildFile; fileRef = 017768B6FA3A38586A22DC82385E4141 /* FBSDKLoginButton.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 618FA6B09D86C83A359CA39812A4FBCA /* FBSDKLoginKit-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 3BBB6CE7AECF2D0A15CAF99D9B44823F /* FBSDKLoginKit-dummy.m */; }; + 69B68C69908A5EC7CCBE57354CE282CA /* FBSDKLoginCompletion.m in Sources */ = {isa = PBXBuildFile; fileRef = 99E8D00C570C4F75E5E8001F4C8C4A3C /* FBSDKLoginCompletion.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 6C9BD36205E7AB6A7E08A2B4A415D6ED /* _FBSDKLoginRecoveryAttempter.m in Sources */ = {isa = PBXBuildFile; fileRef = 8DDC54B980D7844646F5726B57EE70D2 /* _FBSDKLoginRecoveryAttempter.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 6FCD1AC3343A3247575349C9CBF112C0 /* FBSDKDeviceLoginManager.h in Headers */ = {isa = PBXBuildFile; fileRef = CCA7C8496D8377559C2642BCBF93C680 /* FBSDKDeviceLoginManager.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 7669BF403A63A052FC625CD9F3FC4655 /* FBSDKDeviceLoginCodeInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 6CF4C05EDCF06C50D2C9D2B6CE6537EE /* FBSDKDeviceLoginCodeInfo.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 8041BB281FBCF24BFFACAA1A7E077D90 /* FBSDKLoginManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 4DD74CC48AE6AB36AD00C719F20DF11E /* FBSDKLoginManager.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 924232954B898701AE4CC7929A06A364 /* FBSDKLoginTooltipView.m in Sources */ = {isa = PBXBuildFile; fileRef = 2DBF989863A7393137687722DAD96D25 /* FBSDKLoginTooltipView.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 9724575770F5BCF7E5B1C2193863ED0C /* FBSDKTooltipView.m in Sources */ = {isa = PBXBuildFile; fileRef = 90EA0B6D1C86ACF3109FD1490300EB5F /* FBSDKTooltipView.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + 9ADC403058FE4CE046328EDDD89173CD /* FBSDKDeviceLoginCodeInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = DA834DF6DA6E398DD34DE92F3B2357A1 /* FBSDKDeviceLoginCodeInfo.h */; settings = {ATTRIBUTES = (Project, ); }; }; + 9EDF748D26C92095FE9A6B6A8C7B17E8 /* FBSDKLoginTooltipView.h in Headers */ = {isa = PBXBuildFile; fileRef = 1CFE3D2BCF6DF563F9B5DD435917361F /* FBSDKLoginTooltipView.h */; settings = {ATTRIBUTES = (Project, ); }; }; + A0FBB81FD6472D30C31C9F43C26814AB /* FBSDKLoginManagerLoginResult.m in Sources */ = {isa = PBXBuildFile; fileRef = 77B11589691264254BAA20DD55F4BF83 /* FBSDKLoginManagerLoginResult.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + A1C4FB1C37ACA1D59C2C5F4D35174E4B /* FBSDKLoginManagerLoginResult+Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 589291276E52411CD28F78412C1D81D0 /* FBSDKLoginManagerLoginResult+Internal.h */; settings = {ATTRIBUTES = (Project, ); }; }; + A6B646C79CF171509AED42C9B68F4A2A /* FBSDKLoginUtility.m in Sources */ = {isa = PBXBuildFile; fileRef = 10F4A12E97597A340F3B20CD7442B2F5 /* FBSDKLoginUtility.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + ACCE8ABBD56F524888E9110BB0C5EDD9 /* FBSDKDeviceLoginManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 2B31D9D6D0A278907D49019B3A78B351 /* FBSDKDeviceLoginManager.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + ACE39760472BA4495E54E46F72160C5C /* FBSDKDeviceLoginManagerResult.h in Headers */ = {isa = PBXBuildFile; fileRef = 868A43FFF8760FDA5CA6AAA0BA28B87B /* FBSDKDeviceLoginManagerResult.h */; settings = {ATTRIBUTES = (Project, ); }; }; + B1E7E283D80C3B1B3EBA3B94E72B4E7B /* FBSDKLoginManager.h in Headers */ = {isa = PBXBuildFile; fileRef = F394669E64FF8C30E35FAA7086917867 /* FBSDKLoginManager.h */; settings = {ATTRIBUTES = (Project, ); }; }; + B3E1276530945BFEFC863D95B414A8FB /* _FBSDKLoginRecoveryAttempter.h in Headers */ = {isa = PBXBuildFile; fileRef = 4B3CC986D71D610E7262B428B91961B9 /* _FBSDKLoginRecoveryAttempter.h */; settings = {ATTRIBUTES = (Project, ); }; }; + B5123DADE6E43C38B2970FAE3FF5B2F6 /* FBSDKLoginManagerLoginResult.h in Headers */ = {isa = PBXBuildFile; fileRef = 070E8AC20CEF313DB6541541EEED4D6A /* FBSDKLoginManagerLoginResult.h */; settings = {ATTRIBUTES = (Project, ); }; }; + C839136AA06CB6259A31F8A218764DCB /* FBSDKLoginButton.h in Headers */ = {isa = PBXBuildFile; fileRef = 7ECA61295BA0CF3FFAC530D7CD443A81 /* FBSDKLoginButton.h */; settings = {ATTRIBUTES = (Project, ); }; }; + E5C8F40BCBF4B86605AA8874C317ED1B /* FBSDKDeviceLoginManagerResult+Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = BB092F89F2CCDB04FEFB9A0F52F72938 /* FBSDKDeviceLoginManagerResult+Internal.h */; settings = {ATTRIBUTES = (Project, ); }; }; + EC30B468C5082302C8179166D2D882A8 /* FBSDKTooltipView.h in Headers */ = {isa = PBXBuildFile; fileRef = AC6B686AD89657E73CCA57079AF6F8F9 /* FBSDKTooltipView.h */; settings = {ATTRIBUTES = (Project, ); }; }; + F1BF094DA2E50D97860840C3A30E102E /* FBSDKLoginError.m in Sources */ = {isa = PBXBuildFile; fileRef = C8F6FA05479C1698AEB377C7C970B83E /* FBSDKLoginError.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + F5AB1C37A41ADE4DB04E3FE61BAD76A2 /* FBSDKLoginCompletion.h in Headers */ = {isa = PBXBuildFile; fileRef = 647119B8443E149A6ECF1B9A7C123708 /* FBSDKLoginCompletion.h */; settings = {ATTRIBUTES = (Project, ); }; }; + F90FBE07C04610A3ACAC5525528C7145 /* FBSDKLoginConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 8C1A37220F2FC40E61A82D90E5144867 /* FBSDKLoginConstants.m */; settings = {COMPILER_FLAGS = "-w -Xanalyzer -analyzer-disable-all-checks"; }; }; + FE364DDA1C67EEC77B72B8A00E147BCE /* FBSDKLoginManager+Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = EE01EC0F5EE210926389FF2566124960 /* FBSDKLoginManager+Internal.h */; settings = {ATTRIBUTES = (Project, ); }; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 5ADF2486057FB7989886B4B49FC9E706 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 63EC3B00CC15FBC9F6DE766F89E66284 /* FBSDKCoreKit.xcodeproj */; + proxyType = 1; + remoteGlobalIDString = 322040CF2C7D2642650A8BFCDB4B2AD3; + remoteInfo = FBSDKCoreKit; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 017768B6FA3A38586A22DC82385E4141 /* FBSDKLoginButton.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKLoginButton.m; path = FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginButton.m; sourceTree = ""; }; + 070E8AC20CEF313DB6541541EEED4D6A /* FBSDKLoginManagerLoginResult.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKLoginManagerLoginResult.h; path = FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginManagerLoginResult.h; sourceTree = ""; }; + 0D63CDFB789BA54604AEC9350D2FACA5 /* FBSDKLoginKit.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKLoginKit.h; path = FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit.h; sourceTree = ""; }; + 0EF36DD4F929E81C1BA1AE7AB45A4DD9 /* FBSDKLoginKit-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "FBSDKLoginKit-prefix.pch"; sourceTree = ""; }; + 10F4A12E97597A340F3B20CD7442B2F5 /* FBSDKLoginUtility.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKLoginUtility.m; path = FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginUtility.m; sourceTree = ""; }; + 1CFE3D2BCF6DF563F9B5DD435917361F /* FBSDKLoginTooltipView.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKLoginTooltipView.h; path = FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginTooltipView.h; sourceTree = ""; }; + 20C75C836031DEFE046C0CED7B599298 /* FBSDKLoginConstants.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKLoginConstants.h; path = FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginConstants.h; sourceTree = ""; }; + 2B31D9D6D0A278907D49019B3A78B351 /* FBSDKDeviceLoginManager.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKDeviceLoginManager.m; path = FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginManager.m; sourceTree = ""; }; + 2DBF989863A7393137687722DAD96D25 /* FBSDKLoginTooltipView.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKLoginTooltipView.m; path = FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginTooltipView.m; sourceTree = ""; }; + 3BBB6CE7AECF2D0A15CAF99D9B44823F /* FBSDKLoginKit-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "FBSDKLoginKit-dummy.m"; sourceTree = ""; }; + 41DBED9DC32B4D99441203B8738203E0 /* FBSDKLoginError.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKLoginError.h; path = FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginError.h; sourceTree = ""; }; + 4B3CC986D71D610E7262B428B91961B9 /* _FBSDKLoginRecoveryAttempter.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = _FBSDKLoginRecoveryAttempter.h; path = FBSDKLoginKit/FBSDKLoginKit/Internal/_FBSDKLoginRecoveryAttempter.h; sourceTree = ""; }; + 4DD74CC48AE6AB36AD00C719F20DF11E /* FBSDKLoginManager.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKLoginManager.m; path = FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginManager.m; sourceTree = ""; }; + 589291276E52411CD28F78412C1D81D0 /* FBSDKLoginManagerLoginResult+Internal.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "FBSDKLoginManagerLoginResult+Internal.h"; path = "FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginManagerLoginResult+Internal.h"; sourceTree = ""; }; + 63EC3B00CC15FBC9F6DE766F89E66284 /* FBSDKCoreKit */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = FBSDKCoreKit; path = FBSDKCoreKit.xcodeproj; sourceTree = ""; }; + 647119B8443E149A6ECF1B9A7C123708 /* FBSDKLoginCompletion.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKLoginCompletion.h; path = FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginCompletion.h; sourceTree = ""; }; + 6CF4C05EDCF06C50D2C9D2B6CE6537EE /* FBSDKDeviceLoginCodeInfo.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKDeviceLoginCodeInfo.m; path = FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginCodeInfo.m; sourceTree = ""; }; + 6E47DFFF21D6CF18BCD98C22891011BB /* FBSDKLoginManagerLogger.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKLoginManagerLogger.h; path = FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginManagerLogger.h; sourceTree = ""; }; + 76F8B0D26BEEB3410552D401535BAECA /* libFBSDKLoginKit.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = libFBSDKLoginKit.a; path = libFBSDKLoginKit.a; sourceTree = BUILT_PRODUCTS_DIR; }; + 77B11589691264254BAA20DD55F4BF83 /* FBSDKLoginManagerLoginResult.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKLoginManagerLoginResult.m; path = FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginManagerLoginResult.m; sourceTree = ""; }; + 7ECA61295BA0CF3FFAC530D7CD443A81 /* FBSDKLoginButton.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKLoginButton.h; path = FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginButton.h; sourceTree = ""; }; + 868A43FFF8760FDA5CA6AAA0BA28B87B /* FBSDKDeviceLoginManagerResult.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKDeviceLoginManagerResult.h; path = FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginManagerResult.h; sourceTree = ""; }; + 8C1A37220F2FC40E61A82D90E5144867 /* FBSDKLoginConstants.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKLoginConstants.m; path = FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginConstants.m; sourceTree = ""; }; + 8DDC54B980D7844646F5726B57EE70D2 /* _FBSDKLoginRecoveryAttempter.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = _FBSDKLoginRecoveryAttempter.m; path = FBSDKLoginKit/FBSDKLoginKit/Internal/_FBSDKLoginRecoveryAttempter.m; sourceTree = ""; }; + 8ED9C2FEDA0833C48F606887850EF43D /* FBSDKLoginManagerLogger.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKLoginManagerLogger.m; path = FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginManagerLogger.m; sourceTree = ""; }; + 90EA0B6D1C86ACF3109FD1490300EB5F /* FBSDKTooltipView.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKTooltipView.m; path = FBSDKLoginKit/FBSDKLoginKit/FBSDKTooltipView.m; sourceTree = ""; }; + 99E8D00C570C4F75E5E8001F4C8C4A3C /* FBSDKLoginCompletion.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKLoginCompletion.m; path = FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginCompletion.m; sourceTree = ""; }; + 9C77F84A785B06C8637D6C585D7315B2 /* FBSDKLoginUtility.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKLoginUtility.h; path = FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginUtility.h; sourceTree = ""; }; + AC6B686AD89657E73CCA57079AF6F8F9 /* FBSDKTooltipView.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKTooltipView.h; path = FBSDKLoginKit/FBSDKLoginKit/FBSDKTooltipView.h; sourceTree = ""; }; + BB092F89F2CCDB04FEFB9A0F52F72938 /* FBSDKDeviceLoginManagerResult+Internal.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "FBSDKDeviceLoginManagerResult+Internal.h"; path = "FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKDeviceLoginManagerResult+Internal.h"; sourceTree = ""; }; + C8F6FA05479C1698AEB377C7C970B83E /* FBSDKLoginError.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKLoginError.m; path = FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginError.m; sourceTree = ""; }; + CCA7C8496D8377559C2642BCBF93C680 /* FBSDKDeviceLoginManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKDeviceLoginManager.h; path = FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginManager.h; sourceTree = ""; }; + D45C199E0C42F85EB7A3690F0043D318 /* FBSDKDeviceLoginCodeInfo+Internal.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "FBSDKDeviceLoginCodeInfo+Internal.h"; path = "FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKDeviceLoginCodeInfo+Internal.h"; sourceTree = ""; }; + D49617EAA08B40AC00F2F443AE46D8A2 /* FBSDKLoginCompletion+Internal.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "FBSDKLoginCompletion+Internal.h"; path = "FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginCompletion+Internal.h"; sourceTree = ""; }; + DA834DF6DA6E398DD34DE92F3B2357A1 /* FBSDKDeviceLoginCodeInfo.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKDeviceLoginCodeInfo.h; path = FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginCodeInfo.h; sourceTree = ""; }; + EE01EC0F5EE210926389FF2566124960 /* FBSDKLoginManager+Internal.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "FBSDKLoginManager+Internal.h"; path = "FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginManager+Internal.h"; sourceTree = ""; }; + F2B8A2F0C18951DB5E9BDEA26192B177 /* FBSDKLoginKit.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = FBSDKLoginKit.xcconfig; sourceTree = ""; }; + F394669E64FF8C30E35FAA7086917867 /* FBSDKLoginManager.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = FBSDKLoginManager.h; path = FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginManager.h; sourceTree = ""; }; + F7A23F9999810FFC90AD25ECBBBDB6F5 /* FBSDKLoginKit+Internal.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "FBSDKLoginKit+Internal.h"; path = "FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginKit+Internal.h"; sourceTree = ""; }; + FC561D041F1218A53A704E986855307D /* FBSDKDeviceLoginManagerResult.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = FBSDKDeviceLoginManagerResult.m; path = FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginManagerResult.m; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 3987D42353BDF33CB75424502D5C1E08 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 21E5F65E5CC72DAF657DBEA3DD3FE5ED /* Support Files */ = { + isa = PBXGroup; + children = ( + F2B8A2F0C18951DB5E9BDEA26192B177 /* FBSDKLoginKit.xcconfig */, + 3BBB6CE7AECF2D0A15CAF99D9B44823F /* FBSDKLoginKit-dummy.m */, + 0EF36DD4F929E81C1BA1AE7AB45A4DD9 /* FBSDKLoginKit-prefix.pch */, + ); + name = "Support Files"; + path = "../Target Support Files/FBSDKLoginKit"; + sourceTree = ""; + }; + 240A8B58D350C0FB6338BA0277260F60 /* Dependencies */ = { + isa = PBXGroup; + children = ( + 63EC3B00CC15FBC9F6DE766F89E66284 /* FBSDKCoreKit */, + ); + name = Dependencies; + sourceTree = ""; + }; + 45928A6BF25B6F9159BE3189B1DCB01C = { + isa = PBXGroup; + children = ( + 240A8B58D350C0FB6338BA0277260F60 /* Dependencies */, + DDF4CBB681730339BA498E1213ADC26D /* FBSDKLoginKit */, + F69B967C8307FD73953708903FD62478 /* Frameworks */, + F0B9CFB9352038480E7CEBC1686BFADF /* Products */, + ); + sourceTree = ""; + }; + 996BA4DAE7BB395FC3AB185F4E054F12 /* Login */ = { + isa = PBXGroup; + children = ( + 4B3CC986D71D610E7262B428B91961B9 /* _FBSDKLoginRecoveryAttempter.h */, + 8DDC54B980D7844646F5726B57EE70D2 /* _FBSDKLoginRecoveryAttempter.m */, + DA834DF6DA6E398DD34DE92F3B2357A1 /* FBSDKDeviceLoginCodeInfo.h */, + 6CF4C05EDCF06C50D2C9D2B6CE6537EE /* FBSDKDeviceLoginCodeInfo.m */, + D45C199E0C42F85EB7A3690F0043D318 /* FBSDKDeviceLoginCodeInfo+Internal.h */, + CCA7C8496D8377559C2642BCBF93C680 /* FBSDKDeviceLoginManager.h */, + 2B31D9D6D0A278907D49019B3A78B351 /* FBSDKDeviceLoginManager.m */, + 868A43FFF8760FDA5CA6AAA0BA28B87B /* FBSDKDeviceLoginManagerResult.h */, + FC561D041F1218A53A704E986855307D /* FBSDKDeviceLoginManagerResult.m */, + BB092F89F2CCDB04FEFB9A0F52F72938 /* FBSDKDeviceLoginManagerResult+Internal.h */, + 7ECA61295BA0CF3FFAC530D7CD443A81 /* FBSDKLoginButton.h */, + 017768B6FA3A38586A22DC82385E4141 /* FBSDKLoginButton.m */, + 647119B8443E149A6ECF1B9A7C123708 /* FBSDKLoginCompletion.h */, + 99E8D00C570C4F75E5E8001F4C8C4A3C /* FBSDKLoginCompletion.m */, + D49617EAA08B40AC00F2F443AE46D8A2 /* FBSDKLoginCompletion+Internal.h */, + 20C75C836031DEFE046C0CED7B599298 /* FBSDKLoginConstants.h */, + 8C1A37220F2FC40E61A82D90E5144867 /* FBSDKLoginConstants.m */, + 41DBED9DC32B4D99441203B8738203E0 /* FBSDKLoginError.h */, + C8F6FA05479C1698AEB377C7C970B83E /* FBSDKLoginError.m */, + 0D63CDFB789BA54604AEC9350D2FACA5 /* FBSDKLoginKit.h */, + F7A23F9999810FFC90AD25ECBBBDB6F5 /* FBSDKLoginKit+Internal.h */, + F394669E64FF8C30E35FAA7086917867 /* FBSDKLoginManager.h */, + 4DD74CC48AE6AB36AD00C719F20DF11E /* FBSDKLoginManager.m */, + EE01EC0F5EE210926389FF2566124960 /* FBSDKLoginManager+Internal.h */, + 6E47DFFF21D6CF18BCD98C22891011BB /* FBSDKLoginManagerLogger.h */, + 8ED9C2FEDA0833C48F606887850EF43D /* FBSDKLoginManagerLogger.m */, + 070E8AC20CEF313DB6541541EEED4D6A /* FBSDKLoginManagerLoginResult.h */, + 77B11589691264254BAA20DD55F4BF83 /* FBSDKLoginManagerLoginResult.m */, + 589291276E52411CD28F78412C1D81D0 /* FBSDKLoginManagerLoginResult+Internal.h */, + 1CFE3D2BCF6DF563F9B5DD435917361F /* FBSDKLoginTooltipView.h */, + 2DBF989863A7393137687722DAD96D25 /* FBSDKLoginTooltipView.m */, + 9C77F84A785B06C8637D6C585D7315B2 /* FBSDKLoginUtility.h */, + 10F4A12E97597A340F3B20CD7442B2F5 /* FBSDKLoginUtility.m */, + AC6B686AD89657E73CCA57079AF6F8F9 /* FBSDKTooltipView.h */, + 90EA0B6D1C86ACF3109FD1490300EB5F /* FBSDKTooltipView.m */, + ); + name = Login; + sourceTree = ""; + }; + DDF4CBB681730339BA498E1213ADC26D /* FBSDKLoginKit */ = { + isa = PBXGroup; + children = ( + 996BA4DAE7BB395FC3AB185F4E054F12 /* Login */, + 21E5F65E5CC72DAF657DBEA3DD3FE5ED /* Support Files */, + ); + name = FBSDKLoginKit; + path = FBSDKLoginKit; + sourceTree = ""; + }; + F0B9CFB9352038480E7CEBC1686BFADF /* Products */ = { + isa = PBXGroup; + children = ( + 76F8B0D26BEEB3410552D401535BAECA /* libFBSDKLoginKit.a */, + ); + name = Products; + sourceTree = ""; + }; + F69B967C8307FD73953708903FD62478 /* Frameworks */ = { + isa = PBXGroup; + children = ( + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 08C9E8990C6F8D17192206A3319DDF60 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + B3E1276530945BFEFC863D95B414A8FB /* _FBSDKLoginRecoveryAttempter.h in Headers */, + 39F57EF5AAC241C9F5835B6DA81FD1EB /* FBSDKDeviceLoginCodeInfo+Internal.h in Headers */, + 9ADC403058FE4CE046328EDDD89173CD /* FBSDKDeviceLoginCodeInfo.h in Headers */, + 6FCD1AC3343A3247575349C9CBF112C0 /* FBSDKDeviceLoginManager.h in Headers */, + E5C8F40BCBF4B86605AA8874C317ED1B /* FBSDKDeviceLoginManagerResult+Internal.h in Headers */, + ACE39760472BA4495E54E46F72160C5C /* FBSDKDeviceLoginManagerResult.h in Headers */, + C839136AA06CB6259A31F8A218764DCB /* FBSDKLoginButton.h in Headers */, + 3F819BB22111566E7FA5C9001F4A7346 /* FBSDKLoginCompletion+Internal.h in Headers */, + F5AB1C37A41ADE4DB04E3FE61BAD76A2 /* FBSDKLoginCompletion.h in Headers */, + 2B96E31D7280939AF1962C650E39776C /* FBSDKLoginConstants.h in Headers */, + 464855979514FEC5EBD4DF3B8C83D49E /* FBSDKLoginError.h in Headers */, + 117D66A8D749F806D00E0A93C16C8857 /* FBSDKLoginKit+Internal.h in Headers */, + 166B6E13F073A124CF9356A5BF654508 /* FBSDKLoginKit.h in Headers */, + FE364DDA1C67EEC77B72B8A00E147BCE /* FBSDKLoginManager+Internal.h in Headers */, + B1E7E283D80C3B1B3EBA3B94E72B4E7B /* FBSDKLoginManager.h in Headers */, + 352EF21441106158527BDC11FC2B4E4A /* FBSDKLoginManagerLogger.h in Headers */, + A1C4FB1C37ACA1D59C2C5F4D35174E4B /* FBSDKLoginManagerLoginResult+Internal.h in Headers */, + B5123DADE6E43C38B2970FAE3FF5B2F6 /* FBSDKLoginManagerLoginResult.h in Headers */, + 9EDF748D26C92095FE9A6B6A8C7B17E8 /* FBSDKLoginTooltipView.h in Headers */, + 1F8001332C42E80477D152B0E92517A7 /* FBSDKLoginUtility.h in Headers */, + EC30B468C5082302C8179166D2D882A8 /* FBSDKTooltipView.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + 99D9EFC28DE380315427F305282258E8 /* FBSDKLoginKit */ = { + isa = PBXNativeTarget; + buildConfigurationList = E5B28D39CAAB133F7E4395E12BBE68EF /* Build configuration list for PBXNativeTarget "FBSDKLoginKit" */; + buildPhases = ( + 08C9E8990C6F8D17192206A3319DDF60 /* Headers */, + F81FF7476973E1D6467DAB1A061FAA37 /* Sources */, + 3987D42353BDF33CB75424502D5C1E08 /* Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + 49D4DE7DA511E349F896C03A2608A4E8 /* PBXTargetDependency */, + ); + name = FBSDKLoginKit; + productName = FBSDKLoginKit; + productReference = 76F8B0D26BEEB3410552D401535BAECA /* libFBSDKLoginKit.a */; + productType = "com.apple.product-type.library.static"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + F83DE01EA7C2F01A3361D5E7B5B76B52 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1100; + LastUpgradeCheck = 1100; + }; + buildConfigurationList = 54F7A52E1230303BB332FEED4B6D8DD9 /* Build configuration list for PBXProject "FBSDKLoginKit" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 45928A6BF25B6F9159BE3189B1DCB01C; + productRefGroup = F0B9CFB9352038480E7CEBC1686BFADF /* Products */; + projectDirPath = ""; + projectReferences = ( + { + ProjectRef = 63EC3B00CC15FBC9F6DE766F89E66284 /* FBSDKCoreKit */; + }, + ); + projectRoot = ""; + targets = ( + 99D9EFC28DE380315427F305282258E8 /* FBSDKLoginKit */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXSourcesBuildPhase section */ + F81FF7476973E1D6467DAB1A061FAA37 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 6C9BD36205E7AB6A7E08A2B4A415D6ED /* _FBSDKLoginRecoveryAttempter.m in Sources */, + 7669BF403A63A052FC625CD9F3FC4655 /* FBSDKDeviceLoginCodeInfo.m in Sources */, + ACCE8ABBD56F524888E9110BB0C5EDD9 /* FBSDKDeviceLoginManager.m in Sources */, + 21E078E0A6C8FA99E93D62AC855DA10E /* FBSDKDeviceLoginManagerResult.m in Sources */, + 497BB55DF4CC38EF9FA840A4E6234506 /* FBSDKLoginButton.m in Sources */, + 69B68C69908A5EC7CCBE57354CE282CA /* FBSDKLoginCompletion.m in Sources */, + F90FBE07C04610A3ACAC5525528C7145 /* FBSDKLoginConstants.m in Sources */, + F1BF094DA2E50D97860840C3A30E102E /* FBSDKLoginError.m in Sources */, + 618FA6B09D86C83A359CA39812A4FBCA /* FBSDKLoginKit-dummy.m in Sources */, + 8041BB281FBCF24BFFACAA1A7E077D90 /* FBSDKLoginManager.m in Sources */, + 1F1EB8ABEF796477E4898405FEB0E922 /* FBSDKLoginManagerLogger.m in Sources */, + A0FBB81FD6472D30C31C9F43C26814AB /* FBSDKLoginManagerLoginResult.m in Sources */, + 924232954B898701AE4CC7929A06A364 /* FBSDKLoginTooltipView.m in Sources */, + A6B646C79CF171509AED42C9B68F4A2A /* FBSDKLoginUtility.m in Sources */, + 9724575770F5BCF7E5B1C2193863ED0C /* FBSDKTooltipView.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 49D4DE7DA511E349F896C03A2608A4E8 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = FBSDKCoreKit; + targetProxy = 5ADF2486057FB7989886B4B49FC9E706 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 1CF848DCE179EDB382A44358DBA0CB5D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = F2B8A2F0C18951DB5E9BDEA26192B177 /* FBSDKLoginKit.xcconfig */; + buildSettings = { + CODE_SIGN_IDENTITY = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + GCC_PREFIX_HEADER = "Target Support Files/FBSDKLoginKit/FBSDKLoginKit-prefix.pch"; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PRIVATE_HEADERS_FOLDER_PATH = ""; + PRODUCT_MODULE_NAME = FBSDKLoginKit; + PRODUCT_NAME = FBSDKLoginKit; + PUBLIC_HEADERS_FOLDER_PATH = ""; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 37F885C3B914F64CC9CD97A2177E7674 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_PREPROCESSOR_DEFINITIONS = ( + "POD_CONFIGURATION_RELEASE=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + PRODUCT_NAME = "$(TARGET_NAME)"; + STRIP_INSTALLED_PRODUCT = NO; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + SWIFT_VERSION = 5.0; + SYMROOT = "${SRCROOT}/../build"; + }; + name = Release; + }; + 69F42547E1817B8AB7702610482537C7 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "POD_CONFIGURATION_DEBUG=1", + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + PRODUCT_NAME = "$(TARGET_NAME)"; + STRIP_INSTALLED_PRODUCT = NO; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + SYMROOT = "${SRCROOT}/../build"; + }; + name = Debug; + }; + BCE242FB9E6F980036B018C4692F8896 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = F2B8A2F0C18951DB5E9BDEA26192B177 /* FBSDKLoginKit.xcconfig */; + buildSettings = { + CODE_SIGN_IDENTITY = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + GCC_PREFIX_HEADER = "Target Support Files/FBSDKLoginKit/FBSDKLoginKit-prefix.pch"; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PRIVATE_HEADERS_FOLDER_PATH = ""; + PRODUCT_MODULE_NAME = FBSDKLoginKit; + PRODUCT_NAME = FBSDKLoginKit; + PUBLIC_HEADERS_FOLDER_PATH = ""; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 54F7A52E1230303BB332FEED4B6D8DD9 /* Build configuration list for PBXProject "FBSDKLoginKit" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 69F42547E1817B8AB7702610482537C7 /* Debug */, + 37F885C3B914F64CC9CD97A2177E7674 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + E5B28D39CAAB133F7E4395E12BBE68EF /* Build configuration list for PBXNativeTarget "FBSDKLoginKit" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 1CF848DCE179EDB382A44358DBA0CB5D /* Debug */, + BCE242FB9E6F980036B018C4692F8896 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = F83DE01EA7C2F01A3361D5E7B5B76B52 /* Project object */; +} diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginCodeInfo.h b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginCodeInfo.h new file mode 100644 index 0000000000000..36665b96ae13a --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginCodeInfo.h @@ -0,0 +1,63 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_ASSUME_NONNULL_BEGIN + +/*! + @abstract Describes the initial response when starting the device login flow. + @discussion This is used by `FBSDKDeviceLoginManager`. + */ +NS_SWIFT_NAME(DeviceLoginCodeInfo) +@interface FBSDKDeviceLoginCodeInfo : NSObject + +/*! + @abstract There is no public initializer. + */ +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/*! + @abstract the unique id for this login flow. +*/ +@property (nonatomic, copy, readonly) NSString *identifier; + +/*! + @abstract the short "user_code" that should be presented to the user. +*/ +@property (nonatomic, copy, readonly) NSString *loginCode; + +/*! + @abstract the verification URL. +*/ +@property (nonatomic, copy, readonly) NSURL *verificationURL; + +/*! + @abstract the expiration date. +*/ +@property (nonatomic, copy, readonly) NSDate *expirationDate; + +/*! + @abstract the polling interval +*/ +@property (nonatomic, assign, readonly) NSUInteger pollingInterval; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginCodeInfo.m b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginCodeInfo.m new file mode 100644 index 0000000000000..4f22fce5192f5 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginCodeInfo.m @@ -0,0 +1,38 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKDeviceLoginCodeInfo+Internal.h" + +@implementation FBSDKDeviceLoginCodeInfo + +- (instancetype)initWithIdentifier:(NSString *)identifier + loginCode:(NSString *)loginCode + verificationURL:(NSURL *)verificationURL + expirationDate:(NSDate *)expirationDate + pollingInterval:(NSUInteger)pollingInterval +{ + if ((self = [super init])) { + _identifier = [identifier copy]; + _loginCode = [loginCode copy]; + _verificationURL = [verificationURL copy]; + _expirationDate = [expirationDate copy]; + _pollingInterval = pollingInterval; + } + return self; +} +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginManager.h b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginManager.h new file mode 100644 index 0000000000000..1eca0821066f9 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginManager.h @@ -0,0 +1,108 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKDeviceLoginManager; + +/*! + @abstract A delegate for `FBSDKDeviceLoginManager`. + */ +NS_SWIFT_NAME(DeviceLoginManagerDelegate) +@protocol FBSDKDeviceLoginManagerDelegate + +/*! + @abstract Indicates the device login flow has started. You should parse `codeInfo` to + present the code to the user to enter. + @param loginManager the login manager instance. + @param codeInfo the code info data. + */ +- (void)deviceLoginManager:(FBSDKDeviceLoginManager *)loginManager + startedWithCodeInfo:(FBSDKDeviceLoginCodeInfo *)codeInfo; + +/*! + @abstract Indicates the device login flow has finished. + @param loginManager the login manager instance. + @param result the results of the login flow. + @param error the error, if available. + @discussion The flow can be finished if the user completed the flow, cancelled, or if the code has expired. + */ +- (void)deviceLoginManager:(FBSDKDeviceLoginManager *)loginManager + completedWithResult:(nullable FBSDKDeviceLoginManagerResult *)result + error:(nullable NSError *)error; + +@end + +/*! + @abstract Use this class to perform a device login flow. + @discussion The device login flow starts by requesting a code from the device login API. + This class informs the delegate when this code is received. You should then present the + code to the user to enter. In the meantime, this class polls the device login API + periodically and informs the delegate of the results. + + See [Facebook Device Login](https://developers.facebook.com/docs/facebook-login/for-devices). + */ +NS_SWIFT_NAME(DeviceLoginManager) +@interface FBSDKDeviceLoginManager : NSObject + +/*! + @abstract Initializes a new instance. + @param permissions permissions to request. + */ +- (instancetype)initWithPermissions:(NSArray *)permissions + enableSmartLogin:(BOOL)enableSmartLogin +NS_DESIGNATED_INITIALIZER; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/*! + @abstract the delegate. + */ +@property (nonatomic, weak) id delegate; + +/*! + @abstract the requested permissions. + */ +@property (nonatomic, copy, readonly) NSArray *permissions; + +/*! + @abstract the optional URL to redirect the user to after they complete the login. + @discussion the URL must be configured in your App Settings -> Advanced -> OAuth Redirect URIs + */ +@property (nullable, nonatomic, copy) NSURL *redirectURL; + +/*! + @abstract Starts the device login flow + @discussion This instance will retain self until the flow is finished or cancelled. + */ +- (void)start; + +/*! + @abstract Attempts to cancel the device login flow. + */ +- (void)cancel; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginManager.m b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginManager.m new file mode 100644 index 0000000000000..bd09b2e0011f7 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginManager.m @@ -0,0 +1,242 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKDeviceLoginManager.h" +#import "FBSDKDeviceLoginManagerResult+Internal.h" + +#import + +#ifdef COCOAPODS +#import +#else +#import "FBSDKCoreKit+Internal.h" +#endif +#import "FBSDKDeviceLoginCodeInfo+Internal.h" +#import "FBSDKLoginConstants.h" + +static NSMutableArray *g_loginManagerInstances; + +@implementation FBSDKDeviceLoginManager { + FBSDKDeviceLoginCodeInfo *_codeInfo; + BOOL _isCancelled; + NSNetService * _loginAdvertisementService; + BOOL _isSmartLoginEnabled; +} + ++ (void)initialize +{ + if (self == [FBSDKDeviceLoginManager class]) { + g_loginManagerInstances = [NSMutableArray array]; + } +} + +- (instancetype)initWithPermissions:(NSArray *)permissions enableSmartLogin:(BOOL)enableSmartLogin +{ + if ((self = [super init])) { + _permissions = [permissions copy]; + _isSmartLoginEnabled = enableSmartLogin; + } + return self; +} + +- (void)start +{ + [FBSDKInternalUtility validateAppID]; + [g_loginManagerInstances addObject:self]; + + NSDictionary *parameters = @{ + @"scope": [self.permissions componentsJoinedByString:@","] ?: @"", + @"redirect_uri": self.redirectURL.absoluteString ?: @"", + FBSDK_DEVICE_INFO_PARAM: [FBSDKDeviceRequestsHelper getDeviceInfo], + }; + FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc] initWithGraphPath:@"device/login" + parameters:parameters + tokenString:[FBSDKInternalUtility validateRequiredClientAccessToken] + HTTPMethod:@"POST" + flags:FBSDKGraphRequestFlagNone]; + [request setGraphErrorRecoveryDisabled:YES]; + [request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) { + if (error) { + [self _processError:error]; + return; + } + + self->_codeInfo = [[FBSDKDeviceLoginCodeInfo alloc] + initWithIdentifier:result[@"code"] + loginCode:result[@"user_code"] + verificationURL:[NSURL URLWithString:result[@"verification_uri"]] + expirationDate:[[NSDate date] dateByAddingTimeInterval:[result[@"expires_in"] doubleValue]] + pollingInterval:[result[@"interval"] integerValue]]; + + if (self->_isSmartLoginEnabled) { + [FBSDKDeviceRequestsHelper startAdvertisementService:self->_codeInfo.loginCode + withDelegate:self + ]; + } + + [self.delegate deviceLoginManager:self startedWithCodeInfo:self->_codeInfo]; + [self _schedulePoll:self->_codeInfo.pollingInterval]; + }]; + } + +- (void)cancel +{ + [FBSDKDeviceRequestsHelper cleanUpAdvertisementService:self]; + _isCancelled = YES; + [g_loginManagerInstances removeObject:self]; +} + +#pragma mark - Private impl + +- (void)_notifyError:(NSError *)error +{ + [FBSDKDeviceRequestsHelper cleanUpAdvertisementService:self]; + [self.delegate deviceLoginManager:self + completedWithResult:nil + error:error]; + [g_loginManagerInstances removeObject:self]; +} + +- (void)_notifyToken:(NSString *)tokenString +{ + [FBSDKDeviceRequestsHelper cleanUpAdvertisementService:self]; + void(^completeWithResult)(FBSDKDeviceLoginManagerResult *) = ^(FBSDKDeviceLoginManagerResult *result) { + [self.delegate deviceLoginManager:self completedWithResult:result error:nil]; + [g_loginManagerInstances removeObject:self]; + }; + + if (tokenString) { + FBSDKGraphRequest *permissionsRequest = + [[FBSDKGraphRequest alloc] initWithGraphPath:@"me" + parameters:@{@"fields": @"id,permissions"} + tokenString:tokenString + HTTPMethod:@"GET" + flags:FBSDKGraphRequestFlagDisableErrorRecovery]; + [permissionsRequest startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id permissionRawResult, NSError *error) { + NSString *userID = permissionRawResult[@"id"]; + NSDictionary *permissionResult = permissionRawResult[@"permissions"]; + if (error || + !userID || + !permissionResult) { +#if TARGET_TV_OS + NSError *wrappedError = [FBSDKError errorWithDomain:FBSDKShareErrorDomain + code:FBSDKErrorTVOSUnknown + message:@"Unable to fetch permissions for token" + underlyingError:error]; +#else + NSError *wrappedError = [FBSDKError errorWithDomain:FBSDKLoginErrorDomain + code:FBSDKErrorUnknown + message:@"Unable to fetch permissions for token" + underlyingError:error]; +#endif + [self _notifyError:wrappedError]; + } else { + NSMutableSet *permissions = [NSMutableSet set]; + NSMutableSet *declinedPermissions = [NSMutableSet set]; + NSMutableSet *expiredPermissions = [NSMutableSet set]; + + [FBSDKInternalUtility extractPermissionsFromResponse:permissionResult + grantedPermissions:permissions + declinedPermissions:declinedPermissions + expiredPermissions:expiredPermissions]; + FBSDKAccessToken *accessToken = [[FBSDKAccessToken alloc] initWithTokenString:tokenString + permissions:permissions.allObjects + declinedPermissions:declinedPermissions.allObjects + expiredPermissions:expiredPermissions.allObjects + appID:[FBSDKSettings appID] + userID:userID + expirationDate:nil + refreshDate:nil + dataAccessExpirationDate:nil]; + FBSDKDeviceLoginManagerResult *result = [[FBSDKDeviceLoginManagerResult alloc] initWithToken:accessToken + isCancelled:NO]; + completeWithResult(result); + } + }]; + } else { + _isCancelled = YES; + FBSDKDeviceLoginManagerResult *result = [[FBSDKDeviceLoginManagerResult alloc] initWithToken:nil isCancelled:YES]; + completeWithResult(result); + } +} + +- (void)_processError:(NSError *)error +{ + FBSDKDeviceLoginError code = [error.userInfo[FBSDKGraphRequestErrorGraphErrorSubcodeKey] unsignedIntegerValue]; + switch (code) { + case FBSDKDeviceLoginErrorAuthorizationPending: + [self _schedulePoll:_codeInfo.pollingInterval]; + break; + case FBSDKDeviceLoginErrorCodeExpired: + case FBSDKDeviceLoginErrorAuthorizationDeclined: + [self _notifyToken:nil]; + break; + case FBSDKDeviceLoginErrorExcessivePolling: + [self _schedulePoll:_codeInfo.pollingInterval * 2]; + default: + [self _notifyError:error]; + break; + } +} + +- (void)_schedulePoll:(NSUInteger)interval +{ + dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(interval * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ + if (self->_isCancelled) { + return; + } + + NSDictionary *parameters = @{ @"code": self->_codeInfo.identifier }; + FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc] initWithGraphPath:@"device/login_status" + parameters:parameters + tokenString:[FBSDKInternalUtility validateRequiredClientAccessToken] + HTTPMethod:@"POST" + flags:FBSDKGraphRequestFlagNone]; + [request setGraphErrorRecoveryDisabled:YES]; + [request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) { + if (self->_isCancelled) { + return; + } + if (error) { + [self _processError:error]; + } else { + NSString *tokenString = result[@"access_token"]; + if (tokenString) { + [self _notifyToken:tokenString]; + } else { + NSError *unknownError = [FBSDKError errorWithDomain:FBSDKLoginErrorDomain + code:FBSDKErrorUnknown + message:@"Device Login poll failed. No token nor error was found."]; + [self _notifyError:unknownError]; + } + } + }]; + }); +} + +- (void)netService:(NSNetService *)sender + didNotPublish:(NSDictionary *)errorDict +{ + // Only cleanup if the publish error is from our advertising service + if ([FBSDKDeviceRequestsHelper isDelegate:self forAdvertisementService:sender]) + { + [FBSDKDeviceRequestsHelper cleanUpAdvertisementService:self]; + } +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginManagerResult.h b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginManagerResult.h new file mode 100644 index 0000000000000..786f11b6e18ed --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginManagerResult.h @@ -0,0 +1,51 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +/*! + @abstract Represents the results of the a device login flow. + @discussion This is used by `FBSDKDeviceLoginManager`. + */ +NS_SWIFT_NAME(DeviceLoginManagerResult) +@interface FBSDKDeviceLoginManagerResult : NSObject + +/*! + @abstract There is no public initializer. + */ +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/*! + @abstract The token. + */ +@property (nullable, nonatomic, strong, readonly) FBSDKAccessToken *accessToken; + +/*! + @abstract Indicates if the login was cancelled by the user, or if the device + login code has expired. + */ +@property (nonatomic, assign, readonly, getter=isCancelled) BOOL cancelled; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginManagerResult.m b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginManagerResult.m new file mode 100644 index 0000000000000..a95f1cfe46f5e --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginManagerResult.m @@ -0,0 +1,33 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKDeviceLoginManagerResult+Internal.h" + +@implementation FBSDKDeviceLoginManagerResult + +- (instancetype)initWithToken:(FBSDKAccessToken *)token + isCancelled:(BOOL)cancelled +{ + if ((self = [super init])) { + _accessToken = token; + _cancelled = cancelled; + } + return self; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginButton.h b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginButton.h new file mode 100644 index 0000000000000..577d636ef269b --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginButton.h @@ -0,0 +1,133 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import + +#import + +#import "FBSDKTooltipView.h" + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKLoginButtonDelegate; + +/** + NS_ENUM(NSUInteger, FBSDKLoginButtonTooltipBehavior) + Indicates the desired login tooltip behavior. + */ +typedef NS_ENUM(NSUInteger, FBSDKLoginButtonTooltipBehavior) +{ + /** The default behavior. The tooltip will only be displayed if + the app is eligible (determined by possible server round trip) */ + FBSDKLoginButtonTooltipBehaviorAutomatic = 0, + /** Force display of the tooltip (typically for UI testing) */ + FBSDKLoginButtonTooltipBehaviorForceDisplay = 1, + /** Force disable. In this case you can still exert more refined + control by manually constructing a `FBSDKLoginTooltipView` instance. */ + FBSDKLoginButtonTooltipBehaviorDisable = 2 +} NS_SWIFT_NAME(FBLoginButton.TooltipBehavior); + +/** + A button that initiates a log in or log out flow upon tapping. + + `FBSDKLoginButton` works with `[FBSDKAccessToken currentAccessToken]` to + determine what to display, and automatically starts authentication when tapped (i.e., + you do not need to manually subscribe action targets). + + Like `FBSDKLoginManager`, you should make sure your app delegate is connected to + `FBSDKApplicationDelegate` in order for the button's delegate to receive messages. + + `FBSDKLoginButton` has a fixed height of @c 30 pixels, but you may change the width. `initWithFrame:CGRectZero` + will size the button to its minimum frame. +*/ +NS_SWIFT_NAME(FBLoginButton) +@interface FBSDKLoginButton : FBSDKButton + +/** + The default audience to use, if publish permissions are requested at login time. + */ +@property (assign, nonatomic) FBSDKDefaultAudience defaultAudience; +/** + Gets or sets the delegate. + */ +@property (weak, nonatomic) IBOutlet id delegate; +/** + Gets or sets the login behavior to use + */ +@property (assign, nonatomic) FBSDKLoginBehavior loginBehavior +DEPRECATED_MSG_ATTRIBUTE("All login flows utilize the browser. This will be removed in the next major release"); + +/*! + @abstract The permissions to request. + @discussion To provide the best experience, you should minimize the number of permissions you request, and only ask for them when needed. + For example, do not ask for "user_location" until you the information is actually used by the app. + + Note this is converted to NSSet and is only + an NSArray for the convenience of literal syntax. + + See [the permissions guide]( https://developers.facebook.com/docs/facebook-login/permissions/ ) for more details. + */ +@property (copy, nonatomic) NSArray *permissions; +/** + Gets or sets the desired tooltip behavior. + */ +@property (assign, nonatomic) FBSDKLoginButtonTooltipBehavior tooltipBehavior; +/** + Gets or sets the desired tooltip color style. + */ +@property (assign, nonatomic) FBSDKTooltipColorStyle tooltipColorStyle; + +@end + +/** + @protocol + A delegate for `FBSDKLoginButton` + */ +NS_SWIFT_NAME(LoginButtonDelegate) +@protocol FBSDKLoginButtonDelegate + +@required +/** + Sent to the delegate when the button was used to login. + @param loginButton the sender + @param result The results of the login + @param error The error (if any) from the login + */ +- (void)loginButton:(FBSDKLoginButton *)loginButton +didCompleteWithResult:(nullable FBSDKLoginManagerLoginResult *)result + error:(nullable NSError *)error; + +/** + Sent to the delegate when the button was used to logout. + @param loginButton The button that was clicked. +*/ +- (void)loginButtonDidLogOut:(FBSDKLoginButton *)loginButton; + +@optional +/** + Sent to the delegate when the button is about to login. + @param loginButton the sender + @return YES if the login should be allowed to proceed, NO otherwise + */ +- (BOOL)loginButtonWillLogin:(FBSDKLoginButton *)loginButton; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginButton.m b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginButton.m new file mode 100644 index 0000000000000..73a81b3f1a3db --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginButton.m @@ -0,0 +1,333 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKLoginButton.h" + +#ifdef COCOAPODS +#import +#else +#import "FBSDKCoreKit+Internal.h" +#endif +#import "FBSDKLoginTooltipView.h" + +static const CGFloat kFBLogoSize = 16.0; +static const CGFloat kFBLogoLeftMargin = 6.0; +static const CGFloat kButtonHeight = 28.0; +static const CGFloat kRightMargin = 8.0; +static const CGFloat kPaddingBetweenLogoTitle = 8.0; + +@interface FBSDKLoginButton() +@end + +@implementation FBSDKLoginButton +{ + BOOL _hasShownTooltipBubble; + FBSDKLoginManager *_loginManager; + NSString *_userID; + NSString *_userName; +} + +#pragma mark - Object Lifecycle + +- (void)dealloc +{ + [[NSNotificationCenter defaultCenter] removeObserver:self]; +} + +#pragma mark - Properties + +- (FBSDKDefaultAudience)defaultAudience +{ + return _loginManager.defaultAudience; +} + +- (void)setDefaultAudience:(FBSDKDefaultAudience)defaultAudience +{ + _loginManager.defaultAudience = defaultAudience; +} + +- (FBSDKLoginBehavior)loginBehavior +{ + return _loginManager.loginBehavior; +} + +- (void)setLoginBehavior:(FBSDKLoginBehavior)loginBehavior +{ + _loginManager.loginBehavior = loginBehavior; +} + +- (UIFont *)defaultFont +{ + CGFloat size = 15; + + if (@available(iOS 8.2, *)) { + return [UIFont systemFontOfSize:size weight:UIFontWeightSemibold]; + } else { + return [UIFont boldSystemFontOfSize:size]; + } +} + +#pragma mark - UIView + +- (void)didMoveToWindow +{ + [super didMoveToWindow]; + + if (self.window && + ((self.tooltipBehavior == FBSDKLoginButtonTooltipBehaviorForceDisplay) || !_hasShownTooltipBubble)) { + [self performSelector:@selector(_showTooltipIfNeeded) withObject:nil afterDelay:0]; + _hasShownTooltipBubble = YES; + } +} + +#pragma mark - Layout + +- (CGRect)imageRectForContentRect:(CGRect)contentRect +{ + CGFloat centerY = CGRectGetMidY(contentRect); + CGFloat y = centerY - (kFBLogoSize / 2.0); + return CGRectMake(kFBLogoLeftMargin, y, kFBLogoSize, kFBLogoSize); +} + +- (CGRect)titleRectForContentRect:(CGRect)contentRect +{ + if (self.hidden || CGRectIsEmpty(self.bounds)) { + return CGRectZero; + } + CGRect imageRect = [self imageRectForContentRect:contentRect]; + CGFloat titleX = CGRectGetMaxX(imageRect) + kPaddingBetweenLogoTitle; + CGRect titleRect = CGRectMake(titleX, 0, CGRectGetWidth(contentRect) - titleX - kRightMargin, CGRectGetHeight(contentRect)); + + return titleRect; +} + +- (void)layoutSubviews +{ + CGSize size = self.bounds.size; + CGSize longTitleSize = [self sizeThatFits:size title:[self _longLogInTitle]]; + NSString *title = (longTitleSize.width <= size.width ? + [self _longLogInTitle] : + [self _shortLogInTitle]); + if (![title isEqualToString:[self titleForState:UIControlStateNormal]]) { + [self setTitle:title forState:UIControlStateNormal]; + } + + [super layoutSubviews]; +} + +- (CGSize)sizeThatFits:(CGSize)size +{ + if (self.hidden) { + return CGSizeZero; + } + UIFont *font = self.titleLabel.font; + + CGSize selectedSize = FBSDKTextSize([self _logOutTitle], font, size, self.titleLabel.lineBreakMode); + CGSize normalSize = FBSDKTextSize([self _longLogInTitle], font, size, self.titleLabel.lineBreakMode); + if (normalSize.width > size.width) { + normalSize = FBSDKTextSize([self _shortLogInTitle], font, size, self.titleLabel.lineBreakMode); + } + + CGFloat titleWidth = MAX(normalSize.width, selectedSize.width); + CGFloat buttonWidth = kFBLogoLeftMargin + kFBLogoSize + kPaddingBetweenLogoTitle + titleWidth + kRightMargin; + return CGSizeMake(buttonWidth, kButtonHeight); +} + +#pragma mark - FBSDKButtonImpressionTracking + +- (NSDictionary *)analyticsParameters +{ + return nil; +} + +- (NSString *)impressionTrackingEventName +{ + return FBSDKAppEventNameFBSDKLoginButtonImpression; +} + +- (NSString *)impressionTrackingIdentifier +{ + return @"login"; +} + +#pragma mark - FBSDKButton + +- (void)configureButton +{ + _loginManager = [[FBSDKLoginManager alloc] init]; + + NSString *logInTitle = [self _shortLogInTitle]; + NSString *logOutTitle = [self _logOutTitle]; + + [self configureWithIcon:nil + title:logInTitle + backgroundColor:self.backgroundColor + highlightedColor:nil + selectedTitle:logOutTitle + selectedIcon:nil + selectedColor:self.backgroundColor + selectedHighlightedColor:nil]; + self.titleLabel.textAlignment = NSTextAlignmentCenter; + [self addConstraint:[NSLayoutConstraint constraintWithItem:self + attribute:NSLayoutAttributeHeight + relatedBy:NSLayoutRelationEqual + toItem:nil + attribute:NSLayoutAttributeNotAnAttribute + multiplier:1 + constant:kButtonHeight]]; + [self _updateContent]; + + [self addTarget:self action:@selector(_buttonPressed:) forControlEvents:UIControlEventTouchUpInside]; + [[NSNotificationCenter defaultCenter] addObserver:self + selector:@selector(_accessTokenDidChangeNotification:) + name:FBSDKAccessTokenDidChangeNotification + object:nil]; +} + +#pragma mark - Helper Methods + +- (void)_accessTokenDidChangeNotification:(NSNotification *)notification +{ + if (notification.userInfo[FBSDKAccessTokenDidChangeUserIDKey] || notification.userInfo[FBSDKAccessTokenDidExpireKey]) { + [self _updateContent]; + } +} + +- (void)_buttonPressed:(id)sender +{ + [self logTapEventWithEventName:FBSDKAppEventNameFBSDKLoginButtonDidTap parameters:self.analyticsParameters]; + if (FBSDKAccessToken.isCurrentAccessTokenActive) { + NSString *title = nil; + + if (_userName) { + NSString *localizedFormatString = + NSLocalizedStringWithDefaultValue(@"LoginButton.LoggedInAs", @"FacebookSDK", [FBSDKInternalUtility bundleForStrings], + @"Logged in as %@", + @"The format string for the FBSDKLoginButton label when the user is logged in"); + title = [NSString localizedStringWithFormat:localizedFormatString, _userName]; + } else { + NSString *localizedLoggedIn = + NSLocalizedStringWithDefaultValue(@"LoginButton.LoggedIn", @"FacebookSDK", [FBSDKInternalUtility bundleForStrings], + @"Logged in using Facebook", + @"The fallback string for the FBSDKLoginButton label when the user name is not available yet"); + title = localizedLoggedIn; + } + NSString *cancelTitle = + NSLocalizedStringWithDefaultValue(@"LoginButton.CancelLogout", @"FacebookSDK", [FBSDKInternalUtility bundleForStrings], + @"Cancel", + @"The label for the FBSDKLoginButton action sheet to cancel logging out"); + NSString *logOutTitle = + NSLocalizedStringWithDefaultValue(@"LoginButton.ConfirmLogOut", @"FacebookSDK", [FBSDKInternalUtility bundleForStrings], + @"Log Out", + @"The label for the FBSDKLoginButton action sheet to confirm logging out"); + UIAlertController *alertController = [UIAlertController alertControllerWithTitle:title + message:nil + preferredStyle:UIAlertControllerStyleActionSheet]; + alertController.popoverPresentationController.sourceView = self; + alertController.popoverPresentationController.sourceRect = self.bounds; + UIAlertAction *cancel = [UIAlertAction actionWithTitle:cancelTitle + style:UIAlertActionStyleCancel + handler:nil]; + UIAlertAction *logout = [UIAlertAction actionWithTitle:logOutTitle + style:UIAlertActionStyleDestructive + handler:^(UIAlertAction * _Nonnull action) { + [self->_loginManager logOut]; + [self.delegate loginButtonDidLogOut:self]; + }]; + [alertController addAction:cancel]; + [alertController addAction:logout]; + UIViewController *topMostViewController = [FBSDKInternalUtility topMostViewController]; + [topMostViewController presentViewController:alertController + animated:YES + completion:nil]; + } else { + if ([self.delegate respondsToSelector:@selector(loginButtonWillLogin:)]) { + if (![self.delegate loginButtonWillLogin:self]) { + return; + } + } + + FBSDKLoginManagerLoginResultBlock handler = ^(FBSDKLoginManagerLoginResult *result, NSError *error) { + if ([self.delegate respondsToSelector:@selector(loginButton:didCompleteWithResult:error:)]) { + [self.delegate loginButton:self didCompleteWithResult:result error:error]; + } + }; + + [_loginManager logInWithPermissions:self.permissions + fromViewController:[FBSDKInternalUtility viewControllerForView:self] + handler:handler]; + + } +} + +- (NSString *)_logOutTitle +{ + return NSLocalizedStringWithDefaultValue(@"LoginButton.LogOut", @"FacebookSDK", [FBSDKInternalUtility bundleForStrings], + @"Log out", + @"The label for the FBSDKLoginButton when the user is currently logged in"); +} + +- (NSString *)_longLogInTitle +{ + return NSLocalizedStringWithDefaultValue(@"LoginButton.LogInContinue", @"FacebookSDK", [FBSDKInternalUtility bundleForStrings], + @"Continue with Facebook", + @"The long label for the FBSDKLoginButton when the user is currently logged out"); +} + +- (NSString *)_shortLogInTitle +{ + return NSLocalizedStringWithDefaultValue(@"LoginButton.LogIn", @"FacebookSDK", [FBSDKInternalUtility bundleForStrings], + @"Log in", + @"The short label for the FBSDKLoginButton when the user is currently logged out"); +} + +- (void)_showTooltipIfNeeded +{ + if ([FBSDKAccessToken currentAccessToken] || self.tooltipBehavior == FBSDKLoginButtonTooltipBehaviorDisable) { + return; + } else { + FBSDKLoginTooltipView *tooltipView = [[FBSDKLoginTooltipView alloc] init]; + tooltipView.colorStyle = self.tooltipColorStyle; + if (self.tooltipBehavior == FBSDKLoginButtonTooltipBehaviorForceDisplay) { + tooltipView.forceDisplay = YES; + } + [tooltipView presentFromView:self]; + } +} + +- (void)_updateContent +{ + BOOL accessTokenIsValid = FBSDKAccessToken.isCurrentAccessTokenActive; + self.selected = accessTokenIsValid; + if (accessTokenIsValid) { + if (![[FBSDKAccessToken currentAccessToken].userID isEqualToString:_userID]) { + FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc] initWithGraphPath:@"me?fields=id,name" + parameters:nil + flags:FBSDKGraphRequestFlagDisableErrorRecovery]; + [request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) { + NSString *userID = [FBSDKTypeUtility stringValue:result[@"id"]]; + if (!error && [[FBSDKAccessToken currentAccessToken].userID isEqualToString:userID]) { + self->_userName = [FBSDKTypeUtility stringValue:result[@"name"]]; + self->_userID = userID; + } + }]; + } + } +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginConstants.h b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginConstants.h new file mode 100644 index 0000000000000..471bfdcab3437 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginConstants.h @@ -0,0 +1,128 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_ASSUME_NONNULL_BEGIN + +#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0 + +/** + The error domain for all errors from FBSDKLoginKit + + Error codes from the SDK in the range 300-399 are reserved for this domain. + */ +FOUNDATION_EXPORT NSErrorDomain const FBSDKLoginErrorDomain +NS_SWIFT_NAME(LoginErrorDomain); + +#else + +/** + The error domain for all errors from FBSDKLoginKit + + Error codes from the SDK in the range 300-399 are reserved for this domain. + */ +FOUNDATION_EXPORT NSString *const FBSDKLoginErrorDomain +NS_SWIFT_NAME(LoginErrorDomain); + +#endif + +#ifndef NS_ERROR_ENUM +#define NS_ERROR_ENUM(_domain, _name) \ +enum _name: NSInteger _name; \ +enum __attribute__((ns_error_domain(_domain))) _name: NSInteger +#endif + +/** + FBSDKLoginError + Error codes for FBSDKLoginErrorDomain. + */ +typedef NS_ERROR_ENUM(FBSDKLoginErrorDomain, FBSDKLoginError) +{ + /** + Reserved. + */ + FBSDKLoginErrorReserved = 300, + + /** + The error code for unknown errors. + */ + FBSDKLoginErrorUnknown, + + /** + The user's password has changed and must log in again + */ + FBSDKLoginErrorPasswordChanged, + + /** + The user must log in to their account on www.facebook.com to restore access + */ + FBSDKLoginErrorUserCheckpointed, + + /** + Indicates a failure to request new permissions because the user has changed. + */ + FBSDKLoginErrorUserMismatch, + + /** + The user must confirm their account with Facebook before logging in + */ + FBSDKLoginErrorUnconfirmedUser, + + /** + The Accounts framework failed without returning an error, indicating the + app's slider in the iOS Facebook Settings (device Settings -> Facebook -> App Name) has + been disabled. + */ + FBSDKLoginErrorSystemAccountAppDisabled, + + /** + An error occurred related to Facebook system Account store + */ + FBSDKLoginErrorSystemAccountUnavailable, + + /** + The login response was missing a valid challenge string. + */ + FBSDKLoginErrorBadChallengeString, +} NS_SWIFT_NAME(LoginError); + +/** + FBSDKDeviceLoginError + Error codes for FBSDKDeviceLoginErrorDomain. + */ +typedef NS_ERROR_ENUM(FBSDKLoginErrorDomain, FBSDKDeviceLoginError) { + /** + Your device is polling too frequently. + */ + FBSDKDeviceLoginErrorExcessivePolling = 1349172, + /** + User has declined to authorize your application. + */ + FBSDKDeviceLoginErrorAuthorizationDeclined = 1349173, + /** + User has not yet authorized your application. Continue polling. + */ + FBSDKDeviceLoginErrorAuthorizationPending = 1349174, + /** + The code you entered has expired. + */ + FBSDKDeviceLoginErrorCodeExpired = 1349152 +} NS_SWIFT_NAME(DeviceLoginError); + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginConstants.m b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginConstants.m new file mode 100644 index 0000000000000..0e6e6e5edbd0b --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginConstants.m @@ -0,0 +1,29 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKLoginConstants.h" + +#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0 + +NSErrorDomain const FBSDKLoginErrorDomain = @"com.facebook.sdk.login"; + +#else + +NSString *const FBSDKLoginErrorDomain = @"com.facebook.sdk.login"; + +#endif diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit.h b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit.h new file mode 100644 index 0000000000000..aafc5779c626d --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit.h @@ -0,0 +1,31 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import +#import +#import +#import + +#if !TARGET_TV_OS +#import +#import +#import +#import +#endif diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginManager.h b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginManager.h new file mode 100644 index 0000000000000..78a7b0637672c --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginManager.h @@ -0,0 +1,173 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKLoginManagerLoginResult; + +/// typedef for FBSDKLoginAuthType +typedef NSString *const FBSDKLoginAuthType NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(LoginAuthType); + +/// Rerequest +FOUNDATION_EXPORT FBSDKLoginAuthType FBSDKLoginAuthTypeRerequest; + +/// Reauthorize +FOUNDATION_EXPORT FBSDKLoginAuthType FBSDKLoginAuthTypeReauthorize; + +/** + Describes the call back to the FBSDKLoginManager + @param result the result of the authorization + @param error the authorization error, if any. + */ +typedef void (^FBSDKLoginManagerLoginResultBlock)(FBSDKLoginManagerLoginResult *_Nullable result, + NSError *_Nullable error) +NS_SWIFT_NAME(LoginManagerLoginResultBlock); + + +/** + FBSDKDefaultAudience enum + + Passed to open to indicate which default audience to use for sessions that post data to Facebook. + + + + Certain operations such as publishing a status or publishing a photo require an audience. When the user + grants an application permission to perform a publish operation, a default audience is selected as the + publication ceiling for the application. This enumerated value allows the application to select which + audience to ask the user to grant publish permission for. + */ +typedef NS_ENUM(NSUInteger, FBSDKDefaultAudience) +{ + /** Indicates that the user's friends are able to see posts made by the application */ + FBSDKDefaultAudienceFriends = 0, + /** Indicates that only the user is able to see posts made by the application */ + FBSDKDefaultAudienceOnlyMe, + /** Indicates that all Facebook users are able to see posts made by the application */ + FBSDKDefaultAudienceEveryone, +} NS_SWIFT_NAME(DefaultAudience); + +/** + FBSDKLoginBehavior enum + + Passed to the \c FBSDKLoginManager to indicate how Facebook Login should be attempted. + + + + Facebook Login authorizes the application to act on behalf of the user, using the user's + Facebook account. Usually a Facebook Login will rely on an account maintained outside of + the application, by the native Facebook application, the browser, or perhaps the device + itself. This avoids the need for a user to enter their username and password directly, and + provides the most secure and lowest friction way for a user to authorize the application to + interact with Facebook. + + The \c FBSDKLoginBehavior enum specifies which log-in methods may be used. The SDK + will determine the best behavior based on the current device (such as iOS version). + */ +typedef NS_ENUM(NSUInteger, FBSDKLoginBehavior) +{ + /** + This is the default behavior, and indicates logging in via ASWebAuthenticationSession (iOS 12+) or SFAuthenticationSession (iOS 11), + which present specialized SafariViewControllers. Falls back to plain SFSafariViewController (iOS 9 and 10) or Safari (iOS 8). + */ + FBSDKLoginBehaviorBrowser = 0, +} NS_SWIFT_NAME(LoginBehavior) +DEPRECATED_MSG_ATTRIBUTE("All login flows utilize the browser. This will be removed in the next major release"); + +/** + `FBSDKLoginManager` provides methods for logging the user in and out. + + `FBSDKLoginManager` works directly with `[FBSDKAccessToken currentAccessToken]` and + sets the "currentAccessToken" upon successful authorizations (or sets `nil` in case of `logOut`). + + You should check `[FBSDKAccessToken currentAccessToken]` before calling logIn* to see if there is + a cached token available (typically in your viewDidLoad). + + If you are managing your own token instances outside of "currentAccessToken", you will need to set + "currentAccessToken" before calling logIn* to authorize further permissions on your tokens. + */ +NS_SWIFT_NAME(LoginManager) +@interface FBSDKLoginManager : NSObject + +/** + Auth type + */ +@property (strong, nonatomic) FBSDKLoginAuthType authType; +/** + the default audience. + + you should set this if you intend to ask for publish permissions. + */ +@property (assign, nonatomic) FBSDKDefaultAudience defaultAudience; + +/** + the login behavior + */ +@property (assign, nonatomic) FBSDKLoginBehavior loginBehavior +DEPRECATED_MSG_ATTRIBUTE("All login flows utilize the browser. This will be removed in the next major release"); + +/** + Logs the user in or authorizes additional permissions. + @param permissions the optional array of permissions. Note this is converted to NSSet and is only + an NSArray for the convenience of literal syntax. + @param fromViewController the view controller to present from. If nil, the topmost view controller will be + automatically determined as best as possible. + @param handler the callback. + + Use this method when asking for read permissions. You should only ask for permissions when they + are needed and explain the value to the user. You can inspect the result.declinedPermissions to also + provide more information to the user if they decline permissions. + + This method will present UI the user. You typically should check if `[FBSDKAccessToken currentAccessToken]` + already contains the permissions you need before asking to reduce unnecessary app switching. For example, + you could make that check at viewDidLoad. + You can only do one login call at a time. Calling a login method before the completion handler is called + on a previous login will return an error. + */ +- (void)logInWithPermissions:(NSArray *)permissions + fromViewController:(nullable UIViewController *)fromViewController + handler:(nullable FBSDKLoginManagerLoginResultBlock)handler +NS_SWIFT_NAME(logIn(permissions:from:handler:)); + +/** + Requests user's permission to reathorize application's data access, after it has expired due to inactivity. + @param fromViewController the view controller to present from. If nil, the topmost view controller will be + automatically determined as best as possible. + @param handler the callback. + Use this method when you need to reathorize your app's access to user data via Graph API, after such an access has expired. + You should provide as much context to the user as possible as to why you need to reauthorize the access, the scope of + access being reathorized, and what added value your app provides when the access is reathorized. + You can inspect the result.declinedPermissions to also provide more information to the user if they decline permissions. + This method will present UI the user. You typically should call this if `[FBSDKAccessToken isDataAccessExpired]` returns true. + */ +- (void)reauthorizeDataAccess:(UIViewController *)fromViewController + handler:(FBSDKLoginManagerLoginResultBlock)handler +NS_SWIFT_NAME(reauthorizeDataAccess(from:handler:)); + +/** + Logs the user out + + This calls [FBSDKAccessToken setCurrentAccessToken:nil] and [FBSDKProfile setCurrentProfile:nil]. + */ +- (void)logOut; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginManager.m b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginManager.m new file mode 100644 index 0000000000000..4f38ed58aa648 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginManager.m @@ -0,0 +1,542 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKLoginManager+Internal.h" +#import "FBSDKLoginManagerLoginResult+Internal.h" + +#import +#import +#ifdef COCOAPODS +#import +#else +#import "FBSDKCoreKit+Internal.h" +#endif + +#import "_FBSDKLoginRecoveryAttempter.h" +#import "FBSDKLoginCompletion.h" +#import "FBSDKLoginConstants.h" +#import "FBSDKLoginError.h" +#import "FBSDKLoginManagerLogger.h" +#import "FBSDKLoginUtility.h" + +static int const FBClientStateChallengeLength = 20; +static NSString *const FBSDKExpectedChallengeKey = @"expected_login_challenge"; +static NSString *const FBSDKOauthPath = @"/dialog/oauth"; +static NSString *const SFVCCanceledLogin = @"com.apple.SafariServices.Authentication"; +static NSString *const ASCanceledLogin = @"com.apple.AuthenticationServices.WebAuthenticationSession"; + +// constants +FBSDKLoginAuthType FBSDKLoginAuthTypeRerequest = @"rerequest"; +FBSDKLoginAuthType FBSDKLoginAuthTypeReauthorize = @"reauthorize"; + +typedef NS_ENUM(NSInteger, FBSDKLoginManagerState) { + FBSDKLoginManagerStateIdle, + // We received a call to start login. + FBSDKLoginManagerStateStart, + // We're calling out to the Facebook app or Safari to perform a log in + FBSDKLoginManagerStatePerformingLogin, +}; + +@implementation FBSDKLoginManager +{ + FBSDKLoginManagerLoginResultBlock _handler; + FBSDKLoginManagerLogger *_logger; + FBSDKLoginManagerState _state; + FBSDKKeychainStore *_keychainStore; + BOOL _usedSFAuthSession; +} + ++ (void)initialize +{ + if (self == [FBSDKLoginManager class]) { + [_FBSDKLoginRecoveryAttempter class]; + [FBSDKServerConfigurationManager loadServerConfigurationWithCompletionBlock:NULL]; + } +} + +- (instancetype)init +{ + self = [super init]; + if (self) { + self.authType = FBSDKLoginAuthTypeRerequest; + NSString *keyChainServiceIdentifier = [NSString stringWithFormat:@"com.facebook.sdk.loginmanager.%@", [NSBundle mainBundle].bundleIdentifier]; + _keychainStore = [[FBSDKKeychainStore alloc] initWithService:keyChainServiceIdentifier accessGroup:nil]; + } + return self; +} + +- (void)logInWithPermissions:(NSArray *)permissions + fromViewController:(UIViewController *)fromViewController + handler:(FBSDKLoginManagerLoginResultBlock)handler +{ + if (![self validateLoginStartState]) { + return; + } + self.fromViewController = fromViewController; + NSSet *permissionSet = [NSSet setWithArray:permissions]; + [self logInWithPermissions:permissionSet handler:handler]; +} + +- (void)reauthorizeDataAccess:(UIViewController *)fromViewController handler:(FBSDKLoginManagerLoginResultBlock)handler +{ + if (![self validateLoginStartState]) { + return; + } + self.fromViewController = fromViewController; + [self reauthorizeDataAccess:handler]; +} + + +- (void)logOut +{ + [FBSDKAccessToken setCurrentAccessToken:nil]; + [FBSDKProfile setCurrentProfile:nil]; +} + +#pragma mark - Private + +- (void)raiseLoginException:(NSException *)exception +{ + _state = FBSDKLoginManagerStateIdle; + [exception raise]; +} + +- (void)handleImplicitCancelOfLogIn +{ + FBSDKLoginManagerLoginResult *result = [[FBSDKLoginManagerLoginResult alloc] initWithToken:nil + isCancelled:YES + grantedPermissions:NSSet.set + declinedPermissions:NSSet.set]; + [result addLoggingExtra:@YES forKey:@"implicit_cancel"]; + [self invokeHandler:result error:nil]; +} + +- (BOOL)validateLoginStartState +{ + switch (_state) { + case FBSDKLoginManagerStateStart: { + if (self->_usedSFAuthSession) { + // Using SFAuthenticationSession makes an interestitial dialog that blocks the app, but in certain situations such as + // screen lock it can be dismissed and have the control returned to the app without invoking the completionHandler. + // In this case, the viewcontroller has the control back and tried to reinvoke the login. This is acceptable behavior + // and we should pop up the dialog again + return YES; + } + + NSString *errorStr = @"** WARNING: You are trying to start a login while a previous login has not finished yet." + "This is unsupported behavior. You should wait until the previous login handler gets called to start a new login."; + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors + formatString:@"%@", errorStr]; + return NO; + } + case FBSDKLoginManagerStatePerformingLogin:{ + [self handleImplicitCancelOfLogIn]; + return YES; + } + case FBSDKLoginManagerStateIdle: + _state = FBSDKLoginManagerStateStart; + return YES; + } +} + +- (BOOL)isPerformingLogin +{ + return _state == FBSDKLoginManagerStatePerformingLogin; +} + +- (void)assertPermissions:(NSArray *)permissions +{ + for (NSString *permission in permissions) { + if (![permission isKindOfClass:[NSString class]]) { + [self raiseLoginException:[NSException exceptionWithName:NSInvalidArgumentException + reason:@"Permissions must be string values." + userInfo:nil]]; + } + if ([permission rangeOfString:@","].location != NSNotFound) { + [self raiseLoginException:[NSException exceptionWithName:NSInvalidArgumentException + reason:@"Permissions should each be specified in separate string values in the array." + userInfo:nil]]; + } + } +} + +- (void)completeAuthentication:(FBSDKLoginCompletionParameters *)parameters expectChallenge:(BOOL)expectChallenge +{ + NSSet *recentlyGrantedPermissions = nil; + NSSet *recentlyDeclinedPermissions = nil; + FBSDKLoginManagerLoginResult *result = nil; + NSError *error = parameters.error; + + NSString *tokenString = parameters.accessTokenString; + BOOL cancelled = (tokenString == nil); + + BOOL challengePassed = YES; + if (expectChallenge) { + // Perform this check early so we be sure to clear expected challenge in all cases. + NSString *challengeReceived = parameters.challenge; + NSString *challengeExpected = [[self loadExpectedChallenge] stringByReplacingOccurrencesOfString:@"+" withString:@" "]; + if (![challengeExpected isEqualToString:challengeReceived]) { + challengePassed = NO; + } + + // Don't overwrite an existing error, if any. + if (!error && !cancelled && !challengePassed) { + error = [NSError fbErrorForFailedLoginWithCode:FBSDKLoginErrorBadChallengeString]; + } + } + + [self storeExpectedChallenge:nil]; + + if (!error) { + if (!cancelled) { + NSSet *grantedPermissions = parameters.permissions; + NSSet *declinedPermissions = parameters.declinedPermissions; + + [self determineRecentlyGrantedPermissions:&recentlyGrantedPermissions + recentlyDeclinedPermissions:&recentlyDeclinedPermissions + forGrantedPermission:grantedPermissions + declinedPermissions:declinedPermissions]; + + if (recentlyGrantedPermissions.count > 0) { + FBSDKAccessToken *token = [[FBSDKAccessToken alloc] initWithTokenString:tokenString + permissions:grantedPermissions.allObjects + declinedPermissions:declinedPermissions.allObjects + expiredPermissions:@[] + appID:parameters.appID + userID:parameters.userID + expirationDate:parameters.expirationDate + refreshDate:[NSDate date] + dataAccessExpirationDate:parameters.dataAccessExpirationDate]; + result = [[FBSDKLoginManagerLoginResult alloc] initWithToken:token + isCancelled:NO + grantedPermissions:recentlyGrantedPermissions + declinedPermissions:recentlyDeclinedPermissions]; + + if ([FBSDKAccessToken currentAccessToken]) { + [self validateReauthentication:[FBSDKAccessToken currentAccessToken] withResult:result]; + // in a reauth, short circuit and let the login handler be called when the validation finishes. + return; + } + } + } + + if (cancelled || recentlyGrantedPermissions.count == 0) { + NSSet *declinedPermissions = nil; + if ([FBSDKAccessToken currentAccessToken] != nil) { + // Always include the list of declined permissions from this login request + // if an access token is already cached by the SDK + declinedPermissions = recentlyDeclinedPermissions; + } + + result = [[FBSDKLoginManagerLoginResult alloc] initWithToken:nil + isCancelled:cancelled + grantedPermissions:NSSet.set + declinedPermissions:declinedPermissions]; + } + } + + if (result.token) { + [FBSDKAccessToken setCurrentAccessToken:result.token]; + } + + [self invokeHandler:result error:error]; +} + +- (void)determineRecentlyGrantedPermissions:(NSSet **)recentlyGrantedPermissionsRef + recentlyDeclinedPermissions:(NSSet **)recentlyDeclinedPermissionsRef + forGrantedPermission:(NSSet *)grantedPermissions + declinedPermissions:(NSSet *)declinedPermissions +{ + NSMutableSet *recentlyGrantedPermissions = [grantedPermissions mutableCopy]; + NSSet *previouslyGrantedPermissions = ([FBSDKAccessToken currentAccessToken] ? + [FBSDKAccessToken currentAccessToken].permissions : + nil); + if (previouslyGrantedPermissions.count > 0) { + // If there were no requested permissions for this auth - treat all permissions as granted. + // Otherwise this is a reauth, so recentlyGranted should be a subset of what was requested. + if (_requestedPermissions.count != 0) { + [recentlyGrantedPermissions intersectSet:_requestedPermissions]; + } + } + + NSMutableSet *recentlyDeclinedPermissions = [_requestedPermissions mutableCopy]; + [recentlyDeclinedPermissions intersectSet:declinedPermissions]; + + if (recentlyGrantedPermissionsRef != NULL) { + *recentlyGrantedPermissionsRef = [recentlyGrantedPermissions copy]; + } + if (recentlyDeclinedPermissionsRef != NULL) { + *recentlyDeclinedPermissionsRef = [recentlyDeclinedPermissions copy]; + } +} + +- (void)invokeHandler:(FBSDKLoginManagerLoginResult *)result error:(NSError *)error +{ + [_logger endLoginWithResult:result error:error]; + [_logger endSession]; + _logger = nil; + _state = FBSDKLoginManagerStateIdle; + + if (_handler) { + FBSDKLoginManagerLoginResultBlock handler = _handler; + _handler(result, error); + if (handler == _handler) { + _handler = nil; + } else { + [FBSDKLogger singleShotLogEntry:FBSDKLoggingBehaviorDeveloperErrors + formatString:@"** WARNING: You are requesting permissions inside the completion block of an existing login." + "This is unsupported behavior. You should request additional permissions only when they are needed, such as requesting for publish_actions" + "when the user performs a sharing action."]; + } + } +} + +- (NSString *)loadExpectedChallenge +{ + return [_keychainStore stringForKey:FBSDKExpectedChallengeKey]; +} + +- (NSDictionary *)logInParametersWithPermissions:(NSSet *)permissions serverConfiguration:(FBSDKServerConfiguration *)serverConfiguration +{ + [FBSDKInternalUtility validateURLSchemes]; + + NSMutableDictionary *loginParams = [NSMutableDictionary dictionary]; + loginParams[@"client_id"] = [FBSDKSettings appID]; + loginParams[@"response_type"] = @"token_or_nonce,signed_request"; + loginParams[@"redirect_uri"] = @"fbconnect://success"; + loginParams[@"display"] = @"touch"; + loginParams[@"sdk"] = @"ios"; + loginParams[@"return_scopes"] = @"true"; + loginParams[@"sdk_version"] = FBSDK_VERSION_STRING; + loginParams[@"fbapp_pres"] = @([FBSDKInternalUtility isFacebookAppInstalled]); + loginParams[@"auth_type"] = self.authType; + loginParams[@"logging_token"] = serverConfiguration.loggingToken; + + [FBSDKBasicUtility dictionary:loginParams setObject:[FBSDKSettings appURLSchemeSuffix] forKey:@"local_client_id"]; + [FBSDKBasicUtility dictionary:loginParams setObject:[FBSDKLoginUtility stringForAudience:self.defaultAudience] forKey:@"default_audience"]; + [FBSDKBasicUtility dictionary:loginParams setObject:[permissions.allObjects componentsJoinedByString:@","] forKey:@"scope"]; + + NSString *expectedChallenge = [FBSDKLoginManager stringForChallenge]; + NSDictionary *state = @{@"challenge": [FBSDKUtility URLEncode:expectedChallenge]}; + loginParams[@"state"] = [FBSDKBasicUtility JSONStringForObject:state error:NULL invalidObjectHandler:nil]; + + [self storeExpectedChallenge:expectedChallenge]; + + return loginParams; +} + +- (void)logInWithPermissions:(NSSet *)permissions handler:(FBSDKLoginManagerLoginResultBlock)handler +{ + FBSDKServerConfiguration *serverConfiguration = [FBSDKServerConfigurationManager cachedServerConfiguration]; + _logger = [[FBSDKLoginManagerLogger alloc] initWithLoggingToken:serverConfiguration.loggingToken]; + + _handler = [handler copy]; + _requestedPermissions = permissions; + + [_logger startSessionForLoginManager:self]; + + [self logIn]; +} + +- (void)reauthorizeDataAccess:(FBSDKLoginManagerLoginResultBlock)handler +{ + FBSDKServerConfiguration *serverConfiguration = [FBSDKServerConfigurationManager cachedServerConfiguration]; + _logger = [[FBSDKLoginManagerLogger alloc] initWithLoggingToken:serverConfiguration.loggingToken]; + _handler = [handler copy]; + // Don't need to pass permissions for data reauthorization. + _requestedPermissions = [NSSet set]; + self.authType = FBSDKLoginAuthTypeReauthorize; + [_logger startSessionForLoginManager:self]; + [self logIn]; +} + +- (void)logIn +{ + FBSDKServerConfiguration *serverConfiguration = [FBSDKServerConfigurationManager cachedServerConfiguration]; + NSDictionary *loginParams = [self logInParametersWithPermissions:_requestedPermissions serverConfiguration:serverConfiguration]; + self->_usedSFAuthSession = NO; + + void(^completion)(BOOL, NSString *, NSError *) = ^void(BOOL didPerformLogIn, NSString *authMethod, NSError *error) { + if (didPerformLogIn) { + [self->_logger startAuthMethod:authMethod]; + self->_state = FBSDKLoginManagerStatePerformingLogin; + } else if ([error.domain isEqualToString:SFVCCanceledLogin] || + [error.domain isEqualToString:ASCanceledLogin]) { + [self handleImplicitCancelOfLogIn]; + } else { + if (!error) { + error = [NSError errorWithDomain:FBSDKLoginErrorDomain code:FBSDKLoginErrorUnknown userInfo:nil]; + } + [self invokeHandler:nil error:error]; + } + }; + + [self performBrowserLogInWithParameters:loginParams handler:^(BOOL openedURL, + NSString *authMethod, + NSError *openedURLError) { + completion(openedURL, authMethod, openedURLError); + }]; +} + +- (void)storeExpectedChallenge:(NSString *)challengeExpected +{ + [_keychainStore setString:challengeExpected + forKey:FBSDKExpectedChallengeKey + accessibility:[FBSDKDynamicFrameworkLoader loadkSecAttrAccessibleAfterFirstUnlockThisDeviceOnly]]; +} + ++ (NSString *)stringForChallenge { + NSString *challenge = [FBSDKCrypto randomString:FBClientStateChallengeLength]; + + return [challenge stringByReplacingOccurrencesOfString:@"+" withString:@"="]; +} + +- (void)validateReauthentication:(FBSDKAccessToken *)currentToken withResult:(FBSDKLoginManagerLoginResult *)loginResult +{ + FBSDKGraphRequest *requestMe = [[FBSDKGraphRequest alloc] initWithGraphPath:@"me" + parameters:@{@"fields":@""} + tokenString:loginResult.token.tokenString + HTTPMethod:nil + flags:FBSDKGraphRequestFlagDoNotInvalidateTokenOnError | FBSDKGraphRequestFlagDisableErrorRecovery]; + [requestMe startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) { + NSString *actualID = result[@"id"]; + if ([currentToken.userID isEqualToString:actualID]) { + [FBSDKAccessToken setCurrentAccessToken:loginResult.token]; + [self invokeHandler:loginResult error:nil]; + } else { + NSMutableDictionary *userInfo = [NSMutableDictionary dictionary]; + [FBSDKBasicUtility dictionary:userInfo setObject:error forKey:NSUnderlyingErrorKey]; + NSError *resultError = [NSError errorWithDomain:FBSDKLoginErrorDomain + code:FBSDKLoginErrorUserMismatch + userInfo:userInfo]; + [self invokeHandler:nil error:resultError]; + } + }]; +} + +#pragma mark - Test Methods + +- (void)setHandler:(FBSDKLoginManagerLoginResultBlock)handler +{ + _handler = [handler copy]; +} + +- (void)setRequestedPermissions:(NSSet *)requestedPermissions +{ + _requestedPermissions = [requestedPermissions copy]; +} + +// change bool to auth method string. +- (void)performBrowserLogInWithParameters:(NSDictionary *)loginParams + handler:(FBSDKBrowserLoginSuccessBlock)handler +{ + [_logger willAttemptAppSwitchingBehavior]; + + FBSDKServerConfiguration *configuration = [FBSDKServerConfigurationManager cachedServerConfiguration]; + BOOL useSafariViewController = [configuration useSafariViewControllerForDialogName:FBSDKDialogConfigurationNameLogin]; + NSString *authMethod = (useSafariViewController ? FBSDKLoginManagerLoggerAuthMethod_SFVC : FBSDKLoginManagerLoggerAuthMethod_Browser); + + loginParams = [_logger parametersWithTimeStampAndClientState:loginParams forAuthMethod:authMethod]; + + NSURL *authURL = nil; + NSError *error; + NSURL *redirectURL = [FBSDKInternalUtility appURLWithHost:@"authorize" path:@"" queryParameters:@{} error:&error]; + if (!error) { + NSMutableDictionary *browserParams = [loginParams mutableCopy]; + [FBSDKBasicUtility dictionary:browserParams + setObject:redirectURL + forKey:@"redirect_uri"]; + authURL = [FBSDKInternalUtility facebookURLWithHostPrefix:@"m." + path:FBSDKOauthPath + queryParameters:browserParams + error:&error]; + } + if (authURL) { + void(^handlerWrapper)(BOOL, NSError*) = ^(BOOL didOpen, NSError *anError) { + if (handler) { + handler(didOpen, authMethod, anError); + } + }; + + if (useSafariViewController) { + // Note based on above, authURL must be a http scheme. If that changes, add a guard, otherwise SFVC can throw + self->_usedSFAuthSession = YES; + [[FBSDKBridgeAPI sharedInstance] openURLWithSafariViewController:authURL + sender:self + fromViewController:self.fromViewController + handler:handlerWrapper]; + } else { + [[FBSDKBridgeAPI sharedInstance] openURL:authURL sender:self handler:handlerWrapper]; + } + } else { + error = error ?: [FBSDKError errorWithCode:FBSDKLoginErrorUnknown message:@"Failed to construct oauth browser url"]; + if (handler) { + handler(NO, nil, error); + } + } +} + +#pragma mark - FBSDKURLOpening +- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation +{ + BOOL isFacebookURL = [self canOpenURL:url forApplication:application sourceApplication:sourceApplication annotation:annotation]; + + if (!isFacebookURL && [self isPerformingLogin]) { + [self handleImplicitCancelOfLogIn]; + } + + if (isFacebookURL) { + NSDictionary *urlParameters = [FBSDKLoginUtility queryParamsFromLoginURL:url]; + id completer = [[FBSDKLoginURLCompleter alloc] initWithURLParameters:urlParameters appID:[FBSDKSettings appID]]; + + if (_logger == nil) { + _logger = [FBSDKLoginManagerLogger loggerFromParameters:urlParameters]; + } + + // any necessary strong reference is maintained by the FBSDKLoginURLCompleter handler + [completer completeLoginWithHandler:^(FBSDKLoginCompletionParameters *parameters) { + [self completeAuthentication:parameters expectChallenge:YES]; + }]; + } + + return isFacebookURL; +} + +- (BOOL)canOpenURL:(NSURL *)url + forApplication:(UIApplication *)application + sourceApplication:(NSString *)sourceApplication + annotation:(id)annotation +{ + // verify the URL is intended as a callback for the SDK's log in + return [url.scheme hasPrefix:[NSString stringWithFormat:@"fb%@", [FBSDKSettings appID]]] && + [url.host isEqualToString:@"authorize"]; +} + +- (void)applicationDidBecomeActive:(UIApplication *)application +{ + if ([self isPerformingLogin]) { + [self handleImplicitCancelOfLogIn]; + } +} + +- (BOOL)isAuthenticationURL:(NSURL *)url +{ + return [url.path hasSuffix:FBSDKOauthPath]; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginManagerLoginResult.h b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginManagerLoginResult.h new file mode 100644 index 0000000000000..ffcaaae607b3a --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginManagerLoginResult.h @@ -0,0 +1,72 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_ASSUME_NONNULL_BEGIN + +@class FBSDKAccessToken; + +/** + Describes the result of a login attempt. + */ +NS_SWIFT_NAME(LoginManagerLoginResult) +@interface FBSDKLoginManagerLoginResult : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/** + the access token. + */ +@property (copy, nonatomic, nullable) FBSDKAccessToken *token; + +/** + whether the login was cancelled by the user. + */ +@property (readonly, nonatomic) BOOL isCancelled; + +/** + the set of permissions granted by the user in the associated request. + + inspect the token's permissions set for a complete list. + */ +@property (copy, nonatomic) NSSet *grantedPermissions; + +/** + the set of permissions declined by the user in the associated request. + + inspect the token's permissions set for a complete list. + */ +@property (copy, nonatomic) NSSet *declinedPermissions; + +/** + Initializes a new instance. + @param token the access token + @param isCancelled whether the login was cancelled by the user + @param grantedPermissions the set of granted permissions + @param declinedPermissions the set of declined permissions + */ +- (instancetype)initWithToken:(nullable FBSDKAccessToken *)token + isCancelled:(BOOL)isCancelled + grantedPermissions:(NSSet *)grantedPermissions + declinedPermissions:(NSSet *)declinedPermissions +NS_DESIGNATED_INITIALIZER; +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginManagerLoginResult.m b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginManagerLoginResult.m new file mode 100644 index 0000000000000..16e3e5fd1aeec --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginManagerLoginResult.m @@ -0,0 +1,55 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKLoginManagerLoginResult+Internal.h" + +#ifdef COCOAPODS +#import +#else +#import "FBSDKCoreKit+Internal.h" +#endif + +@implementation FBSDKLoginManagerLoginResult { + NSMutableDictionary *_mutableLoggingExtras; +} + +- (instancetype)initWithToken:(FBSDKAccessToken *)token + isCancelled:(BOOL)isCancelled + grantedPermissions:(NSSet *)grantedPermissions + declinedPermissions:(NSSet *)declinedPermissions { + if ((self = [super init])) { + _mutableLoggingExtras = [NSMutableDictionary dictionary]; + _token = token ? [token copy] : nil; + _isCancelled = isCancelled; + _grantedPermissions = [grantedPermissions copy]; + _declinedPermissions = [declinedPermissions copy]; + }; + return self; +} + +- (void)addLoggingExtra:(id)object forKey:(id)key +{ + [FBSDKBasicUtility dictionary:_mutableLoggingExtras setObject:object forKey:key]; +} + +- (NSDictionary *)loggingExtras +{ + return [_mutableLoggingExtras copy]; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginTooltipView.h b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginTooltipView.h new file mode 100644 index 0000000000000..63f9e32aa00e8 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginTooltipView.h @@ -0,0 +1,96 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol FBSDKLoginTooltipViewDelegate; + +/** + + Represents a tooltip to be displayed next to a Facebook login button + to highlight features for new users. + + + The `FBSDKLoginButton` may display this view automatically. If you do + not use the `FBSDKLoginButton`, you can manually call one of the `present*` methods + as appropriate and customize behavior via `FBSDKLoginTooltipViewDelegate` delegate. + + By default, the `FBSDKLoginTooltipView` is not added to the superview until it is + determined the app has migrated to the new login experience. You can override this + (e.g., to test the UI layout) by implementing the delegate or setting `forceDisplay` to YES. + + */ +NS_SWIFT_NAME(FBLoginTooltipView) +@interface FBSDKLoginTooltipView : FBSDKTooltipView + +/** the delegate */ +@property (nonatomic, weak) id delegate; + +/** if set to YES, the view will always be displayed and the delegate's + `loginTooltipView:shouldAppear:` will NOT be called. */ +@property (nonatomic, assign, getter=shouldForceDisplay) BOOL forceDisplay; + +@end + +/** + @protocol + + The `FBSDKLoginTooltipViewDelegate` protocol defines the methods used to receive event + notifications from `FBSDKLoginTooltipView` objects. + */ +NS_SWIFT_NAME(LoginTooltipViewDelegate) +@protocol FBSDKLoginTooltipViewDelegate + +@optional + +/** + Asks the delegate if the tooltip view should appear + + @param view The tooltip view. + @param appIsEligible The value fetched from the server identifying if the app + is eligible for the new login experience. + + + Use this method to customize display behavior. + */ +- (BOOL)loginTooltipView:(FBSDKLoginTooltipView *)view shouldAppear:(BOOL)appIsEligible; + +/** + Tells the delegate the tooltip view will appear, specifically after it's been + added to the super view but before the fade in animation. + + @param view The tooltip view. + */ +- (void)loginTooltipViewWillAppear:(FBSDKLoginTooltipView *)view; + +/** + Tells the delegate the tooltip view will not appear (i.e., was not + added to the super view). + + @param view The tooltip view. + */ +- (void)loginTooltipViewWillNotAppear:(FBSDKLoginTooltipView *)view; + + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginTooltipView.m b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginTooltipView.m new file mode 100644 index 0000000000000..79b62a2f89467 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginTooltipView.m @@ -0,0 +1,66 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKLoginTooltipView.h" + +#ifdef COCOAPODS +#import +#else +#import "FBSDKCoreKit+Internal.h" +#endif + +@interface FBSDKLoginTooltipView () +@end + +@implementation FBSDKLoginTooltipView + +- (instancetype)init +{ + NSString *tooltipMessage = + NSLocalizedStringWithDefaultValue(@"LoginTooltip.Message", @"FacebookSDK", [FBSDKInternalUtility bundleForStrings], + @"You're in control - choose what info you want to share with apps.", + @"The message of the FBSDKLoginTooltipView"); + return [super initWithTagline:nil message:tooltipMessage colorStyle:FBSDKTooltipColorStyleFriendlyBlue]; +} + +- (void)presentInView:(UIView *)view withArrowPosition:(CGPoint)arrowPosition direction:(FBSDKTooltipViewArrowDirection)arrowDirection +{ + if (self.forceDisplay) { + [super presentInView:view withArrowPosition:arrowPosition direction:arrowDirection]; + } else { + + [FBSDKServerConfigurationManager loadServerConfigurationWithCompletionBlock:^(FBSDKServerConfiguration *serverConfiguration, NSError *error) { + self.message = serverConfiguration.loginTooltipText; + BOOL shouldDisplay = serverConfiguration.loginTooltipEnabled; + if ([self.delegate respondsToSelector:@selector(loginTooltipView:shouldAppear:)]) { + shouldDisplay = [self.delegate loginTooltipView:self shouldAppear:shouldDisplay]; + } + if (shouldDisplay) { + [super presentInView:view withArrowPosition:arrowPosition direction:arrowDirection]; + if ([self.delegate respondsToSelector:@selector(loginTooltipViewWillAppear:)]) { + [self.delegate loginTooltipViewWillAppear:self]; + } + } else { + if ([self.delegate respondsToSelector:@selector(loginTooltipViewWillNotAppear:)]) { + [self.delegate loginTooltipViewWillNotAppear:self]; + } + } + }]; + } +} +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKTooltipView.h b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKTooltipView.h new file mode 100644 index 0000000000000..3941bcdd9ab8f --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKTooltipView.h @@ -0,0 +1,146 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + FBSDKTooltipViewArrowDirection enum + + Passed on construction to determine arrow orientation. + */ +typedef NS_ENUM(NSUInteger, FBSDKTooltipViewArrowDirection) +{ + /** View is located above given point, arrow is pointing down. */ + FBSDKTooltipViewArrowDirectionDown = 0, + /** View is located below given point, arrow is pointing up. */ + FBSDKTooltipViewArrowDirectionUp = 1, +} NS_SWIFT_NAME(FBTooltipView.ArrowDirection); + +/** + FBSDKTooltipColorStyle enum + + Passed on construction to determine color styling. + */ +typedef NS_ENUM(NSUInteger, FBSDKTooltipColorStyle) +{ + /** Light blue background, white text, faded blue close button. */ + FBSDKTooltipColorStyleFriendlyBlue = 0, + /** Dark gray background, white text, light gray close button. */ + FBSDKTooltipColorStyleNeutralGray = 1, +} NS_SWIFT_NAME(FBTooltipView.ColorStyle); + +/** + + Tooltip bubble with text in it used to display tips for UI elements, + with a pointed arrow (to refer to the UI element). + + + + The tooltip fades in and will automatically fade out. See `displayDuration`. + */ +NS_SWIFT_NAME(FBTooltipView) +@interface FBSDKTooltipView : UIView + +/** + Gets or sets the amount of time in seconds the tooltip should be displayed. + Set this to zero to make the display permanent until explicitly dismissed. + Defaults to six seconds. + */ +@property (nonatomic, assign) CFTimeInterval displayDuration; + +/** + Gets or sets the color style after initialization. + Defaults to value passed to -initWithTagline:message:colorStyle:. + */ +@property (nonatomic, assign) FBSDKTooltipColorStyle colorStyle; + +/** + Gets or sets the message. + */ +@property (nonatomic, copy, nullable) NSString *message; + +/** + Gets or sets the optional phrase that comprises the first part of the label (and is highlighted differently). + */ +@property (nonatomic, copy, nullable) NSString *tagline; + +/** + Designated initializer. + + @param tagline First part of the label, that will be highlighted with different color. Can be nil. + + @param message Main message to display. + + @param colorStyle Color style to use for tooltip. + + + + If you need to show a tooltip for login, consider using the `FBSDKLoginTooltipView` view. + + + @see FBSDKLoginTooltipView + */ +- (instancetype)initWithTagline:(nullable NSString *)tagline + message:(nullable NSString *)message + colorStyle:(FBSDKTooltipColorStyle)colorStyle; + +/** + Show tooltip at the top or at the bottom of given view. + Tooltip will be added to anchorView.window.rootViewController.view + + @param anchorView view to show at, must be already added to window view hierarchy, in order to decide + where tooltip will be shown. (If there's not enough space at the top of the anchorView in window bounds - + tooltip will be shown at the bottom of it) + + + + Use this method to present the tooltip with automatic positioning or + use -presentInView:withArrowPosition:direction: for manual positioning + If anchorView is nil or has no window - this method does nothing. + */ +- (void)presentFromView:(UIView *)anchorView; + +/** + Adds tooltip to given view, with given position and arrow direction. + + @param view View to be used as superview. + + @param arrowPosition Point in view's cordinates, where arrow will be pointing + + @param arrowDirection whenever arrow should be pointing up (message bubble is below the arrow) or + down (message bubble is above the arrow). + */ +- (void)presentInView:(UIView *)view + withArrowPosition:(CGPoint)arrowPosition + direction:(FBSDKTooltipViewArrowDirection)arrowDirection +NS_SWIFT_NAME(present(in:arrowPosition:direction:)); + +/** + Remove tooltip manually. + + + + Calling this method isn't necessary - tooltip will dismiss itself automatically after the `displayDuration`. + */ +- (void)dismiss; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKTooltipView.m b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKTooltipView.m new file mode 100644 index 0000000000000..978bc926fe690 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKTooltipView.m @@ -0,0 +1,607 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKTooltipView.h" + +#import + +#ifdef COCOAPODS +#import +#else +#import "FBSDKCoreKit+Internal.h" +#endif + +static const CGFloat kTransitionDuration = 0.3; +static const CGFloat kZoomOutScale = 0.001f; +static const CGFloat kZoomInScale = 1.1f; +static const CGFloat kZoomBounceScale = 0.98f; + +static const CGFloat kNUXRectInset = 6; +static const CGFloat kNUXBubbleMargin = 17 - kNUXRectInset; +static const CGFloat kNUXPointMargin = -3; +static const CGFloat kNUXCornerRadius = 4; +static const CGFloat kNUXStrokeLineWidth = 0.5f; +static const CGFloat kNUXSideCap = 6; +static const CGFloat kNUXFontSize = 10; +static const CGFloat kNUXCrossGlyphSize = 11; + +static CGMutablePathRef _fbsdkCreateUpPointingBubbleWithRect(CGRect rect, CGFloat arrowMidpoint, CGFloat arrowHeight, CGFloat radius); +static CGMutablePathRef _fbsdkCreateDownPointingBubbleWithRect(CGRect rect, CGFloat arrowMidpoint, CGFloat arrowHeight, CGFloat radius); + +#pragma mark - + +@implementation FBSDKTooltipView +{ + CGPoint _positionInView; + CFAbsoluteTime _displayTime; + CFTimeInterval _minimumDisplayDuration; + UILabel *_textLabel; + UITapGestureRecognizer *_insideTapGestureRecognizer; + CGFloat _leftWidth; + CGFloat _rightWidth; + CGFloat _arrowMidpoint; + BOOL _pointingUp; + BOOL _isFadingOut; + // style + UIColor *_innerStrokeColor; + CGFloat _arrowHeight; + CGFloat _textPadding; + CGFloat _maximumTextWidth; + CGFloat _verticalTextOffset; + CGFloat _verticalCrossOffset; + FBSDKTooltipColorStyle _colorStyle; + NSArray *_gradientColors; + UIColor *_crossCloseGlyphColor; +} + +- (instancetype)initWithTagline:(NSString *)tagline message:(NSString *)message colorStyle:(FBSDKTooltipColorStyle)colorStyle +{ + self = [super initWithFrame:CGRectZero]; + if (self) { + // Define style + _textLabel = [[UILabel alloc] initWithFrame:CGRectZero]; + _textLabel.backgroundColor = [UIColor clearColor]; + _textLabel.autoresizingMask = UIViewAutoresizingFlexibleRightMargin; + _textLabel.numberOfLines = 0; + _textLabel.font = [UIFont boldSystemFontOfSize: kNUXFontSize]; + _textLabel.textAlignment = NSTextAlignmentLeft; + _arrowHeight = 7; + _textPadding = 10; + _maximumTextWidth = 185; + _verticalCrossOffset = - 2.5f; + _verticalTextOffset = 0; + _displayDuration = 6.0; + self.colorStyle = colorStyle; + + _message = [message copy]; + _tagline = [tagline copy]; + [self setMessage:message tagline:tagline]; + [self addSubview:_textLabel]; + + _insideTapGestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(onTapInTooltip:)]; + [self addGestureRecognizer:_insideTapGestureRecognizer]; + + self.opaque = NO; + self.backgroundColor = [UIColor clearColor]; + self.layer.needsDisplayOnBoundsChange = YES; + self.layer.shadowColor = [UIColor blackColor].CGColor; + self.layer.shadowOpacity = 0.5f; + self.layer.shadowOffset = CGSizeMake(0.0f, 2.0f); + self.layer.shadowRadius = 5.0f; + self.layer.masksToBounds = NO; + } + return self; +} + +- (void)dealloc +{ + [_insideTapGestureRecognizer removeTarget:self action:NULL]; +} + +#pragma mark - Public Methods + +- (void)setMessage:(NSString *)message +{ + if (![message isEqualToString:_message]) { + _message = [message copy]; + [self setMessage:_message tagline:self.tagline]; + } +} + +- (void)setTagline:(NSString *)tagline +{ + if (![tagline isEqualToString:_tagline]) { + _tagline = [tagline copy]; + [self setMessage:self.message tagline:_tagline]; + } +} + +#pragma mark Presentation + +- (void)presentFromView:(UIView *)anchorView +{ + UIView *superview = anchorView.window.rootViewController.view; + if (!superview) { + return; + } + + // By default - attach to the top, pointing down + CGPoint position = CGPointMake(CGRectGetMidX(anchorView.bounds), CGRectGetMinY(anchorView.bounds)); + CGPoint positionInSuperview = [superview convertPoint:position fromView:anchorView]; + FBSDKTooltipViewArrowDirection direction = FBSDKTooltipViewArrowDirectionDown; + + // If not enough space to point up from top of anchor view - point up to it's bottom + CGFloat bubbleHeight = CGRectGetHeight(_textLabel.bounds) + _verticalTextOffset + _textPadding * 2; + if (positionInSuperview.y - bubbleHeight - kNUXBubbleMargin < CGRectGetMinY(superview.bounds)) { + direction = FBSDKTooltipViewArrowDirectionUp; + position = CGPointMake(CGRectGetMidX(anchorView.bounds), CGRectGetMaxY(anchorView.bounds)); + positionInSuperview = [superview convertPoint:position fromView:anchorView]; + } + + [self presentInView:superview withArrowPosition:positionInSuperview direction:direction]; +} + +- (void)presentInView:(UIView *)view withArrowPosition:(CGPoint)arrowPosition direction:(FBSDKTooltipViewArrowDirection)arrowDirection +{ + _pointingUp = arrowDirection == FBSDKTooltipViewArrowDirectionUp; + _positionInView = arrowPosition; + self.frame = [self layoutSubviewsAndDetermineFrame]; + + // Add to view, while invisible. + self.hidden = YES; + if (self.superview) { + [self removeFromSuperview]; + } + [view addSubview:self]; + + // Layout & schedule dismissal. + _displayTime = CFAbsoluteTimeGetCurrent(); + _isFadingOut = NO; + [self scheduleAutomaticFadeout]; + [self layoutSubviews]; + + [self animateFadeIn]; +} + +- (void)dismiss +{ + if (_isFadingOut) { + return; + } + _isFadingOut = YES; + + [self animateFadeOutWithCompletion:^{ + [self removeFromSuperview]; + [self cancelAllScheduledFadeOutMethods]; + self->_isFadingOut = NO; + }]; +} + +#pragma mark Style + +- (FBSDKTooltipColorStyle)colorStyle +{ + return _colorStyle; +} + +- (void)setColorStyle:(FBSDKTooltipColorStyle)colorStyle +{ + _colorStyle = colorStyle; + switch (colorStyle) { + case FBSDKTooltipColorStyleNeutralGray: + _gradientColors = @[ + (id)(FBSDKUIColorWithRGB(0x51, 0x50, 0x4f).CGColor), + (id)(FBSDKUIColorWithRGB(0x2d, 0x2c, 0x2c).CGColor) + ]; + _innerStrokeColor = [UIColor colorWithWhite:0.13f alpha:1.0f]; + _crossCloseGlyphColor = [UIColor colorWithWhite:0.69f alpha:1.0f]; + break; + + case FBSDKTooltipColorStyleFriendlyBlue: + default: + _gradientColors = @[ + (id)(FBSDKUIColorWithRGB(0x6e, 0x9c, 0xf5).CGColor), + (id)(FBSDKUIColorWithRGB(0x49, 0x74, 0xc6).CGColor) + ]; + _innerStrokeColor = [UIColor colorWithRed:0.12f green:0.26f blue:0.55f alpha:1.0f]; + _crossCloseGlyphColor = [UIColor colorWithRed:0.60f green:0.73f blue:1.0f alpha:1.0f]; + break; + } + + _textLabel.textColor = [UIColor whiteColor]; +} + +#pragma mark - Private Methods +#pragma mark Animation + +- (void)animateFadeIn +{ + // Prepare Animation: Zoom in with bounce. Keep the arrow point in place. + // Set initial transform (zoomed out) & become visible. + CGFloat centerPos = self.bounds.size.width / 2.0; + CGFloat zoomOffsetX = (centerPos - _arrowMidpoint) * (kZoomOutScale - 1.0f); + CGFloat zoomOffsetY = -0.5f * self.bounds.size.height * (kZoomOutScale - 1.0f); + if (_pointingUp) { + zoomOffsetY = -zoomOffsetY; + } + self.layer.transform = fbsdkdfl_CATransform3DConcat(fbsdkdfl_CATransform3DMakeScale(kZoomOutScale, kZoomOutScale, kZoomOutScale), + fbsdkdfl_CATransform3DMakeTranslation(zoomOffsetX, zoomOffsetY, 0)); + self.hidden = NO; + + // Prepare animation steps + // 1st Step. + void (^zoomIn)(void) = ^{ + self.alpha = 1.0; + + CGFloat newZoomOffsetX = (centerPos - self->_arrowMidpoint) * (kZoomInScale - 1.0f); + CGFloat newZoomOffsetY = -0.5f * self.bounds.size.height * (kZoomInScale - 1.0f); + if (self->_pointingUp) { + newZoomOffsetY = -newZoomOffsetY; + } + + CATransform3D scale = fbsdkdfl_CATransform3DMakeScale(kZoomInScale, kZoomInScale, kZoomInScale); + CATransform3D translate =fbsdkdfl_CATransform3DMakeTranslation(newZoomOffsetX, newZoomOffsetY, 0); + self.layer.transform = fbsdkdfl_CATransform3DConcat(scale, translate); + }; + + // 2nd Step. + void (^bounceZoom)(void) = ^{ + CGFloat centerPos2 = self.bounds.size.width / 2.0; + CGFloat zoomOffsetX2 = (centerPos2 - self->_arrowMidpoint) * (kZoomBounceScale - 1.0f); + CGFloat zoomOffsetY2 = -0.5f * self.bounds.size.height * (kZoomBounceScale - 1.0f); + if (self->_pointingUp) { + zoomOffsetY2 = -zoomOffsetY2; + } + self.layer.transform = fbsdkdfl_CATransform3DConcat(fbsdkdfl_CATransform3DMakeScale(kZoomBounceScale, kZoomBounceScale, kZoomBounceScale), + fbsdkdfl_CATransform3DMakeTranslation(zoomOffsetX2, zoomOffsetY2, 0)); + }; + + // 3rd Step. + void (^normalizeZoom)(void) = ^{ + self.layer.transform = fbsdkdfl_CATransform3DIdentity; + }; + + // Animate 3 steps sequentially + [UIView animateWithDuration:kTransitionDuration/1.5 + delay:0 + options:UIViewAnimationOptionCurveEaseInOut + animations:zoomIn + completion:^(BOOL finished) { + [UIView animateWithDuration:kTransitionDuration/2.2 + animations:bounceZoom + completion:^(BOOL innerFinished) { + [UIView animateWithDuration:kTransitionDuration/5 + animations:normalizeZoom]; + }]; + }]; +} + +- (void) animateFadeOutWithCompletion: (void(^)(void)) completionHandler +{ + [UIView animateWithDuration:0.3 + delay:0 + options:UIViewAnimationOptionCurveEaseInOut + animations:^{ + self.alpha = 0.0; + } + completion:^(BOOL complete) { + if(completionHandler) + completionHandler(); + }]; +} + +#pragma mark Gestures + +- (void)onTapInTooltip:(UIGestureRecognizer*)sender +{ + // ignore incomplete tap gestures + if (sender.state != UIGestureRecognizerStateEnded) { + return; + } + + // fade out the tooltip view right away + [self dismiss]; +} + +#pragma mark Drawing + +CGMutablePathRef _fbsdkCreateUpPointingBubbleWithRect(CGRect rect, CGFloat arrowMidpoint, CGFloat arrowHeight, CGFloat radius) +{ + CGMutablePathRef path = CGPathCreateMutable(); + CGFloat arrowHalfWidth = arrowHeight; + // start with arrow + CGPathMoveToPoint(path, NULL, arrowMidpoint - arrowHalfWidth, CGRectGetMinY(rect)); + CGPathAddLineToPoint(path, NULL, arrowMidpoint, CGRectGetMinY(rect) - arrowHeight); + CGPathAddLineToPoint(path, NULL, arrowMidpoint + arrowHalfWidth, CGRectGetMinY(rect)); + + // rest of curved rectangle + CGPathAddArcToPoint(path, NULL, CGRectGetMaxX(rect), CGRectGetMinY(rect), CGRectGetMaxX(rect), CGRectGetMaxY(rect), radius); + CGPathAddArcToPoint(path, NULL, CGRectGetMaxX(rect), CGRectGetMaxY(rect), CGRectGetMinX(rect), CGRectGetMaxY(rect), radius); + CGPathAddArcToPoint(path, NULL, CGRectGetMinX(rect), CGRectGetMaxY(rect), CGRectGetMinX(rect), CGRectGetMinY(rect), radius); + CGPathAddArcToPoint(path, NULL, CGRectGetMinX(rect), CGRectGetMinY(rect), CGRectGetMaxX(rect), CGRectGetMinY(rect), radius); + CGPathCloseSubpath(path); + return path; +} + +CGMutablePathRef _fbsdkCreateDownPointingBubbleWithRect(CGRect rect, CGFloat arrowMidpoint, CGFloat arrowHeight, CGFloat radius) +{ + CGMutablePathRef path = CGPathCreateMutable(); + CGFloat arrowHalfWidth = arrowHeight; + + // start with arrow + CGPathMoveToPoint(path, NULL, arrowMidpoint + arrowHalfWidth, CGRectGetMaxY(rect)); + CGPathAddLineToPoint(path, NULL, arrowMidpoint, CGRectGetMaxY(rect) + arrowHeight); + CGPathAddLineToPoint(path, NULL, arrowMidpoint - arrowHalfWidth, CGRectGetMaxY(rect)); + + // rest of curved rectangle + CGPathAddArcToPoint(path, NULL, CGRectGetMinX(rect), CGRectGetMaxY(rect), CGRectGetMinX(rect), CGRectGetMinY(rect), radius); + CGPathAddArcToPoint(path, NULL, CGRectGetMinX(rect), CGRectGetMinY(rect), CGRectGetMaxX(rect), CGRectGetMinY(rect), radius); + CGPathAddArcToPoint(path, NULL, CGRectGetMaxX(rect), CGRectGetMinY(rect), CGRectGetMaxX(rect), CGRectGetMaxY(rect), radius); + CGPathAddArcToPoint(path, NULL, CGRectGetMaxX(rect), CGRectGetMaxY(rect), CGRectGetMinX(rect), CGRectGetMaxY(rect), radius); + CGPathCloseSubpath(path); + return path; +} + +static CGMutablePathRef _createCloseCrossGlyphWithRect(CGRect rect) +{ + CGFloat lineThickness = 0.20f * CGRectGetHeight(rect); + + // One rectangle + CGMutablePathRef path1 = CGPathCreateMutable(); + CGPathMoveToPoint(path1, NULL, CGRectGetMinX(rect), CGRectGetMinY(rect) + lineThickness); + CGPathAddLineToPoint(path1, NULL, CGRectGetMinX(rect) + lineThickness, CGRectGetMinY(rect)); + CGPathAddLineToPoint(path1, NULL, CGRectGetMaxX(rect), CGRectGetMaxY(rect) - lineThickness); + CGPathAddLineToPoint(path1, NULL, CGRectGetMaxX(rect) - lineThickness, CGRectGetMaxY(rect)); + CGPathCloseSubpath(path1); + + // 2nd rectangle - mirrored horizontally + CGMutablePathRef path2 = CGPathCreateMutable(); + CGPathMoveToPoint(path2, NULL, CGRectGetMinX(rect), CGRectGetMaxY(rect) - lineThickness); + CGPathAddLineToPoint(path2, NULL, CGRectGetMaxX(rect) - lineThickness, CGRectGetMinY(rect)); + CGPathAddLineToPoint(path2, NULL, CGRectGetMaxX(rect), CGRectGetMinY(rect) + lineThickness); + CGPathAddLineToPoint(path2, NULL, CGRectGetMinX(rect) + lineThickness, CGRectGetMaxY(rect)); + CGPathCloseSubpath(path2); + + CGMutablePathRef groupedPath = CGPathCreateMutable(); + CGPathAddPath(groupedPath, NULL, path1); + CGPathAddPath(groupedPath, NULL, path2); + CFRelease(path1); + CFRelease(path2); + + return groupedPath; +} + +- (void)drawRect:(CGRect)rect +{ + // Ignore dirty rect and just redraw the entire nux bubble + CGFloat arrowSideMargin = 1 + 0.5f * MAX(kNUXRectInset, _arrowHeight); + CGFloat arrowYMarginOffset = _pointingUp ? arrowSideMargin : kNUXRectInset; + CGFloat halfStroke = kNUXStrokeLineWidth / 2.0; + CGRect outerRect = CGRectMake(kNUXRectInset + halfStroke, + arrowYMarginOffset + halfStroke, + self.bounds.size.width - 2 * kNUXRectInset - kNUXStrokeLineWidth, + self.bounds.size.height - kNUXRectInset - arrowSideMargin - kNUXStrokeLineWidth); + outerRect = CGRectInset(outerRect, 5, 5); + CGRect innerRect = CGRectInset(outerRect, kNUXStrokeLineWidth, kNUXStrokeLineWidth); + CGRect fillRect = CGRectInset(innerRect, kNUXStrokeLineWidth/2.0, kNUXStrokeLineWidth/2.0); + CGFloat closeCrossGlyphPositionY = MIN(CGRectGetMinY(fillRect) + _textPadding + _verticalCrossOffset, + CGRectGetMidY(fillRect) - 0.5f * kNUXCrossGlyphSize); + CGRect closeCrossGlyphRect = CGRectMake(CGRectGetMaxX(fillRect) - 2 * kNUXFontSize, closeCrossGlyphPositionY, + kNUXCrossGlyphSize, kNUXCrossGlyphSize); + + // setup and get paths + CGContextRef context = UIGraphicsGetCurrentContext(); + CGMutablePathRef outerPath; + CGMutablePathRef innerPath; + CGMutablePathRef fillPath; + CGMutablePathRef crossCloseGlyphPath = _createCloseCrossGlyphWithRect(closeCrossGlyphRect); + CGRect gradientRect = fillRect; + if (_pointingUp) { + outerPath = _fbsdkCreateUpPointingBubbleWithRect(outerRect, + _arrowMidpoint, _arrowHeight, + kNUXCornerRadius + kNUXStrokeLineWidth); + innerPath = _fbsdkCreateUpPointingBubbleWithRect(innerRect, + _arrowMidpoint, _arrowHeight, + kNUXCornerRadius); + fillPath = _fbsdkCreateUpPointingBubbleWithRect(fillRect, + _arrowMidpoint, _arrowHeight, + kNUXCornerRadius - kNUXStrokeLineWidth); + gradientRect.origin.y -= _arrowHeight; + gradientRect.size.height += _arrowHeight; + } else { + outerPath = _fbsdkCreateDownPointingBubbleWithRect(outerRect, + _arrowMidpoint, _arrowHeight, + kNUXCornerRadius + kNUXStrokeLineWidth); + innerPath = _fbsdkCreateDownPointingBubbleWithRect(innerRect, + _arrowMidpoint, _arrowHeight, + kNUXCornerRadius); + fillPath = _fbsdkCreateDownPointingBubbleWithRect(fillRect, + _arrowMidpoint, _arrowHeight, + kNUXCornerRadius - kNUXStrokeLineWidth); + gradientRect.size.height += _arrowHeight; + } + self.layer.shadowPath = outerPath; + + // This tooltip has two borders, so draw two strokes and a fill. + CGColorRef strokeColor = _innerStrokeColor.CGColor; + CGContextSaveGState(context); + CGContextSetStrokeColorWithColor(context, strokeColor); + CGContextSetLineWidth(context, kNUXStrokeLineWidth); + CGContextAddPath(context, innerPath); + CGContextStrokePath(context); + CGContextAddPath(context, fillPath); + CGContextClip(context); + CGColorSpaceRef rgbColorspace = CGColorSpaceCreateDeviceRGB(); + CGGradientRef gradient = CGGradientCreateWithColors(rgbColorspace, (CFArrayRef)_gradientColors, nil); + CGColorSpaceRelease(rgbColorspace); + CGPoint start = CGPointMake(gradientRect.origin.x, gradientRect.origin.y); + CGPoint end = CGPointMake(gradientRect.origin.x, CGRectGetMaxY(gradientRect)); + CGContextDrawLinearGradient(context, gradient, start, end, 0); + CGContextAddPath(context, crossCloseGlyphPath); + CGContextSetFillColorWithColor(context, _crossCloseGlyphColor.CGColor); + CGContextFillPath(context); + CGGradientRelease(gradient); + CGContextRestoreGState(context); + CFRelease(outerPath); + CFRelease(innerPath); + CFRelease(fillPath); + CFRelease(crossCloseGlyphPath); +} + +#pragma mark Layout + +- (void)layoutSubviews +{ + [super layoutSubviews]; + + // We won't set the frame in layoutSubviews to avoid potential infinite loops. + // Frame is set in -presentInView:withArrowPosition:direction: method. + [self layoutSubviewsAndDetermineFrame]; +} + +- (CGRect)layoutSubviewsAndDetermineFrame +{ + // Compute the positioning of the arrow. + CGRect screenBounds = [UIScreen mainScreen].bounds; + UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation; + if (!UIInterfaceOrientationIsPortrait(orientation)) { + screenBounds = CGRectMake(0, 0, screenBounds.size.height, screenBounds.size.width); + } + CGFloat arrowHalfWidth = _arrowHeight; + CGFloat arrowXPos = _positionInView.x - arrowHalfWidth; + arrowXPos = MAX(arrowXPos, kNUXSideCap + kNUXBubbleMargin); + arrowXPos = MIN(arrowXPos, screenBounds.size.width - kNUXBubbleMargin - kNUXSideCap - 2 * arrowHalfWidth); + _positionInView = CGPointMake(arrowXPos + arrowHalfWidth, _positionInView.y); + + CGFloat arrowYMarginOffset = _pointingUp ? MAX(kNUXRectInset, _arrowHeight) : kNUXRectInset; + + // Set the lock image frame. + CGFloat xPos = kNUXRectInset + _textPadding + kNUXStrokeLineWidth; + CGFloat yPos = arrowYMarginOffset + kNUXStrokeLineWidth + _textPadding; + + // Set the text label frame. + _textLabel.frame = CGRectMake(xPos, + yPos + _verticalTextOffset, // sizing function may not return desired height exactly + CGRectGetWidth(_textLabel.bounds), + CGRectGetHeight(_textLabel.bounds)); + + // Determine the size of the nux bubble. + CGFloat bubbleHeight = CGRectGetHeight(_textLabel.bounds) + _verticalTextOffset + _textPadding * 2; + CGFloat crossGlyphWidth = 2 * kNUXFontSize; + CGFloat bubbleWidth = CGRectGetWidth(_textLabel.bounds) + _textPadding * 2 + kNUXStrokeLineWidth * 2 + crossGlyphWidth; + + // Compute the widths to the left and right of the arrow. + _leftWidth = roundf(0.5f * (bubbleWidth - 2 * arrowHalfWidth)); + _rightWidth = _leftWidth; + CGFloat originX = arrowXPos - _leftWidth; + if (originX < kNUXBubbleMargin) { + CGFloat xShift = kNUXBubbleMargin - originX; + originX += xShift; + _leftWidth -= xShift; + _rightWidth += xShift; + } else if (originX + bubbleWidth > screenBounds.size.width - kNUXBubbleMargin) { + CGFloat xShift = originX + bubbleWidth - (screenBounds.size.width - kNUXBubbleMargin); + originX -= xShift; + _leftWidth += xShift; + _rightWidth -= xShift; + } + + _arrowMidpoint = _positionInView.x - originX + kNUXRectInset; + + // Set the frame for the view. + CGFloat nuxWidth = bubbleWidth + 2 * kNUXRectInset; + CGFloat nuxHeight = bubbleHeight + kNUXRectInset + MAX(kNUXRectInset, _arrowHeight) + 2 * kNUXStrokeLineWidth; + CGFloat yOrigin = 0; + if (_pointingUp) { + yOrigin = _positionInView.y + kNUXPointMargin - MAX(0, kNUXRectInset - _arrowHeight); + } else { + yOrigin = _positionInView.y - nuxHeight - kNUXPointMargin + MAX(0, kNUXRectInset - _arrowHeight); + } + + return CGRectMake(originX - kNUXRectInset, + yOrigin, + nuxWidth, + nuxHeight); +} + +#pragma mark Message & Tagline + +- (void)setMessage:(NSString *)message tagline:(NSString *)tagline +{ + message = message ?: @""; + // Ensure tagline is empty string or ends with space + tagline = tagline ?: @""; + if (tagline.length && ![tagline hasSuffix:@" "]) + tagline = [tagline stringByAppendingString:@" "]; + + // Concatenate tagline & main message + message = [tagline stringByAppendingString:message]; + + NSRange fullRange = NSMakeRange(0, message.length); + NSMutableAttributedString *attrString = [[NSMutableAttributedString alloc] initWithString: message]; + + UIFont *font=[UIFont boldSystemFontOfSize:kNUXFontSize]; + [attrString addAttribute:NSFontAttributeName value:font range:fullRange]; + [attrString addAttribute:NSForegroundColorAttributeName value:[UIColor whiteColor] range:fullRange]; + if (tagline.length) { + [attrString addAttribute:NSForegroundColorAttributeName value: FBSDKUIColorWithRGB(0x6D, 0x87, 0xC7) range:NSMakeRange(0, tagline.length)]; + } + + _textLabel.attributedText = attrString; + + CGSize textLabelSize = [_textLabel sizeThatFits:CGSizeMake(_maximumTextWidth, MAXFLOAT)]; + _textLabel.bounds = CGRectMake(0, 0, textLabelSize.width, textLabelSize.height); + self.frame = [self layoutSubviewsAndDetermineFrame]; + [self setNeedsDisplay]; +} + +#pragma mark Auto Dismiss Timeout + +- (void)scheduleAutomaticFadeout +{ + [[self class] cancelPreviousPerformRequestsWithTarget:self selector:@selector(scheduleFadeoutRespectingMinimumDisplayDuration) object:nil]; + + if (_displayDuration > 0.0 && self.superview) { + CFTimeInterval intervalAlreadyDisplaying = CFAbsoluteTimeGetCurrent() - _displayTime; + CFTimeInterval timeRemainingBeforeAutomaticFadeout = _displayDuration - intervalAlreadyDisplaying; + if (timeRemainingBeforeAutomaticFadeout > 0.0) { + [self performSelector:@selector(scheduleFadeoutRespectingMinimumDisplayDuration) withObject:nil afterDelay:timeRemainingBeforeAutomaticFadeout]; + } else { + [self scheduleFadeoutRespectingMinimumDisplayDuration]; + } + } +} + +- (void)scheduleFadeoutRespectingMinimumDisplayDuration +{ + CFTimeInterval intervalAlreadyDisplaying = CFAbsoluteTimeGetCurrent() - _displayTime; + CFTimeInterval remainingDisplayTime = _minimumDisplayDuration - intervalAlreadyDisplaying; + if (remainingDisplayTime > 0.0) { + [self performSelector:@selector(dismiss) withObject:nil afterDelay:remainingDisplayTime]; + } else { + [self dismiss]; + } +} + +- (void)cancelAllScheduledFadeOutMethods +{ + [[self class] cancelPreviousPerformRequestsWithTarget:self selector:@selector(scheduleFadeoutRespectingMinimumDisplayDuration) object:nil]; + [[self class] cancelPreviousPerformRequestsWithTarget:self selector:@selector(dismiss) object:nil]; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKDeviceLoginCodeInfo+Internal.h b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKDeviceLoginCodeInfo+Internal.h new file mode 100644 index 0000000000000..cf021e1101894 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKDeviceLoginCodeInfo+Internal.h @@ -0,0 +1,43 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import "FBSDKDeviceLoginCodeInfo.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface FBSDKDeviceLoginCodeInfo () + +/*! + @abstract Initializes a new instance + @param identifier the unique id for this login flow instance. + @param loginCode the short "user_code". + @param verificationURL the verification URL. + @param expirationDate expiration date. + @param pollingInterval time between polling. + */ +- (instancetype)initWithIdentifier:(NSString *)identifier + loginCode:(NSString *)loginCode + verificationURL:(NSURL *)verificationURL + expirationDate:(NSDate *)expirationDate + pollingInterval:(NSUInteger)pollingInterval NS_DESIGNATED_INITIALIZER; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKDeviceLoginManagerResult+Internal.h b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKDeviceLoginManagerResult+Internal.h new file mode 100644 index 0000000000000..cc9e4ae591ce9 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKDeviceLoginManagerResult+Internal.h @@ -0,0 +1,39 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import + +#import "FBSDKDeviceLoginManagerResult.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface FBSDKDeviceLoginManagerResult () + +/*! + @abstract Initializes a new instance + @param token The token + @param cancelled Indicates if the flow was cancelled. + */ +- (instancetype)initWithToken:(nullable FBSDKAccessToken *)token + isCancelled:(BOOL)cancelled NS_DESIGNATED_INITIALIZER; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginCompletion+Internal.h b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginCompletion+Internal.h new file mode 100644 index 0000000000000..1ba7b6f957d5d --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginCompletion+Internal.h @@ -0,0 +1,40 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKLoginCompletion.h" + +@interface FBSDKLoginCompletionParameters () + +@property (nonatomic, copy) NSString *accessTokenString; +@property (nonatomic, copy) NSString *nonceString; + +@property (nonatomic, copy) NSSet *permissions; +@property (nonatomic, copy) NSSet *declinedPermissions; +@property (nonatomic, copy) NSSet *expiredPermissions; + +@property (nonatomic, copy) NSString *appID; +@property (nonatomic, copy) NSString *userID; + +@property (nonatomic, copy) NSError *error; + +@property (nonatomic, copy) NSDate *expirationDate; +@property (nonatomic, copy) NSDate *dataAccessExpirationDate; + +@property (nonatomic, copy) NSString *challenge; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginCompletion.h b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginCompletion.h new file mode 100644 index 0000000000000..8141ef77ec04e --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginCompletion.h @@ -0,0 +1,89 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +@class FBSDKLoginManager; +@class FBSDKLoginCompletionParameters; + +/** + Success Block + */ +typedef void (^FBSDKLoginCompletionParametersBlock)(FBSDKLoginCompletionParameters *parameters) +NS_SWIFT_NAME(LoginCompletionParametersBlock); + +/** + Structured interface for accessing the parameters used to complete a log in request. + If \c accessTokenString is non-nil, the authentication succeeded. If \c error is + non-nil the request failed. If both are \c nil, the request was cancelled. + */ +NS_SWIFT_NAME(LoginCompletionParameters) +@interface FBSDKLoginCompletionParameters : NSObject + +- (instancetype)init NS_DESIGNATED_INITIALIZER; +- (instancetype)initWithError:(NSError *)error; + +@property (nonatomic, copy, readonly) NSString *accessTokenString; +@property (nonatomic, copy, readonly) NSString *nonceString; + +@property (nonatomic, copy, readonly) NSSet *permissions; +@property (nonatomic, copy, readonly) NSSet *declinedPermissions; +@property (nonatomic, copy, readonly) NSSet *expiredPermissions; + +@property (nonatomic, copy, readonly) NSString *appID; +@property (nonatomic, copy, readonly) NSString *userID; + +@property (nonatomic, copy, readonly) NSError *error; + +@property (nonatomic, copy, readonly) NSDate *expirationDate; +@property (nonatomic, copy, readonly) NSDate *dataAccessExpirationDate; + +@property (nonatomic, copy, readonly) NSString *challenge; +@end + +NS_SWIFT_NAME(LoginCompleting) +@protocol FBSDKLoginCompleting + +/** + Invoke \p handler with the login parameters derived from the authentication result. + See the implementing class's documentation for whether it completes synchronously or asynchronously. + */ +- (void)completeLoginWithHandler:(FBSDKLoginCompletionParametersBlock)handler; + +@end + +#pragma mark - Completers + +/** + Extracts the log in completion parameters from the \p parameters dictionary, + which must contain the parsed result of the return URL query string. + + The \c user_id key is first used to derive the User ID. If that fails, \c signed_request + is used. + + Completion occurs synchronously. + */ +NS_SWIFT_NAME(LoginURLCompleter) +@interface FBSDKLoginURLCompleter : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; +- (instancetype)initWithURLParameters:(NSDictionary *)parameters appID:(NSString *)appID NS_DESIGNATED_INITIALIZER; + +@end + diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginCompletion.m b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginCompletion.m new file mode 100644 index 0000000000000..bf3ae179e8c61 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginCompletion.m @@ -0,0 +1,283 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKLoginCompletion+Internal.h" + +#import + +#ifdef COCOAPODS +#import +#else +#import "FBSDKCoreKit+Internal.h" +#endif +#import "FBSDKLoginConstants.h" +#import "FBSDKLoginError.h" +#import "FBSDKLoginManager+Internal.h" +#import "FBSDKLoginUtility.h" + +static void FBSDKLoginRequestMeAndPermissions(FBSDKLoginCompletionParameters *parameters, void(^completionBlock)(void)) +{ + __block NSUInteger pendingCount = 1; + void(^didCompleteBlock)(void) = ^{ + if (--pendingCount == 0) { + completionBlock(); + } + }; + + NSString *tokenString = parameters.accessTokenString; + FBSDKGraphRequestConnection *connection = [[FBSDKGraphRequestConnection alloc] init]; + + pendingCount++; + FBSDKGraphRequest *userIDRequest = [[FBSDKGraphRequest alloc] initWithGraphPath:@"me" + parameters:@{ @"fields" : @"id" } + tokenString:tokenString + HTTPMethod:nil + flags:FBSDKGraphRequestFlagDoNotInvalidateTokenOnError | FBSDKGraphRequestFlagDisableErrorRecovery]; + + [connection addRequest:userIDRequest completionHandler:^(FBSDKGraphRequestConnection *requestConnection, + id result, + NSError *error) { + parameters.userID = result[@"id"]; + if (error) { + parameters.error = error; + } + didCompleteBlock(); + }]; + + pendingCount++; + FBSDKGraphRequest *permissionsRequest = [[FBSDKGraphRequest alloc] initWithGraphPath:@"me/permissions" + parameters:@{@"fields":@""} + tokenString:tokenString + HTTPMethod:nil + flags:FBSDKGraphRequestFlagDoNotInvalidateTokenOnError | FBSDKGraphRequestFlagDisableErrorRecovery]; + + [connection addRequest:permissionsRequest completionHandler:^(FBSDKGraphRequestConnection *requestConnection, + id result, + NSError *error) { + NSMutableSet *grantedPermissions = [NSMutableSet set]; + NSMutableSet *declinedPermissions = [NSMutableSet set]; + NSMutableSet *expiredPermissions = [NSMutableSet set]; + + [FBSDKInternalUtility extractPermissionsFromResponse:result + grantedPermissions:grantedPermissions + declinedPermissions:declinedPermissions + expiredPermissions:expiredPermissions]; + + parameters.permissions = [grantedPermissions copy]; + parameters.declinedPermissions = [declinedPermissions copy]; + parameters.expiredPermissions = [expiredPermissions copy]; + if (error) { + parameters.error = error; + } + didCompleteBlock(); + }]; + + [connection start]; + didCompleteBlock(); +} + +@implementation FBSDKLoginCompletionParameters + +- (instancetype)init +{ + return [super init]; +} + +- (instancetype)initWithError:(NSError *)error +{ + if ((self = [self init]) != nil) { + self.error = error; + } + return self; +} + +@end + +#pragma mark - Completers + +@implementation FBSDKLoginURLCompleter +{ + FBSDKLoginCompletionParameters *_parameters; + id _observer; + BOOL _performExplicitFallback; +} + +- (instancetype)initWithURLParameters:(NSDictionary *)parameters appID:(NSString *)appID +{ + if ((self = [super init]) != nil) { + _parameters = [[FBSDKLoginCompletionParameters alloc] init]; + + _parameters.accessTokenString = parameters[@"access_token"]; + _parameters.nonceString = parameters[@"nonce"]; + + if (_parameters.accessTokenString.length > 0 || _parameters.nonceString.length > 0) { + [self setParametersWithDictionary:parameters appID:appID]; + } else { + _parameters.accessTokenString = nil; + [self setErrorWithDictionary:parameters]; + } + } + return self; +} + +- (void)completeLoginWithHandler:(FBSDKLoginCompletionParametersBlock)handler +{ + if (_parameters.nonceString) { + [self _exchangeNonceForTokenWithHandler:handler]; + return; + } else if (_parameters.accessTokenString && !_parameters.userID) { + void(^handlerCopy)(FBSDKLoginCompletionParameters *) = [handler copy]; + FBSDKLoginRequestMeAndPermissions(_parameters, ^{ + handlerCopy(self->_parameters); + }); + return; + } + + handler(_parameters); +} + +- (void)setParametersWithDictionary:(NSDictionary *)parameters appID:(NSString *)appID +{ + NSString *grantedPermissionsString = parameters[@"granted_scopes"]; + NSString *declinedPermissionsString = parameters[@"denied_scopes"]; + + NSString *signedRequest = parameters[@"signed_request"]; + NSString *userID = parameters[@"user_id"]; + + // check the string length so that we assign an empty set rather than a set with an empty string + _parameters.permissions = (grantedPermissionsString.length > 0) + ? [NSSet setWithArray:[grantedPermissionsString componentsSeparatedByString:@","]] + : [NSSet set]; + _parameters.declinedPermissions = (declinedPermissionsString.length > 0) + ? [NSSet setWithArray:[declinedPermissionsString componentsSeparatedByString:@","]] + : [NSSet set]; + + _parameters.expiredPermissions = [NSSet set]; + + _parameters.appID = appID; + + if (userID.length == 0 && signedRequest.length > 0) { + _parameters.userID = [FBSDKLoginUtility userIDFromSignedRequest:signedRequest]; + } else { + _parameters.userID = userID; + } + + NSString *expirationDateString = parameters[@"expires"] ?: parameters[@"expires_at"]; + NSDate *expirationDate = [NSDate distantFuture]; + if (expirationDateString && expirationDateString.doubleValue > 0) { + expirationDate = [NSDate dateWithTimeIntervalSince1970:expirationDateString.doubleValue]; + } else if (parameters[@"expires_in"] && [parameters[@"expires_in"] integerValue] > 0) { + expirationDate = [NSDate dateWithTimeIntervalSinceNow:[parameters[@"expires_in"] integerValue]]; + } + _parameters.expirationDate = expirationDate; + + NSDate *dataAccessExpirationDate = [NSDate distantFuture]; + if (parameters[@"data_access_expiration_time"] && [parameters[@"data_access_expiration_time"] integerValue] > 0) { + dataAccessExpirationDate = [NSDate dateWithTimeIntervalSince1970:[parameters[@"data_access_expiration_time"] integerValue]]; + } + _parameters.dataAccessExpirationDate = dataAccessExpirationDate; + + NSError *error = nil; + NSDictionary *state = [FBSDKBasicUtility objectForJSONString:parameters[@"state"] error:&error]; + _parameters.challenge = [FBSDKUtility URLDecode:state[@"challenge"]]; +} + +- (void)setErrorWithDictionary:(NSDictionary *)parameters +{ + NSString *legacyErrorReason = parameters[@"error"]; + + if ([legacyErrorReason isEqualToString:@"service_disabled_use_browser"] || + [legacyErrorReason isEqualToString:@"service_disabled"]) { + _performExplicitFallback = YES; + } + + // if error is nil, then this should be processed as a cancellation unless + // _performExplicitFallback is set to YES and the log in behavior is Native. + _parameters.error = [NSError fbErrorFromReturnURLParameters:parameters]; +} + +- (void)attemptBrowserLogIn:(FBSDKLoginManager *)loginManager { + if (_observer != nil) { + [[NSNotificationCenter defaultCenter] removeObserver:_observer]; + _observer = nil; + } + + if ([FBSDKBridgeAPI sharedInstance].isActive) { + [loginManager logIn]; + } else { + // The application is active but due to notification ordering the FBSDKApplicationDelegate + // doesn't know it yet. Wait one more turn of the run loop. + dispatch_async(dispatch_get_main_queue(), ^{ + [self attemptBrowserLogIn:loginManager]; + }); + } +} + +- (void)_exchangeNonceForTokenWithHandler:(FBSDKLoginCompletionParametersBlock)handler +{ + if (!handler) { + return; + } + + NSString *nonce = _parameters.nonceString ?: @""; + NSString *appID = [FBSDKSettings appID] ?: @""; + + if (nonce.length == 0 || appID.length == 0) { + _parameters.error = [FBSDKError errorWithCode:FBSDKErrorInvalidArgument message:@"Missing required parameters to exchange nonce for access token."]; + + handler(_parameters); + return; + } + + FBSDKGraphRequestConnection *connection = [[FBSDKGraphRequestConnection alloc] init]; + FBSDKGraphRequest *tokenRequest = [[FBSDKGraphRequest alloc] + initWithGraphPath:@"oauth/access_token" + parameters:@{ @"grant_type" : @"fb_exchange_nonce", + @"fb_exchange_nonce" : nonce, + @"client_id" : appID, + @"fields" : @"" } + flags:FBSDKGraphRequestFlagDoNotInvalidateTokenOnError | + FBSDKGraphRequestFlagDisableErrorRecovery]; + __block FBSDKLoginCompletionParameters *parameters = _parameters; + [connection addRequest:tokenRequest completionHandler:^(FBSDKGraphRequestConnection *requestConnection, + id result, + NSError *error) { + if (!error) { + parameters.accessTokenString = result[@"access_token"]; + NSDate *expirationDate = [NSDate distantFuture]; + if (result[@"expires_in"] && [result[@"expires_in"] integerValue] > 0) { + expirationDate = [NSDate dateWithTimeIntervalSinceNow:[result[@"expires_in"] integerValue]]; + } + parameters.expirationDate = expirationDate; + + NSDate *dataAccessExpirationDate = [NSDate distantFuture]; + if (result[@"data_access_expiration_time"] && [result[@"data_access_expiration_time"] integerValue] > 0) { + dataAccessExpirationDate = [NSDate dateWithTimeIntervalSince1970:[result[@"data_access_expiration_time"] integerValue]]; + } + parameters.dataAccessExpirationDate = dataAccessExpirationDate; + } else { + parameters.error = error; + } + + handler(parameters); + }]; + + [connection start]; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginError.h b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginError.h new file mode 100644 index 0000000000000..176c9cec8a856 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginError.h @@ -0,0 +1,35 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface NSError (FBSDKLoginError) + ++ (NSError *)fbErrorForFailedLoginWithCode:(FBSDKLoginError)code; ++ (NSError *)fbErrorForSystemPasswordChange:(NSError *)innerError; + ++ (nullable NSError *)fbErrorFromReturnURLParameters:(NSDictionary *)parameters; ++ (nullable NSError *)fbErrorFromServerError:(NSError *)serverError; + +@end + +NS_ASSUME_NONNULL_END diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginError.m b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginError.m new file mode 100644 index 0000000000000..504d5739bbc29 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginError.m @@ -0,0 +1,221 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKLoginError.h" + +#ifdef COCOAPODS +#import +#else +#import "FBSDKCoreKit+Internal.h" +#endif + +#ifndef NS_ERROR_ENUM +#define NS_ERROR_ENUM(_domain, _name) \ +enum _name: NSInteger _name; \ +enum __attribute__((ns_error_domain(_domain))) _name: NSInteger +#endif + +typedef NS_ERROR_ENUM(FBSDKLoginErrorDomain, FBSDKLoginErrorSubcode) +{ + FBSDKLoginErrorSubcodeUserCheckpointed = 459, + FBSDKLoginErrorSubcodePasswordChanged = 460, + FBSDKLoginErrorSubcodeUnconfirmedUser = 464, +}; + +@implementation NSError (FBSDKLoginError) + ++ (NSError *)fbErrorForFailedLoginWithCode:(FBSDKLoginError)code +{ + return [self fbErrorForFailedLoginWithCode:code innerError:nil]; +} + ++ (NSError *)fbErrorForFailedLoginWithCode:(FBSDKLoginError)code + innerError:(NSError *)innerError +{ + NSMutableDictionary *userInfo = [NSMutableDictionary dictionary]; + + [FBSDKBasicUtility dictionary:userInfo setObject:innerError forKey:NSUnderlyingErrorKey]; + + NSString *errorDomain = FBSDKLoginErrorDomain; + NSString *localizedDescription = nil; + + switch ((NSInteger)code) { + case FBSDKErrorNetwork: + errorDomain = FBSDKErrorDomain; + localizedDescription = + NSLocalizedStringWithDefaultValue(@"LoginError.SystemAccount.Network", @"FacebookSDK", [FBSDKInternalUtility bundleForStrings], + @"Unable to connect to Facebook. Check your network connection and try again.", + @"The user facing error message when the Accounts framework encounters a network error."); + break; + case FBSDKLoginErrorUserCheckpointed: + localizedDescription = + NSLocalizedStringWithDefaultValue(@"LoginError.SystemAccount.UserCheckpointed", @"FacebookSDK", [FBSDKInternalUtility bundleForStrings], + @"You cannot log in to apps at this time. Please log in to www.facebook.com and follow the instructions given.", + @"The user facing error message when the Facebook account signed in to the Accounts framework has been checkpointed."); + break; + case FBSDKLoginErrorUnconfirmedUser: + localizedDescription = + NSLocalizedStringWithDefaultValue(@"LoginError.SystemAccount.UnconfirmedUser", @"FacebookSDK", [FBSDKInternalUtility bundleForStrings], + @"Your account is not confirmed. Please log in to www.facebook.com and follow the instructions given.", + @"The user facing error message when the Facebook account signed in to the Accounts framework becomes unconfirmed."); + break; + case FBSDKLoginErrorSystemAccountAppDisabled: + localizedDescription = + NSLocalizedStringWithDefaultValue(@"LoginError.SystemAccount.Disabled", @"FacebookSDK", [FBSDKInternalUtility bundleForStrings], + @"Access has not been granted to the Facebook account. Verify device settings.", + @"The user facing error message when the app slider has been disabled and login fails."); + break; + case FBSDKLoginErrorSystemAccountUnavailable: + localizedDescription = + NSLocalizedStringWithDefaultValue(@"LoginError.SystemAccount.Unavailable", @"FacebookSDK", [FBSDKInternalUtility bundleForStrings], + @"The Facebook account has not been configured on the device.", + @"The user facing error message when the device Facebook account is unavailable and login fails."); + break; + default: + break; + } + + [FBSDKBasicUtility dictionary:userInfo setObject:localizedDescription forKey:NSLocalizedDescriptionKey]; + [FBSDKBasicUtility dictionary:userInfo setObject:localizedDescription forKey:FBSDKErrorLocalizedDescriptionKey]; + + return [NSError errorWithDomain:errorDomain + code:code + userInfo:userInfo]; +} + ++ (NSError *)fbErrorForSystemPasswordChange:(NSError *)innerError +{ + NSString *failureReasonAndDescription = + NSLocalizedStringWithDefaultValue(@"LoginError.SystemAccount.PasswordChange", @"FacebookSDK", [FBSDKInternalUtility bundleForStrings], + @"Your Facebook password has changed. To confirm your password, open Settings > Facebook and tap your name.", + @"The user facing error message when the device Facebook account password is incorrect and login fails."); + NSMutableDictionary *userInfo = [NSMutableDictionary dictionaryWithObjectsAndKeys: + failureReasonAndDescription, FBSDKErrorLocalizedDescriptionKey, + failureReasonAndDescription, NSLocalizedDescriptionKey, + nil]; + + [FBSDKBasicUtility dictionary:userInfo setObject:innerError forKey:NSUnderlyingErrorKey]; + + return [NSError errorWithDomain:FBSDKLoginErrorDomain + code:FBSDKLoginErrorPasswordChanged + userInfo:userInfo]; +} + ++ (NSError *)fbErrorFromReturnURLParameters:(NSDictionary *)parameters +{ + NSError *error = nil; + + NSMutableDictionary *userInfo = [[NSMutableDictionary alloc] init]; + [FBSDKBasicUtility dictionary:userInfo setObject:parameters[@"error_message"] forKey:FBSDKErrorDeveloperMessageKey]; + + if (userInfo.count > 0) { + [FBSDKBasicUtility dictionary:userInfo setObject:parameters[@"error"] forKey:FBSDKErrorDeveloperMessageKey]; + [FBSDKBasicUtility dictionary:userInfo setObject:parameters[@"error_code"] forKey:FBSDKGraphRequestErrorGraphErrorCodeKey]; + + if (!userInfo[FBSDKErrorDeveloperMessageKey]) { + [FBSDKBasicUtility dictionary:userInfo setObject:parameters[@"error_reason"] forKey:FBSDKErrorDeveloperMessageKey]; + } + + userInfo[FBSDKGraphRequestErrorKey] = @(FBSDKGraphRequestErrorOther); + + error = [NSError errorWithDomain:FBSDKErrorDomain + code:FBSDKErrorGraphRequestGraphAPI + userInfo:userInfo]; + } + + return error; +} + ++ (NSError *)fbErrorFromServerError:(NSError *)serverError +{ + NSError *loginError = nil; + + if ([serverError.domain isEqualToString:FBSDKErrorDomain]) { + NSDictionary *response = [FBSDKTypeUtility dictionaryValue:serverError.userInfo[FBSDKGraphRequestErrorParsedJSONResponseKey]]; + NSDictionary *body = [FBSDKTypeUtility dictionaryValue:response[@"body"]]; + NSDictionary *error = [FBSDKTypeUtility dictionaryValue:body[@"error"]]; + NSInteger subcode = [FBSDKTypeUtility integerValue:error[@"error_subcode"]]; + + switch (subcode) { + case FBSDKLoginErrorSubcodeUserCheckpointed: + loginError = [self fbErrorForFailedLoginWithCode:FBSDKLoginErrorUserCheckpointed + innerError:serverError]; + break; + case FBSDKLoginErrorSubcodePasswordChanged: + loginError = [self fbErrorForFailedLoginWithCode:FBSDKLoginErrorPasswordChanged + innerError:serverError]; + break; + case FBSDKLoginErrorSubcodeUnconfirmedUser: + loginError = [self fbErrorForFailedLoginWithCode:FBSDKLoginErrorUnconfirmedUser + innerError:serverError]; + break; + } + } + + return loginError; +} + ++ (NSError *)fbErrorWithSystemAccountStoreDeniedError:(NSError *)accountStoreError + isCancellation:(BOOL *)cancellation +{ + // The Accounts framework returns an ACErrorPermissionDenied error for both user denied errors, + // Facebook denied errors, and other things. Unfortunately examining the contents of the + // description is the only means available to determine the reason for the error. + NSString *description = accountStoreError.userInfo[NSLocalizedDescriptionKey]; + NSError *err = nil; + + if (description) { + // If a parenthetical error code exists, map it ot a Facebook server error + FBSDKLoginError errorCode = FBSDKLoginErrorReserved; + if ([description rangeOfString:@"(459)"].location != NSNotFound) { + // The Facebook server could not fulfill this access request: Error validating access token: + // You cannot access the app till you log in to www.facebook.com and follow the instructions given. (459) + + // The OAuth endpoint directs people to www.facebook.com when an account has been + // checkpointed. If the web address is present, assume it's due to a checkpoint. + errorCode = FBSDKLoginErrorUserCheckpointed; + } else if ([description rangeOfString:@"(452)"].location != NSNotFound || + [description rangeOfString:@"(460)"].location != NSNotFound) { + // The Facebook server could not fulfill this access request: Error validating access token: + // Session does not match current stored session. This may be because the user changed the password since + // the time the session was created or Facebook has changed the session for security reasons. (452)or(460) + + // If the login failed due to the session changing, maybe it's due to the password + // changing. Direct the user to update the password in the Settings > Facebook. + err = [self fbErrorForSystemPasswordChange:accountStoreError]; + } else if ([description rangeOfString:@"(464)"].location != NSNotFound) { + // The Facebook server could not fulfill this access request: Error validating access token: + // Sessions for the user are not allowed because the user is not a confirmed user. (464) + errorCode = FBSDKLoginErrorUnconfirmedUser; + } + + if (errorCode != FBSDKLoginErrorReserved) { + err = [self fbErrorForFailedLoginWithCode:errorCode]; + } + } else { + // If there is no description, assume this is a user cancellation. No error object is + // returned for a cancellation. + if (cancellation != NULL) { + *cancellation = YES; + } + } + + return err; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginKit+Internal.h b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginKit+Internal.h new file mode 100644 index 0000000000000..74b65971eb81d --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginKit+Internal.h @@ -0,0 +1,24 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import "FBSDKLoginCompletion+Internal.h" +#import "FBSDKLoginError.h" +#import "FBSDKLoginManager+Internal.h" +#import "FBSDKLoginUtility.h" diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginManager+Internal.h b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginManager+Internal.h new file mode 100644 index 0000000000000..aceb919dfda71 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginManager+Internal.h @@ -0,0 +1,63 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import + +#ifdef COCOAPODS +#import +#else +#import "FBSDKCoreKit+Internal.h" +#endif + +@class FBSDKAccessToken; +@class FBSDKLoginCompletionParameters; + +/** + Success Block + */ +typedef void (^FBSDKBrowserLoginSuccessBlock)(BOOL didOpen, NSString *authMethod, NSError *error) +NS_SWIFT_NAME(BrowserLoginSuccessBlock); + +@interface FBSDKLoginManager () +@property (nonatomic, weak) UIViewController *fromViewController; +@property (nonatomic, readonly) NSSet *requestedPermissions; + +// for testing only +@property (nonatomic, readonly, copy) NSString *loadExpectedChallenge; + +- (void)completeAuthentication:(FBSDKLoginCompletionParameters *)parameters expectChallenge:(BOOL)expectChallenge; + +// available to internal types to trigger login without checking read/publish mixtures. +- (void)logInWithPermissions:(NSSet *)permissions handler:(FBSDKLoginManagerLoginResultBlock)handler; +- (void)logIn; + +// made available for testing only +- (NSDictionary *)logInParametersWithPermissions:(NSSet *)permissions serverConfiguration:(FBSDKServerConfiguration *)serverConfiguration; +// made available for testing only +- (void)validateReauthentication:(FBSDKAccessToken *)currentToken withResult:(FBSDKLoginManagerLoginResult *)loginResult; + +// for testing only +- (void)setHandler:(FBSDKLoginManagerLoginResultBlock)handler; +// for testing only +- (void)setRequestedPermissions:(NSSet *)requestedPermissions; +// for testing only +- (void)performBrowserLogInWithParameters:(NSDictionary *)loginParams handler:(FBSDKBrowserLoginSuccessBlock)handler; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginManagerLogger.h b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginManagerLogger.h new file mode 100644 index 0000000000000..232d0accebe04 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginManagerLogger.h @@ -0,0 +1,47 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKLoginManager+Internal.h" + +FOUNDATION_EXPORT NSString *const FBSDKLoginManagerLoggerAuthMethod_Native; +FOUNDATION_EXPORT NSString *const FBSDKLoginManagerLoggerAuthMethod_Browser; +FOUNDATION_EXPORT NSString *const FBSDKLoginManagerLoggerAuthMethod_SFVC; + + +NS_SWIFT_NAME(LoginManagerLogger) +@interface FBSDKLoginManagerLogger : NSObject ++ (FBSDKLoginManagerLogger *)loggerFromParameters:(NSDictionary *)parameters; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +- (instancetype)initWithLoggingToken:(NSString *)loggingToken NS_DESIGNATED_INITIALIZER; + +// this must not retain loginManager - only used to conveniently grab various properties to log. +- (void)startSessionForLoginManager:(FBSDKLoginManager *)loginManager; +- (void)endSession; + +- (void)startAuthMethod:(NSString *)authMethod; +- (void)endLoginWithResult:(FBSDKLoginManagerLoginResult *)result error:(NSError *)error; + +- (NSDictionary *)parametersWithTimeStampAndClientState:(NSDictionary *)loginParams forAuthMethod:(NSString *)authMethod; +- (void)willAttemptAppSwitchingBehavior; +- (void)systemAuthDidShowDialog:(BOOL)didShowDialog isUnTOSedDevice:(BOOL)isUnTOSedDevice; + +- (void)logNativeAppDialogResult:(BOOL)result dialogDuration:(NSTimeInterval)dialogDuration; +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginManagerLogger.m b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginManagerLogger.m new file mode 100644 index 0000000000000..8dc3b93630cf8 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginManagerLogger.m @@ -0,0 +1,285 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKLoginManagerLogger.h" + +#ifdef COCOAPODS +#import +#else +#import "FBSDKCoreKit+Internal.h" +#endif +#import "FBSDKLoginError.h" +#import "FBSDKLoginManagerLoginResult+Internal.h" +#import "FBSDKLoginUtility.h" + +NSString *const FBSDKLoginManagerLoggerAuthMethod_Native = @"fb_application_web_auth"; +NSString *const FBSDKLoginManagerLoggerAuthMethod_Browser = @"browser_auth"; +NSString *const FBSDKLoginManagerLoggerAuthMethod_SFVC = @"sfvc_auth"; + +static NSString *const FBSDKLoginManagerLoggingClientStateKey = @"state"; +static NSString *const FBSDKLoginManagerLoggingClientStateIsClientState = @"com.facebook.sdk_client_state"; + +static NSString *const FBSDKLoginManagerLoggerParamIdentifierKey = @"0_auth_logger_id"; +static NSString *const FBSDKLoginManagerLoggerParamTimestampKey = @"1_timestamp_ms"; +static NSString *const FBSDKLoginManagerLoggerParamResultKey = @"2_result"; +static NSString *const FBSDKLoginManagerLoggerParamAuthMethodKey = @"3_method"; +static NSString *const FBSDKLoginManagerLoggerParamErrorCodeKey = @"4_error_code"; +static NSString *const FBSDKLoginManagerLoggerParamErrorMessageKey = @"5_error_message"; +static NSString *const FBSDKLoginManagerLoggerParamExtrasKey = @"6_extras"; +static NSString *const FBSDKLoginManagerLoggerParamLoggingTokenKey = @"7_logging_token"; + +static NSString *const FBSDKLoginManagerLoggerValueEmpty = @""; + +static NSString *const FBSDKLoginManagerLoggerResultSuccessString = @"success"; +static NSString *const FBSDKLoginManagerLoggerResultCancelString = @"cancelled"; +static NSString *const FBSDKLoginManagerLoggerResultErrorString = @"error"; +static NSString *const FBSDKLoginManagerLoggerResultSkippedString = @"skipped"; + +static NSString *const FBSDKLoginManagerLoggerTryNative = @"tryFBAppAuth"; +static NSString *const FBSDKLoginManagerLoggerTryBrowser = @"trySafariAuth"; + +@implementation FBSDKLoginManagerLogger +{ +@private + NSString *_identifier; + NSMutableDictionary *_extras; + + NSString *_lastResult; + NSError *_lastError; + + NSString *_authMethod; + NSString *_loggingToken; +} + ++ (FBSDKLoginManagerLogger *)loggerFromParameters:(NSDictionary *)parameters +{ + NSDictionary *clientState = [FBSDKBasicUtility objectForJSONString:parameters[FBSDKLoginManagerLoggingClientStateKey] error:NULL]; + + id isClientState = clientState[FBSDKLoginManagerLoggingClientStateIsClientState]; + if ([isClientState isKindOfClass:[NSNumber class]] && [isClientState boolValue]) { + FBSDKLoginManagerLogger *logger = [[self alloc] initWithLoggingToken:nil]; + if (logger != nil) { + logger->_identifier = clientState[FBSDKLoginManagerLoggerParamIdentifierKey]; + logger->_authMethod = clientState[FBSDKLoginManagerLoggerParamAuthMethodKey]; + logger->_loggingToken = clientState[FBSDKLoginManagerLoggerParamLoggingTokenKey]; + return logger; + } + } + return nil; +} + +- (instancetype)initWithLoggingToken:(NSString *)loggingToken +{ + if ((self = [super init]) != nil) { + _identifier = [NSUUID UUID].UUIDString; + _extras = [NSMutableDictionary dictionary]; + _loggingToken = [loggingToken copy]; + } + return self; +} + +- (void)startSessionForLoginManager:(FBSDKLoginManager *)loginManager +{ + BOOL isReauthorize = ([FBSDKAccessToken currentAccessToken] != nil); + BOOL willTryNative = NO; + BOOL willTryBrowser = YES; + NSString *behaviorString = @"FBSDKLoginBehaviorBrowser"; + + [_extras addEntriesFromDictionary:@{ + FBSDKLoginManagerLoggerTryNative : @(willTryNative), + FBSDKLoginManagerLoggerTryBrowser : @(willTryBrowser), + @"isReauthorize" : @(isReauthorize), + @"login_behavior" : behaviorString, + @"default_audience" : [FBSDKLoginUtility stringForAudience:loginManager.defaultAudience], + @"permissions" : [loginManager.requestedPermissions.allObjects componentsJoinedByString:@","] ?: @"" + }]; + + [self logEvent:FBSDKAppEventNameFBSessionAuthStart params:[self _parametersForNewEvent]]; +} + +- (void)endSession +{ + [self logEvent:FBSDKAppEventNameFBSessionAuthEnd result:_lastResult error:_lastError]; +} + +- (void)startAuthMethod:(NSString *)authMethod +{ + _authMethod = [authMethod copy]; + [self logEvent:FBSDKAppEventNameFBSessionAuthMethodStart params:[self _parametersForNewEvent]]; +} + +- (void)endLoginWithResult:(FBSDKLoginManagerLoginResult *)result error:(NSError *)error +{ + NSString *resultString = @""; + + if (error != nil) { + resultString = FBSDKLoginManagerLoggerResultErrorString; + } else if (result.isCancelled) { + resultString = FBSDKLoginManagerLoggerResultCancelString; + } else if (result.isSkipped) { + resultString = FBSDKLoginManagerLoggerResultSkippedString; + } else if (result.token) { + resultString = FBSDKLoginManagerLoggerResultSuccessString; + if (result.declinedPermissions.count) { + _extras[@"declined_permissions"] = [result.declinedPermissions.allObjects componentsJoinedByString:@","]; + } + } + + _lastResult = resultString; + _lastError = error; + [_extras addEntriesFromDictionary:result.loggingExtras]; + + [self logEvent:FBSDKAppEventNameFBSessionAuthMethodEnd result:resultString error:error]; +} + +- (NSDictionary *)parametersWithTimeStampAndClientState:(NSDictionary *)loginParams forAuthMethod:(NSString *)authMethod +{ + NSMutableDictionary *params = [loginParams mutableCopy]; + + NSTimeInterval timeValue = (NSTimeInterval)FBSDKMonotonicTimeGetCurrentSeconds(); + NSString *e2eTimestampString = [FBSDKBasicUtility JSONStringForObject:@{ @"init" : @(timeValue) } + error:NULL + invalidObjectHandler:NULL]; + params[@"e2e"] = e2eTimestampString; + + NSDictionary *existingState = [FBSDKBasicUtility objectForJSONString:params[FBSDKLoginManagerLoggingClientStateKey] error:NULL]; + params[FBSDKLoginManagerLoggingClientStateKey] = [self clientStateForAuthMethod:authMethod andExistingState:existingState]; + + return params; +} + +- (void)willAttemptAppSwitchingBehavior +{ + NSString *defaultUrlScheme = [NSString stringWithFormat:@"fb%@%@", [FBSDKSettings appID], [FBSDKSettings appURLSchemeSuffix] ?: @""]; + BOOL isURLSchemeRegistered = [FBSDKInternalUtility isRegisteredURLScheme:defaultUrlScheme]; + + BOOL isFacebookAppCanOpenURLSchemeRegistered = [FBSDKInternalUtility isRegisteredCanOpenURLScheme:FBSDK_CANOPENURL_FACEBOOK]; + BOOL isMessengerAppCanOpenURLSchemeRegistered = [FBSDKInternalUtility isRegisteredCanOpenURLScheme:FBSDK_CANOPENURL_MESSENGER]; + + [_extras addEntriesFromDictionary:@{ + @"isURLSchemeRegistered" : @(isURLSchemeRegistered), + @"isFacebookAppCanOpenURLSchemeRegistered" : @(isFacebookAppCanOpenURLSchemeRegistered), + @"isMessengerAppCanOpenURLSchemeRegistered" : @(isMessengerAppCanOpenURLSchemeRegistered), + }]; +} + +- (void)systemAuthDidShowDialog:(BOOL)didShowDialog isUnTOSedDevice:(BOOL)isUnTOSedDevice +{ + [_extras addEntriesFromDictionary:@{ + @"isUntosedDevice" : @(isUnTOSedDevice), + @"dialogShown" : @(didShowDialog), + }]; +} + +- (void)logNativeAppDialogResult:(BOOL)result dialogDuration:(NSTimeInterval)dialogDuration +{ + NSOperatingSystemVersion iOS10Version = { .majorVersion = 10, .minorVersion = 0, .patchVersion = 0 }; + if ([FBSDKInternalUtility isOSRunTimeVersionAtLeast:iOS10Version]) { + _extras[@"native_app_login_dialog_duration"] = @(dialogDuration); + _extras[@"native_app_login_dialog_result"] = @(result); + [self logEvent:FBSDKAppEventNameFBSessionFASLoginDialogResult params:[self _parametersForNewEvent]]; + } +} + +#pragma mark - Private + +- (NSString *)clientStateForAuthMethod:(NSString *)authMethod andExistingState:(NSDictionary *)existingState +{ + NSDictionary *clientState = @{ + FBSDKLoginManagerLoggerParamAuthMethodKey: authMethod ?: @"", + FBSDKLoginManagerLoggerParamIdentifierKey: _identifier, + FBSDKLoginManagerLoggingClientStateIsClientState: @YES, + }; + + if (existingState) { + NSMutableDictionary *mutableState = [clientState mutableCopy]; + [mutableState addEntriesFromDictionary:existingState]; + clientState = mutableState; + } + + return [FBSDKBasicUtility JSONStringForObject:clientState error:NULL invalidObjectHandler:NULL]; +} + +- (NSMutableDictionary *)_parametersForNewEvent +{ + NSMutableDictionary *eventParameters = [[NSMutableDictionary alloc] init]; + + // NOTE: We ALWAYS add all params to each event, to ensure predictable mapping on the backend. + eventParameters[FBSDKLoginManagerLoggerParamIdentifierKey] = _identifier ?: FBSDKLoginManagerLoggerValueEmpty; + eventParameters[FBSDKLoginManagerLoggerParamTimestampKey] = @(round(1000 * [NSDate date].timeIntervalSince1970)); + eventParameters[FBSDKLoginManagerLoggerParamResultKey] = FBSDKLoginManagerLoggerValueEmpty; + [FBSDKBasicUtility dictionary:eventParameters setObject:_authMethod forKey:FBSDKLoginManagerLoggerParamAuthMethodKey]; + eventParameters[FBSDKLoginManagerLoggerParamErrorCodeKey] = FBSDKLoginManagerLoggerValueEmpty; + eventParameters[FBSDKLoginManagerLoggerParamErrorMessageKey] = FBSDKLoginManagerLoggerValueEmpty; + eventParameters[FBSDKLoginManagerLoggerParamExtrasKey] = FBSDKLoginManagerLoggerValueEmpty; + eventParameters[FBSDKLoginManagerLoggerParamLoggingTokenKey] = _loggingToken ?: FBSDKLoginManagerLoggerValueEmpty; + + return eventParameters; +} + +- (void)logEvent:(NSString *)eventName params:(NSMutableDictionary *)params +{ + if (_identifier) { + NSString *extrasJSONString = [FBSDKBasicUtility JSONStringForObject:_extras + error:NULL + invalidObjectHandler:NULL]; + if (extrasJSONString) { + params[FBSDKLoginManagerLoggerParamExtrasKey] = extrasJSONString; + } + [_extras removeAllObjects]; + + [FBSDKAppEvents logInternalEvent:eventName + parameters:params + isImplicitlyLogged:YES]; + } +} + +- (void)logEvent:(NSString *)eventName result:(NSString *)result error:(NSError *)error +{ + NSMutableDictionary *params = [self _parametersForNewEvent]; + + params[FBSDKLoginManagerLoggerParamResultKey] = result; + + if ([error.domain isEqualToString:FBSDKErrorDomain] || [error.domain isEqualToString:FBSDKLoginErrorDomain]) { + // tease apart the structure. + + // first see if there is an explicit message in the error's userInfo. If not, default to the reason, + // which is less useful. + NSString *value = error.userInfo[@"error_message"] ?: error.userInfo[FBSDKErrorLocalizedDescriptionKey]; + [FBSDKBasicUtility dictionary:params setObject:value forKey:FBSDKLoginManagerLoggerParamErrorMessageKey]; + + value = error.userInfo[FBSDKGraphRequestErrorGraphErrorCodeKey] ?: [NSString stringWithFormat:@"%ld", (long)error.code]; + [FBSDKBasicUtility dictionary:params setObject:value forKey:FBSDKLoginManagerLoggerParamErrorCodeKey]; + + NSError *innerError = error.userInfo[NSUnderlyingErrorKey]; + if (innerError != nil) { + value = innerError.userInfo[@"error_message"] ?: innerError.userInfo[NSLocalizedDescriptionKey]; + [FBSDKBasicUtility dictionary:_extras setObject:value forKey:@"inner_error_message"]; + + value = innerError.userInfo[FBSDKGraphRequestErrorGraphErrorCodeKey] ?: [NSString stringWithFormat:@"%ld", (long)innerError.code]; + [FBSDKBasicUtility dictionary:_extras setObject:value forKey:@"inner_error_code"]; + } + } else if (error) { + params[FBSDKLoginManagerLoggerParamErrorCodeKey] = @(error.code); + params[FBSDKLoginManagerLoggerParamErrorMessageKey] = error.localizedDescription; + } + + [self logEvent:eventName params:params]; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginManagerLoginResult+Internal.h b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginManagerLoginResult+Internal.h new file mode 100644 index 0000000000000..545ef0e3d283a --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginManagerLoginResult+Internal.h @@ -0,0 +1,32 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import + +@interface FBSDKLoginManagerLoginResult() + +@property (nonatomic, readonly) NSDictionary *loggingExtras; + +// legacy flag indicating this is an intermediary result only for logging purposes. +@property (nonatomic, assign) BOOL isSkipped; + +// adds additional logging entry to extras - only sent as part of `endLoginWithResult:` +-(void)addLoggingExtra:(id)object forKey:(id)key; +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginUtility.h b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginUtility.h new file mode 100644 index 0000000000000..b7e2cb3c65e88 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginUtility.h @@ -0,0 +1,34 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import + +#import + +NS_SWIFT_NAME(LoginUtility) +@interface FBSDKLoginUtility : NSObject + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + ++ (NSString *)stringForAudience:(FBSDKDefaultAudience)audience; ++ (NSDictionary *)queryParamsFromLoginURL:(NSURL *)url; + ++ (NSString *)userIDFromSignedRequest:(NSString *)signedRequest; + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginUtility.m b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginUtility.m new file mode 100644 index 0000000000000..902e68fddb2b3 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginUtility.m @@ -0,0 +1,88 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "FBSDKLoginUtility.h" + +#import +#import + +#ifdef COCOAPODS +#import +#else +#import "FBSDKCoreKit+Internal.h" +#endif +#import "FBSDKLoginConstants.h" + +@implementation FBSDKLoginUtility + ++ (NSString *)stringForAudience:(FBSDKDefaultAudience)audience +{ + switch (audience) { + case FBSDKDefaultAudienceOnlyMe: + return @"only_me"; + case FBSDKDefaultAudienceFriends: + return @"friends"; + case FBSDKDefaultAudienceEveryone: + return @"everyone"; + } +} + ++ (NSDictionary *)queryParamsFromLoginURL:(NSURL *)url +{ + NSString *expectedUrlPrefix = [FBSDKInternalUtility + appURLWithHost:@"authorize" + path:@"" + queryParameters:@{} + error:NULL].absoluteString; + if (![url.absoluteString hasPrefix:expectedUrlPrefix]) { + // Don't have an App ID, just verify path. + NSString *host = url.host; + if (![host isEqualToString:@"authorize"]) { + return nil; + } + } + NSMutableDictionary *params = [NSMutableDictionary dictionaryWithDictionary:[FBSDKInternalUtility dictionaryFromFBURL:url]]; + + NSString *userID = [[self class] userIDFromSignedRequest:params[@"signed_request"]]; + if (userID) { + params[@"user_id"] = userID; + } + + return params; +} + ++ (NSString *)userIDFromSignedRequest:(NSString *)signedRequest +{ + if (!signedRequest) { + return nil; + } + + NSArray *signatureAndPayload = [signedRequest componentsSeparatedByString:@"."]; + NSString *userID = nil; + + if (signatureAndPayload.count == 2) { + NSData *data = [FBSDKBase64 decodeAsData:signatureAndPayload[1]]; + if (data) { + NSDictionary *dictionary = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil]; + userID = dictionary[@"user_id"]; + } + } + return userID; +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/_FBSDKLoginRecoveryAttempter.h b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/_FBSDKLoginRecoveryAttempter.h new file mode 100644 index 0000000000000..5974d86a4d992 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/_FBSDKLoginRecoveryAttempter.h @@ -0,0 +1,27 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#ifdef COCOAPODS +#import +#else +#import "FBSDKCoreKit+Internal.h" +#endif + +@interface _FBSDKLoginRecoveryAttempter : FBSDKErrorRecoveryAttempter + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/_FBSDKLoginRecoveryAttempter.m b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/_FBSDKLoginRecoveryAttempter.m new file mode 100644 index 0000000000000..3152cef260254 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/_FBSDKLoginRecoveryAttempter.m @@ -0,0 +1,47 @@ +// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. +// +// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +// copy, modify, and distribute this software in source code or binary form for use +// in connection with the web services and APIs provided by Facebook. +// +// As with any software that integrates with the Facebook platform, your use of +// this software is subject to the Facebook Developer Principles and Policies +// [http://developers.facebook.com/policy/]. This copyright notice shall be +// included in all copies or substantial portions of the software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#import "_FBSDKLoginRecoveryAttempter.h" + +#import "FBSDKLoginKit+Internal.h" + +@implementation _FBSDKLoginRecoveryAttempter + +- (void)attemptRecoveryFromError:(NSError *)error + optionIndex:(NSUInteger)recoveryOptionIndex + delegate:(id)delegate + didRecoverSelector:(SEL)didRecoverSelector + contextInfo:(void *)contextInfo { + + void(^handler)(BOOL) = ^(BOOL didRecover) { + [super completeRecovery:didRecover delegate:delegate didRecoverSelector:didRecoverSelector contextInfo:contextInfo]; + }; + NSSet *currentPermissions = [FBSDKAccessToken currentAccessToken].permissions; + if (recoveryOptionIndex == 0 && currentPermissions.count > 0) { + FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init]; + [login logInWithPermissions:currentPermissions handler:^(FBSDKLoginManagerLoginResult *result, NSError *loginError) { + // we can only consider a recovery successful if there are no declines + // (note this could still set an updated currentAccessToken). + handler(!loginError && !result.isCancelled && result.declinedPermissions.count == 0); + }]; + } else { + handler(NO); + } +} + +@end diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/LICENSE b/apps/bare-expo/ios/Pods/FBSDKLoginKit/LICENSE new file mode 100644 index 0000000000000..bdb9fc54bed90 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/LICENSE @@ -0,0 +1,17 @@ +Copyright (c) 2014-present, Facebook, Inc. All rights reserved. + +You are hereby granted a non-exclusive, worldwide, royalty-free license to use, +copy, modify, and distribute this software in source code or binary form for use +in connection with the web services and APIs provided by Facebook. + +As with any software that integrates with the Facebook platform, your use of +this software is subject to the Facebook Developer Principles and Policies +[http://developers.facebook.com/policy/]. This copyright notice shall be +included in all copies or substantial portions of the software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/apps/bare-expo/ios/Pods/FBSDKLoginKit/README.md b/apps/bare-expo/ios/Pods/FBSDKLoginKit/README.md new file mode 100644 index 0000000000000..ad7fa154a7d98 --- /dev/null +++ b/apps/bare-expo/ios/Pods/FBSDKLoginKit/README.md @@ -0,0 +1,62 @@ +# Facebook SDK for iOS + +[![Platforms](https://img.shields.io/cocoapods/p/FBSDKCoreKit.svg)](https://cocoapods.org/pods/FBSDKCoreKit) +[![Build Status](https://travis-ci.org/facebook/facebook-ios-sdk.svg?branch=master)](https://travis-ci.org/facebook/facebook-ios-sdk) + +[![CocoaPods](https://img.shields.io/cocoapods/v/FBSDKCoreKit.svg)](https://cocoapods.org/pods/FBSDKCoreKit) +[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) + +This open-source library allows you to integrate Facebook into your iOS app. + +Learn more about the provided samples, documentation, integrating the SDK into your app, accessing source code, and more +at https://developers.facebook.com/docs/ios + +NOTE: By default, the Facebook SDK for iOS is installed in ~/Documents/FacebookSDK + +## TRY IT OUT + +1. Download the SDK at or via CocoaPods by adding the 'FBSDKCoreKit', + 'FBSDKLoginKit', and 'FBSDKShareKit' pods. +2. Test your install: build and run the project at `~/Documents/FacebookSDK/Samples/Scrumptious/Scrumptious.xcodeproj` +3. Check-out the tutorials available online at: +4. Start coding! Visit for tutorials and reference documentation. + +## FEATURES + +- Login - +- Sharing - +- App Links - +- Graph API - +- Analytics - + +## GIVE FEEDBACK + +Please report bugs or issues to our designated developer support team -- -- as this will help us resolve them more quickly. + +You can also visit our [Facebook Developer Community Forum](https://developers.facebook.com/community/), +join the [Facebook Developers Group on Facebook](https://www.facebook.com/groups/fbdevelopers/), +ask questions on [Stack Overflow](http://facebook.stackoverflow.com), +or open an issue in this repository. + +## LICENSE + +See the [LICENSE](LICENSE) file. + +## DEVELOPER TERMS + +- By enabling Facebook integrations, including through this SDK, you can share information with Facebook, including + information about people’s use of your app. Facebook will use information received in accordance with our + [Data Use Policy](https://www.facebook.com/about/privacy/), including to provide you with insights about the + effectiveness of your ads and the use of your app. These integrations also enable us and our partners to serve ads on + and off Facebook. +- You may limit your sharing of information with us by updating the Insights control in the developer tool + `https://developers.facebook.com/apps/{app_id}/settings/advanced`. +- If you use a Facebook integration, including to share information with us, you agree and confirm that you have + provided appropriate and sufficiently prominent notice to and obtained the appropriate consent from your users + regarding such collection, use, and disclosure (including, at a minimum, through your privacy policy). You further + agree that you will not share information with us about children under the age of 13. +- You agree to comply with all applicable laws and regulations and also agree to our Terms + , including our Platform Policies .and + Advertising Guidelines, as applicable . + +By using the Facebook SDK for iOS you agree to these terms. diff --git a/apps/bare-expo/ios/Pods/Headers/Private/EXApplication/EXProvisioningProfile.h b/apps/bare-expo/ios/Pods/Headers/Private/EXApplication/EXProvisioningProfile.h new file mode 120000 index 0000000000000..c3eebf383f491 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/EXApplication/EXProvisioningProfile.h @@ -0,0 +1 @@ +../../../../../../../packages/expo-application/ios/EXApplication/EXProvisioningProfile.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/EXFacebook/EXFacebook.h b/apps/bare-expo/ios/Pods/Headers/Private/EXFacebook/EXFacebook.h new file mode 120000 index 0000000000000..978195d89d158 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/EXFacebook/EXFacebook.h @@ -0,0 +1 @@ +../../../../../../../packages/expo-facebook/ios/EXFacebook/EXFacebook.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/EXFacebook/EXFacebookAppDelegate.h b/apps/bare-expo/ios/Pods/Headers/Private/EXFacebook/EXFacebookAppDelegate.h new file mode 120000 index 0000000000000..b2de73f0751d6 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/EXFacebook/EXFacebookAppDelegate.h @@ -0,0 +1 @@ +../../../../../../../packages/expo-facebook/ios/EXFacebook/EXFacebookAppDelegate.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/EXLocation/EXGeofencingTaskConsumer.h b/apps/bare-expo/ios/Pods/Headers/Private/EXLocation/EXGeofencingTaskConsumer.h new file mode 120000 index 0000000000000..3ed2933a52718 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/EXLocation/EXGeofencingTaskConsumer.h @@ -0,0 +1 @@ +../../../../../../../packages/expo-location/ios/EXLocation/TaskConsumers/EXGeofencingTaskConsumer.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/EXLocation/EXLocation.h b/apps/bare-expo/ios/Pods/Headers/Private/EXLocation/EXLocation.h new file mode 120000 index 0000000000000..2e55fe45d30d2 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/EXLocation/EXLocation.h @@ -0,0 +1 @@ +../../../../../../../packages/expo-location/ios/EXLocation/EXLocation.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/EXLocation/EXLocationDelegate.h b/apps/bare-expo/ios/Pods/Headers/Private/EXLocation/EXLocationDelegate.h new file mode 120000 index 0000000000000..5d5ca20412177 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/EXLocation/EXLocationDelegate.h @@ -0,0 +1 @@ +../../../../../../../packages/expo-location/ios/EXLocation/EXLocationDelegate.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/EXLocation/EXLocationPermissionRequester.h b/apps/bare-expo/ios/Pods/Headers/Private/EXLocation/EXLocationPermissionRequester.h new file mode 120000 index 0000000000000..23679ef40f413 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/EXLocation/EXLocationPermissionRequester.h @@ -0,0 +1 @@ +../../../../../../../packages/expo-location/ios/EXLocation/EXLocationPermissionRequester.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/EXLocation/EXLocationTaskConsumer.h b/apps/bare-expo/ios/Pods/Headers/Private/EXLocation/EXLocationTaskConsumer.h new file mode 120000 index 0000000000000..c17080650c45b --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/EXLocation/EXLocationTaskConsumer.h @@ -0,0 +1 @@ +../../../../../../../packages/expo-location/ios/EXLocation/TaskConsumers/EXLocationTaskConsumer.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/EXNotifications/EXInstallationIdProvider.h b/apps/bare-expo/ios/Pods/Headers/Private/EXNotifications/EXInstallationIdProvider.h new file mode 120000 index 0000000000000..158b184d07f35 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/EXNotifications/EXInstallationIdProvider.h @@ -0,0 +1 @@ +../../../../../../../packages/expo-notifications/ios/EXNotifications/EXInstallationIdProvider.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/EXNotifications/EXPushTokenListener.h b/apps/bare-expo/ios/Pods/Headers/Private/EXNotifications/EXPushTokenListener.h new file mode 120000 index 0000000000000..7c0c2194e3c25 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/EXNotifications/EXPushTokenListener.h @@ -0,0 +1 @@ +../../../../../../../packages/expo-notifications/ios/EXNotifications/EXPushTokenListener.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/EXNotifications/EXPushTokenManager.h b/apps/bare-expo/ios/Pods/Headers/Private/EXNotifications/EXPushTokenManager.h new file mode 120000 index 0000000000000..e0198dca9bd46 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/EXNotifications/EXPushTokenManager.h @@ -0,0 +1 @@ +../../../../../../../packages/expo-notifications/ios/EXNotifications/EXPushTokenManager.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/EXNotifications/EXPushTokenModule.h b/apps/bare-expo/ios/Pods/Headers/Private/EXNotifications/EXPushTokenModule.h new file mode 120000 index 0000000000000..f9ff266aafc13 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/EXNotifications/EXPushTokenModule.h @@ -0,0 +1 @@ +../../../../../../../packages/expo-notifications/ios/EXNotifications/EXPushTokenModule.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/EXSQLite/EXSQLite.h b/apps/bare-expo/ios/Pods/Headers/Private/EXSQLite/EXSQLite.h index 59bc29035c304..2aba88affadb6 120000 --- a/apps/bare-expo/ios/Pods/Headers/Private/EXSQLite/EXSQLite.h +++ b/apps/bare-expo/ios/Pods/Headers/Private/EXSQLite/EXSQLite.h @@ -1 +1 @@ -../../../../../../../packages/expo-sqlite/ios/EXSQLite/EXSQLite.h \ No newline at end of file +../../../../../../../packages/expo-sqlite/ios/EXSQlite/EXSQLite.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/EXScreenOrientation/EXScreenOrientationModule.h b/apps/bare-expo/ios/Pods/Headers/Private/EXScreenOrientation/EXScreenOrientationModule.h new file mode 120000 index 0000000000000..861ed5320a274 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/EXScreenOrientation/EXScreenOrientationModule.h @@ -0,0 +1 @@ +../../../../../../../packages/expo-screen-orientation/ios/EXScreenOrientation/EXScreenOrientationModule.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/EXScreenOrientation/EXScreenOrientationRegistry.h b/apps/bare-expo/ios/Pods/Headers/Private/EXScreenOrientation/EXScreenOrientationRegistry.h new file mode 120000 index 0000000000000..726992254160f --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/EXScreenOrientation/EXScreenOrientationRegistry.h @@ -0,0 +1 @@ +../../../../../../../packages/expo-screen-orientation/ios/EXScreenOrientation/EXScreenOrientationRegistry.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/EXScreenOrientation/EXScreenOrientationUtilities.h b/apps/bare-expo/ios/Pods/Headers/Private/EXScreenOrientation/EXScreenOrientationUtilities.h new file mode 120000 index 0000000000000..d7a7ed31b4e95 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/EXScreenOrientation/EXScreenOrientationUtilities.h @@ -0,0 +1 @@ +../../../../../../../packages/expo-screen-orientation/ios/EXScreenOrientation/EXScreenOrientationUtilities.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/EXScreenOrientation/EXScreenOrientationViewController.h b/apps/bare-expo/ios/Pods/Headers/Private/EXScreenOrientation/EXScreenOrientationViewController.h new file mode 120000 index 0000000000000..04cfc5c48705d --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/EXScreenOrientation/EXScreenOrientationViewController.h @@ -0,0 +1 @@ +../../../../../../../packages/expo-screen-orientation/ios/EXScreenOrientation/EXScreenOrientationViewController.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAccessToken.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAccessToken.h new file mode 120000 index 0000000000000..a5b3f9758d2a7 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAccessToken.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAccessToken.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAccessTokenCache.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAccessTokenCache.h new file mode 120000 index 0000000000000..cd1ae91e7934c --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAccessTokenCache.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKAccessTokenCache.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAccessTokenCaching.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAccessTokenCaching.h new file mode 120000 index 0000000000000..6ddcbdc1555e5 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAccessTokenCaching.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKAccessTokenCaching.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAccessTokenExpirer.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAccessTokenExpirer.h new file mode 120000 index 0000000000000..45f8281d6d2ab --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAccessTokenExpirer.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKAccessTokenExpirer.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppEvents+Internal.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppEvents+Internal.h new file mode 120000 index 0000000000000..fd90f2645d9fa --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppEvents+Internal.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEvents+Internal.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppEvents.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppEvents.h new file mode 120000 index 0000000000000..08573c6da1a6c --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppEvents.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/FBSDKAppEvents.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppEventsDeviceInfo.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppEventsDeviceInfo.h new file mode 120000 index 0000000000000..001ba73f2ca39 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppEventsDeviceInfo.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsDeviceInfo.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppEventsState.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppEventsState.h new file mode 120000 index 0000000000000..b63867d63b31d --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppEventsState.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsState.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppEventsStateManager.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppEventsStateManager.h new file mode 120000 index 0000000000000..44a5c7956ca38 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppEventsStateManager.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsStateManager.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppEventsUtility.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppEventsUtility.h new file mode 120000 index 0000000000000..cdae4f9abf131 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppEventsUtility.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsUtility.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppLink.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppLink.h new file mode 120000 index 0000000000000..5682f857db8e0 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppLink.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLink.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppLinkNavigation.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppLinkNavigation.h new file mode 120000 index 0000000000000..b4410d1811a49 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppLinkNavigation.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkNavigation.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppLinkResolver.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppLinkResolver.h new file mode 120000 index 0000000000000..e1c63459ea251 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppLinkResolver.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkResolver.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppLinkResolving.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppLinkResolving.h new file mode 120000 index 0000000000000..e0101524009eb --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppLinkResolving.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkResolving.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppLinkReturnToRefererController.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppLinkReturnToRefererController.h new file mode 120000 index 0000000000000..e4724b4b7211a --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppLinkReturnToRefererController.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkReturnToRefererController.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppLinkReturnToRefererView.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppLinkReturnToRefererView.h new file mode 120000 index 0000000000000..753ad0c008ae1 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppLinkReturnToRefererView.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkReturnToRefererView.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppLinkReturnToRefererView_Internal.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppLinkReturnToRefererView_Internal.h new file mode 120000 index 0000000000000..d513229cbcfff --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppLinkReturnToRefererView_Internal.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKAppLinkReturnToRefererView_Internal.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppLinkTarget.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppLinkTarget.h new file mode 120000 index 0000000000000..24e26cbacb295 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppLinkTarget.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkTarget.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppLinkUtility.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppLinkUtility.h new file mode 120000 index 0000000000000..7d5c8bca269ec --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppLinkUtility.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkUtility.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppLink_Internal.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppLink_Internal.h new file mode 120000 index 0000000000000..a22a22fde8a83 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAppLink_Internal.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKAppLink_Internal.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKApplicationDelegate+Internal.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKApplicationDelegate+Internal.h new file mode 120000 index 0000000000000..20b62ce8747fa --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKApplicationDelegate+Internal.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKApplicationDelegate+Internal.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKApplicationDelegate.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKApplicationDelegate.h new file mode 120000 index 0000000000000..e163dc893343f --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKApplicationDelegate.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKApplicationDelegate.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKApplicationObserving.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKApplicationObserving.h new file mode 120000 index 0000000000000..5184d7f65c672 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKApplicationObserving.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKApplicationObserving.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAudioResourceLoader.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAudioResourceLoader.h new file mode 120000 index 0000000000000..0e31857c2db56 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKAudioResourceLoader.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKAudioResourceLoader.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKBase64.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKBase64.h new file mode 120000 index 0000000000000..21781759a3e46 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKBase64.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Base64/FBSDKBase64.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKBasicUtility.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKBasicUtility.h new file mode 120000 index 0000000000000..d7ae12aaf0b1d --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKBasicUtility.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKBasicUtility.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKBridgeAPI.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKBridgeAPI.h new file mode 120000 index 0000000000000..bf8782465c6f5 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKBridgeAPI.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPI.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKBridgeAPIProtocol.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKBridgeAPIProtocol.h new file mode 120000 index 0000000000000..865167de47629 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKBridgeAPIProtocol.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPIProtocol.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKBridgeAPIProtocolNativeV1.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKBridgeAPIProtocolNativeV1.h new file mode 120000 index 0000000000000..2c144eb6e5fb7 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKBridgeAPIProtocolNativeV1.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/ProtocolVersions/FBSDKBridgeAPIProtocolNativeV1.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKBridgeAPIProtocolType.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKBridgeAPIProtocolType.h new file mode 120000 index 0000000000000..5d5e61ab4c896 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKBridgeAPIProtocolType.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPIProtocolType.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKBridgeAPIProtocolWebV1.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKBridgeAPIProtocolWebV1.h new file mode 120000 index 0000000000000..50c7de103ecaf --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKBridgeAPIProtocolWebV1.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/ProtocolVersions/FBSDKBridgeAPIProtocolWebV1.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKBridgeAPIProtocolWebV2.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKBridgeAPIProtocolWebV2.h new file mode 120000 index 0000000000000..19dcd4b961101 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKBridgeAPIProtocolWebV2.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/ProtocolVersions/FBSDKBridgeAPIProtocolWebV2.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKBridgeAPIRequest+Private.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKBridgeAPIRequest+Private.h new file mode 120000 index 0000000000000..2fec09dc644e3 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKBridgeAPIRequest+Private.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPIRequest+Private.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKBridgeAPIRequest.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKBridgeAPIRequest.h new file mode 120000 index 0000000000000..cde86f8233982 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKBridgeAPIRequest.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPIRequest.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKBridgeAPIResponse.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKBridgeAPIResponse.h new file mode 120000 index 0000000000000..e35f6036595dd --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKBridgeAPIResponse.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPIResponse.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKButton+Subclass.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKButton+Subclass.h new file mode 120000 index 0000000000000..268ca082efd7b --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKButton+Subclass.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKButton+Subclass.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKButton.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKButton.h new file mode 120000 index 0000000000000..806ec62d0d1cd --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKButton.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKButton.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCloseIcon.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCloseIcon.h new file mode 120000 index 0000000000000..f1aa5047e2838 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCloseIcon.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKCloseIcon.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCodelessIndexer.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCodelessIndexer.h new file mode 120000 index 0000000000000..467350615eaa7 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCodelessIndexer.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKCodelessIndexer.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCodelessMacros.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCodelessMacros.h new file mode 120000 index 0000000000000..741be6f87e31c --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCodelessMacros.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKCodelessMacros.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCodelessParameterComponent.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCodelessParameterComponent.h new file mode 120000 index 0000000000000..e58b257a61fc9 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCodelessParameterComponent.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKCodelessParameterComponent.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCodelessPathComponent.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCodelessPathComponent.h new file mode 120000 index 0000000000000..4603cda796902 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCodelessPathComponent.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKCodelessPathComponent.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKColor.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKColor.h new file mode 120000 index 0000000000000..849f131ae2cab --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKColor.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKColor.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKConstants.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKConstants.h new file mode 120000 index 0000000000000..4c08cc81355a0 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKConstants.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKConstants.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKContainerViewController.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKContainerViewController.h new file mode 120000 index 0000000000000..1103d0be5e9f4 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKContainerViewController.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKContainerViewController.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCopying.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCopying.h new file mode 120000 index 0000000000000..aa5dc1f7f0cd2 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCopying.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKCopying.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCoreKit+Internal.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCoreKit+Internal.h new file mode 120000 index 0000000000000..91f7f948d1ea3 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCoreKit+Internal.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKCoreKit+Internal.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCoreKit.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCoreKit.h new file mode 120000 index 0000000000000..bfffe4f8a2e26 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCoreKit.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCrashHandler.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCrashHandler.h new file mode 120000 index 0000000000000..92cd4d482b9db --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCrashHandler.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Instrument/FBSDKCrashHandler.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCrashObserver.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCrashObserver.h new file mode 120000 index 0000000000000..54e54649eadb7 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCrashObserver.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/CrashReport/FBSDKCrashObserver.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCrashObserving.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCrashObserving.h new file mode 120000 index 0000000000000..691531041a2ed --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCrashObserving.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Instrument/FBSDKCrashObserving.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCrypto.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCrypto.h new file mode 120000 index 0000000000000..644954351d7b0 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKCrypto.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Cryptography/FBSDKCrypto.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKDeviceRequestsHelper.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKDeviceRequestsHelper.h new file mode 120000 index 0000000000000..257bcd7e0ee23 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKDeviceRequestsHelper.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKDeviceRequestsHelper.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKDialogConfiguration.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKDialogConfiguration.h new file mode 120000 index 0000000000000..eb405492f8488 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKDialogConfiguration.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKDialogConfiguration.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKDynamicFrameworkLoader.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKDynamicFrameworkLoader.h new file mode 120000 index 0000000000000..ea0c19e8499c0 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKDynamicFrameworkLoader.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKDynamicFrameworkLoader.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKError.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKError.h new file mode 120000 index 0000000000000..c27abd36cac31 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKError.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKError.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKErrorConfiguration.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKErrorConfiguration.h new file mode 120000 index 0000000000000..5f353b4b9604b --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKErrorConfiguration.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKErrorConfiguration.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKErrorRecoveryAttempter.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKErrorRecoveryAttempter.h new file mode 120000 index 0000000000000..499f94ac9943a --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKErrorRecoveryAttempter.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ErrorRecovery/FBSDKErrorRecoveryAttempter.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKErrorRecoveryConfiguration.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKErrorRecoveryConfiguration.h new file mode 120000 index 0000000000000..4ebe2d88cb64b --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKErrorRecoveryConfiguration.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKErrorRecoveryConfiguration.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKErrorReport.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKErrorReport.h new file mode 120000 index 0000000000000..170e8f55476f1 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKErrorReport.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/ErrorReport/FBSDKErrorReport.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKEventBinding.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKEventBinding.h new file mode 120000 index 0000000000000..c7d8eb5c80a99 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKEventBinding.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKEventBinding.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKEventBindingManager.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKEventBindingManager.h new file mode 120000 index 0000000000000..b65a80802d508 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKEventBindingManager.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKEventBindingManager.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKFeatureManager.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKFeatureManager.h new file mode 120000 index 0000000000000..3880dec66b702 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKFeatureManager.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKFeatureManager.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKGateKeeperManager.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKGateKeeperManager.h new file mode 120000 index 0000000000000..600bf3564487f --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKGateKeeperManager.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKGateKeeperManager.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKGraphErrorRecoveryProcessor.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKGraphErrorRecoveryProcessor.h new file mode 120000 index 0000000000000..6f019f677edfa --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKGraphErrorRecoveryProcessor.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphErrorRecoveryProcessor.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKGraphRequest+Internal.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKGraphRequest+Internal.h new file mode 120000 index 0000000000000..da915bfb90cae --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKGraphRequest+Internal.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequest+Internal.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKGraphRequest.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKGraphRequest.h new file mode 120000 index 0000000000000..524cb7791cb9c --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKGraphRequest.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphRequest.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKGraphRequestBody.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKGraphRequestBody.h new file mode 120000 index 0000000000000..c3f8d45d03325 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKGraphRequestBody.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequestBody.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKGraphRequestConnection+Internal.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKGraphRequestConnection+Internal.h new file mode 120000 index 0000000000000..6f3e14ae0b288 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKGraphRequestConnection+Internal.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequestConnection+Internal.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKGraphRequestConnection.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKGraphRequestConnection.h new file mode 120000 index 0000000000000..c6cbbfc3e0db1 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKGraphRequestConnection.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphRequestConnection.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKGraphRequestDataAttachment.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKGraphRequestDataAttachment.h new file mode 120000 index 0000000000000..9960de2829509 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKGraphRequestDataAttachment.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphRequestDataAttachment.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKGraphRequestMetadata.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKGraphRequestMetadata.h new file mode 120000 index 0000000000000..d5584add24372 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKGraphRequestMetadata.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequestMetadata.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKGraphRequestPiggybackManager.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKGraphRequestPiggybackManager.h new file mode 120000 index 0000000000000..028f073678ad2 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKGraphRequestPiggybackManager.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Network/FBSDKGraphRequestPiggybackManager.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKHybridAppEventsScriptMessageHandler.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKHybridAppEventsScriptMessageHandler.h new file mode 120000 index 0000000000000..8dcccaaf28f57 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKHybridAppEventsScriptMessageHandler.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKHybridAppEventsScriptMessageHandler.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKIcon.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKIcon.h new file mode 120000 index 0000000000000..5358ea5c0d856 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKIcon.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKIcon.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKImageDownloader.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKImageDownloader.h new file mode 120000 index 0000000000000..4e51dbed9a954 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKImageDownloader.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKImageDownloader.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKInstrumentManager.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKInstrumentManager.h new file mode 120000 index 0000000000000..a727e32ec3fc7 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKInstrumentManager.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/Instrument/FBSDKInstrumentManager.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKInternalUtility.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKInternalUtility.h new file mode 120000 index 0000000000000..9549a8876a50e --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKInternalUtility.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKInternalUtility.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKKeychainStore.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKKeychainStore.h new file mode 120000 index 0000000000000..9f00449942338 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKKeychainStore.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKKeychainStore.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKKeychainStoreViaBundleID.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKKeychainStoreViaBundleID.h new file mode 120000 index 0000000000000..3cb2bcea3283c --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKKeychainStoreViaBundleID.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/TokenCaching/FBSDKKeychainStoreViaBundleID.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKLibAnalyzer.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKLibAnalyzer.h new file mode 120000 index 0000000000000..09c39a0572806 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKLibAnalyzer.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Instrument/FBSDKLibAnalyzer.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKLogger.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKLogger.h new file mode 120000 index 0000000000000..aceb08f982548 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKLogger.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKLogger.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKLogo.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKLogo.h new file mode 120000 index 0000000000000..7f60a67aa918d --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKLogo.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKLogo.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKMaleSilhouetteIcon.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKMaleSilhouetteIcon.h new file mode 120000 index 0000000000000..07e735934917e --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKMaleSilhouetteIcon.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKMaleSilhouetteIcon.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKMath.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKMath.h new file mode 120000 index 0000000000000..4e9429176e572 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKMath.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKMath.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKMeasurementEvent.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKMeasurementEvent.h new file mode 120000 index 0000000000000..67f2e5d84f680 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKMeasurementEvent.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKMeasurementEvent.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKMeasurementEventListener.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKMeasurementEventListener.h new file mode 120000 index 0000000000000..87a235af358ff --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKMeasurementEventListener.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/Internal/FBSDKMeasurementEventListener.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKMeasurementEvent_Internal.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKMeasurementEvent_Internal.h new file mode 120000 index 0000000000000..062ba7161dc08 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKMeasurementEvent_Internal.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKMeasurementEvent_Internal.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKMetadataIndexer.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKMetadataIndexer.h new file mode 120000 index 0000000000000..0d7bc053e8c1e --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKMetadataIndexer.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/AAM/FBSDKMetadataIndexer.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKMonotonicTime.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKMonotonicTime.h new file mode 120000 index 0000000000000..ab34b86b48aaa --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKMonotonicTime.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKMonotonicTime.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKMutableCopying.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKMutableCopying.h new file mode 120000 index 0000000000000..40cf5f182ec92 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKMutableCopying.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKMutableCopying.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKPaymentObserver.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKPaymentObserver.h new file mode 120000 index 0000000000000..cd0c096fcacfe --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKPaymentObserver.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKPaymentObserver.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKProfile+Internal.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKProfile+Internal.h new file mode 120000 index 0000000000000..e1c1faccc77ee --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKProfile+Internal.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKProfile+Internal.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKProfile.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKProfile.h new file mode 120000 index 0000000000000..a9866b1d59e4d --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKProfile.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKProfile.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKProfilePictureView.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKProfilePictureView.h new file mode 120000 index 0000000000000..6f38799e4ce3d --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKProfilePictureView.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKProfilePictureView.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKRestrictiveDataFilterManager.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKRestrictiveDataFilterManager.h new file mode 120000 index 0000000000000..cb4bfac7353de --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKRestrictiveDataFilterManager.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/RestrictiveDataFilter/FBSDKRestrictiveDataFilterManager.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKServerConfiguration+Internal.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKServerConfiguration+Internal.h new file mode 120000 index 0000000000000..67c87c3538a87 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKServerConfiguration+Internal.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKServerConfiguration+Internal.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKServerConfiguration.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKServerConfiguration.h new file mode 120000 index 0000000000000..339a33560c9f5 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKServerConfiguration.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKServerConfiguration.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKServerConfigurationManager+Internal.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKServerConfigurationManager+Internal.h new file mode 120000 index 0000000000000..4156e2784d577 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKServerConfigurationManager+Internal.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKServerConfigurationManager+Internal.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKServerConfigurationManager.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKServerConfigurationManager.h new file mode 120000 index 0000000000000..91e055984e213 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKServerConfigurationManager.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ServerConfiguration/FBSDKServerConfigurationManager.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKSettings+Internal.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKSettings+Internal.h new file mode 120000 index 0000000000000..f25c4a2237310 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKSettings+Internal.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKSettings+Internal.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKSettings.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKSettings.h new file mode 120000 index 0000000000000..7edc38f3982c2 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKSettings.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKSettings.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKSwizzler.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKSwizzler.h new file mode 120000 index 0000000000000..d2fe7f60c7385 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKSwizzler.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKSwizzler.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKTestUsersManager.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKTestUsersManager.h new file mode 120000 index 0000000000000..5813f898fa149 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKTestUsersManager.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKTestUsersManager.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKTimeSpentData.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKTimeSpentData.h new file mode 120000 index 0000000000000..247b403724ea6 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKTimeSpentData.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKTimeSpentData.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKTriStateBOOL.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKTriStateBOOL.h new file mode 120000 index 0000000000000..b16e0636baf6c --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKTriStateBOOL.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKTriStateBOOL.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKTypeUtility.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKTypeUtility.h new file mode 120000 index 0000000000000..bac7620273656 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKTypeUtility.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKTypeUtility.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKUIUtility.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKUIUtility.h new file mode 120000 index 0000000000000..89e8fb48c572e --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKUIUtility.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKUIUtility.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKURL.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKURL.h new file mode 120000 index 0000000000000..500aabe820aef --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKURL.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKURL.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKURLOpening.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKURLOpening.h new file mode 120000 index 0000000000000..a70f6e71f62a6 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKURLOpening.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKURLOpening.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKURLSession.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKURLSession.h new file mode 120000 index 0000000000000..9a991461d325b --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKURLSession.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKURLSession.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKURLSessionTask.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKURLSessionTask.h new file mode 120000 index 0000000000000..0437d821166eb --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKURLSessionTask.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/FBSDKURLSessionTask.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKURL_Internal.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKURL_Internal.h new file mode 120000 index 0000000000000..6d7c249e3df79 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKURL_Internal.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKURL_Internal.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKUserDataStore.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKUserDataStore.h new file mode 120000 index 0000000000000..966da674d8637 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKUserDataStore.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKUserDataStore.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKUtility.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKUtility.h new file mode 120000 index 0000000000000..efbfaf13b80a2 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKUtility.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKUtility.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKViewHierarchy.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKViewHierarchy.h new file mode 120000 index 0000000000000..d3057ca5a594f --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKViewHierarchy.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/FBSDKViewHierarchy.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKViewImpressionTracker.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKViewImpressionTracker.h new file mode 120000 index 0000000000000..e4bc4fef91990 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKViewImpressionTracker.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKViewImpressionTracker.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKWebDialog.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKWebDialog.h new file mode 120000 index 0000000000000..138ca331dd654 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKWebDialog.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/WebDialog/FBSDKWebDialog.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKWebDialogView.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKWebDialogView.h new file mode 120000 index 0000000000000..59a0160da3f9c --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKWebDialogView.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/WebDialog/FBSDKWebDialogView.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKWebViewAppLinkResolver.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKWebViewAppLinkResolver.h new file mode 120000 index 0000000000000..8d5bd3d664942 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/FBSDKWebViewAppLinkResolver.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKWebViewAppLinkResolver.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/_FBSDKTemporaryErrorRecoveryAttempter.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/_FBSDKTemporaryErrorRecoveryAttempter.h new file mode 120000 index 0000000000000..bd4e149bb86a1 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKCoreKit/_FBSDKTemporaryErrorRecoveryAttempter.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Internal/ErrorRecovery/_FBSDKTemporaryErrorRecoveryAttempter.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKDeviceLoginCodeInfo+Internal.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKDeviceLoginCodeInfo+Internal.h new file mode 120000 index 0000000000000..ebfc0d9d17e0f --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKDeviceLoginCodeInfo+Internal.h @@ -0,0 +1 @@ +../../../FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKDeviceLoginCodeInfo+Internal.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKDeviceLoginCodeInfo.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKDeviceLoginCodeInfo.h new file mode 120000 index 0000000000000..13badb875185a --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKDeviceLoginCodeInfo.h @@ -0,0 +1 @@ +../../../FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginCodeInfo.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKDeviceLoginManager.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKDeviceLoginManager.h new file mode 120000 index 0000000000000..810d740af8c24 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKDeviceLoginManager.h @@ -0,0 +1 @@ +../../../FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginManager.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKDeviceLoginManagerResult+Internal.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKDeviceLoginManagerResult+Internal.h new file mode 120000 index 0000000000000..2f2fdeb62f8c5 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKDeviceLoginManagerResult+Internal.h @@ -0,0 +1 @@ +../../../FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKDeviceLoginManagerResult+Internal.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKDeviceLoginManagerResult.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKDeviceLoginManagerResult.h new file mode 120000 index 0000000000000..f38b4a08793e5 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKDeviceLoginManagerResult.h @@ -0,0 +1 @@ +../../../FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginManagerResult.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginButton.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginButton.h new file mode 120000 index 0000000000000..a997deef4308b --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginButton.h @@ -0,0 +1 @@ +../../../FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginButton.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginCompletion+Internal.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginCompletion+Internal.h new file mode 120000 index 0000000000000..45fdfa9840454 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginCompletion+Internal.h @@ -0,0 +1 @@ +../../../FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginCompletion+Internal.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginCompletion.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginCompletion.h new file mode 120000 index 0000000000000..1c5d1f1ada4d3 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginCompletion.h @@ -0,0 +1 @@ +../../../FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginCompletion.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginConstants.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginConstants.h new file mode 120000 index 0000000000000..93a52b76a430a --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginConstants.h @@ -0,0 +1 @@ +../../../FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginConstants.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginError.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginError.h new file mode 120000 index 0000000000000..f257464dac79f --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginError.h @@ -0,0 +1 @@ +../../../FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginError.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginKit+Internal.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginKit+Internal.h new file mode 120000 index 0000000000000..1eda541ee20a3 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginKit+Internal.h @@ -0,0 +1 @@ +../../../FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginKit+Internal.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginKit.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginKit.h new file mode 120000 index 0000000000000..cf4e004c4c61c --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginKit.h @@ -0,0 +1 @@ +../../../FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginManager+Internal.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginManager+Internal.h new file mode 120000 index 0000000000000..cab55aea788fa --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginManager+Internal.h @@ -0,0 +1 @@ +../../../FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginManager+Internal.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginManager.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginManager.h new file mode 120000 index 0000000000000..a791506bff722 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginManager.h @@ -0,0 +1 @@ +../../../FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginManager.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginManagerLogger.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginManagerLogger.h new file mode 120000 index 0000000000000..dfaa5404d9210 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginManagerLogger.h @@ -0,0 +1 @@ +../../../FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginManagerLogger.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginManagerLoginResult+Internal.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginManagerLoginResult+Internal.h new file mode 120000 index 0000000000000..a0af26e271817 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginManagerLoginResult+Internal.h @@ -0,0 +1 @@ +../../../FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginManagerLoginResult+Internal.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginManagerLoginResult.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginManagerLoginResult.h new file mode 120000 index 0000000000000..b8cf2c7cff164 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginManagerLoginResult.h @@ -0,0 +1 @@ +../../../FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginManagerLoginResult.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginTooltipView.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginTooltipView.h new file mode 120000 index 0000000000000..0f25173ee2ff8 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginTooltipView.h @@ -0,0 +1 @@ +../../../FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginTooltipView.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginUtility.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginUtility.h new file mode 120000 index 0000000000000..48ff8f984d462 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKLoginUtility.h @@ -0,0 +1 @@ +../../../FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginUtility.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKTooltipView.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKTooltipView.h new file mode 120000 index 0000000000000..c46a3c3c326bd --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/FBSDKTooltipView.h @@ -0,0 +1 @@ +../../../FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKTooltipView.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/_FBSDKLoginRecoveryAttempter.h b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/_FBSDKLoginRecoveryAttempter.h new file mode 120000 index 0000000000000..91c76028ec097 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/FBSDKLoginKit/_FBSDKLoginRecoveryAttempter.h @@ -0,0 +1 @@ +../../../FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/_FBSDKLoginRecoveryAttempter.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/UMReactNativeAdapter/UMModuleRegistryHolderReactModule.h b/apps/bare-expo/ios/Pods/Headers/Private/UMReactNativeAdapter/UMModuleRegistryHolderReactModule.h new file mode 120000 index 0000000000000..213b9bd7dd02e --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/UMReactNativeAdapter/UMModuleRegistryHolderReactModule.h @@ -0,0 +1 @@ +../../../../../../../packages/@unimodules/react-native-adapter/ios/UMReactNativeAdapter/UMModuleRegistryAdapter/UMModuleRegistryHolderReactModule.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/UMTaskManagerInterface/UMTaskConsumerInterface.h b/apps/bare-expo/ios/Pods/Headers/Private/UMTaskManagerInterface/UMTaskConsumerInterface.h new file mode 120000 index 0000000000000..b496e6e21a31a --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/UMTaskManagerInterface/UMTaskConsumerInterface.h @@ -0,0 +1 @@ +../../../../../../../packages/unimodules-task-manager-interface/ios/UMTaskManagerInterface/UMTaskConsumerInterface.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/UMTaskManagerInterface/UMTaskInterface.h b/apps/bare-expo/ios/Pods/Headers/Private/UMTaskManagerInterface/UMTaskInterface.h new file mode 120000 index 0000000000000..8b38e8ffb6828 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/UMTaskManagerInterface/UMTaskInterface.h @@ -0,0 +1 @@ +../../../../../../../packages/unimodules-task-manager-interface/ios/UMTaskManagerInterface/UMTaskInterface.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/UMTaskManagerInterface/UMTaskLaunchReason.h b/apps/bare-expo/ios/Pods/Headers/Private/UMTaskManagerInterface/UMTaskLaunchReason.h new file mode 120000 index 0000000000000..2572bc3e78e18 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/UMTaskManagerInterface/UMTaskLaunchReason.h @@ -0,0 +1 @@ +../../../../../../../packages/unimodules-task-manager-interface/ios/UMTaskManagerInterface/UMTaskLaunchReason.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/UMTaskManagerInterface/UMTaskManagerInterface.h b/apps/bare-expo/ios/Pods/Headers/Private/UMTaskManagerInterface/UMTaskManagerInterface.h new file mode 120000 index 0000000000000..ea52af95d8233 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/UMTaskManagerInterface/UMTaskManagerInterface.h @@ -0,0 +1 @@ +../../../../../../../packages/unimodules-task-manager-interface/ios/UMTaskManagerInterface/UMTaskManagerInterface.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/UMTaskManagerInterface/UMTaskServiceInterface.h b/apps/bare-expo/ios/Pods/Headers/Private/UMTaskManagerInterface/UMTaskServiceInterface.h new file mode 120000 index 0000000000000..083cdd3fb6a64 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/UMTaskManagerInterface/UMTaskServiceInterface.h @@ -0,0 +1 @@ +../../../../../../../packages/unimodules-task-manager-interface/ios/UMTaskManagerInterface/UMTaskServiceInterface.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/react-native-appearance/RNCAppearance.h b/apps/bare-expo/ios/Pods/Headers/Private/react-native-appearance/RNCAppearance.h new file mode 120000 index 0000000000000..c720d54c520eb --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/react-native-appearance/RNCAppearance.h @@ -0,0 +1 @@ +../../../../../node_modules/react-native-appearance/ios/Appearance/RNCAppearance.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/react-native-appearance/RNCAppearanceProvider.h b/apps/bare-expo/ios/Pods/Headers/Private/react-native-appearance/RNCAppearanceProvider.h new file mode 120000 index 0000000000000..e20e9a22c3f8a --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/react-native-appearance/RNCAppearanceProvider.h @@ -0,0 +1 @@ +../../../../../node_modules/react-native-appearance/ios/Appearance/RNCAppearanceProvider.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Private/react-native-appearance/RNCAppearanceProviderManager.h b/apps/bare-expo/ios/Pods/Headers/Private/react-native-appearance/RNCAppearanceProviderManager.h new file mode 120000 index 0000000000000..5e0095d4aae6c --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Private/react-native-appearance/RNCAppearanceProviderManager.h @@ -0,0 +1 @@ +../../../../../node_modules/react-native-appearance/ios/Appearance/RNCAppearanceProviderManager.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/EXApplication/EXProvisioningProfile.h b/apps/bare-expo/ios/Pods/Headers/Public/EXApplication/EXProvisioningProfile.h new file mode 120000 index 0000000000000..c3eebf383f491 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/EXApplication/EXProvisioningProfile.h @@ -0,0 +1 @@ +../../../../../../../packages/expo-application/ios/EXApplication/EXProvisioningProfile.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/EXFacebook/EXFacebook.h b/apps/bare-expo/ios/Pods/Headers/Public/EXFacebook/EXFacebook.h new file mode 120000 index 0000000000000..978195d89d158 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/EXFacebook/EXFacebook.h @@ -0,0 +1 @@ +../../../../../../../packages/expo-facebook/ios/EXFacebook/EXFacebook.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/EXFacebook/EXFacebookAppDelegate.h b/apps/bare-expo/ios/Pods/Headers/Public/EXFacebook/EXFacebookAppDelegate.h new file mode 120000 index 0000000000000..b2de73f0751d6 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/EXFacebook/EXFacebookAppDelegate.h @@ -0,0 +1 @@ +../../../../../../../packages/expo-facebook/ios/EXFacebook/EXFacebookAppDelegate.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/EXLocation/EXGeofencingTaskConsumer.h b/apps/bare-expo/ios/Pods/Headers/Public/EXLocation/EXGeofencingTaskConsumer.h new file mode 120000 index 0000000000000..3ed2933a52718 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/EXLocation/EXGeofencingTaskConsumer.h @@ -0,0 +1 @@ +../../../../../../../packages/expo-location/ios/EXLocation/TaskConsumers/EXGeofencingTaskConsumer.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/EXLocation/EXLocation.h b/apps/bare-expo/ios/Pods/Headers/Public/EXLocation/EXLocation.h new file mode 120000 index 0000000000000..2e55fe45d30d2 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/EXLocation/EXLocation.h @@ -0,0 +1 @@ +../../../../../../../packages/expo-location/ios/EXLocation/EXLocation.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/EXLocation/EXLocationDelegate.h b/apps/bare-expo/ios/Pods/Headers/Public/EXLocation/EXLocationDelegate.h new file mode 120000 index 0000000000000..5d5ca20412177 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/EXLocation/EXLocationDelegate.h @@ -0,0 +1 @@ +../../../../../../../packages/expo-location/ios/EXLocation/EXLocationDelegate.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/EXLocation/EXLocationPermissionRequester.h b/apps/bare-expo/ios/Pods/Headers/Public/EXLocation/EXLocationPermissionRequester.h new file mode 120000 index 0000000000000..23679ef40f413 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/EXLocation/EXLocationPermissionRequester.h @@ -0,0 +1 @@ +../../../../../../../packages/expo-location/ios/EXLocation/EXLocationPermissionRequester.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/EXLocation/EXLocationTaskConsumer.h b/apps/bare-expo/ios/Pods/Headers/Public/EXLocation/EXLocationTaskConsumer.h new file mode 120000 index 0000000000000..c17080650c45b --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/EXLocation/EXLocationTaskConsumer.h @@ -0,0 +1 @@ +../../../../../../../packages/expo-location/ios/EXLocation/TaskConsumers/EXLocationTaskConsumer.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/EXNotifications/EXInstallationIdProvider.h b/apps/bare-expo/ios/Pods/Headers/Public/EXNotifications/EXInstallationIdProvider.h new file mode 120000 index 0000000000000..158b184d07f35 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/EXNotifications/EXInstallationIdProvider.h @@ -0,0 +1 @@ +../../../../../../../packages/expo-notifications/ios/EXNotifications/EXInstallationIdProvider.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/EXNotifications/EXPushTokenListener.h b/apps/bare-expo/ios/Pods/Headers/Public/EXNotifications/EXPushTokenListener.h new file mode 120000 index 0000000000000..7c0c2194e3c25 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/EXNotifications/EXPushTokenListener.h @@ -0,0 +1 @@ +../../../../../../../packages/expo-notifications/ios/EXNotifications/EXPushTokenListener.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/EXNotifications/EXPushTokenManager.h b/apps/bare-expo/ios/Pods/Headers/Public/EXNotifications/EXPushTokenManager.h new file mode 120000 index 0000000000000..e0198dca9bd46 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/EXNotifications/EXPushTokenManager.h @@ -0,0 +1 @@ +../../../../../../../packages/expo-notifications/ios/EXNotifications/EXPushTokenManager.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/EXNotifications/EXPushTokenModule.h b/apps/bare-expo/ios/Pods/Headers/Public/EXNotifications/EXPushTokenModule.h new file mode 120000 index 0000000000000..f9ff266aafc13 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/EXNotifications/EXPushTokenModule.h @@ -0,0 +1 @@ +../../../../../../../packages/expo-notifications/ios/EXNotifications/EXPushTokenModule.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/EXSQLite/EXSQLite.h b/apps/bare-expo/ios/Pods/Headers/Public/EXSQLite/EXSQLite.h index 59bc29035c304..2aba88affadb6 120000 --- a/apps/bare-expo/ios/Pods/Headers/Public/EXSQLite/EXSQLite.h +++ b/apps/bare-expo/ios/Pods/Headers/Public/EXSQLite/EXSQLite.h @@ -1 +1 @@ -../../../../../../../packages/expo-sqlite/ios/EXSQLite/EXSQLite.h \ No newline at end of file +../../../../../../../packages/expo-sqlite/ios/EXSQlite/EXSQLite.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/EXScreenOrientation/EXScreenOrientationModule.h b/apps/bare-expo/ios/Pods/Headers/Public/EXScreenOrientation/EXScreenOrientationModule.h new file mode 120000 index 0000000000000..861ed5320a274 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/EXScreenOrientation/EXScreenOrientationModule.h @@ -0,0 +1 @@ +../../../../../../../packages/expo-screen-orientation/ios/EXScreenOrientation/EXScreenOrientationModule.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/EXScreenOrientation/EXScreenOrientationRegistry.h b/apps/bare-expo/ios/Pods/Headers/Public/EXScreenOrientation/EXScreenOrientationRegistry.h new file mode 120000 index 0000000000000..726992254160f --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/EXScreenOrientation/EXScreenOrientationRegistry.h @@ -0,0 +1 @@ +../../../../../../../packages/expo-screen-orientation/ios/EXScreenOrientation/EXScreenOrientationRegistry.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/EXScreenOrientation/EXScreenOrientationUtilities.h b/apps/bare-expo/ios/Pods/Headers/Public/EXScreenOrientation/EXScreenOrientationUtilities.h new file mode 120000 index 0000000000000..d7a7ed31b4e95 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/EXScreenOrientation/EXScreenOrientationUtilities.h @@ -0,0 +1 @@ +../../../../../../../packages/expo-screen-orientation/ios/EXScreenOrientation/EXScreenOrientationUtilities.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/EXScreenOrientation/EXScreenOrientationViewController.h b/apps/bare-expo/ios/Pods/Headers/Public/EXScreenOrientation/EXScreenOrientationViewController.h new file mode 120000 index 0000000000000..04cfc5c48705d --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/EXScreenOrientation/EXScreenOrientationViewController.h @@ -0,0 +1 @@ +../../../../../../../packages/expo-screen-orientation/ios/EXScreenOrientation/EXScreenOrientationViewController.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKAccessToken.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKAccessToken.h new file mode 120000 index 0000000000000..a5b3f9758d2a7 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKAccessToken.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAccessToken.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKAppEvents.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKAppEvents.h new file mode 120000 index 0000000000000..08573c6da1a6c --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKAppEvents.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppEvents/FBSDKAppEvents.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKAppLink.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKAppLink.h new file mode 120000 index 0000000000000..5682f857db8e0 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKAppLink.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLink.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKAppLinkNavigation.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKAppLinkNavigation.h new file mode 120000 index 0000000000000..b4410d1811a49 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKAppLinkNavigation.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkNavigation.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKAppLinkResolver.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKAppLinkResolver.h new file mode 120000 index 0000000000000..e1c63459ea251 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKAppLinkResolver.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkResolver.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKAppLinkResolving.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKAppLinkResolving.h new file mode 120000 index 0000000000000..e0101524009eb --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKAppLinkResolving.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkResolving.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKAppLinkReturnToRefererController.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKAppLinkReturnToRefererController.h new file mode 120000 index 0000000000000..e4724b4b7211a --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKAppLinkReturnToRefererController.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkReturnToRefererController.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKAppLinkReturnToRefererView.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKAppLinkReturnToRefererView.h new file mode 120000 index 0000000000000..753ad0c008ae1 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKAppLinkReturnToRefererView.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkReturnToRefererView.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKAppLinkTarget.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKAppLinkTarget.h new file mode 120000 index 0000000000000..24e26cbacb295 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKAppLinkTarget.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkTarget.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKAppLinkUtility.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKAppLinkUtility.h new file mode 120000 index 0000000000000..7d5c8bca269ec --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKAppLinkUtility.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKAppLinkUtility.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKApplicationDelegate.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKApplicationDelegate.h new file mode 120000 index 0000000000000..e163dc893343f --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKApplicationDelegate.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKApplicationDelegate.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKButton.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKButton.h new file mode 120000 index 0000000000000..806ec62d0d1cd --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKButton.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKButton.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKConstants.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKConstants.h new file mode 120000 index 0000000000000..4c08cc81355a0 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKConstants.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKConstants.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKCopying.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKCopying.h new file mode 120000 index 0000000000000..aa5dc1f7f0cd2 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKCopying.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKCopying.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKCoreKit.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKCoreKit.h new file mode 120000 index 0000000000000..bfffe4f8a2e26 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKCoreKit.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKGraphErrorRecoveryProcessor.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKGraphErrorRecoveryProcessor.h new file mode 120000 index 0000000000000..6f019f677edfa --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKGraphErrorRecoveryProcessor.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphErrorRecoveryProcessor.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKGraphRequest.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKGraphRequest.h new file mode 120000 index 0000000000000..524cb7791cb9c --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKGraphRequest.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphRequest.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKGraphRequestConnection.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKGraphRequestConnection.h new file mode 120000 index 0000000000000..c6cbbfc3e0db1 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKGraphRequestConnection.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphRequestConnection.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKGraphRequestDataAttachment.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKGraphRequestDataAttachment.h new file mode 120000 index 0000000000000..9960de2829509 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKGraphRequestDataAttachment.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphRequestDataAttachment.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKMeasurementEvent.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKMeasurementEvent.h new file mode 120000 index 0000000000000..67f2e5d84f680 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKMeasurementEvent.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKMeasurementEvent.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKMutableCopying.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKMutableCopying.h new file mode 120000 index 0000000000000..40cf5f182ec92 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKMutableCopying.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKMutableCopying.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKProfile.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKProfile.h new file mode 120000 index 0000000000000..a9866b1d59e4d --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKProfile.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKProfile.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKProfilePictureView.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKProfilePictureView.h new file mode 120000 index 0000000000000..6f38799e4ce3d --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKProfilePictureView.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKProfilePictureView.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKSettings.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKSettings.h new file mode 120000 index 0000000000000..7edc38f3982c2 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKSettings.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKSettings.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKTestUsersManager.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKTestUsersManager.h new file mode 120000 index 0000000000000..5813f898fa149 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKTestUsersManager.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKTestUsersManager.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKURL.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKURL.h new file mode 120000 index 0000000000000..500aabe820aef --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKURL.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKURL.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKUtility.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKUtility.h new file mode 120000 index 0000000000000..efbfaf13b80a2 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKUtility.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKUtility.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKWebViewAppLinkResolver.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKWebViewAppLinkResolver.h new file mode 120000 index 0000000000000..8d5bd3d664942 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKCoreKit/FBSDKWebViewAppLinkResolver.h @@ -0,0 +1 @@ +../../../FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/AppLink/FBSDKWebViewAppLinkResolver.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKLoginKit/FBSDKDeviceLoginCodeInfo.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKLoginKit/FBSDKDeviceLoginCodeInfo.h new file mode 120000 index 0000000000000..13badb875185a --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKLoginKit/FBSDKDeviceLoginCodeInfo.h @@ -0,0 +1 @@ +../../../FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginCodeInfo.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKLoginKit/FBSDKDeviceLoginManager.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKLoginKit/FBSDKDeviceLoginManager.h new file mode 120000 index 0000000000000..810d740af8c24 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKLoginKit/FBSDKDeviceLoginManager.h @@ -0,0 +1 @@ +../../../FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginManager.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKLoginKit/FBSDKDeviceLoginManagerResult.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKLoginKit/FBSDKDeviceLoginManagerResult.h new file mode 120000 index 0000000000000..f38b4a08793e5 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKLoginKit/FBSDKDeviceLoginManagerResult.h @@ -0,0 +1 @@ +../../../FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginManagerResult.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKLoginKit/FBSDKLoginButton.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKLoginKit/FBSDKLoginButton.h new file mode 120000 index 0000000000000..a997deef4308b --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKLoginKit/FBSDKLoginButton.h @@ -0,0 +1 @@ +../../../FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginButton.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKLoginKit/FBSDKLoginConstants.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKLoginKit/FBSDKLoginConstants.h new file mode 120000 index 0000000000000..93a52b76a430a --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKLoginKit/FBSDKLoginConstants.h @@ -0,0 +1 @@ +../../../FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginConstants.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKLoginKit/FBSDKLoginKit.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKLoginKit/FBSDKLoginKit.h new file mode 120000 index 0000000000000..cf4e004c4c61c --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKLoginKit/FBSDKLoginKit.h @@ -0,0 +1 @@ +../../../FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKLoginKit/FBSDKLoginManager.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKLoginKit/FBSDKLoginManager.h new file mode 120000 index 0000000000000..a791506bff722 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKLoginKit/FBSDKLoginManager.h @@ -0,0 +1 @@ +../../../FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginManager.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKLoginKit/FBSDKLoginManagerLoginResult.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKLoginKit/FBSDKLoginManagerLoginResult.h new file mode 120000 index 0000000000000..b8cf2c7cff164 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKLoginKit/FBSDKLoginManagerLoginResult.h @@ -0,0 +1 @@ +../../../FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginManagerLoginResult.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKLoginKit/FBSDKLoginTooltipView.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKLoginKit/FBSDKLoginTooltipView.h new file mode 120000 index 0000000000000..0f25173ee2ff8 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKLoginKit/FBSDKLoginTooltipView.h @@ -0,0 +1 @@ +../../../FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginTooltipView.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/FBSDKLoginKit/FBSDKTooltipView.h b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKLoginKit/FBSDKTooltipView.h new file mode 120000 index 0000000000000..c46a3c3c326bd --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/FBSDKLoginKit/FBSDKTooltipView.h @@ -0,0 +1 @@ +../../../FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKTooltipView.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/UMReactNativeAdapter/UMModuleRegistryHolderReactModule.h b/apps/bare-expo/ios/Pods/Headers/Public/UMReactNativeAdapter/UMModuleRegistryHolderReactModule.h new file mode 120000 index 0000000000000..213b9bd7dd02e --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/UMReactNativeAdapter/UMModuleRegistryHolderReactModule.h @@ -0,0 +1 @@ +../../../../../../../packages/@unimodules/react-native-adapter/ios/UMReactNativeAdapter/UMModuleRegistryAdapter/UMModuleRegistryHolderReactModule.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/UMTaskManagerInterface/UMTaskConsumerInterface.h b/apps/bare-expo/ios/Pods/Headers/Public/UMTaskManagerInterface/UMTaskConsumerInterface.h new file mode 120000 index 0000000000000..b496e6e21a31a --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/UMTaskManagerInterface/UMTaskConsumerInterface.h @@ -0,0 +1 @@ +../../../../../../../packages/unimodules-task-manager-interface/ios/UMTaskManagerInterface/UMTaskConsumerInterface.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/UMTaskManagerInterface/UMTaskInterface.h b/apps/bare-expo/ios/Pods/Headers/Public/UMTaskManagerInterface/UMTaskInterface.h new file mode 120000 index 0000000000000..8b38e8ffb6828 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/UMTaskManagerInterface/UMTaskInterface.h @@ -0,0 +1 @@ +../../../../../../../packages/unimodules-task-manager-interface/ios/UMTaskManagerInterface/UMTaskInterface.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/UMTaskManagerInterface/UMTaskLaunchReason.h b/apps/bare-expo/ios/Pods/Headers/Public/UMTaskManagerInterface/UMTaskLaunchReason.h new file mode 120000 index 0000000000000..2572bc3e78e18 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/UMTaskManagerInterface/UMTaskLaunchReason.h @@ -0,0 +1 @@ +../../../../../../../packages/unimodules-task-manager-interface/ios/UMTaskManagerInterface/UMTaskLaunchReason.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/UMTaskManagerInterface/UMTaskManagerInterface.h b/apps/bare-expo/ios/Pods/Headers/Public/UMTaskManagerInterface/UMTaskManagerInterface.h new file mode 120000 index 0000000000000..ea52af95d8233 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/UMTaskManagerInterface/UMTaskManagerInterface.h @@ -0,0 +1 @@ +../../../../../../../packages/unimodules-task-manager-interface/ios/UMTaskManagerInterface/UMTaskManagerInterface.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/UMTaskManagerInterface/UMTaskServiceInterface.h b/apps/bare-expo/ios/Pods/Headers/Public/UMTaskManagerInterface/UMTaskServiceInterface.h new file mode 120000 index 0000000000000..083cdd3fb6a64 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/UMTaskManagerInterface/UMTaskServiceInterface.h @@ -0,0 +1 @@ +../../../../../../../packages/unimodules-task-manager-interface/ios/UMTaskManagerInterface/UMTaskServiceInterface.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/react-native-appearance/RNCAppearance.h b/apps/bare-expo/ios/Pods/Headers/Public/react-native-appearance/RNCAppearance.h new file mode 120000 index 0000000000000..c720d54c520eb --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/react-native-appearance/RNCAppearance.h @@ -0,0 +1 @@ +../../../../../node_modules/react-native-appearance/ios/Appearance/RNCAppearance.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/react-native-appearance/RNCAppearanceProvider.h b/apps/bare-expo/ios/Pods/Headers/Public/react-native-appearance/RNCAppearanceProvider.h new file mode 120000 index 0000000000000..e20e9a22c3f8a --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/react-native-appearance/RNCAppearanceProvider.h @@ -0,0 +1 @@ +../../../../../node_modules/react-native-appearance/ios/Appearance/RNCAppearanceProvider.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Headers/Public/react-native-appearance/RNCAppearanceProviderManager.h b/apps/bare-expo/ios/Pods/Headers/Public/react-native-appearance/RNCAppearanceProviderManager.h new file mode 120000 index 0000000000000..5e0095d4aae6c --- /dev/null +++ b/apps/bare-expo/ios/Pods/Headers/Public/react-native-appearance/RNCAppearanceProviderManager.h @@ -0,0 +1 @@ +../../../../../node_modules/react-native-appearance/ios/Appearance/RNCAppearanceProviderManager.h \ No newline at end of file diff --git a/apps/bare-expo/ios/Pods/Local Podspecs/EXFacebook.podspec.json b/apps/bare-expo/ios/Pods/Local Podspecs/EXFacebook.podspec.json new file mode 100644 index 0000000000000..e2cc9a4d4013d --- /dev/null +++ b/apps/bare-expo/ios/Pods/Local Podspecs/EXFacebook.podspec.json @@ -0,0 +1,32 @@ +{ + "name": "EXFacebook", + "version": "8.0.0", + "summary": "Expo universal module for Facebook SDK", + "description": "Expo universal module for Facebook SDK", + "license": "MIT", + "authors": "650 Industries, Inc.", + "homepage": "https://docs.expo.io/versions/latest/sdk/facebook/", + "platforms": { + "ios": "10.0" + }, + "source": { + "git": "https://github.com/expo/expo.git" + }, + "source_files": "EXFacebook/**/*.{h,m}", + "preserve_paths": "EXFacebook/**/*.{h,m}", + "requires_arc": true, + "dependencies": { + "UMCore": [ + + ], + "UMConstantsInterface": [ + + ], + "FBSDKCoreKit": [ + "~> 5.8.0" + ], + "FBSDKLoginKit": [ + "~> 5.8.0" + ] + } +} diff --git a/apps/bare-expo/ios/Pods/Local Podspecs/EXLocation.podspec.json b/apps/bare-expo/ios/Pods/Local Podspecs/EXLocation.podspec.json new file mode 100644 index 0000000000000..902afea579fd9 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Local Podspecs/EXLocation.podspec.json @@ -0,0 +1,29 @@ +{ + "name": "EXLocation", + "version": "8.0.0", + "summary": "Allows reading geolocation information from the device. Your app can poll for the current location or subscribe to location update events.", + "description": "Allows reading geolocation information from the device. Your app can poll for the current location or subscribe to location update events.", + "license": "MIT", + "authors": "650 Industries, Inc.", + "homepage": "https://docs.expo.io/versions/latest/sdk/location/", + "platforms": { + "ios": "10.0" + }, + "source": { + "git": "https://github.com/expo/expo.git" + }, + "source_files": "EXLocation/**/*.{h,m}", + "preserve_paths": "EXLocation/**/*.{h,m}", + "requires_arc": true, + "dependencies": { + "UMCore": [ + + ], + "UMPermissionsInterface": [ + + ], + "UMTaskManagerInterface": [ + + ] + } +} diff --git a/apps/bare-expo/ios/Pods/Local Podspecs/EXNotifications.podspec.json b/apps/bare-expo/ios/Pods/Local Podspecs/EXNotifications.podspec.json new file mode 100644 index 0000000000000..5d8e9b07c1eb3 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Local Podspecs/EXNotifications.podspec.json @@ -0,0 +1,23 @@ +{ + "name": "EXNotifications", + "version": "1.0.0", + "summary": "Notifications module", + "description": "Notifications module", + "license": "MIT", + "authors": "650 Industries, Inc.", + "homepage": "https://github.com/expo/expo/tree/master/packages/expo-notifications", + "platforms": { + "ios": "10.0" + }, + "source": { + "git": "https://github.com/expo/expo.git" + }, + "source_files": "EXNotifications/**/*.{h,m}", + "preserve_paths": "EXNotifications/**/*.{h,m}", + "requires_arc": true, + "dependencies": { + "UMCore": [ + + ] + } +} diff --git a/apps/bare-expo/ios/Pods/Local Podspecs/EXScreenOrientation.podspec.json b/apps/bare-expo/ios/Pods/Local Podspecs/EXScreenOrientation.podspec.json new file mode 100644 index 0000000000000..3b80c1a9897a1 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Local Podspecs/EXScreenOrientation.podspec.json @@ -0,0 +1,26 @@ +{ + "name": "EXScreenOrientation", + "version": "1.0.0", + "summary": "Expo universal module for managing device's screen orientation", + "description": "Expo universal module for managing device's screen orientation", + "license": "MIT", + "authors": "650 Industries, Inc.", + "homepage": "https://github.com/expo/expo/tree/master/packages/expo-screen-orientation", + "platforms": { + "ios": "10.0" + }, + "source": { + "git": "https://github.com/expo/expo.git" + }, + "source_files": "EXScreenOrientation/**/*.{h,m}", + "preserve_paths": "EXScreenOrientation/**/*.{h,m}", + "requires_arc": true, + "dependencies": { + "UMCore": [ + + ], + "React-Core": [ + + ] + } +} diff --git a/apps/bare-expo/ios/Pods/Local Podspecs/UMTaskManagerInterface.podspec.json b/apps/bare-expo/ios/Pods/Local Podspecs/UMTaskManagerInterface.podspec.json new file mode 100644 index 0000000000000..eab57f920d293 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Local Podspecs/UMTaskManagerInterface.podspec.json @@ -0,0 +1,18 @@ +{ + "name": "UMTaskManagerInterface", + "version": "5.0.0", + "summary": "Universal module interface package for TaskManager", + "description": "Universal module interface package for TaskManager", + "license": "MIT", + "authors": "650 Industries, Inc.", + "homepage": "https://github.com/expo/expo/tree/master/packages/unimodules-task-manager-interface", + "platforms": { + "ios": "10.0" + }, + "source": { + "git": "https://github.com/expo/expo.git" + }, + "source_files": "UMTaskManagerInterface/**/*.{h,m}", + "preserve_paths": "UMTaskManagerInterface/**/*.{h,m}", + "requires_arc": true +} diff --git a/apps/bare-expo/ios/Pods/Local Podspecs/react-native-appearance.podspec.json b/apps/bare-expo/ios/Pods/Local Podspecs/react-native-appearance.podspec.json new file mode 100644 index 0000000000000..9b849dfc28d80 --- /dev/null +++ b/apps/bare-expo/ios/Pods/Local Podspecs/react-native-appearance.podspec.json @@ -0,0 +1,22 @@ +{ + "name": "react-native-appearance", + "version": "0.3.2", + "summary": "Polyfill for `Appearance` API which will be available in `react-native@0.62`.", + "license": "MIT", + "authors": "Brent Vatne ", + "homepage": "https://github.com/expo/react-native-appearance#readme", + "platforms": { + "ios": "9.0", + "tvos": "9.2" + }, + "source": { + "git": "https://github.com/expo/react-native-appearance.git", + "tag": "v0.3.2" + }, + "source_files": "ios/**/*.{h,m}", + "dependencies": { + "React": [ + + ] + } +} diff --git a/apps/bare-expo/ios/Pods/Manifest.lock b/apps/bare-expo/ios/Pods/Manifest.lock index 0d01c33e419cb..4ae667708c6c9 100644 --- a/apps/bare-expo/ios/Pods/Manifest.lock +++ b/apps/bare-expo/ios/Pods/Manifest.lock @@ -58,6 +58,11 @@ PODS: - UMFileSystemInterface - EXErrorRecovery (1.0.0): - UMCore + - EXFacebook (8.0.0): + - FBSDKCoreKit (~> 5.8.0) + - FBSDKLoginKit (~> 5.8.0) + - UMConstantsInterface + - UMCore - EXFileSystem (8.0.0): - UMCore - UMFileSystemInterface @@ -94,6 +99,10 @@ PODS: - UMCore - EXLocalization (8.0.0): - UMCore + - EXLocation (8.0.0): + - UMCore + - UMPermissionsInterface + - UMTaskManagerInterface - EXMailComposer (8.0.0): - UMCore - UMFileSystemInterface @@ -102,6 +111,8 @@ PODS: - UMPermissionsInterface - EXNetwork (2.0.0): - UMCore + - EXNotifications (1.0.0): + - UMCore - EXPermissions (8.0.0): - UMCore - UMPermissionsInterface @@ -110,6 +121,9 @@ PODS: - UMFileSystemInterface - EXRandom (8.0.0): - UMCore + - EXScreenOrientation (1.0.0): + - React-Core + - UMCore - EXSecureStore (8.0.0): - UMCore - EXSegment (8.0.0): @@ -144,6 +158,16 @@ PODS: - React-Core (= 0.61.4) - React-jsi (= 0.61.4) - ReactCommon/turbomodule/core (= 0.61.4) + - FBSDKCoreKit (5.8.0): + - FBSDKCoreKit/Basics (= 5.8.0) + - FBSDKCoreKit/Core (= 5.8.0) + - FBSDKCoreKit/Basics (5.8.0) + - FBSDKCoreKit/Core (5.8.0): + - FBSDKCoreKit/Basics + - FBSDKLoginKit (5.8.0): + - FBSDKLoginKit/Login (= 5.8.0) + - FBSDKLoginKit/Login (5.8.0): + - FBSDKCoreKit (~> 5.0) - Folly (2018.10.22.00): - boost-for-react-native - DoubleConversion @@ -329,6 +353,8 @@ PODS: - React-cxxreact (= 0.61.4) - React-jsi (= 0.61.4) - React-jsinspector (0.61.4) + - react-native-appearance (0.3.2): + - React - react-native-safe-area-context (0.6.0): - React - React-RCTActionSheet (0.61.4): @@ -384,6 +410,7 @@ PODS: - UMCore - UMFontInterface - UMSensorsInterface (5.0.0) + - UMTaskManagerInterface (5.0.0) - Yoga (1.14.0) - ZXingObjC/Core (3.6.5) - ZXingObjC/OneD (3.6.5): @@ -411,6 +438,7 @@ DEPENDENCIES: - EXDevice (from `../../../packages/expo-device/ios`) - EXDocumentPicker (from `../../../packages/expo-document-picker/ios`) - EXErrorRecovery (from `../../../packages/expo-error-recovery/ios`) + - EXFacebook (from `../../../packages/expo-facebook/ios`) - EXFileSystem (from `../../../packages/expo-file-system/ios`) - EXFont (from `../../../packages/expo-font/ios`) - EXGL (from `../../../packages/expo-gl/ios`) @@ -423,12 +451,15 @@ DEPENDENCIES: - EXLinearGradient (from `../../../packages/expo-linear-gradient/ios`) - EXLocalAuthentication (from `../../../packages/expo-local-authentication/ios`) - EXLocalization (from `../../../packages/expo-localization/ios`) + - EXLocation (from `../../../packages/expo-location/ios`) - EXMailComposer (from `../../../packages/expo-mail-composer/ios`) - EXMediaLibrary (from `../../../packages/expo-media-library/ios`) - EXNetwork (from `../../../packages/expo-network/ios`) + - EXNotifications (from `../../../packages/expo-notifications/ios`) - EXPermissions (from `../../../packages/expo-permissions/ios`) - EXPrint (from `../../../packages/expo-print/ios`) - EXRandom (from `../../../packages/expo-random/ios`) + - EXScreenOrientation (from `../../../packages/expo-screen-orientation/ios`) - EXSecureStore (from `../../../packages/expo-secure-store/ios`) - EXSegment (from `../../../packages/expo-analytics-segment/ios`) - EXSensors (from `../../../packages/expo-sensors/ios`) @@ -454,6 +485,7 @@ DEPENDENCIES: - React-jsi (from `../../../react-native-lab/react-native/ReactCommon/jsi`) - React-jsiexecutor (from `../../../react-native-lab/react-native/ReactCommon/jsiexecutor`) - React-jsinspector (from `../../../react-native-lab/react-native/ReactCommon/jsinspector`) + - react-native-appearance (from `../node_modules/react-native-appearance`) - react-native-safe-area-context (from `../../../node_modules/react-native-safe-area-context`) - React-RCTActionSheet (from `../../../react-native-lab/react-native/Libraries/ActionSheetIOS`) - React-RCTAnimation (from `../../../react-native-lab/react-native/Libraries/NativeAnimation`) @@ -478,6 +510,7 @@ DEPENDENCIES: - UMPermissionsInterface (from `../../../packages/unimodules-permissions-interface/ios`) - "UMReactNativeAdapter (from `../../../packages/@unimodules/react-native-adapter/ios`)" - UMSensorsInterface (from `../../../packages/unimodules-sensors-interface/ios`) + - UMTaskManagerInterface (from `../../../packages/unimodules-task-manager-interface/ios`) - Yoga (from `../../../react-native-lab/react-native/ReactCommon/yoga`) SPEC REPOS: @@ -486,6 +519,8 @@ SPEC REPOS: - Analytics - AppAuth - boost-for-react-native + - FBSDKCoreKit + - FBSDKLoginKit - GoogleSignIn - GTMAppAuth - GTMSessionFetcher @@ -548,6 +583,9 @@ EXTERNAL SOURCES: EXErrorRecovery: :path: !ruby/object:Pathname path: "../../../packages/expo-error-recovery/ios" + EXFacebook: + :path: !ruby/object:Pathname + path: "../../../packages/expo-facebook/ios" EXFileSystem: :path: !ruby/object:Pathname path: "../../../packages/expo-file-system/ios" @@ -584,6 +622,9 @@ EXTERNAL SOURCES: EXLocalization: :path: !ruby/object:Pathname path: "../../../packages/expo-localization/ios" + EXLocation: + :path: !ruby/object:Pathname + path: "../../../packages/expo-location/ios" EXMailComposer: :path: !ruby/object:Pathname path: "../../../packages/expo-mail-composer/ios" @@ -593,6 +634,9 @@ EXTERNAL SOURCES: EXNetwork: :path: !ruby/object:Pathname path: "../../../packages/expo-network/ios" + EXNotifications: + :path: !ruby/object:Pathname + path: "../../../packages/expo-notifications/ios" EXPermissions: :path: !ruby/object:Pathname path: "../../../packages/expo-permissions/ios" @@ -602,6 +646,9 @@ EXTERNAL SOURCES: EXRandom: :path: !ruby/object:Pathname path: "../../../packages/expo-random/ios" + EXScreenOrientation: + :path: !ruby/object:Pathname + path: "../../../packages/expo-screen-orientation/ios" EXSecureStore: :path: !ruby/object:Pathname path: "../../../packages/expo-secure-store/ios" @@ -658,6 +705,8 @@ EXTERNAL SOURCES: :path: "../../../react-native-lab/react-native/ReactCommon/jsiexecutor" React-jsinspector: :path: "../../../react-native-lab/react-native/ReactCommon/jsinspector" + react-native-appearance: + :path: "../node_modules/react-native-appearance" react-native-safe-area-context: :path: "../../../node_modules/react-native-safe-area-context" React-RCTActionSheet: @@ -714,6 +763,9 @@ EXTERNAL SOURCES: UMSensorsInterface: :path: !ruby/object:Pathname path: "../../../packages/unimodules-sensors-interface/ios" + UMTaskManagerInterface: + :path: !ruby/object:Pathname + path: "../../../packages/unimodules-task-manager-interface/ios" Yoga: :path: "../../../react-native-lab/react-native/ReactCommon/yoga" @@ -741,6 +793,7 @@ SPEC CHECKSUMS: EXDevice: 106e1250d41a41f7f32f7ec3678aaf755733e8cc EXDocumentPicker: 25d232d804087bd6fe88a74d7e582b295e5e69dd EXErrorRecovery: d36db99ec6a3808f313f01b0890eb443796dd1c2 + EXFacebook: c10f77ea97b3003c29b4f0a49942acc1ba8330b5 EXFileSystem: 6e0d9bb6cc4ea404dbb8f583c1a8a2dcdf4b83b6 EXFont: 6187b5ab46ee578d5f8e7f2ea092752e78772235 EXGL: 3add8ba2c89377285f57cda493d4bc50939b5300 @@ -753,12 +806,15 @@ SPEC CHECKSUMS: EXLinearGradient: 75f302f9d6484267a3f6d3252df2e7a5f00e716a EXLocalAuthentication: a6a7ca4285c2440a697f356cb529bf5ca2b83edd EXLocalization: 6a3ec1e9dda2ec9ba9dcc4a29dd840e5e950115e + EXLocation: 3c75d012ca92eed94d4338778d79c49d1252393a EXMailComposer: b9be58adaabb860fc8b722204ce27b33c7da5aad EXMediaLibrary: 9281707de8f95cc391d242b614f493ab781030fa EXNetwork: a52f713ced4b05a2634eb88a1f1f8678fcb8b69c + EXNotifications: d654494e84df90927cca410ebac178c61553647b EXPermissions: 9bc08859a675d291e89be9a0870155c27c16ac35 EXPrint: b20aef0e774d96e0ea6688b97d9e0c1d268b95ae EXRandom: 3a6f6dce1997a40a7fc3bb00d18eabc380c51c2e + EXScreenOrientation: 44d3cd3a99a86b9cb681e742697bc2c057d7fbd2 EXSecureStore: 1448b90d665c9400aaaf6655fccb464da14698f6 EXSegment: d1f9b468c14c70b8dacad0730bb9dffaf2452010 EXSensors: 3f89e58576f6fd2d529b9f64eb98fd325e60fdb8 @@ -771,6 +827,8 @@ SPEC CHECKSUMS: EXWebBrowser: db32607359fb7b55b7b7b91df32dd3d8355bb3b7 FBLazyVector: feb35a6b7f7b50f367be07f34012f34a79282fa3 FBReactNativeSpec: 51477b84b1bf7ab6f9ef307c24e3dd675391be44 + FBSDKCoreKit: e7dcac0aabcfb09d0166998edd95fe3b05a0ce5d + FBSDKLoginKit: 1b0cf04df0370b37404213157b060d6666ede814 Folly: 30e7936e1c45c08d884aa59369ed951a8e68cf51 glog: 1f3da668190260b06b429bb211bfbee5cd790c28 GoogleSignIn: 7137d297ddc022a7e0aa4619c86d72c909fa7213 @@ -785,6 +843,7 @@ SPEC CHECKSUMS: React-jsi: ca921f4041505f9d5197139b2d09eeb020bb12e8 React-jsiexecutor: 8dfb73b987afa9324e4009bdce62a18ce23d983c React-jsinspector: d15478d0a8ada19864aa4d1cc1c697b41b3fa92f + react-native-appearance: c2e0666225d999f7f0e7d9a9cb6c627c6e4c4b92 react-native-safe-area-context: d288138da2c800caa111f9352e9333f186a06ead React-RCTActionSheet: 7369b7c85f99b6299491333affd9f01f5a130c22 React-RCTAnimation: d07be15b2bd1d06d89417eb0343f98ffd2b099a7 @@ -808,9 +867,10 @@ SPEC CHECKSUMS: UMPermissionsInterface: 0f68a2e35b8951a03fa087e54f33bb2691bbf981 UMReactNativeAdapter: 230406e3335a8dbd4c9c0e654488a1cf3b44552f UMSensorsInterface: d708a892ef1500bdd9fc3ff03f7836c66d1634d3 + UMTaskManagerInterface: a98e37a576a5220bf43b8faf33cfdc129d2f441d Yoga: ba3d99dbee6c15ea6bbe3783d1f0cb1ffb79af0f ZXingObjC: fdbb269f25dd2032da343e06f10224d62f537bdb -PODFILE CHECKSUM: f8c0544004c7ca9ffcae29a1b9efb91846964d98 +PODFILE CHECKSUM: f9b310a7da0a72b720dd3e0eaf31394e24c3f736 COCOAPODS: 1.8.4 diff --git a/apps/bare-expo/ios/Pods/Pods.xcodeproj/project.pbxproj b/apps/bare-expo/ios/Pods/Pods.xcodeproj/project.pbxproj index 0e6e0c3508918..dc92a9b59430b 100644 --- a/apps/bare-expo/ios/Pods/Pods.xcodeproj/project.pbxproj +++ b/apps/bare-expo/ios/Pods/Pods.xcodeproj/project.pbxproj @@ -7,255 +7,262 @@ objects = { /* Begin PBXBuildFile section */ - 27B74A7EF0716B4AF7ECCB2F8E04A0B3 /* Pods-BareExpo-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = D090CDB16B158897ECDA29AE3E2FDBF6 /* Pods-BareExpo-dummy.m */; }; + D048043286EE00D80F5297069A388385 /* Pods-BareExpo-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = D090CDB16B158897ECDA29AE3E2FDBF6 /* Pods-BareExpo-dummy.m */; }; E89FBD11BA5BD749E1F14E71BC829335 /* Pods-BareExpoTests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 8465E2FC705BE47B5397BF4A39C8AC18 /* Pods-BareExpoTests-dummy.m */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ - 01523E2DE8178E06D1C82D6E3664203C /* PBXContainerItemProxy */ = { + 0405F4A097AD35FB0E3CB4FEB83D4BBF /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 0143F693E54C76D9CEC9B89D39EA738C /* React-jsinspector.xcodeproj */; + containerPortal = F21461EEAA0C3C495E5F5ABCB5C8E4DD /* React-RCTActionSheet.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 1AC0EAF3E808B6AA276E43B30A5B20AA; - remoteInfo = "React-jsinspector"; + remoteGlobalIDString = 2B622CBAFD85AC413ED6306FD8B71B00; + remoteInfo = "React-RCTActionSheet"; }; - 0353DEE60CB234F82C58A10CDC031E88 /* PBXContainerItemProxy */ = { + 0636EC48634AD7EEA714CE84C5A038D4 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = A1A9EF9126D232C7848495ED0D34FC82 /* UMFileSystemInterface.xcodeproj */; + containerPortal = AB54402287E17E9EF7094C62F7CE4741 /* EXCrypto.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 1C326487F8F888A9111422C7014319AC; - remoteInfo = UMFileSystemInterface; + remoteGlobalIDString = 7313EAFC3221A55173D00B5135657D25; + remoteInfo = EXCrypto; }; - 04D4A9C49B1150F6E441E4B21B87FE46 /* PBXContainerItemProxy */ = { + 0B9BDFD168CF2EC2E311A06D9A5EA1E9 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 093F33B91AB6CCF24EC5B44C2168D6B7 /* RNReanimated.xcodeproj */; + containerPortal = D3F5ECCAD8206B378D462C5E7C18391B /* UMCore.xcodeproj */; proxyType = 1; - remoteGlobalIDString = E9E22639328ACC061EB56756AD5B4F57; - remoteInfo = RNReanimated; + remoteGlobalIDString = 153171642F5C5CBC05FD3EF6B23A3F36; + remoteInfo = UMCore; }; - 05B0119097CB972CC8342F1A43F98833 /* PBXContainerItemProxy */ = { + 0C7B40ACA2EEFA4606D4931C7AAD066C /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = A14282E7B246C428EDC564624DBDD9BF /* UMBarCodeScannerInterface.xcodeproj */; + containerPortal = 0B3C4BF30FEC3C6FC0AD89B0BA54A280 /* React-cxxreact.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 971E60E1AF9163E7E08105622FC91C16; - remoteInfo = UMBarCodeScannerInterface; + remoteGlobalIDString = BD509719D4F0C3D8910F2BED0B6AB5F3; + remoteInfo = "React-cxxreact"; }; - 07AE4300B905F05CED560E1C5437466E /* PBXContainerItemProxy */ = { + 0D706EB615F256682B276EAB5B2E3450 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 04AF6CFC908ABC897934A123721DCDC8 /* React-RCTImage.xcodeproj */; + containerPortal = DB366ABF5B902BF910F0E243558A6613 /* EXAmplitude.xcodeproj */; proxyType = 1; - remoteGlobalIDString = C78CA5C5EDDCCF5EC637E0FC8BB4C96E; - remoteInfo = "React-RCTImage"; + remoteGlobalIDString = 700BA3D76A8C4362E721FECC92A96DFB; + remoteInfo = EXAmplitude; }; - 0D95C376406A62ADA46606B0D3771DE2 /* PBXContainerItemProxy */ = { + 10F18AB37FADB68068F29FF8020265E8 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 66E0036061F06985A735F972DA873D82 /* EXCalendar.xcodeproj */; + containerPortal = BA75409AF01E132DF73A84DC58ED9CBC /* React-RCTAnimation.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 0F2988851D689F1E41CFC89C31422758; - remoteInfo = EXCalendar; + remoteGlobalIDString = 8FD0C9BFE0E509D0066C67C06EE170B5; + remoteInfo = "React-RCTAnimation"; }; - 0DE728E47B2336653C2DCDC120B4DBEF /* PBXContainerItemProxy */ = { + 161B6A8FB28E113D0EBCF5E10E1A7D68 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = ED50116F92CAB9F1E06FE905363CE060 /* EXPermissions.xcodeproj */; + containerPortal = E557148B1E43DC418D43AC23E1DF3514 /* boost-for-react-native.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 488F0C19AB92FC4B503EB55CC688FCF5; - remoteInfo = EXPermissions; + remoteGlobalIDString = AA4CE39926C0C12D02F874C1C48A5710; + remoteInfo = "boost-for-react-native"; }; - 0E638FE83654AAA0102A8CC346914D53 /* PBXContainerItemProxy */ = { + 18E0CC09A55A0E056B48D5BEE7C10083 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = A528590EDEA69FCB74BFA09B141B4DBF /* EXGL.xcodeproj */; + containerPortal = A49BB27B31CA7D03A4FBE761AFED7196 /* EXBattery.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 78CC35D6F49ACC0F72F0095F78EFDCE7; - remoteInfo = EXGL; + remoteGlobalIDString = 5941E7B2BA388644B9A594045D22DE1D; + remoteInfo = EXBattery; }; - 0FAD10CD5AEBC9229D69C5193AA1996D /* PBXContainerItemProxy */ = { + 1959B8BC235410AC26DF249F5F6D9D17 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 228AECF796357BD0C17A0250B493CF46 /* RNGestureHandler.xcodeproj */; + containerPortal = BC76BA7251BF9D0F4AC530C6C6BC6EB4 /* EXAppAuth.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 0356CDCA5DB6D4F4B4F5991088D05580; - remoteInfo = RNGestureHandler; + remoteGlobalIDString = 5FB7695B45E2F2A9171D3B6C97B3A1A2; + remoteInfo = EXAppAuth; }; - 10F882494F1E53F051D53F1647C0F700 /* PBXContainerItemProxy */ = { + 198F71514262CDA1F44D741EE6F9D52D /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 9946A17BD11A68F7A944498FD73C8413 /* ZXingObjC.xcodeproj */; + containerPortal = 1AE3BB5F5D54D22FE5BA862EA879D388 /* FBSDKLoginKit.xcodeproj */; proxyType = 1; - remoteGlobalIDString = F1A98E99C5291C55C29C32D889990685; - remoteInfo = ZXingObjC; + remoteGlobalIDString = 99D9EFC28DE380315427F305282258E8; + remoteInfo = FBSDKLoginKit; }; - 138B551B7760FEF12E9588FB05659D94 /* PBXContainerItemProxy */ = { + 1E7A8B66419C2C0C80720A2E1923D17D /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 559D179071A592B620836CC4F14A9F63 /* EXBlur.xcodeproj */; + containerPortal = 41B3187CF83226A4ED2FFF90BD5D7C7A /* EXMailComposer.xcodeproj */; proxyType = 1; - remoteGlobalIDString = D08BCCD5DE12C8EFB6429B9126525E9F; - remoteInfo = EXBlur; + remoteGlobalIDString = 2E02530F5AAAD2AC2A43FE2B8AC3E99C; + remoteInfo = EXMailComposer; }; - 179551060FF9EA6024A9C9F7CEF0B4BA /* PBXContainerItemProxy */ = { + 1F4E7C6C5A37CF7CBC15630F47C8F7D8 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = FC694360F93EB50AF01BD9AD3DDF6F63 /* React-RCTLinking.xcodeproj */; + containerPortal = 6DB368A4FFC55518E43CFCA8665E3B97 /* DoubleConversion.xcodeproj */; proxyType = 1; - remoteGlobalIDString = FF1621D1C3F9AF33EDD2BF51FEDEB3D8; - remoteInfo = "React-RCTLinking"; + remoteGlobalIDString = 725D0E8C1060F8939288E8C91236BA4F; + remoteInfo = DoubleConversion; }; - 1CD7699E779B7207306C3A18AE7958E9 /* PBXContainerItemProxy */ = { + 23804B41C307E4E5CFFC4374F20F1A63 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 5F89074EFF9BBFF30A654696E06822C7 /* EXImageManipulator.xcodeproj */; + containerPortal = 0AD7853A1837E7DEFB2A83A67031830E /* EXBlur.xcodeproj */; proxyType = 1; - remoteGlobalIDString = C3AA7C99B7CAD2FC22B8AA8928D7DF6F; - remoteInfo = EXImageManipulator; + remoteGlobalIDString = D08BCCD5DE12C8EFB6429B9126525E9F; + remoteInfo = EXBlur; }; - 1E3E312EFD96A12407172E96E9390F77 /* PBXContainerItemProxy */ = { + 2B4719B86E1A1E3F338E1E103367BD7E /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = EF2B74AE23B4D085A4D41634852D9E79 /* EXSecureStore.xcodeproj */; + containerPortal = 028510FBDD07C426362702FB25BC2674 /* EXImageManipulator.xcodeproj */; proxyType = 1; - remoteGlobalIDString = C4DBAA5ED98E7A037D09674FF42AF66F; - remoteInfo = EXSecureStore; + remoteGlobalIDString = C3AA7C99B7CAD2FC22B8AA8928D7DF6F; + remoteInfo = EXImageManipulator; }; - 2310E33AFE5DCF99B3982C7E4D4D7BDD /* PBXContainerItemProxy */ = { + 2FAF6386ED9ACD175E6ADD0442D3D0F3 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 89B3742C40E8B4801826442347325BBF /* EXLocalization.xcodeproj */; + containerPortal = 548C6D1EAF5FD5B8277E902EF8D8C809 /* UMCameraInterface.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 55C7C51CE4B49B971674C896CB1DC301; - remoteInfo = EXLocalization; + remoteGlobalIDString = 86372E925D4E10D72894E239CC18BCD9; + remoteInfo = UMCameraInterface; }; - 275C89C48B89E482C6C0A093E8672536 /* PBXContainerItemProxy */ = { + 30CE0F50F4676E343CCA6632A4BC9B72 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 0F87C4C729C750646FF9170E107841D0 /* EXConstants.xcodeproj */; + containerPortal = 57272EBFE157E7147B45FEC7E933AAA4 /* EXCalendar.xcodeproj */; proxyType = 1; - remoteGlobalIDString = F3E96ACB94E2361FA9D83BE599DEC427; - remoteInfo = EXConstants; + remoteGlobalIDString = 0F2988851D689F1E41CFC89C31422758; + remoteInfo = EXCalendar; }; - 284686AE181AFB3CF7D3966FEBB9063D /* PBXContainerItemProxy */ = { + 311DD4BB7621CD3B74D5B0C74483323B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 2AFEBA4AE1BF044913C3A1F0ABCD7BEF /* React-RCTVibration.xcodeproj */; + containerPortal = E87922AC96E27C352892DEA347CAE306 /* EXNotifications.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 502D208480A94D02F62BB739D7512657; - remoteInfo = "React-RCTVibration"; + remoteGlobalIDString = 6C660F81CE4F0EC96D208B20C3E8B154; + remoteInfo = EXNotifications; }; - 2F6A828F617177C24C91AFE67336840B /* PBXContainerItemProxy */ = { + 317995DF52A9038396E6E44CCD69D58C /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 58F5BF4DBAF85B453DD79DA82B862E0A /* EXHaptics.xcodeproj */; + containerPortal = 17748CB38D03D6B562F3D28D2A82F507 /* EXHaptics.xcodeproj */; proxyType = 1; remoteGlobalIDString = 458E4E0DEA9D752CC28F1A42E4B306AC; remoteInfo = EXHaptics; }; - 326C844A787822153322EEB5212C6F27 /* PBXContainerItemProxy */ = { + 3354CF739CCC3A491FC177A058DB061A /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = D5E45FC61A6D2D7E3F46F8A281EA7F64 /* UMReactNativeAdapter.xcodeproj */; + containerPortal = D3007822DD388D7AED61CCE40DB8299E /* React-Core.xcodeproj */; proxyType = 1; - remoteGlobalIDString = E0F5743D6C158230DA447A63190DF2E9; - remoteInfo = UMReactNativeAdapter; + remoteGlobalIDString = 5DA1A74647F652AE8E4DE074AFC4C6B7; + remoteInfo = "React-Core"; }; - 35855868F9E27821A58D859456185065 /* PBXContainerItemProxy */ = { + 3465CC1ED2A6D4179FA84C63F206B6C9 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 7C6CEDFBCA521989947F5B019C76054A /* React-RCTActionSheet.xcodeproj */; + containerPortal = F63E8AE401F9E57594E89C81CBCD2CD2 /* EXSharing.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 2B622CBAFD85AC413ED6306FD8B71B00; - remoteInfo = "React-RCTActionSheet"; + remoteGlobalIDString = 1458926EF4B0A3DF1C40B5639E7358B1; + remoteInfo = EXSharing; }; - 39B15604EA16A09A49DA569249C7AA83 /* PBXContainerItemProxy */ = { + 38011E038AE4C6EDEE880D49689F793A /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = B1BC6698202B367C7B3129780457D544 /* EXGL_CPP.xcodeproj */; + containerPortal = 52DFD8647635F87F245438504749FCC1 /* React-RCTImage.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 4C66693C554B15E2593FB1F665F8BA01; - remoteInfo = EXGL_CPP; + remoteGlobalIDString = C78CA5C5EDDCCF5EC637E0FC8BB4C96E; + remoteInfo = "React-RCTImage"; }; - 3B6AAB8218C95833AC4ECBF0FCFC644F /* PBXContainerItemProxy */ = { + 392FF9B21FAECF798982D7FBF522D284 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = EC64490903CB102FA5D88F9FD8D4873B /* DoubleConversion.xcodeproj */; + containerPortal = B36E9FAACA53792605F96452B673FC3E /* Folly.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 725D0E8C1060F8939288E8C91236BA4F; - remoteInfo = DoubleConversion; + remoteGlobalIDString = 14BB2B7275726942E762F076FA966088; + remoteInfo = Folly; }; - 3C1A537234950AB8ECD1F34B075F0F28 /* PBXContainerItemProxy */ = { + 3A29C2A5F40E206CEF3A4F11D2F68914 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 6FF66503720CEADA5339CA295727D2E6 /* EXBattery.xcodeproj */; + containerPortal = E350957341019D55FC8A5CE6740447BA /* EXBarCodeScanner.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 5941E7B2BA388644B9A594045D22DE1D; - remoteInfo = EXBattery; + remoteGlobalIDString = E6D544E86F973F511B82FE486E5E25CD; + remoteInfo = EXBarCodeScanner; }; - 3E4F5A1B13CBDC95AFB48D68224FBDEA /* PBXContainerItemProxy */ = { + 3D2FAC233B6F77DCEEA59C35FE5F3365 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = EC8B540ED755EDCB2AE686784D3AF479 /* EXApplication.xcodeproj */; + containerPortal = EDF220DEEEA89FFB81258DD0765708BA /* EXFacebook.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 2C391225329DE46C6566ED1ADF52F10D; - remoteInfo = EXApplication; + remoteGlobalIDString = FEAA3FBA5C5225363EE9E6D0B5B3183B; + remoteInfo = EXFacebook; }; - 415E5BEBE0E75178ADED5451DEB88B6F /* PBXContainerItemProxy */ = { + 3EAB4BE4C7AD61A73315C23DBC6DF9FE /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 8DD091FE677FB13DC171D90C021CA7DE /* GTMAppAuth.xcodeproj */; + containerPortal = 63AFE2321630B64E239BD4FE06EE565A /* React-RCTText.xcodeproj */; proxyType = 1; - remoteGlobalIDString = AFFE62B58843E7D325544E4D760E8920; - remoteInfo = GTMAppAuth; + remoteGlobalIDString = F0809BF90AC70C40646AB597C21CC420; + remoteInfo = "React-RCTText"; }; - 431AF7D2922ED0E18BFF9D7C0FA1633D /* PBXContainerItemProxy */ = { + 4649A782136CF799AAF74D18722F4CA6 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 4B81D9E849F7B0FF699CF47FC7F2EC7B /* React-Core.xcodeproj */; + containerPortal = A24AB511B9A02D0046526CA99BE62D6F /* glog.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 5DA1A74647F652AE8E4DE074AFC4C6B7; - remoteInfo = "React-Core"; + remoteGlobalIDString = 86F597DC3D8F3D7A34EC5A5C413F7255; + remoteInfo = glog; }; - 4D5B404E23A828F7AA99BBBA54EFDA9B /* PBXContainerItemProxy */ = { + 4BC70053FB27F78AB142A3E72D93A65C /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 06A760ACB1990444FA093A6D7A8AC2EB /* boost-for-react-native.xcodeproj */; + containerPortal = 919DD36C8037C87460660033FA1FB459 /* EXWebBrowser.xcodeproj */; proxyType = 1; - remoteGlobalIDString = AA4CE39926C0C12D02F874C1C48A5710; - remoteInfo = "boost-for-react-native"; + remoteGlobalIDString = 026359A12CA511AF12897ED05A83462C; + remoteInfo = EXWebBrowser; }; - 4FE18B2D19C547E0FF873FCE071D4A0D /* PBXContainerItemProxy */ = { + 4D7DF0398EBD86D3CB4E5A53292AB6DA /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = B2F742EBD46D881CC735F4D4A4260119 /* Folly.xcodeproj */; + containerPortal = 49BCB2310E7F2764FA35F2ADBF28C1C1 /* React-jsinspector.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 14BB2B7275726942E762F076FA966088; - remoteInfo = Folly; + remoteGlobalIDString = 1AC0EAF3E808B6AA276E43B30A5B20AA; + remoteInfo = "React-jsinspector"; }; - 54275ED60E349E7388A578FD6CAC77C9 /* PBXContainerItemProxy */ = { + 4E465CF19C25051DDB02E75F8C745B51 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 0CCA7AB54711A1C565D9146E86AF6FE5 /* EXSegment.xcodeproj */; + containerPortal = F0C77BD27BDF7E594F43AF05F5743624 /* React-RCTNetwork.xcodeproj */; proxyType = 1; - remoteGlobalIDString = D65C18BEC619DFEA9C73805518539F66; - remoteInfo = EXSegment; + remoteGlobalIDString = B42CC4F102742853C37E7C4841756DBE; + remoteInfo = "React-RCTNetwork"; }; - 5C9524D6AB93120FF7D58A9461D45112 /* PBXContainerItemProxy */ = { + 53B52122207D6F791546434EE9DFB1CF /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 6F2506A46EAB2A974A4A198BF26B5D11 /* UMCore.xcodeproj */; + containerPortal = 367FC219882F58106454F6164D9101B8 /* EXImagePicker.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 153171642F5C5CBC05FD3EF6B23A3F36; - remoteInfo = UMCore; + remoteGlobalIDString = 9ACF1D2895E366F44F904503F65171CD; + remoteInfo = EXImagePicker; }; - 603B6A8FFFCAC287D8B39746D674B792 /* PBXContainerItemProxy */ = { + 57E34B84ED152831EEF9E3F2F781FE0E /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 00D632F97A746F8FBEE5FD654C95A5D4 /* EXBrightness.xcodeproj */; + containerPortal = C477AB069BA7A2B5E7743ABE2C1DE32C /* EXSpeech.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 4AA3EE5BEEB58B2975A12819B1C58D97; - remoteInfo = EXBrightness; + remoteGlobalIDString = AC043527FC46D59E5210AD9D49B847FC; + remoteInfo = EXSpeech; + }; + 5941CB0BE9FFDAD7557B271428D4E0E8 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 9B246F48CB5A122EA4B98F3484607064 /* GTMSessionFetcher.xcodeproj */; + proxyType = 1; + remoteGlobalIDString = BD7A8A3BC22FD28DCB40568BE43D7C70; + remoteInfo = GTMSessionFetcher; }; - 64A6C9CE2FB3DF3B12C572FCB9448BD0 /* PBXContainerItemProxy */ = { + 59A20CF6E51B8B54046DCC7E7667E91D /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 86F0EA4A0FCDB3FC734AE64574A90EBC /* react-native-safe-area-context.xcodeproj */; + containerPortal = 1844B8F791B232FD2413D0CBEDAD6639 /* react-native-safe-area-context.xcodeproj */; proxyType = 1; remoteGlobalIDString = 6FF729CB9CEA59FDDF1BA16AEB2B98D6; remoteInfo = "react-native-safe-area-context"; }; - 65CCF35240ECB03F58B9E1E002B5E477 /* PBXContainerItemProxy */ = { + 5ED2D62D2C4191691450A5D9B8ECEA77 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 7572990AACADFEEFE5EF8AF3A2415FD0 /* FBReactNativeSpec.xcodeproj */; + containerPortal = B87936B6D1D745F50282902ACB4D9B64 /* EXGL.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 5CDFFFDA1BEA16A0D3629FE9F761022A; - remoteInfo = FBReactNativeSpec; + remoteGlobalIDString = 78CC35D6F49ACC0F72F0095F78EFDCE7; + remoteInfo = EXGL; }; - 67D78E6479226F565CE530FAD81A8B39 /* PBXContainerItemProxy */ = { + 63FD6C901D4D8D4A73ABBE42FE75FA8F /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 6790273ACF64FACB6F6C790F7465109B /* Amplitude-iOS.xcodeproj */; + containerPortal = B888E1CADEF1F453D8C2C1EC7D3F7022 /* ZXingObjC.xcodeproj */; proxyType = 1; - remoteGlobalIDString = E9F5188151EE37F157A617BBBC3DB105; - remoteInfo = "Amplitude-iOS"; + remoteGlobalIDString = F1A98E99C5291C55C29C32D889990685; + remoteInfo = ZXingObjC; }; - 6D82ECC6C79E6BD8C4D55A0CF63A4D21 /* PBXContainerItemProxy */ = { + 6B8B11932675B5547BEC09710436D074 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = D7D345E8C3BC6E50CBED042829BBF090 /* EXSensors.xcodeproj */; + containerPortal = BFCBB5E4C373A5CB4C868188E865FBEE /* React-RCTBlob.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 5F5B88A2576A073FBDD91B02A10308F1; - remoteInfo = EXSensors; + remoteGlobalIDString = D8D59AAB809693DB02967107370F4619; + remoteInfo = "React-RCTBlob"; }; 70227CF8F6B2D08A40EC88165F2BAEE8 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; @@ -264,514 +271,571 @@ remoteGlobalIDString = C616BB9F650D110E835D02A3250F302E; remoteInfo = "Pods-BareExpo"; }; - 72CCD3670C80EA569EAE6696701FE495 /* PBXContainerItemProxy */ = { + 70CEAA0E5E48CCBEBCA674C9EC33DD90 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = C4691EC6027337FE88F7B6C142C79DA9 /* EXLinearGradient.xcodeproj */; + containerPortal = 562926705A6BA55DDDA865D33DB80786 /* UMPermissionsInterface.xcodeproj */; proxyType = 1; - remoteGlobalIDString = AF5113FDFEF2ECEBDD58149C34DD4634; - remoteInfo = EXLinearGradient; + remoteGlobalIDString = 12FF61416C5E794E9DEAC78D381D9726; + remoteInfo = UMPermissionsInterface; }; - 747EAA46A036A88E6C075D7CAC73D253 /* PBXContainerItemProxy */ = { + 71DD81E87F8726C11B57AE5353EFD2B6 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 3A6F2FEF94FB5051D0E15E0E75E061CE /* EXCellular.xcodeproj */; + containerPortal = F8F6A765C08BE001FFEC291FFD0B7B1B /* EXStoreReview.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 0F0F7D35F4DD6BA6A33589D3CB5759F3; - remoteInfo = EXCellular; + remoteGlobalIDString = F2C74458D282DA74DB95F8A7FE6A5207; + remoteInfo = EXStoreReview; }; - 748CA12AEE04BEF5A766A071E198A2F3 /* PBXContainerItemProxy */ = { + 72E9FEC79A7A854CF4362E1F993D1DD1 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 9B3C09E1B51BE5C72B1178721DFB4736 /* EXSQLite.xcodeproj */; + containerPortal = 8DC9BB30D810BD7F63004B47671D9422 /* EXDocumentPicker.xcodeproj */; proxyType = 1; - remoteGlobalIDString = B8358C45B103287E90F710967785DD34; - remoteInfo = EXSQLite; + remoteGlobalIDString = 40300EFA08DDB78C6AFF84A0F118E9CD; + remoteInfo = EXDocumentPicker; }; - 7EF30E0E4FFCDBEEAF279262F6874A60 /* PBXContainerItemProxy */ = { + 7D1C46E9948C3789258CE3CAA340AC9D /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 621E66BDF9658FBAEB7835F073CC1D58 /* EXAV.xcodeproj */; + containerPortal = 744C586F992BC73441F3A007EC7F5B54 /* React.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 657B3E0E8F77DB91FA182432EC404FBF; - remoteInfo = EXAV; + remoteGlobalIDString = 94DA87F24FB4B93E5D08FE961D5E5A3E; + remoteInfo = React; }; - 7FC8F2D1B333FC5EADC4FBA1AB7EBFB5 /* PBXContainerItemProxy */ = { + 7DD266D754E1A0A5BD1D80951C814FB6 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 50C4358AD398837056C0C6E564E5FB45 /* RCTRequired.xcodeproj */; + containerPortal = 4793AC95ED7338DB1E580A372EE83163 /* EXBrightness.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 7B4E6DC12B1D694845842E9A06C59213; - remoteInfo = RCTRequired; + remoteGlobalIDString = 4AA3EE5BEEB58B2975A12819B1C58D97; + remoteInfo = EXBrightness; }; - 834482237C0D29D3B0A986E0108F44E8 /* PBXContainerItemProxy */ = { + 7DFCF6CF8BA093B9B3173171F9CD2696 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 469C509D4699E1DC0DF43F06F3A21FD4 /* EXMailComposer.xcodeproj */; + containerPortal = 6A8F8A38A6EBB1A85C712C7CD94DF7E6 /* EXSMS.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 2E02530F5AAAD2AC2A43FE2B8AC3E99C; - remoteInfo = EXMailComposer; + remoteGlobalIDString = 1309E054CB75DA99E029D5D2C8C2210E; + remoteInfo = EXSMS; }; - 838268DE1B4CA8F37523351A20B732E7 /* PBXContainerItemProxy */ = { + 7E8F78161CE2C954B22D11621E6B22CA /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = AF0568DC623CE5D3D2E159457E57B21F /* EXMediaLibrary.xcodeproj */; + containerPortal = EBCDB3CAC82A6BD5D6ED8064031208DC /* EXFont.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 422CF65902B3ABF0E6A47527F9209CC8; - remoteInfo = EXMediaLibrary; + remoteGlobalIDString = 0A4A001679E384FB337FF08C5D081399; + remoteInfo = EXFont; }; - 84CBD0CEF3538AC641BB40C36876BD81 /* PBXContainerItemProxy */ = { + 812364E6BE60DF4694A42CF77D200DC6 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = C099422E2DC2875E807A665C97BCC571 /* FBLazyVector.xcodeproj */; + containerPortal = 2F6B8ED7FC0DB094DAFC937E963B53AB /* RNReanimated.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 4B95F1280DBD545D036916608691C3EF; - remoteInfo = FBLazyVector; + remoteGlobalIDString = E9E22639328ACC061EB56756AD5B4F57; + remoteInfo = RNReanimated; }; - 865D575A281702845E263A55EB18538C /* PBXContainerItemProxy */ = { + 852AD89941AC9B5D8F9DE7EF1F79149F /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = A3F4A301606C753818F89B954CBABFFA /* React-CoreModules.xcodeproj */; + containerPortal = 7EF954789AD4972DE673DC049A4FBDD5 /* UMSensorsInterface.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 42F070932EC272C376353459CE0FA76E; - remoteInfo = "React-CoreModules"; + remoteGlobalIDString = 1FDCE556B997E87DAB0DA2727CC69285; + remoteInfo = UMSensorsInterface; + }; + 864168CF18FB995F50937019F5010AF7 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 532AE8FE83F221B01D364A40D203536B /* EXBluetooth.xcodeproj */; + proxyType = 1; + remoteGlobalIDString = 85E4ABA3FE5052C9FD39179D7166A9C1; + remoteInfo = EXBluetooth; }; - 8A898395EFE24E3518D6ACE4807A4410 /* PBXContainerItemProxy */ = { + 875BE56EE11E925787740970EAA9A46A /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 3561DE58B3DAAE4AA0D0BC1C630862FA /* Analytics.xcodeproj */; + containerPortal = F73C3980F192C17101FEF5D1587028C0 /* Yoga.xcodeproj */; + proxyType = 1; + remoteGlobalIDString = 8DB658880A3F558549A84D99BCFADCBC; + remoteInfo = Yoga; + }; + 894478C4C1E3CA045DA003F5C2A7B012 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = E9806A9518AD19378AACBF3FADC024BE /* Analytics.xcodeproj */; proxyType = 1; remoteGlobalIDString = 428EE321470913F61A7C253ACF3B4D53; remoteInfo = Analytics; }; - 8B6BE6262BA49516FE8E6F4D75224DD0 /* PBXContainerItemProxy */ = { + 8957DF83A65ECAAB163645E7E269360E /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = D1D370A1C813FC6C49069D6F265F56E3 /* EXErrorRecovery.xcodeproj */; + containerPortal = 4C38EADABC71E8FCD0D0C21208E66AB0 /* React-RCTVibration.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 49603BA4A7FB1CFC9ACD589B8CE05EA2; - remoteInfo = EXErrorRecovery; + remoteGlobalIDString = 502D208480A94D02F62BB739D7512657; + remoteInfo = "React-RCTVibration"; }; - 8E0663814249A4ADFF8E7A4A5345A03A /* PBXContainerItemProxy */ = { + 89D42D2DF9380EC3946BD8422943EC97 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 1CA025FC93211998774902CC4663DD61 /* EXSharing.xcodeproj */; + containerPortal = 32287FE8909EA559B87F0BE031EFEEB4 /* EXAV.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 1458926EF4B0A3DF1C40B5639E7358B1; - remoteInfo = EXSharing; + remoteGlobalIDString = 657B3E0E8F77DB91FA182432EC404FBF; + remoteInfo = EXAV; }; - 9AF5A7B953E92F6D2EFF76EFFDE4DE59 /* PBXContainerItemProxy */ = { + 8E2C7704A837CB9B4E7E2C822F306B3C /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 1EC4C5F6778FD0728D36B94A40185D7A /* EXFileSystem.xcodeproj */; + containerPortal = 29D9BFF3BABAD6B60F9CB521F210EC7F /* EXGoogleSignIn.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 5232535845650ADAE59870B722468D8A; - remoteInfo = EXFileSystem; + remoteGlobalIDString = 1EBA7C3FD4A2348A1EFF618E12286F06; + remoteInfo = EXGoogleSignIn; }; - 9B46D48EFD5EF68D89130936A94F0CD3 /* PBXContainerItemProxy */ = { + 8FA4950B28EF64B8AED329717B484BD0 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 8C472FA03A74CA155968F8B7216E490A /* EXSpeech.xcodeproj */; + containerPortal = D7BCD95D57E91980DABACBEE33C53F5B /* React-RCTSettings.xcodeproj */; proxyType = 1; - remoteGlobalIDString = AC043527FC46D59E5210AD9D49B847FC; - remoteInfo = EXSpeech; + remoteGlobalIDString = 02DD1E05F06C403A8300ABEFC2C29A3D; + remoteInfo = "React-RCTSettings"; }; - 9B902F5A4F54D64F86DDBD98FFC44F69 /* PBXContainerItemProxy */ = { + 92263B6A97F5E1F1313CC5184B1B3F9B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 5C7101C48EADF48A3F01ADAD195A0608 /* EXStoreReview.xcodeproj */; + containerPortal = FCD0969E970831AB2E575CA402CE2295 /* EXConstants.xcodeproj */; proxyType = 1; - remoteGlobalIDString = F2C74458D282DA74DB95F8A7FE6A5207; - remoteInfo = EXStoreReview; + remoteGlobalIDString = F3E96ACB94E2361FA9D83BE599DEC427; + remoteInfo = EXConstants; }; - 9BDC84B84E26F07933C0332937E97893 /* PBXContainerItemProxy */ = { + 967F44EE70D330B334B6F48578C8F895 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 59558382C9C14CEDEC8ECC99462044AC /* EXSMS.xcodeproj */; + containerPortal = CB2292AB35A47A791F831F4AF225CA7B /* EXLocalAuthentication.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 1309E054CB75DA99E029D5D2C8C2210E; - remoteInfo = EXSMS; + remoteGlobalIDString = 8D12244750972C21D688A2875A0E77F4; + remoteInfo = EXLocalAuthentication; }; - 9C3E3E2A9F7E24D3111FB14B5EE4B00D /* PBXContainerItemProxy */ = { + 9814739743EA7CA501F80996E03EE5CC /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 384191FF16B8310DB2CA32CE12714F26 /* EXAppAuth.xcodeproj */; + containerPortal = F3317B6E00903DEF65B688E84EA04AA3 /* FBSDKCoreKit.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 5FB7695B45E2F2A9171D3B6C97B3A1A2; - remoteInfo = EXAppAuth; + remoteGlobalIDString = 322040CF2C7D2642650A8BFCDB4B2AD3; + remoteInfo = FBSDKCoreKit; }; - A2F13C125416EB21F8FAEE2465DAC2AB /* PBXContainerItemProxy */ = { + 98C48C2657833A2BFC05A889AD600622 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = A9333E5CD08216B9D4D56A43F8AFFB5B /* EXDevice.xcodeproj */; + containerPortal = 6F823C3D3609BA3F73C6914A93204198 /* UMFileSystemInterface.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 61CE878EC16A63D023F23DA6C1B824B9; - remoteInfo = EXDevice; + remoteGlobalIDString = 1C326487F8F888A9111422C7014319AC; + remoteInfo = UMFileSystemInterface; }; - A4861781D8FFCA47636C2B2572BBA817 /* PBXContainerItemProxy */ = { + 9E943B91A5C4BD793CA5D1AB978F440D /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 10773CD4E5B8A755D9E0D42FC649AEB4 /* UMFontInterface.xcodeproj */; + containerPortal = AB9308B145B0EE20F1CFB2FA33BBFA43 /* EXUpdates.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 7F4112A673122B6D50845D9BC1D9AFDB; - remoteInfo = UMFontInterface; + remoteGlobalIDString = 076FF2640FFF3466FB36FD12A629113A; + remoteInfo = EXUpdates; }; - A58BD843AD668DFD173903AEB86893D7 /* PBXContainerItemProxy */ = { + 9F2924F480D585729064F794DF86E3BE /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 6FA7CD78D631158BDBE6D2A9C4FC19FB /* AppAuth.xcodeproj */; + containerPortal = 58F2945BC762DFE6B0E3C29C45A3BF26 /* EXCellular.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 4EFA7E4CE531453CF475A9A4322A84F8; - remoteInfo = AppAuth; + remoteGlobalIDString = 0F0F7D35F4DD6BA6A33589D3CB5759F3; + remoteInfo = EXCellular; }; - A75B4DE316B3C94CC37B4A662123569C /* PBXContainerItemProxy */ = { + A00263DC5A8C3323E9CCB49428A86F40 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = E3C83D9BB0BF020DE9E3EA402FF40418 /* EXDocumentPicker.xcodeproj */; + containerPortal = A9F0EA02112C1410759ED7B18E4ED178 /* React-CoreModules.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 40300EFA08DDB78C6AFF84A0F118E9CD; - remoteInfo = EXDocumentPicker; + remoteGlobalIDString = 42F070932EC272C376353459CE0FA76E; + remoteInfo = "React-CoreModules"; }; - A8B0AE310D7DFFEE773B7F31A8FC8DC7 /* PBXContainerItemProxy */ = { + A7F8EF954470074CB2F507941F391170 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = B16FF31EB7B2D5E60E6685477B72EBC5 /* EXFont.xcodeproj */; + containerPortal = 9B0D84DCC3675059EE1DEE290D414797 /* EXSensors.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 0A4A001679E384FB337FF08C5D081399; - remoteInfo = EXFont; + remoteGlobalIDString = 5F5B88A2576A073FBDD91B02A10308F1; + remoteInfo = EXSensors; }; - A8F91F7C4377813388AE4D2DDB3F6CA4 /* PBXContainerItemProxy */ = { + AE9943A1ECA6F38E0B3481F19601420B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = D58517F1F49DD7F710C941D73B419B5C /* EXAppLoaderProvider.xcodeproj */; + containerPortal = A5BCFF2FECB3E9CA53558264705551DC /* EXFileSystem.xcodeproj */; proxyType = 1; - remoteGlobalIDString = BCF55F45F804FC2D6BC57983597F3174; - remoteInfo = EXAppLoaderProvider; + remoteGlobalIDString = 5232535845650ADAE59870B722468D8A; + remoteInfo = EXFileSystem; }; - AD6B10B33B18CA4A347E896D47BF322A /* PBXContainerItemProxy */ = { + AF4A6F785917A952B919137547AF1A50 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = AFBF976B0EF04C9912E08179B68D2308 /* EXBarCodeScanner.xcodeproj */; + containerPortal = B35A2DD969540A4FBA8FC5E3E3711FF4 /* EXLocalization.xcodeproj */; proxyType = 1; - remoteGlobalIDString = E6D544E86F973F511B82FE486E5E25CD; - remoteInfo = EXBarCodeScanner; + remoteGlobalIDString = 55C7C51CE4B49B971674C896CB1DC301; + remoteInfo = EXLocalization; }; - B060D0AFB1E0CC3F9EFAB39BBB472BDE /* PBXContainerItemProxy */ = { + B29741066BF24BB7A47AC5014BE40D9A /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = A90F97E439A7BC54338B0DC132FB389F /* EXLocalAuthentication.xcodeproj */; + containerPortal = DE3635F59551385C3D96318A8453154F /* EXContacts.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 8D12244750972C21D688A2875A0E77F4; - remoteInfo = EXLocalAuthentication; + remoteGlobalIDString = B22EE26A55A92797A576C80A1202EFFD; + remoteInfo = EXContacts; }; - B142D18C098B8F928A3B28E83EE06A70 /* PBXContainerItemProxy */ = { + B2E7D5548490AD1EB535CC78D544B8E2 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 081775E5E1E22CD733CEC31DEC05391D /* EXImagePicker.xcodeproj */; + containerPortal = 734E35010F312DA866258F281144DDBB /* EXSegment.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 9ACF1D2895E366F44F904503F65171CD; - remoteInfo = EXImagePicker; + remoteGlobalIDString = D65C18BEC619DFEA9C73805518539F66; + remoteInfo = EXSegment; }; - B302FD2BB02B0AAD96BDC1C6DB19E566 /* PBXContainerItemProxy */ = { + B3829100D9CE5D56B03664973C0EE009 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = D06CF6E8B5CE7D5A760E443475289B14 /* UMImageLoaderInterface.xcodeproj */; + containerPortal = F3D5998B4E1333078B0389FCF02CF059 /* React-jsiexecutor.xcodeproj */; proxyType = 1; - remoteGlobalIDString = A734124238F83C1FEE81C0FEDC5CDC5C; - remoteInfo = UMImageLoaderInterface; + remoteGlobalIDString = 7F7693C84AD2D676CE4E5741F508C198; + remoteInfo = "React-jsiexecutor"; }; - B3B22FDA90847B607B6AB701065D65BE /* PBXContainerItemProxy */ = { + B52CE4E6630F9A111EE76EA1060E4A30 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 24C2C1248498064540A1A0795384B075 /* UMConstantsInterface.xcodeproj */; + containerPortal = 648B703B3FEA1D4E5B5392848855AD59 /* Amplitude-iOS.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 46F82E84687582F366B907E2BD5F1EA2; - remoteInfo = UMConstantsInterface; + remoteGlobalIDString = E9F5188151EE37F157A617BBBC3DB105; + remoteInfo = "Amplitude-iOS"; }; - B3DFA936118F40EC72787C517C5197ED /* PBXContainerItemProxy */ = { + B9FF8E317C8E3D088ED170690CE9E6B2 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 93A314050AEE5C54490FF76731532B5D /* React-RCTAnimation.xcodeproj */; + containerPortal = 806AE481AAC63041B1E0C53928347CFC /* FBReactNativeSpec.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 8FD0C9BFE0E509D0066C67C06EE170B5; - remoteInfo = "React-RCTAnimation"; + remoteGlobalIDString = 5CDFFFDA1BEA16A0D3629FE9F761022A; + remoteInfo = FBReactNativeSpec; }; - B4151C4687EFC1E5E85C4622E62BABAA /* PBXContainerItemProxy */ = { + C0018AC451953D6A97955CF80F42689B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = BAD136761E20C0CF271C8994F81BE4E8 /* UMCameraInterface.xcodeproj */; + containerPortal = 7F3635F8E3A6C8C12E4FB32A57B791C3 /* EXNetwork.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 86372E925D4E10D72894E239CC18BCD9; - remoteInfo = UMCameraInterface; + remoteGlobalIDString = 71F2A4AC24C8FBC0E24B6A613BB4F7BC; + remoteInfo = EXNetwork; }; - B621C005B2348C73A36A9F050EF3AAEC /* PBXContainerItemProxy */ = { + C215AD0483EFE1BB2F13F87EAF845620 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 9F278CA3578A1C7C742F5C39E58E8626 /* EXRandom.xcodeproj */; + containerPortal = 25B48C2B48A70691DB4ED0F658074A71 /* UMReactNativeAdapter.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 00EB4A6BB9778AFFF7F587D732973596; - remoteInfo = EXRandom; + remoteGlobalIDString = E0F5743D6C158230DA447A63190DF2E9; + remoteInfo = UMReactNativeAdapter; }; - BA9CC7508F551A390E71FA7366A4BB7B /* PBXContainerItemProxy */ = { + C53E508788BE65F7D2626D9B63515E12 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 1FBDB8F24C5539045D8AE87F927FB3EE /* EXWebBrowser.xcodeproj */; + containerPortal = 5D1A3E7921F16C6998A178F14203488E /* ReactCommon.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 026359A12CA511AF12897ED05A83462C; - remoteInfo = EXWebBrowser; + remoteGlobalIDString = 2610D146B211EB79FECF83D4FA5AB36D; + remoteInfo = ReactCommon; }; - BAD1DF73985CE89817BFA6C0543F3D03 /* PBXContainerItemProxy */ = { + C8172F35AE6ECD42DF515C181EA28B3B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 3E8F53A4E4A9F6D8E7270A1D59C0414A /* EXCrypto.xcodeproj */; + containerPortal = AB72FC453FC8FCDB65215C6A29B623C5 /* RCTTypeSafety.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 7313EAFC3221A55173D00B5135657D25; - remoteInfo = EXCrypto; + remoteGlobalIDString = 9C3601DE72183D42B9DC3FF333D35CF7; + remoteInfo = RCTTypeSafety; }; - BC28539A09791D00B0BBE33A1BFCC04F /* PBXContainerItemProxy */ = { + CD0AA33D4223E0BFB8A70EDF6CD8924E /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = BB09D5AC4BEBC2617D9D95C54475FA09 /* React.xcodeproj */; + containerPortal = 3A69AFA61F9AE2B6C390463C2D849D49 /* EXPrint.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 94DA87F24FB4B93E5D08FE961D5E5A3E; - remoteInfo = React; + remoteGlobalIDString = FEAB4A1E3F5EAA6EBAE612E8CBDD2612; + remoteInfo = EXPrint; }; - BC8167D94C315BAC5226405FC6608AA7 /* PBXContainerItemProxy */ = { + CE8BE7266599EE209B6BDDB2EA99080F /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 21907930CDED304581AE9F8EF737DFC3 /* glog.xcodeproj */; + containerPortal = 1ABA2F9DB27EEB127D2B44F77D80E9FA /* EXScreenOrientation.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 86F597DC3D8F3D7A34EC5A5C413F7255; - remoteInfo = glog; + remoteGlobalIDString = AA651E1AC215FDCE87E218058A342349; + remoteInfo = EXScreenOrientation; }; - BF01986E6376555F8A81956D27CEE244 /* PBXContainerItemProxy */ = { + CEF29764949491E2E78E73D20DF088B5 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 73E1515109725296D25100C06DA91793 /* RCTTypeSafety.xcodeproj */; + containerPortal = 5076B2C7CB15FDFF5CEEF8B98579FA9C /* UMImageLoaderInterface.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 9C3601DE72183D42B9DC3FF333D35CF7; - remoteInfo = RCTTypeSafety; + remoteGlobalIDString = A734124238F83C1FEE81C0FEDC5CDC5C; + remoteInfo = UMImageLoaderInterface; }; - C0D1C19DEA5D365061FF4508B4800EF2 /* PBXContainerItemProxy */ = { + CEFF7083374F05AB22AE8C4E42DB549F /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = F6C89811BEB495795C6F1B805FCF9133 /* GTMSessionFetcher.xcodeproj */; + containerPortal = 6A129792F6AC6F39A30276DFB1012FB8 /* EXLocation.xcodeproj */; proxyType = 1; - remoteGlobalIDString = BD7A8A3BC22FD28DCB40568BE43D7C70; - remoteInfo = GTMSessionFetcher; + remoteGlobalIDString = 9448EAC8D0286D37F065B24667BFBB8F; + remoteInfo = EXLocation; }; - C58FA3752529C35AD98AF55942791482 /* PBXContainerItemProxy */ = { + D11ED4DA8F2D334EB104CB81C3FD1C00 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = B95E106A906DA6BC3B1AE32B1476EC96 /* React-RCTText.xcodeproj */; + containerPortal = 96404DAFB39B904B65654D85BD8668CF /* GoogleSignIn.xcodeproj */; proxyType = 1; - remoteGlobalIDString = F0809BF90AC70C40646AB597C21CC420; - remoteInfo = "React-RCTText"; + remoteGlobalIDString = 70D52585A9FA4EEA343010638ADABC11; + remoteInfo = GoogleSignIn; }; - C6775EA6E67262174AE3F8EB9BC04527 /* PBXContainerItemProxy */ = { + D35407826CC833DAFA20F3624B65DF43 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 53B70B73EBA72F4DB54EFB1201B958D9 /* React-RCTBlob.xcodeproj */; + containerPortal = 15879A6E5BC166609C93EAE4B9D555B8 /* UMTaskManagerInterface.xcodeproj */; proxyType = 1; - remoteGlobalIDString = D8D59AAB809693DB02967107370F4619; - remoteInfo = "React-RCTBlob"; + remoteGlobalIDString = A565C99DEFBAFA44A1B5C3B49ADD8A84; + remoteInfo = UMTaskManagerInterface; }; - C793E8E284B01FE1C42765785C913284 /* PBXContainerItemProxy */ = { + D4A62F625EA68CC4AFD77F70C7D638DF /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = C2EA603A6A2597676F274428E05872B9 /* React-jsiexecutor.xcodeproj */; + containerPortal = 9151F4F90118DE4FA6415049E28F4FC0 /* React-RCTLinking.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 7F7693C84AD2D676CE4E5741F508C198; - remoteInfo = "React-jsiexecutor"; + remoteGlobalIDString = FF1621D1C3F9AF33EDD2BF51FEDEB3D8; + remoteInfo = "React-RCTLinking"; }; - C7B8E4638B3FEEE41A30B79BCD5A66A2 /* PBXContainerItemProxy */ = { + D91DEC5036E9F24F961DDA411BB4057B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 11A32ED6BFC7435B83A74B68227CF672 /* ReactCommon.xcodeproj */; + containerPortal = F9BF3E822E62BA2DA6B80F67A08EAE7E /* EXAppLoaderProvider.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 2610D146B211EB79FECF83D4FA5AB36D; - remoteInfo = ReactCommon; + remoteGlobalIDString = BCF55F45F804FC2D6BC57983597F3174; + remoteInfo = EXAppLoaderProvider; }; - D1E465D8EE4E1BB41A4F686819B41C3F /* PBXContainerItemProxy */ = { + DA5D9F8732B9F4954876C84F06BD6E7E /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 5C0692C4DCE5A6E01C6809F60A6FBB6E /* React-cxxreact.xcodeproj */; + containerPortal = 8D1C0347009A019C73B760A63553A050 /* EXSecureStore.xcodeproj */; proxyType = 1; - remoteGlobalIDString = BD509719D4F0C3D8910F2BED0B6AB5F3; - remoteInfo = "React-cxxreact"; + remoteGlobalIDString = C4DBAA5ED98E7A037D09674FF42AF66F; + remoteInfo = EXSecureStore; }; - D7FFDD3F5095036FF7AF5F5D29EFB1BE /* PBXContainerItemProxy */ = { + DE153422E8A853A19780B063001475B9 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 966D82943A84614F0D90E09EED82FC4A /* EXAmplitude.xcodeproj */; + containerPortal = 880745B0BF2869013DCF6F5272A6C282 /* UMBarCodeScannerInterface.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 700BA3D76A8C4362E721FECC92A96DFB; - remoteInfo = EXAmplitude; + remoteGlobalIDString = 971E60E1AF9163E7E08105622FC91C16; + remoteInfo = UMBarCodeScannerInterface; }; - DC0A99BF800318FF2591A3C3BF67AA2A /* PBXContainerItemProxy */ = { + E0A40B96AF1D9CFA4D1C5ACE15965333 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 068283BA3523101E0BA7F90CEB90A6A1 /* Yoga.xcodeproj */; + containerPortal = B8562EDFEFFC0A2AA052540A9735F72F /* react-native-appearance.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 8DB658880A3F558549A84D99BCFADCBC; - remoteInfo = Yoga; + remoteGlobalIDString = A6256F4276AA88FDEAAA83D3F4FEBA89; + remoteInfo = "react-native-appearance"; }; - DDFE0FA34D9552D9D2E63BB7DDC37FB3 /* PBXContainerItemProxy */ = { + E21B19D1EECD587DFE8C27902E323A8F /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 7673391655AE15ABB96812EE718E18B3 /* EXBluetooth.xcodeproj */; + containerPortal = D40E30349907EB2CAC16D5413DD38F88 /* GTMAppAuth.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 85E4ABA3FE5052C9FD39179D7166A9C1; - remoteInfo = EXBluetooth; + remoteGlobalIDString = AFFE62B58843E7D325544E4D760E8920; + remoteInfo = GTMAppAuth; }; - DF4AEE3244EB84A881866AE1F00F702A /* PBXContainerItemProxy */ = { + E2C8C8B30636D68E2E1660F9040AD2F1 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 01CFA74EFC65BCFDF41AE2DB0615EED8 /* React-jsi.xcodeproj */; + containerPortal = 45DF12DEF0D620B4F106B4264EA94709 /* UMConstantsInterface.xcodeproj */; proxyType = 1; - remoteGlobalIDString = D0DB82AB65D33935072718EA2468992F; - remoteInfo = "React-jsi"; + remoteGlobalIDString = 46F82E84687582F366B907E2BD5F1EA2; + remoteInfo = UMConstantsInterface; }; - E22601FB7D527CB7700F5EF31658A6BD /* PBXContainerItemProxy */ = { + E49A8AAB078F637FC3942978B757700F /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 6F0ED87952B752BF2F6950D2DAB51472 /* EXContacts.xcodeproj */; + containerPortal = 0F432CE44D487380D73BB0413BB4B2E4 /* EXDevice.xcodeproj */; proxyType = 1; - remoteGlobalIDString = B22EE26A55A92797A576C80A1202EFFD; - remoteInfo = EXContacts; + remoteGlobalIDString = 61CE878EC16A63D023F23DA6C1B824B9; + remoteInfo = EXDevice; }; - E49E09ABFFD95C08AE12CE1C82C5B1C2 /* PBXContainerItemProxy */ = { + E5CF8515C96B23F81A9028223C4E88AF /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 4B8658D487323D6EEE125B5F57F06468 /* UMSensorsInterface.xcodeproj */; + containerPortal = BB2B8455A52CEAFCD7E2BA273C867AF6 /* EXPermissions.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 1FDCE556B997E87DAB0DA2727CC69285; - remoteInfo = UMSensorsInterface; + remoteGlobalIDString = 488F0C19AB92FC4B503EB55CC688FCF5; + remoteInfo = EXPermissions; }; - E6029B48C29AAF21C67710BD18B592A9 /* PBXContainerItemProxy */ = { + E75F0774263447E68A119EF9BBBD3956 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 9F3B324040A71A156CE8681CBF0610AA /* EXUpdates.xcodeproj */; + containerPortal = 2B4C60A4CF9D5D0911DFE2EBEBEF2A64 /* EXKeepAwake.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 076FF2640FFF3466FB36FD12A629113A; - remoteInfo = EXUpdates; + remoteGlobalIDString = E593B1631324E147D59AE9990EDA53A2; + remoteInfo = EXKeepAwake; }; - EB26241BADD0FC63FCBA5916C92149FB /* PBXContainerItemProxy */ = { + EA4C77C77D5AF09E4E29512BB1AB388E /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 9530BB032E863145DD427DBC06A82F68 /* EXGoogleSignIn.xcodeproj */; + containerPortal = 0D6098692FC17794AEF2F1D8A8F00D91 /* EXApplication.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 1EBA7C3FD4A2348A1EFF618E12286F06; - remoteInfo = EXGoogleSignIn; + remoteGlobalIDString = 2C391225329DE46C6566ED1ADF52F10D; + remoteInfo = EXApplication; }; - EC0BE966E103A871BD282F4BEAD88408 /* PBXContainerItemProxy */ = { + EBBC3F9301F7E6298F1177298D212AF0 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = E17942621B3C5C442DAEF9E85EE80964 /* GoogleSignIn.xcodeproj */; + containerPortal = DAECE8FFE0420F20ED8FD1748AE116AA /* EXLinearGradient.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 70D52585A9FA4EEA343010638ADABC11; - remoteInfo = GoogleSignIn; + remoteGlobalIDString = AF5113FDFEF2ECEBDD58149C34DD4634; + remoteInfo = EXLinearGradient; }; - ECE72C945FEE79C19347B366A6114888 /* PBXContainerItemProxy */ = { + EC71F41A2B303DFC07E9D7FDF9C5450E /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 4971CAC7D488A21F083090F5DF77441A /* EXPrint.xcodeproj */; + containerPortal = 63419B930CED31B6B521E7DFEDBCCBE3 /* EXRandom.xcodeproj */; proxyType = 1; - remoteGlobalIDString = FEAB4A1E3F5EAA6EBAE612E8CBDD2612; - remoteInfo = EXPrint; + remoteGlobalIDString = 00EB4A6BB9778AFFF7F587D732973596; + remoteInfo = EXRandom; }; - EDE74689F85B5DC963E8E16C1B164F4E /* PBXContainerItemProxy */ = { + EE3B12645C7BAC4C32B1EEA5E2014E36 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 63CC2109E824718DD6CF3ECF2951714F /* EXNetwork.xcodeproj */; + containerPortal = 613915C22B33D342D403E3B8A576E656 /* FBLazyVector.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 71F2A4AC24C8FBC0E24B6A613BB4F7BC; - remoteInfo = EXNetwork; + remoteGlobalIDString = 4B95F1280DBD545D036916608691C3EF; + remoteInfo = FBLazyVector; }; - F5B574F9DB6077B85805505D38AC81FA /* PBXContainerItemProxy */ = { + EF3F7D04A9BA0A99BA80736D068FC8CA /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = F93842B2AFB5431663D17D6C8B0DAD27 /* UMPermissionsInterface.xcodeproj */; + containerPortal = B6489F2AAAFD4294BC3EA8BF75C53B15 /* AppAuth.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 12FF61416C5E794E9DEAC78D381D9726; - remoteInfo = UMPermissionsInterface; + remoteGlobalIDString = 4EFA7E4CE531453CF475A9A4322A84F8; + remoteInfo = AppAuth; }; - F6613DD846BED619D89CA5871B5D76BE /* PBXContainerItemProxy */ = { + EF6DEEC90B3D37F46DAAF41804D706AE /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = A82D7F91B76D88E3B3001116B85C6F8F /* EXKeepAwake.xcodeproj */; + containerPortal = 8D3F494609660A9976C0CBECB32878DE /* React-jsi.xcodeproj */; proxyType = 1; - remoteGlobalIDString = E593B1631324E147D59AE9990EDA53A2; - remoteInfo = EXKeepAwake; + remoteGlobalIDString = D0DB82AB65D33935072718EA2468992F; + remoteInfo = "React-jsi"; }; - F7CA9DF8CB84759BCCD92D51371A60EE /* PBXContainerItemProxy */ = { + F0A045A70740B7055CCEDCEDBEBE64B2 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = C3F1268A122894A50E585D0D43F60664 /* React-RCTNetwork.xcodeproj */; + containerPortal = 28A8E6B2E9C4AA3ECCBFB8F59E8CBE7E /* RCTRequired.xcodeproj */; proxyType = 1; - remoteGlobalIDString = B42CC4F102742853C37E7C4841756DBE; - remoteInfo = "React-RCTNetwork"; + remoteGlobalIDString = 7B4E6DC12B1D694845842E9A06C59213; + remoteInfo = RCTRequired; }; - F891AEC19213E84B0E931017A9DD68A3 /* PBXContainerItemProxy */ = { + F109A81406C0F017C3F7057EA877B4AF /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = 00E9EF1B95C123998456AA100CE87025 /* React-RCTSettings.xcodeproj */; + containerPortal = 4417D0F846F371A48228D93F9C4004A3 /* EXErrorRecovery.xcodeproj */; proxyType = 1; - remoteGlobalIDString = 02DD1E05F06C403A8300ABEFC2C29A3D; - remoteInfo = "React-RCTSettings"; + remoteGlobalIDString = 49603BA4A7FB1CFC9ACD589B8CE05EA2; + remoteInfo = EXErrorRecovery; + }; + F6450B3876DB7FEBCD312A3C415593EB /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = C84C47E184849B7D9AC6C0D38141B1E5 /* EXMediaLibrary.xcodeproj */; + proxyType = 1; + remoteGlobalIDString = 422CF65902B3ABF0E6A47527F9209CC8; + remoteInfo = EXMediaLibrary; + }; + F8CCB4F99EB45D741C47BE7599221635 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 1F3457DC934AB39F8822439130F91A04 /* EXGL_CPP.xcodeproj */; + proxyType = 1; + remoteGlobalIDString = 4C66693C554B15E2593FB1F665F8BA01; + remoteInfo = EXGL_CPP; + }; + FA934422E308662123FD3B0323EAB2D1 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 5E48ADA9F4115DD15FB8B04C72AAA18C /* RNGestureHandler.xcodeproj */; + proxyType = 1; + remoteGlobalIDString = 0356CDCA5DB6D4F4B4F5991088D05580; + remoteInfo = RNGestureHandler; + }; + FCB74D1A1F37D3573639B3759236AF81 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = CA86B18283BEF50B0CFE3D6BABE479DC /* UMFontInterface.xcodeproj */; + proxyType = 1; + remoteGlobalIDString = 7F4112A673122B6D50845D9BC1D9AFDB; + remoteInfo = UMFontInterface; + }; + FF340F2F27ED8E04E3F998DC53821245 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = A8D95FBB450113114379D9B8DC6AE9E6 /* EXSQLite.xcodeproj */; + proxyType = 1; + remoteGlobalIDString = B8358C45B103287E90F710967785DD34; + remoteInfo = EXSQLite; }; /* End PBXContainerItemProxy section */ /* Begin PBXFileReference section */ - 00D632F97A746F8FBEE5FD654C95A5D4 /* EXBrightness */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXBrightness; path = EXBrightness.xcodeproj; sourceTree = ""; }; - 00E9EF1B95C123998456AA100CE87025 /* React-RCTSettings */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "React-RCTSettings"; path = "React-RCTSettings.xcodeproj"; sourceTree = ""; }; - 0143F693E54C76D9CEC9B89D39EA738C /* React-jsinspector */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "React-jsinspector"; path = "React-jsinspector.xcodeproj"; sourceTree = ""; }; - 01CFA74EFC65BCFDF41AE2DB0615EED8 /* React-jsi */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "React-jsi"; path = "React-jsi.xcodeproj"; sourceTree = ""; }; - 04AF6CFC908ABC897934A123721DCDC8 /* React-RCTImage */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "React-RCTImage"; path = "React-RCTImage.xcodeproj"; sourceTree = ""; }; - 068283BA3523101E0BA7F90CEB90A6A1 /* Yoga */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = Yoga; path = Yoga.xcodeproj; sourceTree = ""; }; - 06A760ACB1990444FA093A6D7A8AC2EB /* boost-for-react-native */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "boost-for-react-native"; path = "boost-for-react-native.xcodeproj"; sourceTree = ""; }; - 081775E5E1E22CD733CEC31DEC05391D /* EXImagePicker */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXImagePicker; path = EXImagePicker.xcodeproj; sourceTree = ""; }; - 093F33B91AB6CCF24EC5B44C2168D6B7 /* RNReanimated */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RNReanimated; path = RNReanimated.xcodeproj; sourceTree = ""; }; + 028510FBDD07C426362702FB25BC2674 /* EXImageManipulator */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXImageManipulator; path = EXImageManipulator.xcodeproj; sourceTree = ""; }; + 0AD7853A1837E7DEFB2A83A67031830E /* EXBlur */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXBlur; path = EXBlur.xcodeproj; sourceTree = ""; }; + 0B3C4BF30FEC3C6FC0AD89B0BA54A280 /* React-cxxreact */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "React-cxxreact"; path = "React-cxxreact.xcodeproj"; sourceTree = ""; }; 0B584D0632E15581F96D24B9C3B042D7 /* Pods-BareExpoTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-BareExpoTests.release.xcconfig"; sourceTree = ""; }; - 0CCA7AB54711A1C565D9146E86AF6FE5 /* EXSegment */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXSegment; path = EXSegment.xcodeproj; sourceTree = ""; }; - 0F87C4C729C750646FF9170E107841D0 /* EXConstants */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXConstants; path = EXConstants.xcodeproj; sourceTree = ""; }; - 10773CD4E5B8A755D9E0D42FC649AEB4 /* UMFontInterface */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UMFontInterface; path = UMFontInterface.xcodeproj; sourceTree = ""; }; - 11A32ED6BFC7435B83A74B68227CF672 /* ReactCommon */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = ReactCommon; path = ReactCommon.xcodeproj; sourceTree = ""; }; - 1CA025FC93211998774902CC4663DD61 /* EXSharing */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXSharing; path = EXSharing.xcodeproj; sourceTree = ""; }; - 1EC4C5F6778FD0728D36B94A40185D7A /* EXFileSystem */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXFileSystem; path = EXFileSystem.xcodeproj; sourceTree = ""; }; - 1FBDB8F24C5539045D8AE87F927FB3EE /* EXWebBrowser */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXWebBrowser; path = EXWebBrowser.xcodeproj; sourceTree = ""; }; - 21907930CDED304581AE9F8EF737DFC3 /* glog */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = glog; path = glog.xcodeproj; sourceTree = ""; }; - 228AECF796357BD0C17A0250B493CF46 /* RNGestureHandler */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RNGestureHandler; path = RNGestureHandler.xcodeproj; sourceTree = ""; }; - 24C2C1248498064540A1A0795384B075 /* UMConstantsInterface */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UMConstantsInterface; path = UMConstantsInterface.xcodeproj; sourceTree = ""; }; - 2AFEBA4AE1BF044913C3A1F0ABCD7BEF /* React-RCTVibration */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "React-RCTVibration"; path = "React-RCTVibration.xcodeproj"; sourceTree = ""; }; - 3561DE58B3DAAE4AA0D0BC1C630862FA /* Analytics */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = Analytics; path = Analytics.xcodeproj; sourceTree = ""; }; - 384191FF16B8310DB2CA32CE12714F26 /* EXAppAuth */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXAppAuth; path = EXAppAuth.xcodeproj; sourceTree = ""; }; - 3A6F2FEF94FB5051D0E15E0E75E061CE /* EXCellular */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXCellular; path = EXCellular.xcodeproj; sourceTree = ""; }; - 3E8F53A4E4A9F6D8E7270A1D59C0414A /* EXCrypto */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXCrypto; path = EXCrypto.xcodeproj; sourceTree = ""; }; - 469C509D4699E1DC0DF43F06F3A21FD4 /* EXMailComposer */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXMailComposer; path = EXMailComposer.xcodeproj; sourceTree = ""; }; - 4971CAC7D488A21F083090F5DF77441A /* EXPrint */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXPrint; path = EXPrint.xcodeproj; sourceTree = ""; }; - 4B81D9E849F7B0FF699CF47FC7F2EC7B /* React-Core */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "React-Core"; path = "React-Core.xcodeproj"; sourceTree = ""; }; - 4B8658D487323D6EEE125B5F57F06468 /* UMSensorsInterface */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UMSensorsInterface; path = UMSensorsInterface.xcodeproj; sourceTree = ""; }; - 50C4358AD398837056C0C6E564E5FB45 /* RCTRequired */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTRequired; path = RCTRequired.xcodeproj; sourceTree = ""; }; - 53B70B73EBA72F4DB54EFB1201B958D9 /* React-RCTBlob */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "React-RCTBlob"; path = "React-RCTBlob.xcodeproj"; sourceTree = ""; }; - 559D179071A592B620836CC4F14A9F63 /* EXBlur */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXBlur; path = EXBlur.xcodeproj; sourceTree = ""; }; - 58F5BF4DBAF85B453DD79DA82B862E0A /* EXHaptics */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXHaptics; path = EXHaptics.xcodeproj; sourceTree = ""; }; - 59558382C9C14CEDEC8ECC99462044AC /* EXSMS */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXSMS; path = EXSMS.xcodeproj; sourceTree = ""; }; - 5C0692C4DCE5A6E01C6809F60A6FBB6E /* React-cxxreact */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "React-cxxreact"; path = "React-cxxreact.xcodeproj"; sourceTree = ""; }; - 5C7101C48EADF48A3F01ADAD195A0608 /* EXStoreReview */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXStoreReview; path = EXStoreReview.xcodeproj; sourceTree = ""; }; - 5F89074EFF9BBFF30A654696E06822C7 /* EXImageManipulator */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXImageManipulator; path = EXImageManipulator.xcodeproj; sourceTree = ""; }; - 621E66BDF9658FBAEB7835F073CC1D58 /* EXAV */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXAV; path = EXAV.xcodeproj; sourceTree = ""; }; - 63CC2109E824718DD6CF3ECF2951714F /* EXNetwork */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXNetwork; path = EXNetwork.xcodeproj; sourceTree = ""; }; - 66E0036061F06985A735F972DA873D82 /* EXCalendar */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXCalendar; path = EXCalendar.xcodeproj; sourceTree = ""; }; - 6790273ACF64FACB6F6C790F7465109B /* Amplitude-iOS */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "Amplitude-iOS"; path = "Amplitude-iOS.xcodeproj"; sourceTree = ""; }; + 0D6098692FC17794AEF2F1D8A8F00D91 /* EXApplication */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXApplication; path = EXApplication.xcodeproj; sourceTree = ""; }; + 0F432CE44D487380D73BB0413BB4B2E4 /* EXDevice */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXDevice; path = EXDevice.xcodeproj; sourceTree = ""; }; + 15879A6E5BC166609C93EAE4B9D555B8 /* UMTaskManagerInterface */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UMTaskManagerInterface; path = UMTaskManagerInterface.xcodeproj; sourceTree = ""; }; + 17748CB38D03D6B562F3D28D2A82F507 /* EXHaptics */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXHaptics; path = EXHaptics.xcodeproj; sourceTree = ""; }; + 1844B8F791B232FD2413D0CBEDAD6639 /* react-native-safe-area-context */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "react-native-safe-area-context"; path = "react-native-safe-area-context.xcodeproj"; sourceTree = ""; }; + 1ABA2F9DB27EEB127D2B44F77D80E9FA /* EXScreenOrientation */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXScreenOrientation; path = EXScreenOrientation.xcodeproj; sourceTree = ""; }; + 1AE3BB5F5D54D22FE5BA862EA879D388 /* FBSDKLoginKit */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = FBSDKLoginKit; path = FBSDKLoginKit.xcodeproj; sourceTree = ""; }; + 1F3457DC934AB39F8822439130F91A04 /* EXGL_CPP */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXGL_CPP; path = EXGL_CPP.xcodeproj; sourceTree = ""; }; + 25B48C2B48A70691DB4ED0F658074A71 /* UMReactNativeAdapter */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UMReactNativeAdapter; path = UMReactNativeAdapter.xcodeproj; sourceTree = ""; }; + 28A8E6B2E9C4AA3ECCBFB8F59E8CBE7E /* RCTRequired */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTRequired; path = RCTRequired.xcodeproj; sourceTree = ""; }; + 29D9BFF3BABAD6B60F9CB521F210EC7F /* EXGoogleSignIn */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXGoogleSignIn; path = EXGoogleSignIn.xcodeproj; sourceTree = ""; }; + 2B4C60A4CF9D5D0911DFE2EBEBEF2A64 /* EXKeepAwake */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXKeepAwake; path = EXKeepAwake.xcodeproj; sourceTree = ""; }; + 2F6B8ED7FC0DB094DAFC937E963B53AB /* RNReanimated */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RNReanimated; path = RNReanimated.xcodeproj; sourceTree = ""; }; + 32287FE8909EA559B87F0BE031EFEEB4 /* EXAV */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXAV; path = EXAV.xcodeproj; sourceTree = ""; }; + 367FC219882F58106454F6164D9101B8 /* EXImagePicker */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXImagePicker; path = EXImagePicker.xcodeproj; sourceTree = ""; }; + 3A69AFA61F9AE2B6C390463C2D849D49 /* EXPrint */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXPrint; path = EXPrint.xcodeproj; sourceTree = ""; }; + 41B3187CF83226A4ED2FFF90BD5D7C7A /* EXMailComposer */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXMailComposer; path = EXMailComposer.xcodeproj; sourceTree = ""; }; + 4417D0F846F371A48228D93F9C4004A3 /* EXErrorRecovery */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXErrorRecovery; path = EXErrorRecovery.xcodeproj; sourceTree = ""; }; + 45DF12DEF0D620B4F106B4264EA94709 /* UMConstantsInterface */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UMConstantsInterface; path = UMConstantsInterface.xcodeproj; sourceTree = ""; }; + 4793AC95ED7338DB1E580A372EE83163 /* EXBrightness */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXBrightness; path = EXBrightness.xcodeproj; sourceTree = ""; }; + 49BCB2310E7F2764FA35F2ADBF28C1C1 /* React-jsinspector */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "React-jsinspector"; path = "React-jsinspector.xcodeproj"; sourceTree = ""; }; + 4C38EADABC71E8FCD0D0C21208E66AB0 /* React-RCTVibration */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "React-RCTVibration"; path = "React-RCTVibration.xcodeproj"; sourceTree = ""; }; + 5076B2C7CB15FDFF5CEEF8B98579FA9C /* UMImageLoaderInterface */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UMImageLoaderInterface; path = UMImageLoaderInterface.xcodeproj; sourceTree = ""; }; + 52DFD8647635F87F245438504749FCC1 /* React-RCTImage */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "React-RCTImage"; path = "React-RCTImage.xcodeproj"; sourceTree = ""; }; + 532AE8FE83F221B01D364A40D203536B /* EXBluetooth */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXBluetooth; path = EXBluetooth.xcodeproj; sourceTree = ""; }; + 548C6D1EAF5FD5B8277E902EF8D8C809 /* UMCameraInterface */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UMCameraInterface; path = UMCameraInterface.xcodeproj; sourceTree = ""; }; + 562926705A6BA55DDDA865D33DB80786 /* UMPermissionsInterface */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UMPermissionsInterface; path = UMPermissionsInterface.xcodeproj; sourceTree = ""; }; + 57272EBFE157E7147B45FEC7E933AAA4 /* EXCalendar */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXCalendar; path = EXCalendar.xcodeproj; sourceTree = ""; }; + 58F2945BC762DFE6B0E3C29C45A3BF26 /* EXCellular */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXCellular; path = EXCellular.xcodeproj; sourceTree = ""; }; + 5D1A3E7921F16C6998A178F14203488E /* ReactCommon */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = ReactCommon; path = ReactCommon.xcodeproj; sourceTree = ""; }; + 5E48ADA9F4115DD15FB8B04C72AAA18C /* RNGestureHandler */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RNGestureHandler; path = RNGestureHandler.xcodeproj; sourceTree = ""; }; + 613915C22B33D342D403E3B8A576E656 /* FBLazyVector */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = FBLazyVector; path = FBLazyVector.xcodeproj; sourceTree = ""; }; + 63419B930CED31B6B521E7DFEDBCCBE3 /* EXRandom */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXRandom; path = EXRandom.xcodeproj; sourceTree = ""; }; + 63AFE2321630B64E239BD4FE06EE565A /* React-RCTText */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "React-RCTText"; path = "React-RCTText.xcodeproj"; sourceTree = ""; }; + 648B703B3FEA1D4E5B5392848855AD59 /* Amplitude-iOS */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "Amplitude-iOS"; path = "Amplitude-iOS.xcodeproj"; sourceTree = ""; }; + 6A129792F6AC6F39A30276DFB1012FB8 /* EXLocation */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXLocation; path = EXLocation.xcodeproj; sourceTree = ""; }; + 6A8F8A38A6EBB1A85C712C7CD94DF7E6 /* EXSMS */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXSMS; path = EXSMS.xcodeproj; sourceTree = ""; }; 6D02C945BC67559AFEB7B446AD8A35E6 /* Pods-BareExpo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-BareExpo.debug.xcconfig"; sourceTree = ""; }; - 6F0ED87952B752BF2F6950D2DAB51472 /* EXContacts */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXContacts; path = EXContacts.xcodeproj; sourceTree = ""; }; - 6F2506A46EAB2A974A4A198BF26B5D11 /* UMCore */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UMCore; path = UMCore.xcodeproj; sourceTree = ""; }; - 6FA7CD78D631158BDBE6D2A9C4FC19FB /* AppAuth */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = AppAuth; path = AppAuth.xcodeproj; sourceTree = ""; }; - 6FF66503720CEADA5339CA295727D2E6 /* EXBattery */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXBattery; path = EXBattery.xcodeproj; sourceTree = ""; }; - 73E1515109725296D25100C06DA91793 /* RCTTypeSafety */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTTypeSafety; path = RCTTypeSafety.xcodeproj; sourceTree = ""; }; - 7572990AACADFEEFE5EF8AF3A2415FD0 /* FBReactNativeSpec */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = FBReactNativeSpec; path = FBReactNativeSpec.xcodeproj; sourceTree = ""; }; - 7673391655AE15ABB96812EE718E18B3 /* EXBluetooth */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXBluetooth; path = EXBluetooth.xcodeproj; sourceTree = ""; }; + 6DB368A4FFC55518E43CFCA8665E3B97 /* DoubleConversion */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = DoubleConversion; path = DoubleConversion.xcodeproj; sourceTree = ""; }; + 6F823C3D3609BA3F73C6914A93204198 /* UMFileSystemInterface */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UMFileSystemInterface; path = UMFileSystemInterface.xcodeproj; sourceTree = ""; }; + 734E35010F312DA866258F281144DDBB /* EXSegment */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXSegment; path = EXSegment.xcodeproj; sourceTree = ""; }; + 744C586F992BC73441F3A007EC7F5B54 /* React */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React; path = React.xcodeproj; sourceTree = ""; }; 7BA510FA2B18C840471D62EB836D6A34 /* Pods-BareExpoTests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-BareExpoTests-acknowledgements.markdown"; sourceTree = ""; }; - 7C6CEDFBCA521989947F5B019C76054A /* React-RCTActionSheet */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "React-RCTActionSheet"; path = "React-RCTActionSheet.xcodeproj"; sourceTree = ""; }; + 7EF954789AD4972DE673DC049A4FBDD5 /* UMSensorsInterface */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UMSensorsInterface; path = UMSensorsInterface.xcodeproj; sourceTree = ""; }; + 7F3635F8E3A6C8C12E4FB32A57B791C3 /* EXNetwork */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXNetwork; path = EXNetwork.xcodeproj; sourceTree = ""; }; + 806AE481AAC63041B1E0C53928347CFC /* FBReactNativeSpec */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = FBReactNativeSpec; path = FBReactNativeSpec.xcodeproj; sourceTree = ""; }; 8465E2FC705BE47B5397BF4A39C8AC18 /* Pods-BareExpoTests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-BareExpoTests-dummy.m"; sourceTree = ""; }; - 86F0EA4A0FCDB3FC734AE64574A90EBC /* react-native-safe-area-context */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "react-native-safe-area-context"; path = "react-native-safe-area-context.xcodeproj"; sourceTree = ""; }; 878E77864652C9881F9C85C3BC4CA6E7 /* libPods-BareExpoTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = "libPods-BareExpoTests.a"; path = "libPods-BareExpoTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - 89B3742C40E8B4801826442347325BBF /* EXLocalization */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXLocalization; path = EXLocalization.xcodeproj; sourceTree = ""; }; - 8C472FA03A74CA155968F8B7216E490A /* EXSpeech */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXSpeech; path = EXSpeech.xcodeproj; sourceTree = ""; }; - 8DD091FE677FB13DC171D90C021CA7DE /* GTMAppAuth */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = GTMAppAuth; path = GTMAppAuth.xcodeproj; sourceTree = ""; }; - 93A314050AEE5C54490FF76731532B5D /* React-RCTAnimation */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "React-RCTAnimation"; path = "React-RCTAnimation.xcodeproj"; sourceTree = ""; }; - 9530BB032E863145DD427DBC06A82F68 /* EXGoogleSignIn */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXGoogleSignIn; path = EXGoogleSignIn.xcodeproj; sourceTree = ""; }; - 966D82943A84614F0D90E09EED82FC4A /* EXAmplitude */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXAmplitude; path = EXAmplitude.xcodeproj; sourceTree = ""; }; - 9946A17BD11A68F7A944498FD73C8413 /* ZXingObjC */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = ZXingObjC; path = ZXingObjC.xcodeproj; sourceTree = ""; }; - 9B3C09E1B51BE5C72B1178721DFB4736 /* EXSQLite */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXSQLite; path = EXSQLite.xcodeproj; sourceTree = ""; }; + 880745B0BF2869013DCF6F5272A6C282 /* UMBarCodeScannerInterface */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UMBarCodeScannerInterface; path = UMBarCodeScannerInterface.xcodeproj; sourceTree = ""; }; + 8D1C0347009A019C73B760A63553A050 /* EXSecureStore */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXSecureStore; path = EXSecureStore.xcodeproj; sourceTree = ""; }; + 8D3F494609660A9976C0CBECB32878DE /* React-jsi */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "React-jsi"; path = "React-jsi.xcodeproj"; sourceTree = ""; }; + 8DC9BB30D810BD7F63004B47671D9422 /* EXDocumentPicker */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXDocumentPicker; path = EXDocumentPicker.xcodeproj; sourceTree = ""; }; + 9151F4F90118DE4FA6415049E28F4FC0 /* React-RCTLinking */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "React-RCTLinking"; path = "React-RCTLinking.xcodeproj"; sourceTree = ""; }; + 919DD36C8037C87460660033FA1FB459 /* EXWebBrowser */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXWebBrowser; path = EXWebBrowser.xcodeproj; sourceTree = ""; }; + 96404DAFB39B904B65654D85BD8668CF /* GoogleSignIn */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = GoogleSignIn; path = GoogleSignIn.xcodeproj; sourceTree = ""; }; + 9B0D84DCC3675059EE1DEE290D414797 /* EXSensors */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXSensors; path = EXSensors.xcodeproj; sourceTree = ""; }; + 9B246F48CB5A122EA4B98F3484607064 /* GTMSessionFetcher */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = GTMSessionFetcher; path = GTMSessionFetcher.xcodeproj; sourceTree = ""; }; 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; - 9F278CA3578A1C7C742F5C39E58E8626 /* EXRandom */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXRandom; path = EXRandom.xcodeproj; sourceTree = ""; }; - 9F3B324040A71A156CE8681CBF0610AA /* EXUpdates */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXUpdates; path = EXUpdates.xcodeproj; sourceTree = ""; }; 9F3EED7C7CC54C74129840B0C037651C /* Pods-BareExpo-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-BareExpo-acknowledgements.markdown"; sourceTree = ""; }; - A14282E7B246C428EDC564624DBDD9BF /* UMBarCodeScannerInterface */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UMBarCodeScannerInterface; path = UMBarCodeScannerInterface.xcodeproj; sourceTree = ""; }; - A1A9EF9126D232C7848495ED0D34FC82 /* UMFileSystemInterface */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UMFileSystemInterface; path = UMFileSystemInterface.xcodeproj; sourceTree = ""; }; - A3F4A301606C753818F89B954CBABFFA /* React-CoreModules */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "React-CoreModules"; path = "React-CoreModules.xcodeproj"; sourceTree = ""; }; - A528590EDEA69FCB74BFA09B141B4DBF /* EXGL */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXGL; path = EXGL.xcodeproj; sourceTree = ""; }; - A82D7F91B76D88E3B3001116B85C6F8F /* EXKeepAwake */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXKeepAwake; path = EXKeepAwake.xcodeproj; sourceTree = ""; }; - A90F97E439A7BC54338B0DC132FB389F /* EXLocalAuthentication */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXLocalAuthentication; path = EXLocalAuthentication.xcodeproj; sourceTree = ""; }; - A9333E5CD08216B9D4D56A43F8AFFB5B /* EXDevice */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXDevice; path = EXDevice.xcodeproj; sourceTree = ""; }; - AF0568DC623CE5D3D2E159457E57B21F /* EXMediaLibrary */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXMediaLibrary; path = EXMediaLibrary.xcodeproj; sourceTree = ""; }; - AFBF976B0EF04C9912E08179B68D2308 /* EXBarCodeScanner */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXBarCodeScanner; path = EXBarCodeScanner.xcodeproj; sourceTree = ""; }; - B16FF31EB7B2D5E60E6685477B72EBC5 /* EXFont */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXFont; path = EXFont.xcodeproj; sourceTree = ""; }; - B1BC6698202B367C7B3129780457D544 /* EXGL_CPP */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXGL_CPP; path = EXGL_CPP.xcodeproj; sourceTree = ""; }; - B2F742EBD46D881CC735F4D4A4260119 /* Folly */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = Folly; path = Folly.xcodeproj; sourceTree = ""; }; + A24AB511B9A02D0046526CA99BE62D6F /* glog */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = glog; path = glog.xcodeproj; sourceTree = ""; }; + A49BB27B31CA7D03A4FBE761AFED7196 /* EXBattery */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXBattery; path = EXBattery.xcodeproj; sourceTree = ""; }; + A5BCFF2FECB3E9CA53558264705551DC /* EXFileSystem */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXFileSystem; path = EXFileSystem.xcodeproj; sourceTree = ""; }; + A8D95FBB450113114379D9B8DC6AE9E6 /* EXSQLite */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXSQLite; path = EXSQLite.xcodeproj; sourceTree = ""; }; + A9F0EA02112C1410759ED7B18E4ED178 /* React-CoreModules */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "React-CoreModules"; path = "React-CoreModules.xcodeproj"; sourceTree = ""; }; + AB54402287E17E9EF7094C62F7CE4741 /* EXCrypto */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXCrypto; path = EXCrypto.xcodeproj; sourceTree = ""; }; + AB72FC453FC8FCDB65215C6A29B623C5 /* RCTTypeSafety */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTTypeSafety; path = RCTTypeSafety.xcodeproj; sourceTree = ""; }; + AB9308B145B0EE20F1CFB2FA33BBFA43 /* EXUpdates */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXUpdates; path = EXUpdates.xcodeproj; sourceTree = ""; }; + B35A2DD969540A4FBA8FC5E3E3711FF4 /* EXLocalization */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXLocalization; path = EXLocalization.xcodeproj; sourceTree = ""; }; + B36E9FAACA53792605F96452B673FC3E /* Folly */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = Folly; path = Folly.xcodeproj; sourceTree = ""; }; B54740B002D716FDD124C76801E0EAB3 /* Pods-BareExpoTests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-BareExpoTests-acknowledgements.plist"; sourceTree = ""; }; + B6489F2AAAFD4294BC3EA8BF75C53B15 /* AppAuth */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = AppAuth; path = AppAuth.xcodeproj; sourceTree = ""; }; + B8562EDFEFFC0A2AA052540A9735F72F /* react-native-appearance */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "react-native-appearance"; path = "react-native-appearance.xcodeproj"; sourceTree = ""; }; + B87936B6D1D745F50282902ACB4D9B64 /* EXGL */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXGL; path = EXGL.xcodeproj; sourceTree = ""; }; + B888E1CADEF1F453D8C2C1EC7D3F7022 /* ZXingObjC */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = ZXingObjC; path = ZXingObjC.xcodeproj; sourceTree = ""; }; B9129F18779266F08BA65232D729B5FC /* Pods-BareExpo-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-BareExpo-resources.sh"; sourceTree = ""; }; - B95E106A906DA6BC3B1AE32B1476EC96 /* React-RCTText */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "React-RCTText"; path = "React-RCTText.xcodeproj"; sourceTree = ""; }; - BAD136761E20C0CF271C8994F81BE4E8 /* UMCameraInterface */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UMCameraInterface; path = UMCameraInterface.xcodeproj; sourceTree = ""; }; - BB09D5AC4BEBC2617D9D95C54475FA09 /* React */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React; path = React.xcodeproj; sourceTree = ""; }; - C099422E2DC2875E807A665C97BCC571 /* FBLazyVector */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = FBLazyVector; path = FBLazyVector.xcodeproj; sourceTree = ""; }; - C2EA603A6A2597676F274428E05872B9 /* React-jsiexecutor */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "React-jsiexecutor"; path = "React-jsiexecutor.xcodeproj"; sourceTree = ""; }; - C3F1268A122894A50E585D0D43F60664 /* React-RCTNetwork */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "React-RCTNetwork"; path = "React-RCTNetwork.xcodeproj"; sourceTree = ""; }; + BA75409AF01E132DF73A84DC58ED9CBC /* React-RCTAnimation */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "React-RCTAnimation"; path = "React-RCTAnimation.xcodeproj"; sourceTree = ""; }; + BB2B8455A52CEAFCD7E2BA273C867AF6 /* EXPermissions */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXPermissions; path = EXPermissions.xcodeproj; sourceTree = ""; }; + BC76BA7251BF9D0F4AC530C6C6BC6EB4 /* EXAppAuth */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXAppAuth; path = EXAppAuth.xcodeproj; sourceTree = ""; }; + BFCBB5E4C373A5CB4C868188E865FBEE /* React-RCTBlob */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "React-RCTBlob"; path = "React-RCTBlob.xcodeproj"; sourceTree = ""; }; C42944AE78D3C85AE9277FE320D54C35 /* Pods-BareExpo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-BareExpo.release.xcconfig"; sourceTree = ""; }; - C4691EC6027337FE88F7B6C142C79DA9 /* EXLinearGradient */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXLinearGradient; path = EXLinearGradient.xcodeproj; sourceTree = ""; }; + C477AB069BA7A2B5E7743ABE2C1DE32C /* EXSpeech */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXSpeech; path = EXSpeech.xcodeproj; sourceTree = ""; }; C4A8AD09B0987CCC643BCC6FFC68B2AE /* Pods-BareExpoTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-BareExpoTests.debug.xcconfig"; sourceTree = ""; }; - D06CF6E8B5CE7D5A760E443475289B14 /* UMImageLoaderInterface */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UMImageLoaderInterface; path = UMImageLoaderInterface.xcodeproj; sourceTree = ""; }; + C84C47E184849B7D9AC6C0D38141B1E5 /* EXMediaLibrary */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXMediaLibrary; path = EXMediaLibrary.xcodeproj; sourceTree = ""; }; + CA86B18283BEF50B0CFE3D6BABE479DC /* UMFontInterface */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UMFontInterface; path = UMFontInterface.xcodeproj; sourceTree = ""; }; + CB2292AB35A47A791F831F4AF225CA7B /* EXLocalAuthentication */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXLocalAuthentication; path = EXLocalAuthentication.xcodeproj; sourceTree = ""; }; D090CDB16B158897ECDA29AE3E2FDBF6 /* Pods-BareExpo-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-BareExpo-dummy.m"; sourceTree = ""; }; D1014EA3C6789E7FAA1DC562E34C204D /* libPods-BareExpo.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = "libPods-BareExpo.a"; path = "libPods-BareExpo.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - D1D370A1C813FC6C49069D6F265F56E3 /* EXErrorRecovery */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXErrorRecovery; path = EXErrorRecovery.xcodeproj; sourceTree = ""; }; + D3007822DD388D7AED61CCE40DB8299E /* React-Core */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "React-Core"; path = "React-Core.xcodeproj"; sourceTree = ""; }; + D3F5ECCAD8206B378D462C5E7C18391B /* UMCore */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UMCore; path = UMCore.xcodeproj; sourceTree = ""; }; + D40E30349907EB2CAC16D5413DD38F88 /* GTMAppAuth */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = GTMAppAuth; path = GTMAppAuth.xcodeproj; sourceTree = ""; }; D48CF9AF6779F366D43DAFA00F78BE5E /* Pods-BareExpo-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-BareExpo-acknowledgements.plist"; sourceTree = ""; }; - D58517F1F49DD7F710C941D73B419B5C /* EXAppLoaderProvider */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXAppLoaderProvider; path = EXAppLoaderProvider.xcodeproj; sourceTree = ""; }; - D5E45FC61A6D2D7E3F46F8A281EA7F64 /* UMReactNativeAdapter */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UMReactNativeAdapter; path = UMReactNativeAdapter.xcodeproj; sourceTree = ""; }; - D7D345E8C3BC6E50CBED042829BBF090 /* EXSensors */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXSensors; path = EXSensors.xcodeproj; sourceTree = ""; }; - E17942621B3C5C442DAEF9E85EE80964 /* GoogleSignIn */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = GoogleSignIn; path = GoogleSignIn.xcodeproj; sourceTree = ""; }; - E3C83D9BB0BF020DE9E3EA402FF40418 /* EXDocumentPicker */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXDocumentPicker; path = EXDocumentPicker.xcodeproj; sourceTree = ""; }; - EC64490903CB102FA5D88F9FD8D4873B /* DoubleConversion */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = DoubleConversion; path = DoubleConversion.xcodeproj; sourceTree = ""; }; - EC8B540ED755EDCB2AE686784D3AF479 /* EXApplication */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXApplication; path = EXApplication.xcodeproj; sourceTree = ""; }; - ED50116F92CAB9F1E06FE905363CE060 /* EXPermissions */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXPermissions; path = EXPermissions.xcodeproj; sourceTree = ""; }; - EF2B74AE23B4D085A4D41634852D9E79 /* EXSecureStore */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXSecureStore; path = EXSecureStore.xcodeproj; sourceTree = ""; }; - F6C89811BEB495795C6F1B805FCF9133 /* GTMSessionFetcher */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = GTMSessionFetcher; path = GTMSessionFetcher.xcodeproj; sourceTree = ""; }; - F93842B2AFB5431663D17D6C8B0DAD27 /* UMPermissionsInterface */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = UMPermissionsInterface; path = UMPermissionsInterface.xcodeproj; sourceTree = ""; }; - FC694360F93EB50AF01BD9AD3DDF6F63 /* React-RCTLinking */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "React-RCTLinking"; path = "React-RCTLinking.xcodeproj"; sourceTree = ""; }; + D7BCD95D57E91980DABACBEE33C53F5B /* React-RCTSettings */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "React-RCTSettings"; path = "React-RCTSettings.xcodeproj"; sourceTree = ""; }; + DAECE8FFE0420F20ED8FD1748AE116AA /* EXLinearGradient */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXLinearGradient; path = EXLinearGradient.xcodeproj; sourceTree = ""; }; + DB366ABF5B902BF910F0E243558A6613 /* EXAmplitude */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXAmplitude; path = EXAmplitude.xcodeproj; sourceTree = ""; }; + DE3635F59551385C3D96318A8453154F /* EXContacts */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXContacts; path = EXContacts.xcodeproj; sourceTree = ""; }; + E350957341019D55FC8A5CE6740447BA /* EXBarCodeScanner */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXBarCodeScanner; path = EXBarCodeScanner.xcodeproj; sourceTree = ""; }; + E557148B1E43DC418D43AC23E1DF3514 /* boost-for-react-native */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "boost-for-react-native"; path = "boost-for-react-native.xcodeproj"; sourceTree = ""; }; + E87922AC96E27C352892DEA347CAE306 /* EXNotifications */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXNotifications; path = EXNotifications.xcodeproj; sourceTree = ""; }; + E9806A9518AD19378AACBF3FADC024BE /* Analytics */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = Analytics; path = Analytics.xcodeproj; sourceTree = ""; }; + EBCDB3CAC82A6BD5D6ED8064031208DC /* EXFont */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXFont; path = EXFont.xcodeproj; sourceTree = ""; }; + EDF220DEEEA89FFB81258DD0765708BA /* EXFacebook */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXFacebook; path = EXFacebook.xcodeproj; sourceTree = ""; }; + F0C77BD27BDF7E594F43AF05F5743624 /* React-RCTNetwork */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "React-RCTNetwork"; path = "React-RCTNetwork.xcodeproj"; sourceTree = ""; }; + F21461EEAA0C3C495E5F5ABCB5C8E4DD /* React-RCTActionSheet */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "React-RCTActionSheet"; path = "React-RCTActionSheet.xcodeproj"; sourceTree = ""; }; + F3317B6E00903DEF65B688E84EA04AA3 /* FBSDKCoreKit */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = FBSDKCoreKit; path = FBSDKCoreKit.xcodeproj; sourceTree = ""; }; + F3D5998B4E1333078B0389FCF02CF059 /* React-jsiexecutor */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = "React-jsiexecutor"; path = "React-jsiexecutor.xcodeproj"; sourceTree = ""; }; + F63E8AE401F9E57594E89C81CBCD2CD2 /* EXSharing */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXSharing; path = EXSharing.xcodeproj; sourceTree = ""; }; + F73C3980F192C17101FEF5D1587028C0 /* Yoga */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = Yoga; path = Yoga.xcodeproj; sourceTree = ""; }; + F8F6A765C08BE001FFEC291FFD0B7B1B /* EXStoreReview */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXStoreReview; path = EXStoreReview.xcodeproj; sourceTree = ""; }; + F9BF3E822E62BA2DA6B80F67A08EAE7E /* EXAppLoaderProvider */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXAppLoaderProvider; path = EXAppLoaderProvider.xcodeproj; sourceTree = ""; }; + FCD0969E970831AB2E575CA402CE2295 /* EXConstants */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = EXConstants; path = EXConstants.xcodeproj; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -782,7 +846,7 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - DB7DC0C1E6C2D56F295B8748F348E613 /* Frameworks */ = { + C275654FEE61BD32612DD2256C176FCE /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( @@ -792,27 +856,6 @@ /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ - 3F99B2263C0408AD869FFB149189BBD1 /* Pods */ = { - isa = PBXGroup; - children = ( - 6790273ACF64FACB6F6C790F7465109B /* Amplitude-iOS */, - 3561DE58B3DAAE4AA0D0BC1C630862FA /* Analytics */, - 6FA7CD78D631158BDBE6D2A9C4FC19FB /* AppAuth */, - 06A760ACB1990444FA093A6D7A8AC2EB /* boost-for-react-native */, - EC64490903CB102FA5D88F9FD8D4873B /* DoubleConversion */, - B2F742EBD46D881CC735F4D4A4260119 /* Folly */, - 21907930CDED304581AE9F8EF737DFC3 /* glog */, - E17942621B3C5C442DAEF9E85EE80964 /* GoogleSignIn */, - 8DD091FE677FB13DC171D90C021CA7DE /* GTMAppAuth */, - F6C89811BEB495795C6F1B805FCF9133 /* GTMSessionFetcher */, - 86F0EA4A0FCDB3FC734AE64574A90EBC /* react-native-safe-area-context */, - 228AECF796357BD0C17A0250B493CF46 /* RNGestureHandler */, - 093F33B91AB6CCF24EC5B44C2168D6B7 /* RNReanimated */, - 9946A17BD11A68F7A944498FD73C8413 /* ZXingObjC */, - ); - name = Pods; - sourceTree = ""; - }; 47A0FFA7A01C9BA895E5664886E9B952 /* Targets Support Files */ = { isa = PBXGroup; children = ( @@ -836,13 +879,127 @@ path = "Target Support Files/Pods-BareExpo"; sourceTree = ""; }; + 96741A40D6E5EA5D2D8D1E730C026736 /* Pods */ = { + isa = PBXGroup; + children = ( + 648B703B3FEA1D4E5B5392848855AD59 /* Amplitude-iOS */, + E9806A9518AD19378AACBF3FADC024BE /* Analytics */, + B6489F2AAAFD4294BC3EA8BF75C53B15 /* AppAuth */, + E557148B1E43DC418D43AC23E1DF3514 /* boost-for-react-native */, + 6DB368A4FFC55518E43CFCA8665E3B97 /* DoubleConversion */, + F3317B6E00903DEF65B688E84EA04AA3 /* FBSDKCoreKit */, + 1AE3BB5F5D54D22FE5BA862EA879D388 /* FBSDKLoginKit */, + B36E9FAACA53792605F96452B673FC3E /* Folly */, + A24AB511B9A02D0046526CA99BE62D6F /* glog */, + 96404DAFB39B904B65654D85BD8668CF /* GoogleSignIn */, + D40E30349907EB2CAC16D5413DD38F88 /* GTMAppAuth */, + 9B246F48CB5A122EA4B98F3484607064 /* GTMSessionFetcher */, + B888E1CADEF1F453D8C2C1EC7D3F7022 /* ZXingObjC */, + ); + name = Pods; + sourceTree = ""; + }; + B1F4623031AA790993FA7A2584C9D549 /* Development Pods */ = { + isa = PBXGroup; + children = ( + DB366ABF5B902BF910F0E243558A6613 /* EXAmplitude */, + BC76BA7251BF9D0F4AC530C6C6BC6EB4 /* EXAppAuth */, + 0D6098692FC17794AEF2F1D8A8F00D91 /* EXApplication */, + F9BF3E822E62BA2DA6B80F67A08EAE7E /* EXAppLoaderProvider */, + 32287FE8909EA559B87F0BE031EFEEB4 /* EXAV */, + E350957341019D55FC8A5CE6740447BA /* EXBarCodeScanner */, + A49BB27B31CA7D03A4FBE761AFED7196 /* EXBattery */, + 532AE8FE83F221B01D364A40D203536B /* EXBluetooth */, + 0AD7853A1837E7DEFB2A83A67031830E /* EXBlur */, + 4793AC95ED7338DB1E580A372EE83163 /* EXBrightness */, + 57272EBFE157E7147B45FEC7E933AAA4 /* EXCalendar */, + 58F2945BC762DFE6B0E3C29C45A3BF26 /* EXCellular */, + FCD0969E970831AB2E575CA402CE2295 /* EXConstants */, + DE3635F59551385C3D96318A8453154F /* EXContacts */, + AB54402287E17E9EF7094C62F7CE4741 /* EXCrypto */, + 0F432CE44D487380D73BB0413BB4B2E4 /* EXDevice */, + 8DC9BB30D810BD7F63004B47671D9422 /* EXDocumentPicker */, + 4417D0F846F371A48228D93F9C4004A3 /* EXErrorRecovery */, + EDF220DEEEA89FFB81258DD0765708BA /* EXFacebook */, + A5BCFF2FECB3E9CA53558264705551DC /* EXFileSystem */, + EBCDB3CAC82A6BD5D6ED8064031208DC /* EXFont */, + B87936B6D1D745F50282902ACB4D9B64 /* EXGL */, + 1F3457DC934AB39F8822439130F91A04 /* EXGL_CPP */, + 29D9BFF3BABAD6B60F9CB521F210EC7F /* EXGoogleSignIn */, + 17748CB38D03D6B562F3D28D2A82F507 /* EXHaptics */, + 028510FBDD07C426362702FB25BC2674 /* EXImageManipulator */, + 367FC219882F58106454F6164D9101B8 /* EXImagePicker */, + 2B4C60A4CF9D5D0911DFE2EBEBEF2A64 /* EXKeepAwake */, + DAECE8FFE0420F20ED8FD1748AE116AA /* EXLinearGradient */, + CB2292AB35A47A791F831F4AF225CA7B /* EXLocalAuthentication */, + B35A2DD969540A4FBA8FC5E3E3711FF4 /* EXLocalization */, + 6A129792F6AC6F39A30276DFB1012FB8 /* EXLocation */, + 41B3187CF83226A4ED2FFF90BD5D7C7A /* EXMailComposer */, + C84C47E184849B7D9AC6C0D38141B1E5 /* EXMediaLibrary */, + 7F3635F8E3A6C8C12E4FB32A57B791C3 /* EXNetwork */, + E87922AC96E27C352892DEA347CAE306 /* EXNotifications */, + BB2B8455A52CEAFCD7E2BA273C867AF6 /* EXPermissions */, + 3A69AFA61F9AE2B6C390463C2D849D49 /* EXPrint */, + 63419B930CED31B6B521E7DFEDBCCBE3 /* EXRandom */, + 1ABA2F9DB27EEB127D2B44F77D80E9FA /* EXScreenOrientation */, + 8D1C0347009A019C73B760A63553A050 /* EXSecureStore */, + 734E35010F312DA866258F281144DDBB /* EXSegment */, + 9B0D84DCC3675059EE1DEE290D414797 /* EXSensors */, + F63E8AE401F9E57594E89C81CBCD2CD2 /* EXSharing */, + 6A8F8A38A6EBB1A85C712C7CD94DF7E6 /* EXSMS */, + C477AB069BA7A2B5E7743ABE2C1DE32C /* EXSpeech */, + A8D95FBB450113114379D9B8DC6AE9E6 /* EXSQLite */, + F8F6A765C08BE001FFEC291FFD0B7B1B /* EXStoreReview */, + AB9308B145B0EE20F1CFB2FA33BBFA43 /* EXUpdates */, + 919DD36C8037C87460660033FA1FB459 /* EXWebBrowser */, + 613915C22B33D342D403E3B8A576E656 /* FBLazyVector */, + 806AE481AAC63041B1E0C53928347CFC /* FBReactNativeSpec */, + 28A8E6B2E9C4AA3ECCBFB8F59E8CBE7E /* RCTRequired */, + AB72FC453FC8FCDB65215C6A29B623C5 /* RCTTypeSafety */, + 744C586F992BC73441F3A007EC7F5B54 /* React */, + D3007822DD388D7AED61CCE40DB8299E /* React-Core */, + A9F0EA02112C1410759ED7B18E4ED178 /* React-CoreModules */, + 0B3C4BF30FEC3C6FC0AD89B0BA54A280 /* React-cxxreact */, + 8D3F494609660A9976C0CBECB32878DE /* React-jsi */, + F3D5998B4E1333078B0389FCF02CF059 /* React-jsiexecutor */, + 49BCB2310E7F2764FA35F2ADBF28C1C1 /* React-jsinspector */, + B8562EDFEFFC0A2AA052540A9735F72F /* react-native-appearance */, + 1844B8F791B232FD2413D0CBEDAD6639 /* react-native-safe-area-context */, + F21461EEAA0C3C495E5F5ABCB5C8E4DD /* React-RCTActionSheet */, + BA75409AF01E132DF73A84DC58ED9CBC /* React-RCTAnimation */, + BFCBB5E4C373A5CB4C868188E865FBEE /* React-RCTBlob */, + 52DFD8647635F87F245438504749FCC1 /* React-RCTImage */, + 9151F4F90118DE4FA6415049E28F4FC0 /* React-RCTLinking */, + F0C77BD27BDF7E594F43AF05F5743624 /* React-RCTNetwork */, + D7BCD95D57E91980DABACBEE33C53F5B /* React-RCTSettings */, + 63AFE2321630B64E239BD4FE06EE565A /* React-RCTText */, + 4C38EADABC71E8FCD0D0C21208E66AB0 /* React-RCTVibration */, + 5D1A3E7921F16C6998A178F14203488E /* ReactCommon */, + 5E48ADA9F4115DD15FB8B04C72AAA18C /* RNGestureHandler */, + 2F6B8ED7FC0DB094DAFC937E963B53AB /* RNReanimated */, + 880745B0BF2869013DCF6F5272A6C282 /* UMBarCodeScannerInterface */, + 548C6D1EAF5FD5B8277E902EF8D8C809 /* UMCameraInterface */, + 45DF12DEF0D620B4F106B4264EA94709 /* UMConstantsInterface */, + D3F5ECCAD8206B378D462C5E7C18391B /* UMCore */, + 6F823C3D3609BA3F73C6914A93204198 /* UMFileSystemInterface */, + CA86B18283BEF50B0CFE3D6BABE479DC /* UMFontInterface */, + 5076B2C7CB15FDFF5CEEF8B98579FA9C /* UMImageLoaderInterface */, + 562926705A6BA55DDDA865D33DB80786 /* UMPermissionsInterface */, + 25B48C2B48A70691DB4ED0F658074A71 /* UMReactNativeAdapter */, + 7EF954789AD4972DE673DC049A4FBDD5 /* UMSensorsInterface */, + 15879A6E5BC166609C93EAE4B9D555B8 /* UMTaskManagerInterface */, + F73C3980F192C17101FEF5D1587028C0 /* Yoga */, + ); + name = "Development Pods"; + sourceTree = ""; + }; CF1408CF629C7361332E53B88F7BD30C = { isa = PBXGroup; children = ( 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, - F390F7E91E479D81DED26468230696EB /* Development Pods */, + B1F4623031AA790993FA7A2584C9D549 /* Development Pods */, D89477F20FB1DE18A04690586D7808C4 /* Frameworks */, - 3F99B2263C0408AD869FFB149189BBD1 /* Pods */, + 96741A40D6E5EA5D2D8D1E730C026736 /* Pods */, E71A1A9A54AF9481ED09CD84DBFA729C /* Products */, 47A0FFA7A01C9BA895E5664886E9B952 /* Targets Support Files */, ); @@ -877,91 +1034,6 @@ path = "Target Support Files/Pods-BareExpoTests"; sourceTree = ""; }; - F390F7E91E479D81DED26468230696EB /* Development Pods */ = { - isa = PBXGroup; - children = ( - 966D82943A84614F0D90E09EED82FC4A /* EXAmplitude */, - 384191FF16B8310DB2CA32CE12714F26 /* EXAppAuth */, - EC8B540ED755EDCB2AE686784D3AF479 /* EXApplication */, - D58517F1F49DD7F710C941D73B419B5C /* EXAppLoaderProvider */, - 621E66BDF9658FBAEB7835F073CC1D58 /* EXAV */, - AFBF976B0EF04C9912E08179B68D2308 /* EXBarCodeScanner */, - 6FF66503720CEADA5339CA295727D2E6 /* EXBattery */, - 7673391655AE15ABB96812EE718E18B3 /* EXBluetooth */, - 559D179071A592B620836CC4F14A9F63 /* EXBlur */, - 00D632F97A746F8FBEE5FD654C95A5D4 /* EXBrightness */, - 66E0036061F06985A735F972DA873D82 /* EXCalendar */, - 3A6F2FEF94FB5051D0E15E0E75E061CE /* EXCellular */, - 0F87C4C729C750646FF9170E107841D0 /* EXConstants */, - 6F0ED87952B752BF2F6950D2DAB51472 /* EXContacts */, - 3E8F53A4E4A9F6D8E7270A1D59C0414A /* EXCrypto */, - A9333E5CD08216B9D4D56A43F8AFFB5B /* EXDevice */, - E3C83D9BB0BF020DE9E3EA402FF40418 /* EXDocumentPicker */, - D1D370A1C813FC6C49069D6F265F56E3 /* EXErrorRecovery */, - 1EC4C5F6778FD0728D36B94A40185D7A /* EXFileSystem */, - B16FF31EB7B2D5E60E6685477B72EBC5 /* EXFont */, - A528590EDEA69FCB74BFA09B141B4DBF /* EXGL */, - B1BC6698202B367C7B3129780457D544 /* EXGL_CPP */, - 9530BB032E863145DD427DBC06A82F68 /* EXGoogleSignIn */, - 58F5BF4DBAF85B453DD79DA82B862E0A /* EXHaptics */, - 5F89074EFF9BBFF30A654696E06822C7 /* EXImageManipulator */, - 081775E5E1E22CD733CEC31DEC05391D /* EXImagePicker */, - A82D7F91B76D88E3B3001116B85C6F8F /* EXKeepAwake */, - C4691EC6027337FE88F7B6C142C79DA9 /* EXLinearGradient */, - A90F97E439A7BC54338B0DC132FB389F /* EXLocalAuthentication */, - 89B3742C40E8B4801826442347325BBF /* EXLocalization */, - 469C509D4699E1DC0DF43F06F3A21FD4 /* EXMailComposer */, - AF0568DC623CE5D3D2E159457E57B21F /* EXMediaLibrary */, - 63CC2109E824718DD6CF3ECF2951714F /* EXNetwork */, - ED50116F92CAB9F1E06FE905363CE060 /* EXPermissions */, - 4971CAC7D488A21F083090F5DF77441A /* EXPrint */, - 9F278CA3578A1C7C742F5C39E58E8626 /* EXRandom */, - EF2B74AE23B4D085A4D41634852D9E79 /* EXSecureStore */, - 0CCA7AB54711A1C565D9146E86AF6FE5 /* EXSegment */, - D7D345E8C3BC6E50CBED042829BBF090 /* EXSensors */, - 1CA025FC93211998774902CC4663DD61 /* EXSharing */, - 59558382C9C14CEDEC8ECC99462044AC /* EXSMS */, - 8C472FA03A74CA155968F8B7216E490A /* EXSpeech */, - 9B3C09E1B51BE5C72B1178721DFB4736 /* EXSQLite */, - 5C7101C48EADF48A3F01ADAD195A0608 /* EXStoreReview */, - 9F3B324040A71A156CE8681CBF0610AA /* EXUpdates */, - 1FBDB8F24C5539045D8AE87F927FB3EE /* EXWebBrowser */, - C099422E2DC2875E807A665C97BCC571 /* FBLazyVector */, - 7572990AACADFEEFE5EF8AF3A2415FD0 /* FBReactNativeSpec */, - 50C4358AD398837056C0C6E564E5FB45 /* RCTRequired */, - 73E1515109725296D25100C06DA91793 /* RCTTypeSafety */, - BB09D5AC4BEBC2617D9D95C54475FA09 /* React */, - 4B81D9E849F7B0FF699CF47FC7F2EC7B /* React-Core */, - A3F4A301606C753818F89B954CBABFFA /* React-CoreModules */, - 5C0692C4DCE5A6E01C6809F60A6FBB6E /* React-cxxreact */, - 01CFA74EFC65BCFDF41AE2DB0615EED8 /* React-jsi */, - C2EA603A6A2597676F274428E05872B9 /* React-jsiexecutor */, - 0143F693E54C76D9CEC9B89D39EA738C /* React-jsinspector */, - 7C6CEDFBCA521989947F5B019C76054A /* React-RCTActionSheet */, - 93A314050AEE5C54490FF76731532B5D /* React-RCTAnimation */, - 53B70B73EBA72F4DB54EFB1201B958D9 /* React-RCTBlob */, - 04AF6CFC908ABC897934A123721DCDC8 /* React-RCTImage */, - FC694360F93EB50AF01BD9AD3DDF6F63 /* React-RCTLinking */, - C3F1268A122894A50E585D0D43F60664 /* React-RCTNetwork */, - 00E9EF1B95C123998456AA100CE87025 /* React-RCTSettings */, - B95E106A906DA6BC3B1AE32B1476EC96 /* React-RCTText */, - 2AFEBA4AE1BF044913C3A1F0ABCD7BEF /* React-RCTVibration */, - 11A32ED6BFC7435B83A74B68227CF672 /* ReactCommon */, - A14282E7B246C428EDC564624DBDD9BF /* UMBarCodeScannerInterface */, - BAD136761E20C0CF271C8994F81BE4E8 /* UMCameraInterface */, - 24C2C1248498064540A1A0795384B075 /* UMConstantsInterface */, - 6F2506A46EAB2A974A4A198BF26B5D11 /* UMCore */, - A1A9EF9126D232C7848495ED0D34FC82 /* UMFileSystemInterface */, - 10773CD4E5B8A755D9E0D42FC649AEB4 /* UMFontInterface */, - D06CF6E8B5CE7D5A760E443475289B14 /* UMImageLoaderInterface */, - F93842B2AFB5431663D17D6C8B0DAD27 /* UMPermissionsInterface */, - D5E45FC61A6D2D7E3F46F8A281EA7F64 /* UMReactNativeAdapter */, - 4B8658D487323D6EEE125B5F57F06468 /* UMSensorsInterface */, - 068283BA3523101E0BA7F90CEB90A6A1 /* Yoga */, - ); - name = "Development Pods"; - sourceTree = ""; - }; /* End PBXGroup section */ /* Begin PBXHeadersBuildPhase section */ @@ -972,7 +1044,7 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - FA3600A7F5008DE2BE1E3B6AA43CAA1C /* Headers */ = { + 997F921B2D2AF9E71DC05E9562753005 /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( @@ -1002,107 +1074,115 @@ }; C616BB9F650D110E835D02A3250F302E /* Pods-BareExpo */ = { isa = PBXNativeTarget; - buildConfigurationList = 19B0920102FB081C56D8699A0F9D676E /* Build configuration list for PBXNativeTarget "Pods-BareExpo" */; + buildConfigurationList = 5C9CC66327D543B11F141E23959A08D2 /* Build configuration list for PBXNativeTarget "Pods-BareExpo" */; buildPhases = ( - FA3600A7F5008DE2BE1E3B6AA43CAA1C /* Headers */, - 0B99572B5B1932951237131C16FBB9C7 /* Sources */, - DB7DC0C1E6C2D56F295B8748F348E613 /* Frameworks */, + 997F921B2D2AF9E71DC05E9562753005 /* Headers */, + 3E461D58EAE65B378FA17D15FCDDB5CB /* Sources */, + C275654FEE61BD32612DD2256C176FCE /* Frameworks */, ); buildRules = ( ); dependencies = ( - 91D2A06942280D2149E8D2FECE2139DA /* PBXTargetDependency */, - 68583D60CD1D2FCEE73CF16A926196A3 /* PBXTargetDependency */, - CB74FAEC6179ED8E6DA650BC436B0217 /* PBXTargetDependency */, - 5CC4BF5204B9D14211D9845D3CCE8B3A /* PBXTargetDependency */, - 49ED00B0339E6859EE2CF1B4112EBA9C /* PBXTargetDependency */, - 216CEB250607CD8D1847439AA9943219 /* PBXTargetDependency */, - EB510BB4F1A396F8FBC810E5DE644C4A /* PBXTargetDependency */, - 3B41B5F91EC84A9F522A725288F03622 /* PBXTargetDependency */, - E69875FB639872DAE546EF4B38A99FFC /* PBXTargetDependency */, - 0B3198B72438B14E12C3547AEFF35817 /* PBXTargetDependency */, - 5E5513B0C5190451B739B75885958F81 /* PBXTargetDependency */, - 3C1825C8E667A847B094BC84710EB57D /* PBXTargetDependency */, - 7ED59F0C6BB5C3C97A81252A98FDD60D /* PBXTargetDependency */, - CFEB7B078D667D898DCC8EEEF1FC5C82 /* PBXTargetDependency */, - 835E57D62A25653590E6A4879FE2E498 /* PBXTargetDependency */, - 0C6704A85B88110C459780D3DC0D42AE /* PBXTargetDependency */, - CC0B2B3947F5D1DB5CCBEC92CDE90B59 /* PBXTargetDependency */, - 57D398309C4C6FD51F9130573985A66F /* PBXTargetDependency */, - 3ECE96F17B686C020335F76E3191E00C /* PBXTargetDependency */, - 45148C8779E18C0083EC9DE6AF0CD38E /* PBXTargetDependency */, - 5310F632D43BB2D1B1B6F890ED3F0885 /* PBXTargetDependency */, - D13E8EC0261A514C204BE1AF5FCE1A71 /* PBXTargetDependency */, - 6B4B82E9706935B9950B575B6C1B42B3 /* PBXTargetDependency */, - EAFDA9B9134F1DF606BD4C18A97A874A /* PBXTargetDependency */, - 94930F6A17DE516441EAB3E4B56FDE83 /* PBXTargetDependency */, - 7AEE79031110CDCCD4AC9582EE18DBF1 /* PBXTargetDependency */, - AF61AC42B51AAD8083082E9E97A532D6 /* PBXTargetDependency */, - 24B0592F7CE999C10F5252F040275E53 /* PBXTargetDependency */, - D95A8BE51BA7A624286CB26082A825D7 /* PBXTargetDependency */, - 919D9299543E75927B76412AF77C67EB /* PBXTargetDependency */, - 76648E6385C38D92D9919DD8BEFB72FA /* PBXTargetDependency */, - 91231C8705F62ADF08EF987BC7F7F23A /* PBXTargetDependency */, - 76FC85DADC17FF90C5FDD5EBC9DB22F8 /* PBXTargetDependency */, - 162A14750937C65A2A4729155712F26E /* PBXTargetDependency */, - 62DBCD1EAB8D4CDB7E9A7CC0D50DBF17 /* PBXTargetDependency */, - C7AE23F84AE918C528379534C668DCE0 /* PBXTargetDependency */, - 26D2DAA1BEB626B4F3074DA792E9E049 /* PBXTargetDependency */, - BF03A3699E84F70F58A4C068CE723367 /* PBXTargetDependency */, - 8D73DF6AB515BDCAAA2E924F15FD7543 /* PBXTargetDependency */, - 88ABB33EF0314C0E1DE20E898CE4A48A /* PBXTargetDependency */, - 4B0B0B6F3B87CDE371502EF81AF50391 /* PBXTargetDependency */, - BC84B0B805D0DF23F0B5D1160056B9A8 /* PBXTargetDependency */, - 69FD5C53F5ECA3ED4DEC576EC605C19A /* PBXTargetDependency */, - B74039FCB994BF9585D0D4215D0875C8 /* PBXTargetDependency */, - FC734C17AB4E1E840D10ADA1901A3113 /* PBXTargetDependency */, - 424DBC0AAC3F2A89B819DB3A1BE2BD7E /* PBXTargetDependency */, - 86A336B574906E89C02F69D66AC2808D /* PBXTargetDependency */, - 85BB7A1710A8F651EDD241F7D71D9490 /* PBXTargetDependency */, - 9C1FA1598D376386D6CD15F13B05F844 /* PBXTargetDependency */, - A72A154D15AD1504DEE8CE49645A6D8E /* PBXTargetDependency */, - 254CD38753A6118FF2B524C09C120314 /* PBXTargetDependency */, - 412783A91C9AF4D6972DFA2F62A8C1A1 /* PBXTargetDependency */, - B48E006DA8F8AAD53D57E6AFE04AFD17 /* PBXTargetDependency */, - 983CF6E21DB008E9A79C819012FBC053 /* PBXTargetDependency */, - 06E7A26C669DC0234C327B2516735C98 /* PBXTargetDependency */, - C3DC6DBE2445FFE60812CAC637B5864A /* PBXTargetDependency */, - 067EEBB3B5DDD40A466FBB4557C0F507 /* PBXTargetDependency */, - C2ECFA6910CED7EFD2A5A498D869E980 /* PBXTargetDependency */, - 8B21978C9FB81332E24D4A9F14A03B76 /* PBXTargetDependency */, - 4C1B6D1DAD6D319DF2CD230DBC3D0A5C /* PBXTargetDependency */, - 856A79330ECD4101A00DA78356547395 /* PBXTargetDependency */, - 47096324E65A4400F049734DD6E59F2B /* PBXTargetDependency */, - 46F8894ECF5069E01E4352102610933F /* PBXTargetDependency */, - 37D3D1A9C752C5DCC821B584FF3A1207 /* PBXTargetDependency */, - FB8B0A16B9643FB2D121C43BE8B77BCE /* PBXTargetDependency */, - 53034382723F052DDE13043CAE339AD1 /* PBXTargetDependency */, - 4C7C9F601F826720D3382337E1A187B8 /* PBXTargetDependency */, - F67EDF6A0F61A98853459D1B6B6F30CB /* PBXTargetDependency */, - 535FEE6DEE208FC493B372D9576C8AC2 /* PBXTargetDependency */, - AB63AA75C19598CA9C832401B5B9B047 /* PBXTargetDependency */, - BEC0646C92263C5E750B29FD6901140F /* PBXTargetDependency */, - C3C71EE9BA9918D7266A6FFBE2175E03 /* PBXTargetDependency */, - 87B2B4711BCBD138FCB4F284EA4C8BC6 /* PBXTargetDependency */, - 0E3EDD0C0CAB8AC18DE1EB33B5A1A82E /* PBXTargetDependency */, - 4F80E27CCDD9788CB333ACE8F8A59297 /* PBXTargetDependency */, - ADB4BFD566AFDD1299060706572125FE /* PBXTargetDependency */, - 6DA363B8D5958C02C2899867D87A3604 /* PBXTargetDependency */, - 3D13AD9A803C789A67D93CB50870AE39 /* PBXTargetDependency */, - 8761BD1357846AC44DF8B0AD3BC395E4 /* PBXTargetDependency */, - EFDD1908CE86282341ED19473B7AE71C /* PBXTargetDependency */, - 4F9388F4DEB1B74534B3754E88705B26 /* PBXTargetDependency */, - 66C28A13D97C9C346092B072029BA58F /* PBXTargetDependency */, - 52B54ADE77A4B8F029D40C7F6EC7D27B /* PBXTargetDependency */, - 282F7AE82F5459CBCAF3B846755E8ADD /* PBXTargetDependency */, - F0DEEDCF04A5A943D216CA78725B1A59 /* PBXTargetDependency */, - DC62D20C43EFDA514ADDD1CA3E5A3612 /* PBXTargetDependency */, - FFF415525CCA9E6451D7DC64BF8E9558 /* PBXTargetDependency */, - 6213BDDA0827311C7C0F66457FF159F6 /* PBXTargetDependency */, - 9F74AAB317F546683493B1AA32B41061 /* PBXTargetDependency */, - CB54F2A88C91D4157C8371E3352C28DB /* PBXTargetDependency */, - 26CB9F470F7056BE615723902FE526BA /* PBXTargetDependency */, - A9CF24640E6BAC3911BFD39EC8991A9B /* PBXTargetDependency */, + E89AD9B2AAA46B0E178A6E272491AC7B /* PBXTargetDependency */, + C6DEA2F355DDAA8CD26FC6BCF2CE2CD8 /* PBXTargetDependency */, + 515580A96C28D736E318AD8B9CA8513D /* PBXTargetDependency */, + AAD8609E181C2B0442DD333658E8EA01 /* PBXTargetDependency */, + 5C8503F756F5227E8FDC5A5B31833816 /* PBXTargetDependency */, + C40F3D244794FBF249368BB7D608669B /* PBXTargetDependency */, + 87BC35199606A06346D0F2E12987B8F5 /* PBXTargetDependency */, + 1DA0D3DECB5E53E95EBDEEC54BCBF8C9 /* PBXTargetDependency */, + 8985A5C6F877EDDDCCEEDB6FE1C65763 /* PBXTargetDependency */, + 5D512CDDECE08D6EB8C1FEE2A558F093 /* PBXTargetDependency */, + 31B33690C32A1A5E7B7EE4102B38D354 /* PBXTargetDependency */, + E6738C5B4A94D419012EFE813675DE80 /* PBXTargetDependency */, + 119CD9257650C8F3E3AB5FAB24C60BBC /* PBXTargetDependency */, + 694EBFCFE5B7EFEBFC0BB0E999209DD0 /* PBXTargetDependency */, + 21D625772F859CD480418A0D443CB26E /* PBXTargetDependency */, + F9C61D685E7CCE2F1A66C2DAAFD67FA0 /* PBXTargetDependency */, + CF8E1F8F524C48E8F16BDB0838D9CBA1 /* PBXTargetDependency */, + 2710EC0F6147DFD7D3B6E008585C6E8D /* PBXTargetDependency */, + 7319CE0A8949D426A1C24C9A93F3A724 /* PBXTargetDependency */, + 4130AEB7B40A8EC000A2FAE74050C278 /* PBXTargetDependency */, + 3F654E041EFFD7E4A6BEEC54682144A2 /* PBXTargetDependency */, + 3144191ADFF8006A186BC06692CE623A /* PBXTargetDependency */, + A73F25055DF0C00FF12600D76B76694A /* PBXTargetDependency */, + D5B2E9A35916623689AA5B20EC37EE62 /* PBXTargetDependency */, + 719D43B1F6561A0681CAEE804D5B83DB /* PBXTargetDependency */, + 917D7BC97516AB6C81501EF7C0315B1A /* PBXTargetDependency */, + 4CA0F767AB29087B6BB24F0265B68FED /* PBXTargetDependency */, + CD8BD421A753AFC40BEE65969F14C6D3 /* PBXTargetDependency */, + 54C40F514DA1AA1BBE5CAAD58E7430C1 /* PBXTargetDependency */, + E97F43A950F1DDCAFBFBF5371D6BEAFE /* PBXTargetDependency */, + C74D2266DF6B92ABE850BBCFC43D5353 /* PBXTargetDependency */, + 14D3F2073E463932B237848D309912F3 /* PBXTargetDependency */, + 00124DF04198497ED5928EB03F570BA7 /* PBXTargetDependency */, + E1BCBDF836A91E985DC17BA979BFF93D /* PBXTargetDependency */, + E2A1D81BF25B76321C07FA2E485097F5 /* PBXTargetDependency */, + 0EED76B59D84EE23D21E4BD78BDF4E69 /* PBXTargetDependency */, + A96E92B7C69F6632712D0D720C14DFA6 /* PBXTargetDependency */, + FEEAACF725BD6326C380C627CFA53474 /* PBXTargetDependency */, + 6E534AC51656B6D20761BACE7ECF675A /* PBXTargetDependency */, + C57FDA1CD41C66A9E7B3FBF9596FFD3A /* PBXTargetDependency */, + 81C883B6BC721F05BAF3B421388CFB20 /* PBXTargetDependency */, + F9E1E68FF3940F70EC5F954B59F0FD2D /* PBXTargetDependency */, + FA8D61F5C94060383F791AFF6F0703DF /* PBXTargetDependency */, + F95E5A173E395716EA61D25AE5C558E3 /* PBXTargetDependency */, + 5202EB563439B3485CFD513E06B0969B /* PBXTargetDependency */, + 12DDE1E23FD4A500E61039FF39BF4CA9 /* PBXTargetDependency */, + 6908C8159747D459F09C5B45B7D9D63B /* PBXTargetDependency */, + FBD7D7F1CECF4B785EC73A48B490523B /* PBXTargetDependency */, + 02A64EC01FA71FFE1E2967F3671C3085 /* PBXTargetDependency */, + 4A6B9D58A2425EF9BB0A304722846D88 /* PBXTargetDependency */, + 47EC00216550247F694E2B876DF21C0C /* PBXTargetDependency */, + 51681DC7F1049D02811DB62D943DFCBF /* PBXTargetDependency */, + B1C1B2CDF8657431E7AA5103888D2714 /* PBXTargetDependency */, + 1C8D72CC9F27A07876081386AFF1718C /* PBXTargetDependency */, + 3A4F48E0E3116A5F81D8F68C497D5388 /* PBXTargetDependency */, + C42B7A3431FD13DB3446721DDD24A681 /* PBXTargetDependency */, + D43F22324A776C0B990279AAEFC25831 /* PBXTargetDependency */, + FAAF3F965C73A4ACC2A01C2229DBD198 /* PBXTargetDependency */, + 9385CFAFF7F9CC98C744FCDCE1FD5F28 /* PBXTargetDependency */, + 8B539B88BF25BA2D13029B1F5F1DACB7 /* PBXTargetDependency */, + A76FFB6ED42158F00EB4D7B1306E3F8C /* PBXTargetDependency */, + 273B2A6ABE3DB0D71F2828CAC0A4676A /* PBXTargetDependency */, + 54F75E6099A065DA017E10C8FD99D335 /* PBXTargetDependency */, + 43A6F8933E434F8AB06EA20B3AEFA780 /* PBXTargetDependency */, + 6AA687972D5B9C2A08D78C3CFB32D393 /* PBXTargetDependency */, + 9ADE1BAED8535DD6BA917414CF91C97A /* PBXTargetDependency */, + 693BDCC27BA5D5615F723CC62BE6004F /* PBXTargetDependency */, + C242E3C019E7E2DEAF8969464AA78954 /* PBXTargetDependency */, + A1F1110B3D3811B7200D81612FB532CC /* PBXTargetDependency */, + 5473851770BE6755271DDA13AE8AADBB /* PBXTargetDependency */, + C88A8B82D5D24AF8CFFD0739E63C3AA1 /* PBXTargetDependency */, + 6188B3446A34C07F68CA906FEFB45E26 /* PBXTargetDependency */, + F8B7E351F57E8A75D7B861E039D7F89C /* PBXTargetDependency */, + 9A0CB6BC189A04220179CBE347C1C94B /* PBXTargetDependency */, + 5E619518C91566CF785D37CABD13275A /* PBXTargetDependency */, + CC2C7688AE816F310B69465F6ED6BC6A /* PBXTargetDependency */, + C098CD88744676AA8D083A9633A4D6C6 /* PBXTargetDependency */, + 2382C810376FE5880FC540DD4B0A0EB4 /* PBXTargetDependency */, + FE372AE80851EB343BCD58E07947DD7F /* PBXTargetDependency */, + 4E702A0E5F25EC2238DCC35695E47FBF /* PBXTargetDependency */, + 2B0FC868B4BFCC1BEC7D1D613F326C99 /* PBXTargetDependency */, + B90C85D48E82EB6C6EEAB20723246CC0 /* PBXTargetDependency */, + 961FC7A0AF365DD64E3B6F95E9E1AA25 /* PBXTargetDependency */, + 9AA0002B8ECFB31CE7841E63C977EDE4 /* PBXTargetDependency */, + 74D8D28436A92101959CD26896413D7C /* PBXTargetDependency */, + BF532084A55738EA82093DEF301EDD90 /* PBXTargetDependency */, + 8D4FBF6A1C1E294B25AEF774FCAF8EBB /* PBXTargetDependency */, + C124C5BBF64D79B9A05423918AC0393A /* PBXTargetDependency */, + 543828E6B6C8C1BF071B0F101B480A27 /* PBXTargetDependency */, + 09A2A600F7F34929B79F914E48B2CE9D /* PBXTargetDependency */, + 12FF05E7486E81DB78D558F57A9EE717 /* PBXTargetDependency */, + CCD115D543812EEDC8C0D4FC162B6F4F /* PBXTargetDependency */, + 8BDAB6B5EE7AB00C06A34FCE4AAD549C /* PBXTargetDependency */, + 40C7EFFACEC9D69D01EC18ECF0B83092 /* PBXTargetDependency */, + C3AEE1F58F81ECE6DFDAFB8777BD716E /* PBXTargetDependency */, + F6F02813495E85C2BB113E8803C0C450 /* PBXTargetDependency */, + 168259B977E6F5CE6EF6F3A56EF66B95 /* PBXTargetDependency */, + 5A392796F2FC1C1950E80009972E08E6 /* PBXTargetDependency */, + 769ABB6A356CA0F7B484871DC48C7296 /* PBXTargetDependency */, + 53E1200088B1D08155FAA0E6E73DD367 /* PBXTargetDependency */, ); name = "Pods-BareExpo"; productName = "Pods-BareExpo"; @@ -1131,280 +1211,304 @@ projectDirPath = ""; projectReferences = ( { - ProjectRef = 6790273ACF64FACB6F6C790F7465109B /* Amplitude-iOS */; + ProjectRef = 648B703B3FEA1D4E5B5392848855AD59 /* Amplitude-iOS */; + }, + { + ProjectRef = E9806A9518AD19378AACBF3FADC024BE /* Analytics */; + }, + { + ProjectRef = B6489F2AAAFD4294BC3EA8BF75C53B15 /* AppAuth */; + }, + { + ProjectRef = 6DB368A4FFC55518E43CFCA8665E3B97 /* DoubleConversion */; + }, + { + ProjectRef = 32287FE8909EA559B87F0BE031EFEEB4 /* EXAV */; + }, + { + ProjectRef = DB366ABF5B902BF910F0E243558A6613 /* EXAmplitude */; }, { - ProjectRef = 3561DE58B3DAAE4AA0D0BC1C630862FA /* Analytics */; + ProjectRef = BC76BA7251BF9D0F4AC530C6C6BC6EB4 /* EXAppAuth */; }, { - ProjectRef = 6FA7CD78D631158BDBE6D2A9C4FC19FB /* AppAuth */; + ProjectRef = F9BF3E822E62BA2DA6B80F67A08EAE7E /* EXAppLoaderProvider */; }, { - ProjectRef = EC64490903CB102FA5D88F9FD8D4873B /* DoubleConversion */; + ProjectRef = 0D6098692FC17794AEF2F1D8A8F00D91 /* EXApplication */; }, { - ProjectRef = 621E66BDF9658FBAEB7835F073CC1D58 /* EXAV */; + ProjectRef = E350957341019D55FC8A5CE6740447BA /* EXBarCodeScanner */; }, { - ProjectRef = 966D82943A84614F0D90E09EED82FC4A /* EXAmplitude */; + ProjectRef = A49BB27B31CA7D03A4FBE761AFED7196 /* EXBattery */; }, { - ProjectRef = 384191FF16B8310DB2CA32CE12714F26 /* EXAppAuth */; + ProjectRef = 532AE8FE83F221B01D364A40D203536B /* EXBluetooth */; }, { - ProjectRef = D58517F1F49DD7F710C941D73B419B5C /* EXAppLoaderProvider */; + ProjectRef = 0AD7853A1837E7DEFB2A83A67031830E /* EXBlur */; }, { - ProjectRef = EC8B540ED755EDCB2AE686784D3AF479 /* EXApplication */; + ProjectRef = 4793AC95ED7338DB1E580A372EE83163 /* EXBrightness */; }, { - ProjectRef = AFBF976B0EF04C9912E08179B68D2308 /* EXBarCodeScanner */; + ProjectRef = 57272EBFE157E7147B45FEC7E933AAA4 /* EXCalendar */; }, { - ProjectRef = 6FF66503720CEADA5339CA295727D2E6 /* EXBattery */; + ProjectRef = 58F2945BC762DFE6B0E3C29C45A3BF26 /* EXCellular */; }, { - ProjectRef = 7673391655AE15ABB96812EE718E18B3 /* EXBluetooth */; + ProjectRef = FCD0969E970831AB2E575CA402CE2295 /* EXConstants */; }, { - ProjectRef = 559D179071A592B620836CC4F14A9F63 /* EXBlur */; + ProjectRef = DE3635F59551385C3D96318A8453154F /* EXContacts */; }, { - ProjectRef = 00D632F97A746F8FBEE5FD654C95A5D4 /* EXBrightness */; + ProjectRef = AB54402287E17E9EF7094C62F7CE4741 /* EXCrypto */; }, { - ProjectRef = 66E0036061F06985A735F972DA873D82 /* EXCalendar */; + ProjectRef = 0F432CE44D487380D73BB0413BB4B2E4 /* EXDevice */; }, { - ProjectRef = 3A6F2FEF94FB5051D0E15E0E75E061CE /* EXCellular */; + ProjectRef = 8DC9BB30D810BD7F63004B47671D9422 /* EXDocumentPicker */; }, { - ProjectRef = 0F87C4C729C750646FF9170E107841D0 /* EXConstants */; + ProjectRef = 4417D0F846F371A48228D93F9C4004A3 /* EXErrorRecovery */; }, { - ProjectRef = 6F0ED87952B752BF2F6950D2DAB51472 /* EXContacts */; + ProjectRef = EDF220DEEEA89FFB81258DD0765708BA /* EXFacebook */; }, { - ProjectRef = 3E8F53A4E4A9F6D8E7270A1D59C0414A /* EXCrypto */; + ProjectRef = A5BCFF2FECB3E9CA53558264705551DC /* EXFileSystem */; }, { - ProjectRef = A9333E5CD08216B9D4D56A43F8AFFB5B /* EXDevice */; + ProjectRef = EBCDB3CAC82A6BD5D6ED8064031208DC /* EXFont */; }, { - ProjectRef = E3C83D9BB0BF020DE9E3EA402FF40418 /* EXDocumentPicker */; + ProjectRef = B87936B6D1D745F50282902ACB4D9B64 /* EXGL */; }, { - ProjectRef = D1D370A1C813FC6C49069D6F265F56E3 /* EXErrorRecovery */; + ProjectRef = 1F3457DC934AB39F8822439130F91A04 /* EXGL_CPP */; }, { - ProjectRef = 1EC4C5F6778FD0728D36B94A40185D7A /* EXFileSystem */; + ProjectRef = 29D9BFF3BABAD6B60F9CB521F210EC7F /* EXGoogleSignIn */; }, { - ProjectRef = B16FF31EB7B2D5E60E6685477B72EBC5 /* EXFont */; + ProjectRef = 17748CB38D03D6B562F3D28D2A82F507 /* EXHaptics */; }, { - ProjectRef = A528590EDEA69FCB74BFA09B141B4DBF /* EXGL */; + ProjectRef = 028510FBDD07C426362702FB25BC2674 /* EXImageManipulator */; }, { - ProjectRef = B1BC6698202B367C7B3129780457D544 /* EXGL_CPP */; + ProjectRef = 367FC219882F58106454F6164D9101B8 /* EXImagePicker */; }, { - ProjectRef = 9530BB032E863145DD427DBC06A82F68 /* EXGoogleSignIn */; + ProjectRef = 2B4C60A4CF9D5D0911DFE2EBEBEF2A64 /* EXKeepAwake */; }, { - ProjectRef = 58F5BF4DBAF85B453DD79DA82B862E0A /* EXHaptics */; + ProjectRef = DAECE8FFE0420F20ED8FD1748AE116AA /* EXLinearGradient */; }, { - ProjectRef = 5F89074EFF9BBFF30A654696E06822C7 /* EXImageManipulator */; + ProjectRef = CB2292AB35A47A791F831F4AF225CA7B /* EXLocalAuthentication */; }, { - ProjectRef = 081775E5E1E22CD733CEC31DEC05391D /* EXImagePicker */; + ProjectRef = B35A2DD969540A4FBA8FC5E3E3711FF4 /* EXLocalization */; }, { - ProjectRef = A82D7F91B76D88E3B3001116B85C6F8F /* EXKeepAwake */; + ProjectRef = 6A129792F6AC6F39A30276DFB1012FB8 /* EXLocation */; }, { - ProjectRef = C4691EC6027337FE88F7B6C142C79DA9 /* EXLinearGradient */; + ProjectRef = 41B3187CF83226A4ED2FFF90BD5D7C7A /* EXMailComposer */; }, { - ProjectRef = A90F97E439A7BC54338B0DC132FB389F /* EXLocalAuthentication */; + ProjectRef = C84C47E184849B7D9AC6C0D38141B1E5 /* EXMediaLibrary */; }, { - ProjectRef = 89B3742C40E8B4801826442347325BBF /* EXLocalization */; + ProjectRef = 7F3635F8E3A6C8C12E4FB32A57B791C3 /* EXNetwork */; }, { - ProjectRef = 469C509D4699E1DC0DF43F06F3A21FD4 /* EXMailComposer */; + ProjectRef = E87922AC96E27C352892DEA347CAE306 /* EXNotifications */; }, { - ProjectRef = AF0568DC623CE5D3D2E159457E57B21F /* EXMediaLibrary */; + ProjectRef = BB2B8455A52CEAFCD7E2BA273C867AF6 /* EXPermissions */; }, { - ProjectRef = 63CC2109E824718DD6CF3ECF2951714F /* EXNetwork */; + ProjectRef = 3A69AFA61F9AE2B6C390463C2D849D49 /* EXPrint */; }, { - ProjectRef = ED50116F92CAB9F1E06FE905363CE060 /* EXPermissions */; + ProjectRef = 63419B930CED31B6B521E7DFEDBCCBE3 /* EXRandom */; }, { - ProjectRef = 4971CAC7D488A21F083090F5DF77441A /* EXPrint */; + ProjectRef = 6A8F8A38A6EBB1A85C712C7CD94DF7E6 /* EXSMS */; }, { - ProjectRef = 9F278CA3578A1C7C742F5C39E58E8626 /* EXRandom */; + ProjectRef = A8D95FBB450113114379D9B8DC6AE9E6 /* EXSQLite */; }, { - ProjectRef = 59558382C9C14CEDEC8ECC99462044AC /* EXSMS */; + ProjectRef = 1ABA2F9DB27EEB127D2B44F77D80E9FA /* EXScreenOrientation */; }, { - ProjectRef = 9B3C09E1B51BE5C72B1178721DFB4736 /* EXSQLite */; + ProjectRef = 8D1C0347009A019C73B760A63553A050 /* EXSecureStore */; }, { - ProjectRef = EF2B74AE23B4D085A4D41634852D9E79 /* EXSecureStore */; + ProjectRef = 734E35010F312DA866258F281144DDBB /* EXSegment */; }, { - ProjectRef = 0CCA7AB54711A1C565D9146E86AF6FE5 /* EXSegment */; + ProjectRef = 9B0D84DCC3675059EE1DEE290D414797 /* EXSensors */; }, { - ProjectRef = D7D345E8C3BC6E50CBED042829BBF090 /* EXSensors */; + ProjectRef = F63E8AE401F9E57594E89C81CBCD2CD2 /* EXSharing */; }, { - ProjectRef = 1CA025FC93211998774902CC4663DD61 /* EXSharing */; + ProjectRef = C477AB069BA7A2B5E7743ABE2C1DE32C /* EXSpeech */; }, { - ProjectRef = 8C472FA03A74CA155968F8B7216E490A /* EXSpeech */; + ProjectRef = F8F6A765C08BE001FFEC291FFD0B7B1B /* EXStoreReview */; }, { - ProjectRef = 5C7101C48EADF48A3F01ADAD195A0608 /* EXStoreReview */; + ProjectRef = AB9308B145B0EE20F1CFB2FA33BBFA43 /* EXUpdates */; }, { - ProjectRef = 9F3B324040A71A156CE8681CBF0610AA /* EXUpdates */; + ProjectRef = 919DD36C8037C87460660033FA1FB459 /* EXWebBrowser */; }, { - ProjectRef = 1FBDB8F24C5539045D8AE87F927FB3EE /* EXWebBrowser */; + ProjectRef = 613915C22B33D342D403E3B8A576E656 /* FBLazyVector */; }, { - ProjectRef = C099422E2DC2875E807A665C97BCC571 /* FBLazyVector */; + ProjectRef = 806AE481AAC63041B1E0C53928347CFC /* FBReactNativeSpec */; }, { - ProjectRef = 7572990AACADFEEFE5EF8AF3A2415FD0 /* FBReactNativeSpec */; + ProjectRef = F3317B6E00903DEF65B688E84EA04AA3 /* FBSDKCoreKit */; }, { - ProjectRef = B2F742EBD46D881CC735F4D4A4260119 /* Folly */; + ProjectRef = 1AE3BB5F5D54D22FE5BA862EA879D388 /* FBSDKLoginKit */; }, { - ProjectRef = 8DD091FE677FB13DC171D90C021CA7DE /* GTMAppAuth */; + ProjectRef = B36E9FAACA53792605F96452B673FC3E /* Folly */; }, { - ProjectRef = F6C89811BEB495795C6F1B805FCF9133 /* GTMSessionFetcher */; + ProjectRef = D40E30349907EB2CAC16D5413DD38F88 /* GTMAppAuth */; }, { - ProjectRef = E17942621B3C5C442DAEF9E85EE80964 /* GoogleSignIn */; + ProjectRef = 9B246F48CB5A122EA4B98F3484607064 /* GTMSessionFetcher */; }, { - ProjectRef = 50C4358AD398837056C0C6E564E5FB45 /* RCTRequired */; + ProjectRef = 96404DAFB39B904B65654D85BD8668CF /* GoogleSignIn */; }, { - ProjectRef = 73E1515109725296D25100C06DA91793 /* RCTTypeSafety */; + ProjectRef = 28A8E6B2E9C4AA3ECCBFB8F59E8CBE7E /* RCTRequired */; }, { - ProjectRef = 228AECF796357BD0C17A0250B493CF46 /* RNGestureHandler */; + ProjectRef = AB72FC453FC8FCDB65215C6A29B623C5 /* RCTTypeSafety */; }, { - ProjectRef = 093F33B91AB6CCF24EC5B44C2168D6B7 /* RNReanimated */; + ProjectRef = 5E48ADA9F4115DD15FB8B04C72AAA18C /* RNGestureHandler */; }, { - ProjectRef = BB09D5AC4BEBC2617D9D95C54475FA09 /* React */; + ProjectRef = 2F6B8ED7FC0DB094DAFC937E963B53AB /* RNReanimated */; }, { - ProjectRef = 4B81D9E849F7B0FF699CF47FC7F2EC7B /* React-Core */; + ProjectRef = 744C586F992BC73441F3A007EC7F5B54 /* React */; }, { - ProjectRef = A3F4A301606C753818F89B954CBABFFA /* React-CoreModules */; + ProjectRef = D3007822DD388D7AED61CCE40DB8299E /* React-Core */; }, { - ProjectRef = 7C6CEDFBCA521989947F5B019C76054A /* React-RCTActionSheet */; + ProjectRef = A9F0EA02112C1410759ED7B18E4ED178 /* React-CoreModules */; }, { - ProjectRef = 93A314050AEE5C54490FF76731532B5D /* React-RCTAnimation */; + ProjectRef = F21461EEAA0C3C495E5F5ABCB5C8E4DD /* React-RCTActionSheet */; }, { - ProjectRef = 53B70B73EBA72F4DB54EFB1201B958D9 /* React-RCTBlob */; + ProjectRef = BA75409AF01E132DF73A84DC58ED9CBC /* React-RCTAnimation */; }, { - ProjectRef = 04AF6CFC908ABC897934A123721DCDC8 /* React-RCTImage */; + ProjectRef = BFCBB5E4C373A5CB4C868188E865FBEE /* React-RCTBlob */; }, { - ProjectRef = FC694360F93EB50AF01BD9AD3DDF6F63 /* React-RCTLinking */; + ProjectRef = 52DFD8647635F87F245438504749FCC1 /* React-RCTImage */; }, { - ProjectRef = C3F1268A122894A50E585D0D43F60664 /* React-RCTNetwork */; + ProjectRef = 9151F4F90118DE4FA6415049E28F4FC0 /* React-RCTLinking */; }, { - ProjectRef = 00E9EF1B95C123998456AA100CE87025 /* React-RCTSettings */; + ProjectRef = F0C77BD27BDF7E594F43AF05F5743624 /* React-RCTNetwork */; }, { - ProjectRef = B95E106A906DA6BC3B1AE32B1476EC96 /* React-RCTText */; + ProjectRef = D7BCD95D57E91980DABACBEE33C53F5B /* React-RCTSettings */; }, { - ProjectRef = 2AFEBA4AE1BF044913C3A1F0ABCD7BEF /* React-RCTVibration */; + ProjectRef = 63AFE2321630B64E239BD4FE06EE565A /* React-RCTText */; }, { - ProjectRef = 5C0692C4DCE5A6E01C6809F60A6FBB6E /* React-cxxreact */; + ProjectRef = 4C38EADABC71E8FCD0D0C21208E66AB0 /* React-RCTVibration */; }, { - ProjectRef = 01CFA74EFC65BCFDF41AE2DB0615EED8 /* React-jsi */; + ProjectRef = 0B3C4BF30FEC3C6FC0AD89B0BA54A280 /* React-cxxreact */; }, { - ProjectRef = C2EA603A6A2597676F274428E05872B9 /* React-jsiexecutor */; + ProjectRef = 8D3F494609660A9976C0CBECB32878DE /* React-jsi */; }, { - ProjectRef = 0143F693E54C76D9CEC9B89D39EA738C /* React-jsinspector */; + ProjectRef = F3D5998B4E1333078B0389FCF02CF059 /* React-jsiexecutor */; }, { - ProjectRef = 11A32ED6BFC7435B83A74B68227CF672 /* ReactCommon */; + ProjectRef = 49BCB2310E7F2764FA35F2ADBF28C1C1 /* React-jsinspector */; }, { - ProjectRef = A14282E7B246C428EDC564624DBDD9BF /* UMBarCodeScannerInterface */; + ProjectRef = 5D1A3E7921F16C6998A178F14203488E /* ReactCommon */; }, { - ProjectRef = BAD136761E20C0CF271C8994F81BE4E8 /* UMCameraInterface */; + ProjectRef = 880745B0BF2869013DCF6F5272A6C282 /* UMBarCodeScannerInterface */; }, { - ProjectRef = 24C2C1248498064540A1A0795384B075 /* UMConstantsInterface */; + ProjectRef = 548C6D1EAF5FD5B8277E902EF8D8C809 /* UMCameraInterface */; }, { - ProjectRef = 6F2506A46EAB2A974A4A198BF26B5D11 /* UMCore */; + ProjectRef = 45DF12DEF0D620B4F106B4264EA94709 /* UMConstantsInterface */; }, { - ProjectRef = A1A9EF9126D232C7848495ED0D34FC82 /* UMFileSystemInterface */; + ProjectRef = D3F5ECCAD8206B378D462C5E7C18391B /* UMCore */; }, { - ProjectRef = 10773CD4E5B8A755D9E0D42FC649AEB4 /* UMFontInterface */; + ProjectRef = 6F823C3D3609BA3F73C6914A93204198 /* UMFileSystemInterface */; }, { - ProjectRef = D06CF6E8B5CE7D5A760E443475289B14 /* UMImageLoaderInterface */; + ProjectRef = CA86B18283BEF50B0CFE3D6BABE479DC /* UMFontInterface */; }, { - ProjectRef = F93842B2AFB5431663D17D6C8B0DAD27 /* UMPermissionsInterface */; + ProjectRef = 5076B2C7CB15FDFF5CEEF8B98579FA9C /* UMImageLoaderInterface */; }, { - ProjectRef = D5E45FC61A6D2D7E3F46F8A281EA7F64 /* UMReactNativeAdapter */; + ProjectRef = 562926705A6BA55DDDA865D33DB80786 /* UMPermissionsInterface */; }, { - ProjectRef = 4B8658D487323D6EEE125B5F57F06468 /* UMSensorsInterface */; + ProjectRef = 25B48C2B48A70691DB4ED0F658074A71 /* UMReactNativeAdapter */; }, { - ProjectRef = 068283BA3523101E0BA7F90CEB90A6A1 /* Yoga */; + ProjectRef = 7EF954789AD4972DE673DC049A4FBDD5 /* UMSensorsInterface */; }, { - ProjectRef = 9946A17BD11A68F7A944498FD73C8413 /* ZXingObjC */; + ProjectRef = 15879A6E5BC166609C93EAE4B9D555B8 /* UMTaskManagerInterface */; }, { - ProjectRef = 06A760ACB1990444FA093A6D7A8AC2EB /* boost-for-react-native */; + ProjectRef = F73C3980F192C17101FEF5D1587028C0 /* Yoga */; }, { - ProjectRef = 21907930CDED304581AE9F8EF737DFC3 /* glog */; + ProjectRef = B888E1CADEF1F453D8C2C1EC7D3F7022 /* ZXingObjC */; }, { - ProjectRef = 86F0EA4A0FCDB3FC734AE64574A90EBC /* react-native-safe-area-context */; + ProjectRef = E557148B1E43DC418D43AC23E1DF3514 /* boost-for-react-native */; + }, + { + ProjectRef = A24AB511B9A02D0046526CA99BE62D6F /* glog */; + }, + { + ProjectRef = B8562EDFEFFC0A2AA052540A9735F72F /* react-native-appearance */; + }, + { + ProjectRef = 1844B8F791B232FD2413D0CBEDAD6639 /* react-native-safe-area-context */; }, ); projectRoot = ""; @@ -1416,11 +1520,11 @@ /* End PBXProject section */ /* Begin PBXSourcesBuildPhase section */ - 0B99572B5B1932951237131C16FBB9C7 /* Sources */ = { + 3E461D58EAE65B378FA17D15FCDDB5CB /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 27B74A7EF0716B4AF7ECCB2F8E04A0B3 /* Pods-BareExpo-dummy.m in Sources */, + D048043286EE00D80F5297069A388385 /* Pods-BareExpo-dummy.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1435,415 +1539,430 @@ /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ - 067EEBB3B5DDD40A466FBB4557C0F507 /* PBXTargetDependency */ = { + 00124DF04198497ED5928EB03F570BA7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = RCTRequired; - targetProxy = 7FC8F2D1B333FC5EADC4FBA1AB7EBFB5 /* PBXContainerItemProxy */; + name = EXLinearGradient; + targetProxy = EBBC3F9301F7E6298F1177298D212AF0 /* PBXContainerItemProxy */; }; - 06E7A26C669DC0234C327B2516735C98 /* PBXTargetDependency */ = { + 02A64EC01FA71FFE1E2967F3671C3085 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = GTMSessionFetcher; - targetProxy = C0D1C19DEA5D365061FF4508B4800EF2 /* PBXContainerItemProxy */; + name = EXSensors; + targetProxy = A7F8EF954470074CB2F507941F391170 /* PBXContainerItemProxy */; }; - 0B3198B72438B14E12C3547AEFF35817 /* PBXTargetDependency */ = { + 09A2A600F7F34929B79F914E48B2CE9D /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXBarCodeScanner; - targetProxy = AD6B10B33B18CA4A347E896D47BF322A /* PBXContainerItemProxy */; + name = UMImageLoaderInterface; + targetProxy = CEF29764949491E2E78E73D20DF088B5 /* PBXContainerItemProxy */; }; - 0C6704A85B88110C459780D3DC0D42AE /* PBXTargetDependency */ = { + 0EED76B59D84EE23D21E4BD78BDF4E69 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXCellular; - targetProxy = 747EAA46A036A88E6C075D7CAC73D253 /* PBXContainerItemProxy */; + name = EXLocation; + targetProxy = CEFF7083374F05AB22AE8C4E42DB549F /* PBXContainerItemProxy */; }; - 0E3EDD0C0CAB8AC18DE1EB33B5A1A82E /* PBXTargetDependency */ = { + 119CD9257650C8F3E3AB5FAB24C60BBC /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = "React-jsi"; - targetProxy = DF4AEE3244EB84A881866AE1F00F702A /* PBXContainerItemProxy */; + name = EXBlur; + targetProxy = 23804B41C307E4E5CFFC4374F20F1A63 /* PBXContainerItemProxy */; }; - 162A14750937C65A2A4729155712F26E /* PBXTargetDependency */ = { + 12DDE1E23FD4A500E61039FF39BF4CA9 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXLocalization; - targetProxy = 2310E33AFE5DCF99B3982C7E4D4D7BDD /* PBXContainerItemProxy */; + name = EXScreenOrientation; + targetProxy = CE8BE7266599EE209B6BDDB2EA99080F /* PBXContainerItemProxy */; }; - 216CEB250607CD8D1847439AA9943219 /* PBXTargetDependency */ = { + 12FF05E7486E81DB78D558F57A9EE717 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXAmplitude; - targetProxy = D7FFDD3F5095036FF7AF5F5D29EFB1BE /* PBXContainerItemProxy */; + name = UMPermissionsInterface; + targetProxy = 70CEAA0E5E48CCBEBCA674C9EC33DD90 /* PBXContainerItemProxy */; }; - 24B0592F7CE999C10F5252F040275E53 /* PBXTargetDependency */ = { + 14D3F2073E463932B237848D309912F3 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXHaptics; - targetProxy = 2F6A828F617177C24C91AFE67336840B /* PBXContainerItemProxy */; + name = EXKeepAwake; + targetProxy = E75F0774263447E68A119EF9BBBD3956 /* PBXContainerItemProxy */; }; - 254CD38753A6118FF2B524C09C120314 /* PBXTargetDependency */ = { + 168259B977E6F5CE6EF6F3A56EF66B95 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = FBLazyVector; - targetProxy = 84CBD0CEF3538AC641BB40C36876BD81 /* PBXContainerItemProxy */; + name = "boost-for-react-native"; + targetProxy = 161B6A8FB28E113D0EBCF5E10E1A7D68 /* PBXContainerItemProxy */; }; - 26CB9F470F7056BE615723902FE526BA /* PBXTargetDependency */ = { + 1C8D72CC9F27A07876081386AFF1718C /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = glog; - targetProxy = BC8167D94C315BAC5226405FC6608AA7 /* PBXContainerItemProxy */; + name = EXWebBrowser; + targetProxy = 4BC70053FB27F78AB142A3E72D93A65C /* PBXContainerItemProxy */; }; - 26D2DAA1BEB626B4F3074DA792E9E049 /* PBXTargetDependency */ = { + 1DA0D3DECB5E53E95EBDEEC54BCBF8C9 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXNetwork; - targetProxy = EDE74689F85B5DC963E8E16C1B164F4E /* PBXContainerItemProxy */; + name = EXAppLoaderProvider; + targetProxy = D91DEC5036E9F24F961DDA411BB4057B /* PBXContainerItemProxy */; }; - 282F7AE82F5459CBCAF3B846755E8ADD /* PBXTargetDependency */ = { + 21D625772F859CD480418A0D443CB26E /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = UMImageLoaderInterface; - targetProxy = B302FD2BB02B0AAD96BDC1C6DB19E566 /* PBXContainerItemProxy */; + name = EXCalendar; + targetProxy = 30CE0F50F4676E343CCA6632A4BC9B72 /* PBXContainerItemProxy */; }; - 37D3D1A9C752C5DCC821B584FF3A1207 /* PBXTargetDependency */ = { + 2382C810376FE5880FC540DD4B0A0EB4 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = "React-RCTActionSheet"; - targetProxy = 35855868F9E27821A58D859456185065 /* PBXContainerItemProxy */; + name = "React-RCTVibration"; + targetProxy = 8957DF83A65ECAAB163645E7E269360E /* PBXContainerItemProxy */; }; - 3B41B5F91EC84A9F522A725288F03622 /* PBXTargetDependency */ = { + 2710EC0F6147DFD7D3B6E008585C6E8D /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXAppLoaderProvider; - targetProxy = A8F91F7C4377813388AE4D2DDB3F6CA4 /* PBXContainerItemProxy */; + name = EXContacts; + targetProxy = B29741066BF24BB7A47AC5014BE40D9A /* PBXContainerItemProxy */; }; - 3C1825C8E667A847B094BC84710EB57D /* PBXTargetDependency */ = { + 273B2A6ABE3DB0D71F2828CAC0A4676A /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXBluetooth; - targetProxy = DDFE0FA34D9552D9D2E63BB7DDC37FB3 /* PBXContainerItemProxy */; + name = GoogleSignIn; + targetProxy = D11ED4DA8F2D334EB104CB81C3FD1C00 /* PBXContainerItemProxy */; }; - 3D13AD9A803C789A67D93CB50870AE39 /* PBXTargetDependency */ = { + 2B0FC868B4BFCC1BEC7D1D613F326C99 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = UMBarCodeScannerInterface; - targetProxy = 05B0119097CB972CC8342F1A43F98833 /* PBXContainerItemProxy */; + name = "React-jsiexecutor"; + targetProxy = B3829100D9CE5D56B03664973C0EE009 /* PBXContainerItemProxy */; }; - 3ECE96F17B686C020335F76E3191E00C /* PBXTargetDependency */ = { + 3144191ADFF8006A186BC06692CE623A /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXCrypto; - targetProxy = BAD1DF73985CE89817BFA6C0543F3D03 /* PBXContainerItemProxy */; + name = EXErrorRecovery; + targetProxy = F109A81406C0F017C3F7057EA877B4AF /* PBXContainerItemProxy */; }; - 412783A91C9AF4D6972DFA2F62A8C1A1 /* PBXTargetDependency */ = { + 31B33690C32A1A5E7B7EE4102B38D354 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = FBReactNativeSpec; - targetProxy = 65CCF35240ECB03F58B9E1E002B5E477 /* PBXContainerItemProxy */; + name = EXBattery; + targetProxy = 18E0CC09A55A0E056B48D5BEE7C10083 /* PBXContainerItemProxy */; }; - 424DBC0AAC3F2A89B819DB3A1BE2BD7E /* PBXTargetDependency */ = { + 3A4F48E0E3116A5F81D8F68C497D5388 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXSharing; - targetProxy = 8E0663814249A4ADFF8E7A4A5345A03A /* PBXContainerItemProxy */; + name = FBLazyVector; + targetProxy = EE3B12645C7BAC4C32B1EEA5E2014E36 /* PBXContainerItemProxy */; }; - 45148C8779E18C0083EC9DE6AF0CD38E /* PBXTargetDependency */ = { + 3F654E041EFFD7E4A6BEEC54682144A2 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXDevice; - targetProxy = A2F13C125416EB21F8FAEE2465DAC2AB /* PBXContainerItemProxy */; + name = EXDocumentPicker; + targetProxy = 72E9FEC79A7A854CF4362E1F993D1DD1 /* PBXContainerItemProxy */; }; - 46F8894ECF5069E01E4352102610933F /* PBXTargetDependency */ = { + 40C7EFFACEC9D69D01EC18ECF0B83092 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = "React-CoreModules"; - targetProxy = 865D575A281702845E263A55EB18538C /* PBXContainerItemProxy */; + name = UMTaskManagerInterface; + targetProxy = D35407826CC833DAFA20F3624B65DF43 /* PBXContainerItemProxy */; }; - 47096324E65A4400F049734DD6E59F2B /* PBXTargetDependency */ = { + 4130AEB7B40A8EC000A2FAE74050C278 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = "React-Core"; - targetProxy = 431AF7D2922ED0E18BFF9D7C0FA1633D /* PBXContainerItemProxy */; + name = EXDevice; + targetProxy = E49A8AAB078F637FC3942978B757700F /* PBXContainerItemProxy */; }; - 49ED00B0339E6859EE2CF1B4112EBA9C /* PBXTargetDependency */ = { + 43A6F8933E434F8AB06EA20B3AEFA780 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXAV; - targetProxy = 7EF30E0E4FFCDBEEAF279262F6874A60 /* PBXContainerItemProxy */; + name = RCTTypeSafety; + targetProxy = C8172F35AE6ECD42DF515C181EA28B3B /* PBXContainerItemProxy */; }; - 4B0B0B6F3B87CDE371502EF81AF50391 /* PBXTargetDependency */ = { + 47EC00216550247F694E2B876DF21C0C /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXSMS; - targetProxy = 9BDC84B84E26F07933C0332937E97893 /* PBXContainerItemProxy */; + name = EXSpeech; + targetProxy = 57E34B84ED152831EEF9E3F2F781FE0E /* PBXContainerItemProxy */; }; - 4C1B6D1DAD6D319DF2CD230DBC3D0A5C /* PBXTargetDependency */ = { + 4A6B9D58A2425EF9BB0A304722846D88 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = RNReanimated; - targetProxy = 04D4A9C49B1150F6E441E4B21B87FE46 /* PBXContainerItemProxy */; + name = EXSharing; + targetProxy = 3465CC1ED2A6D4179FA84C63F206B6C9 /* PBXContainerItemProxy */; }; - 4C7C9F601F826720D3382337E1A187B8 /* PBXTargetDependency */ = { + 4CA0F767AB29087B6BB24F0265B68FED /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = "React-RCTImage"; - targetProxy = 07AE4300B905F05CED560E1C5437466E /* PBXContainerItemProxy */; + name = EXGL_CPP; + targetProxy = F8CCB4F99EB45D741C47BE7599221635 /* PBXContainerItemProxy */; }; - 4F80E27CCDD9788CB333ACE8F8A59297 /* PBXTargetDependency */ = { + 4E702A0E5F25EC2238DCC35695E47FBF /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = "React-jsiexecutor"; - targetProxy = C793E8E284B01FE1C42765785C913284 /* PBXContainerItemProxy */; + name = "React-jsi"; + targetProxy = EF6DEEC90B3D37F46DAAF41804D706AE /* PBXContainerItemProxy */; }; - 4F9388F4DEB1B74534B3754E88705B26 /* PBXTargetDependency */ = { + 515580A96C28D736E318AD8B9CA8513D /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = UMCore; - targetProxy = 5C9524D6AB93120FF7D58A9461D45112 /* PBXContainerItemProxy */; + name = AppAuth; + targetProxy = EF3F7D04A9BA0A99BA80736D068FC8CA /* PBXContainerItemProxy */; }; - 52B54ADE77A4B8F029D40C7F6EC7D27B /* PBXTargetDependency */ = { + 51681DC7F1049D02811DB62D943DFCBF /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = UMFontInterface; - targetProxy = A4861781D8FFCA47636C2B2572BBA817 /* PBXContainerItemProxy */; + name = EXStoreReview; + targetProxy = 71DD81E87F8726C11B57AE5353EFD2B6 /* PBXContainerItemProxy */; }; - 53034382723F052DDE13043CAE339AD1 /* PBXTargetDependency */ = { + 5202EB563439B3485CFD513E06B0969B /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = "React-RCTBlob"; - targetProxy = C6775EA6E67262174AE3F8EB9BC04527 /* PBXContainerItemProxy */; + name = EXSQLite; + targetProxy = FF340F2F27ED8E04E3F998DC53821245 /* PBXContainerItemProxy */; }; - 5310F632D43BB2D1B1B6F890ED3F0885 /* PBXTargetDependency */ = { + 53E1200088B1D08155FAA0E6E73DD367 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXDocumentPicker; - targetProxy = A75B4DE316B3C94CC37B4A662123569C /* PBXContainerItemProxy */; + name = "react-native-safe-area-context"; + targetProxy = 59A20CF6E51B8B54046DCC7E7667E91D /* PBXContainerItemProxy */; }; - 535FEE6DEE208FC493B372D9576C8AC2 /* PBXTargetDependency */ = { + 543828E6B6C8C1BF071B0F101B480A27 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = "React-RCTNetwork"; - targetProxy = F7CA9DF8CB84759BCCD92D51371A60EE /* PBXContainerItemProxy */; + name = UMFontInterface; + targetProxy = FCB74D1A1F37D3573639B3759236AF81 /* PBXContainerItemProxy */; }; - 57D398309C4C6FD51F9130573985A66F /* PBXTargetDependency */ = { + 5473851770BE6755271DDA13AE8AADBB /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXContacts; - targetProxy = E22601FB7D527CB7700F5EF31658A6BD /* PBXContainerItemProxy */; + name = "React-RCTActionSheet"; + targetProxy = 0405F4A097AD35FB0E3CB4FEB83D4BBF /* PBXContainerItemProxy */; }; - 5CC4BF5204B9D14211D9845D3CCE8B3A /* PBXTargetDependency */ = { + 54C40F514DA1AA1BBE5CAAD58E7430C1 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = DoubleConversion; - targetProxy = 3B6AAB8218C95833AC4ECBF0FCFC644F /* PBXContainerItemProxy */; + name = EXHaptics; + targetProxy = 317995DF52A9038396E6E44CCD69D58C /* PBXContainerItemProxy */; }; - 5E5513B0C5190451B739B75885958F81 /* PBXTargetDependency */ = { + 54F75E6099A065DA017E10C8FD99D335 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXBattery; - targetProxy = 3C1A537234950AB8ECD1F34B075F0F28 /* PBXContainerItemProxy */; + name = RCTRequired; + targetProxy = F0A045A70740B7055CCEDCEDBEBE64B2 /* PBXContainerItemProxy */; }; - 6213BDDA0827311C7C0F66457FF159F6 /* PBXTargetDependency */ = { + 5A392796F2FC1C1950E80009972E08E6 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = Yoga; - targetProxy = DC0A99BF800318FF2591A3C3BF67AA2A /* PBXContainerItemProxy */; + name = glog; + targetProxy = 4649A782136CF799AAF74D18722F4CA6 /* PBXContainerItemProxy */; }; - 62DBCD1EAB8D4CDB7E9A7CC0D50DBF17 /* PBXTargetDependency */ = { + 5C8503F756F5227E8FDC5A5B31833816 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXMailComposer; - targetProxy = 834482237C0D29D3B0A986E0108F44E8 /* PBXContainerItemProxy */; + name = EXAV; + targetProxy = 89D42D2DF9380EC3946BD8422943EC97 /* PBXContainerItemProxy */; }; - 66C28A13D97C9C346092B072029BA58F /* PBXTargetDependency */ = { + 5D512CDDECE08D6EB8C1FEE2A558F093 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = UMFileSystemInterface; - targetProxy = 0353DEE60CB234F82C58A10CDC031E88 /* PBXContainerItemProxy */; + name = EXBarCodeScanner; + targetProxy = 3A29C2A5F40E206CEF3A4F11D2F68914 /* PBXContainerItemProxy */; }; - 68583D60CD1D2FCEE73CF16A926196A3 /* PBXTargetDependency */ = { + 5E619518C91566CF785D37CABD13275A /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = Analytics; - targetProxy = 8A898395EFE24E3518D6ACE4807A4410 /* PBXContainerItemProxy */; + name = "React-RCTNetwork"; + targetProxy = 4E465CF19C25051DDB02E75F8C745B51 /* PBXContainerItemProxy */; + }; + 6188B3446A34C07F68CA906FEFB45E26 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = "React-RCTBlob"; + targetProxy = 6B8B11932675B5547BEC09710436D074 /* PBXContainerItemProxy */; }; - 69FD5C53F5ECA3ED4DEC576EC605C19A /* PBXTargetDependency */ = { + 6908C8159747D459F09C5B45B7D9D63B /* PBXTargetDependency */ = { isa = PBXTargetDependency; name = EXSecureStore; - targetProxy = 1E3E312EFD96A12407172E96E9390F77 /* PBXContainerItemProxy */; + targetProxy = DA5D9F8732B9F4954876C84F06BD6E7E /* PBXContainerItemProxy */; }; - 6B4B82E9706935B9950B575B6C1B42B3 /* PBXTargetDependency */ = { + 693BDCC27BA5D5615F723CC62BE6004F /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXFileSystem; - targetProxy = 9AF5A7B953E92F6D2EFF76EFFDE4DE59 /* PBXContainerItemProxy */; + name = React; + targetProxy = 7D1C46E9948C3789258CE3CAA340AC9D /* PBXContainerItemProxy */; }; - 6DA363B8D5958C02C2899867D87A3604 /* PBXTargetDependency */ = { + 694EBFCFE5B7EFEBFC0BB0E999209DD0 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = ReactCommon; - targetProxy = C7B8E4638B3FEEE41A30B79BCD5A66A2 /* PBXContainerItemProxy */; + name = EXBrightness; + targetProxy = 7DD266D754E1A0A5BD1D80951C814FB6 /* PBXContainerItemProxy */; }; - 76648E6385C38D92D9919DD8BEFB72FA /* PBXTargetDependency */ = { + 6AA687972D5B9C2A08D78C3CFB32D393 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXKeepAwake; - targetProxy = F6613DD846BED619D89CA5871B5D76BE /* PBXContainerItemProxy */; + name = RNGestureHandler; + targetProxy = FA934422E308662123FD3B0323EAB2D1 /* PBXContainerItemProxy */; }; - 76FC85DADC17FF90C5FDD5EBC9DB22F8 /* PBXTargetDependency */ = { + 6E534AC51656B6D20761BACE7ECF675A /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXLocalAuthentication; - targetProxy = B060D0AFB1E0CC3F9EFAB39BBB472BDE /* PBXContainerItemProxy */; + name = EXNetwork; + targetProxy = C0018AC451953D6A97955CF80F42689B /* PBXContainerItemProxy */; }; - 7AEE79031110CDCCD4AC9582EE18DBF1 /* PBXTargetDependency */ = { + 719D43B1F6561A0681CAEE804D5B83DB /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXGL_CPP; - targetProxy = 39B15604EA16A09A49DA569249C7AA83 /* PBXContainerItemProxy */; + name = EXFont; + targetProxy = 7E8F78161CE2C954B22D11621E6B22CA /* PBXContainerItemProxy */; }; - 7ED59F0C6BB5C3C97A81252A98FDD60D /* PBXTargetDependency */ = { + 7319CE0A8949D426A1C24C9A93F3A724 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXBlur; - targetProxy = 138B551B7760FEF12E9588FB05659D94 /* PBXContainerItemProxy */; + name = EXCrypto; + targetProxy = 0636EC48634AD7EEA714CE84C5A038D4 /* PBXContainerItemProxy */; }; - 835E57D62A25653590E6A4879FE2E498 /* PBXTargetDependency */ = { + 74D8D28436A92101959CD26896413D7C /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXCalendar; - targetProxy = 0D95C376406A62ADA46606B0D3771DE2 /* PBXContainerItemProxy */; + name = UMCameraInterface; + targetProxy = 2FAF6386ED9ACD175E6ADD0442D3D0F3 /* PBXContainerItemProxy */; }; - 856A79330ECD4101A00DA78356547395 /* PBXTargetDependency */ = { + 769ABB6A356CA0F7B484871DC48C7296 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = React; - targetProxy = BC28539A09791D00B0BBE33A1BFCC04F /* PBXContainerItemProxy */; + name = "react-native-appearance"; + targetProxy = E0A40B96AF1D9CFA4D1C5ACE15965333 /* PBXContainerItemProxy */; }; - 85BB7A1710A8F651EDD241F7D71D9490 /* PBXTargetDependency */ = { + 81C883B6BC721F05BAF3B421388CFB20 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXStoreReview; - targetProxy = 9B902F5A4F54D64F86DDBD98FFC44F69 /* PBXContainerItemProxy */; + name = EXPermissions; + targetProxy = E5CF8515C96B23F81A9028223C4E88AF /* PBXContainerItemProxy */; }; - 86A336B574906E89C02F69D66AC2808D /* PBXTargetDependency */ = { + 87BC35199606A06346D0F2E12987B8F5 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXSpeech; - targetProxy = 9B46D48EFD5EF68D89130936A94F0CD3 /* PBXContainerItemProxy */; + name = EXAppAuth; + targetProxy = 1959B8BC235410AC26DF249F5F6D9D17 /* PBXContainerItemProxy */; }; - 8761BD1357846AC44DF8B0AD3BC395E4 /* PBXTargetDependency */ = { + 8985A5C6F877EDDDCCEEDB6FE1C65763 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = UMCameraInterface; - targetProxy = B4151C4687EFC1E5E85C4622E62BABAA /* PBXContainerItemProxy */; + name = EXApplication; + targetProxy = EA4C77C77D5AF09E4E29512BB1AB388E /* PBXContainerItemProxy */; }; - 87B2B4711BCBD138FCB4F284EA4C8BC6 /* PBXTargetDependency */ = { + 8B539B88BF25BA2D13029B1F5F1DACB7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = "React-cxxreact"; - targetProxy = D1E465D8EE4E1BB41A4F686819B41C3F /* PBXContainerItemProxy */; + name = GTMAppAuth; + targetProxy = E21B19D1EECD587DFE8C27902E323A8F /* PBXContainerItemProxy */; }; - 88ABB33EF0314C0E1DE20E898CE4A48A /* PBXTargetDependency */ = { + 8BDAB6B5EE7AB00C06A34FCE4AAD549C /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXRandom; - targetProxy = B621C005B2348C73A36A9F050EF3AAEC /* PBXContainerItemProxy */; + name = UMSensorsInterface; + targetProxy = 852AD89941AC9B5D8F9DE7EF1F79149F /* PBXContainerItemProxy */; }; - 8B21978C9FB81332E24D4A9F14A03B76 /* PBXTargetDependency */ = { + 8D4FBF6A1C1E294B25AEF774FCAF8EBB /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = RNGestureHandler; - targetProxy = 0FAD10CD5AEBC9229D69C5193AA1996D /* PBXContainerItemProxy */; + name = UMCore; + targetProxy = 0B9BDFD168CF2EC2E311A06D9A5EA1E9 /* PBXContainerItemProxy */; }; - 8D73DF6AB515BDCAAA2E924F15FD7543 /* PBXTargetDependency */ = { + 917D7BC97516AB6C81501EF7C0315B1A /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXPrint; - targetProxy = ECE72C945FEE79C19347B366A6114888 /* PBXContainerItemProxy */; + name = EXGL; + targetProxy = 5ED2D62D2C4191691450A5D9B8ECEA77 /* PBXContainerItemProxy */; }; - 91231C8705F62ADF08EF987BC7F7F23A /* PBXTargetDependency */ = { + 9385CFAFF7F9CC98C744FCDCE1FD5F28 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXLinearGradient; - targetProxy = 72CCD3670C80EA569EAE6696701FE495 /* PBXContainerItemProxy */; + name = Folly; + targetProxy = 392FF9B21FAECF798982D7FBF522D284 /* PBXContainerItemProxy */; }; - 919D9299543E75927B76412AF77C67EB /* PBXTargetDependency */ = { + 961FC7A0AF365DD64E3B6F95E9E1AA25 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXImagePicker; - targetProxy = B142D18C098B8F928A3B28E83EE06A70 /* PBXContainerItemProxy */; + name = ReactCommon; + targetProxy = C53E508788BE65F7D2626D9B63515E12 /* PBXContainerItemProxy */; }; - 91D2A06942280D2149E8D2FECE2139DA /* PBXTargetDependency */ = { + 9A0CB6BC189A04220179CBE347C1C94B /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = "Amplitude-iOS"; - targetProxy = 67D78E6479226F565CE530FAD81A8B39 /* PBXContainerItemProxy */; + name = "React-RCTLinking"; + targetProxy = D4A62F625EA68CC4AFD77F70C7D638DF /* PBXContainerItemProxy */; }; - 94930F6A17DE516441EAB3E4B56FDE83 /* PBXTargetDependency */ = { + 9AA0002B8ECFB31CE7841E63C977EDE4 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXGL; - targetProxy = 0E638FE83654AAA0102A8CC346914D53 /* PBXContainerItemProxy */; + name = UMBarCodeScannerInterface; + targetProxy = DE153422E8A853A19780B063001475B9 /* PBXContainerItemProxy */; }; - 983CF6E21DB008E9A79C819012FBC053 /* PBXTargetDependency */ = { + 9ADE1BAED8535DD6BA917414CF91C97A /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = GTMAppAuth; - targetProxy = 415E5BEBE0E75178ADED5451DEB88B6F /* PBXContainerItemProxy */; + name = RNReanimated; + targetProxy = 812364E6BE60DF4694A42CF77D200DC6 /* PBXContainerItemProxy */; }; - 9C1FA1598D376386D6CD15F13B05F844 /* PBXTargetDependency */ = { + A1F1110B3D3811B7200D81612FB532CC /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXUpdates; - targetProxy = E6029B48C29AAF21C67710BD18B592A9 /* PBXContainerItemProxy */; + name = "React-CoreModules"; + targetProxy = A00263DC5A8C3323E9CCB49428A86F40 /* PBXContainerItemProxy */; }; - 9F74AAB317F546683493B1AA32B41061 /* PBXTargetDependency */ = { + A73F25055DF0C00FF12600D76B76694A /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = ZXingObjC; - targetProxy = 10F882494F1E53F051D53F1647C0F700 /* PBXContainerItemProxy */; + name = EXFacebook; + targetProxy = 3D2FAC233B6F77DCEEA59C35FE5F3365 /* PBXContainerItemProxy */; }; - A72A154D15AD1504DEE8CE49645A6D8E /* PBXTargetDependency */ = { + A76FFB6ED42158F00EB4D7B1306E3F8C /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXWebBrowser; - targetProxy = BA9CC7508F551A390E71FA7366A4BB7B /* PBXContainerItemProxy */; + name = GTMSessionFetcher; + targetProxy = 5941CB0BE9FFDAD7557B271428D4E0E8 /* PBXContainerItemProxy */; }; - A9CF24640E6BAC3911BFD39EC8991A9B /* PBXTargetDependency */ = { + A96E92B7C69F6632712D0D720C14DFA6 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = "react-native-safe-area-context"; - targetProxy = 64A6C9CE2FB3DF3B12C572FCB9448BD0 /* PBXContainerItemProxy */; + name = EXMailComposer; + targetProxy = 1E7A8B66419C2C0C80720A2E1923D17D /* PBXContainerItemProxy */; }; - AB63AA75C19598CA9C832401B5B9B047 /* PBXTargetDependency */ = { + AAD8609E181C2B0442DD333658E8EA01 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = "React-RCTSettings"; - targetProxy = F891AEC19213E84B0E931017A9DD68A3 /* PBXContainerItemProxy */; + name = DoubleConversion; + targetProxy = 1F4E7C6C5A37CF7CBC15630F47C8F7D8 /* PBXContainerItemProxy */; }; - ADB4BFD566AFDD1299060706572125FE /* PBXTargetDependency */ = { + B1C1B2CDF8657431E7AA5103888D2714 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = EXUpdates; + targetProxy = 9E943B91A5C4BD793CA5D1AB978F440D /* PBXContainerItemProxy */; + }; + B90C85D48E82EB6C6EEAB20723246CC0 /* PBXTargetDependency */ = { isa = PBXTargetDependency; name = "React-jsinspector"; - targetProxy = 01523E2DE8178E06D1C82D6E3664203C /* PBXContainerItemProxy */; + targetProxy = 4D7DF0398EBD86D3CB4E5A53292AB6DA /* PBXContainerItemProxy */; }; - AF61AC42B51AAD8083082E9E97A532D6 /* PBXTargetDependency */ = { + BF532084A55738EA82093DEF301EDD90 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXGoogleSignIn; - targetProxy = EB26241BADD0FC63FCBA5916C92149FB /* PBXContainerItemProxy */; + name = UMConstantsInterface; + targetProxy = E2C8C8B30636D68E2E1660F9040AD2F1 /* PBXContainerItemProxy */; }; - B48E006DA8F8AAD53D57E6AFE04AFD17 /* PBXTargetDependency */ = { + C098CD88744676AA8D083A9633A4D6C6 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = Folly; - targetProxy = 4FE18B2D19C547E0FF873FCE071D4A0D /* PBXContainerItemProxy */; + name = "React-RCTText"; + targetProxy = 3EAB4BE4C7AD61A73315C23DBC6DF9FE /* PBXContainerItemProxy */; }; - B74039FCB994BF9585D0D4215D0875C8 /* PBXTargetDependency */ = { + C124C5BBF64D79B9A05423918AC0393A /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXSegment; - targetProxy = 54275ED60E349E7388A578FD6CAC77C9 /* PBXContainerItemProxy */; + name = UMFileSystemInterface; + targetProxy = 98C48C2657833A2BFC05A889AD600622 /* PBXContainerItemProxy */; }; - BC84B0B805D0DF23F0B5D1160056B9A8 /* PBXTargetDependency */ = { + C242E3C019E7E2DEAF8969464AA78954 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXSQLite; - targetProxy = 748CA12AEE04BEF5A766A071E198A2F3 /* PBXContainerItemProxy */; + name = "React-Core"; + targetProxy = 3354CF739CCC3A491FC177A058DB061A /* PBXContainerItemProxy */; }; - BEC0646C92263C5E750B29FD6901140F /* PBXTargetDependency */ = { + C3AEE1F58F81ECE6DFDAFB8777BD716E /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = "React-RCTText"; - targetProxy = C58FA3752529C35AD98AF55942791482 /* PBXContainerItemProxy */; + name = Yoga; + targetProxy = 875BE56EE11E925787740970EAA9A46A /* PBXContainerItemProxy */; }; - BF03A3699E84F70F58A4C068CE723367 /* PBXTargetDependency */ = { + C40F3D244794FBF249368BB7D608669B /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXPermissions; - targetProxy = 0DE728E47B2336653C2DCDC120B4DBEF /* PBXContainerItemProxy */; + name = EXAmplitude; + targetProxy = 0D706EB615F256682B276EAB5B2E3450 /* PBXContainerItemProxy */; }; - C2ECFA6910CED7EFD2A5A498D869E980 /* PBXTargetDependency */ = { + C42B7A3431FD13DB3446721DDD24A681 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = RCTTypeSafety; - targetProxy = BF01986E6376555F8A81956D27CEE244 /* PBXContainerItemProxy */; + name = FBReactNativeSpec; + targetProxy = B9FF8E317C8E3D088ED170690CE9E6B2 /* PBXContainerItemProxy */; }; - C3C71EE9BA9918D7266A6FFBE2175E03 /* PBXTargetDependency */ = { + C57FDA1CD41C66A9E7B3FBF9596FFD3A /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = "React-RCTVibration"; - targetProxy = 284686AE181AFB3CF7D3966FEBB9063D /* PBXContainerItemProxy */; + name = EXNotifications; + targetProxy = 311DD4BB7621CD3B74D5B0C74483323B /* PBXContainerItemProxy */; }; - C3DC6DBE2445FFE60812CAC637B5864A /* PBXTargetDependency */ = { + C6DEA2F355DDAA8CD26FC6BCF2CE2CD8 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = GoogleSignIn; - targetProxy = EC0BE966E103A871BD282F4BEAD88408 /* PBXContainerItemProxy */; + name = Analytics; + targetProxy = 894478C4C1E3CA045DA003F5C2A7B012 /* PBXContainerItemProxy */; }; - C7AE23F84AE918C528379534C668DCE0 /* PBXTargetDependency */ = { + C74D2266DF6B92ABE850BBCFC43D5353 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXMediaLibrary; - targetProxy = 838268DE1B4CA8F37523351A20B732E7 /* PBXContainerItemProxy */; + name = EXImagePicker; + targetProxy = 53B52122207D6F791546434EE9DFB1CF /* PBXContainerItemProxy */; }; - CB54F2A88C91D4157C8371E3352C28DB /* PBXTargetDependency */ = { + C88A8B82D5D24AF8CFFD0739E63C3AA1 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = "boost-for-react-native"; - targetProxy = 4D5B404E23A828F7AA99BBBA54EFDA9B /* PBXContainerItemProxy */; + name = "React-RCTAnimation"; + targetProxy = 10F18AB37FADB68068F29FF8020265E8 /* PBXContainerItemProxy */; }; - CB74FAEC6179ED8E6DA650BC436B0217 /* PBXTargetDependency */ = { + CC2C7688AE816F310B69465F6ED6BC6A /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = AppAuth; - targetProxy = A58BD843AD668DFD173903AEB86893D7 /* PBXContainerItemProxy */; + name = "React-RCTSettings"; + targetProxy = 8FA4950B28EF64B8AED329717B484BD0 /* PBXContainerItemProxy */; }; - CC0B2B3947F5D1DB5CCBEC92CDE90B59 /* PBXTargetDependency */ = { + CCD115D543812EEDC8C0D4FC162B6F4F /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXConstants; - targetProxy = 275C89C48B89E482C6C0A093E8672536 /* PBXContainerItemProxy */; + name = UMReactNativeAdapter; + targetProxy = C215AD0483EFE1BB2F13F87EAF845620 /* PBXContainerItemProxy */; }; - CFEB7B078D667D898DCC8EEEF1FC5C82 /* PBXTargetDependency */ = { + CD8BD421A753AFC40BEE65969F14C6D3 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXBrightness; - targetProxy = 603B6A8FFFCAC287D8B39746D674B792 /* PBXContainerItemProxy */; + name = EXGoogleSignIn; + targetProxy = 8E2C7704A837CB9B4E7E2C822F306B3C /* PBXContainerItemProxy */; }; - D13E8EC0261A514C204BE1AF5FCE1A71 /* PBXTargetDependency */ = { + CF8E1F8F524C48E8F16BDB0838D9CBA1 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXErrorRecovery; - targetProxy = 8B6BE6262BA49516FE8E6F4D75224DD0 /* PBXContainerItemProxy */; + name = EXConstants; + targetProxy = 92263B6A97F5E1F1313CC5184B1B3F9B /* PBXContainerItemProxy */; }; - D95A8BE51BA7A624286CB26082A825D7 /* PBXTargetDependency */ = { + D43F22324A776C0B990279AAEFC25831 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXImageManipulator; - targetProxy = 1CD7699E779B7207306C3A18AE7958E9 /* PBXContainerItemProxy */; + name = FBSDKCoreKit; + targetProxy = 9814739743EA7CA501F80996E03EE5CC /* PBXContainerItemProxy */; + }; + D5B2E9A35916623689AA5B20EC37EE62 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = EXFileSystem; + targetProxy = AE9943A1ECA6F38E0B3481F19601420B /* PBXContainerItemProxy */; }; D99886342357C6B0C1EC9E10BD60A6CA /* PBXTargetDependency */ = { isa = PBXTargetDependency; @@ -1851,82 +1970,84 @@ target = C616BB9F650D110E835D02A3250F302E /* Pods-BareExpo */; targetProxy = 70227CF8F6B2D08A40EC88165F2BAEE8 /* PBXContainerItemProxy */; }; - DC62D20C43EFDA514ADDD1CA3E5A3612 /* PBXTargetDependency */ = { + E1BCBDF836A91E985DC17BA979BFF93D /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = UMReactNativeAdapter; - targetProxy = 326C844A787822153322EEB5212C6F27 /* PBXContainerItemProxy */; + name = EXLocalAuthentication; + targetProxy = 967F44EE70D330B334B6F48578C8F895 /* PBXContainerItemProxy */; }; - E69875FB639872DAE546EF4B38A99FFC /* PBXTargetDependency */ = { + E2A1D81BF25B76321C07FA2E485097F5 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXApplication; - targetProxy = 3E4F5A1B13CBDC95AFB48D68224FBDEA /* PBXContainerItemProxy */; + name = EXLocalization; + targetProxy = AF4A6F785917A952B919137547AF1A50 /* PBXContainerItemProxy */; }; - EAFDA9B9134F1DF606BD4C18A97A874A /* PBXTargetDependency */ = { + E6738C5B4A94D419012EFE813675DE80 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXFont; - targetProxy = A8B0AE310D7DFFEE773B7F31A8FC8DC7 /* PBXContainerItemProxy */; + name = EXBluetooth; + targetProxy = 864168CF18FB995F50937019F5010AF7 /* PBXContainerItemProxy */; }; - EB510BB4F1A396F8FBC810E5DE644C4A /* PBXTargetDependency */ = { + E89AD9B2AAA46B0E178A6E272491AC7B /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXAppAuth; - targetProxy = 9C3E3E2A9F7E24D3111FB14B5EE4B00D /* PBXContainerItemProxy */; + name = "Amplitude-iOS"; + targetProxy = B52CE4E6630F9A111EE76EA1060E4A30 /* PBXContainerItemProxy */; }; - EFDD1908CE86282341ED19473B7AE71C /* PBXTargetDependency */ = { + E97F43A950F1DDCAFBFBF5371D6BEAFE /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = UMConstantsInterface; - targetProxy = B3B22FDA90847B607B6AB701065D65BE /* PBXContainerItemProxy */; + name = EXImageManipulator; + targetProxy = 2B4719B86E1A1E3F338E1E103367BD7E /* PBXContainerItemProxy */; }; - F0DEEDCF04A5A943D216CA78725B1A59 /* PBXTargetDependency */ = { + F6F02813495E85C2BB113E8803C0C450 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = UMPermissionsInterface; - targetProxy = F5B574F9DB6077B85805505D38AC81FA /* PBXContainerItemProxy */; + name = ZXingObjC; + targetProxy = 63FD6C901D4D8D4A73ABBE42FE75FA8F /* PBXContainerItemProxy */; }; - F67EDF6A0F61A98853459D1B6B6F30CB /* PBXTargetDependency */ = { + F8B7E351F57E8A75D7B861E039D7F89C /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = "React-RCTLinking"; - targetProxy = 179551060FF9EA6024A9C9F7CEF0B4BA /* PBXContainerItemProxy */; + name = "React-RCTImage"; + targetProxy = 38011E038AE4C6EDEE880D49689F793A /* PBXContainerItemProxy */; }; - FB8B0A16B9643FB2D121C43BE8B77BCE /* PBXTargetDependency */ = { + F95E5A173E395716EA61D25AE5C558E3 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = "React-RCTAnimation"; - targetProxy = B3DFA936118F40EC72787C517C5197ED /* PBXContainerItemProxy */; + name = EXSMS; + targetProxy = 7DFCF6CF8BA093B9B3173171F9CD2696 /* PBXContainerItemProxy */; }; - FC734C17AB4E1E840D10ADA1901A3113 /* PBXTargetDependency */ = { + F9C61D685E7CCE2F1A66C2DAAFD67FA0 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = EXSensors; - targetProxy = 6D82ECC6C79E6BD8C4D55A0CF63A4D21 /* PBXContainerItemProxy */; + name = EXCellular; + targetProxy = 9F2924F480D585729064F794DF86E3BE /* PBXContainerItemProxy */; }; - FFF415525CCA9E6451D7DC64BF8E9558 /* PBXTargetDependency */ = { + F9E1E68FF3940F70EC5F954B59F0FD2D /* PBXTargetDependency */ = { isa = PBXTargetDependency; - name = UMSensorsInterface; - targetProxy = E49E09ABFFD95C08AE12CE1C82C5B1C2 /* PBXContainerItemProxy */; + name = EXPrint; + targetProxy = CD0AA33D4223E0BFB8A70EDF6CD8924E /* PBXContainerItemProxy */; + }; + FA8D61F5C94060383F791AFF6F0703DF /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = EXRandom; + targetProxy = EC71F41A2B303DFC07E9D7FDF9C5450E /* PBXContainerItemProxy */; + }; + FAAF3F965C73A4ACC2A01C2229DBD198 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = FBSDKLoginKit; + targetProxy = 198F71514262CDA1F44D741EE6F9D52D /* PBXContainerItemProxy */; + }; + FBD7D7F1CECF4B785EC73A48B490523B /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = EXSegment; + targetProxy = B2E7D5548490AD1EB535CC78D544B8E2 /* PBXContainerItemProxy */; + }; + FE372AE80851EB343BCD58E07947DD7F /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = "React-cxxreact"; + targetProxy = 0C7B40ACA2EEFA4606D4931C7AAD066C /* PBXContainerItemProxy */; + }; + FEEAACF725BD6326C380C627CFA53474 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = EXMediaLibrary; + targetProxy = F6450B3876DB7FEBCD312A3C415593EB /* PBXContainerItemProxy */; }; /* End PBXTargetDependency section */ /* Begin XCBuildConfiguration section */ - 186C5EE56BC105165FB5B73F0A23654C /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = C42944AE78D3C85AE9277FE320D54C35 /* Pods-BareExpo.release.xcconfig */; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; - CLANG_ENABLE_OBJC_WEAK = NO; - CODE_SIGN_IDENTITY = "iPhone Developer"; - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; - MACH_O_TYPE = staticlib; - OTHER_LDFLAGS = ""; - OTHER_LIBTOOLFLAGS = ""; - PODS_ROOT = "$(SRCROOT)"; - PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; 196DFA3E4A09A28224918543529A1885 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -1991,6 +2112,28 @@ }; name = Debug; }; + 36835A1FFC4302F48496C1CFB4E0C9DC /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 6D02C945BC67559AFEB7B446AD8A35E6 /* Pods-BareExpo.debug.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; + CLANG_ENABLE_OBJC_WEAK = NO; + CODE_SIGN_IDENTITY = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; + MACH_O_TYPE = staticlib; + OTHER_LDFLAGS = ""; + OTHER_LIBTOOLFLAGS = ""; + PODS_ROOT = "$(SRCROOT)"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; 6252BAC8F776E655D51C48A49BF6EFB2 /* Release */ = { isa = XCBuildConfiguration; baseConfigurationReference = 0B584D0632E15581F96D24B9C3B042D7 /* Pods-BareExpoTests.release.xcconfig */; @@ -2096,9 +2239,9 @@ }; name = Debug; }; - F68AA0ABC81AD6B6A5764E8A14B679A8 /* Debug */ = { + E88EA49723CC3CB88698C9B1BA13329A /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 6D02C945BC67559AFEB7B446AD8A35E6 /* Pods-BareExpo.debug.xcconfig */; + baseConfigurationReference = C42944AE78D3C85AE9277FE320D54C35 /* Pods-BareExpo.release.xcconfig */; buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; CLANG_ENABLE_OBJC_WEAK = NO; @@ -2115,26 +2258,27 @@ SDKROOT = iphoneos; SKIP_INSTALL = YES; TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; }; - name = Debug; + name = Release; }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ - 19B0920102FB081C56D8699A0F9D676E /* Build configuration list for PBXNativeTarget "Pods-BareExpo" */ = { + 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { isa = XCConfigurationList; buildConfigurations = ( - F68AA0ABC81AD6B6A5764E8A14B679A8 /* Debug */, - 186C5EE56BC105165FB5B73F0A23654C /* Release */, + 196DFA3E4A09A28224918543529A1885 /* Debug */, + B01D14FDC83DCF9D4BE53066BEA96D05 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { + 5C9CC66327D543B11F141E23959A08D2 /* Build configuration list for PBXNativeTarget "Pods-BareExpo" */ = { isa = XCConfigurationList; buildConfigurations = ( - 196DFA3E4A09A28224918543529A1885 /* Debug */, - B01D14FDC83DCF9D4BE53066BEA96D05 /* Release */, + 36835A1FFC4302F48496C1CFB4E0C9DC /* Debug */, + E88EA49723CC3CB88698C9B1BA13329A /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; diff --git a/apps/bare-expo/ios/Pods/RNGestureHandler/LICENSE b/apps/bare-expo/ios/Pods/RNGestureHandler/LICENSE deleted file mode 100644 index 5b3d7fc8cb0ac..0000000000000 --- a/apps/bare-expo/ios/Pods/RNGestureHandler/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016 Krzysztof Magiera - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/apps/bare-expo/ios/Pods/RNGestureHandler/README.md b/apps/bare-expo/ios/Pods/RNGestureHandler/README.md deleted file mode 100644 index bc7352944d466..0000000000000 --- a/apps/bare-expo/ios/Pods/RNGestureHandler/README.md +++ /dev/null @@ -1,48 +0,0 @@ -

- -

React Native Gesture Handler

-

Declarative API exposing platform native touch and gesture system to React Native.

-

- -React Native Gesture Handler provides native-driven gesture management APIs for building best possible touch-based experiences in React Native. - -With this library gestures are no longer controlled by the JS responder system, but instead are recognized and tracked in the UI thread. -It makes touch interactions and gesture tracking not only smooth, but also dependable and deterministic. - -## Installation - -Check [getting started](https://kmagiera.github.io/react-native-gesture-handler/docs/getting-started.html) section of our docs for the detailed installation instructions. - -## Documentation - -Check out our dedicated documentation page for info about this library, API reference and more: [https://kmagiera.github.io/react-native-gesture-handler](https://kmagiera.github.io/react-native-gesture-handler) - -## Examples - -If you want to play with the API but don't feel like trying it on a real app, you can run the example project. Clone the repo, go to the `Example/` folder and run: -```bash - yarn install -``` - -Then run `react-native run-android` or `react-native run-ios` (depending on which platform you want to run the example app on). - -You will need to have an Android or iOS device or emulator connected as well as `react-native-cli` package installed globally. - -## React native Support - -| version | react-native version | -| ------- | -------------------- | -| 1.4.0+ | 0.60.0+ | -| 1.1.0+ | 0.57.2+ | -| <1.1.0 | 0.50.0+ | - -## License - -Gesture handler library is licensed under [The MIT License](LICENSE). - -## Credits - -This project is supported by amazing people from [Expo.io](https://expo.io) and [Software Mansion](https://swmansion.com) - -[![expo](https://avatars2.githubusercontent.com/u/12504344?v=3&s=100 "Expo.io")](https://expo.io) -[![swm](https://avatars1.githubusercontent.com/u/6952717?v=3&s=100 "Software Mansion")](https://swmansion.com) diff --git a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNFlingHandler.h b/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNFlingHandler.h deleted file mode 100644 index b10d7788ddfdb..0000000000000 --- a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNFlingHandler.h +++ /dev/null @@ -1,4 +0,0 @@ -#import "RNGestureHandler.h" - -@interface RNFlingGestureHandler : RNGestureHandler -@end diff --git a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNFlingHandler.m b/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNFlingHandler.m deleted file mode 100644 index 2d27b3f21fed3..0000000000000 --- a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNFlingHandler.m +++ /dev/null @@ -1,33 +0,0 @@ -#import "RNFlingHandler.h" - -@implementation RNFlingGestureHandler - -- (instancetype)initWithTag:(NSNumber *)tag -{ - if ((self = [super initWithTag:tag])) { - _recognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleGesture:)]; - - } - return self; -} - -- (void)configure:(NSDictionary *)config -{ - [super configure:config]; - UISwipeGestureRecognizer *recognizer = (UISwipeGestureRecognizer *)_recognizer; - - id prop = config[@"direction"]; - if (prop != nil) { - recognizer.direction = [RCTConvert NSInteger:prop]; - } - -#if !TARGET_OS_TV - prop = config[@"numberOfPointers"]; - if (prop != nil) { - recognizer.numberOfTouchesRequired = [RCTConvert NSInteger:prop]; - } -#endif -} - -@end - diff --git a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNForceTouchHandler.h b/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNForceTouchHandler.h deleted file mode 100644 index b71fb78da27ef..0000000000000 --- a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNForceTouchHandler.h +++ /dev/null @@ -1,4 +0,0 @@ -#import "RNGestureHandler.h" - -@interface RNForceTouchHandler : RNGestureHandler -@end diff --git a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNForceTouchHandler.m b/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNForceTouchHandler.m deleted file mode 100644 index 13972d85dad66..0000000000000 --- a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNForceTouchHandler.m +++ /dev/null @@ -1,148 +0,0 @@ -#import "RNForceTouchHandler.h" - -#import - -#import - -@interface RNForceTouchGestureRecognizer : UIGestureRecognizer - -@property (nonatomic) CGFloat maxForce; -@property (nonatomic) CGFloat minForce; -@property (nonatomic) CGFloat force; -@property (nonatomic) BOOL feedbackOnActivation; - -- (id)initWithGestureHandler:(RNGestureHandler*)gestureHandler; - -@end - -@implementation RNForceTouchGestureRecognizer { - __weak RNGestureHandler *_gestureHandler; - UITouch *_firstTouch; -} - - -- (id)initWithGestureHandler:(RNGestureHandler*)gestureHandler -{ - if ((self = [super initWithTarget:gestureHandler action:@selector(handleGesture:)])) { - _gestureHandler = gestureHandler; - _force = 0; - _minForce = 0.2; - _maxForce = NAN; - _feedbackOnActivation = NO; - } - return self; -} - -- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event -{ - if (_firstTouch) { - // ignore rest of fingers - return; - } - [super touchesBegan:touches withEvent:event]; - _firstTouch = [touches anyObject]; - [self handleForceWithTouches:touches]; - self.state = UIGestureRecognizerStatePossible; -} - -- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event -{ - if (![touches containsObject:_firstTouch]) { - // Considered only the very first touch - return; - } - [super touchesMoved:touches withEvent:event]; - - [self handleForceWithTouches:touches]; - - if ([self shouldFail]) { - self.state = UIGestureRecognizerStateFailed; - return; - } - - if (self.state == UIGestureRecognizerStatePossible && [self shouldActivate]) { - [self performFeedbackIfRequired]; - self.state = UIGestureRecognizerStateBegan; - } -} - -- (BOOL)shouldActivate { - return (_force >= _minForce); -} - -- (BOOL)shouldFail { - return TEST_MAX_IF_NOT_NAN(_force, _maxForce); -} - -- (void)performFeedbackIfRequired -{ -#if !TARGET_OS_TV - if (_feedbackOnActivation) { - if (@available(iOS 10.0, *)) { - [[[UIImpactFeedbackGenerator alloc] initWithStyle:(UIImpactFeedbackStyleMedium)] impactOccurred]; - } - } -#endif -} - -- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event -{ - if (![touches containsObject:_firstTouch]) { - // Considered only the very first touch - return; - } - [super touchesEnded:touches withEvent:event]; - if (self.state == UIGestureRecognizerStateBegan || self.state == UIGestureRecognizerStateChanged) { - self.state = UIGestureRecognizerStateEnded; - } else { - self.state = UIGestureRecognizerStateFailed; - } -} - -- (void)handleForceWithTouches:(NSSet *)touches { - _force = _firstTouch.force / _firstTouch.maximumPossibleForce; -} - -- (void)reset { - [super reset]; - _force = 0; - _firstTouch = NULL; -} - -@end - -@implementation RNForceTouchHandler - -- (instancetype)initWithTag:(NSNumber *)tag -{ - if ((self = [super initWithTag:tag])) { - _recognizer = [[RNForceTouchGestureRecognizer alloc] initWithGestureHandler:self]; - } - return self; -} - -- (void)configure:(NSDictionary *)config -{ - [super configure:config]; - RNForceTouchGestureRecognizer *recognizer = (RNForceTouchGestureRecognizer *)_recognizer; - - APPLY_FLOAT_PROP(maxForce); - APPLY_FLOAT_PROP(minForce); - - id prop = config[@"feedbackOnActivation"]; - if (prop != nil) { - recognizer.feedbackOnActivation = [RCTConvert BOOL:prop]; - } -} - -- (RNGestureHandlerEventExtraData *)eventExtraData:(RNForceTouchGestureRecognizer *)recognizer -{ - return [RNGestureHandlerEventExtraData - forForce: recognizer.force - forPosition:[recognizer locationInView:recognizer.view] - withAbsolutePosition:[recognizer locationInView:recognizer.view.window] - withNumberOfTouches:recognizer.numberOfTouches]; -} - -@end - diff --git a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNLongPressHandler.h b/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNLongPressHandler.h deleted file mode 100644 index db0ddce8ce2b7..0000000000000 --- a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNLongPressHandler.h +++ /dev/null @@ -1,12 +0,0 @@ -// -// RNLongPressHandler.h -// RNGestureHandler -// -// Created by Krzysztof Magiera on 12/10/2017. -// Copyright © 2017 Software Mansion. All rights reserved. -// - -#import "RNGestureHandler.h" - -@interface RNLongPressGestureHandler : RNGestureHandler -@end diff --git a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNLongPressHandler.m b/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNLongPressHandler.m deleted file mode 100644 index 6b874c51946ce..0000000000000 --- a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNLongPressHandler.m +++ /dev/null @@ -1,83 +0,0 @@ -// -// RNLongPressHandler.m -// RNGestureHandler -// -// Created by Krzysztof Magiera on 12/10/2017. -// Copyright © 2017 Software Mansion. All rights reserved. -// - -#import "RNLongPressHandler.h" - -#import - -#import - -@interface RNBetterLongPressGestureRecognizer : UILongPressGestureRecognizer - -- (id)initWithGestureHandler:(RNGestureHandler*)gestureHandler; - -@end - -@implementation RNBetterLongPressGestureRecognizer { - __weak RNGestureHandler *_gestureHandler; -} - -- (id)initWithGestureHandler:(RNGestureHandler*)gestureHandler -{ - if ((self = [super initWithTarget:gestureHandler action:@selector(handleGesture:)])) { - _gestureHandler = gestureHandler; - } - return self; -} - -- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event -{ - [super touchesMoved:touches withEvent:event]; - if (_gestureHandler.shouldCancelWhenOutside && ![_gestureHandler containsPointInView]) { - self.enabled = NO; - self.enabled = YES; - } -} - -@end - - -@implementation RNLongPressGestureHandler - -- (instancetype)initWithTag:(NSNumber *)tag -{ - if ((self = [super initWithTag:tag])) { - _recognizer = [[RNBetterLongPressGestureRecognizer alloc] initWithGestureHandler:self]; - } - return self; -} - -- (void)configure:(NSDictionary *)config -{ - [super configure:config]; - UILongPressGestureRecognizer *recognizer = (UILongPressGestureRecognizer *)_recognizer; - - id prop = config[@"minDurationMs"]; - if (prop != nil) { - recognizer.minimumPressDuration = [RCTConvert CGFloat:prop] / 1000.0; - } - - prop = config[@"maxDist"]; - if (prop != nil) { - recognizer.allowableMovement = [RCTConvert CGFloat:prop]; - } -} - -- (RNGestureHandlerState)state -{ - // For long press recognizer we treat "Began" state as "active" - // as it changes its state to "Began" as soon as the the minimum - // hold duration timeout is reached, whereas state "Changed" is - // only set after "Began" phase if there is some movement. - if (_recognizer.state == UIGestureRecognizerStateBegan) { - return RNGestureHandlerStateActive; - } - return [super state]; -} -@end - diff --git a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNNativeViewHandler.h b/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNNativeViewHandler.h deleted file mode 100644 index cd7996e8ac436..0000000000000 --- a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNNativeViewHandler.h +++ /dev/null @@ -1,15 +0,0 @@ -// -// RNNativeViewHandler.h -// RNGestureHandler -// -// Created by Krzysztof Magiera on 12/10/2017. -// Copyright © 2017 Software Mansion. All rights reserved. -// - -#import "RNGestureHandler.h" - -@interface RNDummyGestureRecognizer : UIGestureRecognizer -@end - -@interface RNNativeViewGestureHandler : RNGestureHandler -@end diff --git a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNNativeViewHandler.m b/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNNativeViewHandler.m deleted file mode 100644 index 73022d71d3aa1..0000000000000 --- a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNNativeViewHandler.m +++ /dev/null @@ -1,149 +0,0 @@ -// -// RNNativeViewHandler.m -// RNGestureHandler -// -// Created by Krzysztof Magiera on 12/10/2017. -// Copyright © 2017 Software Mansion. All rights reserved. -// - -#import "RNNativeViewHandler.h" - -#import - -#import -#import -#import - -#pragma mark RNDummyGestureRecognizer - -@implementation RNDummyGestureRecognizer - -- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event -{ - self.state = UIGestureRecognizerStateFailed; - [self reset]; -} - -- (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event -{ - self.state = UIGestureRecognizerStateCancelled; - [self reset]; -} - -@end - -#pragma mark RNNativeViewgestureHandler - -@implementation RNNativeViewGestureHandler { - BOOL _shouldActivateOnStart; - BOOL _disallowInterruption; -} - -- (instancetype)initWithTag:(NSNumber *)tag -{ - if ((self = [super initWithTag:tag])) { - _recognizer = [[RNDummyGestureRecognizer alloc] init]; - } - return self; -} - -- (void)configure:(NSDictionary *)config -{ - [super configure:config]; - _shouldActivateOnStart = [RCTConvert BOOL:config[@"shouldActivateOnStart"]]; - _disallowInterruption = [RCTConvert BOOL:config[@"disallowInterruption"]]; -} - -- (void)bindToView:(UIView *)view -{ - // For UIControl based views (UIButton, UISwitch) we provide special handling that would allow - // for properties like `disallowInterruption` to work. - if ([view isKindOfClass:[UIControl class]]) { - UIControl *control = (UIControl *)view; - [control addTarget:self action:@selector(handleTouchDown:forEvent:) forControlEvents:UIControlEventTouchDown]; - [control addTarget:self action:@selector(handleTouchUpOutside:forEvent:) forControlEvents:UIControlEventTouchUpOutside]; - [control addTarget:self action:@selector(handleTouchUpInside:forEvent:) forControlEvents:UIControlEventTouchUpInside]; - [control addTarget:self action:@selector(handleDragExit:forEvent:) forControlEvents:UIControlEventTouchDragExit]; - [control addTarget:self action:@selector(handleDragEnter:forEvent:) forControlEvents:UIControlEventTouchDragEnter]; - [control addTarget:self action:@selector(handleTouchCancel:forEvent:) forControlEvents:UIControlEventTouchCancel]; - } else { - [super bindToView:view]; - } - - // We can restore default scrollview behaviour to delay touches to scrollview's children - // because gesture handler system can handle cancellation of scroll recognizer when JS responder - // is set - if ([view isKindOfClass:[RCTScrollView class]]) { - // This part of the code is coupled with RN implementation of ScrollView native wrapper and - // we expect for RCTScrollView component to contain a subclass of UIScrollview as the only - // subview - UIScrollView *scrollView = [view.subviews objectAtIndex:0]; - scrollView.delaysContentTouches = YES; - } -} - -- (void)handleTouchDown:(UIView *)sender forEvent:(UIEvent *)event -{ - [self reset]; - - if (_disallowInterruption) { - // When `disallowInterruption` is set we cancel all gesture handlers when this UIControl - // gets DOWN event - for (UITouch *touch in [event allTouches]) { - for (UIGestureRecognizer *recogn in [touch gestureRecognizers]) { - recogn.enabled = NO; - recogn.enabled = YES; - } - } - } - - [self sendEventsInState:RNGestureHandlerStateActive - forViewWithTag:sender.reactTag - withExtraData:[RNGestureHandlerEventExtraData forPointerInside:YES]]; -} - -- (void)handleTouchUpOutside:(UIView *)sender forEvent:(UIEvent *)event -{ - [self sendEventsInState:RNGestureHandlerStateEnd - forViewWithTag:sender.reactTag - withExtraData:[RNGestureHandlerEventExtraData forPointerInside:NO]]; -} - -- (void)handleTouchUpInside:(UIView *)sender forEvent:(UIEvent *)event -{ - [self sendEventsInState:RNGestureHandlerStateEnd - forViewWithTag:sender.reactTag - withExtraData:[RNGestureHandlerEventExtraData forPointerInside:YES]]; -} - -- (void)handleDragExit:(UIView *)sender forEvent:(UIEvent *)event -{ - // Pointer is moved outside of the view bounds, we cancel button when `shouldCancelWhenOutside` is set - if (self.shouldCancelWhenOutside) { - UIControl *control = (UIControl *)sender; - [control cancelTrackingWithEvent:event]; - [self sendEventsInState:RNGestureHandlerStateEnd - forViewWithTag:sender.reactTag - withExtraData:[RNGestureHandlerEventExtraData forPointerInside:NO]]; - } else { - [self sendEventsInState:RNGestureHandlerStateActive - forViewWithTag:sender.reactTag - withExtraData:[RNGestureHandlerEventExtraData forPointerInside:NO]]; - } -} - -- (void)handleDragEnter:(UIView *)sender forEvent:(UIEvent *)event -{ - [self sendEventsInState:RNGestureHandlerStateActive - forViewWithTag:sender.reactTag - withExtraData:[RNGestureHandlerEventExtraData forPointerInside:YES]]; -} - -- (void)handleTouchCancel:(UIView *)sender forEvent:(UIEvent *)event -{ - [self sendEventsInState:RNGestureHandlerStateCancelled - forViewWithTag:sender.reactTag - withExtraData:[RNGestureHandlerEventExtraData forPointerInside:NO]]; -} - -@end diff --git a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNPanHandler.h b/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNPanHandler.h deleted file mode 100644 index dae819a1b9bc5..0000000000000 --- a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNPanHandler.h +++ /dev/null @@ -1,12 +0,0 @@ -// -// RNPanHandler.h -// RNGestureHandler -// -// Created by Krzysztof Magiera on 12/10/2017. -// Copyright © 2017 Software Mansion. All rights reserved. -// - -#import "RNGestureHandler.h" - -@interface RNPanGestureHandler : RNGestureHandler -@end diff --git a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNPanHandler.m b/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNPanHandler.m deleted file mode 100644 index 84d5196f08326..0000000000000 --- a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNPanHandler.m +++ /dev/null @@ -1,239 +0,0 @@ -// -// RNPanHandler.m -// RNGestureHandler -// -// Created by Krzysztof Magiera on 12/10/2017. -// Copyright © 2017 Software Mansion. All rights reserved. -// - -#import "RNPanHandler.h" - -#import - -@interface RNBetterPanGestureRecognizer : UIPanGestureRecognizer - -@property (nonatomic) CGFloat minDistSq; -@property (nonatomic) CGFloat minVelocityX; -@property (nonatomic) CGFloat minVelocityY; -@property (nonatomic) CGFloat minVelocitySq; -@property (nonatomic) CGFloat activeOffsetXStart; -@property (nonatomic) CGFloat activeOffsetXEnd; -@property (nonatomic) CGFloat failOffsetXStart; -@property (nonatomic) CGFloat failOffsetXEnd; -@property (nonatomic) CGFloat activeOffsetYStart; -@property (nonatomic) CGFloat activeOffsetYEnd; -@property (nonatomic) CGFloat failOffsetYStart; -@property (nonatomic) CGFloat failOffsetYEnd; - - -- (id)initWithGestureHandler:(RNGestureHandler*)gestureHandler; - -@end - - -@implementation RNBetterPanGestureRecognizer { - __weak RNGestureHandler *_gestureHandler; - NSUInteger _realMinimumNumberOfTouches; - BOOL _hasCustomActivationCriteria; -} - -- (id)initWithGestureHandler:(RNGestureHandler*)gestureHandler -{ - if ((self = [super initWithTarget:gestureHandler action:@selector(handleGesture:)])) { - _gestureHandler = gestureHandler; - _minDistSq = NAN; - _minVelocityX = NAN; - _minVelocityY = NAN; - _minVelocitySq = NAN; - _activeOffsetXStart = NAN; - _activeOffsetXEnd = NAN; - _failOffsetXStart = NAN; - _failOffsetXEnd = NAN; - _activeOffsetYStart = NAN; - _activeOffsetYEnd = NAN; - _failOffsetYStart = NAN; - _failOffsetYEnd = NAN; - _hasCustomActivationCriteria = NO; -#if !TARGET_OS_TV - _realMinimumNumberOfTouches = self.minimumNumberOfTouches; -#endif - } - return self; -} - -- (void)setMinimumNumberOfTouches:(NSUInteger)minimumNumberOfTouches -{ - _realMinimumNumberOfTouches = minimumNumberOfTouches; -} - -- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event -{ -#if !TARGET_OS_TV - if (_hasCustomActivationCriteria) { - // We use "minimumNumberOfTouches" property to prevent pan handler from recognizing - // the gesture too early before we are sure that all criteria (e.g. minimum distance - // etc. are met) - super.minimumNumberOfTouches = 20; - } else { - super.minimumNumberOfTouches = _realMinimumNumberOfTouches; - } -#endif - [super touchesBegan:touches withEvent:event]; -} - -- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event -{ - [super touchesMoved:touches withEvent:event]; - if (self.state == UIGestureRecognizerStatePossible && [self shouldFailUnderCustomCriteria]) { - self.state = UIGestureRecognizerStateFailed; - return; - } - if ((self.state == UIGestureRecognizerStatePossible || self.state == UIGestureRecognizerStateChanged)) { - if (_gestureHandler.shouldCancelWhenOutside && ![_gestureHandler containsPointInView]) { - // If the previous recognizer state is UIGestureRecognizerStateChanged - // then UIGestureRecognizer's sate machine will only transition to - // UIGestureRecognizerStateCancelled even if you set the state to - // UIGestureRecognizerStateFailed here. Making the behavior explicit. - self.state = (self.state == UIGestureRecognizerStatePossible) - ? UIGestureRecognizerStateFailed - : UIGestureRecognizerStateCancelled; - [self reset]; - return; - } - } - if (_hasCustomActivationCriteria && self.state == UIGestureRecognizerStatePossible && [self shouldActivateUnderCustomCriteria]) { -#if !TARGET_OS_TV - super.minimumNumberOfTouches = _realMinimumNumberOfTouches; - if ([self numberOfTouches] >= _realMinimumNumberOfTouches) { - self.state = UIGestureRecognizerStateBegan; - [self setTranslation:CGPointMake(0, 0) inView:self.view]; - } -#endif - } -} - -- (void)reset -{ - self.enabled = YES; - [super reset]; -} - -- (void)updateHasCustomActivationCriteria -{ - _hasCustomActivationCriteria = !isnan(_minDistSq) - || !isnan(_minVelocityX) || !isnan(_minVelocityY) || !isnan(_minVelocitySq) - || !isnan(_activeOffsetXStart) || !isnan(_activeOffsetXEnd) - || !isnan(_activeOffsetYStart) || !isnan(_activeOffsetYEnd); -} - -- (BOOL)shouldFailUnderCustomCriteria -{ - CGPoint trans = [self translationInView:self.view]; - if (!isnan(_failOffsetXStart) && trans.x < _failOffsetXStart) { - return YES; - } - if (!isnan(_failOffsetXEnd) && trans.x > _failOffsetXEnd) { - return YES; - } - if (!isnan(_failOffsetYStart) && trans.y < _failOffsetYStart) { - return YES; - } - if (!isnan(_failOffsetYEnd) && trans.y > _failOffsetYEnd) { - return YES; - } - return NO; -} - -- (BOOL)shouldActivateUnderCustomCriteria -{ - CGPoint trans = [self translationInView:self.view]; - if (!isnan(_activeOffsetXStart) && trans.x < _activeOffsetXStart) { - return YES; - } - if (!isnan(_activeOffsetXEnd) && trans.x > _activeOffsetXEnd) { - return YES; - } - if (!isnan(_activeOffsetYStart) && trans.y < _activeOffsetYStart) { - return YES; - } - if (!isnan(_activeOffsetYEnd) && trans.y > _activeOffsetYEnd) { - return YES; - } - - if (TEST_MIN_IF_NOT_NAN(VEC_LEN_SQ(trans), _minDistSq)) { - return YES; - } - - CGPoint velocity = [self velocityInView:self.view]; - if (TEST_MIN_IF_NOT_NAN(velocity.x, _minVelocityX)) { - return YES; - } - if (TEST_MIN_IF_NOT_NAN(velocity.y, _minVelocityY)) { - return YES; - } - if (TEST_MIN_IF_NOT_NAN(VEC_LEN_SQ(velocity), _minVelocitySq)) { - return YES; - } - - return NO; -} - -@end - -@implementation RNPanGestureHandler - -- (instancetype)initWithTag:(NSNumber *)tag -{ - if ((self = [super initWithTag:tag])) { - _recognizer = [[RNBetterPanGestureRecognizer alloc] initWithGestureHandler:self]; - } - return self; -} - -- (void)configure:(NSDictionary *)config -{ - [super configure:config]; - RNBetterPanGestureRecognizer *recognizer = (RNBetterPanGestureRecognizer *)_recognizer; - - APPLY_FLOAT_PROP(minVelocityX); - APPLY_FLOAT_PROP(minVelocityY); - APPLY_FLOAT_PROP(activeOffsetXStart); - APPLY_FLOAT_PROP(activeOffsetXEnd); - APPLY_FLOAT_PROP(failOffsetXStart); - APPLY_FLOAT_PROP(failOffsetXEnd); - APPLY_FLOAT_PROP(activeOffsetYStart); - APPLY_FLOAT_PROP(activeOffsetYEnd); - APPLY_FLOAT_PROP(failOffsetYStart); - APPLY_FLOAT_PROP(failOffsetYEnd); - -#if !TARGET_OS_TV - APPLY_NAMED_INT_PROP(minimumNumberOfTouches, @"minPointers"); - APPLY_NAMED_INT_PROP(maximumNumberOfTouches, @"maxPointers"); -#endif - - id prop = config[@"minDist"]; - if (prop != nil) { - CGFloat dist = [RCTConvert CGFloat:prop]; - recognizer.minDistSq = dist * dist; - } - - prop = config[@"minVelocity"]; - if (prop != nil) { - CGFloat velocity = [RCTConvert CGFloat:prop]; - recognizer.minVelocitySq = velocity * velocity; - } - [recognizer updateHasCustomActivationCriteria]; -} - -- (RNGestureHandlerEventExtraData *)eventExtraData:(UIPanGestureRecognizer *)recognizer -{ - return [RNGestureHandlerEventExtraData - forPan:[recognizer locationInView:recognizer.view] - withAbsolutePosition:[recognizer locationInView:recognizer.view.window] - withTranslation:[recognizer translationInView:recognizer.view] - withVelocity:[recognizer velocityInView:recognizer.view.window] - withNumberOfTouches:recognizer.numberOfTouches]; -} - -@end - diff --git a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNPinchHandler.h b/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNPinchHandler.h deleted file mode 100644 index afca5308075ec..0000000000000 --- a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNPinchHandler.h +++ /dev/null @@ -1,12 +0,0 @@ -// -// RNPinchHandler.h -// RNGestureHandler -// -// Created by Krzysztof Magiera on 12/10/2017. -// Copyright © 2017 Software Mansion. All rights reserved. -// - -#import "RNGestureHandler.h" - -@interface RNPinchGestureHandler : RNGestureHandler -@end diff --git a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNPinchHandler.m b/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNPinchHandler.m deleted file mode 100644 index af9aaa29ead95..0000000000000 --- a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNPinchHandler.m +++ /dev/null @@ -1,35 +0,0 @@ -// -// RNPinchHandler.m -// RNGestureHandler -// -// Created by Krzysztof Magiera on 12/10/2017. -// Copyright © 2017 Software Mansion. All rights reserved. -// - -#import "RNPinchHandler.h" - -@implementation RNPinchGestureHandler - -- (instancetype)initWithTag:(NSNumber *)tag -{ - if ((self = [super initWithTag:tag])) { -#if !TARGET_OS_TV - _recognizer = [[UIPinchGestureRecognizer alloc] initWithTarget:self action:@selector(handleGesture:)]; -#endif - } - return self; -} - -#if !TARGET_OS_TV -- (RNGestureHandlerEventExtraData *)eventExtraData:(UIPinchGestureRecognizer *)recognizer -{ - return [RNGestureHandlerEventExtraData - forPinch:recognizer.scale - withFocalPoint:[recognizer locationInView:recognizer.view] - withVelocity:recognizer.velocity - withNumberOfTouches:recognizer.numberOfTouches]; -} -#endif - -@end - diff --git a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNRotationHandler.h b/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNRotationHandler.h deleted file mode 100644 index ca8b0ef275270..0000000000000 --- a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNRotationHandler.h +++ /dev/null @@ -1,12 +0,0 @@ -// -// RNRotationHandler.h -// RNGestureHandler -// -// Created by Krzysztof Magiera on 12/10/2017. -// Copyright © 2017 Software Mansion. All rights reserved. -// - -#import "RNGestureHandler.h" - -@interface RNRotationGestureHandler : RNGestureHandler -@end diff --git a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNRotationHandler.m b/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNRotationHandler.m deleted file mode 100644 index 4dafc4d04fc06..0000000000000 --- a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNRotationHandler.m +++ /dev/null @@ -1,35 +0,0 @@ -// -// RNRotationHandler.m -// RNGestureHandler -// -// Created by Krzysztof Magiera on 12/10/2017. -// Copyright © 2017 Software Mansion. All rights reserved. -// - -#import "RNRotationHandler.h" - -@implementation RNRotationGestureHandler - -- (instancetype)initWithTag:(NSNumber *)tag -{ - if ((self = [super initWithTag:tag])) { - #if !TARGET_OS_TV - _recognizer = [[UIRotationGestureRecognizer alloc] initWithTarget:self action:@selector(handleGesture:)]; - #endif - } - return self; -} - -#if !TARGET_OS_TV -- (RNGestureHandlerEventExtraData *)eventExtraData:(UIRotationGestureRecognizer *)recognizer -{ - return [RNGestureHandlerEventExtraData - forRotation:recognizer.rotation - withAnchorPoint:[recognizer locationInView:recognizer.view] - withVelocity:recognizer.velocity - withNumberOfTouches:recognizer.numberOfTouches]; -} -#endif - -@end - diff --git a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNTapHandler.h b/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNTapHandler.h deleted file mode 100644 index 53f53d17d6e0d..0000000000000 --- a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNTapHandler.h +++ /dev/null @@ -1,12 +0,0 @@ -// -// RNTapHandler.h -// RNGestureHandler -// -// Created by Krzysztof Magiera on 12/10/2017. -// Copyright © 2017 Software Mansion. All rights reserved. -// - -#import "RNGestureHandler.h" - -@interface RNTapGestureHandler : RNGestureHandler -@end diff --git a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNTapHandler.m b/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNTapHandler.m deleted file mode 100644 index 37bd04b20eff0..0000000000000 --- a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/Handlers/RNTapHandler.m +++ /dev/null @@ -1,207 +0,0 @@ -// -// RNTapHandler.m -// RNGestureHandler -// -// Created by Krzysztof Magiera on 12/10/2017. -// Copyright © 2017 Software Mansion. All rights reserved. -// - -#import "RNTapHandler.h" - -#import - -#import - -// RNBetterTapGestureRecognizer extends UIGestureRecognizer instead of UITapGestureRecognizer -// because the latter does not allow for parameters like maxDelay, maxDuration, minPointers, -// maxDelta to be configured. Using our custom implementation of tap recognizer we are able -// to support these. - -@interface RNBetterTapGestureRecognizer : UIGestureRecognizer - -@property (nonatomic) NSUInteger numberOfTaps; -@property (nonatomic) NSTimeInterval maxDelay; -@property (nonatomic) NSTimeInterval maxDuration; -@property (nonatomic) CGFloat maxDistSq; -@property (nonatomic) CGFloat maxDeltaX; -@property (nonatomic) CGFloat maxDeltaY; -@property (nonatomic) NSInteger minPointers; - -- (id)initWithGestureHandler:(RNGestureHandler*)gestureHandler; - -@end - -@implementation RNBetterTapGestureRecognizer { - __weak RNGestureHandler *_gestureHandler; - NSUInteger _tapsSoFar; - CGPoint _initPosition; - NSInteger _maxNumberOfTouches; -} - -- (id)initWithGestureHandler:(RNGestureHandler*)gestureHandler -{ - if ((self = [super initWithTarget:gestureHandler action:@selector(handleGesture:)])) { - _gestureHandler = gestureHandler; - _tapsSoFar = 0; - _numberOfTaps = 1; - _minPointers = 1; - _maxDelay = 0.2; - _maxDuration = NAN; - _maxDeltaX = NAN; - _maxDeltaY = NAN; - _maxDistSq = NAN; - } - return self; -} - -- (void)triggerAction -{ - [_gestureHandler handleGesture:self]; -} - -- (void)cancel -{ - self.enabled = NO; -} - -- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event -{ - [super touchesBegan:touches withEvent:event]; - if (_tapsSoFar == 0) { - _initPosition = [self locationInView:self.view]; - } - _tapsSoFar++; - if (_tapsSoFar) { - [NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(cancel) object:nil]; - } - NSInteger numberOfTouches = [touches count]; - if (numberOfTouches > _maxNumberOfTouches) { - _maxNumberOfTouches = numberOfTouches; - } - if (!isnan(_maxDuration)) { - [self performSelector:@selector(cancel) withObject:nil afterDelay:_maxDuration]; - } - self.state = UIGestureRecognizerStatePossible; - [self triggerAction]; -} - -- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event -{ - [super touchesMoved:touches withEvent:event]; - NSInteger numberOfTouches = [touches count]; - if (numberOfTouches > _maxNumberOfTouches) { - _maxNumberOfTouches = numberOfTouches; - } - - if (self.state != UIGestureRecognizerStatePossible) { - return; - } - - if ([self shouldFailUnderCustomCriteria]) { - self.state = UIGestureRecognizerStateFailed; - [self triggerAction]; - [self reset]; - return; - } - - self.state = UIGestureRecognizerStatePossible; - [self triggerAction]; -} - -- (CGPoint)translationInView { - CGPoint currentPosition = [self locationInView:self.view]; - return CGPointMake(currentPosition.x - _initPosition.x, currentPosition.y - _initPosition.y); -} - -- (BOOL)shouldFailUnderCustomCriteria -{ - if (_gestureHandler.shouldCancelWhenOutside) { - if (![_gestureHandler containsPointInView]) { - return YES; - } - } - - CGPoint trans = [self translationInView]; - if (TEST_MAX_IF_NOT_NAN(fabs(trans.x), _maxDeltaX)) { - return YES; - } - if (TEST_MAX_IF_NOT_NAN(fabs(trans.y), _maxDeltaY)) { - return YES; - } - if (TEST_MAX_IF_NOT_NAN(fabs(trans.y * trans.y + trans.x + trans.x), _maxDistSq)) { - return YES; - } - return NO; -} - -- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event -{ - [super touchesEnded:touches withEvent:event]; - if (_numberOfTaps == _tapsSoFar && _maxNumberOfTouches >= _minPointers) { - self.state = UIGestureRecognizerStateEnded; - [self reset]; - } else { - [self performSelector:@selector(cancel) withObject:nil afterDelay:_maxDelay]; - } -} - -- (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event -{ - [super touchesCancelled:touches withEvent:event]; - self.state = UIGestureRecognizerStateCancelled; - [self reset]; -} - -- (void)reset -{ - if (self.state == UIGestureRecognizerStateFailed) { - [self triggerAction]; - } - [NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(cancel) object:nil]; - _tapsSoFar = 0; - _maxNumberOfTouches = 0; - self.enabled = YES; - [super reset]; -} - -@end - -@implementation RNTapGestureHandler - -- (instancetype)initWithTag:(NSNumber *)tag -{ - if ((self = [super initWithTag:tag])) { - _recognizer = [[RNBetterTapGestureRecognizer alloc] initWithGestureHandler:self]; - } - return self; -} - -- (void)configure:(NSDictionary *)config -{ - [super configure:config]; - RNBetterTapGestureRecognizer *recognizer = (RNBetterTapGestureRecognizer *)_recognizer; - - APPLY_INT_PROP(numberOfTaps); - APPLY_INT_PROP(minPointers); - APPLY_FLOAT_PROP(maxDeltaX); - APPLY_FLOAT_PROP(maxDeltaY); - - id prop = config[@"maxDelayMs"]; - if (prop != nil) { - recognizer.maxDelay = [RCTConvert CGFloat:prop] / 1000.0; - } - - prop = config[@"maxDurationMs"]; - if (prop != nil) { - recognizer.maxDuration = [RCTConvert CGFloat:prop] / 1000.0; - } - - prop = config[@"maxDist"]; - if (prop != nil) { - CGFloat dist = [RCTConvert CGFloat:prop]; - recognizer.maxDistSq = dist * dist; - } -} - -@end - diff --git a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandler.h b/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandler.h deleted file mode 100644 index f952c15f987a3..0000000000000 --- a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandler.h +++ /dev/null @@ -1,73 +0,0 @@ -#import "RNGestureHandlerState.h" -#import "RNGestureHandlerDirection.h" -#import "RNGestureHandlerEvents.h" - -#import -#import -#import - -#define VEC_LEN_SQ(pt) (pt.x * pt.x + pt.y * pt.y) -#define TEST_MIN_IF_NOT_NAN(value, limit) \ -(!isnan(limit) && ((limit < 0 && value <= limit) || (limit >= 0 && value >= limit))) - -#define TEST_MAX_IF_NOT_NAN(value, max) \ -(!isnan(max) && ((max < 0 && value < max) || (max >= 0 && value > max))) - -#define APPLY_PROP(recognizer, config, type, prop, propName) do { \ -id value = config[propName]; \ -if (value != nil) recognizer.prop = [RCTConvert type:value]; \ -} while(0) - -#define APPLY_FLOAT_PROP(prop) do { APPLY_PROP(recognizer, config, CGFloat, prop, @#prop); } while(0) -#define APPLY_INT_PROP(prop) do { APPLY_PROP(recognizer, config, NSInteger, prop, @#prop); } while(0) -#define APPLY_NAMED_INT_PROP(prop, propName) do { APPLY_PROP(recognizer, config, NSInteger, prop, propName); } while(0) - -@protocol RNGestureHandlerEventEmitter - -- (void)sendTouchEvent:(nonnull RNGestureHandlerEvent *)event; - -- (void)sendStateChangeEvent:(nonnull RNGestureHandlerStateChange *)event; - -@end - - -@protocol RNRootViewGestureRecognizerDelegate - -- (void)gestureRecognizer:(nullable UIGestureRecognizer *)gestureRecognizer - didActivateInRootView:(nullable UIView *)rootView; - -@end - - -@interface RNGestureHandler : NSObject { - -@protected UIGestureRecognizer *_recognizer; -@protected RNGestureHandlerState _lastState; - -} - -+ (nullable RNGestureHandler *)findGestureHandlerByRecognizer:(nonnull UIGestureRecognizer *)recognizer; - -- (nonnull instancetype)initWithTag:(nonnull NSNumber *)tag; - -@property (nonatomic, readonly, nonnull) NSNumber *tag; -@property (nonatomic, weak, nullable) id emitter; -@property (nonatomic, readonly, nullable) UIGestureRecognizer *recognizer; -@property (nonatomic) BOOL enabled; -@property(nonatomic) BOOL shouldCancelWhenOutside; - -- (void)bindToView:(nonnull UIView *)view; -- (void)unbindFromView; -- (void)configure:(nullable NSDictionary *)config NS_REQUIRES_SUPER; -- (void)handleGesture:(nonnull id)recognizer; -- (BOOL)containsPointInView; -- (RNGestureHandlerState)state; -- (nullable RNGestureHandlerEventExtraData *)eventExtraData:(nonnull id)recognizer; - -- (void)reset; -- (void)sendEventsInState:(RNGestureHandlerState)state - forViewWithTag:(nonnull NSNumber *)reactTag - withExtraData:(RNGestureHandlerEventExtraData *)extraData; - -@end - diff --git a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandler.m b/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandler.m deleted file mode 100644 index 53027c219cfa6..0000000000000 --- a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandler.m +++ /dev/null @@ -1,315 +0,0 @@ -#import "RNGestureHandler.h" - -#import "Handlers/RNNativeViewHandler.h" - -#import - -#import - -@interface UIGestureRecognizer (GestureHandler) -@property (nonatomic, readonly) RNGestureHandler *gestureHandler; -@end - - -@implementation UIGestureRecognizer (GestureHandler) - -- (RNGestureHandler *)gestureHandler -{ - id delegate = self.delegate; - if ([delegate isKindOfClass:[RNGestureHandler class]]) { - return (RNGestureHandler *)delegate; - } - return nil; -} - -@end - -typedef struct RNGHHitSlop { - CGFloat top, left, bottom, right, width, height; -} RNGHHitSlop; - -static RNGHHitSlop RNGHHitSlopEmpty = { NAN, NAN, NAN, NAN, NAN, NAN }; - -#define RNGH_HIT_SLOP_GET(key) (prop[key] == nil ? NAN : [prop[key] doubleValue]) -#define RNGH_HIT_SLOP_IS_SET(hitSlop) (!isnan(hitSlop.left) || !isnan(hitSlop.right) || \ - !isnan(hitSlop.top) || !isnan(hitSlop.bottom)) -#define RNGH_HIT_SLOP_INSET(key) (isnan(hitSlop.key) ? 0. : hitSlop.key) - -CGRect RNGHHitSlopInsetRect(CGRect rect, RNGHHitSlop hitSlop) { - rect.origin.x -= RNGH_HIT_SLOP_INSET(left); - rect.origin.y -= RNGH_HIT_SLOP_INSET(top); - - if (!isnan(hitSlop.width)) { - if (!isnan(hitSlop.right)) { - rect.origin.x = rect.size.width - hitSlop.width + RNGH_HIT_SLOP_INSET(right); - } - rect.size.width = hitSlop.width; - } else { - rect.size.width += (RNGH_HIT_SLOP_INSET(left) + RNGH_HIT_SLOP_INSET(right)); - } - if (!isnan(hitSlop.height)) { - if (!isnan(hitSlop.bottom)) { - rect.origin.y = rect.size.height - hitSlop.height + RNGH_HIT_SLOP_INSET(bottom); - } - rect.size.height = hitSlop.height; - } else { - rect.size.height += (RNGH_HIT_SLOP_INSET(top) + RNGH_HIT_SLOP_INSET(bottom)); - } - return rect; -} - - -@implementation RNGestureHandler { - NSArray *_handlersToWaitFor; - NSArray *_simultaneousHandlers; - RNGHHitSlop _hitSlop; -} - -- (instancetype)initWithTag:(NSNumber *)tag -{ - if ((self = [super init])) { - _tag = tag; - _lastState = RNGestureHandlerStateUndetermined; - _hitSlop = RNGHHitSlopEmpty; - } - return self; -} - -- (void)configure:(NSDictionary *)config -{ - _handlersToWaitFor = [RCTConvert NSNumberArray:config[@"waitFor"]]; - _simultaneousHandlers = [RCTConvert NSNumberArray:config[@"simultaneousHandlers"]]; - - id prop = config[@"enabled"]; - if (prop != nil) { - self.enabled = [RCTConvert BOOL:prop]; - } else { - self.enabled = YES; - } - - prop = config[@"shouldCancelWhenOutside"]; - if (prop != nil) { - _shouldCancelWhenOutside = [RCTConvert BOOL:prop]; - } else { - _shouldCancelWhenOutside = NO; - } - - prop = config[@"hitSlop"]; - if ([prop isKindOfClass:[NSNumber class]]) { - _hitSlop.left = _hitSlop.right = _hitSlop.top = _hitSlop.bottom = [prop doubleValue]; - } else if (prop != nil) { - _hitSlop.left = _hitSlop.right = RNGH_HIT_SLOP_GET(@"horizontal"); - _hitSlop.top = _hitSlop.bottom = RNGH_HIT_SLOP_GET(@"vertical"); - _hitSlop.left = RNGH_HIT_SLOP_GET(@"left"); - _hitSlop.right = RNGH_HIT_SLOP_GET(@"right"); - _hitSlop.top = RNGH_HIT_SLOP_GET(@"top"); - _hitSlop.bottom = RNGH_HIT_SLOP_GET(@"bottom"); - _hitSlop.width = RNGH_HIT_SLOP_GET(@"width"); - _hitSlop.height = RNGH_HIT_SLOP_GET(@"height"); - if (isnan(_hitSlop.left) && isnan(_hitSlop.right) && !isnan(_hitSlop.width)) { - RCTLogError(@"When width is set one of left or right pads need to be defined"); - } - if (!isnan(_hitSlop.width) && !isnan(_hitSlop.left) && !isnan(_hitSlop.right)) { - RCTLogError(@"Cannot have all of left, right and width defined"); - } - if (isnan(_hitSlop.top) && isnan(_hitSlop.bottom) && !isnan(_hitSlop.height)) { - RCTLogError(@"When height is set one of top or bottom pads need to be defined"); - } - if (!isnan(_hitSlop.height) && !isnan(_hitSlop.top) && !isnan(_hitSlop.bottom)) { - RCTLogError(@"Cannot have all of top, bottom and height defined"); - } - } -} - -- (void)setEnabled:(BOOL)enabled -{ - _enabled = enabled; - self.recognizer.enabled = enabled; -} - -- (void)bindToView:(UIView *)view -{ - view.userInteractionEnabled = YES; - self.recognizer.delegate = self; - [view addGestureRecognizer:self.recognizer]; -} - -- (void)unbindFromView -{ - [self.recognizer.view removeGestureRecognizer:self.recognizer]; - self.recognizer.delegate = nil; -} - -- (RNGestureHandlerEventExtraData *)eventExtraData:(UIGestureRecognizer *)recognizer -{ - return [RNGestureHandlerEventExtraData - forPosition:[recognizer locationInView:recognizer.view] - withAbsolutePosition:[recognizer locationInView:recognizer.view.window] - withNumberOfTouches:recognizer.numberOfTouches]; -} - -- (void)handleGesture:(UIGestureRecognizer *)recognizer -{ - RNGestureHandlerEventExtraData *eventData = [self eventExtraData:recognizer]; - [self sendEventsInState:self.state forViewWithTag:recognizer.view.reactTag withExtraData:eventData]; -} - -- (void)sendEventsInState:(RNGestureHandlerState)state - forViewWithTag:(nonnull NSNumber *)reactTag - withExtraData:(RNGestureHandlerEventExtraData *)extraData -{ - id touchEvent = [[RNGestureHandlerEvent alloc] initWithRactTag:reactTag - handlerTag:_tag - state:state - extraData:extraData]; - - if (state != _lastState) { - if (state == RNGestureHandlerStateEnd && _lastState != RNGestureHandlerStateActive) { - [self.emitter sendStateChangeEvent:[[RNGestureHandlerStateChange alloc] initWithRactTag:reactTag - handlerTag:_tag - state:RNGestureHandlerStateActive - prevState:_lastState - extraData:extraData]]; - _lastState = RNGestureHandlerStateActive; - } - id stateEvent = [[RNGestureHandlerStateChange alloc] initWithRactTag:reactTag - handlerTag:_tag - state:state - prevState:_lastState - extraData:extraData]; - [self.emitter sendStateChangeEvent:stateEvent]; - _lastState = state; - } - - if (state == RNGestureHandlerStateActive) { - [self.emitter sendTouchEvent:touchEvent]; - } -} - -- (RNGestureHandlerState)state -{ - switch (_recognizer.state) { - case UIGestureRecognizerStateBegan: - case UIGestureRecognizerStatePossible: - return RNGestureHandlerStateBegan; - case UIGestureRecognizerStateEnded: - return RNGestureHandlerStateEnd; - case UIGestureRecognizerStateFailed: - return RNGestureHandlerStateFailed; - case UIGestureRecognizerStateCancelled: - return RNGestureHandlerStateCancelled; - case UIGestureRecognizerStateChanged: - return RNGestureHandlerStateActive; - } - return RNGestureHandlerStateUndetermined; -} - -#pragma mark UIGestureRecognizerDelegate - -+ (RNGestureHandler *)findGestureHandlerByRecognizer:(UIGestureRecognizer *)recognizer -{ - RNGestureHandler *handler = recognizer.gestureHandler; - if (handler != nil) { - return handler; - } - - // We may try to extract "DummyGestureHandler" in case when "otherGestureRecognizer" belongs to - // a native view being wrapped with "NativeViewGestureHandler" - UIView *reactView = recognizer.view; - while (reactView != nil && reactView.reactTag == nil) { - reactView = reactView.superview; - } - - for (UIGestureRecognizer *recognizer in reactView.gestureRecognizers) { - if ([recognizer isKindOfClass:[RNDummyGestureRecognizer class]]) { - return recognizer.gestureHandler; - } - } - - return nil; -} - -- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer -shouldBeRequiredToFailByGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer -{ - RNGestureHandler *handler = [RNGestureHandler findGestureHandlerByRecognizer:otherGestureRecognizer]; - if ([handler isKindOfClass:[RNNativeViewGestureHandler class]]) { - for (NSNumber *handlerTag in handler->_handlersToWaitFor) { - if ([_tag isEqual:handlerTag]) { - return YES; - } - } - } - - return NO; -} - -- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer -shouldRequireFailureOfGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer -{ - if ([_handlersToWaitFor count]) { - RNGestureHandler *handler = [RNGestureHandler findGestureHandlerByRecognizer:otherGestureRecognizer]; - if (handler != nil) { - for (NSNumber *handlerTag in _handlersToWaitFor) { - if ([handler.tag isEqual:handlerTag]) { - return YES; - } - } - } - } - return NO; -} - -- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer -shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer -{ - if (_recognizer.state == UIGestureRecognizerStateBegan && _recognizer.state == UIGestureRecognizerStatePossible) { - return YES; - } - if ([_simultaneousHandlers count]) { - RNGestureHandler *handler = [RNGestureHandler findGestureHandlerByRecognizer:otherGestureRecognizer]; - if (handler != nil) { - for (NSNumber *handlerTag in _simultaneousHandlers) { - if ([handler.tag isEqual:handlerTag]) { - return YES; - } - } - } - } - return NO; -} - -- (void)reset -{ - _lastState = RNGestureHandlerStateUndetermined; -} - - - (BOOL)containsPointInView - { - CGPoint pt = [_recognizer locationInView:_recognizer.view]; - CGRect hitFrame = RNGHHitSlopInsetRect(_recognizer.view.bounds, _hitSlop); - return CGRectContainsPoint(hitFrame, pt); - } - -- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer -{ - [self reset]; - return YES; -} - -- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch -{ - // If hitSlop is set we use it to determine if a given gesture recognizer should start processing - // touch stream. This only works for negative values of hitSlop as this method won't be triggered - // unless touch startes in the bounds of the attached view. To acheve similar effect with positive - // values of hitSlop one should set hitSlop for the underlying view. This limitation is due to the - // fact that hitTest method is only available at the level of UIView - if (RNGH_HIT_SLOP_IS_SET(_hitSlop)) { - CGPoint location = [touch locationInView:gestureRecognizer.view]; - CGRect hitFrame = RNGHHitSlopInsetRect(gestureRecognizer.view.bounds, _hitSlop); - return CGRectContainsPoint(hitFrame, location); - } - return YES; -} - -@end diff --git a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerButton.h b/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerButton.h deleted file mode 100644 index bfbbf7b2f3c88..0000000000000 --- a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerButton.h +++ /dev/null @@ -1,18 +0,0 @@ -// -// RNGestureHandlerButton.h -// RNGestureHandler -// -// Created by Krzysztof Magiera on 12/10/2017. -// Copyright © 2017 Software Mansion. All rights reserved. -// - -#import "RNGestureHandler.h" - -@interface RNGestureHandlerButton : UIControl - -/** - * Insets used when hit testing inside this view. - */ -@property (nonatomic, assign) UIEdgeInsets hitTestEdgeInsets; - -@end diff --git a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerButton.m b/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerButton.m deleted file mode 100644 index 14ade75ff8179..0000000000000 --- a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerButton.m +++ /dev/null @@ -1,70 +0,0 @@ -// -// RNGestureHandlerButton.m -// RNGestureHandler -// -// Created by Krzysztof Magiera on 12/10/2017. -// Copyright © 2017 Software Mansion. All rights reserved. -// - -#import "RNGestureHandlerButton.h" - -#import - -/** - * Gesture Handler Button components overrides standard mechanism used by RN - * to determine touch target, which normally would reurn the UIView that is placed - * as the deepest element in the view hierarchy. - * It's done this way as it allows for the actual target determination to run in JS - * where we can travers up the view ierarchy to find first element that want to became - * JS responder. - * - * Since we want to use native button (or actually a `UIControl`) we need to determine - * the target in native. This makes it impossible for JS responder based components to - * function as a subviews of the button component. Here we override `hitTest:withEvent:` - * method and we only determine the target to be either a subclass of `UIControl` or a - * view that has gesture recognizers registered. - * - * This "default" behaviour of target determinator should be sufficient in most of the - * cases as in fact it is not that common UI pattern to have many nested buttons (usually - * there are just two levels e.g. when you have clickable table cells with additional - * buttons). In cases when the default behaviour is insufficient it is recommended to use - * `TapGestureHandler` instead of a button which gives much better flexibility as far as - * controlling the touch flow. - */ -@implementation RNGestureHandlerButton - -- (instancetype)init -{ - self = [super init]; - if (self) { - _hitTestEdgeInsets = UIEdgeInsetsZero; -#if !TARGET_OS_TV - [self setExclusiveTouch:YES]; -#endif - } - return self; -} - -- (BOOL)shouldHandleTouch:(UIView *)view -{ - return [view isKindOfClass:[UIControl class]] || [view.gestureRecognizers count] > 0; -} - -- (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event -{ - if (UIEdgeInsetsEqualToEdgeInsets(self.hitTestEdgeInsets, UIEdgeInsetsZero)) { - return [super pointInside:point withEvent:event]; - } - CGRect hitFrame = UIEdgeInsetsInsetRect(self.bounds, self.hitTestEdgeInsets); - return CGRectContainsPoint(hitFrame, point); -} - -- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event -{ - UIView *inner = [super hitTest:point withEvent:event]; - while (inner && ![self shouldHandleTouch:inner]) inner = inner.superview; - return inner; -} - -@end - diff --git a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerDirection.h b/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerDirection.h deleted file mode 100644 index 84e4f18c90557..0000000000000 --- a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerDirection.h +++ /dev/null @@ -1,8 +0,0 @@ -#import - -typedef NS_ENUM(NSInteger, RNGestureHandlerDirection) { - RNGestureHandlerDirectionRight = 1, - RNGestureHandlerDirectionLeft = 2, - RNGestureHandlerDirectionUp = 4, - RNGestureHandlerDirectionDown = 8, -}; diff --git a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerEvents.h b/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerEvents.h deleted file mode 100644 index 06149d0861928..0000000000000 --- a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerEvents.h +++ /dev/null @@ -1,55 +0,0 @@ -#import - -#import -#import - -#import "RNGestureHandlerState.h" - -@interface RNGestureHandlerEventExtraData : NSObject - -@property (readonly) NSDictionary *data; - -- (instancetype)initWithData:(NSDictionary *)data; - -+ (RNGestureHandlerEventExtraData *)forPosition:(CGPoint)position - withAbsolutePosition:(CGPoint)absolutePosition - withNumberOfTouches:(NSUInteger)numberOfTouches; -+ (RNGestureHandlerEventExtraData *)forPan:(CGPoint)position - withAbsolutePosition:(CGPoint)absolutePosition - withTranslation:(CGPoint)translation - withVelocity:(CGPoint)velocity - withNumberOfTouches:(NSUInteger)numberOfTouches; -+ (RNGestureHandlerEventExtraData *)forForce:(CGFloat)force - forPosition:(CGPoint)position - withAbsolutePosition:(CGPoint)absolutePosition - withNumberOfTouches:(NSUInteger)numberOfTouches; -+ (RNGestureHandlerEventExtraData *)forPinch:(CGFloat)scale - withFocalPoint:(CGPoint)focalPoint - withVelocity:(CGFloat)velocity - withNumberOfTouches:(NSUInteger)numberOfTouches; -+ (RNGestureHandlerEventExtraData *)forRotation:(CGFloat)rotation - withAnchorPoint:(CGPoint)anchorPoint - withVelocity:(CGFloat)velocity - withNumberOfTouches:(NSUInteger)numberOfTouches; -+ (RNGestureHandlerEventExtraData *)forPointerInside:(BOOL)pointerInside; -@end - -@interface RNGestureHandlerEvent : NSObject - -- (instancetype)initWithRactTag:(NSNumber *)reactTag - handlerTag:(NSNumber *)handlerTag - state:(RNGestureHandlerState)state - extraData:(RNGestureHandlerEventExtraData*)extraData NS_DESIGNATED_INITIALIZER; - -@end - - -@interface RNGestureHandlerStateChange : NSObject - -- (instancetype)initWithRactTag:(NSNumber *)reactTag - handlerTag:(NSNumber *)handlerTag - state:(RNGestureHandlerState)state - prevState:(RNGestureHandlerState)prevState - extraData:(RNGestureHandlerEventExtraData*)extraData NS_DESIGNATED_INITIALIZER; - -@end diff --git a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerEvents.m b/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerEvents.m deleted file mode 100644 index d610b0fa278f7..0000000000000 --- a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerEvents.m +++ /dev/null @@ -1,222 +0,0 @@ -#import "RNGestureHandlerEvents.h" - -#define SAFE_VELOCITY(velocity) @(isnan(velocity) ? 0 : velocity) - -@implementation RNGestureHandlerEventExtraData - -- (instancetype)initWithData:(NSDictionary *)data; -{ - if ((self = [super init])) { - _data = data; - } - return self; -} - -+ (RNGestureHandlerEventExtraData *)forPosition:(CGPoint)position - withAbsolutePosition:(CGPoint)absolutePosition - withNumberOfTouches:(NSUInteger)numberOfTouches -{ - return [[RNGestureHandlerEventExtraData alloc] - initWithData:@{ - @"x": @(position.x), - @"y": @(position.y), - @"absoluteX": @(absolutePosition.x), - @"absoluteY": @(absolutePosition.y), - @"numberOfPointers": @(numberOfTouches)}]; -} - -+ (RNGestureHandlerEventExtraData *)forPan:(CGPoint)position - withAbsolutePosition:(CGPoint)absolutePosition - withTranslation:(CGPoint)translation - withVelocity:(CGPoint)velocity - withNumberOfTouches:(NSUInteger)numberOfTouches -{ - return [[RNGestureHandlerEventExtraData alloc] - initWithData:@{ - @"x": @(position.x), - @"y": @(position.y), - @"absoluteX": @(absolutePosition.x), - @"absoluteY": @(absolutePosition.y), - @"translationX": @(translation.x), - @"translationY": @(translation.y), - @"velocityX": SAFE_VELOCITY(velocity.x), - @"velocityY": SAFE_VELOCITY(velocity.y), - @"numberOfPointers": @(numberOfTouches)}]; -} - -+ (RNGestureHandlerEventExtraData *)forForce:(CGFloat)force - forPosition:(CGPoint)position - withAbsolutePosition:(CGPoint)absolutePosition - withNumberOfTouches:(NSUInteger)numberOfTouches -{ - return [[RNGestureHandlerEventExtraData alloc] - initWithData:@{ - @"x": @(position.x), - @"y": @(position.y), - @"absoluteX": @(absolutePosition.x), - @"absoluteY": @(absolutePosition.y), - @"force": @(force), - @"numberOfPointers": @(numberOfTouches)}]; - -} - -+ (RNGestureHandlerEventExtraData *)forPinch:(CGFloat)scale - withFocalPoint:(CGPoint)focalPoint - withVelocity:(CGFloat)velocity - withNumberOfTouches:(NSUInteger)numberOfTouches -{ - return [[RNGestureHandlerEventExtraData alloc] - initWithData:@{ - @"scale": @(scale), - @"focalX": @(focalPoint.x), - @"focalY": @(focalPoint.y), - @"velocity": SAFE_VELOCITY(velocity), - @"numberOfPointers": @(numberOfTouches)}]; -} - -+ (RNGestureHandlerEventExtraData *)forRotation:(CGFloat)rotation - withAnchorPoint:(CGPoint)anchorPoint - withVelocity:(CGFloat)velocity - withNumberOfTouches:(NSUInteger)numberOfTouches -{ - return [[RNGestureHandlerEventExtraData alloc] - initWithData:@{@"rotation": @(rotation), - @"anchorX": @(anchorPoint.x), - @"anchorY": @(anchorPoint.y), - @"velocity": SAFE_VELOCITY(velocity), - @"numberOfPointers": @(numberOfTouches)}]; -} - -+ (RNGestureHandlerEventExtraData *)forPointerInside:(BOOL)pointerInside -{ - return [[RNGestureHandlerEventExtraData alloc] - initWithData:@{@"pointerInside": @(pointerInside)}]; -} - -@end - - -@implementation RNGestureHandlerEvent -{ - NSNumber *_handlerTag; - RNGestureHandlerState _state; - RNGestureHandlerEventExtraData *_extraData; -} - -@synthesize viewTag = _viewTag; -@synthesize coalescingKey = _coalescingKey; - -- (instancetype)initWithRactTag:(NSNumber *)reactTag - handlerTag:(NSNumber *)handlerTag - state:(RNGestureHandlerState)state - extraData:(RNGestureHandlerEventExtraData *)extraData -{ - static uint16_t coalescingKey = 0; - if ((self = [super init])) { - _viewTag = reactTag; - _handlerTag = handlerTag; - _state = state; - _extraData = extraData; - _coalescingKey = coalescingKey++; - } - return self; -} - -RCT_NOT_IMPLEMENTED(- (instancetype)init) - -- (NSString *)eventName -{ - return @"onGestureHandlerEvent"; -} - -- (BOOL)canCoalesce -{ - // TODO: event coalescing - return NO; -} - -- (id)coalesceWithEvent:(id)newEvent; -{ - return newEvent; -} - -+ (NSString *)moduleDotMethod -{ - return @"RCTEventEmitter.receiveEvent"; -} - -- (NSArray *)arguments -{ - NSMutableDictionary *body = [NSMutableDictionary dictionaryWithDictionary:_extraData.data]; - [body setObject:_viewTag forKey:@"target"]; - [body setObject:_handlerTag forKey:@"handlerTag"]; - [body setObject:@(_state) forKey:@"state"]; - return @[self.viewTag, @"onGestureHandlerEvent", body]; -} - -@end - - -@implementation RNGestureHandlerStateChange -{ - NSNumber *_handlerTag; - RNGestureHandlerState _state; - RNGestureHandlerState _prevState; - RNGestureHandlerEventExtraData *_extraData; -} - -@synthesize viewTag = _viewTag; -@synthesize coalescingKey = _coalescingKey; - -- (instancetype)initWithRactTag:(NSNumber *)reactTag - handlerTag:(NSNumber *)handlerTag - state:(RNGestureHandlerState)state - prevState:(RNGestureHandlerState)prevState - extraData:(RNGestureHandlerEventExtraData *)extraData -{ - static uint16_t coalescingKey = 0; - if ((self = [super init])) { - _viewTag = reactTag; - _handlerTag = handlerTag; - _state = state; - _prevState = prevState; - _extraData = extraData; - _coalescingKey = coalescingKey++; - } - return self; -} - -RCT_NOT_IMPLEMENTED(- (instancetype)init) - -- (NSString *)eventName -{ - return @"onGestureHandlerStateChange"; -} - -- (BOOL)canCoalesce -{ - // TODO: event coalescing - return NO; -} - -- (id)coalesceWithEvent:(id)newEvent; -{ - return newEvent; -} - -+ (NSString *)moduleDotMethod -{ - return @"RCTEventEmitter.receiveEvent"; -} - -- (NSArray *)arguments -{ - NSMutableDictionary *body = [NSMutableDictionary dictionaryWithDictionary:_extraData.data]; - [body setObject:_viewTag forKey:@"target"]; - [body setObject:_handlerTag forKey:@"handlerTag"]; - [body setObject:@(_state) forKey:@"state"]; - [body setObject:@(_prevState) forKey:@"oldState"]; - return @[self.viewTag, @"onGestureHandlerStateChange", body]; -} - -@end diff --git a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerManager.h b/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerManager.h deleted file mode 100644 index a94a0fd505a96..0000000000000 --- a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerManager.h +++ /dev/null @@ -1,27 +0,0 @@ -#import - -#import -#import - -@interface RNGestureHandlerManager : NSObject - -- (nonnull instancetype)initWithUIManager:(nonnull RCTUIManager *)uiManager - eventDispatcher:(nonnull RCTEventDispatcher *)eventDispatcher; - -- (void)createGestureHandler:(nonnull NSString *)handlerName - tag:(nonnull NSNumber *)handlerTag - config:(nonnull NSDictionary *)config; - -- (void)attachGestureHandler:(nonnull NSNumber *)handlerTag - toViewWithTag:(nonnull NSNumber *)viewTag; - -- (void)updateGestureHandler:(nonnull NSNumber *)handlerTag config:(nonnull NSDictionary *)config; - -- (void)dropGestureHandler:(nonnull NSNumber *)handlerTag; - -- (void)handleSetJSResponder:(nonnull NSNumber *)viewTag - blockNativeResponder:(nonnull NSNumber *)blockNativeResponder; - -- (void)handleClearJSResponder; - -@end diff --git a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerManager.m b/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerManager.m deleted file mode 100644 index 7ca62154fdc17..0000000000000 --- a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerManager.m +++ /dev/null @@ -1,186 +0,0 @@ -#import "RNGestureHandlerManager.h" - -#import -#import -#import -#import -#import -#import - -#import "RNGestureHandlerState.h" -#import "RNGestureHandler.h" -#import "RNGestureHandlerRegistry.h" -#import "RNRootViewGestureRecognizer.h" - -#import "Handlers/RNPanHandler.h" -#import "Handlers/RNTapHandler.h" -#import "Handlers/RNFlingHandler.h" -#import "Handlers/RNLongPressHandler.h" -#import "Handlers/RNNativeViewHandler.h" -#import "Handlers/RNPinchHandler.h" -#import "Handlers/RNRotationHandler.h" -#import "Handlers/RNForceTouchHandler.h" - -// We use the method below instead of RCTLog because we log out messages after the bridge gets -// turned down in some cases. Which normally with RCTLog would cause a crash in DEBUG mode -#define RCTLifecycleLog(...) RCTDefaultLogFunction(RCTLogLevelInfo, RCTLogSourceNative, @(__FILE__), @(__LINE__), [NSString stringWithFormat:__VA_ARGS__]) - -@interface RNGestureHandlerManager () - -@end - -@implementation RNGestureHandlerManager -{ - RNGestureHandlerRegistry *_registry; - RCTUIManager *_uiManager; - NSMutableSet *_rootViews; - RCTEventDispatcher *_eventDispatcher; -} - -- (instancetype)initWithUIManager:(RCTUIManager *)uiManager - eventDispatcher:(RCTEventDispatcher *)eventDispatcher -{ - if ((self = [super init])) { - _uiManager = uiManager; - _eventDispatcher = eventDispatcher; - _registry = [RNGestureHandlerRegistry new]; - _rootViews = [NSMutableSet new]; - } - return self; -} - -- (void)createGestureHandler:(NSString *)handlerName - tag:(NSNumber *)handlerTag - config:(NSDictionary *)config -{ - static NSDictionary *map; - static dispatch_once_t mapToken; - dispatch_once(&mapToken, ^{ - map = @{ - @"PanGestureHandler" : [RNPanGestureHandler class], - @"TapGestureHandler" : [RNTapGestureHandler class], - @"FlingGestureHandler" : [RNFlingGestureHandler class], - @"LongPressGestureHandler": [RNLongPressGestureHandler class], - @"NativeViewGestureHandler": [RNNativeViewGestureHandler class], - @"PinchGestureHandler": [RNPinchGestureHandler class], - @"RotationGestureHandler": [RNRotationGestureHandler class], - @"ForceTouchGestureHandler": [RNForceTouchHandler class], - }; - }); - - Class nodeClass = map[handlerName]; - if (!nodeClass) { - RCTLogError(@"Gesture handler type %@ is not supported", handlerName); - return; - } - - RNGestureHandler *gestureHandler = [[nodeClass alloc] initWithTag:handlerTag]; - [gestureHandler configure:config]; - [_registry registerGestureHandler:gestureHandler]; - - __weak id emitter = self; - gestureHandler.emitter = emitter; -} - - -- (void)attachGestureHandler:(nonnull NSNumber *)handlerTag - toViewWithTag:(nonnull NSNumber *)viewTag -{ - UIView *view = [_uiManager viewForReactTag:viewTag]; - - [_registry attachHandlerWithTag:handlerTag toView:view]; - - // register root view if not already there - [self registerRootViewIfNeeded:view]; -} - -- (void)updateGestureHandler:(NSNumber *)handlerTag config:(NSDictionary *)config -{ - RNGestureHandler *handler = [_registry handlerWithTag:handlerTag]; - [handler configure:config]; -} - -- (void)dropGestureHandler:(NSNumber *)handlerTag -{ - [_registry dropHandlerWithTag:handlerTag]; -} - -- (void)handleSetJSResponder:(NSNumber *)viewTag blockNativeResponder:(NSNumber *)blockNativeResponder -{ - if ([blockNativeResponder boolValue]) { - for (RCTRootView *rootView in _rootViews) { - for (UIGestureRecognizer *recognizer in rootView.gestureRecognizers) { - if ([recognizer isKindOfClass:[RNRootViewGestureRecognizer class]]) { - [(RNRootViewGestureRecognizer *)recognizer blockOtherRecognizers]; - } - } - } - } -} - -- (void)handleClearJSResponder -{ - // ignore... -} - -#pragma mark Root Views Management - -- (void)registerRootViewIfNeeded:(UIView*)childView -{ - UIView *parent = childView; - while (parent != nil && ![parent isKindOfClass:[RCTRootView class]]) parent = parent.superview; - - RCTRootView *rootView = (RCTRootView *)parent; - UIView *rootContentView = rootView.contentView; - if (rootContentView != nil && ![_rootViews containsObject:rootContentView]) { - RCTLifecycleLog(@"[GESTURE HANDLER] Initialize gesture handler for root view %@", rootContentView); - [_rootViews addObject:rootContentView]; - RNRootViewGestureRecognizer *recognizer = [RNRootViewGestureRecognizer new]; - recognizer.delegate = self; - rootContentView.userInteractionEnabled = YES; - [rootContentView addGestureRecognizer:recognizer]; - } -} - -- (void)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer - didActivateInRootView:(UIView *)rootContentView -{ - // Cancel touches in RN's root view in order to cancel all in-js recognizers - - // As scroll events are special-cased in RN responder implementation and sending them would - // trigger JS responder change, we don't cancel touches if the handler that got activated is - // a scroll recognizer. This way root view will keep sending touchMove and touchEnd events - // and therefore allow JS responder to properly release the responder at the end of the touch - // stream. - // NOTE: this is not a proper fix and solving this problem requires upstream fixes to RN. In - // particular if we have one PanHandler and ScrollView that can work simultaniously then when - // the Pan handler activates it would still tigger cancel events. - // Once the upstream fix lands the line below along with this comment can be removed - if ([gestureRecognizer.view isKindOfClass:[UIScrollView class]]) return; - - UIView *parent = rootContentView.superview; - if ([parent isKindOfClass:[RCTRootView class]]) { - [((RCTRootContentView*)rootContentView).touchHandler cancel]; - } -} - -- (void)dealloc -{ - if ([_rootViews count] > 0) { - RCTLifecycleLog(@"[GESTURE HANDLER] Tearing down gesture handler registered for views %@", _rootViews); - } -} - -#pragma mark Events - -- (void)sendTouchEvent:(RNGestureHandlerEvent *)event -{ - [_eventDispatcher sendEvent:event]; -} - -- (void)sendStateChangeEvent:(RNGestureHandlerStateChange *)event -{ - [_eventDispatcher sendEvent:event]; -} - -@end diff --git a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerModule.h b/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerModule.h deleted file mode 100644 index b5b1cc9e44eda..0000000000000 --- a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerModule.h +++ /dev/null @@ -1,8 +0,0 @@ -#import -#import -#import - -@interface RNGestureHandlerModule : RCTEventEmitter - -@end - diff --git a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerModule.m b/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerModule.m deleted file mode 100644 index 4fc4b746bab11..0000000000000 --- a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerModule.m +++ /dev/null @@ -1,200 +0,0 @@ -#import "RNGestureHandlerModule.h" - -#import -#import -#import -#import -#import -#import - -#import "RNGestureHandlerState.h" -#import "RNGestureHandlerDirection.h" -#import "RNGestureHandler.h" -#import "RNGestureHandlerManager.h" - -#import "RNGestureHandlerButton.h" - -@interface RNGestureHandlerModule () - -@end - -@interface RNGestureHandlerButtonManager : RCTViewManager -@end - -@implementation RNGestureHandlerButtonManager - -RCT_EXPORT_MODULE(RNGestureHandlerButton) - -RCT_EXPORT_VIEW_PROPERTY(enabled, BOOL) -#if !TARGET_OS_TV -RCT_CUSTOM_VIEW_PROPERTY(exclusive, BOOL, RNGestureHandlerButton) -{ - [view setExclusiveTouch: json == nil ? YES : [RCTConvert BOOL: json]]; -} -#endif -RCT_CUSTOM_VIEW_PROPERTY(hitSlop, UIEdgeInsets, RNGestureHandlerButton) -{ - if (json) { - UIEdgeInsets hitSlopInsets = [RCTConvert UIEdgeInsets:json]; - view.hitTestEdgeInsets = UIEdgeInsetsMake(-hitSlopInsets.top, -hitSlopInsets.left, -hitSlopInsets.bottom, -hitSlopInsets.right); - } else { - view.hitTestEdgeInsets = defaultView.hitTestEdgeInsets; - } -} - -- (UIView *)view -{ - return [RNGestureHandlerButton new]; -} - -@end - - -typedef void (^GestureHandlerOperation)(RNGestureHandlerManager *manager); - -@implementation RNGestureHandlerModule -{ - RNGestureHandlerManager *_manager; - - // Oparations called after views have been updated. - NSMutableArray *_operations; -} - -RCT_EXPORT_MODULE() - -+ (BOOL)requiresMainQueueSetup -{ - return YES; -} - -- (void)invalidate -{ - _manager = nil; - [self.bridge.uiManager.observerCoordinator removeObserver:self]; -} - -- (dispatch_queue_t)methodQueue -{ - // This module needs to be on the same queue as the UIManager to avoid - // having to lock `_operations` and `_preOperations` since `uiManagerWillFlushUIBlocks` - // will be called from that queue. - - // This is required as this module rely on having all the view nodes created before - // gesture handlers can be associated with them - return RCTGetUIManagerQueue(); -} - -- (void)setBridge:(RCTBridge *)bridge -{ - [super setBridge:bridge]; - - _manager = [[RNGestureHandlerManager alloc] - initWithUIManager:bridge.uiManager - eventDispatcher:bridge.eventDispatcher]; - _operations = [NSMutableArray new]; - [bridge.uiManager.observerCoordinator addObserver:self]; -} - -RCT_EXPORT_METHOD(createGestureHandler:(nonnull NSString *)handlerName tag:(nonnull NSNumber *)handlerTag config:(NSDictionary *)config) -{ - [self addOperationBlock:^(RNGestureHandlerManager *manager) { - [manager createGestureHandler:handlerName tag:handlerTag config:config]; - }]; -} - -RCT_EXPORT_METHOD(attachGestureHandler:(nonnull NSNumber *)handlerTag toViewWithTag:(nonnull NSNumber *)viewTag) -{ - [self addOperationBlock:^(RNGestureHandlerManager *manager) { - [manager attachGestureHandler:handlerTag toViewWithTag:viewTag]; - }]; -} - -RCT_EXPORT_METHOD(updateGestureHandler:(nonnull NSNumber *)handlerTag config:(NSDictionary *)config) -{ - [self addOperationBlock:^(RNGestureHandlerManager *manager) { - [manager updateGestureHandler:handlerTag config:config]; - }]; -} - -RCT_EXPORT_METHOD(dropGestureHandler:(nonnull NSNumber *)handlerTag) -{ - [self addOperationBlock:^(RNGestureHandlerManager *manager) { - [manager dropGestureHandler:handlerTag]; - }]; -} - -RCT_EXPORT_METHOD(handleSetJSResponder:(nonnull NSNumber *)viewTag blockNativeResponder:(nonnull NSNumber *)blockNativeResponder) -{ - [self addOperationBlock:^(RNGestureHandlerManager *manager) { - [manager handleSetJSResponder:viewTag blockNativeResponder:blockNativeResponder]; - }]; -} - -RCT_EXPORT_METHOD(handleClearJSResponder) -{ - [self addOperationBlock:^(RNGestureHandlerManager *manager) { - [manager handleClearJSResponder]; - }]; -} - -#pragma mark -- Batch handling - -- (void)addOperationBlock:(GestureHandlerOperation)operation -{ - [_operations addObject:operation]; -} - -#pragma mark - RCTUIManagerObserver - -- (void)uiManagerWillFlushUIBlocks:(RCTUIManager *)uiManager -{ - [self uiManagerWillPerformMounting:uiManager]; -} - -- (void)uiManagerWillPerformMounting:(RCTUIManager *)uiManager -{ - if (_operations.count == 0) { - return; - } - - NSArray *operations = _operations; - _operations = [NSMutableArray new]; - - [uiManager addUIBlock:^(__unused RCTUIManager *manager, __unused NSDictionary *viewRegistry) { - for (GestureHandlerOperation operation in operations) { - operation(self->_manager); - } - }]; -} - -#pragma mark Events - -- (NSArray *)supportedEvents -{ - return @[@"onGestureHandlerEvent", @"onGestureHandlerStateChange"]; -} - -#pragma mark Module Constants - -- (NSDictionary *)constantsToExport -{ - return @{ @"State": @{ - @"UNDETERMINED": @(RNGestureHandlerStateUndetermined), - @"BEGAN": @(RNGestureHandlerStateBegan), - @"ACTIVE": @(RNGestureHandlerStateActive), - @"CANCELLED": @(RNGestureHandlerStateCancelled), - @"FAILED": @(RNGestureHandlerStateFailed), - @"END": @(RNGestureHandlerStateEnd) - }, - @"Direction": @{ - @"RIGHT": @(RNGestureHandlerDirectionRight), - @"LEFT": @(RNGestureHandlerDirectionLeft), - @"UP": @(RNGestureHandlerDirectionUp), - @"DOWN": @(RNGestureHandlerDirectionDown) - } - }; -} - - - -@end diff --git a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerRegistry.h b/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerRegistry.h deleted file mode 100644 index d65ede2ff71d1..0000000000000 --- a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerRegistry.h +++ /dev/null @@ -1,18 +0,0 @@ -// -// RNGestureHandlerRegistry.h -// RNGestureHandler -// -// Created by Krzysztof Magiera on 12/10/2017. -// Copyright © 2017 Software Mansion. All rights reserved. -// - -#import "RNGestureHandler.h" - -@interface RNGestureHandlerRegistry : NSObject - -- (nullable RNGestureHandler *)handlerWithTag:(nonnull NSNumber *)handlerTag; -- (void)registerGestureHandler:(nonnull RNGestureHandler *)gestureHandler; -- (void)attachHandlerWithTag:(nonnull NSNumber *)handlerTag toView:(nonnull UIView *)view; -- (void)dropHandlerWithTag:(nonnull NSNumber *)handlerTag; - -@end diff --git a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerRegistry.m b/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerRegistry.m deleted file mode 100644 index c2f24c09c3b79..0000000000000 --- a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerRegistry.m +++ /dev/null @@ -1,50 +0,0 @@ -// -// RNGestureHandlerRegistry.m -// RNGestureHandler -// -// Created by Krzysztof Magiera on 12/10/2017. -// Copyright © 2017 Software Mansion. All rights reserved. -// - -#import "RNGestureHandlerRegistry.h" - -#import - -@implementation RNGestureHandlerRegistry { - NSMutableDictionary *_handlers; -} - -- (instancetype)init -{ - if ((self = [super init])) { - _handlers = [NSMutableDictionary new]; - } - return self; -} - -- (RNGestureHandler *)handlerWithTag:(NSNumber *)handlerTag -{ - return _handlers[handlerTag]; -} - -- (void)registerGestureHandler:(RNGestureHandler *)gestureHandler -{ - _handlers[gestureHandler.tag] = gestureHandler; -} - -- (void)attachHandlerWithTag:(NSNumber *)handlerTag toView:(UIView *)view -{ - RNGestureHandler *handler = _handlers[handlerTag]; - RCTAssert(handler != nil, @"Handler for tag %@ does not exists", handlerTag); - [handler unbindFromView]; - [handler bindToView:view]; -} - -- (void)dropHandlerWithTag:(NSNumber *)handlerTag -{ - RNGestureHandler *handler = _handlers[handlerTag]; - [handler unbindFromView]; - [_handlers removeObjectForKey:handlerTag]; -} - -@end diff --git a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerState.h b/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerState.h deleted file mode 100644 index b550697af5204..0000000000000 --- a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNGestureHandlerState.h +++ /dev/null @@ -1,10 +0,0 @@ -#import - -typedef NS_ENUM(NSInteger, RNGestureHandlerState) { - RNGestureHandlerStateUndetermined = 0, - RNGestureHandlerStateFailed, - RNGestureHandlerStateBegan, - RNGestureHandlerStateCancelled, - RNGestureHandlerStateActive, - RNGestureHandlerStateEnd, -}; diff --git a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNRootViewGestureRecognizer.h b/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNRootViewGestureRecognizer.h deleted file mode 100644 index a57dfc6661244..0000000000000 --- a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNRootViewGestureRecognizer.h +++ /dev/null @@ -1,17 +0,0 @@ -// -// RNRootViewGestureRecognizer.h -// RNGestureHandler -// -// Created by Krzysztof Magiera on 12/10/2017. -// Copyright © 2017 Software Mansion. All rights reserved. -// - -#import "RNGestureHandler.h" - -@interface RNRootViewGestureRecognizer : UIGestureRecognizer - -@property (nullable, nonatomic, weak) id delegate; - -- (void)blockOtherRecognizers; - -@end diff --git a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNRootViewGestureRecognizer.m b/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNRootViewGestureRecognizer.m deleted file mode 100644 index 57484775f91d8..0000000000000 --- a/apps/bare-expo/ios/Pods/RNGestureHandler/ios/RNRootViewGestureRecognizer.m +++ /dev/null @@ -1,93 +0,0 @@ -// -// RNRootViewGestureRecognizer.m -// RNGestureHandler -// -// Created by Krzysztof Magiera on 12/10/2017. -// Copyright © 2017 Software Mansion. All rights reserved. -// - -#import "RNRootViewGestureRecognizer.h" - -#import - -#import - -@implementation RNRootViewGestureRecognizer -{ - BOOL _active; -} - -@dynamic delegate; - -- (instancetype)init -{ - if (self = [super init]) { - self.delaysTouchesEnded = NO; - self.delaysTouchesBegan = NO; - } - return self; -} - -- (BOOL)shouldBeRequiredToFailByGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer -{ - // This method is used to implement "enabled" feature for gesture handlers. We enforce gesture - // recognizers that are connected with "disabled" handlers to wait for the root gesture - // recognizer to fail and this way we block them from acting. - RNGestureHandler *otherHandler = [RNGestureHandler - findGestureHandlerByRecognizer:otherGestureRecognizer]; - if (otherHandler != nil && otherHandler.enabled == NO) { - return YES; - } - return NO; -} - -- (BOOL)canPreventGestureRecognizer:(UIGestureRecognizer *)preventedGestureRecognizer -{ - return ![preventedGestureRecognizer isKindOfClass:[RCTTouchHandler class]]; -} - -- (BOOL)canBePreventedByGestureRecognizer:(UIGestureRecognizer *)preventingGestureRecognizer -{ - // When this method is called it means that one of handlers has activated, in this case we want - // to send an info to JS so that it cancells all JS responders - [self.delegate gestureRecognizer:preventingGestureRecognizer didActivateInRootView:self.view]; - return [super canBePreventedByGestureRecognizer:preventingGestureRecognizer]; -} - -- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event -{ - _active = YES; - self.state = UIGestureRecognizerStatePossible; -} - -- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event -{ - self.state = UIGestureRecognizerStatePossible; -} - -- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event -{ - if (self.state == UIGestureRecognizerStateBegan || self.state == UIGestureRecognizerStateChanged) { - self.state = UIGestureRecognizerStateEnded; - } else { - self.state = UIGestureRecognizerStateFailed; - } - [self reset]; - _active = NO; -} - -- (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event -{ - self.state = UIGestureRecognizerStateCancelled; - [self reset]; - _active = NO; -} - -- (void)blockOtherRecognizers -{ - if (_active) { - self.state = UIGestureRecognizerStateBegan; - } -} - -@end diff --git a/apps/bare-expo/ios/Pods/RNReanimated/LICENSE b/apps/bare-expo/ios/Pods/RNReanimated/LICENSE deleted file mode 100644 index 5b3d7fc8cb0ac..0000000000000 --- a/apps/bare-expo/ios/Pods/RNReanimated/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016 Krzysztof Magiera - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/apps/bare-expo/ios/Pods/RNReanimated/README.md b/apps/bare-expo/ios/Pods/RNReanimated/README.md deleted file mode 100644 index bbca531d3c544..0000000000000 --- a/apps/bare-expo/ios/Pods/RNReanimated/README.md +++ /dev/null @@ -1,926 +0,0 @@ -# react-native-reanimated - -React Native's Animated library reimplemented. - -It provides a more comprehensive, low level abstraction for the Animated library API to be built on top of and hence allow for much greater flexibility especially when it comes to gesture based interactions. - -![](/assets/meme.png) - -## OMG, why would you build this? (motivation) - -`Animated` library has several limitations that become troubling when it comes to gesture based interactions. -I started this project initially to resolve the issue of pan interaction when the object can be dragged along the screen and when released it should snap to some place on the screen. -The problem was that despite using `Animated.event` and mapping gesture state to the position of the box, and making this whole interaction run on UI thread with `useNativeDriver` flag, we still had to call back into JS at the end of the gesture for us to start "snap" animation. -This is because `Animated.spring({}).start()` cannot be used in a "declarative" manner, because when it gets executed it has a "side effect" of starting a process (an animation) that updates the value for some time. -Adding "side effect" nodes into the current Animated implementation turned out to be a pretty difficult task as the execution model of the Animated API runs all the dependent nodes of each frame for the views that need to update. -We don't want to run "side effects" more often than necessary as it would, for example, result in the animation starting multiple times. - -Another reason why I started rethinking how the internals of `Animated` can be redesigned was my recent work on porting "Animated Tracking" functionality to the native driver. -Apparently, even though the native driver is out for quite a while, it still does not support all the things non-native `Animated` lib can do. -Obviously, it is far more difficult to build three versions of each feature (JS, Android and iOS) instead of one, and the same applies for fixing bugs. -One of the goals of `react-native-reanimated` was to provide a more generic building block for the API that would allow for building more complex features only in JS and make the native codebase as minimal as possible. -Taking "diffClamp" node as an example, it is currently implemented in three different places in `Animated` core and even though it is pretty useful it actually only has one use case (collapsible scrollview header). - -On a similar topic, I come across React Native's PR [#18029](https://github.com/facebook/react-native/pull/18029) and even though it provides a legitimate use case, I understand the maintainers being hesitant about merging it. The `Animated` API shouldn't block people from building things like this and the goal of `react-native-reanimated` is to provide lower level access that would allow for implementing that and many more features with no necessary changes to the core of the library. - -You can watch my [React Europe talk](https://www.youtube.com/watch?v=kdq4z2708VM) where I explain the motivation. - -The goals: - - More generic primitive node types leading to more code reuse for the library internals therefore making it easier to add new features and fix bugs. - - The new set of base nodes can be used to implement `Animated` compatible API including: - - Complex nodes such as “diffClamp”. - - Interactions such as animated value tracking or animation staggering. - - Conditional evaluation & nodes with side effects (`set`, `startClock`, `stopClock`). - - No more “useNativeDriver” – all animations runs on the UI thread by default - -## Getting started - -Before you get started you should definitely familiarize yourself with the original Animated API first. Refer to the API description below and to the [Examples](#examples) section to learn how to use this library. - -Throughout this document when we refer to classes or methods prefixed with `Animated` we usually refer to them being imported from `react-native-reanimated` package instead of plain `react-native`. - -### Installation - -I. First install the library from npm repository using `yarn`: -```bash - yarn add react-native-reanimated -``` - -II. Link native code with `react-native` cli: -```bash - react-native link react-native-reanimated -``` - -III. When you want to use "reanimated" in your project import it from `react-native-reanimated` package: -```js -import Animated from 'react-native-reanimated'; -``` - -Similarly when you need `Easing` import it from `react-native-reanimated` package instead of `react-native`: -```js -import Animated, { Easing } from 'react-native-reanimated'; -``` - -# Transitions 🆕 - -Transitions is an experimental API distributed as a part of reanimated which serves the purpose of animating between two states of view hierarchy. It is conceptually similar to `LayoutAnimation` concept from react native but gives much better control of what and how is going to be animated. - -Transitions API consists of two main building blocks. First one being `Transitioning.View` which is an extension of regular react-native view, so you can use any `View` props you'd like. The `Transitioning.View` is a root of all the transition animations that will be happening and is used to scope the changes to its children. In order to have next transition animated you'd need to call `animateNextTransition()` on the `Transitioning.View` instance. - -The second main building block is transition definition. Transitioning API uses JSX syntax that allows you to define how the transition animation should perform. You can use all the components from `Transition` object to combine the animation you want. Please see the below list for the documentation of transition components. - -## Transition groups - -The below set of components can be used to group one or more transitions. You can also nest transition groups in order to achieve desirable effects. - -### `` - -Transitions nested under this component will run in parallel when the animation starts. - -### `` - -Transitions nested under this component will run in sequence in the order at which they are listed - -## Transitions - -Transition components can be used separately or as a part of a group. Each transition component has the following common properties you can use to configure the animation: - -#### `durationMs` - -The time animation takes to execute in milliseconds - -#### `delayMs` - -Use this if you want the animation to start delayed (value in milliseconds) - -#### `interpolation` - -Specify the transition timing curve. Possible values are: `linear`, `easeIn`, `easeOut`, `easeInOut` - -#### `propagation` - -Allows for the framework to automatically delay beginning of transitions across a set of different views depending on their position. The possible values are `top`, `bottom`, `left` and `right`. When `propagation="top"` it means that the first element that will start animating is the one that is closest to the top of `Transitioning.View` container, then the other views will be delayed by the amount which depends on their distance from the top edge. - -### `` - -Allows to specify how views that get mounted during animation transition get animated. In addition to the above parameters you can specify the type of animation using `type` prop. The possible values are: `fade`, `scale`, `slide-top`, `slide-bottom`, `slide-left`, `slide-right`. - -### `` - -Allows to specify how the framework should animate views that are being removed during transition. In addition to the above parameters you can specify the type of animation using `type` prop. The possible values are: `fade`, `scale`, `slide-top`, `slide-bottom`, `slide-left`, `slide-right`. - -### `` - -Use `Transition.Change` component to specify how components' which properties get changed during transition should be animated. The framework currently supports an animating position, bounds and transforms. - -## How to use it - -This API is still experimental and is a subject to change. Please refer to our [Example app](https://github.com/kmagiera/react-native-reanimated/tree/master/Example/transitions) to see how it can be used in practice in the current shape. - - -# Reanimated overview - -We aim to bring this project to be fully compatible with `Animated` API. We believe that the set of base nodes we have selected should make this possible to be done only by writing JS code and does not require significant changes in the native codebases. Here is a list of things that haven't yet been ported from the original version of `Animated` library. -All the functionality that missing elements provide in `Animated` can already be achieved with `react-native-reanimated` although a different methodology for implementing those may be required (e.g. check ["Running animations" section](#running-animations) to see how the implementation may differ). - - [ ] using value offsets - - [ ] value tracking (can be achieved in different way, `react-native-reanimated` also allows for tracking all the animation parameters not only destination params) - - [ ] animation staggering - - [ ] animation delays - -## Value -`Animated.Value` is a container for storing values. It's is initialized with `new Value(0)` constructor. For backward compatibility there are provided API for setting value after it has been initialized: -```js -const v = new Value(0); -/// ... -v.setValue(100); -``` - -## Clocks - -Original `Animated` API makes an "animation" object a first class citizen. -`Animation` object has many features and therefore requires quite a few JS<>Native bridge methods to be managed properly. -In `react-native-reanimated`, clocks aim to replace that by providing more of a low level abstraction but also since clock nodes behave much like the animated values they make the implementation much less complex. - -[`Animated.Clock`](#clocks) node is a special type of `Animated.Value` that can be updated in each frame to the timestamp of the current frame. When we take `Clock` node as an input, the value it returns is the current frame timestamp in milliseconds. Using special methods, clock nodes can be stopped and started and we can also test if clock has been started. - -Because `Animated.Clock` just extends the `Animated.Value` you can use it in the same places (operations) where you can pass any type of animated node. - -## At most once evaluation (the algorithm) - -Unlike the original `Animated` library where each node could have been evaluated many times within a single frame, `react-native-reanimated` restricts each node to be evaluated at most once in a frame. -This restriction is required for nodes that have side-effects to be used (e.g. [`set`](#set) or [`startClock`](#startClock)). -When node is evaluated (e.g. in case of an [`add`](#add) node we want to get a sum of the input nodes) its value is cached. If within the next frame there are other nodes that want to use the output of that node instead of evaluating we return cached value. -This notion also helps with performance as we can try to evaluate as few nodes as expected. -The current algorithm for making decisions of which nodes to evaluate works as follows: - 1. for each frame we first analyze the generated events (e.g. touch stream). It is possible that events may update some animated values. - 2. Then we update values that correspond to [clock](#clocks) nodes that are "running". - 3. We traverse the node's tree starting from the nodes that have been updated in the current cycle and we look for final nodes that are connected to views. - 4. If we found nodes connected to view properties we evaluate them. This can recursively trigger an evaluation for their input nodes etc. - 5. After everything is done we check if some "running" clocks exists. If so we enqueue a callback to be evaluated with the next frame and start over from pt 1. Otherwise we do nothing. - -## Blocks - -Blocks are just arrays of nodes that are being evaluated in a particular order and return the value of the last node. It can be created using [`block`](#block) command but also when passed as an argument to other nodes the [`block`](#block) command can be omitted and we can just pass a nodes array directly. See an example below: - -```js -cond( - eq(state, State.ACTIVE), - [ - stopClock(clock), - set(transX, add(transX, diffX)) - ], - runTiming(clock, state, config) -) -``` - -Passing array directly is equivalent to wrapping it with the [`block`](#block) command. - -# API reference - -## Views, props, etc - -Follow the original `Animated` library guides to learn how values can be connected to View attributes. -Similarly with `react-native-reanimated` you need to use components prefixed with `Animated.` (remember to [import](#getting-started) `Animated` from reanimated package). For example: - -```js -import Animated from 'react-native-reanimated'; - -// use - -// instead of - -``` - -## `Animated.Code` - -`Animated.Code` component allows you to define reanimated nodes that you want to execute when their input nodes updates, but aren't necessarily strictly related to some view properties and hence it does not feel right to place them under `translate` or other prop of an `Animated.View`. This component renders `null`, so you can place it in any place you want in your render method. It is required that your code is put inside component as we rely on `componentDidMount` and `componentWillUnmount` callbacks to install and cleanup animated nodes. Note that the code you put is going to be executed only once. We currently have no way of telling if your code changes and so it will only be run in `componentDidMount`. If you wish for your reanimated nodes to be updated when the component updates, you can update the `key` property of the `Animated.Code` component, which will effectively unmount old and mount new versions of it in the React tree. -```js - - { ()=> - block([ - set(this.transX1, add(multiply(-1, this._transX))), - set(this.transX2, add(multiply(-2, this._transX), 120)), - set(this.transX3, sub(multiply(2, this._transX), 120)), - set(this.transX4, add(multiply(1, this._transX))), - ]) - } - -``` - -or: - -```js - -``` - -## `Animated.useCode` - -The `useCode` hook acts as an alternative to the `Animated.Code` component. -```js -Animated.useCode(() => node, deps) -``` -It's passed an animated node and an array of dependencies, and updates that node both when the component mounts and every time a value in that array changes. It does nothing on versions of React Native that don't support hooks (<0.59). -```js -const [offset, setOffset] = React.useState(20); -Animated.useCode( - () => set(transX1, add(_transX, offset)), - [offset] -); -``` - -We recommend to use `useCode()` with the `react-hooks/exhaustive-deps` [eslint rule](https://www.npmjs.com/package/eslint-plugin-react-hooks). - -## Event handling with reanimated nodes - -`react-native-reanimated`'s new syntax is possible to be used with `Animated.event`. Instead of providing only a mapping from event fields to animated nodes, it is allowed to write a function that takes reanimated values map as an input and return a block (or any other reanimated function) that will be then used to handle the event. - -This syntax allows for providing some post-processing for the event data that does not fit well as a dependency of other nodes we connect to `Animated.View` component props. -[See example](https://github.com/kmagiera/react-native-reanimated/blob/master/Example/PanRotateAndZoom/index.js) -```js -this.onGestureEvent = event([ - { - nativeEvent: { - translationX: x => set(this._x, x) - }, - }, -]); -``` - -If you'd like to use more than one event attribute in your reanimated code, this is also supported. Instead of defining event handler methods for a single attribute you can define at the level of `nativeEvent`. Here is an example that takes both translation attributes and state attribute from `PanGestureHandler` event: -```js - - block([ - set(this._transX, add(x, offsetX)), set(this._transY, add(y, offsetY)), - cond(eq(state, State.END), [set(this.offsetX, add(this.offsetX, x)), set(this.offsetY, add(this.offsetY, y))]), - ]), - }, - ])} -> - - -``` - - -## Available nodes - - - ---- -### `set` - -```js -set(valueToBeUpdated, sourceNode) -``` - -When evaluated, it will assign the value of `sourceNode` to the `Animated.Value` passed as a first argument. In other words, it performs an assignment operation from the `sourceNode` to `valueToBeUpdated` value node and also returns a node that represents this value. - ---- -### `cond` - -```js -cond(conditionNode, ifNode, [elseNode]) -``` - -If `conditionNode` evaluates to "truthy" value the node evaluates `ifNode` node and returns its value, otherwise it evaluates `elseNode` and returns its value. `elseNode` is optional. - ---- -### `call` - -```js -call(argsNodes, callback) -``` - -If one of the nodes from `argsNodes` array updates, `callback` will be called in JavaScript with a list of current values of nodes from `argsNodes` array as the first argument. - ---- -### `block` - -```js -block([node1, ...]) -``` - -Takes an array of nodes and evaluates all of them in the order they are put in the array. It then returns the value of the last node. - ---- -### `debug` - -```js -debug(messageString, valueNode) -``` - -When the node is evaluated, it prints a string that contains the `messageString` concatenated with the value of `valueNode`. This then returns the value of `valueNode`. Logs are printed in the JS debugger if it's attached, in console if Expo client is being used, or else in the native console. Logs are visible only in `DEV` mode and have no effect on production builds. Note that `messageString` should be a normal string, not an animated node. - ---- -### `startClock` - -```js -startClock(clockNode) -``` - -When evaluated, it will make `Clock` node passed as an argument start updating its value each frame. Then returns `0`. - ---- -### `stopClock` - -```js -stopClock(clockNode) -``` - -When evaluated, it will make `Clock` node passed as an argument stop updating its value (if it has been doing that). Then returns `0`. - ---- -### `clockRunning` - -```js -clockRunning(clockNode) -``` - -For a given `Clock` node, it returns `1` if the clock [has been started](#startClock) (if it's updating each frame) or returns `0` otherwise. - ---- -### `event` - -Works the same way as with the original `Animated` library. - ---- -### `add` - -```js -add(nodeOrNumber1, nodeOrNumber2, ...) -``` - -Takes two or more animated nodes or values, and when evaluated, returns their sum. - ---- -### `sub` - -```js -sub(nodeOrNumber1, nodeOrNumber2, ...) -``` - -Takes two or more animated nodes or values, and when evaluated, returns the result of subtracting their values in the exact order. - ---- -### `multiply` - -```js -multiply(nodeOrNumber1, nodeOrNumber2, ...) -``` - -Takes two or more animated nodes or values, and when evaluated, returns the result of multiplying their values in the exact order. - ---- -### `divide` - -```js -divide(nodeOrNumber1, nodeOrNumber2, ...) -``` - -Takes two or more animated nodes or values, and when evaluated, returns the result of dividing their values in the exact order. - - ---- -### `pow` - -```js -pow(nodeOrNumber1, nodeOrNumber2, ...) -``` - -Takes two or more animated nodes or values, and when evaluated, returns the result of first node to the second node power. If more than two nodes are present, the result from the previous step is used as a base and the third node as exponent. This process continues onward for the following nodes if these are present. - ---- -### `modulo` - -```js -modulo(nodeOrNumber, nodeOrNumber) -``` - -Remainder after division of the first argument by the second one. modulo(a,0) will throw an error. - ---- -### `sqrt` - -```js -sqrt(nodeOrNumber) -``` - -The square root of the given node. If the number is negative, an error is thrown. - ---- -### `log` - -```js -log(nodeOrNumber) -``` - -The log of the given node. - ---- -### `sin` - -```js -sin(node) -``` - -Returns a sine of the value (in radians) of the given node. - ---- -### `cos` - -```js -cos(node) -``` - -Returns a cosine of the value (in radians) of the given node - ---- -### `tan` - -```js -tan(node) -``` - -Returns a tangent of the value in radians of the given node - ---- -### `acos` - -```js -acos(node) -``` - -Returns a arc-cosine of the value in radians of the given node - ---- -### `asin` - -```js -asin(node) -``` - -Returns a arc-sine of the value in radians of the given node - ---- -### `atan` - -```js -atan(node) -``` - -Returns a arc-tangent of the value in radians of the given node - ---- -### `exp` - -```js -exp(node) -``` - -Returns an exponent of the value of the given node. - ---- -### `round` - -```js -round(node) -``` - -Returns a node that rounds input value to the nearest integer. - ---- -### `floor` - -```js -floor(node) -``` - -Returns a node that rounds a number down to its nearest integer. If the passed argument is an integer, the value will not be rounded. - ---- -### `ceil` - -```js -ceil(node) -``` - -Returns a node that rounds a number upward to its nearest integer. If the passed argument is an integer, the value will not be rounded. - ---- -### `lessThan` - -```js -lessThan(nodeOrValueA, nodeOrValueB) -``` - -Returns `1` if the value of the first node is less than the value of the second node. Otherwise returns `0`. - ---- -### `eq` - -```js -eq(nodeOrValueA, nodeOrValueB) -``` - -Returns `1` if the value of both nodes are equal. Otherwise returns `0`. - ---- -### `greaterThan` - - -```js -greaterThan(nodeOrValueA, nodeOrValueB) -``` - -Returns `1` if the value of the first node is greater than the value of the second node. Otherwise returns `0`. - ---- -### `lessOrEq` - -```js -lessOrEq(nodeOrValueA, nodeOrValueB) -``` - -Returns `1` if the value of the first node is less or equal to the value of the second node. Otherwise returns `0`. - ---- -### `greaterOrEq` - -```js -greaterOrEq(nodeOrValueA, nodeOrValueB) -``` - -Returns `1` if the value of the first node is greater or equal to the value of the second node. Otherwise returns `0`. - ---- -### `neq` - -```js -neq(nodeOrValueA, nodeOrValueB) -``` - -Returns `1` if the value of the first node is not equal to the value of the second node. Otherwise returns `0`. - ---- -### `and` - -```js -and(nodeOrValue1, ...) -``` - -Acts as a logical `AND` operator. Takes one or more nodes as an input and evaluates them in sequence until some node evaluates to a "falsy" value. Then returns that value and stops evaluating further nodes. If all nodes evaluate to a "truthy" it returns the last node's value. - ---- -### `or` - -```js -or(nodeOrValue1, ...) -``` - -Acts as a logical `OR` operator. Takes one or more nodes as an input and evaluates them in sequence until some node evaluates to a "truthy" value. Then returns that value and stops evaluating further nodes. If all nodes evaluate to a "falsy" value it returns the last node's value. - ---- -### `defined` - -```js -defined(node) -``` - -Returns `1` if the given node evaluates to a "defined" value (that is to something that is non-null, non-undefined and non-NaN). Returns `0` otherwise. - ---- -### `not` - -```js -not(node) -``` - -Returns `1` if the given node evaluates to a "falsy" value and `0` otherwise. - - - ---- -### `abs` - -```js -abs(node) -``` - -Evaluates the given node and returns an absolute value of the node's value. - ---- -### `min` - -```js -min(nodeOrValue1, nodeOrValue2) -``` - -Takes two nodes as an input and returns a minimum of all the node's values. - ---- -### `max` - -```js -max(nodeOrValue1, nodeOrValue2) -``` - -Takes two nodes as an input and returns a maximum of all the node's values. - ---- -### `diff` - -```js -diff(node) -``` - -Evaluates node and returns a difference between value returned at the last time it was evaluated and its value at the current time. When evaluating for the first time it returns the node's value. - ---- -### `acc` - -```js -acc(node) -``` - -Returns an accumulated value of the given node. This node stores a sum of all evaluations of the given node and each time it gets evaluated it would add current node's value to that sum and return it. - ---- -### `diffClamp` - -Works the same way as with the original `Animated` library. - ---- -### `proc` - -Returns a callable function node that can be used to define expressions that can be called from other nodes. - -Example: - -```js -// Global constant -const myProc = proc((a, b) => multiply(a,b)); - -// In your component -const style = { width: proc(10, 10 )}; -``` - -A proc node should be declared as a global constant in your code and not recreated from inside components. - -It is not possible to reference nodes that are not passed as parameters. - ---- -### `interpolate` -```js -interpolate(node, { - // Input range for the interpolation. Should be monotonically increasing. - inputRange: [nodeOrValue...], - // Output range for the interpolation, should be the same length as the input range. - outputRange: [nodeOrValue...], - // Sets the left and right extrapolate modes. - extrapolate?: Extrapolate.EXTEND | Extrapolate.CLAMP | Extrapolate.IDENTITY, - // Set the left extrapolate mode, the behavior if the input is less than the first value in inputRange. - extrapolateLeft?: Extrapolate.EXTEND | Extrapolate.CLAMP | Extrapolate.IDENTITY, - // Set the right extrapolate mode, the behavior if the input is greater than the last value in inputRange. - extrapolateRight?: Extrapolate.EXTEND | Extrapolate.CLAMP | Extrapolate.IDENTITY, -}) - -Extrapolate.EXTEND; // Will extend the range linearly. -Extrapolate.CLAMP; // Will clamp the input value to the range. -Extrapolate.IDENTITY; // Will return the input value if the input value is out of range. -``` - -Maps an input value within a range to an output value within a range. Also supports different types of extrapolation for when the value falls outside the range. - ---- -### `color` - -```js -color(red, green, blue, alpha) -``` - -Creates a color node in RGBA format, where the first three input nodes should have *integer* values in the range 0-255 (consider using `round` node if needed) and correspond to color components Red, Green and Blue respectively. Last input node should have a value between 0 and 1 and represents alpha channel (value `1` means fully opaque and `0` completely transparent). Alpha parameter can be ommited, then `1` (fully opaque) is used as a default. - -The returned node can be mapped to view properties that represents color (e.g. [`backgroundColor`](https://facebook.github.io/react-native/docs/view-style-props.html#backgroundcolor)). - ---- -### `concat` -```js -concat(nodeOrValue1, ...) -``` -Returns concatanation of given nodes (number or string) as string - ---- -### `onChange` - -```js -onChange(value, action) -``` -When evaluated, it will compare `value` to its previous value. If it has changed, `action` will be evaluated and its value will be returned. - - -## Animations - ---- -### `decay` - -```js -decay(clock, { finished, velocity, position, time }, { deceleration }) -``` - -Updates `position` and `velocity` nodes by running a single step of animation each time this node evaluates. State variable `finished` is set to `1` when the animation gets to the final point (that is the velocity drops under the level of significance). The `time` state node is populated automatically by this node and refers to the last clock time this node got evaluated. It is expected to be reset each time we want to restart the animation. Decay animation can be configured using `deceleration` config param and it controls how fast the animation decelerates. The value should be between `0` and `1` but only values that are close to `1` will yield meaningful results. - ---- -### `timing` - -```js -timing(clock, { finished, position, frameTime, time }, { toValue, duration, easing }) -``` - -Updates `position` node by running timing based animation from a given position to a destination determined by `toValue`. The animation is expected to last `duration` milliseconds and use `easing` function that could be set to one of the nodes exported by the `Easing` object. -The `frameTime` node will also get updated and represents the progress of animation in milliseconds (how long the animation has lasted so far), similar to the `time` node that just indicates the last clock time the animation node has been evaluated. Both of these variables are expected to be reset before restarting the animation. Finally `finished` node will be set to `1` when the position reaches the final value or when `frameTime` exceeds `duration`. - ---- -### `spring` - -```js -spring(clock, { finished, position, velocity, time }, { damping, mass, stiffness, overshootClamping, restSpeedThreshold, restDisplacementThreshold, toValue }) -``` - -When evaluated, updates `position` and `velocity` nodes by running a single step of spring based animation. Check the original `Animated` API docs to learn about the config parameters like `damping`, `mass`, `stiffness`, `overshootClamping`, `restSpeedThreshold` and `restDisplacementThreshold`. The `finished` state updates to `1` when the `position` reaches the destination set by `toValue`. The `time` state variable also updates when the node evaluates and it represents the clock value at the time when the node got evaluated for the last time. It is expected that `time` variable is reset before spring animation can be restarted. - -### `SpringUtils` -For developers' convenience, it's possible to use a different way of configuring `spring` animation which follows behavior known from React Native core. - -#### `SpringUtils.makeDefaultConfig()` - Returns an object filled with default config of animation: - ```js - { - stiffness: new Value(100), - mass: new Value(1), - damping: new Value(10), - overshootClamping: false, - restSpeedThreshold: 0.001, - restDisplacementThreshold: 0.001, - toValue: new Value(0), - } -``` - -#### `SpringUtils.makeConfigFromBouncinessAndSpeed(prevConfig)` -Transforms an object with `bounciness` and `speed` params into config expected by the `spring` node. `bounciness` and `speed` might be nodes or numbers. - -#### `SpringUtils.makeConfigFromOrigamiTensionAndFriction(prevConfig)` -Transforms an object with `tension` and `friction` params into config expected by the `spring` node. `tension` and `friction` might be nodes or numbers. - -See an [Example of different configs](https://github.com/kmagiera/react-native-reanimated/blob/master/Example/differentSpringConfigs/index.js). - - -## Running animations -### Declarative API -Invoking animation differs from the way it is done when using the original `Animated` API. -Here, instead of having animation objects we operate on nodes that can perform single animation steps. -In order to map an animation into a value, we will make the value to be assigned to a node that among few other things will call into the animation step node. Check [`timing`](#timing), [`decay`](#decay) and [`spring`](#spring) nodes documentation for some details about how animation step nodes can be configured. - -The example below shows a component that renders: - -```js -import Animated, { Easing } from 'react-native-reanimated'; - -const { Clock, Value, set, cond, startClock, clockRunning, timing, debug, stopClock, block } = Animated - -function runTiming(clock, value, dest) { - const state = { - finished: new Value(0), - position: new Value(0), - time: new Value(0), - frameTime: new Value(0), - }; - - const config = { - duration: 5000, - toValue: new Value(0), - easing: Easing.inOut(Easing.ease), - }; - - return block([ - cond(clockRunning(clock), [ - // if the clock is already running we update the toValue, in case a new dest has been passed in - set(config.toValue, dest), - ], [ - // if the clock isn't running we reset all the animation params and start the clock - set(state.finished, 0), - set(state.time, 0), - set(state.position, value), - set(state.frameTime, 0), - set(config.toValue, dest), - startClock(clock), - ]), - // we run the step here that is going to update position - timing(clock, state, config), - // if the animation is over we stop the clock - cond(state.finished, debug('stop clock', stopClock(clock))), - // we made the block return the updated position - state.position, - ]); -} - -export class AnimatedBox extends Component { - // we create a clock node - clock = new Clock(); - // and use runTiming method defined above to create a node that is going to be mapped - // to the translateX transform. - transX = runTiming(this.clock, -120, 120); - - render() { - return ( - - - - ); - } -} -``` - -### Backward compatible API -As it might sometimes be impractical to use the API above, there's an alternative way of invoking animation, which is similar to the original `Animated` API. -```js -class Example extends Component { - constructor(props) { - super(props); - this._transX = new Value(0); - this._config = { - duration: 5000, - toValue: 120, - easing: Easing.inOut(Easing.ease), - }; - this._anim = timing(this._transX, this._config); - } - - render() { - return ( - - -