diff options
| author | 2020-01-22 11:57:20 +0000 | |
|---|---|---|
| committer | 2020-01-30 17:26:18 +0000 | |
| commit | d1b3a92f052c189b854122e8ad916d81bb080f50 (patch) | |
| tree | 83388373a7c16a1dc44abf47cf64e87c83add002 /java/hiddenapi_singleton.go | |
| parent | 44fc5d201fc2dd2267b80db0076430beda2da037 (diff) | |
Parameterize java_sdk_library by api scope
The java_sdk_library duplicated a lot of code related to api scopes and
also did a lot of switching on apiScope. This change eliminates that
duplication and switching by converting apiScope from an enum to a
structure containing api scope specific information.
It associates dependencies with corresponding scope by using a
scopeDependencyTag that contains a reference to the associated
apiScope.
Tested by:
1) Running the command below without the changes.
2) 'mv out/dist/apistubs $ANDROID_BUILD_TOP'
3) Applying these changes.
4) Running the command again.
5) Verifying that the out/dist/apistubs was identical to before the
change using 'meld out/dist/apistubs $ANDROID_BUILD_TOP/apistubs'
Bug: 148080325
Test: m TARGET_PRODUCT=sdk TARGET_BUILD_VARIANT=userdebug dist sdk
m droid
Change-Id: I0de3268b12254122e94ca83d09309b06ca2f9dbe
Diffstat (limited to 'java/hiddenapi_singleton.go')
0 files changed, 0 insertions, 0 deletions