Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepereiranmbrs committed Oct 16, 2020
1 parent 4519cc0 commit 0e28c14
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,18 @@ You need to add the following line to your OnCreate method in the main activity
Xamarin.Essentials.Platform.Init(this, bundle);
```

It should look like this:
```csharp
protected override void OnCreate(Bundle savedInstanceState)
{
// Rest of method omitted for simplicity
Xamarin.Essentials.Platform.Init(this, savedInstanceState);
global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
LoadApplication(new App());
}
```

### Android code shrinker (Proguard & r8)

If you use the plugin with Link all, Release Mode and ProGuard/r8 enabled, you have to do the following:
Expand Down

0 comments on commit 0e28c14

Please sign in to comment.