Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 9caac4f

Browse files
author
Lennart Martens
committed
Fix example
1 parent fe7647f commit 9caac4f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

example/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ apply plugin: 'kotlin-android'
2626
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2727

2828
android {
29-
compileSdkVersion 30
29+
compileSdkVersion 31
3030

3131
sourceSets {
3232
main.java.srcDirs += 'src/main/kotlin'

example/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
buildscript {
2-
ext.kotlin_version = '1.3.50'
2+
ext.kotlin_version = '1.6.10'
33
repositories {
44
google()
55
mavenCentral()

example/lib/main.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ class _MyAppState extends State<MyApp> {
3131
super.initState();
3232

3333
/// [Authenticator] needs to be registered as an app lifecycle observer
34-
WidgetsBinding.instance?.addObserver(globalAuthenticator);
34+
WidgetsBinding.instance.addObserver(globalAuthenticator);
3535
}
3636

3737
@override
3838
void dispose() {
3939
/// When disposing of the app, remove [Authenticator]'s subscription
4040
/// to lifecycle events
41-
WidgetsBinding.instance?.removeObserver(globalAuthenticator);
41+
WidgetsBinding.instance.removeObserver(globalAuthenticator);
4242
super.dispose();
4343
}
4444

0 commit comments

Comments
 (0)