com.android.build.VariantOutput Java Examples

The following examples show how to use com.android.build.VariantOutput. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AtlasDexArchiveBuilderTransform.java    From atlas with Apache License 2.0 5 votes vote down vote up
public AtlasDexArchiveBuilderTransform(AppVariantContext variantContext, VariantOutput variantOutput,
                                       @NonNull DexOptions dexOptions,
                                       @NonNull ErrorReporter errorReporter,
                                       @Nullable FileCache userLevelCache,
                                       int minSdkVersion,
                                       @NonNull DexerTool dexer,
                                       boolean useGradleWorkers,
                                       @Nullable Integer inBufferSize,
                                       @Nullable Integer outBufferSize,
                                       boolean isDebuggable) {

    this.variantContext = variantContext;
    this.variantOutput = (BaseVariantOutput) variantOutput;
    this.dexOptions = dexOptions;
    this.errorReporter = errorReporter;
    this.minSdkVersion = minSdkVersion;
    this.dexer = dexer;
    this.executor = WaitableExecutor.useGlobalSharedThreadPool();
    this.cacheHandler =
            new AtlasDexArchiveBuilderCacheHander(variantContext.getProject(),
                    userLevelCache, dexOptions, minSdkVersion, isDebuggable, dexer);
    this.useGradleWorkers = useGradleWorkers;
    this.inBufferSize =
            (inBufferSize == null ? DEFAULT_BUFFER_SIZE_IN_KB : inBufferSize) * 1024;
    this.outBufferSize =
            (outBufferSize == null ? DEFAULT_BUFFER_SIZE_IN_KB : outBufferSize) * 1024;
    this.isDebuggable = isDebuggable;

}