Skip to content

Commit f43ce76

Browse files
committed
manifest placeholders
1 parent 6e758ca commit f43ce76

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

app/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ android {
2020
targetSdkVersion 31
2121
versionCode 1
2222
versionName "1.0"
23+
manifestPlaceholders = [
24+
'torusRedirectScheme' : 'torusapp',
25+
'torusRedirectHost' : 'org.torusresearch.openloginexample',
26+
'torusRedirectPathPrefix': '/redirect'
27+
]
2328

2429
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2530
}

app/src/main/AndroidManifest.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
<category android:name="android.intent.category.DEFAULT" />
2828
<category android:name="android.intent.category.BROWSABLE" />
2929

30-
<!-- Accept URIs: http://localhost[:*]/redirect/* -->
3130
<data
32-
android:host="org.torusresearch.openloginexample"
33-
android:pathPrefix="/redirect"
34-
android:scheme="torusapp" />
31+
android:host="${torusRedirectHost}"
32+
android:pathPattern="/*"
33+
android:pathPrefix="${torusRedirectPathPrefix}"
34+
android:scheme="${torusRedirectScheme}" />
3535
</intent-filter>
3636
<intent-filter>
3737
<action android:name="android.intent.action.VIEW" />

app/src/main/res/layout/activity_main.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
android:id="@+id/etEmailHint"
3333
android:layout_width="match_parent"
3434
android:layout_height="wrap_content"
35+
android:hint="Enter Email"
3536
android:layout_margin="32dp"
3637
android:minHeight="48dp"
3738
android:visibility="gone"

core/src/main/java/com/openlogin/core/OpenLogin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class OpenLogin(openLoginOptions: OpenLoginOptions) {
113113
return loginCompletableFuture
114114
}
115115

116-
fun logout(params: Map<String, Any>? = null) : CompletableFuture<Void>{
116+
fun logout(params: Map<String, Any>? = null) : CompletableFuture<Void> {
117117
request("logout", params)
118118

119119
logoutCompletableFuture = CompletableFuture()

0 commit comments

Comments
 (0)