Skip to content

Commit b96bb9b

Browse files
authored
Update Android setup (#627)
1 parent 61bd83d commit b96bb9b

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

flutter_appauth/README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,28 @@ Otherwise, there will be still an active login session in the browser.
167167

168168
## Android setup
169169

170-
Go to the `build.gradle` file for your Android app to specify the custom scheme so that there should be a section in it that look similar to the following but replace `<your_custom_scheme>` with the desired value
170+
Go to the `build.gradle.kts` file for your Android app to specify the custom scheme so that there should be a section in it that look similar to the following but replace `<your_custom_scheme>` with the desired value:
171171

172+
```kotlin
173+
174+
android {
175+
...
176+
defaultConfig {
177+
...
178+
manifestPlaceholders.putAll(
179+
mapOf(
180+
"appAuthRedirectScheme" to "<your_custom_scheme>"
181+
)
182+
)
183+
}
184+
}
172185
```
173-
...groovy
186+
187+
If you're using `build.gradle`:
188+
189+
190+
```groovy
191+
174192
android {
175193
...
176194
defaultConfig {

0 commit comments

Comments
 (0)