Skip to content

Commit 476b1b8

Browse files
authored
Update android plugin instructions (#254)
* better method access
1 parent 5465527 commit 476b1b8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,7 @@ import com.codetrixstudio.capacitor.GoogleAuth.GoogleAuth;
169169
Register plugin inside your `MainActivity.onCreate`
170170

171171
```java
172-
this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{
173-
add(GoogleAuth.class);
174-
}});
172+
this.registerPlugin(GoogleAuth.class);
175173
```
176174

177175
## Configure

0 commit comments

Comments
 (0)