Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a8ea2833 authored by Orion Hodson's avatar Orion Hodson Committed by Android (Google) Code Review
Browse files

Merge ""module_current" and "system_server_current" should contain ART's...

Merge ""module_current" and "system_server_current" should contain ART's @SystemApi(MODULE_LIBRARIES)" into sc-dev
parents ba96f7c5 2d457e1c
Loading
Loading
Loading
Loading
+16 −2
Original line number Diff line number Diff line
@@ -175,10 +175,24 @@ func decodeSdkDep(ctx android.EarlyModuleContext, sdkContext android.SdkContext)
		}
	case android.SdkModule:
		// TODO(146757305): provide .apk and .aidl that have more APIs for modules
		return toModule([]string{"android_module_lib_stubs_current"}, "framework-res", nonUpdatableFrameworkAidlPath(ctx))
		return sdkDep{
			useModule:          true,
			bootclasspath:      []string{"android_module_lib_stubs_current", config.DefaultLambdaStubsLibrary},
			systemModules:      "core-module-lib-stubs-system-modules",
			java9Classpath:     []string{"android_module_lib_stubs_current"},
			frameworkResModule: "framework-res",
			aidl:               android.OptionalPathForPath(nonUpdatableFrameworkAidlPath(ctx)),
		}
	case android.SdkSystemServer:
		// TODO(146757305): provide .apk and .aidl that have more APIs for modules
		return toModule([]string{"android_system_server_stubs_current"}, "framework-res", sdkFrameworkAidlPath(ctx))
		return sdkDep{
			useModule:          true,
			bootclasspath:      []string{"android_system_server_stubs_current", config.DefaultLambdaStubsLibrary},
			systemModules:      "core-module-lib-stubs-system-modules",
			java9Classpath:     []string{"android_system_server_stubs_current"},
			frameworkResModule: "framework-res",
			aidl:               android.OptionalPathForPath(sdkFrameworkAidlPath(ctx)),
		}
	default:
		panic(fmt.Errorf("invalid sdk %q", sdkVersion.Raw))
	}
+2 −2
Original line number Diff line number Diff line
@@ -219,7 +219,7 @@ func TestClasspath(t *testing.T) {
			name:           "module_current",
			properties:     `sdk_version: "module_current",`,
			bootclasspath:  []string{"android_module_lib_stubs_current", "core-lambda-stubs"},
			system:         "core-current-stubs-system-modules",
			system:         "core-module-lib-stubs-system-modules",
			java9classpath: []string{"android_module_lib_stubs_current"},
			aidl:           "-pout/soong/framework_non_updatable.aidl",
		},
@@ -227,7 +227,7 @@ func TestClasspath(t *testing.T) {
			name:           "system_server_current",
			properties:     `sdk_version: "system_server_current",`,
			bootclasspath:  []string{"android_system_server_stubs_current", "core-lambda-stubs"},
			system:         "core-current-stubs-system-modules",
			system:         "core-module-lib-stubs-system-modules",
			java9classpath: []string{"android_system_server_stubs_current"},
			aidl:           "-pout/soong/framework.aidl",
		},
+1 −0
Original line number Diff line number Diff line
@@ -312,6 +312,7 @@ func gatherRequiredDepsForTest() string {

	systemModules := []string{
		"core-current-stubs-system-modules",
		"core-module-lib-stubs-system-modules",
		"legacy-core-platform-api-stubs-system-modules",
		"stable-core-platform-api-stubs-system-modules",
	}