diff --git a/.travis.yml b/.travis.yml index 3844cd08ca..5eac390d38 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,7 +16,7 @@ matrix: - $HOME/.gradle/wrapper/ sudo: required before_install: - - nvm install 7 + - nvm install 8 - node --version - travis_retry curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list diff --git a/SentryReactNative.podspec b/SentryReactNative.podspec index 4634d2767a..fe4fc2321a 100644 --- a/SentryReactNative.podspec +++ b/SentryReactNative.podspec @@ -18,8 +18,8 @@ Pod::Spec.new do |s| s.preserve_paths = '*.js' s.dependency 'React' - s.dependency 'Sentry', '~> 3.4.2' - s.dependency 'Sentry/KSCrash', '~> 3.4.2' + s.dependency 'Sentry', '~> 3.4.3' + s.dependency 'Sentry/KSCrash', '~> 3.4.3' s.source_files = 'ios/RNSentry*.{h,m}' s.public_header_files = 'ios/RNSentry.h' diff --git a/android/build.gradle b/android/build.gradle index 6a1d115eb5..f5a7095950 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -21,5 +21,5 @@ android { dependencies { compile 'com.facebook.react:react-native:+' - compile 'io.sentry:sentry-android:1.4.0' + compile 'io.sentry:sentry-android:1.5.1' } diff --git a/appium/Makefile b/appium/Makefile index b7aeafb315..627bc42a0b 100644 --- a/appium/Makefile +++ b/appium/Makefile @@ -14,7 +14,9 @@ copy-local-files-to-example: find example/node_modules/react-native-sentry/ios -name 'RN*.[h|m]' -exec rm {} \; rm -rf example/node_modules/react-native-sentry/ios/Sentry/Sources/Sentry/* rm -rf example/node_modules/react-native-sentry/android/* + rm -rf example/node_modules/react-native-sentry/scripts/* cp -r ../lib/* example/node_modules/react-native-sentry/lib/ + cp -r ../scripts/* example/node_modules/react-native-sentry/scripts/ find ../ios -name 'RN*.[h|m]' -exec cp {} example/node_modules/react-native-sentry/ios/ \; cp -r ../android/* example/node_modules/react-native-sentry/android/ cp -r ../ios/Sentry/Sources/Sentry/* example/node_modules/react-native-sentry/ios/Sentry/Sources/Sentry/ @@ -33,6 +35,6 @@ local-android-test: fastlane build_android_for_device_farm ANDROID=1 pytest -vv tests/test_android.py -local-test: +local-test: create-test-bundle new-demo-project copy-local-files-to-example fastlane build_for_local_appium pytest -vv tests/test_ios.py diff --git a/examples b/examples index 577fc0dfaa..6cd2605230 160000 --- a/examples +++ b/examples @@ -1 +1 @@ -Subproject commit 577fc0dfaa30d5856fcd22381d60070855463e6d +Subproject commit 6cd2605230a977d220dcbb4888fecfa7a415646b diff --git a/package.json b/package.json index c2e3d0b610..9f78ca2700 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,8 @@ "chalk": "^1.1.1", "glob": "7.1.1", "inquirer": "3.0.6", - "raven-js": "^3.16.1", - "sentry-cli-binary": "^1.16.0", + "raven-js": "^3.17.0", + "sentry-cli-binary": "^1.19.1", "xcode": "0.9.3" }, "rnpm": { diff --git a/scripts/postlink.js b/scripts/postlink.js index 12a124f7d0..ac4212f72c 100644 --- a/scripts/postlink.js +++ b/scripts/postlink.js @@ -4,7 +4,7 @@ const inquirer = require('inquirer'); const xcode = require('xcode'); const chalk = require('chalk'); const pbxFile = require('xcode/lib/pbxFile'); - +const path = require('path'); const PLATFORMS = ['android', 'ios']; const OBJC_HEADER = '\ @@ -141,7 +141,10 @@ function getProperties(platform) { { type: 'input', default: cachedProps['defaults/url'] || process.env.SENTRY_URL || getDefaultUrl(), - message: 'The Sentry Server URL for ' + getPlatformName(platform), + message: + 'The Sentry Server URL for ' + + getPlatformName(platform) + + '. Only needed if you use self hosted Sentry, press enter to use default.', name: 'defaults/url' }, { @@ -383,7 +386,8 @@ function addSentryInit() { function resolveSentryCliBinaryPath(props) { return new Promise(function(resolve, reject) { try { - props['cli/executable'] = require.resolve('sentry-cli-binary/bin/sentry-cli'); + const cliPath = require.resolve('sentry-cli-binary/bin/sentry-cli'); + props['cli/executable'] = path.relative(process.cwd(), cliPath); } catch (e) { // we do nothing and leave everyting as it is }