Loading java/sdk_library.go +1 −8 Original line number Diff line number Diff line Loading @@ -435,9 +435,6 @@ type sdkLibraryProperties struct { // a list of top-level directories containing Java stub files to merge show/hide annotations from. Merge_inclusion_annotations_dirs []string // If set to true, the path of dist files is apistubs/core. Defaults to false. Core_lib *bool // If set to true then don't create dist rules. No_dist *bool Loading Loading @@ -1203,12 +1200,8 @@ func (module *SdkLibrary) AndroidMkEntries() []android.AndroidMkEntries { // The dist path of the stub artifacts func (module *SdkLibrary) apiDistPath(apiScope *apiScope) string { if Bool(module.sdkLibraryProperties.Core_lib) { return path.Join("apistubs", "core", apiScope.name) } else { return path.Join("apistubs", module.distGroup(), apiScope.name) } } // Get the sdk version for use when compiling the stubs library. func (module *SdkLibrary) sdkVersionForStubsLibrary(mctx android.EarlyModuleContext, apiScope *apiScope) string { Loading java/sdk_library_test.go +0 −12 Original line number Diff line number Diff line Loading @@ -871,13 +871,6 @@ func TestJavaSdkLibraryDist(t *testing.T) { srcs: ["foo.java"], dist_stem: "foo", } java_sdk_library { name: "sdklib_core_lib", unsafe_ignore_missing_latest_api: true, srcs: ["foo.java"], core_lib: true, } `) type testCase struct { Loading Loading @@ -907,11 +900,6 @@ func TestJavaSdkLibraryDist(t *testing.T) { distDir: "apistubs/unknown/public", distStem: "foo.jar", }, { module: "sdklib_core_lib", distDir: "apistubs/core/public", distStem: "sdklib_core_lib.jar", }, } for _, tt := range testCases { Loading Loading
java/sdk_library.go +1 −8 Original line number Diff line number Diff line Loading @@ -435,9 +435,6 @@ type sdkLibraryProperties struct { // a list of top-level directories containing Java stub files to merge show/hide annotations from. Merge_inclusion_annotations_dirs []string // If set to true, the path of dist files is apistubs/core. Defaults to false. Core_lib *bool // If set to true then don't create dist rules. No_dist *bool Loading Loading @@ -1203,12 +1200,8 @@ func (module *SdkLibrary) AndroidMkEntries() []android.AndroidMkEntries { // The dist path of the stub artifacts func (module *SdkLibrary) apiDistPath(apiScope *apiScope) string { if Bool(module.sdkLibraryProperties.Core_lib) { return path.Join("apistubs", "core", apiScope.name) } else { return path.Join("apistubs", module.distGroup(), apiScope.name) } } // Get the sdk version for use when compiling the stubs library. func (module *SdkLibrary) sdkVersionForStubsLibrary(mctx android.EarlyModuleContext, apiScope *apiScope) string { Loading
java/sdk_library_test.go +0 −12 Original line number Diff line number Diff line Loading @@ -871,13 +871,6 @@ func TestJavaSdkLibraryDist(t *testing.T) { srcs: ["foo.java"], dist_stem: "foo", } java_sdk_library { name: "sdklib_core_lib", unsafe_ignore_missing_latest_api: true, srcs: ["foo.java"], core_lib: true, } `) type testCase struct { Loading Loading @@ -907,11 +900,6 @@ func TestJavaSdkLibraryDist(t *testing.T) { distDir: "apistubs/unknown/public", distStem: "foo.jar", }, { module: "sdklib_core_lib", distDir: "apistubs/core/public", distStem: "sdklib_core_lib.jar", }, } for _, tt := range testCases { Loading