Skip to content
Closed
Show file tree
Hide file tree
Changes from 47 commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
4acb3fe
feat: global schemas
coodos Jun 9, 2025
928517e
feat: blabsy adapter
coodos Jun 9, 2025
fc16e36
chore: stash progress
coodos Jun 9, 2025
73bf0a9
Merge branch 'main' of github.com:MetaState-Prototype-Project/prototy…
coodos Jun 9, 2025
660ccea
chore: stash adapters
coodos Jun 11, 2025
f86c960
chore: stash working extractor
coodos Jun 12, 2025
53a9c86
feat: adapter working properly for translating to global with globalIDs
coodos Jun 13, 2025
bd2ce9d
feat: adapter toGlobal pristine
coodos Jun 13, 2025
ec6f6d3
chore: stash
coodos Jun 13, 2025
44710de
feat: adapter working
coodos Jun 14, 2025
7c62a69
chore: stash until global translation from pictique
coodos Jun 15, 2025
671d1f6
feat: bi-directional sync prestino
coodos Jun 15, 2025
a50a6f4
feat: bidir adapters
coodos Jun 15, 2025
0ee3c86
chore: login redir
coodos Jun 15, 2025
77d9aa3
chore: swap out for sqlite3
coodos Jun 15, 2025
e3acff1
chore: swap out for sqlite3
coodos Jun 15, 2025
758e981
chore: server conf
coodos Jun 15, 2025
83b67b0
feat: messages one way
coodos Jun 16, 2025
04508e5
feat: ready to deploy
coodos Jun 16, 2025
e86c243
feat: ready to deploy
coodos Jun 16, 2025
ef795a2
Merge branch 'feat/w3ds-adapters' of github.com:MetaState-Prototype-P…
coodos Jun 16, 2025
9429196
chore: auth thing pictique
coodos Jun 16, 2025
8fb5612
chore: set adapter to node
coodos Jun 16, 2025
246ed56
chore: fix auth token thingy
coodos Jun 16, 2025
d575014
chore: auth thing
coodos Jun 16, 2025
4ed3421
chore: fix auth token thingy
coodos Jun 16, 2025
91693f8
chore: port for blabsy
coodos Jun 16, 2025
ebd9f7f
feat: provision stuff
coodos Jun 16, 2025
2c581c9
feat: provision
coodos Jun 16, 2025
0d794d7
feat: provision
coodos Jun 16, 2025
914e62a
feat: provision
coodos Jun 16, 2025
8db89db
chore: fix sync
coodos Jun 17, 2025
061e3cd
feat: temporary id thing
coodos Jun 18, 2025
3dbefa3
chore: android
coodos Jun 19, 2025
b94e693
chore: fix mapper sync
coodos Jun 19, 2025
a5c3bd2
chore: fallback
coodos Jun 19, 2025
c51957e
feat: add error handling on stores
coodos Jun 19, 2025
cc48835
feat: fix issue with posts
coodos Jun 19, 2025
ed8268a
chore: fix retry loop
coodos Jun 19, 2025
4178da1
Fix/author details (#229)
grv-saini-20 Jun 22, 2025
236af86
Fix/change name (#228)
Sahil2004 Jun 22, 2025
6f5f9cb
fix: avatars (#226)
grv-saini-20 Jun 22, 2025
8dd12e9
chore: temp fix sync
coodos Jun 23, 2025
32d4e30
chore: stash progress
coodos Jun 23, 2025
190e690
Fix/post context menu (#231)
grv-saini-20 Jun 23, 2025
eb2dc56
fix: minor-fallback-issues
grv-saini-20 Jun 24, 2025
5fc2ed2
fix: added a follow option to three dots of post
grv-saini-20 Jun 24, 2025
ebfd79b
fix: aspect-ratio of avatar and fixed bottom nav
grv-saini-20 Jun 24, 2025
171ba65
fix: comments in home page
grv-saini-20 Jun 24, 2025
45bd18f
fix: format
grv-saini-20 Jun 24, 2025
09b6799
fix: empty screen on messages page
grv-saini-20 Jun 24, 2025
3c945fa
fix: comments for mobile
grv-saini-20 Jun 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions infrastructure/eid-wallet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"dependencies": {
"@hugeicons/core-free-icons": "^1.0.13",
"@hugeicons/svelte": "^1.0.2",
"@ngneat/falso": "^7.3.0",
"@tailwindcss/container-queries": "^0.1.1",
"@tauri-apps/api": "^2",
"@tauri-apps/plugin-barcode-scanner": "^2.2.0",
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/src/main/java/com/eid_wallet/app/generated
/src/main/java/io/tanglelabs/metastate/eid_wallet/generated
/src/main/jniLibs/**/*.so
/src/main/assets/tauri.conf.json
/tauri.build.gradle.kts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ val tauriProperties = Properties().apply {

android {
compileSdk = 34
namespace = "com.eid_wallet.app"
namespace = "io.tanglelabs.metastate.eid_wallet"
defaultConfig {
manifestPlaceholders["usesCleartextTraffic"] = "false"
applicationId = "com.eid_wallet.app"
applicationId = "io.tanglelabs.metastate.eid_wallet"
minSdk = 24
targetSdk = 34
versionCode = tauriProperties.getProperty("tauri.android.versionCode", "1").toInt()
versionName = tauriProperties.getProperty("tauri.android.versionName", "1.0")
versionName = tauriProperties.getProperty("tauri.android.versionName", "1.0")
}
buildTypes {
getByName("debug") {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/* THIS FILE IS AUTO-GENERATED. DO NOT MODIFY!! */

// Copyright 2020-2023 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT

@file:Suppress("unused")

package com.eid_wallet.app

import android.webkit.*

class Ipc(val webViewClient: RustWebViewClient) {
@JavascriptInterface
fun postMessage(message: String?) {
message?.let {m ->
// we're not using WebView::getUrl() here because it needs to be executed on the main thread
// and it would slow down the Ipc
// so instead we track the current URL on the webview client
this.ipc(webViewClient.currentUrl, m)
}
}

companion object {
init {
System.loadLibrary("eid_wallet_lib")
}
}

private external fun ipc(url: String, message: String)


}
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
/* THIS FILE IS AUTO-GENERATED. DO NOT MODIFY!! */

// Copyright 2020-2023 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT

@file:Suppress("unused", "MemberVisibilityCanBePrivate")

package com.eid_wallet.app

// taken from https://github.com/ionic-team/capacitor/blob/6658bca41e78239347e458175b14ca8bd5c1d6e8/android/capacitor/src/main/java/com/getcapacitor/Logger.java

import android.text.TextUtils
import android.util.Log

class Logger {
companion object {
private const val LOG_TAG_CORE = "Tauri"

fun tags(vararg subtags: String): String {
return if (subtags.isNotEmpty()) {
LOG_TAG_CORE + "/" + TextUtils.join("/", subtags)
} else LOG_TAG_CORE
}

fun verbose(message: String) {
verbose(LOG_TAG_CORE, message)
}

private fun verbose(tag: String, message: String) {
if (!shouldLog()) {
return
}
Log.v(tag, message)
}

fun debug(message: String) {
debug(LOG_TAG_CORE, message)
}

fun debug(tag: String, message: String) {
if (!shouldLog()) {
return
}
Log.d(tag, message)
}

fun info(message: String) {
info(LOG_TAG_CORE, message)
}

fun info(tag: String, message: String) {
if (!shouldLog()) {
return
}
Log.i(tag, message)
}

fun warn(message: String) {
warn(LOG_TAG_CORE, message)
}

fun warn(tag: String, message: String) {
if (!shouldLog()) {
return
}
Log.w(tag, message)
}

fun error(message: String) {
error(LOG_TAG_CORE, message, null)
}

fun error(message: String, e: Throwable?) {
error(LOG_TAG_CORE, message, e)
}

fun error(tag: String, message: String, e: Throwable?) {
if (!shouldLog()) {
return
}
Log.e(tag, message, e)
}

private fun shouldLog(): Boolean {
return BuildConfig.DEBUG
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
/* THIS FILE IS AUTO-GENERATED. DO NOT MODIFY!! */

// Copyright 2020-2023 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT

package com.eid_wallet.app

// taken from https://github.com/ionic-team/capacitor/blob/6658bca41e78239347e458175b14ca8bd5c1d6e8/android/capacitor/src/main/java/com/getcapacitor/PermissionHelper.java

import android.content.Context
import android.content.pm.PackageManager
import android.os.Build
import androidx.core.app.ActivityCompat
import java.util.ArrayList

object PermissionHelper {
/**
* Checks if a list of given permissions are all granted by the user
*
* @param permissions Permissions to check.
* @return True if all permissions are granted, false if at least one is not.
*/
fun hasPermissions(context: Context?, permissions: Array<String>): Boolean {
for (perm in permissions) {
if (ActivityCompat.checkSelfPermission(
context!!,
perm
) != PackageManager.PERMISSION_GRANTED
) {
return false
}
}
return true
}

/**
* Check whether the given permission has been defined in the AndroidManifest.xml
*
* @param permission A permission to check.
* @return True if the permission has been defined in the Manifest, false if not.
*/
fun hasDefinedPermission(context: Context, permission: String): Boolean {
var hasPermission = false
val requestedPermissions = getManifestPermissions(context)
if (!requestedPermissions.isNullOrEmpty()) {
val requestedPermissionsList = listOf(*requestedPermissions)
val requestedPermissionsArrayList = ArrayList(requestedPermissionsList)
if (requestedPermissionsArrayList.contains(permission)) {
hasPermission = true
}
}
return hasPermission
}

/**
* Check whether all of the given permissions have been defined in the AndroidManifest.xml
* @param context the app context
* @param permissions a list of permissions
* @return true only if all permissions are defined in the AndroidManifest.xml
*/
fun hasDefinedPermissions(context: Context, permissions: Array<String>): Boolean {
for (permission in permissions) {
if (!hasDefinedPermission(context, permission)) {
return false
}
}
return true
}

/**
* Get the permissions defined in AndroidManifest.xml
*
* @return The permissions defined in AndroidManifest.xml
*/
private fun getManifestPermissions(context: Context): Array<String>? {
var requestedPermissions: Array<String>? = null
try {
val pm = context.packageManager
val packageInfo = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
pm.getPackageInfo(context.packageName, PackageManager.PackageInfoFlags.of(PackageManager.GET_PERMISSIONS.toLong()))
} else {
@Suppress("DEPRECATION")
pm.getPackageInfo(context.packageName, PackageManager.GET_PERMISSIONS)
}
if (packageInfo != null) {
requestedPermissions = packageInfo.requestedPermissions
}
} catch (_: Exception) {
}
return requestedPermissions
}

/**
* Given a list of permissions, return a new list with the ones not present in AndroidManifest.xml
*
* @param neededPermissions The permissions needed.
* @return The permissions not present in AndroidManifest.xml
*/
fun getUndefinedPermissions(context: Context, neededPermissions: Array<String?>): Array<String?> {
val undefinedPermissions = ArrayList<String?>()
val requestedPermissions = getManifestPermissions(context)
if (!requestedPermissions.isNullOrEmpty()) {
val requestedPermissionsList = listOf(*requestedPermissions)
val requestedPermissionsArrayList = ArrayList(requestedPermissionsList)
for (permission in neededPermissions) {
if (!requestedPermissionsArrayList.contains(permission)) {
undefinedPermissions.add(permission)
}
}
var undefinedPermissionArray = arrayOfNulls<String>(undefinedPermissions.size)
undefinedPermissionArray = undefinedPermissions.toArray(undefinedPermissionArray)
return undefinedPermissionArray
}
return neededPermissions
}
}
Loading
Loading