Skip to content

Commit

Permalink
Additional manifestplaceholders
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaven-stytch committed Dec 12, 2024
1 parent 0525c92 commit ee00f0a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ android {
manifestPlaceholders = [
'stytchOAuthRedirectScheme': '[YOUR_AUTH_SCHEME]', // eg: 'app'
'stytchOAuthRedirectHost': '[YOUR_AUTH_HOST]', // eg: 'myhost'
'STYTCH_PUBLIC_TOKEN': '[STYTCH_PUBLIC_TOKEN]',
'STYTCH_PUBLIC_TOKEN': '[STYTCH_PUBLIC_TOKEN]', // if using B2C, else empty string
'STYTCH_B2B_PUBLIC_TOKEN': '[STYTCH_B2B_PUBLIC_TOKEN'], // if using B2B, else empty string
]
...
}
Expand Down
1 change: 1 addition & 0 deletions example-apps/javademoapp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ android {
manifestPlaceholders["stytchOAuthRedirectScheme"] = "stytchjavademoapp"
manifestPlaceholders["stytchOAuthRedirectHost"] = "oauth"
manifestPlaceholders["STYTCH_PUBLIC_TOKEN"] = publicToken
manifestPlaceholders["STYTCH_B2B_PUBLIC_TOKEN"] = ""

buildConfigField("String", "STYTCH_PUBLIC_TOKEN", "\"$publicToken\"")
}
Expand Down
1 change: 1 addition & 0 deletions example-apps/stytchexampleapp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ android {
manifestPlaceholders["stytchOAuthRedirectScheme"] = ""
manifestPlaceholders["stytchOAuthRedirectHost"] = ""
manifestPlaceholders["STYTCH_PUBLIC_TOKEN"] = publicToken
manifestPlaceholders["STYTCH_B2B_PUBLIC_TOKEN"] = ""

buildConfigField("String", "STYTCH_PUBLIC_TOKEN", "\"$publicToken\"")
}
Expand Down
3 changes: 2 additions & 1 deletion workbench-apps/consumer-workbench/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ android {
manifestPlaceholders = [
'stytchOAuthRedirectScheme': 'app',
'stytchOAuthRedirectHost': 'oauth',
'STYTCH_PUBLIC_TOKEN': rootProject.ext["STYTCH_PUBLIC_TOKEN"]
'STYTCH_PUBLIC_TOKEN': rootProject.ext["STYTCH_PUBLIC_TOKEN"],
'STYTCH_B2B_PUBLIC_TOKEN': rootProject.ext["STYTCH_B2B_PUBLIC_TOKEN"],
]
}

Expand Down
3 changes: 2 additions & 1 deletion workbench-apps/uiworkbench/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ android {
manifestPlaceholders = [
'stytchOAuthRedirectScheme': 'uiworkbench',
'stytchOAuthRedirectHost': 'oauth',
'STYTCH_PUBLIC_TOKEN': publicToken
'STYTCH_PUBLIC_TOKEN': publicToken,
'STYTCH_B2B_PUBLIC_TOKEN': rootProject.ext["STYTCH_B2B_PUBLIC_TOKEN"],
]
}

Expand Down

0 comments on commit ee00f0a

Please sign in to comment.