Commit d58705d 1 parent 3d292b2 commit d58705d Copy full SHA for d58705d
File tree 2 files changed +12
-6
lines changed
2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,6 @@ class Environment {
10
10
11
11
static bool get isStaging => synapsURL.contains ("staging" );
12
12
13
- static String get baseAPI {
14
- return dotenv.env["BASE_API" ] ?? 'BASE API not found' ;
15
- }
16
-
17
13
static String get frontendURL {
18
14
return dotenv.env["FRONTEND_URL" ] ?? "Frontend URL NOT FOUND" ;
19
15
}
@@ -27,7 +23,17 @@ class Environment {
27
23
}
28
24
29
25
static String get choreoApi {
30
- return dotenv.env['CHOREO_API' ] ?? 'Not found' ;
26
+ final envEntry = dotenv.env['CHOREO_API' ];
27
+ if (envEntry == null ) {
28
+ return "Not found" ;
29
+ }
30
+ if (envEntry.endsWith ("/choreo" )) {
31
+ return envEntry.replaceAll ("/choreo" , "" );
32
+ }
33
+ if (envEntry.endsWith ("/choreo/" )) {
34
+ return envEntry.replaceAll ("/choreo/" , "" );
35
+ }
36
+ return envEntry;
31
37
}
32
38
33
39
static String get choreoApiKey {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ description: Learn a language while texting your friends.
6
6
# Pangea#
7
7
publish_to : none
8
8
# On version bump also increase the build number for F-Droid
9
- version : 1.23.16+3575
9
+ version : 1.23.17+3576
10
10
11
11
environment :
12
12
sdk : " >=3.0.0 <4.0.0"
You can’t perform that action at this time.
0 commit comments