diff --git a/ci/Jenkinsfile.android b/ci/Jenkinsfile.android index 91bda9a36d..97f2ec2978 100644 --- a/ci/Jenkinsfile.android +++ b/ci/Jenkinsfile.android @@ -1,5 +1,5 @@ #!/usr/bin/env groovy -library 'status-jenkins-lib@v1.9.13' +library 'status-jenkins-lib@v1.9.15' /* Options section can't access functions in objects. */ def isPRBuild = utils.isPRBuild() @@ -41,6 +41,7 @@ pipeline { BUILD_ENV = 'prod' NIX_CONF_DIR = "${env.WORKSPACE}/nix" FASTLANE_DISABLE_COLORS = 1 + SENTRY_PRODUCTION = "${utils.isReleaseBuild() ? 'true' : 'false'}" } stages { diff --git a/ci/Jenkinsfile.combined b/ci/Jenkinsfile.combined index 640802fdff..1adaf753c1 100644 --- a/ci/Jenkinsfile.combined +++ b/ci/Jenkinsfile.combined @@ -1,5 +1,5 @@ #!/usr/bin/env groovy -library 'status-jenkins-lib@v1.9.13' +library 'status-jenkins-lib@v1.9.15' import groovy.json.JsonBuilder diff --git a/ci/Jenkinsfile.ios b/ci/Jenkinsfile.ios index 661701e4a4..fa160b49c4 100644 --- a/ci/Jenkinsfile.ios +++ b/ci/Jenkinsfile.ios @@ -1,5 +1,5 @@ #!/usr/bin/env groovy -library 'status-jenkins-lib@v1.9.13' +library 'status-jenkins-lib@v1.9.15' /* Options section can't access functions in objects. */ def isPRBuild = utils.isPRBuild() @@ -41,6 +41,7 @@ pipeline { NIX_CONF_DIR = "${env.WORKSPACE}/nix" FASTLANE_DISABLE_COLORS = 1 BUNDLE_PATH = "${HOME}/.bundle" + SENTRY_PRODUCTION = "${utils.isReleaseBuild() ? 'true' : 'false'}" } stages { diff --git a/nix/status-go/mobile/build.nix b/nix/status-go/mobile/build.nix index 6f3872f73c..759270f537 100644 --- a/nix/status-go/mobile/build.nix +++ b/nix/status-go/mobile/build.nix @@ -11,7 +11,7 @@ , outputFileName ? "status-go-${source.shortRev}-${platform}.aar" }: let - inherit (lib) concatStringsSep optionalString optional splitString; + inherit (lib) concatStringsSep optionalString optional splitString fileContents; isIOS = platform == "ios"; isAndroid = platform == "android"; enforceXCodeAvailable = callPackage ./enforceXCodeAvailable.nix { }; @@ -46,6 +46,10 @@ in buildGoPackage rec { # TODO: try removing when go is upgraded to 1.22 GODEBUG = "netdns=cgo+2"; + # Sentry for status-go + SENTRY_CONTEXT_NAME = "status-mobile"; + SENTRY_CONTEXT_VERSION = fileContents ../../../VERSION; + preBuild = '' echo 'Generate static files' pushd go/src/$goPackagePath