@@ -52,6 +52,7 @@ class Build extends BuildBase implements Linkable, ArtifactsProvider
52
52
const ARTIFACT_ASSET_PACKAGE ="asset-package " ;
53
53
const ARTIFACT_ASSET_PREVIEW ="asset-preview " ;
54
54
const ARTIFACT_ASSET_NOTIFY ="asset-notify " ;
55
+ const ARTIFACT_DATA_SAFETY_CSV ="data-safety-csv " ;
55
56
56
57
/**
57
58
* Array of valid status transitions. The key is the starting
@@ -212,6 +213,7 @@ public function artifacts() {
212
213
}
213
214
$ this ->addIfSet ($ artifacts , self ::ARTIFACT_ENCRYPTED_KEY , $ this ->encryptedKey ());
214
215
$ this ->addIfSet ($ artifacts , self ::ARTIFACT_ABOUT , $ this ->about ());
216
+ $ this ->addIfSet ( $ artifacts , self ::ARTIFACT_DATA_SAFETY_CSV , $ this ->dataSafetyCsv ());
215
217
}
216
218
217
219
if (strpos ($ this ->targets , "play-listing " ) !== false ) {
@@ -432,6 +434,8 @@ public function artifactType($key) {
432
434
} else if (preg_match ("/play-listing\/manifest.json$/ " , $ key )) {
433
435
$ type = self ::ARTIFACT_PLAY_LISTING_MANIFEST ;
434
436
$ file = "play-listing/manifest.json " ;
437
+ } else if (preg_match ("/data_safety\.csv$ " , $ key )) {
438
+ $ type = self ::ARTIFACT_DATA_SAFETY_CSV ;
435
439
}
436
440
437
441
return array ($ type , $ file );
@@ -479,6 +483,7 @@ public function handleArtifact($fileKey, $contents) {
479
483
case self ::ARTIFACT_ASSET_PREVIEW :
480
484
case self ::ARTIFACT_ASSET_PACKAGE :
481
485
case self ::ARTIFACT_ASSET_NOTIFY :
486
+ case self ::ARTIFACT_DATA_SAFETY_CSV :
482
487
break ;
483
488
484
489
default :
@@ -614,6 +619,9 @@ public function assetPreview() {
614
619
public function assetNotify () {
615
620
return $ this ->getArtifactUrl ("/asset-package\/notify\.json$/ " );
616
621
}
622
+ public function dataSafetyCsv () {
623
+ return $ this ->getArtifactUrl ( "/data_safety\.csv$/ " );
624
+ }
617
625
618
626
/**
619
627
*
0 commit comments