Add CSSThemeCompiler and fix MutableResource typo with tests#4575
Merged
shai-almog merged 2 commits intomasterfrom Feb 26, 2026
Merged
Add CSSThemeCompiler and fix MutableResource typo with tests#4575shai-almog merged 2 commits intomasterfrom
shai-almog merged 2 commits intomasterfrom
Conversation
Collaborator
Author
Android screenshot updatesCompared 32 screenshots: 31 matched, 1 error.
Native Android coverage
|
|
ในวันที่ ศ. 27 ก.พ. 2026 00:57 น. Shai Almog ***@***.***>
เขียนว่า:
… *shai-almog* left a comment (codenameone/CodenameOne#4575)
<#4575 (comment)>
Compared 32 screenshots: 32 matched.
Native Android coverage
- 📊 *Line coverage:* 7.31% (3716/50867 lines covered) [HTML preview]
<https://htmlpreview.github.io/?https://raw.githubusercontent.com/codenameone/CodenameOne/e620ff217c1512b9070dc7b10045f0cb1db154a3/runs/22453934036-1/android-coverage/jacocoAndroidReport/html/index.html>
(artifact android-coverage-report,
jacocoAndroidReport/html/index.html)
- Other counters: instruction 5.71% (18263/320093), branch 2.75%
(856/31113), complexity 3.41% (1015/29746), method 6.01% (833/13858), class
9.83% (180/1831)
- *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/712 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)
- kotlinx.coroutines.kotlinx.coroutines.JobSupport – 0.00%
(0/423 lines covered)
✅ Native Android screenshot tests passed.
Native Android coverage
- 📊 *Line coverage:* 7.31% (3716/50867 lines covered) [HTML preview]
<https://htmlpreview.github.io/?https://raw.githubusercontent.com/codenameone/CodenameOne/e620ff217c1512b9070dc7b10045f0cb1db154a3/runs/22453934036-1/android-coverage/jacocoAndroidReport/html/index.html>
(artifact android-coverage-report,
jacocoAndroidReport/html/index.html)
- Other counters: instruction 5.71% (18263/320093), branch 2.75%
(856/31113), complexity 3.41% (1015/29746), method 6.01% (833/13858), class
9.83% (180/1831)
- *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/712 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)
- kotlinx.coroutines.kotlinx.coroutines.JobSupport – 0.00%
(0/423 lines covered)
—
Reply to this email directly, view it on GitHub
<#4575 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADJMKZKNEGJUNVAGNKORAA34N4XX7AVCNFSM6AAAAACWA2UPN2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTSNRYGI2DONBUGE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
✅ Continuous Quality ReportTest & Coverage
Static Analysis
Generated automatically by the PR CI workflow. |
Collaborator
Author
|
Compared 32 screenshots: 32 matched. Benchmark Results
Detailed Performance Metrics
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
MutableResoucewith a correctMutableResourceimplementation and keep a deprecated, backward-compatibleMutableResoucewrapper.Description
com.codename1.ui.css.CSSThemeCompiler, which parses a constrained subset of CSS (selectors, declarations, :root constants,@constants) and emits theme properties into aMutableResource, including color/box normalization, var() resolution, border aggregation, andcn1-mutable-imagehandling.com.codename1.ui.util.MutableResourceas the proper mutable resources class with loading/saving, setters (setImage,setData,setTheme,setL10N), restricted type checks, and deterministic save semantics.MutableResoucethat extendsMutableResourceto preserve backward compatibility with the previous typo-named API.CSSThemeCompilerTestto validate CSS compilation into themes and generated mutable images, and renames/updatesMutableResouceTest->MutableResourceTestto exercise the mutable resource API and serialization.Testing
CSSThemeCompilerTestandMutableResourceTestfrommaven/core-unittestsand they passed.MutableResourceTestwhich successfully saved and reloaded IMAGE/DATA/L10N entries via theResourcesreader.CSSThemeCompilerTest, including theme keys, derived values, generated mutable image presence, and border type, all of which succeeded.Codex Task