forked from miguelpruivo/flutter_file_picker
-
Notifications
You must be signed in to change notification settings - Fork 0
[Generated By Dashwave AI] Update package version in pubspec.yaml #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dashwave-ci-dev
wants to merge
1
commit into
master
Choose a base branch
from
dashwave/update-package-version
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| org.gradle.logging.level=info | ||
| org.gradle.logging.stacktrace=all |
65 changes: 65 additions & 0 deletions
65
build-cache/init.d/gradle-actions.build-result-capture-service.plugin.groovy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| import org.gradle.tooling.events.* | ||
| import org.gradle.tooling.events.task.* | ||
| import org.gradle.util.GradleVersion | ||
|
|
||
| // Can't use settingsEvaluated since this script is applied inside a settingsEvaluated handler | ||
| // But projectsEvaluated is good enough, since the build service won't catch configuration failures anyway | ||
| projectsEvaluated { | ||
| def projectTracker = gradle.sharedServices.registerIfAbsent("gradle-action-buildResultsRecorder", BuildResultsRecorder, { spec -> | ||
| spec.getParameters().getRootProjectName().set(gradle.rootProject.name) | ||
| spec.getParameters().getRootProjectDir().set(gradle.rootProject.rootDir.absolutePath) | ||
| spec.getParameters().getRequestedTasks().set(gradle.startParameter.taskNames.join(" ")) | ||
| spec.getParameters().getGradleHomeDir().set(gradle.gradleHomeDir.absolutePath) | ||
| spec.getParameters().getInvocationId().set(gradle.ext.invocationId) | ||
| }) | ||
|
|
||
| gradle.services.get(BuildEventsListenerRegistry).onTaskCompletion(projectTracker) | ||
| } | ||
|
|
||
| abstract class BuildResultsRecorder implements BuildService<BuildResultsRecorder.Params>, OperationCompletionListener, AutoCloseable { | ||
| private boolean buildFailed = false | ||
| interface Params extends BuildServiceParameters { | ||
| Property<String> getRootProjectName() | ||
| Property<String> getRootProjectDir() | ||
| Property<String> getRequestedTasks() | ||
| Property<String> getGradleHomeDir() | ||
| Property<String> getInvocationId() | ||
| } | ||
|
|
||
| public void onFinish(FinishEvent finishEvent) { | ||
| if (finishEvent instanceof TaskFinishEvent && finishEvent.result instanceof TaskFailureResult) { | ||
| buildFailed = true | ||
| } | ||
| } | ||
|
|
||
| @Override | ||
| public void close() { | ||
| def buildResults = [ | ||
| rootProjectName: getParameters().getRootProjectName().get(), | ||
| rootProjectDir: getParameters().getRootProjectDir().get(), | ||
| requestedTasks: getParameters().getRequestedTasks().get(), | ||
| gradleVersion: GradleVersion.current().version, | ||
| gradleHomeDir: getParameters().getGradleHomeDir().get(), | ||
| buildFailed: buildFailed, | ||
| buildScanUri: null, | ||
| buildScanFailed: false | ||
| ] | ||
|
|
||
| def runnerTempDir = System.getenv("RUNNER_TEMP") | ||
| def githubActionStep = System.getenv("GITHUB_ACTION") | ||
| if (!runnerTempDir || !githubActionStep) { | ||
| return | ||
| } | ||
|
|
||
| try { | ||
| def buildResultsDir = new File(runnerTempDir, ".build-results") | ||
| buildResultsDir.mkdirs() | ||
| def buildResultsFile = new File(buildResultsDir, githubActionStep + getParameters().getInvocationId().get() + ".json") | ||
| if (!buildResultsFile.exists()) { | ||
| buildResultsFile << groovy.json.JsonOutput.toJson(buildResults) | ||
| } | ||
| } catch (Exception e) { | ||
| println "\ngradle action failed to write build-results file. Will continue.\n> ${e.getLocalizedMessage()}" | ||
| } | ||
| } | ||
| } |
143 changes: 143 additions & 0 deletions
143
build-cache/init.d/gradle-actions.build-result-capture.init.gradle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,143 @@ | ||
| /* | ||
| * Capture information for each executed Gradle build to display in the job summary. | ||
| */ | ||
| import org.gradle.util.GradleVersion | ||
|
|
||
| // Only run against root build. Do not run against included builds. | ||
| def isTopLevelBuild = gradle.getParent() == null | ||
| if (isTopLevelBuild) { | ||
| def version = GradleVersion.current().baseVersion | ||
|
|
||
| def atLeastGradle3 = version >= GradleVersion.version("3.0") | ||
| def atLeastGradle6 = version >= GradleVersion.version("6.0") | ||
|
|
||
| def invocationId = "-${System.currentTimeMillis()}" | ||
|
|
||
| if (atLeastGradle6) { | ||
| def useBuildService = version >= GradleVersion.version("6.6") | ||
| settingsEvaluated { settings -> | ||
| // By default, use standard mechanisms to capture build results | ||
| if (useBuildService) { | ||
| captureUsingBuildService(settings, invocationId) | ||
| } else { | ||
| captureUsingBuildFinished(gradle, invocationId) | ||
| } | ||
|
|
||
| // The `buildScanPublished` hook allows the capture of the Build Scan URI. | ||
| // Results captured this way will overwrite any results from the other mechanism. | ||
| settings.pluginManager.withPlugin("com.gradle.enterprise") { | ||
| captureUsingBuildScanPublished(settings.extensions["gradleEnterprise"].buildScan, settings.rootProject, invocationId) | ||
| } | ||
| } | ||
| } else if (atLeastGradle3) { | ||
| projectsEvaluated { gradle -> | ||
| // By default, use 'buildFinished' to capture build results | ||
| captureUsingBuildFinished(gradle, invocationId) | ||
|
|
||
| // The `buildScanPublished` hook allows the capture of the Build Scan URI. | ||
| // Results captured this way will overwrite any results from 'buildFinished'. | ||
| gradle.rootProject.pluginManager.withPlugin("com.gradle.build-scan") { | ||
| captureUsingBuildScanPublished(gradle.rootProject.extensions["buildScan"], gradle.rootProject, invocationId) | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
||
| def captureUsingBuildScanPublished(buildScanExtension, rootProject, invocationId) { | ||
| buildScanExtension.with { | ||
| def buildResults = new BuildResults(invocationId, gradle, rootProject) | ||
|
|
||
| buildFinished { result -> | ||
| buildResults.setBuildResult(result) | ||
| } | ||
|
|
||
| buildScanPublished { buildScan -> | ||
| buildResults.setBuildScanUri(buildScan.buildScanUri.toASCIIString()) | ||
| buildResults.writeToResultsFile(true) | ||
|
|
||
| def githubOutput = "github-output" | ||
| if (githubOutput) { | ||
| new File(githubOutput) << "build-scan-url=${buildScan.buildScanUri}\n" | ||
| } else { | ||
| // Retained for compatibility with older GitHub Enterprise versions | ||
| println("::set-output name=build-scan-url::${buildScan.buildScanUri}") | ||
| } | ||
| } | ||
|
|
||
| onError { error -> | ||
| buildResults.setBuildScanFailed() | ||
| buildResults.writeToResultsFile(true) | ||
| } | ||
| } | ||
| } | ||
|
|
||
| def captureUsingBuildFinished(gradle, invocationId) { | ||
| gradle.buildFinished { result -> | ||
| println "Got buildFinished: ${result}" | ||
| def buildResults = new BuildResults(invocationId, gradle, gradle.rootProject) | ||
| buildResults.setBuildResult(result) | ||
| buildResults.writeToResultsFile(false) | ||
| } | ||
| } | ||
|
|
||
| def captureUsingBuildService(settings, invocationId) { | ||
| gradle.ext.invocationId = invocationId | ||
| apply from: 'gradle-actions.build-result-capture-service.plugin.groovy' | ||
| } | ||
|
|
||
| class BuildResults { | ||
| def invocationId | ||
| def buildResults | ||
|
|
||
| BuildResults(String invocationId, def gradle, def rootProject) { | ||
| this.invocationId = invocationId | ||
| buildResults = [ | ||
| rootProjectName: rootProject.name, | ||
| rootProjectDir: rootProject.projectDir.absolutePath, | ||
| requestedTasks: gradle.startParameter.taskNames.join(" "), | ||
| gradleVersion: GradleVersion.current().version, | ||
| gradleHomeDir: gradle.gradleHomeDir.absolutePath, | ||
| buildFailed: false, | ||
| buildScanUri: null, | ||
| buildScanFailed: false | ||
| ] | ||
| } | ||
|
|
||
| def setBuildResult(def result) { | ||
| buildResults['buildFailed'] = result.failure != null | ||
| } | ||
|
|
||
| def setBuildScanUri(def buildScanUrl) { | ||
| buildResults['buildScanUri'] = buildScanUrl | ||
| } | ||
|
|
||
| def setBuildScanFailed() { | ||
| buildResults['buildScanFailed'] = true | ||
| } | ||
|
|
||
| def writeToResultsFile(boolean overwrite) { | ||
| def runnerTempDir = "/Users/burnerlee/temp-dir" | ||
| def githubActionStep = "github-action" | ||
| if (!runnerTempDir || !githubActionStep) { | ||
| return | ||
| } | ||
|
|
||
| try { | ||
| def buildResultsDir = new File(runnerTempDir, ".build-results") | ||
| buildResultsDir.mkdirs() | ||
| def buildResultsFile = new File(buildResultsDir, githubActionStep + invocationId + ".json") | ||
|
|
||
| // Overwrite any contents written by buildFinished or build service, since this result is a superset. | ||
| if (buildResultsFile.exists()) { | ||
| if (overwrite) { | ||
| buildResultsFile.text = groovy.json.JsonOutput.toJson(buildResults) | ||
| } | ||
| } else { | ||
| buildResultsFile << groovy.json.JsonOutput.toJson(buildResults) | ||
| } | ||
|
|
||
| } catch (Exception e) { | ||
| println "\ngradle action failed to write build-results file. Will continue.\n> ${e.getLocalizedMessage()}" | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid hard-coding the runnerTempDir; use an environment variable (e.g. RUNNER_TEMP) to ensure portability across environments.