Skip to content

feat: auth-service v10 and wallet-service changes #114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 92 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
b7c402b
feat: auth-service v10 changes
grvgoel81 Apr 10, 2025
83cda5a
feat: UserInfo.kt updated
grvgoel81 Apr 14, 2025
35ad4c5
feat: Update code for wallet-services and request function. Example a…
grvgoel81 Apr 15, 2025
9037d60
feat: Update code for wallet-services and request function. Example a…
grvgoel81 Apr 15, 2025
eab3294
feat: Update code for wallet-services and request function
grvgoel81 Apr 21, 2025
c8269d4
feat: Resolved PR comments.
grvgoel81 Apr 22, 2025
1bfa09f
feat: Resolved PR comments.
grvgoel81 Apr 22, 2025
993d363
feat: Resolved PR comments.
grvgoel81 Apr 22, 2025
4776e6b
feat: Update AuthConnection nd example
grvgoel81 Apr 23, 2025
c69004a
feat: Update ChainConfig.kt
grvgoel81 Apr 24, 2025
e25259a
feat: Replace network to Web3AuthNetwork everywhere
grvgoel81 Apr 24, 2025
4bb0571
feat: Replace privKey to privateKey in Web3AuthResponse
grvgoel81 Apr 25, 2025
cce8771
feat: documentation added.
grvgoel81 Apr 28, 2025
8e38617
feat: for testing purpose
grvgoel81 Apr 29, 2025
57871c3
feat: for testing purpose
grvgoel81 Apr 29, 2025
bb10e73
feat: for testing purpose
grvgoel81 Apr 29, 2025
4f25de2
feat: replace AuthConnection jwt type to custom
grvgoel81 Apr 29, 2025
29f9151
feat: enabling minifyEnabled true in release mode.
grvgoel81 Apr 29, 2025
904235e
feat: enabling minifyEnabled true in release mode.
grvgoel81 Apr 30, 2025
9722693
feat: resolved PR comments
grvgoel81 May 13, 2025
43e5a71
feat: Add new parameters in LoginParams.kt
grvgoel81 May 14, 2025
a0d5a2d
feat: Add new parameters in LoginParams.kt
grvgoel81 May 14, 2025
7c5ee70
feat: update wallet-services to v5 version
grvgoel81 May 14, 2025
024a096
feat: update ExtraLoginOptions.kt
grvgoel81 May 15, 2025
a282188
feat: update ExtraLoginOptions.kt
grvgoel81 May 15, 2025
19184d9
feat: update ExtraLoginOptions.kt
grvgoel81 May 15, 2025
ffcd10d
feat: update Web3AuthOptions
grvgoel81 May 15, 2025
9a796e1
feat: update Web3AuthOptions
grvgoel81 May 15, 2025
f534157
feat: update Web3AuthOptions
grvgoel81 May 18, 2025
ec78c16
feat: update proguard-rules.pro
grvgoel81 May 18, 2025
08d1d65
feat: update build.gradle
grvgoel81 May 19, 2025
93e20df
feat: update build.gradle
grvgoel81 May 19, 2025
611df1a
feat: update consumer-rules.pro
grvgoel81 May 19, 2025
100a521
feat: update consumer-rules.pro
grvgoel81 May 19, 2025
1848048
feat: update Web3AuthOptions.kt
grvgoel81 May 19, 2025
f787920
feat: update InitParams.kt
grvgoel81 May 19, 2025
9f146c3
feat: initial commit for combined sdk
grvgoel81 May 22, 2025
8f31a45
feat: working code for login in pnp
grvgoel81 May 23, 2025
47baa82
feat: SFA login
grvgoel81 May 26, 2025
6f684ac
feat: project configuration API updates
grvgoel81 May 26, 2025
eda6519
feat: showWalletUI and request function updates
grvgoel81 May 26, 2025
795bfa5
feat: SFA example updates
grvgoel81 May 26, 2025
46b80fa
feat: SFA updates
grvgoel81 May 26, 2025
94203ec
feat: SFA updates
grvgoel81 May 26, 2025
308bb29
feat: SFA updates
grvgoel81 May 26, 2025
7367508
feat: testing purpose.
grvgoel81 May 27, 2025
06bb85b
feat: testing purpose.
grvgoel81 May 27, 2025
f484e01
feat: SFA wallet-services testing
grvgoel81 May 27, 2025
2f384a4
feat: SFA wallet-services testing
grvgoel81 May 27, 2025
e88c41c
feat: SFA wallet-services testing
grvgoel81 May 27, 2025
5c97ef9
feat: SFA wallet-services testing
grvgoel81 May 27, 2025
1cce83e
feat: SFA wallet-services testing
grvgoel81 May 27, 2025
3ccd89d
feat: SFA aggregateVerifier login added.
grvgoel81 May 27, 2025
a86f344
feat: add platform in request method.
grvgoel81 May 28, 2025
92e71d4
feat: update Web3AuthOptions
grvgoel81 May 29, 2025
ca068a7
feat: update Web3Auth for manage MFA flow
grvgoel81 May 30, 2025
83aa9a2
feat: update Web3Auth for manage MFA flow
grvgoel81 May 30, 2025
578e580
feat: update Web3Auth for manage MFA flow
grvgoel81 May 30, 2025
b9cbdbb
feat: update ProjectConfigResponse.kt
grvgoel81 May 30, 2025
fff78b3
feat: update LoginParams.kt
grvgoel81 May 30, 2025
8808940
feat: update context for SFA sdk
grvgoel81 Jun 4, 2025
1db0c03
feat: add defaultChainId
grvgoel81 Jun 5, 2025
475e683
feat: adding whitelabel setting in Web3AuthOptions.kt
grvgoel81 Jun 11, 2025
0b70022
feat: update MainActivity.kt
grvgoel81 Jun 19, 2025
375337f
feat: update processRequest method
grvgoel81 Jun 20, 2025
41768f2
feat: update Web3AuthResponse and processRequest method
grvgoel81 Jun 20, 2025
ab0504d
feat: update Web3AuthResponse and processRequest method
grvgoel81 Jun 23, 2025
032b84f
feat: throw error in case of SFA MFA user.
grvgoel81 Jun 26, 2025
8a2e904
feat: throw error in case of SFA MFA user.
grvgoel81 Jun 26, 2025
9749c3a
feat: Add sessionNameSpace in ws in sfa flow
grvgoel81 Jul 1, 2025
279e011
feat: Merged embeddedWalletAuth data with authConnectionConfig in Web…
grvgoel81 Jul 1, 2025
5d4bb7d
feat: Merged embeddedWalletAuth data with authConnectionConfig in Web…
grvgoel81 Jul 1, 2025
9781bc1
feat: SharedPrefsHelper added and replace smartAccounts key with acco…
grvgoel81 Jul 2, 2025
8ccfe00
feat: update SmartAccountsConfig schema
grvgoel81 Jul 2, 2025
bbb186a
feat: changes wrt sessionNameSpace
grvgoel81 Jul 3, 2025
82dbcc6
feat: changes wrt sessionNameSpace value
grvgoel81 Jul 3, 2025
c1ac6b8
feat: authConnectionConfig testing
grvgoel81 Jul 4, 2025
21fe372
feat: authConnectionConfig testing
grvgoel81 Jul 9, 2025
70cc54f
feat: Modify sessionManager initialization
grvgoel81 Jul 9, 2025
c8f888c
feat: Modify sessionManager initialization
grvgoel81 Jul 9, 2025
91c03c2
feat: Remove sessionNamespace from Web3AuthOptions
grvgoel81 Jul 9, 2025
f73c422
feat: Update ExtraLoginOptions
grvgoel81 Jul 10, 2025
c4f88d2
feat: modify defaultChainId value in showWalletUI
grvgoel81 Jul 10, 2025
159f506
feat: modify chainId value in showWalletUI
grvgoel81 Jul 10, 2025
7b87e8c
feat: example updates
grvgoel81 Jul 16, 2025
4e5d4c7
feat: add extra Auth Connection Info in enableMFA
grvgoel81 Jul 17, 2025
68ca3e4
feat: add extra Auth Connection Info in enableMFA
grvgoel81 Jul 17, 2025
ebfc17d
feat: code cleanup
grvgoel81 Jul 18, 2025
ed1f803
feat: add groupedAuthConnectionId in case of MFA
grvgoel81 Jul 21, 2025
d997507
feat: code cleanup
grvgoel81 Jul 29, 2025
afa2847
feat: Segment analytics initialization added
grvgoel81 Jul 31, 2025
1df095b
feat: Update example
grvgoel81 Aug 5, 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
7 changes: 6 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ android {

buildTypes {
release {
minifyEnabled true
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.debug
}
Expand Down Expand Up @@ -62,6 +62,11 @@ dependencies {

// Web3Auth
implementation project(":core")
api 'io.jsonwebtoken:jjwt-api:0.11.5'
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.11.5'
runtimeOnly('io.jsonwebtoken:jjwt-orgjson:0.11.5') {
exclude group: 'org.json', module: 'json' //provided by Android natively
}

// Test
testImplementation 'junit:junit:4.13.2'
Expand Down
8 changes: 8 additions & 0 deletions app/src/main/java/com/web3auth/app/AuthConnectionLogin.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.web3auth.app

import com.web3auth.core.types.AuthConnection

data class AuthConnectionLogin(
val name: String,
val authConnection: AuthConnection
)
8 changes: 0 additions & 8 deletions app/src/main/java/com/web3auth/app/LoginVerifier.kt

This file was deleted.

202 changes: 125 additions & 77 deletions app/src/main/java/com/web3auth/app/MainActivity.kt

Large diffs are not rendered by default.

19 changes: 16 additions & 3 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
tools:context="com.web3auth.app.MainActivity">

<com.google.android.material.textfield.TextInputLayout
android:id="@+id/verifierList"
android:id="@+id/authConnectionList"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
android:layout_width="match_parent"
android:layout_height="wrap_content"
Expand Down Expand Up @@ -39,7 +39,7 @@
android:backgroundTint="@color/black"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/verifierList" />
app:layout_constraintTop_toBottomOf="@id/authConnectionList" />


<TextView
Expand All @@ -66,7 +66,20 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"/>
app:layout_constraintBottom_toBottomOf="parent" />

<Button
android:id="@+id/sfaSignInButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="40dp"
android:layout_marginEnd="40dp"
android:layout_marginBottom="8dp"
android:text="SFA Sign In"
android:textAllCaps="false"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/signInButton" />

<Button
android:id="@+id/signOutButton"
Expand Down
27 changes: 24 additions & 3 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,16 @@ android {
}

buildTypes {
debug {
minifyEnabled false
debuggable true
}
release {
minifyEnabled true
minifyEnabled false
shrinkResources false
debuggable true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
consumerProguardFiles 'proguard-rules.pro', 'gson.pro', 'retrofit2.pro'
consumerProguardFiles 'proguard-rules.pro', 'gson.pro', 'retrofit2.pro', 'consumer-rules.pro'
}
}
compileOptions {
Expand Down Expand Up @@ -74,17 +80,32 @@ dependencies {

implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.2.0-alpha01"

//analytics library
implementation "com.segment.analytics.android:analytics:4.11.3"

api 'org.torusresearch:torus-utils-java:4.0.3'
api 'org.torusresearch:fetch-node-details-java:5.0.0'
implementation 'com.auth0.android:jwtdecode:2.0.2'

// Test
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
}

project.afterEvaluate {
afterEvaluate {
// 1. Define the sources JAR task
task androidSourcesJar(type: Jar) {
archiveClassifier.set("sources")
from android.sourceSets.main.java.srcDirs
}

// 2. Add sources JAR to the publishing
publishing {
publications {
release(MavenPublication) {
from components.release
artifact androidSourcesJar
}
}
}
Expand Down
17 changes: 17 additions & 0 deletions core/consumer-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,20 @@
-keep enum com.web3auth.core.types.ErrorCode {
*;
}

-keep @kotlin.Metadata class * { *; }
-keepclassmembers class * {
@kotlin.Metadata *;
}
-keepclassmembers class * {
<init>(...);
}
-keepattributes KotlinMetadata, Signature, InnerClasses, EnclosingMethod, *Annotation*
-keepclassmembers class com.web3auth.core.** {
public <init>(...);
}
-keep @androidx.annotation.Keep class * { *; }
-keepclassmembers class * {
@androidx.annotation.Keep *;
}

Loading
Loading