-
Notifications
You must be signed in to change notification settings - Fork 599
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Support Secrets Gradle plugin (#2093)
* chore: Configured Secrets Gradle plugin * - Fixed Plugin Declaration - Removed optional secrets.properties file declaration - Configured And Applied Keys into default file * - Updated field declaration * - Updated field declaration
- Loading branch information
Showing
10 changed files
with
62 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 9 additions & 5 deletions
14
core/common/src/main/java/com/mifos/core/common/utils/BaseUrl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
## Update DEMO_SERVER_CONFIG according below mentioned your server config | ||
|
||
# PROTOCOL_HTTPS=https:// | ||
# API_ENDPOINT=demo.mifos.community | ||
# API_PATH=/fineract-provider/api/v1/ | ||
# PORT=80 | ||
# TENANT=default | ||
|
||
# Separated By Comma (,) Without Space like below | ||
# PROTOCOL_HTTPS,API_ENDPOINT,API_PATH,PORT,TENANT | ||
|
||
DEMO_SERVER_CONFIG="https://,demo.mifos.community,/fineract-provider/api/v1/,80,default" | ||
|
||
# Provide GEO API Key | ||
GEO_API_KEY=AIzaSyAZTZqvDGyyw21z2Ee7N-dE_WuZQwKL0 |