Skip to content

Commit

Permalink
feat: update sfa android deps
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Goel <[email protected]>
  • Loading branch information
grvgoel81 authored and Gaurav Goel committed Dec 18, 2024
1 parent 4eb1db9 commit 93d8f48
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,18 @@ android {

dependencies {
// IMP START - Installation
implementation 'com.github.web3auth:single-factor-auth-android:3.0.0'
implementation 'com.github.grvgoel81:single-factor-auth-android:9.7.2'
// IMP END - Installation
implementation platform('com.google.firebase:firebase-bom:31.0.2')
implementation 'com.github.Web3Auth:session-manager-android:feat~namespace_addition_in_API-SNAPSHOT'
implementation 'com.google.firebase:firebase-auth-ktx'
implementation 'com.google.code.gson:gson:2.9.1'
implementation 'com.auth0.android:jwtdecode:2.0.2'
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.5.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
implementation 'org.web3j:core:4.8.8-android'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class MainActivity : AppCompatActivity() {
if(this.sessionData == null) {
Log.i("Session", "No active session found")
} else {
torusKey = sessionData!!.privKey
torusKey = sessionData!!.privateKey
publicAddress = sessionData!!.publicAddress
Log.i("Private Key", torusKey!!.trimIndent())
Log.i("User Info", sessionData!!.userInfo.toString())
Expand Down Expand Up @@ -112,7 +112,7 @@ class MainActivity : AppCompatActivity() {
val signMsgButton = findViewById<Button>(R.id.signMsgButton)
signMsgButton.setOnClickListener {
val credentials: Credentials =
Credentials.create(singleFactorAuth.getSessionData()?.privKey)
Credentials.create(singleFactorAuth.getSessionData()?.privateKey)
val params = JsonArray().apply {
add("Hello, World!")
add(credentials.address)
Expand Down Expand Up @@ -172,7 +172,7 @@ class MainActivity : AppCompatActivity() {
} catch (e: InterruptedException) {
e.printStackTrace()
}
torusKey = sessionData!!.privKey
torusKey = sessionData!!.privateKey
publicAddress = sessionData!!.publicAddress
Log.i("Private Key:", torusKey!!.trimIndent())
Log.i("Public Address:", publicAddress.trimIndent())
Expand Down

0 comments on commit 93d8f48

Please sign in to comment.