dev.nokee.platform.objectivec.internal.DefaultObjectiveCLibraryExtension Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platformNative Show documentation
Show all versions of platformNative Show documentation
Painless native development in Gradle
The newest version!
package dev.nokee.platform.objectivec.internal;
import dev.nokee.language.objectivec.internal.ObjectiveCSourceSet;
import dev.nokee.platform.base.VariantView;
import dev.nokee.platform.base.internal.NamingScheme;
import dev.nokee.platform.nativebase.NativeLibrary;
import dev.nokee.platform.nativebase.NativeLibraryDependencies;
import dev.nokee.platform.nativebase.internal.BaseNativeExtension;
import dev.nokee.platform.nativebase.internal.DefaultNativeLibraryComponent;
import dev.nokee.platform.objectivec.ObjectiveCLibraryExtension;
import org.gradle.api.Action;
import org.gradle.api.Project;
import javax.inject.Inject;
public abstract class DefaultObjectiveCLibraryExtension extends BaseNativeExtension implements ObjectiveCLibraryExtension {
@Inject
public DefaultObjectiveCLibraryExtension(DefaultNativeLibraryComponent component) {
super(component);
getComponent().getSourceCollection().add(getObjects().newInstance(ObjectiveCSourceSet.class).srcDir("src/main/objc"));
}
@Override
public NativeLibraryDependencies getDependencies() {
return getComponent().getDependencies();
}
@Override
public void dependencies(Action super NativeLibraryDependencies> action) {
getComponent().dependencies(action);
}
public void finalizeExtension(Project project) {
getComponent().finalizeExtension(project);
}
@Override
public VariantView getVariants() {
return getComponent().getVariantCollection().getAsView(NativeLibrary.class);
}
}