本文整理匯總了Java中com.android.build.gradle.tasks.ProcessAndroidResources類的典型用法代碼示例。如果您正苦於以下問題:Java ProcessAndroidResources類的具體用法?Java ProcessAndroidResources怎麽用?Java ProcessAndroidResources使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ProcessAndroidResources類屬於com.android.build.gradle.tasks包,在下文中一共展示了ProcessAndroidResources類的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: LegacyPlaceholderTaskApplicator
import com.android.build.gradle.tasks.ProcessAndroidResources; //導入依賴的package包/類
LegacyPlaceholderTaskApplicator(Project project) throws Exception {
super(project);
method_getOutputs = ApplicationVariant.class.getMethod("getOutputs");
method_getOutputs.setAccessible(true);
method_setResDir = ProcessAndroidResources.class.getMethod("setResDir", File.class);
method_setResDir.setAccessible(true);
}
示例2: createProcessResTask
import com.android.build.gradle.tasks.ProcessAndroidResources; //導入依賴的package包/類
public void createProcessResTask(
@NonNull TaskFactory tasks,
@NonNull VariantScope scope,
@Nullable File symbolLocation,
boolean generateResourcePackage) {
BaseVariantData<? extends BaseVariantOutputData> variantData = scope.getVariantData();
variantData.calculateFilters(scope.getGlobalScope().getExtension().getSplits());
// loop on all outputs. The only difference will be the name of the task, and location
// of the generated data.
for (BaseVariantOutputData vod : variantData.getOutputs()) {
final VariantOutputScope variantOutputScope = vod.getScope();
variantOutputScope.setProcessResourcesTask(androidTasks.create(tasks,
new ProcessAndroidResources.ConfigAction(variantOutputScope, symbolLocation,
generateResourcePackage)));
variantOutputScope.getProcessResourcesTask().dependsOn(tasks,
variantOutputScope.getManifestProcessorTask(),
scope.getMergeResourcesTask(),
scope.getMergeAssetsTask());
// TODO: Make it non-optional once this is not behind a flag.
variantOutputScope.getProcessResourcesTask().optionalDependsOn(tasks,
scope.getPreprocessResourcesTask());
if (vod.getMainOutputFile().getFilter(DENSITY) == null) {
scope.setGenerateRClassTask(variantOutputScope.getProcessResourcesTask());
scope.getSourceGenTask().optionalDependsOn(tasks,
variantOutputScope.getProcessResourcesTask());
}
}
}
示例3: DefaultPlaceholderTaskApplicator
import com.android.build.gradle.tasks.ProcessAndroidResources; //導入依賴的package包/類
DefaultPlaceholderTaskApplicator(Project project) throws Exception {
super(project);
field_inputResourcesDir = ProcessAndroidResources.class.getDeclaredField("inputResourcesDir");
field_inputResourcesDir.setAccessible(true);
}
示例4: getProcessResources
import com.android.build.gradle.tasks.ProcessAndroidResources; //導入依賴的package包/類
@NonNull
@Override
public ProcessAndroidResources getProcessResources() {
return getVariantOutputData().processResourcesTask;
}
示例5: getProcessResourcesTask
import com.android.build.gradle.tasks.ProcessAndroidResources; //導入依賴的package包/類
public AndroidTask<ProcessAndroidResources> getProcessResourcesTask() {
return processResourcesTask;
}
示例6: setProcessResourcesTask
import com.android.build.gradle.tasks.ProcessAndroidResources; //導入依賴的package包/類
public void setProcessResourcesTask(
AndroidTask<ProcessAndroidResources> processResourcesTask) {
this.processResourcesTask = processResourcesTask;
}
示例7: getGenerateRClassTask
import com.android.build.gradle.tasks.ProcessAndroidResources; //導入依賴的package包/類
public AndroidTask<ProcessAndroidResources> getGenerateRClassTask() {
return generateRClassTask;
}
示例8: setGenerateRClassTask
import com.android.build.gradle.tasks.ProcessAndroidResources; //導入依賴的package包/類
public void setGenerateRClassTask(
AndroidTask<ProcessAndroidResources> generateRClassTask) {
this.generateRClassTask = generateRClassTask;
}
示例9: getProcessResources
import com.android.build.gradle.tasks.ProcessAndroidResources; //導入依賴的package包/類
/**
* Returns the Android Resources processing task.
*/
@NonNull
ProcessAndroidResources getProcessResources();