Skip to content

Commit

Permalink
Use recommended functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
yanzhenjie committed Mar 13, 2022
1 parent f71d5c0 commit 2102949
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private void configGenerator(Project project, DomainObjectSet<? extends BaseVari
private void configTask(BaseVariant variant) {
Action<Task> action = task -> {
String filename = String.format("%s.andserver", variant.getApplicationId());
File file = new File(variant.getMergeAssets().getOutputDir().get().getAsFile(), filename);
File file = new File(variant.getMergeAssetsProvider().get().getOutputDir().get().getAsFile(), filename);
if (!file.exists()) {
try {
file.createNewFile();
Expand All @@ -88,7 +88,7 @@ private void configTask(BaseVariant variant) {
}
}
};
variant.getMergeAssets().doLast(action);
variant.getMergeAssetsProvider().get().doLast(action);
}

public static String capitalize(String text) {
Expand Down

0 comments on commit 2102949

Please sign in to comment.