Skip to content

Add standalone certificate wizard#5339

Merged
liannacasper merged 1 commit into
masterfrom
certificate-wizard
Jul 6, 2026
Merged

Add standalone certificate wizard#5339
liannacasper merged 1 commit into
masterfrom
certificate-wizard

Conversation

@shai-almog

Copy link
Copy Markdown
Collaborator

Summary

  • add the standalone Codename One certificate wizard app under scripts/certificatewizard with OpenAPI-backed iOS signing APIs, dark mode, auto setup, project installation, desktop identity handling, and tests
  • wire the wizard into the Maven plugin as cn1:certificatewizard, including JWT reuse, background/foreground launching, and named desktop process launchers for macOS/Linux/Windows
  • add REST/OpenAPI error handling, file chooser support plumbing, pinch/font-size desktop fixes, docs, screenshots, and Maven Central release wiring

Validation

  • mvn -Pjavase -Dcodename1.platform=javase -pl common,javase -am test
  • mvn -Pexecutable-jar -Dcodename1.platform=javase -DskipTests package install
  • mvn -pl codenameone-maven-plugin -Dtest=OpenCertificateWizardMojoTest test -Dmaven.javadoc.skip=true
  • mvn -pl codenameone-maven-plugin install -DskipTests -Dmaven.javadoc.skip=true -Dspotbugs.skip=true -Dpmd.skip=true -Dcheckstyle.skip=true
  • launched cn1:certificatewizard from scripts/hellocodenameone and verified macOS reports the process name as Certificate Wizard

@github-actions

github-actions Bot commented Jul 5, 2026

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)

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Cloudflare Preview

@shai-almog

shai-almog commented Jul 5, 2026

Copy link
Copy Markdown
Collaborator Author

Compared 133 screenshots: 133 matched.
✅ JavaScript-port screenshot tests passed.

@shai-almog

shai-almog commented Jul 5, 2026

Copy link
Copy Markdown
Collaborator Author

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

Benchmark Results

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

Build and Run Timing

Metric Duration
Simulator Boot 94000 ms
Simulator Boot (Run) 1000 ms
App Install 14000 ms
App Launch 3000 ms
Test Execution 355000 ms

Detailed Performance Metrics

Metric Duration
SIMD kernel backend SSE2 (x64) / NEON (arm64) native kernels
SIMD int-add (64K x300) java 61ms / native 3ms = 20.3x speedup
SIMD float-mul (64K x300) java 64ms / native 3ms = 21.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 459.000 ms
Base64 CN1 decode 301.000 ms
Base64 native encode 714.000 ms
Base64 encode ratio (CN1/native) 0.643x (35.7% faster)
Base64 native decode 268.000 ms
Base64 decode ratio (CN1/native) 1.123x (12.3% slower)
Base64 SIMD encode 68.000 ms
Base64 encode ratio (SIMD/CN1) 0.148x (85.2% faster)
Base64 SIMD decode 47.000 ms
Base64 decode ratio (SIMD/CN1) 0.156x (84.4% faster)
Base64 encode ratio (SIMD/native) 0.095x (90.5% faster)
Base64 decode ratio (SIMD/native) 0.175x (82.5% faster)
Image encode benchmark iterations 100
Image createMask (SIMD off) 19.000 ms
Image createMask (SIMD on) 2.000 ms
Image createMask ratio (SIMD on/off) 0.105x (89.5% faster)
Image applyMask (SIMD off) 54.000 ms
Image applyMask (SIMD on) 36.000 ms
Image applyMask ratio (SIMD on/off) 0.667x (33.3% faster)
Image modifyAlpha (SIMD off) 53.000 ms
Image modifyAlpha (SIMD on) 29.000 ms
Image modifyAlpha ratio (SIMD on/off) 0.547x (45.3% faster)
Image modifyAlpha removeColor (SIMD off) 53.000 ms
Image modifyAlpha removeColor (SIMD on) 29.000 ms
Image modifyAlpha removeColor ratio (SIMD on/off) 0.547x (45.3% faster)

@shai-almog

shai-almog commented Jul 5, 2026

Copy link
Copy Markdown
Collaborator Author

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

@shai-almog

shai-almog commented Jul 5, 2026

Copy link
Copy Markdown
Collaborator Author

Compared 216 screenshots: 216 matched.
✅ Native Apple Watch (watchOS, Core Graphics) screenshot tests passed.

@shai-almog

shai-almog commented Jul 5, 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: 284 seconds

Build and Run Timing

Metric Duration
Simulator Boot 68000 ms
Simulator Boot (Run) 0 ms
App Install 11000 ms
App Launch 4000 ms
Test Execution 445000 ms

Detailed Performance Metrics

Metric Duration
SIMD kernel backend SSE2 (x64) / NEON (arm64) native kernels
SIMD int-add (64K x300) java 121ms / native 3ms = 40.3x speedup
SIMD float-mul (64K x300) java 178ms / native 4ms = 44.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 574.000 ms
Base64 CN1 decode 531.000 ms
Base64 native encode 2233.000 ms
Base64 encode ratio (CN1/native) 0.257x (74.3% faster)
Base64 native decode 1116.000 ms
Base64 decode ratio (CN1/native) 0.476x (52.4% faster)
Base64 SIMD encode 120.000 ms
Base64 encode ratio (SIMD/CN1) 0.209x (79.1% faster)
Base64 SIMD decode 172.000 ms
Base64 decode ratio (SIMD/CN1) 0.324x (67.6% faster)
Base64 encode ratio (SIMD/native) 0.054x (94.6% faster)
Base64 decode ratio (SIMD/native) 0.154x (84.6% faster)
Image encode benchmark iterations 100
Image createMask (SIMD off) 79.000 ms
Image createMask (SIMD on) 125.000 ms
Image createMask ratio (SIMD on/off) 1.582x (58.2% slower)
Image applyMask (SIMD off) 526.000 ms
Image applyMask (SIMD on) 236.000 ms
Image applyMask ratio (SIMD on/off) 0.449x (55.1% faster)
Image modifyAlpha (SIMD off) 238.000 ms
Image modifyAlpha (SIMD on) 254.000 ms
Image modifyAlpha ratio (SIMD on/off) 1.067x (6.7% slower)
Image modifyAlpha removeColor (SIMD off) 380.000 ms
Image modifyAlpha removeColor (SIMD on) 359.000 ms
Image modifyAlpha removeColor ratio (SIMD on/off) 0.945x (5.5% faster)

@shai-almog

shai-almog commented Jul 5, 2026

Copy link
Copy Markdown
Collaborator Author

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

Benchmark Results

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

Detailed Performance Metrics

Metric Duration
SIMD kernel backend SSE2 (x64) / NEON (arm64) native kernels
SIMD int-add (64K x300) java 58ms / native 11ms = 5.2x speedup
SIMD float-mul (64K x300) java 55ms / native 3ms = 18.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 304.000 ms
Base64 CN1 decode 230.000 ms
Base64 native encode 757.000 ms
Base64 encode ratio (CN1/native) 0.402x (59.8% faster)
Base64 native decode 280.000 ms
Base64 decode ratio (CN1/native) 0.821x (17.9% faster)
Base64 SIMD encode 65.000 ms
Base64 encode ratio (SIMD/CN1) 0.214x (78.6% faster)
Base64 SIMD decode 55.000 ms
Base64 decode ratio (SIMD/CN1) 0.239x (76.1% faster)
Base64 encode ratio (SIMD/native) 0.086x (91.4% faster)
Base64 decode ratio (SIMD/native) 0.196x (80.4% faster)
Image encode benchmark iterations 100
Image createMask (SIMD off) 20.000 ms
Image createMask (SIMD on) 4.000 ms
Image createMask ratio (SIMD on/off) 0.200x (80.0% faster)
Image applyMask (SIMD off) 124.000 ms
Image applyMask (SIMD on) 55.000 ms
Image applyMask ratio (SIMD on/off) 0.444x (55.6% faster)
Image modifyAlpha (SIMD off) 742.000 ms
Image modifyAlpha (SIMD on) 1181.000 ms
Image modifyAlpha ratio (SIMD on/off) 1.592x (59.2% slower)
Image modifyAlpha removeColor (SIMD off) 520.000 ms
Image modifyAlpha removeColor (SIMD on) 67.000 ms
Image modifyAlpha removeColor ratio (SIMD on/off) 0.129x (87.1% faster)

@shai-almog

shai-almog commented Jul 5, 2026

Copy link
Copy Markdown
Collaborator Author

Compared 11 screenshots: 11 matched.
✅ JavaSE simulator integration screenshots matched stored baselines.

@shai-almog

shai-almog commented Jul 5, 2026

Copy link
Copy Markdown
Collaborator Author

Compared 142 screenshots: 142 matched.

Native Android coverage

  • 📊 Line coverage: 9.95% (10034/100849 lines covered) [HTML preview] (artifact android-coverage-report, jacocoAndroidReport/html/index.html)
    • Other counters: instruction 8.79% (49343/561477), branch 4.34% (2218/51128), complexity 4.37% (2368/54176), method 6.63% (1867/28151), class 10.63% (425/3999)
    • 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: 9.95% (10034/100849 lines covered) [HTML preview] (artifact android-coverage-report, jacocoAndroidReport/html/index.html)
    • Other counters: instruction 8.79% (49343/561477), branch 4.34% (2218/51128), complexity 4.37% (2368/54176), method 6.63% (1867/28151), class 10.63% (425/3999)
    • 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 152ms / native 144ms = 1.0x speedup
SIMD float-mul (64K x300) java 190ms / native 177ms = 1.0x 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 224.000 ms
Base64 CN1 decode 321.000 ms
Base64 native encode 856.000 ms
Base64 encode ratio (CN1/native) 0.262x (73.8% faster)
Base64 native decode 1005.000 ms
Base64 decode ratio (CN1/native) 0.319x (68.1% faster)
Image encode benchmark status skipped (SIMD unsupported)

@github-actions

github-actions Bot commented Jul 5, 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 force-pushed the certificate-wizard branch 11 times, most recently from 013f599 to ac7a31b Compare July 6, 2026 05:46
@shai-almog shai-almog force-pushed the certificate-wizard branch from ac7a31b to 550dfa8 Compare July 6, 2026 06:28
@liannacasper liannacasper merged commit 017bb71 into master Jul 6, 2026
48 checks passed
@liannacasper liannacasper deleted the certificate-wizard branch July 6, 2026 11:20
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.

2 participants