-
Notifications
You must be signed in to change notification settings - Fork 16
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
feat: add PreEventCallback #144
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I just want to know why the use of @Ignore("CI issues")
@@ -85,6 +89,7 @@ class ClientTest { | |||
} | |||
|
|||
@Test | |||
@Ignore("CI Issues") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why is using this @Ignore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as you can see here we can not run a local environment on CI. is the reason why most of the test that requires create a Client are ignored
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You actually can run in the local environment in CI. IOS is the only repo who has that issue. You can see more of how this is setup here https://github.com/xmtp/xmtp-android/blob/main/.github/workflows/test.yml#L51
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so why was the test pass in my local and it didn’t in CI? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kele-leanes can you link me to the CI that failed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/xmtp/xmtp-android/actions/runs/7106161017/job/19344969828 It seems there is an error creating the client
Do you mind writing up a detailed issue body so future developers can understand the changes made here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kele-leanes Do you mind writing up how you see this working in React Native. It's just hard to see the whole picture here and would like more information how you envision this threading together. 🙏
library/src/androidTest/java/org/xmtp/android/library/ClientTest.kt
Outdated
Show resolved
Hide resolved
library/src/androidTest/java/org/xmtp/android/library/ClientTest.kt
Outdated
Show resolved
Hide resolved
@nplasterer |
Thanks @kele-leanes for the explanation and working code in RN. I'll give this another pass later today on the tests and get it merged for you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just did a small clean up of some of the methods 👍
Description:
This PR introduces the
preEnableIdentityCallback
andpreCreateIdentityCallback
to the ClientOptions object to be called before enabling and creating an identity.This feature is the starting point of this issue