Skip to content

Commit

Permalink
docs: add comment on when deprecated code may be removed
Browse files Browse the repository at this point in the history
I dislike seeing this build-time deprecation warning every build,
and investigated if we could remove this. We can't but I was able
to see when, so I wrote it out in order to not forget and spend
the time researching again

The comment I left should show up in standard searches for removable
code based on VERSION_CODES / minSdk when we bump versions
  • Loading branch information
mikehardy committed Aug 19, 2024
1 parent 9541b3a commit bf6ed34
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ import android.content.pm.PackageStats;
* Some usage scenarios include deletion of cache directory, generate
* statistics related to code, data, cache usage(TODO)
* {@hide}
*
* This generates a deprecation warning during builds, and it would be great to remove it.
* There is only one usage: FileUtils::getUserDataAndCacheSizeUsingGetPackageSizeInfo
* The code that references this will no longer be needed after Build.VERSION_CODES >= 0
* or minSdk >= 26 - at that API level we should be able to remove all related code / deprecation
*/
oneway interface IPackageStatsObserver {
void onGetStatsCompleted(in PackageStats pStats, boolean succeeded);
Expand Down

0 comments on commit bf6ed34

Please sign in to comment.