Skip to content
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

fix: endpoint dev to demo and switch instance domain to app local #2058

Merged
merged 1 commit into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading