All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.nokee.platform.nativebase.internal.DefaultNativeApplicationVariant Maven / Gradle / Ivy

The newest version!
package dev.nokee.platform.nativebase.internal;

import dev.nokee.platform.base.internal.BuildVariant;
import dev.nokee.platform.base.internal.NamingScheme;
import dev.nokee.platform.nativebase.NativeApplication;
import dev.nokee.platform.nativebase.NativeComponentDependencies;
import dev.nokee.platform.nativebase.internal.dependencies.BinaryAwareNativeComponentDependencies;
import lombok.Getter;
import org.gradle.api.Action;

import javax.inject.Inject;

public abstract class DefaultNativeApplicationVariant extends BaseNativeVariant implements NativeApplication {
	@Getter private final BinaryAwareNativeComponentDependencies dependencies;

	@Inject
	public DefaultNativeApplicationVariant(String name, NamingScheme names, BuildVariant buildVariant, BinaryAwareNativeComponentDependencies dependencies) {
		super(name, names, buildVariant);
		this.dependencies = dependencies;
	}

	@Override
	public void dependencies(Action action) {
		action.execute(dependencies);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy