Skip to content

The only tool you need to know what is happening and how to fix it.

fix: ios/swift should always generate the symbol upload token

ddux36e6d7bbeea1
diff --git a/backend/app/repositories/project.repository.go b/backend/app/repositories/project.repository.go
index ae4e1bf5..8530451b 100644
--- a/backend/app/repositories/project.repository.go
+++ b/backend/app/repositories/project.repository.go
@@ -125,6 +125,11 @@ func (p *projectRepository) CreateWithOrganization(tx *sql.Tx, name string, fram
DropHealthyHealthchecks: true,
}
+ if frameworkRequiresSymbolUpload(framework) {
+ token := generateSecureToken()
+ project.SourceMapToken = &token
+ }
+
err := lit.InsertExistingUuid(tx, project)
if err != nil {
return nil, err
@@ -242,4 +247,13 @@ func generateSecureToken() string {
return strings.ReplaceAll(id.String(), "-", "")
}
+func frameworkRequiresSymbolUpload(framework string) bool {
+ switch framework {
+ case "ios":
+ return true
+ default:
+ return false
+ }
+}
+
var ProjectRepository = projectRepository{}