Fix upload source maps for android to sentry (#1238)
This commit is contained in:
parent
5493617af7
commit
986e27038c
2 changed files with 6 additions and 6 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue