YPE-1168 - Fix react native example app builds#33
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
Greptile OverviewGreptile SummaryUpdated React Native SDK to support YouVersion Platform SDK 0.6.0, fixing build issues in the example app. Key Changes
Issues Found
Confidence Score: 3/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant RN as React Native App
participant Module as RN Platform Module
participant API as YVP API (Kotlin/Swift)
participant SDK as YouVersion SDK 0.6.0
Note over RN,SDK: Bible Versions API Flow (Android)
RN->>Module: getBibleVersions(languageTag)
Module->>API: YVPBibleApi.versions(languageTag)
API->>SDK: YouVersionApi.bible.versions(languageTag)
SDK-->>API: PaginatedResponse<BibleVersion>
Note over API: Cannot import PaginatedResponse type
API->>API: response.extractPaginatedData()
Note over API: Uses reflection to access 'data' field
API->>API: dataList.map { BibleVersionRecord(it) }
API-->>Module: List<BibleVersionRecord>
Module-->>RN: Bible versions array
Note over RN,SDK: User Info API Flow (iOS)
RN->>Module: getUserInfo()
Note over Module: No accessToken param needed
Module->>API: YVPAuthAPI.userInfo(promise)
API->>SDK: YouVersionAPI.Users.currentUser*
Note over SDK: Uses SDK's stored current user
SDK-->>API: User properties
API-->>Module: User info object
Module-->>RN: User info
Note over RN,SDK: Sign In Button (Android)
RN->>Module: Render SignInButton
Module->>API: YVPSignInWithYouVersionButton.Content()
Note over API: Wraps button in clickable Box
API->>SDK: SignInWithYouVersionButton(permissions)
Note over SDK: Requires permissions parameter in 0.6.0
SDK-->>API: Rendered button
API-->>RN: Display button
|
|
@greptileai This code has been updated can you review it again? |
|
@greptileai latest Push has some clean up and should be reviewed again. |
|
@mic-mart @sidorchukandrew this builds for me and and this PR should be the minimum of what is needed for example apps to build. |
bmanquen
left a comment
There was a problem hiding this comment.
Curious to see what @sidorchukandrew says about all of this as I am trying to learn more about Android and iOS.
There was a problem hiding this comment.
Is this something that we want to commit or is this just documented reasoning/information for us to read right now?
There was a problem hiding this comment.
it was just documentation I am going to work on removing it.
|
This is Additionally, I've got a PR open to handle upgrading to version |
The reason I included the 6.0 upgrade and the paginated response stuff is so this or could get both iOS and android versions of the example app to build. I am open to other solves but this was the minimum I had to do to get it to build successfully |
|
@camrun91 Yes, I definitely hear you. That makes 100% sense. You could drop it from this PR and rebase off my PR/branch? |
Yep I will rebase now that your pr is in |
Signed-off-by: Cameron Llewellyn <cameron.b.llewellyn@gmail.com>
|
@sidorchukandrew I am going to close this one and do one PR to fix the IOS stuff and then if another is needed for android I will put one up for it. |
Description
Update the example code and needed configs to successfully build and run.
Type of Change
feat:New feature (non-breaking change which adds functionality)fix:Bug fix (non-breaking change which fixes an issue)docs:Documentation updaterefactor:Code refactoring (no functional changes)perf:Performance improvementtest:Test additions or updatesbuild:Build system or dependency changesci:CI configuration changeschore:Other changes (maintenance, etc.)Checklist