This commit is contained in:
Yamozha
2021-04-02 02:24:13 +03:00
parent c23950b545
commit 7256d79e2c
31493 changed files with 3036630 additions and 0 deletions

View File

@ -0,0 +1,3 @@
import { ConfigPlugin } from '../../Plugin.types';
export declare const withAdMob: ConfigPlugin;
export default withAdMob;

View File

@ -0,0 +1,22 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const AdMob_1 = require("../../android/AdMob");
const AdMob_2 = require("../../ios/AdMob");
const core_plugins_1 = require("../core-plugins");
const static_plugins_1 = require("../static-plugins");
const packageName = 'expo-ads-admob';
exports.withAdMob = config => {
return static_plugins_1.withStaticPlugin(config, {
_isLegacyPlugin: true,
plugin: packageName,
// If the static plugin isn't found, use the unversioned one.
fallback: withUnversionedAdMob,
});
};
const withUnversionedAdMob = core_plugins_1.createRunOncePlugin(config => {
config = AdMob_1.withAdMob(config);
config = AdMob_2.withAdMob(config);
return config;
}, packageName);
exports.default = exports.withAdMob;
//# sourceMappingURL=expo-ads-admob.js.map

View File

@ -0,0 +1 @@
{"version":3,"file":"expo-ads-admob.js","sourceRoot":"","sources":["../../../src/plugins/unversioned/expo-ads-admob.ts"],"names":[],"mappings":";;AACA,+CAAoE;AACpE,2CAA4D;AAC5D,kDAAsD;AACtD,sDAAqD;AAErD,MAAM,WAAW,GAAG,gBAAgB,CAAC;AAExB,QAAA,SAAS,GAAiB,MAAM,CAAC,EAAE;IAC9C,OAAO,iCAAgB,CAAC,MAAM,EAAE;QAC9B,eAAe,EAAE,IAAI;QACrB,MAAM,EAAE,WAAW;QACnB,6DAA6D;QAC7D,QAAQ,EAAE,oBAAoB;KAC/B,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,oBAAoB,GAAiB,kCAAmB,CAAC,MAAM,CAAC,EAAE;IACtE,MAAM,GAAG,iBAAgB,CAAC,MAAM,CAAC,CAAC;IAClC,MAAM,GAAG,iBAAY,CAAC,MAAM,CAAC,CAAC;IAC9B,OAAO,MAAM,CAAC;AAChB,CAAC,EAAE,WAAW,CAAC,CAAC;AAEhB,kBAAe,iBAAS,CAAC","sourcesContent":["import { ConfigPlugin } from '../../Plugin.types';\nimport { withAdMob as withAdMobAndroid } from '../../android/AdMob';\nimport { withAdMob as withAdMobIOS } from '../../ios/AdMob';\nimport { createRunOncePlugin } from '../core-plugins';\nimport { withStaticPlugin } from '../static-plugins';\n\nconst packageName = 'expo-ads-admob';\n\nexport const withAdMob: ConfigPlugin = config => {\n return withStaticPlugin(config, {\n _isLegacyPlugin: true,\n plugin: packageName,\n // If the static plugin isn't found, use the unversioned one.\n fallback: withUnversionedAdMob,\n });\n};\n\nconst withUnversionedAdMob: ConfigPlugin = createRunOncePlugin(config => {\n config = withAdMobAndroid(config);\n config = withAdMobIOS(config);\n return config;\n}, packageName);\n\nexport default withAdMob;\n"]}

View File

@ -0,0 +1,3 @@
import { ConfigPlugin } from '../../Plugin.types';
export declare const withAppleAuthentication: ConfigPlugin;
export default withAppleAuthentication;

View File

@ -0,0 +1,40 @@
"use strict";
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
};
Object.defineProperty(exports, "__esModule", { value: true });
const core_plugins_1 = require("../core-plugins");
const ios_plugins_1 = require("../ios-plugins");
const static_plugins_1 = require("../static-plugins");
const packageName = 'expo-apple-authentication';
const withAppleSignInEntitlement = ios_plugins_1.createEntitlementsPlugin(setAppleSignInEntitlement, 'withAppleSignInEntitlement');
function setAppleSignInEntitlement(config, _a) {
var _b;
var { 'com.apple.developer.applesignin': _ } = _a, entitlementsPlist = __rest(_a, ['com.apple.developer.applesignin']);
if ((_b = config.ios) === null || _b === void 0 ? void 0 : _b.usesAppleSignIn) {
return Object.assign(Object.assign({}, entitlementsPlist), { 'com.apple.developer.applesignin': ['Default'] });
}
return entitlementsPlist;
}
exports.withAppleAuthentication = config => {
return static_plugins_1.withStaticPlugin(config, {
_isLegacyPlugin: true,
plugin: packageName,
// If the static plugin isn't found, use the unversioned one.
fallback: withUnversionedAppleAuthentication,
});
};
const withUnversionedAppleAuthentication = core_plugins_1.createRunOncePlugin(config => {
config = withAppleSignInEntitlement(config);
return config;
}, packageName);
exports.default = exports.withAppleAuthentication;
//# sourceMappingURL=expo-apple-authentication.js.map

View File

@ -0,0 +1 @@
{"version":3,"file":"expo-apple-authentication.js","sourceRoot":"","sources":["../../../src/plugins/unversioned/expo-apple-authentication.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAIA,kDAAsD;AACtD,gDAA0D;AAC1D,sDAAqD;AAErD,MAAM,WAAW,GAAG,2BAA2B,CAAC;AAEhD,MAAM,0BAA0B,GAAG,sCAAwB,CACzD,yBAAyB,EACzB,4BAA4B,CAC7B,CAAC;AAEF,SAAS,yBAAyB,CAChC,MAAkB,EAClB,EAA0E;;QAA1E,EAAE,iCAAiC,EAAE,CAAC,OAAoC,EAAlC,mEAAoB;IAE5D,UAAI,MAAM,CAAC,GAAG,0CAAE,eAAe,EAAE;QAC/B,uCACK,iBAAiB,KACpB,iCAAiC,EAAE,CAAC,SAAS,CAAC,IAC9C;KACH;IAED,OAAO,iBAAiB,CAAC;AAC3B,CAAC;AAEY,QAAA,uBAAuB,GAAiB,MAAM,CAAC,EAAE;IAC5D,OAAO,iCAAgB,CAAC,MAAM,EAAE;QAC9B,eAAe,EAAE,IAAI;QACrB,MAAM,EAAE,WAAW;QACnB,6DAA6D;QAC7D,QAAQ,EAAE,kCAAkC;KAC7C,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,kCAAkC,GAAiB,kCAAmB,CAAC,MAAM,CAAC,EAAE;IACpF,MAAM,GAAG,0BAA0B,CAAC,MAAM,CAAC,CAAC;IAC5C,OAAO,MAAM,CAAC;AAChB,CAAC,EAAE,WAAW,CAAC,CAAC;AAEhB,kBAAe,+BAAuB,CAAC","sourcesContent":["import { ExpoConfig } from '@expo/config-types';\nimport { JSONObject } from '@expo/json-file';\n\nimport { ConfigPlugin } from '../../Plugin.types';\nimport { createRunOncePlugin } from '../core-plugins';\nimport { createEntitlementsPlugin } from '../ios-plugins';\nimport { withStaticPlugin } from '../static-plugins';\n\nconst packageName = 'expo-apple-authentication';\n\nconst withAppleSignInEntitlement = createEntitlementsPlugin(\n setAppleSignInEntitlement,\n 'withAppleSignInEntitlement'\n);\n\nfunction setAppleSignInEntitlement(\n config: ExpoConfig,\n { 'com.apple.developer.applesignin': _, ...entitlementsPlist }: JSONObject\n): JSONObject {\n if (config.ios?.usesAppleSignIn) {\n return {\n ...entitlementsPlist,\n 'com.apple.developer.applesignin': ['Default'],\n };\n }\n\n return entitlementsPlist;\n}\n\nexport const withAppleAuthentication: ConfigPlugin = config => {\n return withStaticPlugin(config, {\n _isLegacyPlugin: true,\n plugin: packageName,\n // If the static plugin isn't found, use the unversioned one.\n fallback: withUnversionedAppleAuthentication,\n });\n};\n\nconst withUnversionedAppleAuthentication: ConfigPlugin = createRunOncePlugin(config => {\n config = withAppleSignInEntitlement(config);\n return config;\n}, packageName);\n\nexport default withAppleAuthentication;\n"]}

View File

@ -0,0 +1,3 @@
import { ConfigPlugin } from '../../Plugin.types';
export declare const withBranch: ConfigPlugin;
export default withBranch;

View File

@ -0,0 +1,22 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Branch_1 = require("../../android/Branch");
const Branch_2 = require("../../ios/Branch");
const core_plugins_1 = require("../core-plugins");
const static_plugins_1 = require("../static-plugins");
const packageName = 'expo-branch';
exports.withBranch = config => {
return static_plugins_1.withStaticPlugin(config, {
_isLegacyPlugin: true,
plugin: packageName,
// If the static plugin isn't found, use the unversioned one.
fallback: withUnversionedBranch,
});
};
const withUnversionedBranch = core_plugins_1.createRunOncePlugin(config => {
config = Branch_1.withBranch(config);
config = Branch_2.withBranch(config);
return config;
}, packageName);
exports.default = exports.withBranch;
//# sourceMappingURL=expo-branch.js.map

View File

@ -0,0 +1 @@
{"version":3,"file":"expo-branch.js","sourceRoot":"","sources":["../../../src/plugins/unversioned/expo-branch.ts"],"names":[],"mappings":";;AACA,iDAAuE;AACvE,6CAA+D;AAC/D,kDAAsD;AACtD,sDAAqD;AAErD,MAAM,WAAW,GAAG,aAAa,CAAC;AAErB,QAAA,UAAU,GAAiB,MAAM,CAAC,EAAE;IAC/C,OAAO,iCAAgB,CAAC,MAAM,EAAE;QAC9B,eAAe,EAAE,IAAI;QACrB,MAAM,EAAE,WAAW;QACnB,6DAA6D;QAC7D,QAAQ,EAAE,qBAAqB;KAChC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,qBAAqB,GAAiB,kCAAmB,CAAC,MAAM,CAAC,EAAE;IACvE,MAAM,GAAG,mBAAiB,CAAC,MAAM,CAAC,CAAC;IACnC,MAAM,GAAG,mBAAa,CAAC,MAAM,CAAC,CAAC;IAC/B,OAAO,MAAM,CAAC;AAChB,CAAC,EAAE,WAAW,CAAC,CAAC;AAEhB,kBAAe,kBAAU,CAAC","sourcesContent":["import { ConfigPlugin } from '../../Plugin.types';\nimport { withBranch as withBranchAndroid } from '../../android/Branch';\nimport { withBranch as withBranchIOS } from '../../ios/Branch';\nimport { createRunOncePlugin } from '../core-plugins';\nimport { withStaticPlugin } from '../static-plugins';\n\nconst packageName = 'expo-branch';\n\nexport const withBranch: ConfigPlugin = config => {\n return withStaticPlugin(config, {\n _isLegacyPlugin: true,\n plugin: packageName,\n // If the static plugin isn't found, use the unversioned one.\n fallback: withUnversionedBranch,\n });\n};\n\nconst withUnversionedBranch: ConfigPlugin = createRunOncePlugin(config => {\n config = withBranchAndroid(config);\n config = withBranchIOS(config);\n return config;\n}, packageName);\n\nexport default withBranch;\n"]}

View File

@ -0,0 +1,3 @@
import { ConfigPlugin } from '../../Plugin.types';
declare const withDocumentPicker: ConfigPlugin;
export default withDocumentPicker;

View File

@ -0,0 +1,45 @@
"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const WarningAggregator = __importStar(require("../../utils/warnings"));
const core_plugins_1 = require("../core-plugins");
const ios_plugins_1 = require("../ios-plugins");
const static_plugins_1 = require("../static-plugins");
const packageName = 'expo-document-picker';
const withICloudEntitlement = (config, { appleTeamId }) => {
return ios_plugins_1.withEntitlementsPlist(config, config => {
config.modResults = setICloudEntitlement(config, config.modResults, appleTeamId);
return config;
});
};
function setICloudEntitlement(config, entitlementsPlist, appleTeamId) {
var _a;
if ((_a = config.ios) === null || _a === void 0 ? void 0 : _a.usesIcloudStorage) {
// TODO: need access to the appleTeamId for this one!
WarningAggregator.addWarningIOS('ios.usesIcloudStorage', 'Enable the iCloud Storage Entitlement from the Capabilities tab in your Xcode project.'
// TODO: add a link to a docs page with more information on how to do this
);
}
return entitlementsPlist;
}
const withUnversionedDocumentPicker = core_plugins_1.createRunOncePlugin(config => {
// No mechanism to get Apple Team ID.
config = withICloudEntitlement(config, { appleTeamId: 'TODO-GET-APPLE-TEAM-ID' });
return config;
}, packageName);
const withDocumentPicker = config => {
return static_plugins_1.withStaticPlugin(config, {
_isLegacyPlugin: true,
plugin: packageName,
// If the static plugin isn't found, use the unversioned one.
fallback: withUnversionedDocumentPicker,
});
};
exports.default = withDocumentPicker;
//# sourceMappingURL=expo-document-picker.js.map

View File

@ -0,0 +1 @@
{"version":3,"file":"expo-document-picker.js","sourceRoot":"","sources":["../../../src/plugins/unversioned/expo-document-picker.ts"],"names":[],"mappings":";;;;;;;;;AAIA,wEAA0D;AAC1D,kDAAsD;AACtD,gDAAuD;AACvD,sDAAqD;AAErD,MAAM,WAAW,GAAG,sBAAsB,CAAC;AAE3C,MAAM,qBAAqB,GAA0C,CAAC,MAAM,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE;IAC/F,OAAO,mCAAqB,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE;QAC5C,MAAM,CAAC,UAAU,GAAG,oBAAoB,CAAC,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;QACjF,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,SAAS,oBAAoB,CAC3B,MAAkB,EAClB,iBAA6B,EAC7B,WAAmB;;IAEnB,UAAI,MAAM,CAAC,GAAG,0CAAE,iBAAiB,EAAE;QACjC,qDAAqD;QACrD,iBAAiB,CAAC,aAAa,CAC7B,uBAAuB,EACvB,wFAAwF;QACxF,0EAA0E;SAC3E,CAAC;KACH;IAED,OAAO,iBAAiB,CAAC;AAC3B,CAAC;AAED,MAAM,6BAA6B,GAAiB,kCAAmB,CAAC,MAAM,CAAC,EAAE;IAC/E,qCAAqC;IACrC,MAAM,GAAG,qBAAqB,CAAC,MAAM,EAAE,EAAE,WAAW,EAAE,wBAAwB,EAAE,CAAC,CAAC;IAClF,OAAO,MAAM,CAAC;AAChB,CAAC,EAAE,WAAW,CAAC,CAAC;AAEhB,MAAM,kBAAkB,GAAiB,MAAM,CAAC,EAAE;IAChD,OAAO,iCAAgB,CAAC,MAAM,EAAE;QAC9B,eAAe,EAAE,IAAI;QACrB,MAAM,EAAE,WAAW;QACnB,6DAA6D;QAC7D,QAAQ,EAAE,6BAA6B;KACxC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,kBAAe,kBAAkB,CAAC","sourcesContent":["import { ExpoConfig } from '@expo/config-types';\nimport { JSONObject } from '@expo/json-file';\n\nimport { ConfigPlugin } from '../../Plugin.types';\nimport * as WarningAggregator from '../../utils/warnings';\nimport { createRunOncePlugin } from '../core-plugins';\nimport { withEntitlementsPlist } from '../ios-plugins';\nimport { withStaticPlugin } from '../static-plugins';\n\nconst packageName = 'expo-document-picker';\n\nconst withICloudEntitlement: ConfigPlugin<{ appleTeamId: string }> = (config, { appleTeamId }) => {\n return withEntitlementsPlist(config, config => {\n config.modResults = setICloudEntitlement(config, config.modResults, appleTeamId);\n return config;\n });\n};\n\nfunction setICloudEntitlement(\n config: ExpoConfig,\n entitlementsPlist: JSONObject,\n appleTeamId: string\n): JSONObject {\n if (config.ios?.usesIcloudStorage) {\n // TODO: need access to the appleTeamId for this one!\n WarningAggregator.addWarningIOS(\n 'ios.usesIcloudStorage',\n 'Enable the iCloud Storage Entitlement from the Capabilities tab in your Xcode project.'\n // TODO: add a link to a docs page with more information on how to do this\n );\n }\n\n return entitlementsPlist;\n}\n\nconst withUnversionedDocumentPicker: ConfigPlugin = createRunOncePlugin(config => {\n // No mechanism to get Apple Team ID.\n config = withICloudEntitlement(config, { appleTeamId: 'TODO-GET-APPLE-TEAM-ID' });\n return config;\n}, packageName);\n\nconst withDocumentPicker: ConfigPlugin = config => {\n return withStaticPlugin(config, {\n _isLegacyPlugin: true,\n plugin: packageName,\n // If the static plugin isn't found, use the unversioned one.\n fallback: withUnversionedDocumentPicker,\n });\n};\n\nexport default withDocumentPicker;\n"]}

View File

@ -0,0 +1,3 @@
import { ConfigPlugin } from '../../Plugin.types';
export declare const withFacebook: ConfigPlugin;
export default withFacebook;

View File

@ -0,0 +1,24 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Facebook_1 = require("../../android/Facebook");
const Facebook_2 = require("../../ios/Facebook");
const core_plugins_1 = require("../core-plugins");
const static_plugins_1 = require("../static-plugins");
// Local unversioned facebook plugin
const packageName = 'expo-facebook';
exports.withFacebook = config => {
return static_plugins_1.withStaticPlugin(config, {
_isLegacyPlugin: true,
plugin: packageName,
// If the static plugin isn't found, use the unversioned one.
fallback: withUnversionedFacebook,
});
};
const withUnversionedFacebook = core_plugins_1.createRunOncePlugin(config => {
config = Facebook_1.withFacebookManifest(config);
config = Facebook_1.withFacebookAppIdString(config);
config = Facebook_2.withFacebook(config);
return config;
}, packageName);
exports.default = exports.withFacebook;
//# sourceMappingURL=expo-facebook.js.map

View File

@ -0,0 +1 @@
{"version":3,"file":"expo-facebook.js","sourceRoot":"","sources":["../../../src/plugins/unversioned/expo-facebook.ts"],"names":[],"mappings":";;AACA,qDAAuF;AACvF,iDAAqE;AACrE,kDAAsD;AACtD,sDAAqD;AAErD,oCAAoC;AAEpC,MAAM,WAAW,GAAG,eAAe,CAAC;AAEvB,QAAA,YAAY,GAAiB,MAAM,CAAC,EAAE;IACjD,OAAO,iCAAgB,CAAC,MAAM,EAAE;QAC9B,eAAe,EAAE,IAAI;QACrB,MAAM,EAAE,WAAW;QACnB,6DAA6D;QAC7D,QAAQ,EAAE,uBAAuB;KAClC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,uBAAuB,GAAiB,kCAAmB,CAAC,MAAM,CAAC,EAAE;IACzE,MAAM,GAAG,+BAAoB,CAAC,MAAM,CAAC,CAAC;IACtC,MAAM,GAAG,kCAAuB,CAAC,MAAM,CAAC,CAAC;IACzC,MAAM,GAAG,uBAAe,CAAC,MAAM,CAAC,CAAC;IACjC,OAAO,MAAM,CAAC;AAChB,CAAC,EAAE,WAAW,CAAC,CAAC;AAEhB,kBAAe,oBAAY,CAAC","sourcesContent":["import { ConfigPlugin } from '../../Plugin.types';\nimport { withFacebookAppIdString, withFacebookManifest } from '../../android/Facebook';\nimport { withFacebook as withFacebookIOS } from '../../ios/Facebook';\nimport { createRunOncePlugin } from '../core-plugins';\nimport { withStaticPlugin } from '../static-plugins';\n\n// Local unversioned facebook plugin\n\nconst packageName = 'expo-facebook';\n\nexport const withFacebook: ConfigPlugin = config => {\n return withStaticPlugin(config, {\n _isLegacyPlugin: true,\n plugin: packageName,\n // If the static plugin isn't found, use the unversioned one.\n fallback: withUnversionedFacebook,\n });\n};\n\nconst withUnversionedFacebook: ConfigPlugin = createRunOncePlugin(config => {\n config = withFacebookManifest(config);\n config = withFacebookAppIdString(config);\n config = withFacebookIOS(config);\n return config;\n}, packageName);\n\nexport default withFacebook;\n"]}

View File

@ -0,0 +1,3 @@
import { ConfigPlugin } from '../../Plugin.types';
export declare const withNotifications: ConfigPlugin;
export default withNotifications;

View File

@ -0,0 +1,32 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Notifications_1 = require("../../android/Notifications");
const core_plugins_1 = require("../core-plugins");
const ios_plugins_1 = require("../ios-plugins");
const static_plugins_1 = require("../static-plugins");
const packageName = 'expo-notifications';
exports.withNotifications = config => {
return static_plugins_1.withStaticPlugin(config, {
_isLegacyPlugin: true,
plugin: packageName,
// If the static plugin isn't found, use the unversioned one.
fallback: withUnversionedNotifications,
});
};
const withNotificationsEntitlement = (config, mode) => {
return ios_plugins_1.withEntitlementsPlist(config, config => {
config.modResults['aps-environment'] = mode;
return config;
});
};
const withUnversionedNotifications = core_plugins_1.createRunOncePlugin(config => {
// Android
config = Notifications_1.withNotificationManifest(config);
config = Notifications_1.withNotificationIconColor(config);
config = Notifications_1.withNotificationIcons(config);
// iOS
config = withNotificationsEntitlement(config, 'development');
return config;
}, packageName);
exports.default = exports.withNotifications;
//# sourceMappingURL=expo-notifications.js.map

View File

@ -0,0 +1 @@
{"version":3,"file":"expo-notifications.js","sourceRoot":"","sources":["../../../src/plugins/unversioned/expo-notifications.ts"],"names":[],"mappings":";;AACA,+DAIqC;AACrC,kDAAsD;AACtD,gDAAuD;AACvD,sDAAqD;AAErD,MAAM,WAAW,GAAG,oBAAoB,CAAC;AAE5B,QAAA,iBAAiB,GAAiB,MAAM,CAAC,EAAE;IACtD,OAAO,iCAAgB,CAAC,MAAM,EAAE;QAC9B,eAAe,EAAE,IAAI;QACrB,MAAM,EAAE,WAAW;QACnB,6DAA6D;QAC7D,QAAQ,EAAE,4BAA4B;KACvC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,4BAA4B,GAA+C,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE;IAChG,OAAO,mCAAqB,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE;QAC5C,MAAM,CAAC,UAAU,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC;QAC5C,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,4BAA4B,GAAiB,kCAAmB,CAAC,MAAM,CAAC,EAAE;IAC9E,UAAU;IACV,MAAM,GAAG,wCAAwB,CAAC,MAAM,CAAC,CAAC;IAC1C,MAAM,GAAG,yCAAyB,CAAC,MAAM,CAAC,CAAC;IAC3C,MAAM,GAAG,qCAAqB,CAAC,MAAM,CAAC,CAAC;IAEvC,MAAM;IACN,MAAM,GAAG,4BAA4B,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IAE7D,OAAO,MAAM,CAAC;AAChB,CAAC,EAAE,WAAW,CAAC,CAAC;AAEhB,kBAAe,yBAAiB,CAAC","sourcesContent":["import { ConfigPlugin } from '../../Plugin.types';\nimport {\n withNotificationIconColor,\n withNotificationIcons,\n withNotificationManifest,\n} from '../../android/Notifications';\nimport { createRunOncePlugin } from '../core-plugins';\nimport { withEntitlementsPlist } from '../ios-plugins';\nimport { withStaticPlugin } from '../static-plugins';\n\nconst packageName = 'expo-notifications';\n\nexport const withNotifications: ConfigPlugin = config => {\n return withStaticPlugin(config, {\n _isLegacyPlugin: true,\n plugin: packageName,\n // If the static plugin isn't found, use the unversioned one.\n fallback: withUnversionedNotifications,\n });\n};\n\nconst withNotificationsEntitlement: ConfigPlugin<'production' | 'development'> = (config, mode) => {\n return withEntitlementsPlist(config, config => {\n config.modResults['aps-environment'] = mode;\n return config;\n });\n};\n\nconst withUnversionedNotifications: ConfigPlugin = createRunOncePlugin(config => {\n // Android\n config = withNotificationManifest(config);\n config = withNotificationIconColor(config);\n config = withNotificationIcons(config);\n\n // iOS\n config = withNotificationsEntitlement(config, 'development');\n\n return config;\n}, packageName);\n\nexport default withNotifications;\n"]}

View File

@ -0,0 +1,3 @@
import { ConfigPlugin } from '../../Plugin.types';
export declare const withSplashScreen: ConfigPlugin;
export default withSplashScreen;

View File

@ -0,0 +1,22 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const SplashScreen_1 = require("../../android/SplashScreen");
const SplashScreen_2 = require("../../ios/SplashScreen");
const core_plugins_1 = require("../core-plugins");
const static_plugins_1 = require("../static-plugins");
const packageName = 'expo-splash-screen';
exports.withSplashScreen = config => {
return static_plugins_1.withStaticPlugin(config, {
_isLegacyPlugin: true,
plugin: packageName,
// If the static plugin isn't found, use the unversioned one.
fallback: withUnversionedSplashScreen,
});
};
const withUnversionedSplashScreen = core_plugins_1.createRunOncePlugin(config => {
config = SplashScreen_1.withSplashScreen(config);
config = SplashScreen_2.withSplashScreen(config);
return config;
}, packageName);
exports.default = exports.withSplashScreen;
//# sourceMappingURL=expo-splash-screen.js.map

View File

@ -0,0 +1 @@
{"version":3,"file":"expo-splash-screen.js","sourceRoot":"","sources":["../../../src/plugins/unversioned/expo-splash-screen.ts"],"names":[],"mappings":";;AACA,6DAAyF;AACzF,yDAAiF;AACjF,kDAAsD;AACtD,sDAAqD;AAErD,MAAM,WAAW,GAAG,oBAAoB,CAAC;AAE5B,QAAA,gBAAgB,GAAiB,MAAM,CAAC,EAAE;IACrD,OAAO,iCAAgB,CAAC,MAAM,EAAE;QAC9B,eAAe,EAAE,IAAI;QACrB,MAAM,EAAE,WAAW;QACnB,6DAA6D;QAC7D,QAAQ,EAAE,2BAA2B;KACtC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,2BAA2B,GAAiB,kCAAmB,CAAC,MAAM,CAAC,EAAE;IAC7E,MAAM,GAAG,+BAAuB,CAAC,MAAM,CAAC,CAAC;IACzC,MAAM,GAAG,+BAAmB,CAAC,MAAM,CAAC,CAAC;IACrC,OAAO,MAAM,CAAC;AAChB,CAAC,EAAE,WAAW,CAAC,CAAC;AAEhB,kBAAe,wBAAgB,CAAC","sourcesContent":["import { ConfigPlugin } from '../../Plugin.types';\nimport { withSplashScreen as withSplashScreenAndroid } from '../../android/SplashScreen';\nimport { withSplashScreen as withSplashScreenIOS } from '../../ios/SplashScreen';\nimport { createRunOncePlugin } from '../core-plugins';\nimport { withStaticPlugin } from '../static-plugins';\n\nconst packageName = 'expo-splash-screen';\n\nexport const withSplashScreen: ConfigPlugin = config => {\n return withStaticPlugin(config, {\n _isLegacyPlugin: true,\n plugin: packageName,\n // If the static plugin isn't found, use the unversioned one.\n fallback: withUnversionedSplashScreen,\n });\n};\n\nconst withUnversionedSplashScreen: ConfigPlugin = createRunOncePlugin(config => {\n config = withSplashScreenAndroid(config);\n config = withSplashScreenIOS(config);\n return config;\n}, packageName);\n\nexport default withSplashScreen;\n"]}

View File

@ -0,0 +1,5 @@
import { ConfigPlugin } from '../../Plugin.types';
export declare const withUpdates: ConfigPlugin<{
expoUsername: string;
}>;
export default withUpdates;

View File

@ -0,0 +1,24 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Updates_1 = require("../../android/Updates");
const Updates_2 = require("../../ios/Updates");
const core_plugins_1 = require("../core-plugins");
const static_plugins_1 = require("../static-plugins");
// Local unversioned updates plugin
const packageName = 'expo-updates';
exports.withUpdates = (config, props) => {
return static_plugins_1.withStaticPlugin(config, {
_isLegacyPlugin: true,
// Pass props to the static plugin if it exists.
plugin: [packageName, props],
// If the static plugin isn't found, use the unversioned one.
fallback: config => withUnversionedUpdates(config, props),
});
};
const withUnversionedUpdates = core_plugins_1.createRunOncePlugin((config, props) => {
config = Updates_1.withUpdates(config, props);
config = Updates_2.withUpdates(config, props);
return config;
}, packageName);
exports.default = exports.withUpdates;
//# sourceMappingURL=expo-updates.js.map

View File

@ -0,0 +1 @@
{"version":3,"file":"expo-updates.js","sourceRoot":"","sources":["../../../src/plugins/unversioned/expo-updates.ts"],"names":[],"mappings":";;AACA,mDAA0E;AAC1E,+CAAkE;AAClE,kDAAsD;AACtD,sDAAqD;AAErD,mCAAmC;AAEnC,MAAM,WAAW,GAAG,cAAc,CAAC;AAEtB,QAAA,WAAW,GAA2C,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;IACnF,OAAO,iCAAgB,CAAC,MAAM,EAAE;QAC9B,eAAe,EAAE,IAAI;QACrB,gDAAgD;QAChD,MAAM,EAAE,CAAC,WAAW,EAAE,KAAK,CAAC;QAC5B,6DAA6D;QAC7D,QAAQ,EAAE,MAAM,CAAC,EAAE,CAAC,sBAAsB,CAAC,MAAM,EAAE,KAAK,CAAC;KAC1D,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,sBAAsB,GAA2C,kCAAmB,CACxF,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;IAChB,MAAM,GAAG,qBAAkB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAC3C,MAAM,GAAG,qBAAc,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACvC,OAAO,MAAM,CAAC;AAChB,CAAC,EACD,WAAW,CACZ,CAAC;AAEF,kBAAe,mBAAW,CAAC","sourcesContent":["import { ConfigPlugin } from '../../Plugin.types';\nimport { withUpdates as withUpdatesAndroid } from '../../android/Updates';\nimport { withUpdates as withUpdatesIOS } from '../../ios/Updates';\nimport { createRunOncePlugin } from '../core-plugins';\nimport { withStaticPlugin } from '../static-plugins';\n\n// Local unversioned updates plugin\n\nconst packageName = 'expo-updates';\n\nexport const withUpdates: ConfigPlugin<{ expoUsername: string }> = (config, props) => {\n return withStaticPlugin(config, {\n _isLegacyPlugin: true,\n // Pass props to the static plugin if it exists.\n plugin: [packageName, props],\n // If the static plugin isn't found, use the unversioned one.\n fallback: config => withUnversionedUpdates(config, props),\n });\n};\n\nconst withUnversionedUpdates: ConfigPlugin<{ expoUsername: string }> = createRunOncePlugin(\n (config, props) => {\n config = withUpdatesAndroid(config, props);\n config = withUpdatesIOS(config, props);\n return config;\n },\n packageName\n);\n\nexport default withUpdates;\n"]}

View File

@ -0,0 +1,3 @@
import { ConfigPlugin } from '../../Plugin.types';
export declare const withMaps: ConfigPlugin;
export default withMaps;

View File

@ -0,0 +1,48 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const resolve_from_1 = __importDefault(require("resolve-from"));
const GoogleMapsApiKey_1 = require("../../android/GoogleMapsApiKey");
const Permissions_1 = require("../../android/Permissions");
const Maps_1 = require("../../ios/Maps");
const core_plugins_1 = require("../core-plugins");
const static_plugins_1 = require("../static-plugins");
const packageName = 'react-native-maps';
const LOCATION_USAGE = 'Allow $(PRODUCT_NAME) to access your location';
// Copied from expo-location package, this gets used when the
// user has react-native-maps installed but not expo-location.
const withDefaultLocationPermissions = config => {
if (!config.ios)
config.ios = {};
if (!config.ios.infoPlist)
config.ios.infoPlist = {};
config.ios.infoPlist.NSLocationWhenInUseUsageDescription =
config.ios.infoPlist.NSLocationWhenInUseUsageDescription || LOCATION_USAGE;
return Permissions_1.withPermissions(config, [
'android.permission.ACCESS_COARSE_LOCATION',
'android.permission.ACCESS_FINE_LOCATION',
]);
};
exports.withMaps = config => {
return static_plugins_1.withStaticPlugin(config, {
_isLegacyPlugin: true,
plugin: packageName,
// If the static plugin isn't found, use the unversioned one.
fallback: withUnversionedMaps,
});
};
const withUnversionedMaps = core_plugins_1.createRunOncePlugin(config => {
var _a, _b;
config = GoogleMapsApiKey_1.withGoogleMapsApiKey(config);
config = Maps_1.withMaps(config);
// Only add location permissions if react-native-maps is installed.
if (((_a = config._internal) === null || _a === void 0 ? void 0 : _a.projectRoot) &&
resolve_from_1.default.silent((_b = config._internal) === null || _b === void 0 ? void 0 : _b.projectRoot, 'react-native-maps')) {
config = withDefaultLocationPermissions(config);
}
return config;
}, packageName);
exports.default = exports.withMaps;
//# sourceMappingURL=react-native-maps.js.map

View File

@ -0,0 +1 @@
{"version":3,"file":"react-native-maps.js","sourceRoot":"","sources":["../../../src/plugins/unversioned/react-native-maps.ts"],"names":[],"mappings":";;;;;AAAA,gEAAuC;AAGvC,qEAAsE;AACtE,2DAA4D;AAC5D,yCAAyD;AACzD,kDAAsD;AACtD,sDAAqD;AAErD,MAAM,WAAW,GAAG,mBAAmB,CAAC;AACxC,MAAM,cAAc,GAAG,+CAA+C,CAAC;AAEvE,6DAA6D;AAC7D,8DAA8D;AAC9D,MAAM,8BAA8B,GAAiB,MAAM,CAAC,EAAE;IAC5D,IAAI,CAAC,MAAM,CAAC,GAAG;QAAE,MAAM,CAAC,GAAG,GAAG,EAAE,CAAC;IACjC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,SAAS;QAAE,MAAM,CAAC,GAAG,CAAC,SAAS,GAAG,EAAE,CAAC;IACrD,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,mCAAmC;QACtD,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,mCAAmC,IAAI,cAAc,CAAC;IAE7E,OAAO,6BAAe,CAAC,MAAM,EAAE;QAC7B,2CAA2C;QAC3C,yCAAyC;KAC1C,CAAC,CAAC;AACL,CAAC,CAAC;AAEW,QAAA,QAAQ,GAAiB,MAAM,CAAC,EAAE;IAC7C,OAAO,iCAAgB,CAAC,MAAM,EAAE;QAC9B,eAAe,EAAE,IAAI;QACrB,MAAM,EAAE,WAAW;QACnB,6DAA6D;QAC7D,QAAQ,EAAE,mBAAmB;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,mBAAmB,GAAiB,kCAAmB,CAAC,MAAM,CAAC,EAAE;;IACrE,MAAM,GAAG,uCAAoB,CAAC,MAAM,CAAC,CAAC;IACtC,MAAM,GAAG,eAAW,CAAC,MAAM,CAAC,CAAC;IAC7B,mEAAmE;IACnE,IACE,OAAA,MAAM,CAAC,SAAS,0CAAE,WAAW;QAC7B,sBAAW,CAAC,MAAM,CAAC,MAAA,MAAM,CAAC,SAAS,0CAAE,WAAY,EAAE,mBAAmB,CAAC,EACvE;QACA,MAAM,GAAG,8BAA8B,CAAC,MAAM,CAAC,CAAC;KACjD;IACD,OAAO,MAAM,CAAC;AAChB,CAAC,EAAE,WAAW,CAAC,CAAC;AAEhB,kBAAe,gBAAQ,CAAC","sourcesContent":["import resolveFrom from 'resolve-from';\n\nimport { ConfigPlugin } from '../../Plugin.types';\nimport { withGoogleMapsApiKey } from '../../android/GoogleMapsApiKey';\nimport { withPermissions } from '../../android/Permissions';\nimport { withMaps as withMapsIOS } from '../../ios/Maps';\nimport { createRunOncePlugin } from '../core-plugins';\nimport { withStaticPlugin } from '../static-plugins';\n\nconst packageName = 'react-native-maps';\nconst LOCATION_USAGE = 'Allow $(PRODUCT_NAME) to access your location';\n\n// Copied from expo-location package, this gets used when the\n// user has react-native-maps installed but not expo-location.\nconst withDefaultLocationPermissions: ConfigPlugin = config => {\n if (!config.ios) config.ios = {};\n if (!config.ios.infoPlist) config.ios.infoPlist = {};\n config.ios.infoPlist.NSLocationWhenInUseUsageDescription =\n config.ios.infoPlist.NSLocationWhenInUseUsageDescription || LOCATION_USAGE;\n\n return withPermissions(config, [\n 'android.permission.ACCESS_COARSE_LOCATION',\n 'android.permission.ACCESS_FINE_LOCATION',\n ]);\n};\n\nexport const withMaps: ConfigPlugin = config => {\n return withStaticPlugin(config, {\n _isLegacyPlugin: true,\n plugin: packageName,\n // If the static plugin isn't found, use the unversioned one.\n fallback: withUnversionedMaps,\n });\n};\n\nconst withUnversionedMaps: ConfigPlugin = createRunOncePlugin(config => {\n config = withGoogleMapsApiKey(config);\n config = withMapsIOS(config);\n // Only add location permissions if react-native-maps is installed.\n if (\n config._internal?.projectRoot &&\n resolveFrom.silent(config._internal?.projectRoot!, 'react-native-maps')\n ) {\n config = withDefaultLocationPermissions(config);\n }\n return config;\n}, packageName);\n\nexport default withMaps;\n"]}