Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/flutter_tools/gradle/flutter.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -1035,6 +1035,9 @@ class FlutterPlugin implements Plugin<Project> {
if (shorebirdYaml.containsKey('base_url')) {
content += 'base_url: ' + shorebirdYaml['base_url'] + '\n';
}
if (shorebirdYaml.containsKey('auto_update')) {
content += 'auto_update: ' + shorebirdYaml['auto_update'] + '\n';
}
shorebirdYamlFile.write(content)
}
}
Expand Down
4 changes: 4 additions & 0 deletions packages/flutter_tools/lib/src/ios/mac.dart
Original file line number Diff line number Diff line change
Expand Up @@ -542,10 +542,14 @@ Please file an issue at: https://github.com/shorebirdtech/shorebird/issues/new
}
final StringBuffer yamlContent = StringBuffer();
final String? baseUrl = yamlMap['base_url'] as String?;
final bool? autoUpdate = yamlMap['auto_update'] as bool?;
yamlContent.writeln('app_id: $appId');
if (baseUrl != null) {
yamlContent.writeln('base_url: $baseUrl');
}
if (autoUpdate != null) {
yamlContent.writeln('auto_update: $autoUpdate');
}
shorebirdYaml.writeAsStringSync(yamlContent.toString(), flush: true);
}

Expand Down