Skip to content

Commit

Permalink
fix: endpoint dev to demo and switch instance domain to app local
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditya-gupta99 authored and therajanmaurya committed Jan 31, 2024
1 parent 33f75c2 commit 1bd8c79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mifosng-android/src/main/java/com/mifos/api/BaseUrl.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class BaseUrl {
// "/" in the last of the base url always
companion object {
const val PROTOCOL_HTTPS = "https://"
const val API_ENDPOINT = "dev.mifos.io"
const val API_ENDPOINT = "demo.mifos.community"
const val API_PATH = "/fineract-provider/api/v1/"
const val PORT = "80"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import android.content.Intent
import android.os.Bundle
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
import com.mifos.api.BaseUrl
import com.mifos.mifosxdroid.core.MifosBaseActivity
import com.mifos.mifosxdroid.activity.login.LoginActivity
import com.mifos.mifosxdroid.core.MifosBaseActivity
import com.mifos.mifosxdroid.passcode.PassCodeActivity
import com.mifos.mobile.passcode.utils.PassCodeConstants
import com.mifos.utils.PrefManager
Expand All @@ -23,8 +23,8 @@ class SplashScreenActivity : MifosBaseActivity() {
super.onCreate(savedInstanceState)
splashScreen.setKeepOnScreenCondition { true }
if (!PrefManager.isAuthenticated()) {
PrefManager.setInstanceUrl(BaseUrl.PROTOCOL_HTTPS
+ BaseUrl.API_ENDPOINT + BaseUrl.API_PATH)
PrefManager.setInstanceUrl(BaseUrl.PROTOCOL_HTTPS + BaseUrl.API_ENDPOINT + BaseUrl.API_PATH)
PrefManager.setInstanceDomain(BaseUrl.API_ENDPOINT)
startActivity(Intent(this@SplashScreenActivity, LoginActivity::class.java))
} else {
val intent = Intent(
Expand Down

0 comments on commit 1bd8c79

Please sign in to comment.