feat: comprehensive improvements — new resource types, API enhancements, code quality#15
Merged
Merged
Conversation
…ts, code quality New resource types: - fraction (addFraction) - int-quantity / int-quantity-array (addIntQuantity, addIntQuantityArray) - color-array (addColorArray) - bool-array (addBoolArray) - reference (addReference with Reference data class) API improvements: - addColor(name, Int) overload for integer color values - buildBytes() for ByteArray output - create(file, indent, elementType) for font-family files - translatable attribute on addStringArray and addTypedArray - format attribute on addStyle - FontFamilyRes data class with addFontFamilyRes method Code quality: - Replace manual format string concatenation with joinToString - Remove stale 'Does this mess up ordering?' comments - Expand add(type, name, value) to support FRACTION, COLOR_ARRAY, BOOL_ARRAY - Update add(type) doc to reflect expanded support Tests: 13 new test files, 73 total tests passing README: Updated with all new features and examples
Jawnnypoo
added a commit
that referenced
this pull request
Jun 9, 2026
…-cleaned feat: resource additions & API improvements (cleaned up from #15)
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.
Summary
Comprehensive improvements to ResourcesPoet covering new resource types, API enhancements, and code quality fixes.
New Resource Types
<fraction name="width">50%p</fraction>for percentage values<int-quantity name="count">with quantity variants (zero, one, two, few, many, other)<color-array name="colors">for arrays of color references<bool-array name="flags">for arrays of boolean values<item type="reference" name="x">@drawable/y</item>for resource referencesAPI Improvements
Code Quality
New Files
Tests
13 new test files covering all new features. 73 total tests passing.
README
Updated with examples for all new features.