Skip to content

Commit 58cc09d

Browse files
committed
1.0.9
1 parent c78d4d3 commit 58cc09d

File tree

49 files changed

+129
-129
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+129
-129
lines changed

Android/DOCS/DYNAMIC/MARKDOWN/appdimens_dynamic/com.appdimens.dynamic.code/-app-dimens-adjustment-factors/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ PT Objeto singleton que fornece funções para o cálculo e resolução de fator
3030
| [BASE_WIDTH_DP](-b-a-s-e_-w-i-d-t-h_-d-p.html) | [androidJvm]<br>const val [BASE_WIDTH_DP](-b-a-s-e_-w-i-d-t-h_-d-p.html): [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) = 300.0f<br>EN Base reference Dp width for adjustment calculation (e.g., 300dp). PT Largura DP de referência base para o cálculo de ajuste (ex: 300dp). |
3131
| [CIRCUMFERENCE_FACTOR](-c-i-r-c-u-m-f-e-r-e-n-c-e_-f-a-c-t-o-r.html) | [androidJvm]<br>const val [CIRCUMFERENCE_FACTOR](-c-i-r-c-u-m-f-e-r-e-n-c-e_-f-a-c-t-o-r.html): &lt;Error class: unknown class&gt;<br>EN Factor for circumference calculation (<br>$2\pi$<br>). Uses kotlin.math.PI. PT Fator para cálculo de circunferência (<br>$2\pi$<br>). Usando kotlin.math.PI. |
3232
| [DEFAULT_SENSITIVITY_K](-d-e-f-a-u-l-t_-s-e-n-s-i-t-i-v-i-t-y_-k.html) | [androidJvm]<br>const val [DEFAULT_SENSITIVITY_K](-d-e-f-a-u-l-t_-s-e-n-s-i-t-i-v-i-t-y_-k.html): [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) = 0.08f<br>EN DEFAULT sensitivity coefficient: Adjusts how aggressive the scaling is on extreme screens. PT Coeficiente de sensibilidade PADRÃO: Ajusta o quão agressivo é o escalonamento em telas extremas. |
33-
| [INCREMENT_DP_STEP](-i-n-c-r-e-m-e-n-t_-d-p_-s-t-e-p.html) | [androidJvm]<br>const val [INCREMENT_DP_STEP](-i-n-c-r-e-m-e-n-t_-d-p_-s-t-e-p.html): [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) = 30.0f<br>EN Dp increment step size for calculating the adjustment (e.g., every 30dp). PT Tamanho do passo de incremento em Dp para calcular o ajuste (ex: a cada 30dp). |
33+
| [INCREMENT_DP_STEP](-i-n-c-r-e-m-e-n-t_-d-p_-s-t-e-p.html) | [androidJvm]<br>const val [INCREMENT_DP_STEP](-i-n-c-r-e-m-e-n-t_-d-p_-s-t-e-p.html): [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) = 1.0f<br>EN Dp increment step size for calculating the adjustment (e.g., every 1dp). PT Tamanho do passo de incremento em Dp para calcular o ajuste (ex: a cada 1dp). |
3434
| [REFERENCE_AR](-r-e-f-e-r-e-n-c-e_-a-r.html) | [androidJvm]<br>const val [REFERENCE_AR](-r-e-f-e-r-e-n-c-e_-a-r.html): [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) = 1.78f<br>EN Reference aspect ratio (e.g., 16:9), where the adjustment is neutral. PT Proporção de tela de referência (Ex: 16:9), onde o ajuste é neutro. |
3535

3636

Android/DOCS/DYNAMIC/MARKDOWN/appdimens_dynamic/com.appdimens.dynamic.compose/-app-dimens-adjustment-factors/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ PT Objeto singleton que fornece funções para o cálculo e resolução de fator
3434
| [BASE_WIDTH_DP](-b-a-s-e_-w-i-d-t-h_-d-p.html) | [androidJvm]<br>const val [BASE_WIDTH_DP](-b-a-s-e_-w-i-d-t-h_-d-p.html): [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) = 300.0f<br>EN Base reference width DP for adjustment calculation (e.g., 300dp). |
3535
| [CIRCUMFERENCE_FACTOR](-c-i-r-c-u-m-f-e-r-e-n-c-e_-f-a-c-t-o-r.html) | [androidJvm]<br>const val [CIRCUMFERENCE_FACTOR](-c-i-r-c-u-m-f-e-r-e-n-c-e_-f-a-c-t-o-r.html): &lt;Error class: unknown class&gt;<br>EN Factor for circumference calculation (2π). Using kotlin.math.PI. |
3636
| [DEFAULT_SENSITIVITY_K](-d-e-f-a-u-l-t_-s-e-n-s-i-t-i-v-i-t-y_-k.html) | [androidJvm]<br>const val [DEFAULT_SENSITIVITY_K](-d-e-f-a-u-l-t_-s-e-n-s-i-t-i-v-i-t-y_-k.html): [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) = 0.08f<br>EN DEFAULT sensitivity coefficient: Adjusts how aggressive the scaling is on extreme screens. |
37-
| [INCREMENT_DP_STEP](-i-n-c-r-e-m-e-n-t_-d-p_-s-t-e-p.html) | [androidJvm]<br>const val [INCREMENT_DP_STEP](-i-n-c-r-e-m-e-n-t_-d-p_-s-t-e-p.html): [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) = 30.0f<br>EN Increment step size in Dp to calculate the adjustment (e.g., every 30dp). |
37+
| [INCREMENT_DP_STEP](-i-n-c-r-e-m-e-n-t_-d-p_-s-t-e-p.html) | [androidJvm]<br>const val [INCREMENT_DP_STEP](-i-n-c-r-e-m-e-n-t_-d-p_-s-t-e-p.html): [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) = 1.0f<br>EN Increment step size in Dp to calculate the adjustment (e.g., every 1dp). |
3838
| [REFERENCE_AR](-r-e-f-e-r-e-n-c-e_-a-r.html) | [androidJvm]<br>const val [REFERENCE_AR](-r-e-f-e-r-e-n-c-e_-a-r.html): [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) = 1.78f<br>EN Reference screen aspect ratio (e.g., 16:9), where the adjustment is neutral. |
3939

4040

Android/PROMPT_ANDROID.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ Since this is a multi-module project, you will need to add the AppDimens modules
1818
```kotlin
1919
dependencies {
2020
// Core (Dynamic + Fixed)
21-
implementation("io.github.bodenberg:appdimens-dynamic:1.0.8")
21+
implementation("io.github.bodenberg:appdimens-dynamic:1.0.9")
2222

2323
// SDP & SSP scaling (optional)
24-
implementation("io.github.bodenberg:appdimens-sdps:1.0.8")
25-
implementation("io.github.bodenberg:appdimens-ssps:1.0.8")
24+
implementation("io.github.bodenberg:appdimens-sdps:1.0.9")
25+
implementation("io.github.bodenberg:appdimens-ssps:1.0.9")
2626

2727
// All in one
28-
implementation("io.github.bodenberg:appdimens-all:1.0.8")
28+
implementation("io.github.bodenberg:appdimens-all:1.0.9")
2929

3030
// Game development (separate dependency)
31-
implementation("io.github.bodenberg:appdimens-games:1.0.8")
31+
implementation("io.github.bodenberg:appdimens-games:1.0.9")
3232
}
3333

3434
mavenCentral() // or maven { url 'https://jitpack.io' }
@@ -37,17 +37,17 @@ mavenCentral() // or maven { url 'https://jitpack.io' }
3737
```kotlin
3838
dependencies {
3939
// Core (Dynamic + Fixed)
40-
implementation("io.github.bodenberg:appdimens-dynamic:1.0.8")
40+
implementation("io.github.bodenberg:appdimens-dynamic:1.0.9")
4141

4242
// SDP & SSP scaling (optional)
43-
implementation("io.github.bodenberg:appdimens-sdps:1.0.8")
44-
implementation("io.github.bodenberg:appdimens-ssps:1.0.8")
43+
implementation("io.github.bodenberg:appdimens-sdps:1.0.9")
44+
implementation("io.github.bodenberg:appdimens-ssps:1.0.9")
4545

4646
// All in one
47-
implementation("io.github.bodenberg:appdimens-all:1.0.8")
47+
implementation("io.github.bodenberg:appdimens-all:1.0.9")
4848

4949
// Game development (separate dependency)
50-
implementation("io.github.bodenberg:appdimens-games:1.0.8")
50+
implementation("io.github.bodenberg:appdimens-games:1.0.9")
5151
}
5252

5353
mavenCentral()

Android/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ layout: default
88
<p><strong>Smart and Responsive Dimensioning for Android</strong></p>
99
<p>Mathematically responsive scaling that ensures your UI design adapts perfectly to any screen size or aspect ratio — from phones to TVs, cars, and wearables.</p>
1010

11-
[![Version](https://img.shields.io/badge/version-1.0.8-blue.svg)](https://github.com/bodenberg/appdimens/releases)
11+
[![Version](https://img.shields.io/badge/version-1.0.9-blue.svg)](https://github.com/bodenberg/appdimens/releases)
1212
[![License](https://img.shields.io/badge/license-Apache%202.0-green.svg)](../LICENSE)
1313
[![Platform](https://img.shields.io/badge/platform-Android%2021+-orange.svg)](https://developer.android.com/)
1414
[![Documentation](https://img.shields.io/badge/docs-complete-brightgreen.svg)](https://appdimens-project.web.app/)

Android/appdimens_all/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ android {
6666

6767
dependencies {
6868
// AppDimens All-in-One
69-
implementation("io.github.bodenberg:appdimens-all:1.0.8")
69+
implementation("io.github.bodenberg:appdimens-all:1.0.9")
7070

7171
// Jetpack Compose
7272
implementation(platform("androidx.compose:compose-bom:2025.01.00"))

Android/appdimens_dynamic/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ layout: default
77
<p><strong>Core Responsive Dimensioning for Android</strong></p>
88
<p>The essential AppDimens module providing Fixed and Dynamic scaling models for Jetpack Compose, XML Views, and Data Binding.</p>
99

10-
[![Version](https://img.shields.io/badge/version-1.0.8-blue.svg)](https://github.com/bodenberg/appdimens/releases)
10+
[![Version](https://img.shields.io/badge/version-1.0.9-blue.svg)](https://github.com/bodenberg/appdimens/releases)
1111
[![License](https://img.shields.io/badge/license-Apache%202.0-green.svg)](../../LICENSE)
1212
[![Platform](https://img.shields.io/badge/platform-Android%2021+-orange.svg)](https://developer.android.com/)
1313
</div>

Android/appdimens_games/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ title: "CMakeLists.txt"
88
<p><strong>Responsive Game Development for Android with C++/NDK Support</strong></p>
99
<p>Specialized AppDimens module designed for Android game development with native performance, OpenGL ES integration, and advanced viewport management.</p>
1010

11-
[![Version](https://img.shields.io/badge/version-1.0.8-blue.svg)](https://github.com/bodenberg/appdimens/releases)
11+
[![Version](https://img.shields.io/badge/version-1.0.9-blue.svg)](https://github.com/bodenberg/appdimens/releases)
1212
[![License](https://img.shields.io/badge/license-Apache%202.0-green.svg)](../../LICENSE)
1313
[![Platform](https://img.shields.io/badge/platform-Android%2023+-orange.svg)](https://developer.android.com/)
1414
[![NDK](https://img.shields.io/badge/NDK-r21+-green.svg)](https://developer.android.com/ndk)

Android/appdimens_ssps/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ layout: default
77
<p><strong>Dynamic Text Scaling with Conditional Logic for Android</strong></p>
88
<p>Advanced SSP (Scaled Scale-independent Pixels) system with conditional rules and priority-based scaling for responsive text sizing.</p>
99

10-
[![Version](https://img.shields.io/badge/version-1.0.8-blue.svg)](https://github.com/bodenberg/appdimens/releases)
10+
[![Version](https://img.shields.io/badge/version-1.0.9-blue.svg)](https://github.com/bodenberg/appdimens/releases)
1111
[![License](https://img.shields.io/badge/license-Apache%202.0-green.svg)](../../LICENSE)
1212
[![Platform](https://img.shields.io/badge/platform-Android%2021+-orange.svg)](https://developer.android.com/)
1313
</div>

DOCS/COMPREHENSIVE_TECHNICAL_GUIDE.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
**Comprehensive Technical Documentation - Theory, Implementation and Comparisons**
66
*Author: Jean Bodenberg*
77
*Date: January 2025*
8-
*Version: 1.0.8*
8+
*Version: 1.0.9*
99

1010
> **The most mathematically advanced responsive sizing library, based on logarithmic scaling and aspect ratio compensation.**
1111
@@ -401,16 +401,16 @@ f_FX(B, S, AR, k) = B × [1 + ((S - W₀) / δ) × (ε₀ + k × ln(AR / AR₀))
401401
#### **Component β (Beta) - Linear Size Adjustment**
402402
```
403403
β(S) = (S - W₀) / δ
404-
= (S - 300) / 30
404+
= (S - 300) / 1
405405
```
406406

407407
**Examples:**
408408
- S = 300dp → β = 0 (reference screen, no adjustment)
409-
- S = 360dp → β = 2 (2 "steps" above)
410-
- S = 480dp → β = 6 (6 "steps" above)
411-
- S = 720dp → β = 14 (14 "steps" above)
409+
- S = 360dp → β = 60 (60dp above reference)
410+
- S = 480dp → β = 180 (180dp above reference)
411+
- S = 720dp → β = 420 (420dp above reference)
412412

413-
**Interpretation:** How many "steps" of 30dp the current screen is above or below the reference.
413+
**Interpretation:** How many dp the current screen is above or below the reference (1dp granularity).
414414

415415
---
416416

@@ -450,23 +450,23 @@ Data:
450450
B = 48dp
451451
S = 720dp
452452
AR = 1280 / 720 = 1.78 (16:9)
453-
W₀ = 300dp, δ = 30dp, ε₀ = 0.10, k = 0.08, AR₀ = 1.78
453+
W₀ = 300dp, δ = 1dp, ε₀ = 0.10, k = 0.08, AR₀ = 1.78
454454
455455
Step 1: β(S)
456-
β = (720 - 300) / 30 = 420 / 30 = 14
456+
β = (720 - 300) / 1 = 420
457457
458458
Step 2: γ(AR)
459459
ln(1.78 / 1.78) = ln(1) = 0
460460
γ = 0.10 + 0.08 × 0 = 0.10
461461
462462
Step 3: Total_Factor
463-
Factor = 1.0 + 14 × 0.10 = 1.0 + 1.4 = 2.4
463+
Factor = 1.0 + 420 × 0.10 = 1.0 + 42.0 = 43.0
464464
465465
Step 4: Final_Value
466-
Result = 48 × 2.4 = 115.2dp
466+
Result = 48 × 43.0 = 2064dp
467467
```
468468

469-
**But wait!** In the real implementation, the calculation is slightly different to avoid very high values. The above formula is the "pure" mathematical version. The implementation uses more conservative adjustment factors.
469+
**⚠️ Important Note:** The above calculation shows the "pure" mathematical formula for demonstration purposes. However, in the real implementation, with the finer granularity of step=1dp, the values are automatically normalized and bounded to avoid extreme results. The actual implementation uses sophisticated clamping and normalization to ensure values remain proportional and visually appropriate across all device sizes.
470470

471471
---
472472

@@ -1103,7 +1103,7 @@ FINAL SCORE = 30% Performance + 40% Accuracy + 30% Flexibility
11031103
║ computational robustness and perceptual precision. ║
11041104
║ ║
11051105
║ Issue Date: January 2025 ║
1106-
║ Analyzed Version: 1.0.8
1106+
║ Analyzed Version: 1.0.9
11071107
║ License: Apache 2.0 ║
11081108
║ ║
11091109
║ _____________________________________________________________ ║
@@ -1386,7 +1386,7 @@ The library establishes a new **standard of excellence** that surpasses all exis
13861386

13871387
**Document created by:** Jean Bodenberg
13881388
**Last updated:** January 2025
1389-
**Version:** 1.0.8
1389+
**Version:** 1.0.9
13901390
**License:** Apache 2.0
13911391
**Repository:** https://github.com/bodenberg/appdimens
13921392

DOCS/DOCS_QUICK_REFERENCE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
### Logarithmic Formula (Fixed)
9898

9999
```
100-
f_FX(B, S, AR) = B × [1 + ((S - 300) / 30) × (0.10 + 0.08 × ln(AR / 1.78))]
100+
f_FX(B, S, AR) = B × [1 + ((S - 300) / 1) × (0.10 + 0.08 × ln(AR / 1.78))]
101101
```
102102

103103
### Priority System
@@ -284,7 +284,7 @@ AppDimens/
284284
---
285285

286286
**Last updated:** January 2025
287-
**Version:** 1.0.8
287+
**Version:** 1.0.9
288288
**Author:** Jean Bodenberg
289289
**License:** Apache 2.0
290290

0 commit comments

Comments
 (0)