Skip to content

Commit

Permalink
Updated README and examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
Skyost committed May 3, 2019
1 parent 5026fdc commit 90dd1ef
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 16 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 0.2.0+2

* Updated README and examples.

## 0.2.0+1

* Updated minimum SDK version.

## 0.2.0

* Added the ability to use custom identifiers.
Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,17 @@ RateMyApp rateMyApp = RateMyApp(
remindLaunches: 10,
);
rateMyApp.init().then((_){
if(rateMyApp.shouldOpenDialog) {
rateMyApp.showRateDialog(
context,
title: 'Rate this app',
message: 'If you like this app, please take a little bit of your time to review it !\nIt really helps us and it shouldn\'t take you more than one minute.',
rateButton: 'RATE',
noButton: 'NO THANKS',
laterButton: 'MAYBE LATER',
);
}
_rateMyApp.init().then((_) {
if (_rateMyApp.shouldOpenDialog) {
_rateMyApp.showRateDialog(
context,
title: 'Rate this app',
message: 'If you like this app, please take a little bit of your time to review it !\nIt really helps us and it shouldn\'t take you more than one minute.',
rateButton: 'RATE',
noButton: 'NO THANKS',
laterButton: 'MAYBE LATER',
);
}
});
```

Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ android {
compileSdkVersion 28

defaultConfig {
minSdkVersion 18
minSdkVersion 16
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
lintOptions {
Expand Down
3 changes: 1 addition & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import 'package:flutter/material.dart';

import 'package:rate_my_app/rate_my_app.dart';

/// Main rate my app instance.
RateMyApp _rateMyApp = RateMyApp();

/// First plugin test method.
void main() {
_rateMyApp.init().then((v) {
_rateMyApp.init().then((_) {
runApp(_RateMyAppTestApp());
print('Minimum days : ' + _rateMyApp.minDays.toString());
print('Minimum launches : ' + _rateMyApp.minLaunches.toString());
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.2.0"
version: "0.2.0+2"
shared_preferences:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: rate_my_app
description: Allows to kindly ask users to rate your app if custom conditions are met (eg. install time, number of launches, etc...).
version: 0.2.0
version: 0.2.0+2
author: Skyost <[email protected]>
homepage: https://github.com/Skyost/rate_my_app

Expand Down

0 comments on commit 90dd1ef

Please sign in to comment.