Skip to content

Commit

Permalink
feat(actions): update subosito/flutter-action@v2 (#1313)
Browse files Browse the repository at this point in the history
Created automatically.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Mar 21, 2024
1 parent 30fc9b9 commit 8fc438f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion actions/subosito/flutter-action/v2/commit-hash.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
62f096cacda5168a3bd7b95793373be14fa4fbaf
1c5eb12d812966ca84680edc38353a0851c8fd56
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import kotlin.collections.toTypedArray
* @param cacheKey Identifier for the Flutter SDK cache
* @param pubCacheKey Identifier for the Dart .pub-cache cache
* @param cachePath Flutter SDK cache path
* @param pubCachePath Flutter pub cache path
* @param architecture The architecture of Flutter SDK executable (x64 or arm64)
* @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by
* the binding
Expand Down Expand Up @@ -63,6 +64,10 @@ public data class FlutterActionV2 private constructor(
* Flutter SDK cache path
*/
public val cachePath: String? = null,
/**
* Flutter pub cache path
*/
public val pubCachePath: String? = null,
/**
* The architecture of Flutter SDK executable (x64 or arm64)
*/
Expand All @@ -85,12 +90,13 @@ public data class FlutterActionV2 private constructor(
cacheKey: String? = null,
pubCacheKey: String? = null,
cachePath: String? = null,
pubCachePath: String? = null,
architecture: FlutterActionV2.Architecture? = null,
_customInputs: Map<String, String> = mapOf(),
_customVersion: String? = null,
) : this(flutterVersion=flutterVersion, channel=channel, cache=cache, cacheKey=cacheKey,
pubCacheKey=pubCacheKey, cachePath=cachePath, architecture=architecture,
_customInputs=_customInputs, _customVersion=_customVersion)
pubCacheKey=pubCacheKey, cachePath=cachePath, pubCachePath=pubCachePath,
architecture=architecture, _customInputs=_customInputs, _customVersion=_customVersion)

@Suppress("SpreadOperator")
override fun toYamlArguments(): LinkedHashMap<String, String> = linkedMapOf(
Expand All @@ -101,6 +107,7 @@ public data class FlutterActionV2 private constructor(
cacheKey?.let { "cache-key" to it },
pubCacheKey?.let { "pub-cache-key" to it },
cachePath?.let { "cache-path" to it },
pubCachePath?.let { "pub-cache-path" to it },
architecture?.let { "architecture" to it.stringValue },
*_customInputs.toList().toTypedArray(),
).toTypedArray()
Expand Down

0 comments on commit 8fc438f

Please sign in to comment.