Skip to content

Commit

Permalink
Upgrade AppAuth + change theme to fix OIDC flow
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangdat committed Jan 31, 2023
1 parent 7a4dae3 commit 5d08f44
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
android:label="@string/app_name"
android:networkSecurityConfig="@xml/network_security_config"
android:requestLegacyExternalStorage="true"
tools:replace="android:theme"
android:theme="@style/NormalTheme"
android:roundIcon="@mipmap/ic_launcher_round">
<activity
android:name=".MainActivity"
Expand Down
4 changes: 2 additions & 2 deletions android/app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting -->
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<style name="LaunchTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Show a splash screen on the activity. Automatically removed when
Flutter draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
Expand All @@ -12,7 +12,7 @@
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
<style name="NormalTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowBackground">@android:color/white</item>
</style>
</resources>
2 changes: 1 addition & 1 deletion data/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ dependencies:
ref: master

# OIDC
flutter_appauth: 2.1.0+1
flutter_appauth: 4.0.0

# uuid
uuid: 3.0.6
Expand Down
4 changes: 2 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -392,14 +392,14 @@ packages:
name: flutter_appauth
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0+1"
version: "4.0.0"
flutter_appauth_platform_interface:
dependency: transitive
description:
name: flutter_appauth_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "4.1.0"
version: "5.2.0"
flutter_datetime_picker:
dependency: "direct main"
description:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ dependencies:
permission_handler: 10.2.0

# OIDC
flutter_appauth: 2.1.0+1
flutter_appauth: 4.0.0

# datetime picker
flutter_datetime_picker: 1.5.1
Expand Down

0 comments on commit 5d08f44

Please sign in to comment.