Skip to content
Snippets Groups Projects
  • Cole Faust's avatar
    53da9ac3
    Prepare for @RequiresApi class retention · 53da9ac3
    Cole Faust authored
    The android framework has android.annotation.RequiresApi, which is a
    copy of androidx.annotation.RequiresApi. However it was added with
    source retention instead of class retention like androidx's version
    has. This causes it to be missed if you compiled a library and then
    used that library to compile something else, that library's public
    methods won't have @RequiresApi on them when using that library's
    compiled jar file.
    
    To make @RequiresApi have class retention, we need to baseline the
    NewApi issues that it would cause. These baselines also require
    us to disable strict_updatability_linting in some places.
    
    Bug: 323366771
    Test: m lint-check
    Change-Id: I0c984e3ba39e357ce102be442568f2d77a4f9034
    53da9ac3
    History
    Prepare for @RequiresApi class retention
    Cole Faust authored
    The android framework has android.annotation.RequiresApi, which is a
    copy of androidx.annotation.RequiresApi. However it was added with
    source retention instead of class retention like androidx's version
    has. This causes it to be missed if you compiled a library and then
    used that library to compile something else, that library's public
    methods won't have @RequiresApi on them when using that library's
    compiled jar file.
    
    To make @RequiresApi have class retention, we need to baseline the
    NewApi issues that it would cause. These baselines also require
    us to disable strict_updatability_linting in some places.
    
    Bug: 323366771
    Test: m lint-check
    Change-Id: I0c984e3ba39e357ce102be442568f2d77a4f9034
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Android.bp 1.61 KiB