-
Notifications
You must be signed in to change notification settings - Fork 161
Expand file tree
/
Copy pathVariantOutput.java
More file actions
101 lines (84 loc) · 2.82 KB
/
VariantOutput.java
File metadata and controls
101 lines (84 loc) · 2.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/*
* Copyright (C) 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.build;
import com.android.annotations.NonNull;
import java.util.Collection;
/** basic variant output information */
@Deprecated
public interface VariantOutput {
/** An object representing the lack of filter. */
String NO_FILTER = null;
/**
* Type of package file, either the main APK or a full split APK file containing resources for a
* particular split dimension.
*/
enum OutputType {
MAIN,
FULL_SPLIT
}
/**
* String representation of the OutputType enum which can be used for remote-able interfaces.
*/
String MAIN = OutputType.MAIN.name();
String FULL_SPLIT = OutputType.FULL_SPLIT.name();
/** Split dimension type */
enum FilterType {
DENSITY,
ABI,
LANGUAGE
}
/**
* String representations of the FilterType enum which can be used for remote-able interfaces.Ap
*/
String DENSITY = FilterType.DENSITY.name();
String ABI = FilterType.ABI.name();
String LANGUAGE = FilterType.LANGUAGE.name();
/** Returns the output type of the referenced APK. */
@NonNull
String getOutputType();
/**
* Returns the split dimensions the referenced APK was created with. Each collection's value is
* the string representation of an element of the {@link FilterType} enum.
*/
@NonNull
Collection<String> getFilterTypes();
/** Returns all the split information used to create the APK. */
@NonNull
Collection<FilterData> getFilters();
/**
* Returns the main file for this artifact which can be either the {@link
* OutputType#MAIN} or {@link
* OutputType#FULL_SPLIT}
*/
@NonNull
OutputFile getMainOutputFile();
/**
* All the output files for this artifacts, contains the main APK and optionally a list of split
* APKs.
*/
@NonNull
@Deprecated
Collection<? extends OutputFile> getOutputs();
/**
* Returns the version code for this output.
*
* <p>This is convenient method that returns the final version code whether it's coming from the
* override set in the output or from the variant's merged flavor.
*
* @return the version code.
*/
int getVersionCode();
}