Skip to content

Commit

Permalink
Added notes regarding Android Embedding V2.
Browse files Browse the repository at this point in the history
  • Loading branch information
Skyost committed Sep 12, 2020
1 parent e7078df commit 56b00f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ _Rate my app_ is really inspired by [Android-Rate](https://github.com/hotchemi/A

### Installation

To target an iOS version before _10.3_, add this in your `Info.plist` :
If you're building your app for Android, you need to migrate your app to the [Android Embedding V2](https:https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects).

On iOS, if you want to target a version before _10.3_, add this in your `Info.plist` :

```xml
<key>LSApplicationQueriesSchemes</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@ import io.flutter.plugin.common.PluginRegistry.Registrar
* A lot of thanks to https://github.com/britannio/in_app_review and its author (This class is a lot inspired by it).
*/
public class RateMyAppPlugin : FlutterPlugin, MethodCallHandler, ActivityAware {
companion object {
@JvmStatic
fun registerWith(registrar: Registrar) {
val channel = MethodChannel(registrar.messenger(), "rate_my_app")
channel.setMethodCallHandler(RateMyAppPlugin())
}
}

private var activity: Activity? = null
private var context: Context? = null
private lateinit var channel: MethodChannel
Expand Down

0 comments on commit 56b00f0

Please sign in to comment.