Skip to content

Conversation

@shai-almog
Copy link
Collaborator

Summary

  • route initial window sizing hints through the implementation so JavaSE desktop windows size themselves before packing
  • remove the unused desktop monitor count API and avoid redundant cloning of window metrics
  • adjust JavaSE and test implementations plus unit tests for the updated window sizing behavior

Testing

  • mvn -f maven/pom.xml -Punittests -pl core-unittests test (fails: missing provided dependency com.codenameone:codenameone-factory:8.0-SNAPSHOT in this environment)

Codex Task

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 5541 to 5547
window.addWindowListener(new WindowListener() {

public void windowOpened(WindowEvent e) {
fireDesktopWindowEvent(com.codename1.ui.events.WindowEvent.Type.Shown);
}

public void windowClosing(WindowEvent e) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Resolve WindowEvent import ambiguity in JavaSEPort

The new import of com.codename1.ui.events.WindowEvent (line 117) conflicts with the existing import java.awt.event.*;. The existing window listeners still declare their parameters as unqualified WindowEvent (e.g., windowOpened(WindowEvent e) below), which is now ambiguous between the AWT and CN1 types and prevents this file from compiling. Fully qualify the intended AWT type or drop the conflicting import so Java can resolve the symbol.

Useful? React with 👍 / 👎.

@shai-almog
Copy link
Collaborator Author

shai-almog commented Nov 26, 2025

Android screenshot updates

Compared 4 screenshots: 1 matched, 1 updated, 2 missing references.

  • BrowserComponent — updated screenshot. Screenshot differs (320x616 px, bit depth 8).

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

  • GraphicsPipeline — missing reference. Reference screenshot missing at /home/runner/work/CodenameOne/CodenameOne/scripts/android/screenshots/GraphicsPipeline.png.

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

  • GraphicsTransformations — missing reference. Reference screenshot missing at /home/runner/work/CodenameOne/CodenameOne/scripts/android/screenshots/GraphicsTransformations.png.

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

Native Android coverage

  • 📊 Line coverage: 17.84% (1920/10763 lines covered) [HTML preview] (artifact android-coverage-report, jacocoAndroidReport/html/index.html)
    • Other counters: instruction 17.44% (8853/50756), branch 9.48% (447/4714), complexity 12.33% (526/4267), method 24.77% (452/1825), class 25.00% (76/304)
    • Lowest covered classes
      • com.codename1.impl.android.com.codename1.impl.android.AndroidContactsManager – 0.00% (0/398 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.AndroidImplementation$Video – 0.00% (0/168 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.IntentIntegrator – 0.00% (0/139 lines covered)
      • com.codename1.impl.android.util.com.codename1.impl.android.util.Base64 – 0.00% (0/117 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.CodenameOneInputConnection – 0.00% (0/109 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.AndroidImplementation$SocketImpl – 0.00% (0/77 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.AndroidTextureView – 0.00% (0/76 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.AndroidSurfaceView – 0.00% (0/73 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.LocalNotificationPublisher – 0.00% (0/65 lines covered)
      • com.codename1.impl.android.com.codename1.impl.android.FridaDetectionUtil – 0.00% (0/64 lines covered)

@shai-almog
Copy link
Collaborator Author

shai-almog commented Nov 26, 2025

iOS screenshot updates

Compared 6 screenshots: 2 matched, 4 missing references.

  • GraphicsPipeline — missing reference. Reference screenshot missing at /Users/runner/work/CodenameOne/CodenameOne/scripts/ios/screenshots/GraphicsPipeline.png.

    GraphicsPipeline
    Preview info: Preview provided by instrumentation.
    Full-resolution PNG saved as GraphicsPipeline.png in workflow artifacts.

  • GraphicsShapesAndGradients — missing reference. Reference screenshot missing at /Users/runner/work/CodenameOne/CodenameOne/scripts/ios/screenshots/GraphicsShapesAndGradients.png.

    GraphicsShapesAndGradients
    Preview info: Preview provided by instrumentation.
    Full-resolution PNG saved as GraphicsShapesAndGradients.png in workflow artifacts.

  • GraphicsTransformations — missing reference. Reference screenshot missing at /Users/runner/work/CodenameOne/CodenameOne/scripts/ios/screenshots/GraphicsTransformations.png.

    GraphicsTransformations
    Preview info: Preview provided by instrumentation.
    Full-resolution PNG saved as GraphicsTransformations.png in workflow artifacts.

  • MediaPlayback — missing reference. Reference screenshot missing at /Users/runner/work/CodenameOne/CodenameOne/scripts/ios/screenshots/MediaPlayback.png.

    MediaPlayback
    Preview info: Preview provided by instrumentation.
    Full-resolution PNG saved as MediaPlayback.png in workflow artifacts.

@github-actions
Copy link

github-actions bot commented Nov 26, 2025

✅ Continuous Quality Report

Test & Coverage

Static Analysis

Generated automatically by the PR CI workflow.

@shai-almog shai-almog merged commit a7dbab5 into master Nov 27, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants