Skip to content

Commit

Permalink
Merge branch 'master' of github.com:torusresearch/web3auth-android-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyapotti committed Mar 18, 2022
2 parents 2a6cc95 + 575bc88 commit fab8802
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .idea/.name

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

2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ android {
versionName "1.0"
manifestPlaceholders = [
'torusRedirectScheme' : 'torusapp',
'torusRedirectHost' : 'org.torusresearch.openloginexample',
'torusRedirectHost' : 'org.torusresearch.web3authexample',
'torusRedirectPathPrefix': '/redirect'
]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.openlogin.app
package com.web3auth.app

import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
Expand All @@ -17,6 +17,6 @@ class ExampleInstrumentedTest {
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.openlogin.app", appContext.packageName)
assertEquals("com.web3auth.app", appContext.packageName)
}
}
4 changes: 2 additions & 2 deletions app/src/main/java/com/web3auth/app/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ class MainActivity : AppCompatActivity(), AdapterView.OnItemClickListener {
// Configure Web3Auth
web3Auth = Web3Auth(
Web3AuthOptions(context = this,
clientId = getString(R.string.openlogin_project_id),
clientId = getString(R.string.web3auth_project_id),
network = Web3Auth.Network.MAINNET,
redirectUrl = Uri.parse("torusapp://org.torusresearch.openloginexample/redirect"),
redirectUrl = Uri.parse("torusapp://org.torusresearch.web3authexample/redirect"),
whiteLabel = WhiteLabelData(
"Web3Auth Sample App", null, null, "en", true,
hashMapOf(
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<resources>
<string name="app_name">Torus Web3Auth</string>
<string name="openlogin_project_id">BCtbnOamqh0cJFEUYA0NB5YkvBECZ3HLZsKfvSRBvew2EiiKW3UxpyQASSR0artjQkiUOCHeZ_ZeygXpYpxZjOs</string>
<string name="web3auth_project_id">BASdZxp5tWqPGkzbOU4VMJsnz8QOpJ2pyxf6kZcuxI8AJ1gsOw5MgbW96RpAAx_Kk-5p4rhOopPhCa9kR_9mKpE</string>
<string name="sign_in">Sign in</string>
<string name="not_logged_in">Not logged in</string>
<string name="sign_out">Sign out</string>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.openlogin.core
package com.web3auth.core

import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
Expand All @@ -17,6 +17,6 @@ class ExampleInstrumentedTest {
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.openlogin.core.test", appContext.packageName)
assertEquals("com.web3auth.core.test", appContext.packageName)
}
}
4 changes: 2 additions & 2 deletions core/src/main/java/com/web3auth/core/Utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ val ALLOWED_CUSTOM_TABS_PACKAGES =
)

fun Context.doesDefaultBrowserSupportCustomTabs(): Boolean {
val defaultBrowserIntent = Intent(Intent.ACTION_VIEW, Uri.parse("https://openlogin.com"));
val defaultBrowserIntent = Intent(Intent.ACTION_VIEW, Uri.parse("https://web3auth.io"));

val `package` = packageManager.resolveActivity(
defaultBrowserIntent,
Expand All @@ -43,7 +43,7 @@ fun String.isEmailValid(): Boolean {
}

fun Context.getDefaultBrowser(): String? {
val intent = Intent(Intent.ACTION_VIEW, Uri.parse("https://openlogin.com"))
val intent = Intent(Intent.ACTION_VIEW, Uri.parse("https://web3auth.io"))
val resolveInfo = packageManager.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY)
?: return null
val activityInfo = resolveInfo.activityInfo ?: return null
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
rootProject.name = "openlogin"
rootProject.name = "web3auth"
include ':core'
include ':app'

0 comments on commit fab8802

Please sign in to comment.