Skip to content

Commit 2c6c364

Browse files
committed
Release 1.2.1 Osaka
1 parent ad94504 commit 2c6c364

27 files changed

+86
-42
lines changed

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,38 @@
11
# CHANGELOG
22

3-
## 1.2.1 Osaka (next release)
4-
3+
## 1.2.1 Osaka (released 13.09.2018)
4+
5+
- LIBcc20913 Javadoc documentation updated
6+
- LIBcc10913 Inspection
7+
- LIBff10913 .setTimeToWait(...) and .setRemindTimeToWait(...) added
8+
- LIBff10912 .setVersionCodeCheck(boolean) and .setVersionNameCheck(boolean) added
9+
- LIBcc20912 AppInformation.java refactoring
10+
- LIBcc10912 AppInformation.java refactoring
11+
- LIBcc50908 .idea files updated
12+
- LIBcc40908 sample app updated
13+
- LIBcc30908 README.md updated
14+
- LIBcc20908 AppRate.java inspection
15+
- LIBcc10908 getAppCompatDialogBuilder(...) and getDialogBuilder(...) updated
16+
- LIBff10908 AppInformation Class added
17+
- LIBff70905 AppRate#setRemindLaunchesNumber(byte) added
18+
- LIBff60905 clearRemindButtonClick() added
19+
- LIBff50905 Romanian language added
20+
- LIBff40905 Norwegian language added
21+
- LIBff30905 Malay language added
22+
- LIBff20905 Hindi languages added
23+
- LIBff10905 Android Library launcher icon added
24+
- LIBcc30905 README.md updated
25+
- LIBcc20905 Copyright corrected
26+
- LIBbb30905 AppCompatDialogManager and DefaultDialogManager singletons don't set context in synchronized(...){}
27+
- LIBbb20905 Add SoftReference to OnClickButtonListener [hotchemi/Android-Rate#79](https://github.com/hotchemi/Android-Rate/issues/79)
28+
- LIBbb10905 Remove WeekReference to OnClickButtonListener [hotchemi/Android-Rate#115](https://github.com/hotchemi/Android-Rate/issues/115)
29+
- LIBcc10905 "Latest snapshot (non-tested) version" section added
30+
- LIBff30904 AppCompatDialogManager example of use added
31+
- LIBff20904 isOverRemindDate() optimization
32+
- LIBcc20904 badge updated
33+
- LIBcc10904 javadoc and documentation updated
34+
- LIBff10904 AppCompatDialogManager added
35+
- LIBff10831 Dialog type added
536
- LIBcc50831 Next release
637

738
## 1.2.0 Yokohama (released 31.08.2018)

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ If you don't want to wait for the next release, you can add the Sonatype's snaps
5656
Then add the following dependency to your relevant project modules `build.gradle` files:
5757

5858
dependencies {
59-
implementation "com.vorlonsoft:androidrate:1.2.1-SNAPSHOT"
59+
implementation "com.vorlonsoft:androidrate:1.2.2-SNAPSHOT"
6060
}
6161

6262
## Usage
@@ -92,7 +92,7 @@ protected void onCreate(Bundle savedInstanceState) {
9292
.setInstallDays((byte) 0) // default is 10, 0 means install day, 10 means app is launched 10 or more days later than installation
9393
.setLaunchTimes((byte) 3) // default is 10, 3 means app is launched 3 or more times
9494
.setRemindInterval((byte) 1) // default is 1, 1 means app is launched 1 or more days after neutral button clicked
95-
// Since Release 1.2.1: .setRemindLaunchesNumber((byte) 1) // default is 0, 1 means app is launched 1 or more times after neutral button clicked
95+
.setRemindLaunchesNumber((byte) 1) // default is 0, 1 means app is launched 1 or more times after neutral button clicked
9696
.monitor(); // Monitors app launch times
9797
AppRate.showRateDialogIfMeetsConditions(this); // Shows the Rate Dialog when conditions are met
9898
}
@@ -115,15 +115,15 @@ protected void onCreate(Bundle savedInstanceState) {
115115
* setStoreType(APPLE, long) (Apple App Store, long - your application ID),
116116
* setStoreType(String...) (Any other store/stores, String... - an URI or array of URIs to your app) and
117117
* setStoreType(Intent...) (Any custom intent/intents, Intent... - an intent or array of intents) */
118-
.setInstallDays((byte) 0) // default is 10, 0 means install day, 10 means app is launched 10 or more days later than installation
118+
.setTimeToWait(Time.DAY, (short) 0) // default is 10 days, 0 means install millisecond, 10 means app is launched 10 or more time units later than installation
119119
.setLaunchTimes((byte) 3) // default is 10, 3 means app is launched 3 or more times
120-
.setRemindInterval((byte) 1) // default is 1, 1 means app is launched 1 or more days after neutral button clicked
121-
// Since Release 1.2.1: .setRemindLaunchesNumber((byte) 1) // default is 0, 1 means app is launched 1 or more times after neutral button clicked
120+
.setRemindTimeToWait(Time.DAY, (short) 2) // default is 1 day, 1 means app is launched 1 or more time units after neutral button clicked
121+
.setRemindLaunchesNumber((byte) 1) // default is 0, 1 means app is launched 1 or more times after neutral button clicked
122122
.setSelectedAppLaunches((byte) 1) // default is 1, 1 means each launch, 2 means every 2nd launch, 3 means every 3rd launch, etc
123123
.setShowLaterButton(true) // default is true, true means to show the Neutral button ("Remind me later").
124124
.set365DayPeriodMaxNumberDialogLaunchTimes((short) 3) // default is unlimited, 3 means 3 or less occurrences of the display of the Rate Dialog within a 365-day period
125-
// Since Release 1.2.1: .setVersionCodeCheck(true) // default is false, true means to re-enable the Rate Dialog if a new version of app with different version code is installed
126-
// Since Release 1.2.1: .setVersionNameCheck(true) // default is false, true means to re-enable the Rate Dialog if a new version of app with different version name is installed
125+
.setVersionCodeCheck(true) // default is false, true means to re-enable the Rate Dialog if a new version of app with different version code is installed
126+
.setVersionNameCheck(true) // default is false, true means to re-enable the Rate Dialog if a new version of app with different version name is installed
127127
.setDebug(false) // default is false, true is for development only, true ensures that the Rate Dialog will be shown each time the app is launched
128128
.setOnClickButtonListener(which -> Log.d(this.getLocalClassName(), Byte.toString(which))) // Java 8+, change for Java 7-
129129
.monitor(); // Monitors the app launch times
@@ -141,15 +141,15 @@ protected void onCreate(Bundle savedInstanceState) {
141141
Default options of the Rate Dialog are as below:
142142

143143
1. Google Play launches when you press the positive button. Change via `AppRate#setStoreType(int)`, `AppRate#setStoreType(int, long)`, `AppRate#setStoreType(String...)` or `AppRate#setStoreType(Intent...)`.
144-
2. App is launched 10 or more days later than installation. Change via `AppRate#setInstallDays(byte)`.
144+
2. App is launched 10 or more days later than installation. Change via `AppRate#setTimeToWait(long, short)` or `AppRate#setInstallDays(byte)`.
145145
3. App is launched 10 or more times. Change via `AppRate#setLaunchTimes(byte)`.
146-
4. App is launched 1 or more days after neutral button clicked. Change via `AppRate#setRemindInterval(byte)`.
147-
Since Release 1.2.1: 5. App is launched 0 or more times after neutral button clicked. Change via `AppRate#setRemindLaunchesNumber(byte)`.
146+
4. App is launched 1 or more days after neutral button clicked. Change via `AppRate#setRemindTimeToWait(long, short)` or `AppRate#setRemindInterval(byte)`.
147+
5. App is launched 0 or more times after neutral button clicked. Change via `AppRate#setRemindLaunchesNumber(byte)`.
148148
6. Each launch (the condition is satisfied if appLaunches % `param` == 0). Change via `AppRate#setSelectedAppLaunches(byte)`.
149149
7. App shows the Neutral button ("Remind me later"). Change via `setShowLaterButton(boolean)`.
150150
8. Unlimited occurrences of the display of the Rate Dialog within a 365-day period. Change via `AppRate#set365DayPeriodMaxNumberDialogLaunchTimes(short)`.
151-
Since Release 1.2.1: 9. Don't re-enable the Rate Dialog if a new version of app with different version code is installed. Change via `AppRate#setVersionCodeCheck(boolean)`.
152-
Since Release 1.2.1: 10. Don't re-enable the Rate Dialog if a new version of app with different version name is installed. Change via `AppRate#setVersionNameCheck(boolean)`.
151+
9. Don't re-enable the Rate Dialog if a new version of app with different version code is installed. Change via `AppRate#setVersionCodeCheck(boolean)`.
152+
10. Don't re-enable the Rate Dialog if a new version of app with different version name is installed. Change via `AppRate#setVersionNameCheck(boolean)`.
153153
11. Setting `AppRate#setDebug(boolean)` to `true` ensures that the Rate Dialog will be shown each time the app is launched. **This feature is for development only!**.
154154
12. There is no default callback when the button of Rate Dialog is pressed. Change via `AppRate.with(this).setOnClickButtonListener(OnClickButtonListener)`.
155155

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ android.enableR8 = true
1414
android.useAndroidX = true
1515

1616
GROUP = com.vorlonsoft
17-
VERSION_NAME = 1.2.1-SNAPSHOT
17+
VERSION_NAME = 1.2.1
1818
VERSION_CODE = 45
1919

2020
POM_DESCRIPTION = Library to help you promote your Android app by prompting users to rate the app after using it for a few days.

javadoc/com/vorlonsoft/android/rate/AppRate.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ <h2 title="Class AppRate" class="title">Class AppRate</h2>
117117
<dt><span class="simpleTagLabel">Since:</span></dt>
118118
<dd>0.0.4</dd>
119119
<dt><span class="simpleTagLabel">Version:</span></dt>
120-
<dd>1.2.0</dd>
120+
<dd>1.2.1</dd>
121121
<dt><span class="simpleTagLabel">Author:</span></dt>
122122
<dd>Alexander Savin, Shintaro Katafuchi</dd>
123123
</dl>

javadoc/com/vorlonsoft/android/rate/DefaultDialogManager.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ <h2 title="Class DefaultDialogManager" class="title">Class DefaultDialogManager<
130130
<dt><span class="simpleTagLabel">Since:</span></dt>
131131
<dd>1.0.2</dd>
132132
<dt><span class="simpleTagLabel">Version:</span></dt>
133-
<dd>1.2.0</dd>
133+
<dd>1.2.1</dd>
134134
<dt><span class="simpleTagLabel">Author:</span></dt>
135135
<dd>Alexander Savin, Antoine Vianey</dd>
136136
<dt><span class="seeLabel">See Also:</span></dt>

javadoc/com/vorlonsoft/android/rate/DialogManager.Factory.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ <h2 title="Interface DialogManager.Factory" class="title">Interface DialogManage
119119
<dt><span class="simpleTagLabel">Since:</span></dt>
120120
<dd>1.0.2</dd>
121121
<dt><span class="simpleTagLabel">Version:</span></dt>
122-
<dd>1.2.0</dd>
122+
<dd>1.2.1</dd>
123123
<dt><span class="simpleTagLabel">Author:</span></dt>
124124
<dd>Alexander Savin, Antoine Vianey</dd>
125125
<dt><span class="seeLabel">See Also:</span></dt>

javadoc/com/vorlonsoft/android/rate/DialogManager.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ <h2 title="Interface DialogManager" class="title">Interface DialogManager</h2>
114114
<dt><span class="simpleTagLabel">Since:</span></dt>
115115
<dd>1.0.2</dd>
116116
<dt><span class="simpleTagLabel">Version:</span></dt>
117-
<dd>1.2.0</dd>
117+
<dd>1.2.1</dd>
118118
<dt><span class="simpleTagLabel">Author:</span></dt>
119119
<dd>Alexander Savin, Antoine Vianey</dd>
120120
<dt><span class="seeLabel">See Also:</span></dt>

javadoc/com/vorlonsoft/android/rate/DialogOptions.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ <h2 title="Class DialogOptions" class="title">Class DialogOptions</h2>
116116
<dt><span class="simpleTagLabel">Since:</span></dt>
117117
<dd>0.5.1</dd>
118118
<dt><span class="simpleTagLabel">Version:</span></dt>
119-
<dd>1.2.0</dd>
119+
<dd>1.2.1</dd>
120120
<dt><span class="simpleTagLabel">Author:</span></dt>
121121
<dd>Alexander Savin, Shintaro Katafuchi</dd>
122122
</dl>

javadoc/com/vorlonsoft/android/rate/OnClickButtonListener.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ <h2 title="Interface OnClickButtonListener" class="title">Interface OnClickButto
112112
<dt><span class="simpleTagLabel">Since:</span></dt>
113113
<dd>0.2.0</dd>
114114
<dt><span class="simpleTagLabel">Version:</span></dt>
115-
<dd>1.2.0</dd>
115+
<dd>1.2.1</dd>
116116
<dt><span class="simpleTagLabel">Author:</span></dt>
117117
<dd>Alexander Savin, Shintaro Katafuchi</dd>
118118
</dl>

javadoc/com/vorlonsoft/android/rate/StoreOptions.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ <h2 title="Class StoreOptions" class="title">Class StoreOptions</h2>
110110
<dt><span class="simpleTagLabel">Since:</span></dt>
111111
<dd>1.1.7</dd>
112112
<dt><span class="simpleTagLabel">Version:</span></dt>
113-
<dd>1.2.0</dd>
113+
<dd>1.2.1</dd>
114114
<dt><span class="simpleTagLabel">Author:</span></dt>
115115
<dd>Alexander Savin, Shintaro Katafuchi</dd>
116116
</dl>

javadoc/com/vorlonsoft/android/rate/StoreType.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ <h2 title="Class StoreType" class="title">Class StoreType</h2>
110110
<dt><span class="simpleTagLabel">Since:</span></dt>
111111
<dd>1.0.0</dd>
112112
<dt><span class="simpleTagLabel">Version:</span></dt>
113-
<dd>1.2.0</dd>
113+
<dd>1.2.1</dd>
114114
<dt><span class="simpleTagLabel">Author:</span></dt>
115115
<dd>Alexander Savin, Shintaro Katafuchi</dd>
116116
</dl>

javadoc/com/vorlonsoft/android/rate/package-summary.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ <h2 title="Package com.vorlonsoft.android.rate Description">Package com.vorlonso
231231
<dt><span class="simpleTagLabel">Since:</span></dt>
232232
<dd>0.0.4</dd>
233233
<dt><span class="simpleTagLabel">Version:</span></dt>
234-
<dd>1.2.0</dd>
234+
<dd>1.2.1</dd>
235235
<dt><span class="simpleTagLabel">Author:</span></dt>
236236
<dd>Alexander Savin, Shintaro Katafuchi</dd>
237237
</dl>

library/src/androidTest/java/com/vorlonsoft/android/rate/UriHelperTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* <p>Unit test for {@link com.vorlonsoft.android.rate.UriHelper}</p>
2020
*
2121
* @since 0.1.3
22-
* @version 1.2.0
22+
* @version 1.2.1
2323
* @author Alexander Savin
2424
* @author Shintaro Katafuchi
2525
*/

library/src/main/java/com/vorlonsoft/android/rate/AppRate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
* and a fast singleton implementation.</p>
5555
*
5656
* @since 0.0.4
57-
* @version 1.2.0
57+
* @version 1.2.1
5858
* @author Alexander Savin
5959
* @author Shintaro Katafuchi
6060
*/

library/src/main/java/com/vorlonsoft/android/rate/Constants.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* <p>Constants Class - constants class of the AndroidRate library.</p>
55
*
66
* @since 1.1.8
7-
* @version 1.2.0
7+
* @version 1.2.1
88
* @author Alexander Savin
99
*/
1010

@@ -18,7 +18,7 @@ private Constants() {
1818
* <p>Constants.Date Class - date constants class of the AndroidRate library.</p>
1919
*
2020
* @since 1.1.8
21-
* @version 1.2.0
21+
* @version 1.2.1
2222
* @author Alexander Savin
2323
*/
2424

@@ -35,7 +35,7 @@ private Date() {
3535
* <p>Constants.Utils Class - utils constants class of the AndroidRate library.</p>
3636
*
3737
* @since 1.1.8
38-
* @version 1.2.0
38+
* @version 1.2.1
3939
* @author Alexander Savin
4040
*/
4141

library/src/main/java/com/vorlonsoft/android/rate/DefaultDialogManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
* singleton implementation inside library, not outside (protected, not private constructor).</p>
5656
*
5757
* @since 1.0.2
58-
* @version 1.2.0
58+
* @version 1.2.1
5959
* @author Alexander Savin
6060
* @author Antoine Vianey
6161
* @see DefaultDialogManager.Factory
@@ -294,7 +294,7 @@ public Dialog createDialog() {
294294
* custom dialog (from v7 AppCompat library etc.).</p>
295295
*
296296
* @since 1.0.2
297-
* @version 1.2.0
297+
* @version 1.2.1
298298
* @author Alexander Savin
299299
* @author Antoine Vianey
300300
* @see DialogManager.Factory

library/src/main/java/com/vorlonsoft/android/rate/DialogManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* dialog (from v7 AppCompat library etc.).</p>
1717
*
1818
* @since 1.0.2
19-
* @version 1.2.0
19+
* @version 1.2.1
2020
* @author Alexander Savin
2121
* @author Antoine Vianey
2222
* @see DialogManager.Factory
@@ -39,7 +39,7 @@ public interface DialogManager {
3939
* custom dialog (from v7 AppCompat library etc.).</p>
4040
*
4141
* @since 1.0.2
42-
* @version 1.2.0
42+
* @version 1.2.1
4343
* @author Alexander Savin
4444
* @author Antoine Vianey
4545
* @see DialogManager

library/src/main/java/com/vorlonsoft/android/rate/DialogOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* <p>DialogOptions Class - dialog options class of the AndroidRate library.</p>
1818
*
1919
* @since 0.5.1
20-
* @version 1.2.0
20+
* @version 1.2.1
2121
* @author Alexander Savin
2222
* @author Shintaro Katafuchi
2323
*/

library/src/main/java/com/vorlonsoft/android/rate/IntentHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* <p>IntentHelper Class - intent helper class of the AndroidRate library.</p>
3535
*
3636
* @since 0.5.0
37-
* @version 1.2.0
37+
* @version 1.2.1
3838
* @author Alexander Savin
3939
* @author Shintaro Katafuchi
4040
*/

library/src/main/java/com/vorlonsoft/android/rate/OnClickButtonListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* will be passed in the argument of {@link OnClickButtonListener#onClickButton}.</p>
1616
*
1717
* @since 0.2.0
18-
* @version 1.2.0
18+
* @version 1.2.1
1919
* @author Alexander Savin
2020
* @author Shintaro Katafuchi
2121
*/

library/src/main/java/com/vorlonsoft/android/rate/PreferenceHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* <p>PreferenceHelper Class - preference helper class of the AndroidRate library.</p>
1818
*
1919
* @since 0.1.3
20-
* @version 1.2.0
20+
* @version 1.2.1
2121
* @author Alexander Savin
2222
* @author Shintaro Katafuchi
2323
*/

library/src/main/java/com/vorlonsoft/android/rate/StoreOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* <p>StoreOptions Class - store options class of the AndroidRate library.</p>
2020
*
2121
* @since 1.1.7
22-
* @version 1.2.0
22+
* @version 1.2.1
2323
* @author Alexander Savin
2424
* @author Shintaro Katafuchi
2525
*/

library/src/main/java/com/vorlonsoft/android/rate/StoreType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* <p>StoreType Class - store type class of the AndroidRate library.</p>
1818
*
1919
* @since 1.0.0
20-
* @version 1.2.0
20+
* @version 1.2.1
2121
* @author Alexander Savin
2222
* @author Shintaro Katafuchi
2323
*/

library/src/main/java/com/vorlonsoft/android/rate/UriHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* <p>UriHelper Class - uri helper class of the AndroidRate library.</p>
2727
*
2828
* @since 0.1.3
29-
* @version 1.2.0
29+
* @version 1.2.1
3030
* @author Alexander Savin
3131
* @author Shintaro Katafuchi
3232
*/

library/src/main/java/com/vorlonsoft/android/rate/Utils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* <p>Utils Class - utils class of the AndroidRate library.</p>
2727
*
2828
* @since 0.5.0
29-
* @version 1.2.0
29+
* @version 1.2.1
3030
* @author Alexander Savin
3131
* @author Shintaro Katafuchi
3232
*/

library/src/main/java/com/vorlonsoft/android/rate/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* users to rate the app after using it for a few days.</p>
1111
*
1212
* @since 0.0.4
13-
* @version 1.2.0
13+
* @version 1.2.1
1414
* @author Alexander Savin
1515
* @author Shintaro Katafuchi
1616
*/

0 commit comments

Comments
 (0)