
com.android.build.gradle.internal.model.AndroidArtifactOutputImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle Show documentation
Show all versions of gradle Show documentation
Gradle plug-in to build Android applications.
/*
* 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.gradle.internal.model;
import com.android.annotations.NonNull;
import com.android.annotations.Nullable;
import com.android.builder.model.AndroidArtifactOutput;
import java.io.File;
import java.io.Serializable;
/**
* Implementation of AndroidArtifactOutput that is serializable
*/
public class AndroidArtifactOutputImpl implements AndroidArtifactOutput, Serializable {
private static final long serialVersionUID = 1L;
@NonNull
private final File outputFile;
@NonNull
private final File generatedManifest;
@NonNull
private final String assembleTaskName;
private final int versionCode;
@Nullable
private final String densityFilter;
@Nullable
private final String abiFilter;
AndroidArtifactOutputImpl(
@NonNull File outputFile,
@NonNull String assembleTaskName,
@NonNull File generatedManifest,
int versionCode,
@Nullable String densityFilter,
@Nullable String abiFilter) {
this.outputFile = outputFile;
this.generatedManifest = generatedManifest;
this.assembleTaskName = assembleTaskName;
this.versionCode = versionCode;
this.densityFilter = densityFilter;
this.abiFilter = abiFilter;
}
@NonNull
@Override
public File getOutputFile() {
return outputFile;
}
@NonNull
@Override
public String getAssembleTaskName() {
return assembleTaskName;
}
@NonNull
@Override
public File getGeneratedManifest() {
return generatedManifest;
}
@Override
public int getVersionCode() {
return versionCode;
}
@Nullable
@Override
public String getDensityFilter() {
return densityFilter;
}
@Nullable
@Override
public String getAbiFilter() {
return abiFilter;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy