@expo/build-tools 21.7.0 → 21.7.1

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.
@@ -8,6 +8,7 @@ const node_fetch_1 = __importDefault(require("node-fetch"));
8
8
  const stream_1 = require("stream");
9
9
  const retry_1 = require("../utils/retry");
10
10
  const MAX_BATCH_BYTES = 200_000;
11
+ const REQUEST_TIMEOUT_MS = 10_000;
11
12
  /**
12
13
  * A bunyan-compatible writable stream for sending logs over HTTP.
13
14
  */
@@ -120,6 +121,7 @@ class HttpLogStream extends stream_1.Writable {
120
121
  'Content-Type': 'application/x-ndjson',
121
122
  },
122
123
  body: logs.map(log => log.serialized).join('\n'),
124
+ signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS),
123
125
  });
124
126
  if (!response.ok) {
125
127
  const responseText = await (0, results_1.asyncResult)(response.text());
@@ -220,7 +220,7 @@ function createRealtimeLogStream(ctx, logger) {
220
220
  ? 'http://localhost:4999/logs/'
221
221
  : ctx.env.EXPO_STAGING
222
222
  ? 'https://staging-logs.expo.dev/logs/'
223
- : undefined;
223
+ : 'https://logs.expo.dev/logs/';
224
224
  const jobRunId = ctx.env.EAS_BUILD_ID;
225
225
  const robotAccessToken = ctx.job.secrets?.robotAccessToken;
226
226
  if (!baseUrl || !jobRunId || !robotAccessToken) {
@@ -1 +1 @@
1
- export declare const EasBuildConfigureVersionGradleTemplate = "// Build integration with EAS\n\nimport java.nio.file.Paths\n\ndef versionCodeVal = null\ndef versionNameVal = null\n<% if (VERSION_CODE) { %>\n versionCodeVal = \"<%- VERSION_CODE %>\"\n<% } %>\n<% if (VERSION_NAME) { %>\n versionNameVal = \"<%- VERSION_NAME %>\"\n<% } %>\n\nandroid {\n defaultConfig {\n if (versionCodeVal) {\n versionCode = Integer.parseInt(versionCodeVal)\n }\n if (versionNameVal) {\n versionName = versionNameVal\n }\n }\n applicationVariants.all { variant ->\n variant.outputs.each { output ->\n if (versionCodeVal) {\n output.versionCodeOverride = Integer.parseInt(versionCodeVal)\n }\n if (versionNameVal) {\n output.versionNameOverride = versionNameVal\n }\n }\n }\n}\n";
1
+ export declare const EasBuildConfigureVersionGradleTemplate = "// Build integration with EAS\n\nimport java.nio.file.Paths\n\ndef versionCodeVal = null\ndef versionNameVal = null\n<% if (VERSION_CODE) { %>\n versionCodeVal = \"<%- VERSION_CODE %>\"\n<% } %>\n<% if (VERSION_NAME) { %>\n versionNameVal = \"<%- VERSION_NAME %>\"\n<% } %>\n\nandroid {\n defaultConfig {\n if (versionCodeVal) {\n versionCode = Integer.parseInt(versionCodeVal)\n }\n if (versionNameVal) {\n versionName = versionNameVal\n }\n }\n}\n\n// AGP 9's new DSL removes the applicationVariants API, we set the version on each output through the androidComponents API instead.\ndef easAndroidExtension = project.extensions.getByName('android')\nif (easAndroidExtension.hasProperty('applicationVariants')) {\n easAndroidExtension.applicationVariants.all { variant ->\n variant.outputs.each { output ->\n if (versionCodeVal) {\n output.versionCodeOverride = Integer.parseInt(versionCodeVal)\n }\n if (versionNameVal) {\n output.versionNameOverride = versionNameVal\n }\n }\n }\n} else {\n def easAndroidComponents = project.extensions.getByName('androidComponents')\n easAndroidComponents.onVariants(easAndroidComponents.selector().all()) { variant ->\n variant.outputs.each { output ->\n if (versionCodeVal) {\n output.versionCode.set(Integer.parseInt(versionCodeVal))\n }\n if (versionNameVal) {\n output.versionName.set(versionNameVal)\n }\n }\n }\n}\n";
@@ -23,7 +23,12 @@ android {
23
23
  versionName = versionNameVal
24
24
  }
25
25
  }
26
- applicationVariants.all { variant ->
26
+ }
27
+
28
+ // AGP 9's new DSL removes the applicationVariants API, we set the version on each output through the androidComponents API instead.
29
+ def easAndroidExtension = project.extensions.getByName('android')
30
+ if (easAndroidExtension.hasProperty('applicationVariants')) {
31
+ easAndroidExtension.applicationVariants.all { variant ->
27
32
  variant.outputs.each { output ->
28
33
  if (versionCodeVal) {
29
34
  output.versionCodeOverride = Integer.parseInt(versionCodeVal)
@@ -33,5 +38,17 @@ android {
33
38
  }
34
39
  }
35
40
  }
41
+ } else {
42
+ def easAndroidComponents = project.extensions.getByName('androidComponents')
43
+ easAndroidComponents.onVariants(easAndroidComponents.selector().all()) { variant ->
44
+ variant.outputs.each { output ->
45
+ if (versionCodeVal) {
46
+ output.versionCode.set(Integer.parseInt(versionCodeVal))
47
+ }
48
+ if (versionNameVal) {
49
+ output.versionName.set(versionNameVal)
50
+ }
51
+ }
52
+ }
36
53
  }
37
54
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/build-tools",
3
- "version": "21.7.0",
3
+ "version": "21.7.1",
4
4
  "bugs": "https://github.com/expo/eas-cli/issues",
5
5
  "license": "BUSL-1.1",
6
6
  "author": "Expo <support@expo.io>",
@@ -46,7 +46,7 @@
46
46
  "@expo/plist": "^0.3.5",
47
47
  "@expo/results": "^1.0.0",
48
48
  "@expo/spawn-async": "1.7.2",
49
- "@expo/steps": "21.6.0",
49
+ "@expo/steps": "21.7.1",
50
50
  "@expo/template-file": "21.0.2",
51
51
  "@expo/turtle-spawn": "21.0.0",
52
52
  "@expo/xcpretty": "^4.3.1",
@@ -100,5 +100,5 @@
100
100
  "typescript": "^5.5.4",
101
101
  "uuid": "^9.0.1"
102
102
  },
103
- "gitHead": "f923181857de80919ec7ee9861c9b71c2ee5635d"
103
+ "gitHead": "60032049ec947177bbcacf8802c22e1d5f24845f"
104
104
  }