Skip to content

Commit efcd78e

Browse files
authored
Merge branch 'codenameone:master' into master
2 parents 6970f3f + a3b8bea commit efcd78e

1,913 files changed

Lines changed: 200278 additions & 102010 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.all-contributorsrc

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,51 @@
364364
"contributions": [
365365
"code"
366366
]
367+
},
368+
{
369+
"login": "ImmediandoSrl",
370+
"name": "ImmediandoSrl",
371+
"avatar_url": "https://avatars.githubusercontent.com/u/172423330?v=4",
372+
"profile": "https://github.com/ImmediandoSrl",
373+
"contributions": [
374+
"code"
375+
]
376+
},
377+
{
378+
"login": "davideprimasc",
379+
"name": "davideprimasc",
380+
"avatar_url": "https://avatars.githubusercontent.com/u/159039808?v=4",
381+
"profile": "https://github.com/davideprimasc",
382+
"contributions": [
383+
"code"
384+
]
385+
},
386+
{
387+
"login": "DB107",
388+
"name": "DB107",
389+
"avatar_url": "https://avatars.githubusercontent.com/u/154587979?v=4",
390+
"profile": "https://github.com/DB107",
391+
"contributions": [
392+
"code"
393+
]
394+
},
395+
{
396+
"login": "eltociear",
397+
"name": "Ikko Eltociear Ashimine",
398+
"avatar_url": "https://avatars.githubusercontent.com/u/22633385?v=4",
399+
"profile": "https://speakerdeck.com/eltociear",
400+
"contributions": [
401+
"doc"
402+
]
403+
},
404+
{
405+
"login": "SamC1832js",
406+
"name": "Sam C",
407+
"avatar_url": "https://avatars.githubusercontent.com/u/79888848?v=4",
408+
"profile": "https://github.com/SamC1832js",
409+
"contributions": [
410+
"code"
411+
]
367412
}
368413
],
369414
"contributorsPerLine": 7,
@@ -372,5 +417,6 @@
372417
"repoType": "github",
373418
"repoHost": "https://github.com",
374419
"skipCi": true,
375-
"commitConvention": "angular"
420+
"commitConvention": "angular",
421+
"commitType": "docs"
376422
}

.brokk/project.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#Brokk project configuration
2+
#Sun Oct 05 07:20:55 PDT 2025
3+
dataRetentionPolicy=MINIMAL
4+
issuesProviderJson={"type"\:"GITHUB","config"\:{"kind"\:"github","owner"\:"","repo"\:"","host"\:""}}

.brokk/review.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
When reviewing the pull request, please address the following points:
2+
- Explain your understanding of what this PR is intended to do.
3+
- Does it accomplish its goals in the simplest way possible?
4+
- Does it conform to the project coding standards?
5+
- What parts are the trickiest and how could they be simplified?
6+
- What additional tests, if any, would add the most value?
7+
8+
Conclude with a summary of:
9+
- Blockers (serious functional or design issues)
10+
- Additional areas for improvement, ordered by priority

.brokk/style.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Style Guide
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
5+
PROJECT_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
6+
BASELINE_DIR="${BASELINE_DIR:-${PROJECT_ROOT}/docs/developer-guide/img}"
7+
STORAGE_DIR="${CN1_STORAGE_DIR:-${HOME}/.cn1}"
8+
ARTIFACT_DIR="${1:-${PROJECT_ROOT}/docs/demos/animation-screenshot-artifacts}"
9+
10+
if ! command -v compare >/dev/null 2>&1; then
11+
echo "ImageMagick 'compare' command is required." >&2
12+
exit 2
13+
fi
14+
15+
mkdir -p "${ARTIFACT_DIR}"
16+
find "${ARTIFACT_DIR}" -mindepth 1 -delete
17+
18+
if [[ ! -d "${STORAGE_DIR}" ]]; then
19+
echo "Storage directory ${STORAGE_DIR} does not exist; nothing to compare."
20+
exit 0
21+
fi
22+
23+
shopt -s nullglob
24+
mapfile -d '' SCREENSHOTS < <(find "${STORAGE_DIR}" -type f -name '*.png' -print0)
25+
shopt -u nullglob
26+
27+
if [[ ${#SCREENSHOTS[@]} -eq 0 ]]; then
28+
echo "No screenshots found under ${STORAGE_DIR}; nothing to compare."
29+
exit 0
30+
fi
31+
32+
mismatch_count=0
33+
34+
for screenshot in "${SCREENSHOTS[@]}"; do
35+
filename="$(basename "${screenshot}")"
36+
base="${filename%.png}"
37+
38+
baseline=""
39+
baseline_ext=""
40+
for ext in png PNG jpg JPG jpeg JPEG; do
41+
candidate="${BASELINE_DIR}/${base}.${ext}"
42+
if [[ -f "${candidate}" ]]; then
43+
baseline="${candidate}"
44+
baseline_ext="${ext}"
45+
break
46+
fi
47+
done
48+
49+
if [[ -z "${baseline}" ]]; then
50+
echo "No baseline found for ${filename}; treating as mismatch." >&2
51+
mismatch_count=$((mismatch_count + 1))
52+
cp "${screenshot}" "${ARTIFACT_DIR}/${filename}"
53+
rm -f "${screenshot}"
54+
continue
55+
fi
56+
57+
metric_file="$(mktemp)"
58+
diff_image="${ARTIFACT_DIR}/${base}.diff.png"
59+
60+
set +e
61+
compare -metric AE "${screenshot}" "${baseline}" "${diff_image}" 2>"${metric_file}"
62+
status=$?
63+
set -e
64+
65+
if [[ ${status} -eq 0 ]]; then
66+
rm -f "${screenshot}" "${diff_image}" "${metric_file}"
67+
echo "${filename} matches baseline; capture discarded."
68+
continue
69+
fi
70+
71+
if [[ ${status} -ne 1 ]]; then
72+
cat "${metric_file}" >&2
73+
rm -f "${metric_file}" "${diff_image}"
74+
echo "ImageMagick comparison failed for ${filename}." >&2
75+
exit ${status}
76+
fi
77+
78+
mismatch_count=$((mismatch_count + 1))
79+
metric_value="$(cat "${metric_file}")"
80+
rm -f "${metric_file}"
81+
82+
cp "${screenshot}" "${ARTIFACT_DIR}/${filename}"
83+
cp "${baseline}" "${ARTIFACT_DIR}/${base}.baseline.${baseline_ext}"
84+
echo "${metric_value}" > "${ARTIFACT_DIR}/${base}.metric.txt"
85+
rm -f "${screenshot}"
86+
echo "${filename} differs from baseline; artifacts stored in ${ARTIFACT_DIR}." >&2
87+
done
88+
89+
if [[ ${mismatch_count} -eq 0 ]]; then
90+
echo "All screenshots match their baselines."
91+
exit 0
92+
fi
93+
94+
echo "${mismatch_count} screenshot(s) differ from the documented baseline." >&2
95+
exit 1

0 commit comments

Comments
 (0)