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

Please provide a doc that helps migrate 1.5.6 code to the latest version #276

Open
inder123 opened this issue Sep 3, 2023 · 3 comments
Open

Comments

@inder123
Copy link

inder123 commented Sep 3, 2023

Is your feature request related to a problem? Please describe.
We used 1.5.6 version in our code and just call Pix.start(@myActivityContext, options) and use onActivityResult() method to handle the response. I can't figure out how to convert this code to the latest 1.6.3 version since there is no activity (similar to Pix) that I can call.

Describe the solution you'd like
The options could be:

  1. A clear doc explaining how to rewrite the old code to fit the new usage
  2. A sample activity that is equivalent to Pix that we just call

I need to make this transition since the old Pix library is ONLY available in jcenter() and jcenter() is deprecated.
Thanks

@duadhruv
Copy link

@inder123 did you figure out the migration?

@inder123
Copy link
Author

No. I thought of taking the Pix activity from the previous version and rewriting it with the new one, but didn't get around to do it.

@duadhruv
Copy link

addPixToActivity(R.id.container, options) {
          when (it.status) {
              PixEventCallback.Status.SUCCESS -> //use results as it.data
              PixEventCallback.Status.BACK_PRESSED -> // back pressed called
          }
      }

Were you able to convert this to a java code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants