File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/main/java/org/fossasia/openevent/general/event Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -37,11 +37,13 @@ android {
37
37
minifyEnabled true
38
38
proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
39
39
buildConfigField " String" , " DEFAULT_BASE_URL" , ' "https://api.eventyay.com/v1/"'
40
+ buildConfigField " String" , " FRONTEND_URL" , ' "https://eventyay.com/e/"'
40
41
buildConfigField " String" , " MAPBOX_KEY" , ' "' + MAPBOX_KEY + ' "'
41
42
buildConfigField " String" , " STRIPE_API_KEY" , ' "' + STRIPE_API_TOKEN + ' "'
42
43
}
43
44
debug {
44
45
buildConfigField " String" , " DEFAULT_BASE_URL" , ' "https://open-event-api-dev.herokuapp.com/v1/"'
46
+ buildConfigField " String" , " FRONTEND_URL" , ' "https://fossasia.github.io/open-event-frontend/e/"'
45
47
buildConfigField " String" , " MAPBOX_KEY" , ' "' + MAPBOX_KEY + ' "'
46
48
buildConfigField " String" , " STRIPE_API_KEY" , ' "' + STRIPE_API_TOKEN + ' "'
47
49
}
Original file line number Diff line number Diff line change @@ -33,12 +33,11 @@ object EventUtils {
33
33
34
34
private val timeFormat: DateTimeFormatter = DateTimeFormatter .ofPattern(" hh:mm a" )
35
35
private val dateFormat: DateTimeFormatter = DateTimeFormatter .ofPattern(" dd MMM yyyy" )
36
- private const val frontendUrl = " https://open-event-frontend-dev.herokuapp.com/e/"
37
36
38
37
fun getSharableInfo (event : Event , resource : Resource = sharedResource): String {
39
38
val description = event.description.nullToEmpty()
40
39
val identifier = event.identifier
41
- val eventUrl = frontendUrl + identifier
40
+ val eventUrl = BuildConfig . FRONTEND_URL + identifier
42
41
43
42
val message = StringBuilder ()
44
43
You can’t perform that action at this time.
0 commit comments