@expo/build-tools 1.0.272 → 18.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -100
- package/README.md +1 -1
- package/dist/android/credentials.js +2 -3
- package/dist/android/expoUpdates.js +5 -8
- package/dist/android/gradle.js +6 -8
- package/dist/android/gradleConfig.js +2 -3
- package/dist/buildErrors/buildErrorHandlers.js +4 -3
- package/dist/buildErrors/detectError.js +11 -11
- package/dist/buildErrors/errors.types.js +0 -1
- package/dist/buildErrors/userErrorHandlers.js +13 -10
- package/dist/builders/android.js +19 -24
- package/dist/builders/common.js +0 -1
- package/dist/builders/custom.js +9 -11
- package/dist/builders/index.js +0 -1
- package/dist/builders/ios.js +24 -29
- package/dist/common/eagerBundle.js +3 -4
- package/dist/common/easBuildInternal.js +5 -7
- package/dist/common/fastlane.js +0 -1
- package/dist/common/git.js +0 -1
- package/dist/common/installDependencies.d.ts +1 -1
- package/dist/common/installDependencies.js +1 -2
- package/dist/common/prebuild.js +3 -5
- package/dist/common/projectSources.js +12 -16
- package/dist/common/setup.js +28 -33
- package/dist/context.d.ts +1 -1
- package/dist/context.js +33 -25
- package/dist/customBuildContext.d.ts +1 -1
- package/dist/customBuildContext.js +32 -10
- package/dist/gcs/LoggerStream.d.ts +1 -1
- package/dist/gcs/LoggerStream.js +22 -14
- package/dist/gcs/__unit__/gcs.test.js +5 -8
- package/dist/gcs/client.d.ts +1 -1
- package/dist/gcs/client.js +28 -19
- package/dist/gcs/retry.js +4 -5
- package/dist/generic.d.ts +1 -1
- package/dist/generic.js +5 -7
- package/dist/index.d.ts +1 -1
- package/dist/index.js +19 -10
- package/dist/ios/configure.d.ts +1 -1
- package/dist/ios/configure.js +9 -11
- package/dist/ios/credentials/distributionCertificate.js +1 -3
- package/dist/ios/credentials/keychain.js +9 -8
- package/dist/ios/credentials/manager.d.ts +1 -1
- package/dist/ios/credentials/manager.js +24 -13
- package/dist/ios/credentials/provisioningProfile.js +12 -6
- package/dist/ios/expoUpdates.js +7 -11
- package/dist/ios/fastfile.d.ts +1 -1
- package/dist/ios/fastfile.js +0 -1
- package/dist/ios/fastlane.d.ts +1 -1
- package/dist/ios/fastlane.js +8 -9
- package/dist/ios/gymfile.d.ts +1 -1
- package/dist/ios/gymfile.js +1 -2
- package/dist/ios/pod.js +1 -2
- package/dist/ios/resign.js +3 -5
- package/dist/ios/resolve.js +1 -2
- package/dist/ios/tvos.js +1 -3
- package/dist/ios/xcodeBuildLogs.d.ts +1 -1
- package/dist/ios/xcodeBuildLogs.js +5 -7
- package/dist/ios/xcodeEnv.js +1 -2
- package/dist/ios/xcpretty.js +11 -7
- package/dist/steps/easFunctionGroups.js +0 -1
- package/dist/steps/easFunctions.js +28 -25
- package/dist/steps/functionGroups/build.d.ts +1 -1
- package/dist/steps/functionGroups/build.js +24 -26
- package/dist/steps/functionGroups/maestroTest.js +7 -9
- package/dist/steps/functions/calculateEASUpdateRuntimeVersion.js +6 -9
- package/dist/steps/functions/ccacheStats.js +4 -6
- package/dist/steps/functions/checkout.js +0 -1
- package/dist/steps/functions/configureAndroidVersion.js +3 -5
- package/dist/steps/functions/configureEASUpdateIfInstalled.js +4 -6
- package/dist/steps/functions/configureIosCredentials.js +3 -4
- package/dist/steps/functions/configureIosVersion.js +4 -6
- package/dist/steps/functions/createSubmissionEntity.js +2 -4
- package/dist/steps/functions/downloadArtifact.d.ts +1 -1
- package/dist/steps/functions/downloadArtifact.js +7 -9
- package/dist/steps/functions/downloadBuild.d.ts +1 -1
- package/dist/steps/functions/downloadBuild.js +10 -12
- package/dist/steps/functions/eagerBundle.js +2 -4
- package/dist/steps/functions/findAndUploadBuildArtifacts.js +5 -8
- package/dist/steps/functions/generateGymfileFromTemplate.js +6 -8
- package/dist/steps/functions/getCredentialsForBuildTriggeredByGitHubIntegration.js +0 -1
- package/dist/steps/functions/injectAndroidCredentials.js +3 -4
- package/dist/steps/functions/installMaestro.js +3 -4
- package/dist/steps/functions/installNodeModules.d.ts +1 -1
- package/dist/steps/functions/installNodeModules.js +12 -12
- package/dist/steps/functions/installPods.js +0 -1
- package/dist/steps/functions/internalMaestroTest.js +16 -16
- package/dist/steps/functions/prebuild.js +3 -5
- package/dist/steps/functions/readIpaInfo.d.ts +8 -0
- package/dist/steps/functions/readIpaInfo.js +111 -0
- package/dist/steps/functions/repack.d.ts +1 -1
- package/dist/steps/functions/repack.js +25 -19
- package/dist/steps/functions/resolveAppleTeamIdFromCredentials.js +1 -2
- package/dist/steps/functions/resolveBuildConfig.js +0 -1
- package/dist/steps/functions/restoreBuildCache.d.ts +1 -1
- package/dist/steps/functions/restoreBuildCache.js +8 -10
- package/dist/steps/functions/restoreCache.d.ts +1 -1
- package/dist/steps/functions/restoreCache.js +34 -26
- package/dist/steps/functions/runFastlane.js +0 -1
- package/dist/steps/functions/runGradle.js +2 -3
- package/dist/steps/functions/saveBuildCache.d.ts +1 -1
- package/dist/steps/functions/saveBuildCache.js +6 -7
- package/dist/steps/functions/saveCache.d.ts +1 -1
- package/dist/steps/functions/saveCache.js +26 -18
- package/dist/steps/functions/sendSlackMessage.js +1 -3
- package/dist/steps/functions/startAndroidEmulator.js +5 -7
- package/dist/steps/functions/startCuttlefishDevice.js +32 -10
- package/dist/steps/functions/startIosSimulator.js +8 -11
- package/dist/steps/functions/uploadArtifact.js +4 -6
- package/dist/steps/functions/uploadToAsc.d.ts +2 -0
- package/dist/steps/functions/uploadToAsc.js +287 -0
- package/dist/steps/functions/useNpmToken.js +3 -4
- package/dist/steps/utils/android/expoUpdates.js +3 -5
- package/dist/steps/utils/android/gradle.d.ts +1 -1
- package/dist/steps/utils/android/gradle.js +6 -7
- package/dist/steps/utils/android/gradleConfig.js +4 -5
- package/dist/steps/utils/cache.js +0 -1
- package/dist/steps/utils/expoUpdates.d.ts +1 -1
- package/dist/steps/utils/expoUpdates.js +15 -18
- package/dist/steps/utils/ios/AscApiClient.d.ts +250 -0
- package/dist/steps/utils/ios/AscApiClient.js +299 -0
- package/dist/steps/utils/ios/configure.js +4 -5
- package/dist/steps/utils/ios/credentials/credentials.js +0 -1
- package/dist/steps/utils/ios/credentials/distributionCertificate.js +1 -3
- package/dist/steps/utils/ios/credentials/keychain.js +8 -8
- package/dist/steps/utils/ios/credentials/manager.js +24 -13
- package/dist/steps/utils/ios/credentials/provisioningProfile.js +11 -6
- package/dist/steps/utils/ios/expoUpdates.js +4 -7
- package/dist/steps/utils/ios/fastlane.d.ts +1 -1
- package/dist/steps/utils/ios/fastlane.js +3 -4
- package/dist/steps/utils/ios/resolve.js +1 -2
- package/dist/steps/utils/ios/tvos.js +1 -3
- package/dist/steps/utils/ios/xcpretty.js +11 -7
- package/dist/steps/utils/slackMessageDynamicFields.js +0 -1
- package/dist/templates/EasBuildConfigureVersionGradle.js +0 -1
- package/dist/templates/EasBuildGradle.js +0 -1
- package/dist/templates/EasBuildInjectAndroidCredentialsGradle.js +0 -1
- package/dist/templates/FastfileResign.js +0 -1
- package/dist/templates/GymfileArchive.js +0 -1
- package/dist/templates/GymfileSimulator.js +0 -1
- package/dist/templates/npmrc.js +0 -1
- package/dist/utils/AndroidEmulatorUtils.js +20 -22
- package/dist/utils/IosSimulatorUtils.js +9 -11
- package/dist/utils/appConfig.js +1 -2
- package/dist/utils/artifacts.d.ts +1 -1
- package/dist/utils/artifacts.js +7 -8
- package/dist/utils/cacheKey.js +21 -12
- package/dist/utils/diffFingerprintsAsync.d.ts +1 -1
- package/dist/utils/diffFingerprintsAsync.js +0 -1
- package/dist/utils/environmentSecrets.js +3 -4
- package/dist/utils/expoFingerprintCli.js +5 -6
- package/dist/utils/expoUpdates.d.ts +1 -2
- package/dist/utils/expoUpdates.js +19 -33
- package/dist/utils/expoUpdatesCli.js +20 -11
- package/dist/utils/files.js +23 -15
- package/dist/utils/findMaestroPathsFlowsToExecuteAsync.js +27 -21
- package/dist/utils/fingerprint.js +0 -1
- package/dist/utils/getExpoUpdatesPackageVersionIfInstalledAsync.js +0 -1
- package/dist/utils/hooks.js +1 -3
- package/dist/utils/isModernExpoUpdatesCLIWithRuntimeVersionCommandSupported.d.ts +1 -0
- package/dist/utils/isModernExpoUpdatesCLIWithRuntimeVersionCommandSupported.js +14 -0
- package/dist/utils/npmrc.js +2 -3
- package/dist/utils/outputs.d.ts +1 -1
- package/dist/utils/outputs.js +2 -5
- package/dist/utils/packageManager.js +22 -14
- package/dist/utils/prepareBuildExecutable.js +1 -2
- package/dist/utils/processes.js +2 -3
- package/dist/utils/project.js +1 -2
- package/dist/utils/promiseRetryWithCondition.js +0 -1
- package/dist/utils/resolveRuntimeVersionAsync.d.ts +1 -1
- package/dist/utils/resolveRuntimeVersionAsync.js +4 -6
- package/dist/utils/retry.js +2 -3
- package/dist/utils/retryOnDNSFailure.js +0 -1
- package/dist/utils/stepMetrics.d.ts +1 -1
- package/dist/utils/stepMetrics.js +0 -1
- package/dist/utils/strings.js +1 -3
- package/dist/utils/turtleFetch.d.ts +1 -1
- package/dist/utils/turtleFetch.js +2 -2
- package/package.json +27 -22
- package/dist/android/credentials.js.map +0 -1
- package/dist/android/expoUpdates.js.map +0 -1
- package/dist/android/gradle.js.map +0 -1
- package/dist/android/gradleConfig.js.map +0 -1
- package/dist/buildErrors/buildErrorHandlers.js.map +0 -1
- package/dist/buildErrors/detectError.js.map +0 -1
- package/dist/buildErrors/errors.types.js.map +0 -1
- package/dist/buildErrors/userErrorHandlers.js.map +0 -1
- package/dist/builders/android.js.map +0 -1
- package/dist/builders/common.js.map +0 -1
- package/dist/builders/custom.js.map +0 -1
- package/dist/builders/index.js.map +0 -1
- package/dist/builders/ios.js.map +0 -1
- package/dist/common/eagerBundle.js.map +0 -1
- package/dist/common/easBuildInternal.js.map +0 -1
- package/dist/common/fastlane.js.map +0 -1
- package/dist/common/git.js.map +0 -1
- package/dist/common/installDependencies.js.map +0 -1
- package/dist/common/prebuild.js.map +0 -1
- package/dist/common/projectSources.js.map +0 -1
- package/dist/common/setup.js.map +0 -1
- package/dist/context.js.map +0 -1
- package/dist/customBuildContext.js.map +0 -1
- package/dist/gcs/LoggerStream.js.map +0 -1
- package/dist/gcs/__unit__/gcs.test.js.map +0 -1
- package/dist/gcs/client.js.map +0 -1
- package/dist/gcs/retry.js.map +0 -1
- package/dist/generic.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/ios/configure.js.map +0 -1
- package/dist/ios/credentials/distributionCertificate.js.map +0 -1
- package/dist/ios/credentials/keychain.js.map +0 -1
- package/dist/ios/credentials/manager.js.map +0 -1
- package/dist/ios/credentials/provisioningProfile.js.map +0 -1
- package/dist/ios/expoUpdates.js.map +0 -1
- package/dist/ios/fastfile.js.map +0 -1
- package/dist/ios/fastlane.js.map +0 -1
- package/dist/ios/gymfile.js.map +0 -1
- package/dist/ios/pod.js.map +0 -1
- package/dist/ios/resign.js.map +0 -1
- package/dist/ios/resolve.js.map +0 -1
- package/dist/ios/tvos.js.map +0 -1
- package/dist/ios/xcodeBuildLogs.js.map +0 -1
- package/dist/ios/xcodeEnv.js.map +0 -1
- package/dist/ios/xcpretty.js.map +0 -1
- package/dist/steps/easFunctionGroups.js.map +0 -1
- package/dist/steps/easFunctions.js.map +0 -1
- package/dist/steps/functionGroups/build.js.map +0 -1
- package/dist/steps/functionGroups/maestroTest.js.map +0 -1
- package/dist/steps/functions/calculateEASUpdateRuntimeVersion.js.map +0 -1
- package/dist/steps/functions/ccacheStats.js.map +0 -1
- package/dist/steps/functions/checkout.js.map +0 -1
- package/dist/steps/functions/configureAndroidVersion.js.map +0 -1
- package/dist/steps/functions/configureEASUpdateIfInstalled.js.map +0 -1
- package/dist/steps/functions/configureIosCredentials.js.map +0 -1
- package/dist/steps/functions/configureIosVersion.js.map +0 -1
- package/dist/steps/functions/createSubmissionEntity.js.map +0 -1
- package/dist/steps/functions/downloadArtifact.js.map +0 -1
- package/dist/steps/functions/downloadBuild.js.map +0 -1
- package/dist/steps/functions/eagerBundle.js.map +0 -1
- package/dist/steps/functions/findAndUploadBuildArtifacts.js.map +0 -1
- package/dist/steps/functions/generateGymfileFromTemplate.js.map +0 -1
- package/dist/steps/functions/getCredentialsForBuildTriggeredByGitHubIntegration.js.map +0 -1
- package/dist/steps/functions/injectAndroidCredentials.js.map +0 -1
- package/dist/steps/functions/installMaestro.js.map +0 -1
- package/dist/steps/functions/installNodeModules.js.map +0 -1
- package/dist/steps/functions/installPods.js.map +0 -1
- package/dist/steps/functions/internalMaestroTest.js.map +0 -1
- package/dist/steps/functions/prebuild.js.map +0 -1
- package/dist/steps/functions/repack.js.map +0 -1
- package/dist/steps/functions/resolveAppleTeamIdFromCredentials.js.map +0 -1
- package/dist/steps/functions/resolveBuildConfig.js.map +0 -1
- package/dist/steps/functions/restoreBuildCache.js.map +0 -1
- package/dist/steps/functions/restoreCache.js.map +0 -1
- package/dist/steps/functions/runFastlane.js.map +0 -1
- package/dist/steps/functions/runGradle.js.map +0 -1
- package/dist/steps/functions/saveBuildCache.js.map +0 -1
- package/dist/steps/functions/saveCache.js.map +0 -1
- package/dist/steps/functions/sendSlackMessage.js.map +0 -1
- package/dist/steps/functions/startAndroidEmulator.js.map +0 -1
- package/dist/steps/functions/startCuttlefishDevice.js.map +0 -1
- package/dist/steps/functions/startIosSimulator.js.map +0 -1
- package/dist/steps/functions/uploadArtifact.js.map +0 -1
- package/dist/steps/functions/useNpmToken.js.map +0 -1
- package/dist/steps/utils/android/expoUpdates.js.map +0 -1
- package/dist/steps/utils/android/gradle.js.map +0 -1
- package/dist/steps/utils/android/gradleConfig.js.map +0 -1
- package/dist/steps/utils/cache.js.map +0 -1
- package/dist/steps/utils/expoUpdates.js.map +0 -1
- package/dist/steps/utils/ios/configure.js.map +0 -1
- package/dist/steps/utils/ios/credentials/credentials.js.map +0 -1
- package/dist/steps/utils/ios/credentials/distributionCertificate.js.map +0 -1
- package/dist/steps/utils/ios/credentials/keychain.js.map +0 -1
- package/dist/steps/utils/ios/credentials/manager.js.map +0 -1
- package/dist/steps/utils/ios/credentials/provisioningProfile.js.map +0 -1
- package/dist/steps/utils/ios/expoUpdates.js.map +0 -1
- package/dist/steps/utils/ios/fastlane.js.map +0 -1
- package/dist/steps/utils/ios/resolve.js.map +0 -1
- package/dist/steps/utils/ios/tvos.js.map +0 -1
- package/dist/steps/utils/ios/xcpretty.js.map +0 -1
- package/dist/steps/utils/slackMessageDynamicFields.js.map +0 -1
- package/dist/templates/EasBuildConfigureVersionGradle.js.map +0 -1
- package/dist/templates/EasBuildGradle.js.map +0 -1
- package/dist/templates/EasBuildInjectAndroidCredentialsGradle.js.map +0 -1
- package/dist/templates/FastfileResign.js.map +0 -1
- package/dist/templates/GymfileArchive.js.map +0 -1
- package/dist/templates/GymfileSimulator.js.map +0 -1
- package/dist/templates/npmrc.js.map +0 -1
- package/dist/utils/AndroidEmulatorUtils.js.map +0 -1
- package/dist/utils/IosSimulatorUtils.js.map +0 -1
- package/dist/utils/appConfig.js.map +0 -1
- package/dist/utils/artifacts.js.map +0 -1
- package/dist/utils/cacheKey.js.map +0 -1
- package/dist/utils/diffFingerprintsAsync.js.map +0 -1
- package/dist/utils/environmentSecrets.js.map +0 -1
- package/dist/utils/expoFingerprintCli.js.map +0 -1
- package/dist/utils/expoUpdates.js.map +0 -1
- package/dist/utils/expoUpdatesCli.js.map +0 -1
- package/dist/utils/files.js.map +0 -1
- package/dist/utils/findMaestroPathsFlowsToExecuteAsync.js.map +0 -1
- package/dist/utils/fingerprint.js.map +0 -1
- package/dist/utils/getExpoUpdatesPackageVersionIfInstalledAsync.js.map +0 -1
- package/dist/utils/hooks.js.map +0 -1
- package/dist/utils/npmrc.js.map +0 -1
- package/dist/utils/outputs.js.map +0 -1
- package/dist/utils/packageManager.js.map +0 -1
- package/dist/utils/prepareBuildExecutable.js.map +0 -1
- package/dist/utils/processes.js.map +0 -1
- package/dist/utils/project.js.map +0 -1
- package/dist/utils/promiseRetryWithCondition.js.map +0 -1
- package/dist/utils/resolveRuntimeVersionAsync.js.map +0 -1
- package/dist/utils/retry.js.map +0 -1
- package/dist/utils/retryOnDNSFailure.js.map +0 -1
- package/dist/utils/stepMetrics.js.map +0 -1
- package/dist/utils/strings.js.map +0 -1
- package/dist/utils/turtleFetch.js.map +0 -1
|
@@ -1,40 +1,42 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getEasFunctions = getEasFunctions;
|
|
4
|
-
const
|
|
4
|
+
const calculateEASUpdateRuntimeVersion_1 = require("./functions/calculateEASUpdateRuntimeVersion");
|
|
5
5
|
const checkout_1 = require("./functions/checkout");
|
|
6
|
-
const useNpmToken_1 = require("./functions/useNpmToken");
|
|
7
|
-
const installNodeModules_1 = require("./functions/installNodeModules");
|
|
8
|
-
const prebuild_1 = require("./functions/prebuild");
|
|
9
|
-
const findAndUploadBuildArtifacts_1 = require("./functions/findAndUploadBuildArtifacts");
|
|
10
|
-
const configureEASUpdateIfInstalled_1 = require("./functions/configureEASUpdateIfInstalled");
|
|
11
|
-
const injectAndroidCredentials_1 = require("./functions/injectAndroidCredentials");
|
|
12
6
|
const configureAndroidVersion_1 = require("./functions/configureAndroidVersion");
|
|
13
|
-
const
|
|
14
|
-
const resolveAppleTeamIdFromCredentials_1 = require("./functions/resolveAppleTeamIdFromCredentials");
|
|
7
|
+
const configureEASUpdateIfInstalled_1 = require("./functions/configureEASUpdateIfInstalled");
|
|
15
8
|
const configureIosCredentials_1 = require("./functions/configureIosCredentials");
|
|
16
9
|
const configureIosVersion_1 = require("./functions/configureIosVersion");
|
|
10
|
+
const createSubmissionEntity_1 = require("./functions/createSubmissionEntity");
|
|
11
|
+
const downloadArtifact_1 = require("./functions/downloadArtifact");
|
|
12
|
+
const downloadBuild_1 = require("./functions/downloadBuild");
|
|
13
|
+
const eagerBundle_1 = require("./functions/eagerBundle");
|
|
14
|
+
const findAndUploadBuildArtifacts_1 = require("./functions/findAndUploadBuildArtifacts");
|
|
17
15
|
const generateGymfileFromTemplate_1 = require("./functions/generateGymfileFromTemplate");
|
|
18
|
-
const runFastlane_1 = require("./functions/runFastlane");
|
|
19
|
-
const startAndroidEmulator_1 = require("./functions/startAndroidEmulator");
|
|
20
|
-
const startCuttlefishDevice_1 = require("./functions/startCuttlefishDevice");
|
|
21
|
-
const startIosSimulator_1 = require("./functions/startIosSimulator");
|
|
22
|
-
const installMaestro_1 = require("./functions/installMaestro");
|
|
23
16
|
const getCredentialsForBuildTriggeredByGitHubIntegration_1 = require("./functions/getCredentialsForBuildTriggeredByGitHubIntegration");
|
|
17
|
+
const injectAndroidCredentials_1 = require("./functions/injectAndroidCredentials");
|
|
18
|
+
const installMaestro_1 = require("./functions/installMaestro");
|
|
19
|
+
const installNodeModules_1 = require("./functions/installNodeModules");
|
|
24
20
|
const installPods_1 = require("./functions/installPods");
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const eagerBundle_1 = require("./functions/eagerBundle");
|
|
29
|
-
const createSubmissionEntity_1 = require("./functions/createSubmissionEntity");
|
|
30
|
-
const downloadBuild_1 = require("./functions/downloadBuild");
|
|
21
|
+
const internalMaestroTest_1 = require("./functions/internalMaestroTest");
|
|
22
|
+
const prebuild_1 = require("./functions/prebuild");
|
|
23
|
+
const readIpaInfo_1 = require("./functions/readIpaInfo");
|
|
31
24
|
const repack_1 = require("./functions/repack");
|
|
32
|
-
const
|
|
25
|
+
const resolveAppleTeamIdFromCredentials_1 = require("./functions/resolveAppleTeamIdFromCredentials");
|
|
26
|
+
const resolveBuildConfig_1 = require("./functions/resolveBuildConfig");
|
|
27
|
+
const restoreBuildCache_1 = require("./functions/restoreBuildCache");
|
|
33
28
|
const restoreCache_1 = require("./functions/restoreCache");
|
|
34
|
-
const
|
|
35
|
-
const
|
|
29
|
+
const runFastlane_1 = require("./functions/runFastlane");
|
|
30
|
+
const runGradle_1 = require("./functions/runGradle");
|
|
36
31
|
const saveBuildCache_1 = require("./functions/saveBuildCache");
|
|
37
|
-
const
|
|
32
|
+
const saveCache_1 = require("./functions/saveCache");
|
|
33
|
+
const sendSlackMessage_1 = require("./functions/sendSlackMessage");
|
|
34
|
+
const startAndroidEmulator_1 = require("./functions/startAndroidEmulator");
|
|
35
|
+
const startCuttlefishDevice_1 = require("./functions/startCuttlefishDevice");
|
|
36
|
+
const startIosSimulator_1 = require("./functions/startIosSimulator");
|
|
37
|
+
const uploadArtifact_1 = require("./functions/uploadArtifact");
|
|
38
|
+
const uploadToAsc_1 = require("./functions/uploadToAsc");
|
|
39
|
+
const useNpmToken_1 = require("./functions/useNpmToken");
|
|
38
40
|
function getEasFunctions(ctx) {
|
|
39
41
|
const functions = [
|
|
40
42
|
(0, checkout_1.createCheckoutBuildFunction)(),
|
|
@@ -43,6 +45,7 @@ function getEasFunctions(ctx) {
|
|
|
43
45
|
(0, useNpmToken_1.createSetUpNpmrcBuildFunction)(),
|
|
44
46
|
(0, installNodeModules_1.createInstallNodeModulesBuildFunction)(),
|
|
45
47
|
(0, prebuild_1.createPrebuildBuildFunction)(),
|
|
48
|
+
(0, readIpaInfo_1.createReadIpaInfoBuildFunction)(),
|
|
46
49
|
(0, downloadBuild_1.createDownloadBuildFunction)(),
|
|
47
50
|
(0, repack_1.createRepackBuildFunction)(),
|
|
48
51
|
(0, restoreCache_1.createRestoreCacheFunction)(),
|
|
@@ -68,6 +71,7 @@ function getEasFunctions(ctx) {
|
|
|
68
71
|
(0, sendSlackMessage_1.createSendSlackMessageFunction)(),
|
|
69
72
|
(0, calculateEASUpdateRuntimeVersion_1.calculateEASUpdateRuntimeVersionFunction)(),
|
|
70
73
|
(0, createSubmissionEntity_1.createSubmissionEntityFunction)(),
|
|
74
|
+
(0, uploadToAsc_1.createUploadToAscBuildFunction)(),
|
|
71
75
|
(0, internalMaestroTest_1.createInternalEasMaestroTestFunction)(ctx),
|
|
72
76
|
];
|
|
73
77
|
if (ctx.hasBuildJob()) {
|
|
@@ -79,4 +83,3 @@ function getEasFunctions(ctx) {
|
|
|
79
83
|
}
|
|
80
84
|
return functions;
|
|
81
85
|
}
|
|
82
|
-
//# sourceMappingURL=easFunctions.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BuildFunctionGroup } from '@expo/steps';
|
|
2
1
|
import { BuildJob } from '@expo/eas-build-job';
|
|
2
|
+
import { BuildFunctionGroup } from '@expo/steps';
|
|
3
3
|
import { CustomBuildContext } from '../../customBuildContext';
|
|
4
4
|
export declare function createEasBuildBuildFunctionGroup(buildToolsContext: CustomBuildContext<BuildJob>): BuildFunctionGroup;
|
|
@@ -1,35 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createEasBuildBuildFunctionGroup = createEasBuildBuildFunctionGroup;
|
|
4
|
-
const steps_1 = require("@expo/steps");
|
|
5
4
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
5
|
+
const steps_1 = require("@expo/steps");
|
|
6
|
+
const eagerBundle_1 = require("../../common/eagerBundle");
|
|
7
|
+
const calculateEASUpdateRuntimeVersion_1 = require("../functions/calculateEASUpdateRuntimeVersion");
|
|
6
8
|
const checkout_1 = require("../functions/checkout");
|
|
7
|
-
const
|
|
8
|
-
const prebuild_1 = require("../functions/prebuild");
|
|
9
|
-
const installPods_1 = require("../functions/installPods");
|
|
9
|
+
const configureAndroidVersion_1 = require("../functions/configureAndroidVersion");
|
|
10
10
|
const configureEASUpdateIfInstalled_1 = require("../functions/configureEASUpdateIfInstalled");
|
|
11
|
-
const generateGymfileFromTemplate_1 = require("../functions/generateGymfileFromTemplate");
|
|
12
|
-
const runFastlane_1 = require("../functions/runFastlane");
|
|
13
|
-
const findAndUploadBuildArtifacts_1 = require("../functions/findAndUploadBuildArtifacts");
|
|
14
|
-
const resolveAppleTeamIdFromCredentials_1 = require("../functions/resolveAppleTeamIdFromCredentials");
|
|
15
11
|
const configureIosCredentials_1 = require("../functions/configureIosCredentials");
|
|
16
|
-
const runGradle_1 = require("../functions/runGradle");
|
|
17
12
|
const configureIosVersion_1 = require("../functions/configureIosVersion");
|
|
13
|
+
const eagerBundle_2 = require("../functions/eagerBundle");
|
|
14
|
+
const findAndUploadBuildArtifacts_1 = require("../functions/findAndUploadBuildArtifacts");
|
|
15
|
+
const generateGymfileFromTemplate_1 = require("../functions/generateGymfileFromTemplate");
|
|
18
16
|
const injectAndroidCredentials_1 = require("../functions/injectAndroidCredentials");
|
|
19
|
-
const
|
|
20
|
-
const
|
|
17
|
+
const installNodeModules_1 = require("../functions/installNodeModules");
|
|
18
|
+
const installPods_1 = require("../functions/installPods");
|
|
19
|
+
const prebuild_1 = require("../functions/prebuild");
|
|
20
|
+
const resolveAppleTeamIdFromCredentials_1 = require("../functions/resolveAppleTeamIdFromCredentials");
|
|
21
21
|
const resolveBuildConfig_1 = require("../functions/resolveBuildConfig");
|
|
22
|
-
const calculateEASUpdateRuntimeVersion_1 = require("../functions/calculateEASUpdateRuntimeVersion");
|
|
23
|
-
const eagerBundle_1 = require("../functions/eagerBundle");
|
|
24
|
-
const eagerBundle_2 = require("../../common/eagerBundle");
|
|
25
22
|
const restoreBuildCache_1 = require("../functions/restoreBuildCache");
|
|
23
|
+
const runFastlane_1 = require("../functions/runFastlane");
|
|
24
|
+
const runGradle_1 = require("../functions/runGradle");
|
|
26
25
|
const saveBuildCache_1 = require("../functions/saveBuildCache");
|
|
26
|
+
const useNpmToken_1 = require("../functions/useNpmToken");
|
|
27
27
|
function createEasBuildBuildFunctionGroup(buildToolsContext) {
|
|
28
28
|
return new steps_1.BuildFunctionGroup({
|
|
29
29
|
namespace: 'eas',
|
|
30
30
|
id: 'build',
|
|
31
|
-
createBuildStepsFromFunctionGroupCall:
|
|
32
|
-
var _a;
|
|
31
|
+
createBuildStepsFromFunctionGroupCall: globalCtx => {
|
|
33
32
|
if (buildToolsContext.job.platform === eas_build_job_1.Platform.IOS) {
|
|
34
33
|
if (buildToolsContext.job.simulator) {
|
|
35
34
|
return createStepsForIosSimulatorBuild({
|
|
@@ -45,7 +44,7 @@ function createEasBuildBuildFunctionGroup(buildToolsContext) {
|
|
|
45
44
|
}
|
|
46
45
|
}
|
|
47
46
|
else if (buildToolsContext.job.platform === eas_build_job_1.Platform.ANDROID) {
|
|
48
|
-
if (!
|
|
47
|
+
if (!buildToolsContext.job.secrets?.buildCredentials) {
|
|
49
48
|
return createStepsForAndroidBuildWithoutCredentials({
|
|
50
49
|
globalCtx,
|
|
51
50
|
buildToolsContext,
|
|
@@ -90,9 +89,9 @@ function createStepsForIosSimulatorBuild({ globalCtx, buildToolsContext, }) {
|
|
|
90
89
|
calculateEASUpdateRuntimeVersion,
|
|
91
90
|
installPods,
|
|
92
91
|
configureEASUpdate,
|
|
93
|
-
...((0,
|
|
92
|
+
...((0, eagerBundle_1.shouldUseEagerBundle)(globalCtx.staticContext.metadata)
|
|
94
93
|
? [
|
|
95
|
-
(0,
|
|
94
|
+
(0, eagerBundle_2.eagerBundleBuildFunction)().createBuildStepFromFunctionCall(globalCtx, {
|
|
96
95
|
callInputs: {
|
|
97
96
|
resolved_eas_update_runtime_version: '${ steps.calculate_eas_update_runtime_version.resolved_eas_update_runtime_version }',
|
|
98
97
|
},
|
|
@@ -160,9 +159,9 @@ function createStepsForIosBuildWithCredentials({ globalCtx, buildToolsContext, }
|
|
|
160
159
|
configureEASUpdate,
|
|
161
160
|
(0, configureIosCredentials_1.configureIosCredentialsFunction)().createBuildStepFromFunctionCall(globalCtx),
|
|
162
161
|
(0, configureIosVersion_1.configureIosVersionFunction)().createBuildStepFromFunctionCall(globalCtx),
|
|
163
|
-
...((0,
|
|
162
|
+
...((0, eagerBundle_1.shouldUseEagerBundle)(globalCtx.staticContext.metadata)
|
|
164
163
|
? [
|
|
165
|
-
(0,
|
|
164
|
+
(0, eagerBundle_2.eagerBundleBuildFunction)().createBuildStepFromFunctionCall(globalCtx, {
|
|
166
165
|
callInputs: {
|
|
167
166
|
resolved_eas_update_runtime_version: '${ steps.calculate_eas_update_runtime_version.resolved_eas_update_runtime_version }',
|
|
168
167
|
},
|
|
@@ -212,9 +211,9 @@ function createStepsForAndroidBuildWithoutCredentials({ globalCtx, buildToolsCon
|
|
|
212
211
|
restoreCache,
|
|
213
212
|
calculateEASUpdateRuntimeVersion,
|
|
214
213
|
configureEASUpdate,
|
|
215
|
-
...((0,
|
|
214
|
+
...((0, eagerBundle_1.shouldUseEagerBundle)(globalCtx.staticContext.metadata)
|
|
216
215
|
? [
|
|
217
|
-
(0,
|
|
216
|
+
(0, eagerBundle_2.eagerBundleBuildFunction)().createBuildStepFromFunctionCall(globalCtx, {
|
|
218
217
|
callInputs: {
|
|
219
218
|
resolved_eas_update_runtime_version: '${ steps.calculate_eas_update_runtime_version.resolved_eas_update_runtime_version }',
|
|
220
219
|
},
|
|
@@ -266,9 +265,9 @@ function createStepsForAndroidBuildWithCredentials({ globalCtx, buildToolsContex
|
|
|
266
265
|
(0, injectAndroidCredentials_1.injectAndroidCredentialsFunction)().createBuildStepFromFunctionCall(globalCtx),
|
|
267
266
|
(0, configureAndroidVersion_1.configureAndroidVersionFunction)().createBuildStepFromFunctionCall(globalCtx),
|
|
268
267
|
runGradle,
|
|
269
|
-
...((0,
|
|
268
|
+
...((0, eagerBundle_1.shouldUseEagerBundle)(globalCtx.staticContext.metadata)
|
|
270
269
|
? [
|
|
271
|
-
(0,
|
|
270
|
+
(0, eagerBundle_2.eagerBundleBuildFunction)().createBuildStepFromFunctionCall(globalCtx, {
|
|
272
271
|
callInputs: {
|
|
273
272
|
resolved_eas_update_runtime_version: '${ steps.calculate_eas_update_runtime_version.resolved_eas_update_runtime_version }',
|
|
274
273
|
},
|
|
@@ -280,4 +279,3 @@ function createStepsForAndroidBuildWithCredentials({ globalCtx, buildToolsContex
|
|
|
280
279
|
(0, restoreBuildCache_1.createCacheStatsBuildFunction)().createBuildStepFromFunctionCall(globalCtx),
|
|
281
280
|
];
|
|
282
281
|
}
|
|
283
|
-
//# sourceMappingURL=build.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createEasMaestroTestFunctionGroup = createEasMaestroTestFunctionGroup;
|
|
4
|
-
const steps_1 = require("@expo/steps");
|
|
5
4
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
5
|
+
const steps_1 = require("@expo/steps");
|
|
6
6
|
const installMaestro_1 = require("../functions/installMaestro");
|
|
7
|
-
const startIosSimulator_1 = require("../functions/startIosSimulator");
|
|
8
7
|
const startAndroidEmulator_1 = require("../functions/startAndroidEmulator");
|
|
8
|
+
const startIosSimulator_1 = require("../functions/startIosSimulator");
|
|
9
9
|
const uploadArtifact_1 = require("../functions/uploadArtifact");
|
|
10
10
|
function createEasMaestroTestFunctionGroup(buildToolsContext) {
|
|
11
11
|
return new steps_1.BuildFunctionGroup({
|
|
@@ -29,15 +29,14 @@ function createEasMaestroTestFunctionGroup(buildToolsContext) {
|
|
|
29
29
|
}),
|
|
30
30
|
],
|
|
31
31
|
createBuildStepsFromFunctionGroupCall: (globalCtx, { inputs }) => {
|
|
32
|
-
var _a, _b;
|
|
33
32
|
const steps = [
|
|
34
33
|
(0, installMaestro_1.createInstallMaestroBuildFunction)().createBuildStepFromFunctionCall(globalCtx),
|
|
35
34
|
];
|
|
36
35
|
if (buildToolsContext.job.platform === eas_build_job_1.Platform.IOS) {
|
|
37
36
|
steps.push((0, startIosSimulator_1.createStartIosSimulatorBuildFunction)().createBuildStepFromFunctionCall(globalCtx));
|
|
38
|
-
const searchPath =
|
|
37
|
+
const searchPath = inputs.app_path.getValue({
|
|
39
38
|
interpolationContext: globalCtx.getInterpolationContext(),
|
|
40
|
-
})
|
|
39
|
+
}) ?? 'ios/build/Build/Products/*simulator/*.app';
|
|
41
40
|
steps.push(new steps_1.BuildStep(globalCtx, {
|
|
42
41
|
id: steps_1.BuildStep.getNewId(),
|
|
43
42
|
name: 'install_app',
|
|
@@ -74,9 +73,9 @@ function createEasMaestroTestFunctionGroup(buildToolsContext) {
|
|
|
74
73
|
},
|
|
75
74
|
}
|
|
76
75
|
: undefined));
|
|
77
|
-
const searchPath =
|
|
76
|
+
const searchPath = inputs.app_path.getValue({
|
|
78
77
|
interpolationContext: globalCtx.getInterpolationContext(),
|
|
79
|
-
})
|
|
78
|
+
}) ?? 'android/app/build/outputs/**/*.apk';
|
|
80
79
|
steps.push(new steps_1.BuildStep(globalCtx, {
|
|
81
80
|
id: steps_1.BuildStep.getNewId(),
|
|
82
81
|
name: 'install_app',
|
|
@@ -108,7 +107,7 @@ function createEasMaestroTestFunctionGroup(buildToolsContext) {
|
|
|
108
107
|
interpolationContext: globalCtx.getInterpolationContext(),
|
|
109
108
|
})}`
|
|
110
109
|
.split('\n') // It's easy to get an empty line with YAML
|
|
111
|
-
.filter(
|
|
110
|
+
.filter(entry => entry);
|
|
112
111
|
for (const flowPath of flowPaths) {
|
|
113
112
|
steps.push(new steps_1.BuildStep(globalCtx, {
|
|
114
113
|
id: steps_1.BuildStep.getNewId(),
|
|
@@ -131,4 +130,3 @@ function createEasMaestroTestFunctionGroup(buildToolsContext) {
|
|
|
131
130
|
},
|
|
132
131
|
});
|
|
133
132
|
}
|
|
134
|
-
//# sourceMappingURL=maestroTest.js.map
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.calculateEASUpdateRuntimeVersionFunction = calculateEASUpdateRuntimeVersionFunction;
|
|
4
4
|
const eas_build_job_1 = require("@expo/eas-build-job");
|
|
5
5
|
const steps_1 = require("@expo/steps");
|
|
6
|
-
const expoUpdates_1 = require("../../utils/expoUpdates");
|
|
7
6
|
const appConfig_1 = require("../../utils/appConfig");
|
|
7
|
+
const expoUpdates_1 = require("../../utils/expoUpdates");
|
|
8
8
|
function calculateEASUpdateRuntimeVersionFunction() {
|
|
9
9
|
return new steps_1.BuildFunction({
|
|
10
10
|
namespace: 'eas',
|
|
@@ -30,19 +30,17 @@ function calculateEASUpdateRuntimeVersionFunction() {
|
|
|
30
30
|
}),
|
|
31
31
|
],
|
|
32
32
|
fn: async (stepCtx, { env, inputs, outputs }) => {
|
|
33
|
-
var _a, _b, _c, _d;
|
|
34
33
|
const appConfig = (0, appConfig_1.readAppConfig)({
|
|
35
34
|
projectDir: stepCtx.workingDirectory,
|
|
36
35
|
env: Object.keys(env).reduce((acc, key) => {
|
|
37
|
-
|
|
38
|
-
acc[key] = (_a = env[key]) !== null && _a !== void 0 ? _a : '';
|
|
36
|
+
acc[key] = env[key] ?? '';
|
|
39
37
|
return acc;
|
|
40
38
|
}, {}),
|
|
41
39
|
logger: stepCtx.logger,
|
|
42
|
-
sdkVersion:
|
|
40
|
+
sdkVersion: stepCtx.global.staticContext.metadata?.sdkVersion,
|
|
43
41
|
}).exp;
|
|
44
|
-
const platform =
|
|
45
|
-
const workflow =
|
|
42
|
+
const platform = inputs.platform.value ?? stepCtx.global.staticContext.job.platform;
|
|
43
|
+
const workflow = inputs.workflow.value ?? stepCtx.global.staticContext.job.type;
|
|
46
44
|
if (![eas_build_job_1.Platform.ANDROID, eas_build_job_1.Platform.IOS].includes(platform)) {
|
|
47
45
|
throw new Error(`Unsupported platform: ${platform}. Platform must be "${eas_build_job_1.Platform.ANDROID}" or "${eas_build_job_1.Platform.IOS}"`);
|
|
48
46
|
}
|
|
@@ -61,7 +59,7 @@ function calculateEASUpdateRuntimeVersionFunction() {
|
|
|
61
59
|
env,
|
|
62
60
|
});
|
|
63
61
|
if (resolvedRuntimeVersion) {
|
|
64
|
-
outputs.resolved_eas_update_runtime_version.set(
|
|
62
|
+
outputs.resolved_eas_update_runtime_version.set(resolvedRuntimeVersion.runtimeVersion ?? undefined);
|
|
65
63
|
}
|
|
66
64
|
else {
|
|
67
65
|
stepCtx.logger.info('Skipped because EAS Update is not configured');
|
|
@@ -69,4 +67,3 @@ function calculateEASUpdateRuntimeVersionFunction() {
|
|
|
69
67
|
},
|
|
70
68
|
});
|
|
71
69
|
}
|
|
72
|
-
//# sourceMappingURL=calculateEASUpdateRuntimeVersion.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.sendCcacheStatsAsync = sendCcacheStatsAsync;
|
|
4
|
-
const steps_1 = require("@expo/steps");
|
|
5
4
|
const results_1 = require("@expo/results");
|
|
5
|
+
const steps_1 = require("@expo/steps");
|
|
6
6
|
const turtleFetch_1 = require("../../utils/turtleFetch");
|
|
7
7
|
const REQUIRED_CCACHE_KEYS = [
|
|
8
8
|
'direct_cache_hit',
|
|
@@ -12,7 +12,6 @@ const REQUIRED_CCACHE_KEYS = [
|
|
|
12
12
|
'max_cache_size_kibibyte',
|
|
13
13
|
];
|
|
14
14
|
function parseCcacheStats(output) {
|
|
15
|
-
var _a, _b, _c;
|
|
16
15
|
// Parse key-value pairs from `ccache --print-stats` output
|
|
17
16
|
const values = {};
|
|
18
17
|
for (const line of output.split('\n')) {
|
|
@@ -33,9 +32,9 @@ function parseCcacheStats(output) {
|
|
|
33
32
|
const cacheSizeKiB = values['cache_size_kibibyte'];
|
|
34
33
|
const maxCacheSizeKiB = values['max_cache_size_kibibyte'];
|
|
35
34
|
// Uncacheable calls
|
|
36
|
-
const calledForLink =
|
|
37
|
-
const couldNotUseModules =
|
|
38
|
-
const calledForPreprocessing =
|
|
35
|
+
const calledForLink = values['called_for_link'] ?? 0;
|
|
36
|
+
const couldNotUseModules = values['could_not_use_modules'] ?? 0;
|
|
37
|
+
const calledForPreprocessing = values['called_for_preprocessing'] ?? 0;
|
|
39
38
|
const uncacheableCalls = calledForLink + couldNotUseModules + calledForPreprocessing;
|
|
40
39
|
// Calculate derived stats
|
|
41
40
|
const cacheableCalls = directHits + preprocessedHits + misses;
|
|
@@ -88,4 +87,3 @@ async function sendCcacheStatsAsync({ env, expoApiServerURL, robotAccessToken, b
|
|
|
88
87
|
}
|
|
89
88
|
catch { }
|
|
90
89
|
}
|
|
91
|
-
//# sourceMappingURL=ccacheStats.js.map
|
|
@@ -4,8 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.configureAndroidVersionFunction = configureAndroidVersionFunction;
|
|
7
|
-
const assert_1 = __importDefault(require("assert"));
|
|
8
7
|
const steps_1 = require("@expo/steps");
|
|
8
|
+
const assert_1 = __importDefault(require("assert"));
|
|
9
9
|
const semver_1 = __importDefault(require("semver"));
|
|
10
10
|
const gradleConfig_1 = require("../utils/android/gradleConfig");
|
|
11
11
|
function configureAndroidVersionFunction() {
|
|
@@ -27,11 +27,10 @@ function configureAndroidVersionFunction() {
|
|
|
27
27
|
}),
|
|
28
28
|
],
|
|
29
29
|
fn: async (stepCtx, { inputs }) => {
|
|
30
|
-
var _a, _b, _c, _d;
|
|
31
30
|
(0, assert_1.default)(stepCtx.global.staticContext.job, 'Job is not defined');
|
|
32
31
|
const job = stepCtx.global.staticContext.job;
|
|
33
|
-
const versionCode =
|
|
34
|
-
const versionName =
|
|
32
|
+
const versionCode = inputs.version_code.value ?? job.version?.versionCode;
|
|
33
|
+
const versionName = inputs.version_name.value ?? job.version?.versionName;
|
|
35
34
|
if (versionName && !semver_1.default.valid(versionName)) {
|
|
36
35
|
throw new Error(`Version name provided by the "version_name" input is not a valid semver version: ${versionName}`);
|
|
37
36
|
}
|
|
@@ -42,4 +41,3 @@ function configureAndroidVersionFunction() {
|
|
|
42
41
|
},
|
|
43
42
|
});
|
|
44
43
|
}
|
|
45
|
-
//# sourceMappingURL=configureAndroidVersion.js.map
|
|
@@ -4,12 +4,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.configureEASUpdateIfInstalledFunction = configureEASUpdateIfInstalledFunction;
|
|
7
|
-
const assert_1 = __importDefault(require("assert"));
|
|
8
7
|
const steps_1 = require("@expo/steps");
|
|
8
|
+
const assert_1 = __importDefault(require("assert"));
|
|
9
9
|
const semver_1 = __importDefault(require("semver"));
|
|
10
|
-
const expoUpdates_1 = require("../utils/expoUpdates");
|
|
11
10
|
const appConfig_1 = require("../../utils/appConfig");
|
|
12
11
|
const getExpoUpdatesPackageVersionIfInstalledAsync_1 = __importDefault(require("../../utils/getExpoUpdatesPackageVersionIfInstalledAsync"));
|
|
12
|
+
const expoUpdates_1 = require("../utils/expoUpdates");
|
|
13
13
|
function configureEASUpdateIfInstalledFunction() {
|
|
14
14
|
return new steps_1.BuildFunction({
|
|
15
15
|
namespace: 'eas',
|
|
@@ -47,12 +47,11 @@ function configureEASUpdateIfInstalledFunction() {
|
|
|
47
47
|
const appConfig = (0, appConfig_1.readAppConfig)({
|
|
48
48
|
projectDir: stepCtx.workingDirectory,
|
|
49
49
|
env: Object.keys(env).reduce((acc, key) => {
|
|
50
|
-
|
|
51
|
-
acc[key] = (_a = env[key]) !== null && _a !== void 0 ? _a : '';
|
|
50
|
+
acc[key] = env[key] ?? '';
|
|
52
51
|
return acc;
|
|
53
52
|
}, {}),
|
|
54
53
|
logger: stepCtx.logger,
|
|
55
|
-
sdkVersion: metadata
|
|
54
|
+
sdkVersion: metadata?.sdkVersion,
|
|
56
55
|
}).exp;
|
|
57
56
|
const channelInput = inputs.channel.value;
|
|
58
57
|
const runtimeVersionInput = inputs.runtime_version.value;
|
|
@@ -84,4 +83,3 @@ function configureEASUpdateIfInstalledFunction() {
|
|
|
84
83
|
},
|
|
85
84
|
});
|
|
86
85
|
}
|
|
87
|
-
//# sourceMappingURL=configureEASUpdateIfInstalled.js.map
|
|
@@ -4,11 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.configureIosCredentialsFunction = configureIosCredentialsFunction;
|
|
7
|
-
const assert_1 = __importDefault(require("assert"));
|
|
8
7
|
const steps_1 = require("@expo/steps");
|
|
9
|
-
const
|
|
10
|
-
const credentials_1 = require("../utils/ios/credentials/credentials");
|
|
8
|
+
const assert_1 = __importDefault(require("assert"));
|
|
11
9
|
const configure_1 = require("../utils/ios/configure");
|
|
10
|
+
const credentials_1 = require("../utils/ios/credentials/credentials");
|
|
11
|
+
const manager_1 = __importDefault(require("../utils/ios/credentials/manager"));
|
|
12
12
|
const resolve_1 = require("../utils/ios/resolve");
|
|
13
13
|
function configureIosCredentialsFunction() {
|
|
14
14
|
return new steps_1.BuildFunction({
|
|
@@ -51,4 +51,3 @@ function configureIosCredentialsFunction() {
|
|
|
51
51
|
},
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
|
-
//# sourceMappingURL=configureIosCredentials.js.map
|
|
@@ -4,12 +4,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.configureIosVersionFunction = configureIosVersionFunction;
|
|
7
|
-
const assert_1 = __importDefault(require("assert"));
|
|
8
7
|
const steps_1 = require("@expo/steps");
|
|
8
|
+
const assert_1 = __importDefault(require("assert"));
|
|
9
9
|
const semver_1 = __importDefault(require("semver"));
|
|
10
|
+
const configure_1 = require("../utils/ios/configure");
|
|
10
11
|
const credentials_1 = require("../utils/ios/credentials/credentials");
|
|
11
12
|
const manager_1 = __importDefault(require("../utils/ios/credentials/manager"));
|
|
12
|
-
const configure_1 = require("../utils/ios/configure");
|
|
13
13
|
const resolve_1 = require("../utils/ios/resolve");
|
|
14
14
|
function configureIosVersionFunction() {
|
|
15
15
|
return new steps_1.BuildFunction({
|
|
@@ -41,7 +41,6 @@ function configureIosVersionFunction() {
|
|
|
41
41
|
}),
|
|
42
42
|
],
|
|
43
43
|
fn: async (stepCtx, { inputs }) => {
|
|
44
|
-
var _a, _b, _c, _d;
|
|
45
44
|
const rawCredentialsInput = inputs.credentials.value;
|
|
46
45
|
const { value, error } = credentials_1.IosBuildCredentialsSchema.validate(rawCredentialsInput, {
|
|
47
46
|
stripUnknown: true,
|
|
@@ -55,8 +54,8 @@ function configureIosVersionFunction() {
|
|
|
55
54
|
const credentials = await credentialsManager.prepare(stepCtx.logger);
|
|
56
55
|
(0, assert_1.default)(stepCtx.global.staticContext.job, 'Job is not defined');
|
|
57
56
|
const job = stepCtx.global.staticContext.job;
|
|
58
|
-
const buildNumber =
|
|
59
|
-
const appVersion =
|
|
57
|
+
const buildNumber = inputs.build_number.value ?? job.version?.buildNumber;
|
|
58
|
+
const appVersion = inputs.app_version.value ?? job.version?.appVersion;
|
|
60
59
|
if (appVersion && !semver_1.default.valid(appVersion)) {
|
|
61
60
|
throw new Error(`App verrsion provided by the "app_version" input is not a valid semver version: ${appVersion}`);
|
|
62
61
|
}
|
|
@@ -81,4 +80,3 @@ function configureIosVersionFunction() {
|
|
|
81
80
|
},
|
|
82
81
|
});
|
|
83
82
|
}
|
|
84
|
-
//# sourceMappingURL=configureIosVersion.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createSubmissionEntityFunction = createSubmissionEntityFunction;
|
|
4
|
-
const steps_1 = require("@expo/steps");
|
|
5
4
|
const results_1 = require("@expo/results");
|
|
5
|
+
const steps_1 = require("@expo/steps");
|
|
6
6
|
const retryOnDNSFailure_1 = require("../../utils/retryOnDNSFailure");
|
|
7
7
|
function createSubmissionEntityFunction() {
|
|
8
8
|
return new steps_1.BuildFunction({
|
|
@@ -50,8 +50,7 @@ function createSubmissionEntityFunction() {
|
|
|
50
50
|
}),
|
|
51
51
|
],
|
|
52
52
|
fn: async (stepsCtx, { inputs }) => {
|
|
53
|
-
|
|
54
|
-
const robotAccessToken = (_a = stepsCtx.global.staticContext.job.secrets) === null || _a === void 0 ? void 0 : _a.robotAccessToken;
|
|
53
|
+
const robotAccessToken = stepsCtx.global.staticContext.job.secrets?.robotAccessToken;
|
|
55
54
|
if (!robotAccessToken) {
|
|
56
55
|
stepsCtx.logger.error('Failed to create submission entity: no robot access token found');
|
|
57
56
|
return;
|
|
@@ -117,4 +116,3 @@ function createSubmissionEntityFunction() {
|
|
|
117
116
|
},
|
|
118
117
|
});
|
|
119
118
|
}
|
|
120
|
-
//# sourceMappingURL=createSubmissionEntity.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BuildFunction } from '@expo/steps';
|
|
2
1
|
import { bunyan } from '@expo/logger';
|
|
2
|
+
import { BuildFunction } from '@expo/steps';
|
|
3
3
|
export declare function createDownloadArtifactFunction(): BuildFunction;
|
|
4
4
|
export declare function downloadArtifactAsync({ logger, workflowRunId, expoApiServerURL, robotAccessToken, params, }: {
|
|
5
5
|
logger: bunyan;
|
|
@@ -5,19 +5,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.createDownloadArtifactFunction = createDownloadArtifactFunction;
|
|
7
7
|
exports.downloadArtifactAsync = downloadArtifactAsync;
|
|
8
|
-
const
|
|
8
|
+
const errors_1 = require("@expo/eas-build-job/dist/errors");
|
|
9
|
+
const results_1 = require("@expo/results");
|
|
10
|
+
const steps_1 = require("@expo/steps");
|
|
11
|
+
const node_fetch_1 = __importDefault(require("node-fetch"));
|
|
9
12
|
const node_fs_1 = __importDefault(require("node:fs"));
|
|
10
13
|
const node_os_1 = __importDefault(require("node:os"));
|
|
14
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
11
15
|
const stream_1 = __importDefault(require("stream"));
|
|
12
16
|
const util_1 = require("util");
|
|
13
|
-
const steps_1 = require("@expo/steps");
|
|
14
|
-
const results_1 = require("@expo/results");
|
|
15
|
-
const node_fetch_1 = __importDefault(require("node-fetch"));
|
|
16
17
|
const zod_1 = require("zod");
|
|
17
|
-
const errors_1 = require("@expo/eas-build-job/dist/errors");
|
|
18
|
-
const retryOnDNSFailure_1 = require("../../utils/retryOnDNSFailure");
|
|
19
18
|
const artifacts_1 = require("../../utils/artifacts");
|
|
20
19
|
const files_1 = require("../../utils/files");
|
|
20
|
+
const retryOnDNSFailure_1 = require("../../utils/retryOnDNSFailure");
|
|
21
21
|
const streamPipeline = (0, util_1.promisify)(stream_1.default.pipeline);
|
|
22
22
|
function createDownloadArtifactFunction() {
|
|
23
23
|
return new steps_1.BuildFunction({
|
|
@@ -44,7 +44,6 @@ function createDownloadArtifactFunction() {
|
|
|
44
44
|
}),
|
|
45
45
|
],
|
|
46
46
|
fn: async (stepsCtx, { inputs, outputs }) => {
|
|
47
|
-
var _a;
|
|
48
47
|
const params = zod_1.z
|
|
49
48
|
.union([zod_1.z.object({ artifactId: zod_1.z.string() }), zod_1.z.object({ name: zod_1.z.string() })])
|
|
50
49
|
.parse({
|
|
@@ -55,7 +54,7 @@ function createDownloadArtifactFunction() {
|
|
|
55
54
|
if (!('workflow' in interpolationContext)) {
|
|
56
55
|
throw new errors_1.UserFacingError('EAS_DOWNLOAD_ARTIFACT_NO_WORKFLOW', 'No workflow found in the interpolation context.');
|
|
57
56
|
}
|
|
58
|
-
const robotAccessToken =
|
|
57
|
+
const robotAccessToken = stepsCtx.global.staticContext.job.secrets?.robotAccessToken;
|
|
59
58
|
if (!robotAccessToken) {
|
|
60
59
|
throw new errors_1.UserFacingError('EAS_DOWNLOAD_ARTIFACT_NO_ROBOT_ACCESS_TOKEN', 'No robot access token found in the job secrets.');
|
|
61
60
|
}
|
|
@@ -115,4 +114,3 @@ async function downloadArtifactAsync({ logger, workflowRunId, expoApiServerURL,
|
|
|
115
114
|
});
|
|
116
115
|
return { artifactPath: extractionDirectory };
|
|
117
116
|
}
|
|
118
|
-
//# sourceMappingURL=downloadArtifact.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BuildFunction } from '@expo/steps';
|
|
2
1
|
import { bunyan } from '@expo/logger';
|
|
2
|
+
import { BuildFunction } from '@expo/steps';
|
|
3
3
|
export declare function createDownloadBuildFunction(): BuildFunction;
|
|
4
4
|
export declare function downloadBuildAsync({ logger, buildId, expoApiServerURL, robotAccessToken, extensions, }: {
|
|
5
5
|
logger: bunyan;
|
|
@@ -5,20 +5,20 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.createDownloadBuildFunction = createDownloadBuildFunction;
|
|
7
7
|
exports.downloadBuildAsync = downloadBuildAsync;
|
|
8
|
-
const
|
|
8
|
+
const errors_1 = require("@expo/eas-build-job/dist/errors");
|
|
9
|
+
const results_1 = require("@expo/results");
|
|
10
|
+
const steps_1 = require("@expo/steps");
|
|
11
|
+
const fast_glob_1 = require("fast-glob");
|
|
12
|
+
const node_fetch_1 = __importDefault(require("node-fetch"));
|
|
9
13
|
const node_fs_1 = __importDefault(require("node:fs"));
|
|
10
14
|
const node_os_1 = __importDefault(require("node:os"));
|
|
15
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
11
16
|
const stream_1 = __importDefault(require("stream"));
|
|
12
17
|
const util_1 = require("util");
|
|
13
|
-
const steps_1 = require("@expo/steps");
|
|
14
|
-
const results_1 = require("@expo/results");
|
|
15
|
-
const node_fetch_1 = __importDefault(require("node-fetch"));
|
|
16
|
-
const fast_glob_1 = require("fast-glob");
|
|
17
18
|
const zod_1 = require("zod");
|
|
18
|
-
const errors_1 = require("@expo/eas-build-job/dist/errors");
|
|
19
|
-
const retryOnDNSFailure_1 = require("../../utils/retryOnDNSFailure");
|
|
20
19
|
const artifacts_1 = require("../../utils/artifacts");
|
|
21
20
|
const files_1 = require("../../utils/files");
|
|
21
|
+
const retryOnDNSFailure_1 = require("../../utils/retryOnDNSFailure");
|
|
22
22
|
const strings_1 = require("../../utils/strings");
|
|
23
23
|
const streamPipeline = (0, util_1.promisify)(stream_1.default.pipeline);
|
|
24
24
|
function createDownloadBuildFunction() {
|
|
@@ -47,7 +47,6 @@ function createDownloadBuildFunction() {
|
|
|
47
47
|
}),
|
|
48
48
|
],
|
|
49
49
|
fn: async (stepsCtx, { inputs, outputs }) => {
|
|
50
|
-
var _a, _b;
|
|
51
50
|
const { logger } = stepsCtx;
|
|
52
51
|
const extensions = zod_1.z.array(zod_1.z.string()).parse(inputs.extensions.value);
|
|
53
52
|
logger.info(`Expected extensions: [${extensions.join(', ')}]`);
|
|
@@ -57,7 +56,7 @@ function createDownloadBuildFunction() {
|
|
|
57
56
|
logger,
|
|
58
57
|
buildId,
|
|
59
58
|
expoApiServerURL: stepsCtx.global.staticContext.expoApiServerURL,
|
|
60
|
-
robotAccessToken:
|
|
59
|
+
robotAccessToken: stepsCtx.global.staticContext.job.secrets?.robotAccessToken ?? null,
|
|
61
60
|
extensions,
|
|
62
61
|
});
|
|
63
62
|
outputs.artifact_path.set(artifactPath);
|
|
@@ -99,9 +98,8 @@ async function downloadBuildAsync({ logger, buildId, expoApiServerURL, robotAcce
|
|
|
99
98
|
onlyDirectories: false,
|
|
100
99
|
});
|
|
101
100
|
if (matchingFiles.length === 0) {
|
|
102
|
-
throw new errors_1.UserFacingError('EAS_DOWNLOAD_BUILD_NO_MATCHING_FILES', `No ${extensions.map(
|
|
101
|
+
throw new errors_1.UserFacingError('EAS_DOWNLOAD_BUILD_NO_MATCHING_FILES', `No ${extensions.map(ext => `.${ext}`).join(', ')} entries found in the archive.`);
|
|
103
102
|
}
|
|
104
|
-
logger.info(`Found ${matchingFiles.length} matching ${(0, strings_1.pluralize)(matchingFiles.length, 'entry')}:\n${matchingFiles.map(
|
|
103
|
+
logger.info(`Found ${matchingFiles.length} matching ${(0, strings_1.pluralize)(matchingFiles.length, 'entry')}:\n${matchingFiles.map(f => `- ${node_path_1.default.relative(extractionDirectory, f)}`).join('\n')}`);
|
|
105
104
|
return { artifactPath: matchingFiles[0] };
|
|
106
105
|
}
|
|
107
|
-
//# sourceMappingURL=downloadBuild.js.map
|