Skip to content

Commit

Permalink
fix: Wrong event URL is being shared (#1832)
Browse files Browse the repository at this point in the history
  • Loading branch information
liveHarshit committed May 30, 2019
1 parent 00425da commit 0c61d0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@ android {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
buildConfigField "String", "DEFAULT_BASE_URL", '"https://api.eventyay.com/v1/"'
buildConfigField "String", "FRONTEND_URL", '"https://eventyay.com/e/"'
buildConfigField "String", "MAPBOX_KEY", '"'+MAPBOX_KEY+'"'
buildConfigField "String", "STRIPE_API_KEY", '"'+STRIPE_API_TOKEN+'"'
}
debug {
buildConfigField "String", "DEFAULT_BASE_URL", '"https://open-event-api-dev.herokuapp.com/v1/"'
buildConfigField "String", "FRONTEND_URL", '"https://fossasia.github.io/open-event-frontend/e/"'
buildConfigField "String", "MAPBOX_KEY", '"'+MAPBOX_KEY+'"'
buildConfigField "String", "STRIPE_API_KEY", '"'+STRIPE_API_TOKEN+'"'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,11 @@ object EventUtils {

private val timeFormat: DateTimeFormatter = DateTimeFormatter.ofPattern("hh:mm a")
private val dateFormat: DateTimeFormatter = DateTimeFormatter.ofPattern("dd MMM yyyy")
private const val frontendUrl = "https://open-event-frontend-dev.herokuapp.com/e/"

fun getSharableInfo(event: Event, resource: Resource = sharedResource): String {
val description = event.description.nullToEmpty()
val identifier = event.identifier
val eventUrl = frontendUrl + identifier
val eventUrl = BuildConfig.FRONTEND_URL + identifier

val message = StringBuilder()

Expand Down

0 comments on commit 0c61d0b

Please sign in to comment.