Commit Graph

8 Commits

Author SHA1 Message Date
Elise Alix c2c8ae2183
fix: use version 0.10 for secp library (#95) 2023-04-21 14:12:13 -07:00
Pat Nakajima 9b2f0a2810
Return message ID from Conversation.send (#69)
* Return message ID from send

* Updates

* Make this test more resilient

* Remove test workflow (we're using xcode cloud now)

* discardable
2023-02-22 16:12:07 -08:00
Pat Nakajima 8f053e2ac4
Add Push Notification example (#43)
* WIP

* Add push notifications example

* Ignore this

* Remove prints

* Format

* remember to set this

* Make push server configurable

* remove prints

* remove comment

* format

* remove print

* remove this

* add comment

* fix lint
2023-01-31 23:32:32 +00:00
Pat Nakajima f6509c75ea
Remove wallet connect as an SDK dependency (#32) 2023-01-20 02:19:33 +00:00
Pat Nakajima 0c9f604139
Integrate message streaming and newConversation into example app (#14)
* wip

* Fix recovering key signed keys

* Found an issue in v2 conversation header generation

* Swift can talk to JS V2 now

* Skip this in ci again

* Fix lint

* Fix up v1 messaging

* Add more fields to DecodedMessage to display/sort better

Also style message list a little bit

* tiny style tweak

* Fix up warnings

* Fix lint

* Fix typo

* skip integration test

* Add more tests

* skip integration again

* Fix up preview client provider

* Remove print

* Fix flakey test

* Fix lint

* Introduce FakeApiClient for testing

* Add Conversations.newConversation

* Add message streaming for conversations

* Remove print()

* Remove unused imports

* Add coverage for filtering

* No need to detach these

* Didn't end up needing this

* Formatting

* Clarify test date and use milliseconds helper

* Add message streaming for conversations

* Remove print()

* Remove unused imports

* Add coverage for filtering

* No need to detach these

* Didn't end up needing this

* Formatting

* Remove second message since we're not filtering sender messages anymore

Also remove @MainActor bits since we don't actually need that

* Don't filter out sender messages

* Skip integration tests in CI

* Rename variable for clarity

* Move MessageCellView to its own file

* Ensure published key bundle is signed by wallet

* formatting

* Continue integration of progress into sample app

* More integration

* no need for these copies

* remove unnecessary print
2022-12-08 10:30:16 -08:00
Pat Nakajima a55f08d59d
feat: Integrate SDK into sample App (#11)
This PR starts exposing the public interface for the SDK. In the course of doing so, I realized that V2 messages weren't getting encoded/decoded properly, so I fixed that and added tests.

(Sidenote: I've been doing a lot of testing with a local node and a script in xmtp-js so I can verify the stuff I'm generating works properly with that. At some point it might be nice to try to standardize a format for end to end integration testing like that.)
2022-12-07 10:35:31 -08:00
Pat Nakajima ff0fc438ae
feat: fetch/store Contact bundles
Introduces a Client which can either fetch or generate a private key bundle for the signing key. We can then publish/fetch ContactBundle data.
2022-11-30 12:59:15 -08:00
Pat Nakajima 1ce99f00b6
feat: introduce actual wallet signing
This PR lets us use an actual wallet as a SigningKey instead of just a private key which was what we used in #2.

It also introduces the very beginnings of an example app that will get fleshed out as we start building an actual Client.

It also also introduces some very basic swiftlint rules.
2022-11-28 10:45:58 -08:00