Skip to content

Releases: bodenberg/appdimens-sdps

3.2.0

Choose a tag to compare

@bodenberg bodenberg released this 30 Aug 01:04

Full Changelog: 3.1.7...3.2.0

3.1.7

Choose a tag to compare

@bodenberg bodenberg released this 18 Aug 02:06

Full Changelog: 3.1.6...3.1.7

3.1.6

Choose a tag to compare

@bodenberg bodenberg released this 04 Aug 05:50

Resumo

Release 3.1.6 com correções e melhorias de performance, sem modularizar e sem remover recursos XML.

Biblioteca

  • Correção de DimenPhysicalUnits (code): conversões mm/cm/inch → Dp/Px/Sp
  • APIs SSP com aspect ratio no code (sspa / hspa / wspa e aliases)
  • Cache de getIdentifier e resolução sem trabalho duplicado no hot path
  • Compose: menos observações de configuration/density no caminho padrão; IDs memoizados

Documentação

  • README atualizado para 3.1.6 (uso, performance, tabela de novidades)
  • KDoc/comentários internos limpos para nível de produção

Verificação

  • ./gradlew :library:compileDebugKotlin :library:testDebugUnitTest

3.1.5

Choose a tag to compare

@bodenberg bodenberg released this 16 May 01:29

Add aspect-ratio

3.1.2

Choose a tag to compare

@bodenberg bodenberg released this 06 Apr 01:40

📢 Important Update

Specific ProGuard rules have been added to the project.

🔧 What’s Changed?

  • Added new configuration rules to ProGuard
  • Adjustments to ensure:
    • Better code obfuscation
    • Preservation of required classes and methods
    • Prevention of runtime errors

✅ Why This Matters

These rules help to:

  • Protect the code against reverse engineering
  • Improve application security
  • Ensure compatibility with used libraries

📌 Note

Make sure to sync the project and validate functionality after this update.


🚀 If you have any questions, review the ProGuard configuration file (proguard-rules.pro)

3.1.0

Choose a tag to compare

@bodenberg bodenberg released this 22 Mar 09:54

Updates

  • Added extensions for pixel return.

3.0.9.1

Choose a tag to compare

@bodenberg bodenberg released this 18 Mar 03:45

Documentation Update

In this new version of the project, significant improvements have been made to the comments and code descriptions.

Main changes:

  • Comments revised for greater clarity and objectivity
  • More detailed descriptions of functionalities

These improvements aim to make the project easier to understand, maintain.

3.0.9

Choose a tag to compare

@bodenberg bodenberg released this 15 Mar 18:23

Improvement in Extensions:

  • New option added: It is now possible to not recalculate the gross DPs in extensions ending with Plain, if the required conditions are not met.

Details of the Improvement:

  • For extensions ending in Plain, the gross DPs will not be recalculated if the necessary conditions are not met.

    Example of Behavior:

    • Before: The calculation of gross DPs was performed regardless of the conditions.
    • Now: The recalculation of gross DPs occurs only when the conditions are met.

Benefits of this Change:

  • Efficiency: Avoids unnecessary calculations, saving resources.
  • Control: Provides greater control over when the gross DPs should be recalculated.

3.0.8

Choose a tag to compare

@bodenberg bodenberg released this 15 Mar 14:05

Added support for SSP and TextUnit.

3.0.7

Choose a tag to compare

@bodenberg bodenberg released this 13 Mar 01:43
50a86a3

✨ What's New in Version 3.x.x

Feature Description
Code-Level API Full DimenSdp object for Java & Kotlin — resolve dimensions outside of XML and Compose
Inverter Shortcuts .sdpPh, .sdpLw, .sdpLh, .sdpPw, .hdpLw, .hdpPw, .wdpLh, .wdpPh — orientation-aware switching
Facilitators sdpRotate, sdpMode, sdpQualifier, sdpScreen (+ hdp/wdp variants) — quick conditional overrides
DimenScaled Builder Priority-based chain with UiModeType, DpQualifier, Orientation, and Inverter support
Foldable Detection FoldingFeature integration via Jetpack WindowManager — detects Fold/Flip open/half-open states
UiModeType NORMAL, TELEVISION, CAR, WATCH, FOLD_OPEN, FOLD_HALF, FLIP_OPEN, FLIP_HALF
Physical Units DimenPhysicalUnits — convert mm, cm, inches to Dp/Px
File Structure Modular files: DimenSdp (core), DimenExtensions (facilitators), DimenScaled (builder)