diff options
author | Xavier Ducrohet <xav@android.com> | 2013-07-01 15:29:16 -0700 |
---|---|---|
committer | Xavier Ducrohet <xav@android.com> | 2013-07-01 16:34:11 -0700 |
commit | 222f9a49252beb22dd3282cf87c03b58c3708d09 (patch) | |
tree | 83a1ab8fd8e477fd4647c7212e25ec35a13e76d4 /builder-model | |
parent | 4fae04bf8b99ace66b8970f6fa344e884e9ae4fe (diff) | |
download | build-222f9a49252beb22dd3282cf87c03b58c3708d09.tar.gz |
Add support for library coming from modules.
This changes adds a "project identifier" to the AndroidLibrary
interface. this is only used in Gradle right now but is generic
enough for other usage of the model.
This also removes the previous AndroidLibraryProject interface as
the way the model is passed back in Gradle prevents using children
interfaces.
This is currently a hack based on the location of the bundle file
related to the output of the modules. This is temporary as we need
an API in Gradle to do it properly.
Change-Id: I51f0d501941a08125376d15cc83742a17730fadd
Diffstat (limited to 'builder-model')
-rw-r--r-- | builder-model/src/main/java/com/android/builder/model/AndroidLibrary.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/builder-model/src/main/java/com/android/builder/model/AndroidLibrary.java b/builder-model/src/main/java/com/android/builder/model/AndroidLibrary.java index dfd8d33..0510899 100644 --- a/builder-model/src/main/java/com/android/builder/model/AndroidLibrary.java +++ b/builder-model/src/main/java/com/android/builder/model/AndroidLibrary.java @@ -17,6 +17,7 @@ package com.android.builder.model; import com.android.annotations.NonNull; +import com.android.annotations.Nullable; import java.io.File; import java.util.List; @@ -27,6 +28,14 @@ import java.util.List; public interface AndroidLibrary { /** + * Returns the project identifier if the library is output + * by a module. + * @return the project identifier + */ + @Nullable + String getProject(); + + /** * Returns the location of the library aar bundle. */ @NonNull |