If the user of the library calls Apprate.with(activity, packageName) but the package with the given package name is not installed the app crashes with a NPE in line 374. That's because no install date for the package could be retrieved.
In this case this solution falls back to the old way and gets install date by using the current package's install date.
This bug most likely happens only in debug mode when a user is testing his app with a different package name but hasn't yet the proper app installed.
If the user of the library calls Apprate.with(activity, packageName) but the package with the given package name is not installed the app crashes with a NPE in line 374. That's because no install date for the package could be retrieved.
In this case this solution falls back to the old way and gets install date by using the current package's install date.
This bug most likely happens only in debug mode when a user is testing his app with a different package name but hasn't yet the proper app installed.