This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.
2021-04-02 02:24:13 +03:00

1 line
7.2 KiB
Plaintext

{"version":3,"file":"expo-plugins.js","sourceRoot":"","sources":["../../src/plugins/expo-plugins.ts"],"names":[],"mappings":";;;;;;;;;;;;AAIA,0DAA4C;AAC5C,kDAAoC;AACpC,iDAA6C;AAC7C,kFAAqD;AACrD,wGAA8E;AAC9E,4EAAmD;AACnD,8FAAoE;AACpE,gFAAuD;AACvD,0FAAiE;AACjE,0FAAgE;AAChE,8EAAqD;AACrD,wFAAuD;AAEvD;;;GAGG;AACU,QAAA,kBAAkB,GAE1B,CAAC,MAAM,EAAE,EAAE,gBAAgB,EAAE,EAAE,EAAE;IACpC,mCAAmC;IACnC,IAAI,CAAC,MAAM,CAAC,GAAG;QAAE,MAAM,CAAC,GAAG,GAAG,EAAE,CAAC;IACjC,MAAM,CAAC,GAAG,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;IAE/C,OAAO,0BAAW,CAAC,MAAM,EAAE;QACzB,CAAC,SAAS,CAAC,gBAAgB,CAAC,oBAAoB,EAAE,EAAE,gBAAgB,EAAE,CAAC;QACvE,SAAS,CAAC,mBAAmB,CAAC,uBAAuB;QACrD,SAAS,CAAC,MAAM,CAAC,UAAU;QAC3B,SAAS,CAAC,IAAI,CAAC,eAAe;QAC9B,SAAS,CAAC,WAAW,CAAC,eAAe;QACrC,SAAS,CAAC,kBAAkB,CAAC,sBAAsB;QACnD,SAAS,CAAC,MAAM,CAAC,UAAU;QAC3B,SAAS,CAAC,kBAAkB,CAAC,sBAAsB;QACnD,SAAS,CAAC,uBAAuB,CAAC,2BAA2B;QAC7D,SAAS,CAAC,OAAO,CAAC,eAAe;QACjC,SAAS,CAAC,OAAO,CAAC,WAAW;QAC7B,SAAS,CAAC,MAAM,CAAC,sBAAsB;QACvC,eAAe;QACf,SAAS,CAAC,YAAY,CAAC,wBAAwB;QAC/C,SAAS,CAAC,YAAY,CAAC,qBAAqB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AAC,iBAAiB;QAC7C,aAAa,CAAC,SAAS,CAAC,aAAa;QACrC,aAAa,CAAC,YAAY,CAAC,gBAAgB;QAE3C,aAAa,CAAC,IAAI,CAAC,SAAS;QAC5B,yFAAyF;QACzF,gIAAgI;QAChI,aAAa,CAAC,OAAO,CAAC,mBAAmB;KAC1C,CAAC,CAAC;AACL,CAAC,CAAC;AAEW,QAAA,2BAA2B,GAAkD,CACxF,MAAM,EACN,EAAE,YAAY,EAAE,EAChB,EAAE;IACF,OAAO,0BAAW,CAAC,MAAM,EAAE;QACzB,2BAAQ;QACR,wBAAS;QACT,mCAAuB;QACvB,4BAAiB;QACjB,CAAC,sBAAW,EAAE,EAAE,YAAY,EAAE,CAAC;QAC/B,qBAAU;QACV,8BAAkB;QAClB,uBAAY;QACZ,4BAAgB;KACjB,CAAC,CAAC;AACL,CAAC,CAAC","sourcesContent":["/**\n * These are the versioned first-party plugins with some of the future third-party plugins mixed in for legacy support.\n */\nimport { ConfigPlugin } from '../Plugin.types';\nimport * as AndroidConfig from '../android';\nimport * as IOSConfig from '../ios';\nimport { withPlugins } from './core-plugins';\nimport withAdMob from './unversioned/expo-ads-admob';\nimport withAppleAuthentication from './unversioned/expo-apple-authentication';\nimport withBranch from './unversioned/expo-branch';\nimport withDocumentPicker from './unversioned/expo-document-picker';\nimport withFacebook from './unversioned/expo-facebook';\nimport withNotifications from './unversioned/expo-notifications';\nimport withSplashScreen from './unversioned/expo-splash-screen';\nimport withUpdates from './unversioned/expo-updates';\nimport withMaps from './unversioned/react-native-maps';\n\n/**\n * Config plugin to apply all of the custom Expo iOS config plugins we support by default.\n * TODO: In the future most of this should go into versioned packages like expo-facebook, expo-updates, etc...\n */\nexport const withExpoIOSPlugins: ConfigPlugin<{\n bundleIdentifier: string;\n}> = (config, { bundleIdentifier }) => {\n // Set the bundle ID ahead of time.\n if (!config.ios) config.ios = {};\n config.ios.bundleIdentifier = bundleIdentifier;\n\n return withPlugins(config, [\n [IOSConfig.BundleIdentifier.withBundleIdentifier, { bundleIdentifier }],\n IOSConfig.SwiftBridgingHeader.withSwiftBridgingHeader,\n IOSConfig.Google.withGoogle,\n IOSConfig.Name.withDisplayName,\n IOSConfig.Orientation.withOrientation,\n IOSConfig.RequiresFullScreen.withRequiresFullScreen,\n IOSConfig.Scheme.withScheme,\n IOSConfig.UserInterfaceStyle.withUserInterfaceStyle,\n IOSConfig.UsesNonExemptEncryption.withUsesNonExemptEncryption,\n IOSConfig.Version.withBuildNumber,\n IOSConfig.Version.withVersion,\n IOSConfig.Google.withGoogleServicesFile,\n // Entitlements\n IOSConfig.Entitlements.withAccessesContactNotes,\n IOSConfig.Entitlements.withAssociatedDomains,\n // XcodeProject\n IOSConfig.DeviceFamily.withDeviceFamily,\n IOSConfig.Locales.withLocales,\n // Dangerous\n IOSConfig.Icons.withIcons,\n ]);\n};\n\n/**\n * Config plugin to apply all of the custom Expo Android config plugins we support by default.\n * TODO: In the future most of this should go into versioned packages like expo-facebook, expo-updates, etc...\n */\nexport const withExpoAndroidPlugins: ConfigPlugin<{\n package: string;\n}> = (config, props) => {\n // Set the package name ahead of time.\n if (!config.android) config.android = {};\n config.android.package = props.package;\n\n return withPlugins(config, [\n // settings.gradle\n AndroidConfig.Name.withNameSettingsGradle,\n\n // project build.gradle\n AndroidConfig.GoogleServices.withClassPath,\n\n // app/build.gradle\n AndroidConfig.GoogleServices.withApplyPlugin,\n AndroidConfig.Package.withPackageGradle,\n AndroidConfig.Version.withVersion,\n\n // AndroidManifest.xml\n AndroidConfig.Package.withPackageManifest,\n AndroidConfig.AllowBackup.withAllowBackup,\n // Note: The withAndroidIntentFilters plugin must appear before the withScheme\n // plugin or withScheme will override the output of withAndroidIntentFilters.\n AndroidConfig.IntentFilters.withAndroidIntentFilters,\n AndroidConfig.Scheme.withScheme,\n AndroidConfig.Orientation.withOrientation,\n AndroidConfig.Permissions.withPermissions,\n AndroidConfig.UserInterfaceStyle.withUiModeManifest,\n\n // MainActivity.*\n AndroidConfig.UserInterfaceStyle.withUiModeMainActivity,\n\n // strings.xml\n AndroidConfig.Name.withName,\n\n // Dangerous -- these plugins run in reverse order.\n AndroidConfig.GoogleServices.withGoogleServicesFile,\n\n // Modify colors.xml and styles.xml\n AndroidConfig.RootViewBackgroundColor.withRootViewBackgroundColor,\n AndroidConfig.NavigationBar.withNavigationBar,\n AndroidConfig.StatusBar.withStatusBar,\n AndroidConfig.PrimaryColor.withPrimaryColor,\n\n AndroidConfig.Icon.withIcons,\n // If we renamed the package, we should also move it around and rename it in source files\n // Added last to ensure this plugin runs first. Out of tree solutions will mistakenly resolve the package incorrectly otherwise.\n AndroidConfig.Package.withPackageRefactor,\n ]);\n};\n\nexport const withExpoVersionedSDKPlugins: ConfigPlugin<{ expoUsername: string | null }> = (\n config,\n { expoUsername }\n) => {\n return withPlugins(config, [\n withMaps,\n withAdMob,\n withAppleAuthentication,\n withNotifications,\n [withUpdates, { expoUsername }],\n withBranch,\n withDocumentPicker,\n withFacebook,\n withSplashScreen,\n ]);\n};\n"]}