Factor out remoteauth dependencies to variables
This will allow using different values for the variables without having merge conflicts in the dependencies list for each build rule. Bug: 295788084 Test: m Change-Id: I7b64a5a01d1f8139e7ce30ce95903d71cb09de9f
This commit is contained in:
parent
c022bd47a8
commit
c41daa4106
3 changed files with 31 additions and 12 deletions
|
|
@ -27,6 +27,7 @@ java_library {
|
|||
srcs: [":remoteauth-service-srcs"],
|
||||
required: ["libremoteauth_jni_rust_defaults"],
|
||||
defaults: [
|
||||
"enable-remoteauth-targets",
|
||||
"framework-system-server-module-defaults",
|
||||
],
|
||||
libs: [
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ import com.android.internal.util.Preconditions;
|
|||
/** Service implementing remoteauth functionality. */
|
||||
public class RemoteAuthService extends IRemoteAuthService.Stub {
|
||||
public static final String TAG = "RemoteAuthService";
|
||||
public static final String SERVICE_NAME = Context.REMOTE_AUTH_SERVICE;
|
||||
|
||||
public RemoteAuthService(Context context) {
|
||||
Preconditions.checkNotNull(context);
|
||||
|
|
|
|||
|
|
@ -18,7 +18,10 @@ package {
|
|||
|
||||
android_test {
|
||||
name: "RemoteAuthUnitTests",
|
||||
defaults: ["mts-target-sdk-version-current"],
|
||||
defaults: [
|
||||
"enable-remoteauth-targets",
|
||||
"mts-target-sdk-version-current"
|
||||
],
|
||||
sdk_version: "test_current",
|
||||
min_sdk_version: "31",
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue