Fix upload source maps for android to sentry (#1238)

This commit is contained in:
enahum 2017-12-01 11:50:13 -03:00 committed by GitHub
parent 5493617af7
commit 986e27038c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View file

@ -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:

View file

@ -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