Skip to content

Commit

Permalink
Merge pull request #9 from bloomreach/dev
Browse files Browse the repository at this point in the history
Dev -> main v1.0.9
  • Loading branch information
prashant-br authored Nov 2, 2023
2 parents a59a914 + a9d9e94 commit 5707d4d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ android {
minSdk 24
targetSdk 32
versionCode 1
versionName "1.0.7"
versionName "1.0.9"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}
buildTypes {
debug {
buildConfigField "String", 'SDK_VERSION', '"1.0.7"'
buildConfigField "String", 'SDK_VERSION', '"1.0.9"'
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}

release {
buildConfigField "String", 'SDK_VERSION', '"1.0.7"'
buildConfigField "String", 'SDK_VERSION', '"1.0.9"'
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ sealed class SearchRequest<T>() : RequestMap<T>() {
* @return A reference to the current Request object
*/
fun sort(value: String?): T {
return set(ApiConstants.SORT, value)
val newValue = value?.replace("+", " ")
return set(ApiConstants.SORT, newValue)
}

/**
Expand Down Expand Up @@ -158,7 +159,7 @@ sealed class SearchRequest<T>() : RequestMap<T>() {
* @return Formatted string for sort parameter
*/
private fun sortString(sort: Sort):String {
return "${sort.value}+${sort.order.value}"
return "${sort.value} ${sort.order.value}"
}

/**
Expand Down

0 comments on commit 5707d4d

Please sign in to comment.