Skip to content

Commit

Permalink
Merge branch 'release/2.5.6' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
olga-salina committed May 6, 2024
2 parents 19bcaa8 + 7356d85 commit ebec1a4
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# Changelog
## [2.5.6] - Store SDK - 2024-05-06
### Changed
- `getVirtualItems` SDK method. Added the `requestGeoLocale` parameter. If `true`, the response returns the locale in the `geoLocale` parameter.

## [1.3.4] - Payments SDK - 2024-05-06
### Added
- Pay Station preloader. Allows faster content display in WebView and Custom Tabs.

## [2.2.11] - Demo Apps - 2024-04-11
### Fixed
- Token refresh on application startup
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

buildscript {

ext.payments_sdk_version_name = '1.3.3'
ext.store_sdk_version_name = '2.5.5'
ext.payments_sdk_version_name = '1.3.4'
ext.store_sdk_version_name = '2.5.6'
ext.inventory_sdk_version_name = '2.0.4'
ext.login_sdk_version_name = '6.0.7'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1144,9 +1144,8 @@ class XStore private constructor(
* The following languages are supported: Arabic (`ar`), Bulgarian (`bg`), Czech (`cs`), German (`de`), Spanish (`es`), French (`fr`), Hebrew (`he`), Italian (`it`), Japanese (`ja`), Korean (`ko`), Polish (`pl`), Portuguese (`pt`), Romanian (`ro`), Russian (`ru`), Thai (`th`), Turkish (`tr`), Vietnamese (`vi`), Chinese Simplified (`cn`), Chinese Traditional (`tw`), English (`en`, default).
* @param additionalFields The list of additional fields. Available fields: `media_list`, `order`, `long_description`.
* @param callback Status callback.
* @param requestGeoLocale If `TRUE` then requests the backend to send the deduced locale
* back with the response as [VirtualItemsResponse.geoLocale] based on user's current IP.
* **IMPORTANT:** Setting [country] argument will override the returned locale.
* @param requestGeoLocale If `true`, requests the locale based on user's current IP. The backend returns the locale as [VirtualItemsResponse.geoLocale].
* **IMPORTANT:** Setting [country] argument overrides the returned locale.
* @see [More about the use cases](https://developers.xsolla.com/sdk/android/catalog/catalog-display/).
*/
@JvmStatic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import java.util.Locale

data class VirtualItemsResponse(
/**
* An optional locale deduced and returned by the backend.
* An optional locale returned by the backend based on user's current IP.
*
* Non-null only if the query parameter `with_geo=1` was added to the request.
* Non-null only if request contains the `requestGeoLocale=true` query parameter.
*/
@Transient val geoLocale: Locale? = null,

Expand Down

0 comments on commit ebec1a4

Please sign in to comment.