-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose timestamp on installations and make members async (#300)
* members is now async and takes a client param * update tests, update peerInboxIds to be suspend * remove param * jni libs and malformatted bindings * convert getters to suspend * lint * pull in updates from #299 * Move peerAddress back to a sync getter * lint * Undo readme change * format * format * update the formatting * update the library * update the test and return a list of installations * fix up and write tests * optimize the imports * revert some stuff * bump the binaries --------- Co-authored-by: Naomi Plasterer <[email protected]>
- Loading branch information
1 parent
51d4748
commit 1bc5bdc
Showing
17 changed files
with
183 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,3 +92,6 @@ lint/tmp/ | |
# lint/reports/ | ||
|
||
*google-services.json | ||
|
||
# OSX | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
Version: 34d32499 | ||
Version: 4f529aeb | ||
Branch: main | ||
Date: 2024-09-19 21:05:16 +0000 | ||
Date: 2024-09-26 04:05:26 +0000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
library/src/main/java/org/xmtp/android/library/libxmtp/Installation.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package uniffi.xmtpv3.org.xmtp.android.library.libxmtp | ||
|
||
import org.xmtp.android.library.toHex | ||
import uniffi.xmtpv3.FfiInstallation | ||
import java.util.Date | ||
|
||
class Installation(private val ffiInstallation: FfiInstallation) { | ||
val installationId: String | ||
get() = ffiInstallation.id.toHex() | ||
val createdAt: Date? | ||
get() = ffiInstallation.clientTimestampNs?.let { | ||
Date(it.toLong()) | ||
} | ||
} |
Oops, something went wrong.