Open dzuluaga opened 3 months ago
Thanks @dzuluaga for reporting the issue.
Could you please elaborate more on this bit please?
AppCompatActivity does not contain an
onViewCreated()
method
If you go to Sample App and navigate to Main Activity you can see that there is indeed onCreate
function which can be overridden:
In our particular use case for Example Application, since we want to handle multiple providers, we are not initializing client straight away though, we're doing it in inside LoggedInFragment
like so:
The instructions provided in the README.md file cannot be followed as described. Specifically, the snippet provided in the "Getting Started" section suggests adding code to the
onViewCreated()
function withinMainActivity.kt
. However,AppCompatActivity
does not have anonViewCreated()
function, making it impossible to implement the code as directed.Steps to Reproduce
MainActivity.kt
inside anonViewCreated()
function.Expected Behavior
The README.md should provide accurate and usable instructions for setting up the OMH Auth client, including correct method references that align with standard Android development practices.
Actual Behavior
The suggested code snippet cannot be implemented as described because
AppCompatActivity
does not contain anonViewCreated()
method. This results in frustration and makes the SDK unusable in its current form.Suggested Fix
Impact
This issue is a blocker for developers trying to integrate the SDK, leading to frustration and delays. Immediate attention is required to address this and ensure the SDK is usable.
Request
Please have developers follow the steps outlined in the README.md to ensure that they are accurate and that the SDK is fully functional as described.