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
Loading
Please register or sign in to comment