Skip to content

Commit e90aaa7

Browse files
committed
Update to Glean v66.0.1
1 parent bdb1bb2 commit e90aaa7

File tree

8 files changed

+55
-22
lines changed

8 files changed

+55
-22
lines changed

MozillaRustComponents/Package.resolved

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

MozillaRustComponents/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ let package = Package(
1717
.library(name: "FocusRustComponents", targets: ["FocusAppServices"]),
1818
],
1919
dependencies: [
20-
.package(url: "https://github.com/mozilla/glean-swift", from: "65.1.1"),
20+
.package(url: "https://github.com/mozilla/glean-swift", from: "66.0.1"),
2121
],
2222
targets: [
2323
// A wrapper around our binary target that combines + any swift files we want to expose to the user

firefox-ios/Client.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30424,7 +30424,7 @@
3042430424
repositoryURL = "https://github.com/mozilla/glean-swift";
3042530425
requirement = {
3042630426
kind = exactVersion;
30427-
version = 65.1.1;
30427+
version = 66.0.1;
3042830428
};
3042930429
};
3043030430
4368F83B279669690013419B /* XCRemoteSwiftPackageReference "SnapKit" */ = {

firefox-ios/Client.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

firefox-ios/bin/sdk_generator.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
set -e
2727

28-
GLEAN_PARSER_VERSION=17.1
28+
GLEAN_PARSER_VERSION=18.0
2929

3030
# CMDNAME is used in the usage text below.
3131
# shellcheck disable=SC2034
@@ -190,6 +190,8 @@ VENVDIR="${SOURCE_ROOT}/.venv"
190190
| sed 's/^\(.\)/warning: \1/' \
191191
| sed '/Your metrics are Glean/s/^warning: //'
192192

193+
# Any of the below variables might be empty, so by not quoting them we ensure they are just left out as arguments
194+
# shellcheck disable=SC2086
193195
PARSER_OUTPUT=$("${VENVDIR}"/bin/python -m glean_parser \
194196
translate \
195197
-f "swift" \

focus-ios/Blockzilla.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7321,7 +7321,7 @@
73217321
repositoryURL = "https://github.com/mozilla/glean-swift";
73227322
requirement = {
73237323
kind = upToNextMajorVersion;
7324-
minimumVersion = 65.0.2;
7324+
minimumVersion = 66.0.1;
73257325
};
73267326
};
73277327
F8324C2D264C807C007E4BFA /* XCRemoteSwiftPackageReference "SnapKit" */ = {

focus-ios/Blockzilla.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 11 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

focus-ios/bin/sdk_generator.sh

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
# 4. Add your definition files (`metrics.yaml`, `pings.yaml`, `tags.yaml`) as Input Files for the "Run Script" step.
2121
# 5. Run the build.
2222
# 6. Add the files in the `Generated` folder to your project.
23-
# 7. Add the same files from the `Generated` folder as Output Files of the newly created "Run SCript" step.
23+
# 7. Add the same files from the `Generated` folder as Output Files of the newly created "Run Script" step.
2424
# 8. Start using the generated metrics.
2525

2626
set -e
2727

28-
GLEAN_PARSER_VERSION=17.1
28+
GLEAN_PARSER_VERSION=18.0
2929

3030
# CMDNAME is used in the usage text below.
3131
# shellcheck disable=SC2034
@@ -122,23 +122,43 @@ while (( "$#" )); do
122122
done
123123

124124
if [ "$ACTION" = "indexbuild" ]; then
125-
echo "Skipping code generation in 'indexbuild' build. See https://bugzilla.mozilla.org/show_bug.cgi?id=1744504 for more info."
126-
exit 0
125+
echo "Skipping code generation in 'indexbuild' build. See https://bugzilla.mozilla.org/show_bug.cgi?id=1744504 for more info."
126+
exit 0
127127
fi
128128

129129
if [ "${#PARAMS[@]}" -gt 0 ]; then
130130
YAML_FILES=("${PARAMS[@]}")
131131
else
132-
if [ -z "$SCRIPT_INPUT_FILE_COUNT" ] || [ "$SCRIPT_INPUT_FILE_COUNT" -eq 0 ]; then
132+
# Check if at least one input file and/or one input file list has been specified
133+
if [[ (-z "$SCRIPT_INPUT_FILE_COUNT" || "$SCRIPT_INPUT_FILE_COUNT" -eq 0) && (-z "$SCRIPT_INPUT_FILE_LIST_COUNT" || "$SCRIPT_INPUT_FILE_LIST_COUNT" -eq 0) ]]; then
133134
echo "warning: No input files specified."
134135
exit 0
135136
fi
136137

137-
for i in $(seq 0 $((SCRIPT_INPUT_FILE_COUNT - 1))); do
138-
infilevar="SCRIPT_INPUT_FILE_${i}"
139-
infile="${!infilevar}"
140-
YAML_FILES+=("${infile}")
141-
done
138+
if [ "$SCRIPT_INPUT_FILE_COUNT" -gt 0 ]; then
139+
echo "Processing $SCRIPT_INPUT_FILE_COUNT single file inputs..."
140+
# Append the content of single input files
141+
for i in $(seq 0 $((SCRIPT_INPUT_FILE_COUNT - 1))); do
142+
infilevar="SCRIPT_INPUT_FILE_${i}"
143+
infile="${!infilevar}"
144+
YAML_FILES+=("${infile}")
145+
done
146+
fi
147+
148+
if [ "$SCRIPT_INPUT_FILE_LIST_COUNT" -gt 0 ]; then
149+
echo "Processing $SCRIPT_INPUT_FILE_LIST_COUNT file lists..."
150+
# Append the content of any file lists (lists of file paths)
151+
for i in $(seq 0 $((SCRIPT_INPUT_FILE_LIST_COUNT - 1))); do
152+
infilevar="SCRIPT_INPUT_FILE_LIST_${i}"
153+
infile="${!infilevar}"
154+
155+
while read -r line; do
156+
YAML_FILES+=("${line}")
157+
done <"$infile"
158+
done
159+
fi
160+
161+
echo "Discovered YAML input files: ${YAML_FILES[*]}"
142162
fi
143163

144164
if [ -z "$SOURCE_ROOT" ]; then
@@ -170,6 +190,8 @@ VENVDIR="${SOURCE_ROOT}/.venv"
170190
| sed 's/^\(.\)/warning: \1/' \
171191
| sed '/Your metrics are Glean/s/^warning: //'
172192

193+
# Any of the below variables might be empty, so by not quoting them we ensure they are just left out as arguments
194+
# shellcheck disable=SC2086
173195
PARSER_OUTPUT=$("${VENVDIR}"/bin/python -m glean_parser \
174196
translate \
175197
-f "swift" \

0 commit comments

Comments
 (0)