Skip to content

Commit

Permalink
Merge pull request #30 from bloomreach/dev
Browse files Browse the repository at this point in the history
Dev > main v1.0.16
  • Loading branch information
prashant-br authored Jan 3, 2025
2 parents 3cecc57 + c60527e commit 4cc3a46
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 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 34
versionCode 1
versionName "1.0.15"
versionName "1.0.16"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}
buildTypes {
debug {
buildConfigField "String", 'SDK_VERSION', '"1.0.15"'
buildConfigField "String", 'SDK_VERSION', '"1.0.16"'
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}

release {
buildConfigField "String", 'SDK_VERSION', '"1.0.15"'
buildConfigField "String", 'SDK_VERSION', '"1.0.16"'
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 @@ -48,7 +48,12 @@ internal object FormatterUtils {
*/
fun formatUrl(baseurl: String, pType: String, title: String): String {
// convert in format http://merchantname.app/ptype/title
return "$baseurl$pType/$title"
return if(pType.isEmpty()) {
baseurl
} else {
"$baseurl$pType/$title"
}

}

/**
Expand Down

0 comments on commit 4cc3a46

Please sign in to comment.