當前位置: 首頁>>代碼示例>>Java>>正文


Java ProcessAndroidResources類代碼示例

本文整理匯總了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);
}
 
開發者ID:benjamin-bader,項目名稱:placeholders-plugin,代碼行數:10,代碼來源:LegacyPlaceholderTaskApplicator.java

示例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());
        }

    }

}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:36,代碼來源:TaskManager.java

示例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);
}
 
開發者ID:benjamin-bader,項目名稱:placeholders-plugin,代碼行數:6,代碼來源:DefaultPlaceholderTaskApplicator.java

示例4: getProcessResources

import com.android.build.gradle.tasks.ProcessAndroidResources; //導入依賴的package包/類
@NonNull
@Override
public ProcessAndroidResources getProcessResources() {
    return getVariantOutputData().processResourcesTask;
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:6,代碼來源:BaseVariantOutputImpl.java

示例5: getProcessResourcesTask

import com.android.build.gradle.tasks.ProcessAndroidResources; //導入依賴的package包/類
public AndroidTask<ProcessAndroidResources> getProcessResourcesTask() {
    return processResourcesTask;
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:4,代碼來源:VariantOutputScope.java

示例6: setProcessResourcesTask

import com.android.build.gradle.tasks.ProcessAndroidResources; //導入依賴的package包/類
public void setProcessResourcesTask(
        AndroidTask<ProcessAndroidResources> processResourcesTask) {
    this.processResourcesTask = processResourcesTask;
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:5,代碼來源:VariantOutputScope.java

示例7: getGenerateRClassTask

import com.android.build.gradle.tasks.ProcessAndroidResources; //導入依賴的package包/類
public AndroidTask<ProcessAndroidResources> getGenerateRClassTask() {
    return generateRClassTask;
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:4,代碼來源:VariantScope.java

示例8: setGenerateRClassTask

import com.android.build.gradle.tasks.ProcessAndroidResources; //導入依賴的package包/類
public void setGenerateRClassTask(
        AndroidTask<ProcessAndroidResources> generateRClassTask) {
    this.generateRClassTask = generateRClassTask;
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:5,代碼來源:VariantScope.java

示例9: getProcessResources

import com.android.build.gradle.tasks.ProcessAndroidResources; //導入依賴的package包/類
/**
 * Returns the Android Resources processing task.
 */
@NonNull
ProcessAndroidResources getProcessResources();
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:6,代碼來源:BaseVariantOutput.java


注:本文中的com.android.build.gradle.tasks.ProcessAndroidResources類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。