Skip to content

Commit

Permalink
adapt gradle plugin 3.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kezong committed Mar 10, 2020
1 parent 51702b4 commit 8595cbe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ class VersionAdapter {
}

File getSymbolFile() {
if (Utils.compareVersion(mGradlePluginVersion, "3.1.0") >= 0) {
if (Utils.compareVersion(mGradlePluginVersion, "3.6.0") >= 0) {
return mProject.file(mProject.buildDir.path + '/intermediates/compile_symbol_list/' + mVariant.dirName + "/R.txt")
} else if (Utils.compareVersion(mGradlePluginVersion, "3.1.0") >= 0) {
return mProject.file(mProject.buildDir.path + '/intermediates/symbols/' + mVariant.dirName + "/R.txt")
} else {
return mProject.file(mProject.buildDir.path + '/intermediates/bundles/' + mVariant.name + "/R.txt")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import org.apache.tools.ant.BuildException;
import org.gradle.api.tasks.TaskAction;
import org.gradle.workers.WorkerExecutor;

import java.io.BufferedWriter;
import java.io.File;
Expand Down Expand Up @@ -87,4 +88,8 @@ public String getName() {
writer.flush();
writer.close();
}

public WorkerExecutor getWorkerExecutor() {
return null;
}
}

0 comments on commit 8595cbe

Please sign in to comment.