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

Commit 09159170 authored by Paul Duffin's avatar Paul Duffin Committed by Anton Hansson
Browse files

Prevent default use of framework module implementation

Prevent dependencies that do not specify an sdk_version from accessing
the implementation library of a framework module by default and force
them to use stubs instead.

Bug: 155164730
Test: m nothing
Merged-In: Ib60e538a4017857eefa3465e56745c00306887e1
Change-Id: Ib60e538a4017857eefa3465e56745c00306887e1
parent dd124428
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -84,6 +84,10 @@ java_defaults {
    // entry.
    shared_library: false,

    // Prevent dependencies that do not specify an sdk_version from accessing the
    // implementation library by default and force them to use stubs instead.
    default_to_stubs: true,

    // Enable api lint. This will eventually become the default for java_sdk_library
    // but it cannot yet be turned on because some usages have not been cleaned up.
    // TODO(b/156126315) - Remove when no longer needed.