Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 2.12.2
- Fix: Display proper size recommendation text

### 2.12.1
- Fix: Memory leak with Virtusize composables
- Fix: Shadow is clipped in compose version of VirtusizeInPageStandard
Expand Down
4 changes: 2 additions & 2 deletions README-COMPOSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ In your app `build.gradle` file, add the following dependencies:

```groovy
dependencies {
implementation 'com.virtusize.android:virtusize:2.12.1'
implementation 'com.virtusize.android:virtusize:2.12.2'
}
```

- Kotlin (build.gradle.kts)

```kotlin
dependencies {
implementation("com.virtusize.android:virtusize:2.12.1")
implementation("com.virtusize.android:virtusize:2.12.2")
}
```

Expand Down
4 changes: 2 additions & 2 deletions README-JP.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ appの`build.gradle`ファイルに下記のdependencyを追加

```groovy
dependencies {
implementation 'com.virtusize.android:virtusize:2.12.1'
implementation 'com.virtusize.android:virtusize:2.12.2'
}
```

- Kotlin (build.gradle.kts)

```kotlin
dependencies {
implementation("com.virtusize.android:virtusize:2.12.1")
implementation("com.virtusize.android:virtusize:2.12.2")
}
```

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ In your app `build.gradle` file, add the following dependencies:

```groovy
dependencies {
implementation 'com.virtusize.android:virtusize:2.12.1'
implementation 'com.virtusize.android:virtusize:2.12.2'
}
```

- Kotlin (build.gradle.kts)

```kotlin
dependencies {
implementation("com.virtusize.android:virtusize:2.12.1")
implementation("com.virtusize.android:virtusize:2.12.2")
}
```

Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ nexusPublishing {
repositories {
sonatype {
// only for users registered in Sonatype after 24 Feb 2021
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
username = getProperties("OSSRH_USERNAME")
password = getProperties("OSSRH_PASSWORD")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ object Constants {
const val TARGET_SDK = 34

// Update versionName when publishing a new release
const val VERSION_NAME = "2.12.1"
const val VERSION_NAME = "2.12.2"
const val GROUP_ID = "com.virtusize.android"
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ private fun Project.configureRepositories() {
publications {
repositories {
maven {
name = "ossrh-staging-api"
val releasesRepoUrl =
"https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
"https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/"
val snapshotsRepoUrl =
"https://s01.oss.sonatype.org/content/repositories/snapshots/"
"https://central.sonatype.com/repository/maven-snapshots/"
url =
uri(if (isSnapshot) snapshotsRepoUrl else releasesRepoUrl)
credentials {
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ material = "1.12.0"
nextPublish = "1.1.0"
robolectric = "4.13"
truth = "1.4.4"
virtusize = "2.12.1"
virtusize = "2.12.2"
virtusizeAuth = "1.1.1"
browser = "1.8.0"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ internal data class BodyProfileRecommendedSizeParams(
userBodyProfile.weight.toFloatOrNull()?.let { mapOf(PARAM_USER_WEIGHT to it) }
.orEmpty(),
)
.plus(
mapOf(PARAM_USER_AGE to userBodyProfile.age),
)
.plus(
mapOf(PARAM_ITEMS to arrayOf(createItemsParams())),
)
Expand Down Expand Up @@ -98,6 +101,11 @@ internal data class BodyProfileRecommendedSizeParams(
.plus(
mapOf(PARAM_GENDER to userBodyProfile.gender),
)
.plus(
mapOf(
PARAM_STYLE to (storeProduct.storeProductMeta?.additionalInfo?.style ?: "regular"),
),
)
}

/**
Expand Down Expand Up @@ -155,13 +163,15 @@ internal data class BodyProfileRecommendedSizeParams(
const val PARAM_USER_GENDER = "userGender"
const val PARAM_USER_HEIGHT = "userHeight"
const val PARAM_USER_WEIGHT = "userWeight"
const val PARAM_USER_AGE = "userAge"
const val PARAM_EXTERNAL_PRODUCT_ID = "extProductId"

const val PARAM_BRAND = "brand"
const val PARAM_FIT = "fit"
const val PARAM_SIZES = "sizes"
const val PARAM_MODEL_INFO = "modelInfo"
const val PARAM_GENDER = "gender"
const val PARAM_STYLE = "style"

const val PARAM_BODY_MEASUREMENT_VALUE = "value"
const val PARAM_BODY_MEASUREMENT_PREDICTED = "predicted"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ internal class BodyProfileRecommendedSizeParamsTests {
"""
{
"fit": "regular",
"style": "fashionable",
"sizes": {
"38": {
"bust": 660,
Expand Down Expand Up @@ -75,6 +76,7 @@ internal class BodyProfileRecommendedSizeParamsTests {
"""
{
"fit": "regular",
"style": "fashionable",
"sizes": {},
"modelInfo": null,
"gender": "female",
Expand Down Expand Up @@ -390,6 +392,7 @@ internal class BodyProfileRecommendedSizeParamsTests {
"hip" to 85,
"height" to 165,
),
"style" to "fashionable",
),
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@ internal class VirtusizeApiTest {
"hip" to 85,
"height" to 165,
),
"style" to "fashionable",
),
)
}
Expand Down
Binary file modified virtusize/src/main/res/font/subset_noto_sans_jp_bold.ttf
Binary file not shown.
Binary file modified virtusize/src/main/res/font/subset_noto_sans_jp_regular.ttf
Binary file not shown.
Binary file modified virtusize/src/main/res/font/subset_noto_sans_kr_bold.ttf
Binary file not shown.
Binary file modified virtusize/src/main/res/font/subset_noto_sans_kr_regular.ttf
Binary file not shown.