repositories {
// ...
maven { url "https://jitpack.io" }
}
dependencies {
compile 'com.github.agileinfoways:android-app-rate-alert:1.1'
}
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<dependency>
<groupId>com.github.agileinfoways</groupId>
<artifactId>android-app-rate-alert</artifactId>
<version>1.1</version>
</dependency>
new AppRateAlert(this, AlertDialog.THEME_DEVICE_DEFAULT_LIGHT)
.setIcon(R.mipmap.ic_launcher)
.setTitle("Rate our app")
.setMessage("Rate our app if you love it.")
.setPositiveButton("Rate", AppRateAlert.Action.RATE_APP)
.setNeutralButton("Send Feedback", AppRateAlert.Action.SEND_FEEDBACK).setFeedbackMail("[email protected]")
.setNegativeButton("Close", AppRateAlert.Action.DISMISS)
.setAlertInterval(0) // days
.initialize();
Copyright 2015 Agileinfoways Pvt. Ltd.
Copyright 2015 The Android Open Source Project for AppRateAlert
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.