Initial commit: Pezkuwi Wallet Android

Security hardened release:
- Code obfuscation enabled (minifyEnabled=true, shrinkResources=true)
- Sensitive files excluded (google-services.json, keystores)
- Branch.io key moved to BuildConfig placeholder
- Updated dependencies: OkHttp 4.12.0, Gson 2.10.1, BouncyCastle 1.77
- Comprehensive ProGuard rules for crypto wallet
- Navigation 2.7.7, Lifecycle 2.7.0, ConstraintLayout 2.1.4
This commit is contained in:
2026-02-12 05:19:41 +03:00
commit a294aa1a6b
7687 changed files with 441811 additions and 0 deletions
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
</manifest>
@@ -0,0 +1,14 @@
package io.novafoundation.nova.feature_wallet_connect_api.di
import io.novafoundation.nova.feature_wallet_connect_api.di.deeplinks.WalletConnectDeepLinks
import io.novafoundation.nova.feature_wallet_connect_api.domain.sessions.WalletConnectSessionsUseCase
import io.novafoundation.nova.feature_wallet_connect_api.presentation.WalletConnectService
interface WalletConnectFeatureApi {
val walletConnectService: WalletConnectService
val sessionsUseCase: WalletConnectSessionsUseCase
val walletConnectDeepLinks: WalletConnectDeepLinks
}
@@ -0,0 +1,5 @@
package io.novafoundation.nova.feature_wallet_connect_api.di.deeplinks
import io.novafoundation.nova.feature_deep_linking.presentation.handling.DeepLinkHandler
class WalletConnectDeepLinks(val deepLinkHandlers: List<DeepLinkHandler>)
@@ -0,0 +1,15 @@
package io.novafoundation.nova.feature_wallet_connect_api.domain.sessions
import io.novafoundation.nova.feature_account_api.domain.model.MetaAccount
import kotlinx.coroutines.flow.Flow
interface WalletConnectSessionsUseCase {
fun activeSessionsNumberFlow(): Flow<Int>
fun activeSessionsNumberFlow(metaAccount: MetaAccount): Flow<Int>
suspend fun activeSessionsNumber(): Int
suspend fun syncActiveSessions()
}
@@ -0,0 +1,15 @@
package io.novafoundation.nova.feature_wallet_connect_api.presentation
import androidx.lifecycle.LiveData
import io.novafoundation.nova.common.utils.Event
interface WalletConnectService {
val onPairErrorLiveData: LiveData<Event<Throwable>>
fun connect()
fun disconnect()
fun pair(uri: String)
}
@@ -0,0 +1,13 @@
package io.novafoundation.nova.feature_wallet_connect_api.presentation
import io.novafoundation.nova.common.utils.formatting.format
class WalletConnectSessionsModel(val connections: String?)
fun mapNumberOfActiveSessionsToUi(activeSessions: Int): WalletConnectSessionsModel {
return if (activeSessions > 0) {
WalletConnectSessionsModel(activeSessions.format())
} else {
WalletConnectSessionsModel(null)
}
}
@@ -0,0 +1,14 @@
package io.novafoundation.nova.feature_wallet_connect_api.presentation.utils
import android.net.Uri
object WalletConnectUtils {
fun isWalletConnectPairingLink(data: Uri): Boolean {
val isPezkuwiLink = data.scheme == "pezkuwiwallet" && data.host == "wc"
val isLinkFromOtherSource = data.scheme == "wc"
val isWalletConnectLink = isPezkuwiLink || isLinkFromOtherSource
val isPairing = "symKey" in data.toString()
return isWalletConnectLink && isPairing
}
}