Skip to content

Commit

Permalink
fix: bump the android version
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Jun 7, 2024
1 parent 886e5d6 commit c35adaf
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 43 deletions.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ repositories {
dependencies {
implementation project(':expo-modules-core')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${getKotlinVersion()}"
implementation "org.xmtp:android:0.12.2"
implementation "org.xmtp:android:0.12.3"
implementation 'com.google.code.gson:gson:2.10.1'
implementation 'com.facebook.react:react-native:0.71.3'
implementation "com.daveanthonythomas.moshipack:moshipack:1.0.1"
Expand Down
83 changes: 41 additions & 42 deletions example/src/tests/groupTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,50 +23,50 @@ function test(name: string, perform: () => Promise<boolean>) {
groupTests.push({ name: String(counter++) + '. ' + name, run: perform })
}

// test('can make a MLS V3 client', async () => {
// // eslint-disable-next-line @typescript-eslint/no-unused-vars
// const client = await Client.createRandom({
// env: 'local',
// appVersion: 'Testing/0.0.0',
// enableAlphaMls: true,
// })
test('can make a MLS V3 client', async () => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const client = await Client.createRandom({
env: 'local',
appVersion: 'Testing/0.0.0',
enableAlphaMls: true,
})

// return true
// })
return true
})

// test('can delete a local database', async () => {
// let [client, anotherClient] = await createClients(2)

// await client.conversations.newGroup([anotherClient.address])
// await client.conversations.syncGroups()
// assert(
// (await client.conversations.listGroups()).length === 1,
// `should have a group size of 1 but was ${
// (await client.conversations.listGroups()).length
// }`
// )

// await client.deleteLocalDatabase()
// client = await Client.createRandom({
// env: 'local',
// appVersion: 'Testing/0.0.0',
// enableAlphaMls: true,
// dbEncryptionKey: new Uint8Array([
// 233, 120, 198, 96, 154, 65, 132, 17, 132, 96, 250, 40, 103, 35, 125, 64,
// 166, 83, 208, 224, 254, 44, 205, 227, 175, 49, 234, 129, 74, 252, 135,
// 145,
// ]),
// })
// await client.conversations.syncGroups()
// assert(
// (await client.conversations.listGroups()).length === 0,
// `should have a group size of 0 but was ${
// (await client.conversations.listGroups()).length
// }`
// )
test('can delete a local database', async () => {
let [client, anotherClient] = await createClients(2)

// return true
// })
await client.conversations.newGroup([anotherClient.address])
await client.conversations.syncGroups()
assert(
(await client.conversations.listGroups()).length === 1,
`should have a group size of 1 but was ${
(await client.conversations.listGroups()).length
}`
)

await client.deleteLocalDatabase()
client = await Client.createRandom({
env: 'local',
appVersion: 'Testing/0.0.0',
enableAlphaMls: true,
dbEncryptionKey: new Uint8Array([
233, 120, 198, 96, 154, 65, 132, 17, 132, 96, 250, 40, 103, 35, 125, 64,
166, 83, 208, 224, 254, 44, 205, 227, 175, 49, 234, 129, 74, 252, 135,
145,
]),
})
await client.conversations.syncGroups()
assert(
(await client.conversations.listGroups()).length === 0,
`should have a group size of 0 but was ${
(await client.conversations.listGroups()).length
}`
)

return true
})

test('can make a MLS V3 client with encryption key and database directory', async () => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
Expand All @@ -75,7 +75,6 @@ test('can make a MLS V3 client with encryption key and database directory', asyn
if (!directoryExists) {
await RNFS.mkdir(dbDirPath)
}
console.log(dbDirPath)
const key = new Uint8Array([
233, 120, 198, 96, 154, 65, 132, 17, 132, 96, 250, 40, 103, 35, 125, 64,
166, 83, 208, 224, 254, 44, 205, 227, 175, 49, 234, 129, 74, 252, 135, 145,
Expand Down

0 comments on commit c35adaf

Please sign in to comment.