Fix platform build issues
parent
1d00f3b984
commit
84dac9fa39
|
@ -15,7 +15,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@adxp/auth": "*",
|
"@adxp/auth": "*",
|
||||||
"@adxp/common": "*",
|
"@adxp/common": "*",
|
||||||
"@adxp/mock-api": "git+ssh://git@github.com:bluesky-social/adx-mock-api.git#dc669c19d46b6b98dd692f493276303667670502",
|
"@adxp/mock-api": "git+ssh://git@github.com:bluesky-social/adx-mock-api.git#0bccd04217c78a7c9786a45684ac2ffb9767429b",
|
||||||
"@react-native-async-storage/async-storage": "^1.17.6",
|
"@react-native-async-storage/async-storage": "^1.17.6",
|
||||||
"@react-navigation/bottom-tabs": "^6.3.1",
|
"@react-navigation/bottom-tabs": "^6.3.1",
|
||||||
"@react-navigation/native": "^6.0.10",
|
"@react-navigation/native": "^6.0.10",
|
||||||
|
|
|
@ -140,9 +140,7 @@ export async function generateMockData() {
|
||||||
reply: {root: alicePosts[0].uri, parent: alicePosts[0].uri},
|
reply: {root: alicePosts[0].uri, parent: alicePosts[0].uri},
|
||||||
createdAt: date.next().value,
|
createdAt: date.next().value,
|
||||||
})
|
})
|
||||||
const carlaReply1 = await carla
|
await carla.collection('blueskyweb.xyz:Posts').create('Post', {
|
||||||
.collection('blueskyweb.xyz:Posts')
|
|
||||||
.create('Post', {
|
|
||||||
$type: 'blueskyweb.xyz:Post',
|
$type: 'blueskyweb.xyz:Post',
|
||||||
text: 'Carla reply',
|
text: 'Carla reply',
|
||||||
reply: {root: alicePosts[0].uri, parent: alicePosts[0].uri},
|
reply: {root: alicePosts[0].uri, parent: alicePosts[0].uri},
|
||||||
|
@ -222,9 +220,7 @@ export async function generateMockData() {
|
||||||
assertion: {type: 'tag', tag: 'tech'},
|
assertion: {type: 'tag', tag: 'tech'},
|
||||||
createdAt: date.next().value,
|
createdAt: date.next().value,
|
||||||
})
|
})
|
||||||
const employeeBadge = await bob
|
await bob.collection('blueskyweb.xyz:Badges').create('Badge', {
|
||||||
.collection('blueskyweb.xyz:Badges')
|
|
||||||
.create('Badge', {
|
|
||||||
$type: 'blueskyweb.xyz:Badge',
|
$type: 'blueskyweb.xyz:Badge',
|
||||||
subject: {did: alice.did, name: 'alice.com'},
|
subject: {did: alice.did, name: 'alice.com'},
|
||||||
assertion: {type: 'employee'},
|
assertion: {type: 'employee'},
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import {Instance, SnapshotOut, types, flow} from 'mobx-state-tree'
|
import {Instance, SnapshotOut, types, flow} from 'mobx-state-tree'
|
||||||
// import {UserConfig} from '../../api'
|
// import {UserConfig} from '../../api'
|
||||||
import * as auth from '../lib/auth'
|
// import * as auth from '../lib/auth'
|
||||||
import {withEnvironment} from '../env'
|
import {withEnvironment} from '../env'
|
||||||
|
|
||||||
export const SessionModel = types
|
export const SessionModel = types
|
||||||
|
@ -21,7 +21,7 @@ export const SessionModel = types
|
||||||
self.isAuthed = v
|
self.isAuthed = v
|
||||||
},
|
},
|
||||||
login: flow(function* () {
|
login: flow(function* () {
|
||||||
self.uiIsProcessing = true
|
/*self.uiIsProcessing = true
|
||||||
self.uiError = undefined
|
self.uiError = undefined
|
||||||
try {
|
try {
|
||||||
if (!self.env.authStore) {
|
if (!self.env.authStore) {
|
||||||
|
@ -36,10 +36,10 @@ export const SessionModel = types
|
||||||
self.uiError = e.toString()
|
self.uiError = e.toString()
|
||||||
self.uiIsProcessing = false
|
self.uiIsProcessing = false
|
||||||
return false
|
return false
|
||||||
}
|
}*/
|
||||||
}),
|
}),
|
||||||
logout: flow(function* () {
|
logout: flow(function* () {
|
||||||
self.uiIsProcessing = true
|
/*self.uiIsProcessing = true
|
||||||
self.uiError = undefined
|
self.uiError = undefined
|
||||||
try {
|
try {
|
||||||
if (!self.env.authStore) {
|
if (!self.env.authStore) {
|
||||||
|
@ -54,7 +54,7 @@ export const SessionModel = types
|
||||||
self.uiError = e.toString()
|
self.uiError = e.toString()
|
||||||
self.uiIsProcessing = false
|
self.uiIsProcessing = false
|
||||||
return false
|
return false
|
||||||
}
|
}*/
|
||||||
}),
|
}),
|
||||||
/*loadAccount: flow(function* () {
|
/*loadAccount: flow(function* () {
|
||||||
self.uiIsProcessing = true
|
self.uiIsProcessing = true
|
||||||
|
|
|
@ -55,9 +55,9 @@
|
||||||
ucans "0.9.0-alpha3"
|
ucans "0.9.0-alpha3"
|
||||||
uint8arrays "^3.0.0"
|
uint8arrays "^3.0.0"
|
||||||
|
|
||||||
"@adxp/mock-api@git+ssh://git@github.com:bluesky-social/adx-mock-api.git#dc669c19d46b6b98dd692f493276303667670502":
|
"@adxp/mock-api@git+ssh://git@github.com:bluesky-social/adx-mock-api.git#0bccd04217c78a7c9786a45684ac2ffb9767429b":
|
||||||
version "0.0.1"
|
version "0.0.1"
|
||||||
resolved "git+ssh://git@github.com:bluesky-social/adx-mock-api.git#dc669c19d46b6b98dd692f493276303667670502"
|
resolved "git+ssh://git@github.com:bluesky-social/adx-mock-api.git#0bccd04217c78a7c9786a45684ac2ffb9767429b"
|
||||||
dependencies:
|
dependencies:
|
||||||
ajv "^8.11.0"
|
ajv "^8.11.0"
|
||||||
ajv-formats "^2.1.1"
|
ajv-formats "^2.1.1"
|
||||||
|
|
Loading…
Reference in New Issue