-
Notifications
You must be signed in to change notification settings - Fork 599
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Support Secrets Gradle plugin #2093
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
package com.mifos.core.common.utils | ||
|
||
import com.mifos.core.common.BuildConfig | ||
|
||
object BaseUrl { | ||
|
||
private val configs = BuildConfig.DEMO_SERVER_CONFIG.split(",") | ||
|
||
// "/" in the last of the base url always | ||
|
||
const val PROTOCOL_HTTPS = "https://" | ||
val PROTOCOL_HTTPS = configs[0] | ||
|
||
const val API_ENDPOINT = "demo.mifos.community" | ||
val API_ENDPOINT = configs[1] | ||
|
||
const val API_PATH = "/fineract-provider/api/v1/" | ||
val API_PATH = configs[2] | ||
|
||
const val PORT = "80" | ||
val PORT = configs[3] | ||
|
||
const val TENANT = "default" | ||
val TENANT = configs[4] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
# Default values for the Mifos API | ||
# You can override these values by creating secrets.properties file in the root directory of the project | ||
|
||
PROTOCOL_HTTPS = https:// | ||
therajanmaurya marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
API_ENDPOINT = demo.mifos.community | ||
|
||
API_PATH = /fineract-provider/api/v1/ | ||
|
||
PORT = 80 | ||
|
||
TENANT = default | ||
|
||
# Provide GEO API Key | ||
GEO_API_KEY = AIzaSyAZTZqvDGyyw21z2Ee7N-dE_WuZQwKL0bs | ||
|
||
DEMO_SERVER_CONFIG = "https://,demo.mifos.community,/fineract-provider/api/v1/,80,default" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is right way, we are going to keep this only, remove rest of it There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you also add a comment to DEMO_SERVER_CONFIG #Update DEMO_SERVER_CONFIG according below mentioned your server config |
||
|
||
#SERVER_CONFIG = "${PROTOCOL_HTTPS}" | ||
# | ||
#SERVER_CONFIGs = '${PROTOCOL_HTTPS}' | ||
# | ||
#SERVER_CONFIGt = '\PROTOCOL_HTTPS\' | ||
# | ||
#SERVER_CONFIGD = \${PROTOCOL_HTTPS} | ||
# | ||
#SERVER_CONFIGe = $PROTOCOL_HTTPS | ||
|
||
#SERVER_CONFIGf = "\"{$PROTOCOL_HTTPS}\"" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove these Build config fields