Skip to content

Add standalone Codename One Settings editor#5359

Open
shai-almog wants to merge 3 commits into
masterfrom
standalone-settings-editor
Open

Add standalone Codename One Settings editor#5359
shai-almog wants to merge 3 commits into
masterfrom
standalone-settings-editor

Conversation

@shai-almog

@shai-almog shai-almog commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add a standalone Java 17 Codename One Settings editor under scripts/settings
  • make cn1:settings resolve and launch com.codenameone:codenameone-settings from Maven instead of the legacy GUI Builder jar
  • add project settings, build-hint, extension install/uninstall, theme, desktop integration, and catalog compatibility handling
  • publish the editor with releases and keep its out-of-reactor versions aligned with the Maven plugin
  • update the developer guide to use mvn cn1:settings, document the replacement workflows, and replace legacy Control Center screenshots

Details

The existing cn1:settings goal launched the Settings UI embedded in guibuilder.jar. This introduces a separately versioned Maven artifact, binds it to the current CN1 project, and supplies a dedicated JavaSE launcher with native desktop identity, input, menu, icon, and About handling.

The Settings UI includes structured basic settings and build-hint editing, live/bundled extension browsing, Maven and legacy cn1lib install/uninstall, light/dark themes, focus/caret behavior, and compatibility warnings. Bundled compatibility metadata is retained when the live catalog refresh omits it, so outdated entries such as Admob Fullscreen Ads still warn before installation.

The release workflow deploys the Settings reactor to Maven Central after the core release. maven/update-version.sh updates the Settings parent/common/javase versions and CN1/plugin properties so release builds do not remain -SNAPSHOT and target the wrong repository.

The developer guide now treats Settings as a standalone Maven tool, directs signing to the Certificate Wizard and build monitoring to the website, and uses current Basic, Build Hints, and Extensions screenshots.

Validation

  • Java 17: mvn -Dmaven.repo.local=/tmp/cn1-local-repo -Pexecutable-jar -pl javase -am clean package -Dcodename1.platform=javase - 25 tests passed
  • Java 8: mvn -Dmaven.repo.local=/tmp/cn1-local-repo -pl codenameone-maven-plugin test - 215 tests passed, 1 skipped
  • Maven Central profile verified locally with GPG signing skipped
  • release version-bump logic exercised in an isolated fixture
  • desktop light/dark and focus/install/uninstall flows manually exercised
  • strict Asciidoctor build, Vale, paragraph capitalization, unused-image, and LanguageTool checks passed

@shai-almog

shai-almog commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator Author

Compared 144 screenshots: 144 matched.

Native Android coverage

  • 📊 Line coverage: 10.18% (10385/102057 lines covered) [HTML preview] (artifact android-coverage-report, jacocoAndroidReport/html/index.html)
    • Other counters: instruction 8.98% (50869/566696), branch 4.52% (2336/51664), complexity 4.50% (2454/54585), method 6.82% (1929/28292), class 10.87% (437/4021)
    • Lowest covered classes
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysKt – 0.00% (0/6327 lines covered)
      • kotlin.collections.unsigned.kotlin.collections.unsigned.UArraysKt___UArraysKt – 0.00% (0/2384 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.ClassReader – 0.00% (0/1519 lines covered)
      • kotlin.collections.kotlin.collections.CollectionsKt___CollectionsKt – 0.00% (0/1148 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.MethodWriter – 0.00% (0/923 lines covered)
      • kotlin.sequences.kotlin.sequences.SequencesKt___SequencesKt – 0.00% (0/730 lines covered)
      • com.google.common.cache.com.google.common.cache.LocalCache$Segment – 0.00% (0/726 lines covered)
      • kotlin.text.kotlin.text.StringsKt___StringsKt – 0.00% (0/623 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.Frame – 0.00% (0/564 lines covered)
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysJvmKt – 0.00% (0/495 lines covered)

✅ Native Android screenshot tests passed.

Native Android coverage

  • 📊 Line coverage: 10.18% (10385/102057 lines covered) [HTML preview] (artifact android-coverage-report, jacocoAndroidReport/html/index.html)
    • Other counters: instruction 8.98% (50869/566696), branch 4.52% (2336/51664), complexity 4.50% (2454/54585), method 6.82% (1929/28292), class 10.87% (437/4021)
    • Lowest covered classes
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysKt – 0.00% (0/6327 lines covered)
      • kotlin.collections.unsigned.kotlin.collections.unsigned.UArraysKt___UArraysKt – 0.00% (0/2384 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.ClassReader – 0.00% (0/1519 lines covered)
      • kotlin.collections.kotlin.collections.CollectionsKt___CollectionsKt – 0.00% (0/1148 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.MethodWriter – 0.00% (0/923 lines covered)
      • kotlin.sequences.kotlin.sequences.SequencesKt___SequencesKt – 0.00% (0/730 lines covered)
      • com.google.common.cache.com.google.common.cache.LocalCache$Segment – 0.00% (0/726 lines covered)
      • kotlin.text.kotlin.text.StringsKt___StringsKt – 0.00% (0/623 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.Frame – 0.00% (0/564 lines covered)
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysJvmKt – 0.00% (0/495 lines covered)

Benchmark Results

Detailed Performance Metrics

Metric Duration
SIMD kernel backend scalar fallback (no native SIMD)
SIMD int-add (64K x300) java 142ms / native 110ms = 1.2x speedup
SIMD float-mul (64K x300) java 193ms / native 139ms = 1.3x speedup
SIMD kernel correctness PASS (native result == scalar reference)
Base64 payload size 8192 bytes
Base64 benchmark iterations 6000
Base64 SIMD byte path gated to scalar (CPU autovectorizes scalar; explicit SIMD not beneficial here)
Base64 CN1 encode 174.000 ms
Base64 CN1 decode 274.000 ms
Base64 native encode 735.000 ms
Base64 encode ratio (CN1/native) 0.237x (76.3% faster)
Base64 native decode 813.000 ms
Base64 decode ratio (CN1/native) 0.337x (66.3% faster)
Image encode benchmark status skipped (SIMD unsupported)

@github-actions

github-actions Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

✅ Continuous Quality Report

Test & Coverage

Static Analysis

  • SpotBugs [Report archive]
    • ByteCodeTranslator: 0 findings (no issues)
    • android: 0 findings (no issues)
    • codenameone-maven-plugin: 0 findings (no issues)
    • core-unittests: 0 findings (no issues)
    • ios: 0 findings (no issues)
  • PMD: 0 findings (no issues) [Report archive]
  • Checkstyle: 0 findings (no issues) [Report archive]

Generated automatically by the PR CI workflow.

@shai-almog

shai-almog commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator Author

JavaScript port screenshot updates

Compared 135 screenshots: 120 matched, 15 updated.

  • AppReviewDialog — updated screenshot. Screenshot differs (375x667 px, bit depth 8).

    AppReviewDialog
    Preview info: JPEG preview quality 70; JPEG preview quality 70.
    Full-resolution PNG saved as AppReviewDialog.png in workflow artifacts.

  • ButtonTheme_dark — updated screenshot. Screenshot differs (375x667 px, bit depth 8).

    ButtonTheme_dark
    Preview info: JPEG preview quality 70; JPEG preview quality 70.
    Full-resolution PNG saved as ButtonTheme_dark.png in workflow artifacts.

  • ButtonTheme_light — updated screenshot. Screenshot differs (375x667 px, bit depth 8).

    ButtonTheme_light
    Preview info: JPEG preview quality 70; JPEG preview quality 70.
    Full-resolution PNG saved as ButtonTheme_light.png in workflow artifacts.

  • ChatView_dark — updated screenshot. Screenshot differs (375x667 px, bit depth 8).

    ChatView_dark
    Preview info: JPEG preview quality 70; JPEG preview quality 70.
    Full-resolution PNG saved as ChatView_dark.png in workflow artifacts.

  • ChatView_light — updated screenshot. Screenshot differs (375x667 px, bit depth 8).

    ChatView_light
    Preview info: JPEG preview quality 70; JPEG preview quality 70.
    Full-resolution PNG saved as ChatView_light.png in workflow artifacts.

  • DialogTheme_dark — updated screenshot. Screenshot differs (375x667 px, bit depth 8).

    DialogTheme_dark
    Preview info: JPEG preview quality 70; JPEG preview quality 70.
    Full-resolution PNG saved as DialogTheme_dark.png in workflow artifacts.

  • DialogTheme_light — updated screenshot. Screenshot differs (375x667 px, bit depth 8).

    DialogTheme_light
    Preview info: JPEG preview quality 70; JPEG preview quality 70.
    Full-resolution PNG saved as DialogTheme_light.png in workflow artifacts.

  • ShowcaseTheme_dark — updated screenshot. Screenshot differs (375x667 px, bit depth 8).

    ShowcaseTheme_dark
    Preview info: JPEG preview quality 70; JPEG preview quality 70.
    Full-resolution PNG saved as ShowcaseTheme_dark.png in workflow artifacts.

  • ShowcaseTheme_light — updated screenshot. Screenshot differs (375x667 px, bit depth 8).

    ShowcaseTheme_light
    Preview info: JPEG preview quality 70; JPEG preview quality 70.
    Full-resolution PNG saved as ShowcaseTheme_light.png in workflow artifacts.

  • SpanLabelTheme_dark — updated screenshot. Screenshot differs (375x667 px, bit depth 8).

    SpanLabelTheme_dark
    Preview info: JPEG preview quality 70; JPEG preview quality 70.
    Full-resolution PNG saved as SpanLabelTheme_dark.png in workflow artifacts.

  • SpanLabelTheme_light — updated screenshot. Screenshot differs (375x667 px, bit depth 8).

    SpanLabelTheme_light
    Preview info: JPEG preview quality 70; JPEG preview quality 70.
    Full-resolution PNG saved as SpanLabelTheme_light.png in workflow artifacts.

  • SwitchTheme_dark — updated screenshot. Screenshot differs (375x667 px, bit depth 8).

    SwitchTheme_dark
    Preview info: JPEG preview quality 70; JPEG preview quality 70.
    Full-resolution PNG saved as SwitchTheme_dark.png in workflow artifacts.

  • SwitchTheme_light — updated screenshot. Screenshot differs (375x667 px, bit depth 8).

    SwitchTheme_light
    Preview info: JPEG preview quality 70; JPEG preview quality 70.
    Full-resolution PNG saved as SwitchTheme_light.png in workflow artifacts.

  • TextFieldTheme_dark — updated screenshot. Screenshot differs (375x667 px, bit depth 8).

    TextFieldTheme_dark
    Preview info: JPEG preview quality 70; JPEG preview quality 70.
    Full-resolution PNG saved as TextFieldTheme_dark.png in workflow artifacts.

  • TextFieldTheme_light — updated screenshot. Screenshot differs (375x667 px, bit depth 8).

    TextFieldTheme_light
    Preview info: JPEG preview quality 70; JPEG preview quality 70.
    Full-resolution PNG saved as TextFieldTheme_light.png in workflow artifacts.

@shai-almog

shai-almog commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator Author

Apple Watch (watchOS / Core Graphics)

Compared 216 screenshots: 215 matched, 1 updated.

  • ToastBarTopPosition — updated screenshot. Screenshot differs (416x496 px, bit depth 8).

    ToastBarTopPosition
    Preview info: JPEG preview quality 70; JPEG preview quality 70.
    Full-resolution PNG saved as ToastBarTopPosition.png in workflow artifacts.

@shai-almog

shai-almog commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator Author

Compared 142 screenshots: 142 matched.
✅ Native Mac screenshot tests passed.

Benchmark Results

  • VM Translation Time: 0 seconds
  • Compilation Time: 249 seconds

Detailed Performance Metrics

Metric Duration
SIMD kernel backend SSE2 (x64) / NEON (arm64) native kernels
SIMD int-add (64K x300) java 60ms / native 3ms = 20.0x speedup
SIMD float-mul (64K x300) java 59ms / native 2ms = 29.5x speedup
SIMD kernel correctness PASS (native result == scalar reference)
Base64 payload size 8192 bytes
Base64 benchmark iterations 6000
Base64 SIMD byte path active (NEON-accelerated)
Base64 CN1 encode 201.000 ms
Base64 CN1 decode 133.000 ms
Base64 native encode 1144.000 ms
Base64 encode ratio (CN1/native) 0.176x (82.4% faster)
Base64 native decode 590.000 ms
Base64 decode ratio (CN1/native) 0.225x (77.5% faster)
Base64 SIMD encode 52.000 ms
Base64 encode ratio (SIMD/CN1) 0.259x (74.1% faster)
Base64 SIMD decode 53.000 ms
Base64 decode ratio (SIMD/CN1) 0.398x (60.2% faster)
Base64 encode ratio (SIMD/native) 0.045x (95.5% faster)
Base64 decode ratio (SIMD/native) 0.090x (91.0% faster)
Image encode benchmark iterations 100
Image createMask (SIMD off) 12.000 ms
Image createMask (SIMD on) 2.000 ms
Image createMask ratio (SIMD on/off) 0.167x (83.3% faster)
Image applyMask (SIMD off) 77.000 ms
Image applyMask (SIMD on) 169.000 ms
Image applyMask ratio (SIMD on/off) 2.195x (119.5% slower)
Image modifyAlpha (SIMD off) 183.000 ms
Image modifyAlpha (SIMD on) 149.000 ms
Image modifyAlpha ratio (SIMD on/off) 0.814x (18.6% faster)
Image modifyAlpha removeColor (SIMD off) 197.000 ms
Image modifyAlpha removeColor (SIMD on) 204.000 ms
Image modifyAlpha removeColor ratio (SIMD on/off) 1.036x (3.6% slower)

@shai-almog

shai-almog commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator Author

Compared 139 screenshots: 139 matched.
✅ Native Apple TV (tvOS, Metal) screenshot tests passed.

@shai-almog

shai-almog commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator Author

Compared 143 screenshots: 143 matched.
✅ Native iOS Metal screenshot tests passed.

Benchmark Results

  • VM Translation Time: 0 seconds
  • Compilation Time: 265 seconds

Build and Run Timing

Metric Duration
Simulator Boot 64000 ms
Simulator Boot (Run) 0 ms
App Install 12000 ms
App Launch 3000 ms
Test Execution 349000 ms

Detailed Performance Metrics

Metric Duration
SIMD kernel backend SSE2 (x64) / NEON (arm64) native kernels
SIMD int-add (64K x300) java 55ms / native 3ms = 18.3x speedup
SIMD float-mul (64K x300) java 56ms / native 3ms = 18.6x speedup
SIMD kernel correctness PASS (native result == scalar reference)
Base64 payload size 8192 bytes
Base64 benchmark iterations 6000
Base64 SIMD byte path active (NEON-accelerated)
Base64 CN1 encode 159.000 ms
Base64 CN1 decode 123.000 ms
Base64 native encode 653.000 ms
Base64 encode ratio (CN1/native) 0.243x (75.7% faster)
Base64 native decode 273.000 ms
Base64 decode ratio (CN1/native) 0.451x (54.9% faster)
Base64 SIMD encode 49.000 ms
Base64 encode ratio (SIMD/CN1) 0.308x (69.2% faster)
Base64 SIMD decode 46.000 ms
Base64 decode ratio (SIMD/CN1) 0.374x (62.6% faster)
Base64 encode ratio (SIMD/native) 0.075x (92.5% faster)
Base64 decode ratio (SIMD/native) 0.168x (83.2% faster)
Image encode benchmark iterations 100
Image createMask (SIMD off) 14.000 ms
Image createMask (SIMD on) 82.000 ms
Image createMask ratio (SIMD on/off) 5.857x (485.7% slower)
Image applyMask (SIMD off) 257.000 ms
Image applyMask (SIMD on) 184.000 ms
Image applyMask ratio (SIMD on/off) 0.716x (28.4% faster)
Image modifyAlpha (SIMD off) 227.000 ms
Image modifyAlpha (SIMD on) 160.000 ms
Image modifyAlpha ratio (SIMD on/off) 0.705x (29.5% faster)
Image modifyAlpha removeColor (SIMD off) 277.000 ms
Image modifyAlpha removeColor (SIMD on) 182.000 ms
Image modifyAlpha removeColor ratio (SIMD on/off) 0.657x (34.3% faster)

@shai-almog

shai-almog commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator Author

Compared 137 screenshots: 137 matched.
✅ Native iOS screenshot tests passed.

Benchmark Results

  • VM Translation Time: 0 seconds
  • Compilation Time: 357 seconds

Build and Run Timing

Metric Duration
Simulator Boot 84000 ms
Simulator Boot (Run) 2000 ms
App Install 15000 ms
App Launch 7000 ms
Test Execution 491000 ms

Detailed Performance Metrics

Metric Duration
SIMD kernel backend SSE2 (x64) / NEON (arm64) native kernels
SIMD int-add (64K x300) java 70ms / native 9ms = 7.7x speedup
SIMD float-mul (64K x300) java 67ms / native 3ms = 22.3x speedup
SIMD kernel correctness PASS (native result == scalar reference)
Base64 payload size 8192 bytes
Base64 benchmark iterations 6000
Base64 SIMD byte path active (NEON-accelerated)
Base64 CN1 encode 300.000 ms
Base64 CN1 decode 218.000 ms
Base64 native encode 871.000 ms
Base64 encode ratio (CN1/native) 0.344x (65.6% faster)
Base64 native decode 445.000 ms
Base64 decode ratio (CN1/native) 0.490x (51.0% faster)
Base64 SIMD encode 86.000 ms
Base64 encode ratio (SIMD/CN1) 0.287x (71.3% faster)
Base64 SIMD decode 182.000 ms
Base64 decode ratio (SIMD/CN1) 0.835x (16.5% faster)
Base64 encode ratio (SIMD/native) 0.099x (90.1% faster)
Base64 decode ratio (SIMD/native) 0.409x (59.1% faster)
Image encode benchmark iterations 100
Image createMask (SIMD off) 8.000 ms
Image createMask (SIMD on) 2.000 ms
Image createMask ratio (SIMD on/off) 0.250x (75.0% faster)
Image applyMask (SIMD off) 62.000 ms
Image applyMask (SIMD on) 287.000 ms
Image applyMask ratio (SIMD on/off) 4.629x (362.9% slower)
Image modifyAlpha (SIMD off) 155.000 ms
Image modifyAlpha (SIMD on) 159.000 ms
Image modifyAlpha ratio (SIMD on/off) 1.026x (2.6% slower)
Image modifyAlpha removeColor (SIMD off) 166.000 ms
Image modifyAlpha removeColor (SIMD on) 437.000 ms
Image modifyAlpha removeColor ratio (SIMD on/off) 2.633x (163.3% slower)

@github-actions

Copy link
Copy Markdown
Contributor

Cloudflare Preview

@shai-almog shai-almog force-pushed the standalone-settings-editor branch from 4058983 to 781c897 Compare July 11, 2026 11:49
@github-actions

Copy link
Copy Markdown
Contributor

Developer Guide build artifacts are available for download from this workflow run:

Developer Guide quality checks:

  • AsciiDoc linter: No issues found (report)
  • Vale: No alerts found (report)
  • Paragraph capitalization: No paragraph capitalization issues (report)
  • LanguageTool: No grammar matches (report)
  • Image references: No unused images detected (report)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant