Here are the steps to perform when exposing a new API from ICU in the Android SDK:
Change tools/srcgen/src/main/java/com/android/icu4j/srcgen/Icu4jTransform.java. Particularly, make sure that the APIs are not in the list of DECLARATIONS_TO_HIDE
Flag the change:
icu.aconfig or use an existing one.tools/srcgen/flagged-api.json.Regenerate android_icu4j/ by running the following script and command: tools/srcgen/generate_android_icu4j.sh
Run m i18n.module.public.api.stubs.source-update-current-api to update current.txt.
Run m droid.
Run atest CtsIcuTestCases / CtsIcu4cTestCases to test the changes.
CtsIcu4cTestCases, please add a new test case in android_icu4j/testing/src/android/icu/extratest/.If everything goes well and tests pass, commit the changes to the repo: bash git add -A git commit -> Add your commit message there