Skip to content

Commit 47f3e1e

Browse files
authored
Change to use access token and make appropriate call (#20)
* Update to new version that uses accessToken * Fix provider and api call
1 parent 165de86 commit 47f3e1e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ android {
2525
versionName = project.version.toString()
2626
versionCode = grgit.log(mapOf("includes" to listOf("HEAD"))).size
2727

28-
buildConfigField("String", "AUTH_PROVIDER", "\"API_OAUTH\"")
28+
buildConfigField("String", "AUTH_PROVIDER", "\".apiOAuth\"")
2929

3030
proguardFile(getDefaultProguardFile("proguard-android-optimize.txt"))
3131
proguardFile("proguard-rules.pro")
@@ -92,7 +92,7 @@ android {
9292
register("production") {
9393
manifestPlaceholders += mapOf("appAuthRedirectScheme" to "org.wycliffe.mypd")
9494

95-
buildConfigField("String", "MPDX_API_BASE_URI", "\"https://api.mypd.wycliffe.org/\"")
95+
buildConfigField("String", "MPDX_API_BASE_URI", "\"https://api.mypd.wycliffe.org/api/v2/\"")
9696

9797
buildConfigField("String", "AUTH_END_POINT", "\"https://api.mypd.wycliffe.org/oauth/authorize\"")
9898
buildConfigField("String", "TOKEN_END_POINT", "\"https://api.mypd.wycliffe.org/oauth/token\"")
@@ -105,7 +105,7 @@ android {
105105
register("development") {
106106
manifestPlaceholders += mapOf("appAuthRedirectScheme" to "org.wycliffe.mypd-test")
107107

108-
buildConfigField("String", "MPDX_API_BASE_URI", "\"https://api.mypd-test.wycliffe.org/\"")
108+
buildConfigField("String", "MPDX_API_BASE_URI", "\"https://api.mypd-test.wycliffe.org/api/v2/\"")
109109

110110
buildConfigField("String", "AUTH_END_POINT", "\"https://api.mypd-test.wycliffe.org/oauth/authorize\"")
111111
buildConfigField("String", "TOKEN_END_POINT", "\"https://api.mypd-test.wycliffe.org/oauth/token\"")

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ kotlin = "1.9.20"
1414
kotlinCoroutines = "1.7.3"
1515
kotlinKover = "0.7.5"
1616
ktlint = "0.50.0"
17-
mpdxLib = "3.0.4-SNAPSHOT"
17+
mpdxLib = "3.0.5-SNAPSHOT"
1818
moshi = "1.15.0"
1919
okhttp3 = "4.12.0"
2020
realm = "10.17.0"

0 commit comments

Comments
 (0)