Skip to content

Commit

Permalink
Add elif (#1056)
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharykeeping authored Sep 20, 2024
1 parent ddff5de commit 009fc7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MobileUI/MauiProgram.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private static MauiAppBuilder RegisterFirebase(this MauiAppBuilder builder)
Firebase.Core.App.Configure();
return false;
}));
#else
#elif ANDROID
events.AddAndroid(android => android.OnCreate((activity, bundle) => {
Firebase.FirebaseApp.InitializeApp(activity);
}));
Expand All @@ -120,7 +120,7 @@ private static MauiAppBuilder RegisterUrlHandling(this MauiAppBuilder builder)
{
ios.OpenUrl((app, url, options) => HandleAppLink(url.AbsoluteString));
});
#else
#elif ANDROID
events.AddAndroid(android => android.OnCreate((activity, bundle) => {
var action = activity.Intent?.Action;
var data = activity.Intent?.Data?.ToString();
Expand Down

0 comments on commit 009fc7a

Please sign in to comment.