From 986e27038c33d74853c4ef915e9b95b4ba4353a3 Mon Sep 17 00:00:00 2001 From: enahum Date: Fri, 1 Dec 2017 11:50:13 -0300 Subject: [PATCH] Fix upload source maps for android to sentry (#1238) --- android/app/build.gradle | 6 +++--- fastlane/Fastfile | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 673554367..020e1b866 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -79,9 +79,9 @@ project.ext.react = [ apply from: "../../node_modules/react-native/react.gradle" apply from: "../../node_modules/react-native-vector-icons/fonts.gradle" -//if (System.getenv("SENTRY_ENABLED") == "true") { -// apply from: "../../node_modules/react-native-sentry/sentry.gradle" -//} +if (System.getenv("SENTRY_ENABLED") == "true") { + apply from: "../../node_modules/react-native-sentry/sentry.gradle" +} /** * Set this to true to create two separate APKs instead of one: diff --git a/fastlane/Fastfile b/fastlane/Fastfile index dd61af03f..abb7db7e2 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -635,14 +635,14 @@ end def link_sentry_android() if ENV['SENTRY_ENABLED'] == 'true' + url = 'https://sentry.io' File.open('../android/sentry.properties', 'w+') do |f| UI.message('Creating sentry.properties from environment') f.write( - 'defaults.url=https://sentry.io/\n'\ + "defaults.url=#{url}\n"\ "defaults.org=#{ENV['SENTRY_ORG']}\n"\ "defaults.project=#{ENV['SENTRY_PROJECT_ANDROID']}\n"\ - "auth.token=#{ENV['SENTRY_AUTH_TOKEN']}\n"\ - "cli.executable=${File.expand_path('node_modules/sentry-cli-binary/bin/sentry-cli')}\n" + "auth.token=#{ENV['SENTRY_AUTH_TOKEN']}\n" ) end else