@@ -52,6 +52,7 @@ class Build extends BuildBase implements Linkable, ArtifactsProvider
5252 const ARTIFACT_ASSET_PACKAGE ="asset-package " ;
5353 const ARTIFACT_ASSET_PREVIEW ="asset-preview " ;
5454 const ARTIFACT_ASSET_NOTIFY ="asset-notify " ;
55+ const ARTIFACT_DATA_SAFETY_CSV ="data-safety-csv " ;
5556
5657 /**
5758 * Array of valid status transitions. The key is the starting
@@ -212,6 +213,7 @@ public function artifacts() {
212213 }
213214 $ this ->addIfSet ($ artifacts , self ::ARTIFACT_ENCRYPTED_KEY , $ this ->encryptedKey ());
214215 $ this ->addIfSet ($ artifacts , self ::ARTIFACT_ABOUT , $ this ->about ());
216+ $ this ->addIfSet ( $ artifacts , self ::ARTIFACT_DATA_SAFETY_CSV , $ this ->dataSafetyCsv ());
215217 }
216218
217219 if (strpos ($ this ->targets , "play-listing " ) !== false ) {
@@ -432,6 +434,8 @@ public function artifactType($key) {
432434 } else if (preg_match ("/play-listing\/manifest.json$/ " , $ key )) {
433435 $ type = self ::ARTIFACT_PLAY_LISTING_MANIFEST ;
434436 $ file = "play-listing/manifest.json " ;
437+ } else if (preg_match ("/data_safety\.csv$ " , $ key )) {
438+ $ type = self ::ARTIFACT_DATA_SAFETY_CSV ;
435439 }
436440
437441 return array ($ type , $ file );
@@ -479,6 +483,7 @@ public function handleArtifact($fileKey, $contents) {
479483 case self ::ARTIFACT_ASSET_PREVIEW :
480484 case self ::ARTIFACT_ASSET_PACKAGE :
481485 case self ::ARTIFACT_ASSET_NOTIFY :
486+ case self ::ARTIFACT_DATA_SAFETY_CSV :
482487 break ;
483488
484489 default :
@@ -614,6 +619,9 @@ public function assetPreview() {
614619 public function assetNotify () {
615620 return $ this ->getArtifactUrl ("/asset-package\/notify\.json$/ " );
616621 }
622+ public function dataSafetyCsv () {
623+ return $ this ->getArtifactUrl ( "/data_safety\.csv$/ " );
624+ }
617625
618626 /**
619627 *
0 commit comments