File tree Expand file tree Collapse file tree
android/src/main/java/com/youversion/reactnativesdk Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,12 +57,8 @@ class RNYouVersionPlatformModule : Module() {
5757 }
5858
5959 AsyncFunction (" chapter" ) Coroutine { bibleReference: BibleReferenceRecord ->
60- val context = appContext.reactContext
61- ? : throw IllegalStateException (" ReactContext is not available yet" )
62-
6360 return @Coroutine YVPBibleApi .chapter(
64- bibleReference = bibleReference,
65- context = context
61+ bibleReference = bibleReference
6662 )
6763 }
6864
Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ package com.youversion.reactnativesdk.api
22
33import android.content.Context
44import com.youversion.platform.core.api.YouVersionApi
5- import com.youversion.platform.core.bibles.domain.BibleReference
6- import com.youversion.platform.core.bibles.domain.BibleVersionRepository
75
86object YVPBibleApi {
97 suspend fun versions (languageTag : String? ): List <BibleVersionRecord > {
@@ -26,7 +24,7 @@ object YVPBibleApi {
2624 return record
2725 }
2826
29- suspend fun chapter (bibleReference : BibleReferenceRecord , context : Context ): String {
27+ suspend fun chapter (bibleReference : BibleReferenceRecord ): String {
3028 val passageId = bibleReference.bookUSFM + " ." + bibleReference.chapter.toString()
3129
3230 val response = YouVersionApi .bible.passage(
You can’t perform that action at this time.
0 commit comments