Skip to content

Commit

Permalink
chore: add rushVersion to component_build_infos.json
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyashsaitwal committed Jan 11, 2024
1 parent 792d810 commit b192773
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/src/utils/process_runner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import 'package:rush_cli/src/services/file_service.dart';
import 'package:rush_cli/src/services/logger.dart';
import 'package:rush_cli/src/services/lib_service.dart';
import 'package:rush_cli/src/utils/constants.dart';
import 'package:rush_cli/src/version.dart';

class ProcessRunner {
final _fs = GetIt.I<FileService>();
Expand All @@ -28,6 +29,7 @@ class ProcessRunner {
el.coordinate ==
'io.github.shreyashsaitwal.rush:runtime:$ai2RuntimeVersion')
.classesJar,
'RUSH_VERSION': packageVersion,
});
} catch (e) {
if (e.toString().contains('The system cannot find the file specified')) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,11 @@ class InfoFilesGenerator(private val extensions: List<ExtensionModel>, private v
fun generateBuildInfoJson() {
val yaml = metadataFile()
val buildInfoJsonArray = JSONArray()
val rushVersion = System.getenv("RUSH_VERSION")

for (ext in extensions) {
val extJsonObj = JSONObject()
.put("rushVersion", rushVersion)
.put("type", ext.fqcn)
.put("androidMinSdk", listOf(yaml.minSdk.coerceAtLeast(7)))

Expand Down

0 comments on commit b192773

Please sign in to comment.