Skip to content

Commit 03e895e

Browse files
authored
fix(flutter_tools): shorebird.yaml -> config includes auto_update (#20)
1 parent 49b602f commit 03e895e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

packages/flutter_tools/gradle/flutter.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,6 +1035,9 @@ class FlutterPlugin implements Plugin<Project> {
10351035
if (shorebirdYaml.containsKey('base_url')) {
10361036
content += 'base_url: ' + shorebirdYaml['base_url'] + '\n';
10371037
}
1038+
if (shorebirdYaml.containsKey('auto_update')) {
1039+
content += 'auto_update: ' + shorebirdYaml['auto_update'] + '\n';
1040+
}
10381041
shorebirdYamlFile.write(content)
10391042
}
10401043
}

packages/flutter_tools/lib/src/ios/mac.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,10 +542,14 @@ Please file an issue at: https://github.com/shorebirdtech/shorebird/issues/new
542542
}
543543
final StringBuffer yamlContent = StringBuffer();
544544
final String? baseUrl = yamlMap['base_url'] as String?;
545+
final bool? autoUpdate = yamlMap['auto_update'] as bool?;
545546
yamlContent.writeln('app_id: $appId');
546547
if (baseUrl != null) {
547548
yamlContent.writeln('base_url: $baseUrl');
548549
}
550+
if (autoUpdate != null) {
551+
yamlContent.writeln('auto_update: $autoUpdate');
552+
}
549553
shorebirdYaml.writeAsStringSync(yamlContent.toString(), flush: true);
550554
}
551555

0 commit comments

Comments
 (0)