Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
4311ca1
Add appium tests
HazAT Jul 27, 2017
15d8e8f
Add file permissions
HazAT Jul 27, 2017
9de8411
Add pip wheel command
HazAT Jul 27, 2017
7d22891
Add yarn
HazAT Jul 27, 2017
a4d6902
Add brew install yarn for travis
HazAT Jul 27, 2017
df221c5
Add more tests
HazAT Jul 27, 2017
ba652a3
Reset app before run
HazAT Jul 28, 2017
94e3fd4
Remove travis retry
HazAT Jul 28, 2017
053bfa7
Remove no reset for devicefarm
HazAT Jul 28, 2017
840d230
Add on aws fixture to not reset device
HazAT Jul 28, 2017
6c8a774
Add close app before relaunching
HazAT Jul 28, 2017
cee99c4
Show iOS log, Refactor conftest
HazAT Jul 31, 2017
d48758f
Update examples
HazAT Jul 26, 2017
dbdaa3a
Fix not sending event when native crash happens
HazAT Jul 26, 2017
44dd086
Fix tests, Add allow_failed_tests
HazAT Jul 31, 2017
f38defa
Fixes #169 - Add check for native client to not persist payload in js
HazAT Jul 26, 2017
c5f9c35
Add callback after successfully send event to native integration
HazAT Jul 31, 2017
1eb00e1
Add copy local files to example
HazAT Jul 31, 2017
ebeea9b
Remove verbose fastlane step
HazAT Jul 31, 2017
d5c6cc1
Update copy command
HazAT Jul 31, 2017
1682134
Download syslog and see if error got sent
HazAT Jul 31, 2017
7d7e663
Improve native crash test, Update sentry-cocoa to 3.3.0
HazAT Aug 1, 2017
0df7dfb
Update sentry-cocoa to 3.3.1
HazAT Aug 1, 2017
d5d8831
Bump sentry-cocoa to 3.3.2
HazAT Aug 1, 2017
42a0ac1
Prepare android tests
HazAT Aug 1, 2017
dbc738c
Update travis to export android home
HazAT Aug 1, 2017
24d12c4
Fix ios tests
HazAT Aug 1, 2017
f463935
Merge branch 'master' into feature/tests
HazAT Aug 2, 2017
3646477
Change travis to build android
HazAT Aug 2, 2017
01943b8
Fix travis run script
HazAT Aug 2, 2017
870b112
Fix cache folder
HazAT Aug 2, 2017
d4f7fea
Remove bundle install
HazAT Aug 2, 2017
1db218b
Remove inital yarn install
HazAT Aug 2, 2017
138cab9
Fix android check test
HazAT Aug 2, 2017
0f4d5c7
Add version tests
HazAT Aug 2, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ Carthage/Checkouts
**/Pods

# Fastlane
fastlane/test_output/
report.xml
.env
appium/fastlane/test_output/
appium/fastlane/report.xml
appium/.env
appium/fastlane/README.md

# Appium

aws
test_bundle.zip
__pycache__
.cache
wheelhouse
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
[submodule "ios/KSCrash"]
path = ios/KSCrash
url=https://github.com/kstenerud/KSCrash
[submodule "examples"]
path = examples
url = https://github.com/getsentry/examples
47 changes: 47 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
matrix:
include:
- language: android
os: linux
jdk: oraclejdk8
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -rf $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.yarn-cache
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
sudo: required
before_install:
- nvm install 7
- 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
- travis_retry sudo apt-get update -qq
- travis_retry sudo apt-get install -y -qq yarn
android:
components:
- build-tools-23.0.1
- android-23
- extra-android-m2repository
- extra-google-google_play_services
- extra-google-m2repository
- addon-google_apis-google-16
script:
- .travis/run.sh
- language: objective-c
os: osx
osx_image: xcode8.3
cache:
- bundler
- pip
env:
- LANE='ios'
before_install:
- brew update
- brew install yarn
- brew outdated yarn || brew upgrade yarn
script:
- .travis/run.sh
notifications:
email: false
11 changes: 11 additions & 0 deletions .travis/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
cd appium
bundle install
pip wheel --wheel-dir wheelhouse -r requirements.txt

if [ "$LANE" = "ios" ];
then
make test
else
make test-android
fi
100 changes: 100 additions & 0 deletions .vscode/.ropeproject/config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
# The default ``config.py``
# flake8: noqa


def set_prefs(prefs):
"""This function is called before opening the project"""

# Specify which files and folders to ignore in the project.
# Changes to ignored resources are not added to the history and
# VCSs. Also they are not returned in `Project.get_files()`.
# Note that ``?`` and ``*`` match all characters but slashes.
# '*.pyc': matches 'test.pyc' and 'pkg/test.pyc'
# 'mod*.pyc': matches 'test/mod1.pyc' but not 'mod/1.pyc'
# '.svn': matches 'pkg/.svn' and all of its children
# 'build/*.o': matches 'build/lib.o' but not 'build/sub/lib.o'
# 'build//*.o': matches 'build/lib.o' and 'build/sub/lib.o'
prefs['ignored_resources'] = ['*.pyc', '*~', '.ropeproject',
'.hg', '.svn', '_svn', '.git', '.tox']

# Specifies which files should be considered python files. It is
# useful when you have scripts inside your project. Only files
# ending with ``.py`` are considered to be python files by
# default.
#prefs['python_files'] = ['*.py']

# Custom source folders: By default rope searches the project
# for finding source folders (folders that should be searched
# for finding modules). You can add paths to that list. Note
# that rope guesses project source folders correctly most of the
# time; use this if you have any problems.
# The folders should be relative to project root and use '/' for
# separating folders regardless of the platform rope is running on.
# 'src/my_source_folder' for instance.
#prefs.add('source_folders', 'src')

# You can extend python path for looking up modules
#prefs.add('python_path', '~/python/')

# Should rope save object information or not.
prefs['save_objectdb'] = True
prefs['compress_objectdb'] = False

# If `True`, rope analyzes each module when it is being saved.
prefs['automatic_soa'] = True
# The depth of calls to follow in static object analysis
prefs['soa_followed_calls'] = 0

# If `False` when running modules or unit tests "dynamic object
# analysis" is turned off. This makes them much faster.
prefs['perform_doa'] = True

# Rope can check the validity of its object DB when running.
prefs['validate_objectdb'] = True

# How many undos to hold?
prefs['max_history_items'] = 32

# Shows whether to save history across sessions.
prefs['save_history'] = True
prefs['compress_history'] = False

# Set the number spaces used for indenting. According to
# :PEP:`8`, it is best to use 4 spaces. Since most of rope's
# unit-tests use 4 spaces it is more reliable, too.
prefs['indent_size'] = 4

# Builtin and c-extension modules that are allowed to be imported
# and inspected by rope.
prefs['extension_modules'] = []

# Add all standard c-extensions to extension_modules list.
prefs['import_dynload_stdmods'] = True

# If `True` modules with syntax errors are considered to be empty.
# The default value is `False`; When `False` syntax errors raise
# `rope.base.exceptions.ModuleSyntaxError` exception.
prefs['ignore_syntax_errors'] = False

# If `True`, rope ignores unresolvable imports. Otherwise, they
# appear in the importing namespace.
prefs['ignore_bad_imports'] = False

# If `True`, rope will insert new module imports as
# `from <package> import <module>` by default.
prefs['prefer_module_from_imports'] = False

# If `True`, rope will transform a comma list of imports into
# multiple separate import statements when organizing
# imports.
prefs['split_imports'] = False

# If `True`, rope will sort imports alphabetically by module name
# instead of alphabetically by import statement, with from imports
# after normal imports.
prefs['sort_imports_alphabetically'] = False


def project_opened(project):
"""This function is called after opening the project"""
# Do whatever you like here!
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"files.trimTrailingWhitespace": true,
"files.ensureSingleFinalNewline": true,

"python.linting.pylintEnabled": false,

"prettier.bracketSpacing": false,
"prettier.singleQuote": true,
"prettier.printWidth": 90,
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
<img src="https://sentry-brand.storage.googleapis.com/sentry-logo-black.png" width="280">
</a>
<br/>
<h1>react-native-sentry</h1>
<h1>Sentry SDK for React Native</h1>
</p>

[![Travis](https://img.shields.io/travis/getsentry/react-native-sentry.svg?maxAge=2592000)](https://travis-ci.org/getsentry/react-native-sentry)
[![npm version](https://img.shields.io/npm/v/react-native-sentry.svg)](https://www.npmjs.com/package/react-native-sentry)
[![npm dm](https://img.shields.io/npm/dm/react-native-sentry.svg)](https://www.npmjs.com/package/react-native-sentry)
[![npm dt](https://img.shields.io/npm/dt/react-native-sentry.svg)](https://www.npmjs.com/package/react-native-sentry)
Expand Down
4 changes: 2 additions & 2 deletions SentryReactNative.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ Pod::Spec.new do |s|
s.preserve_paths = '*.js'

s.dependency 'React'
s.dependency 'Sentry', '~> 3.1.3'
s.dependency 'Sentry/KSCrash', '~> 3.1.3'
s.dependency 'Sentry', '~> 3.3.3'
s.dependency 'Sentry/KSCrash', '~> 3.3.3'

s.source_files = 'ios/RNSentry*.{h,m}'
s.public_header_files = 'ios/RNSentry.h'
Expand Down
2 changes: 2 additions & 0 deletions android/src/main/java/io/sentry/RNSentryEventEmitter.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
public class RNSentryEventEmitter extends ReactContextBaseJavaModule {

public static final String SENTRY_EVENT_SENT_SUCCESSFULLY = "Sentry/eventSentSuccessfully";
public static final String SENTRY_EVENT_STORED = "Sentry/eventStored";

public RNSentryEventEmitter(ReactApplicationContext reactContext) {
super(reactContext);
Expand All @@ -25,6 +26,7 @@ public String getName() {
public Map<String, Object> getConstants() {
final Map<String, Object> constants = new HashMap<>();
constants.put("EVENT_SENT_SUCCESSFULLY", SENTRY_EVENT_SENT_SUCCESSFULLY);
constants.put("EVENT_STORED", SENTRY_EVENT_STORED);
return constants;
}

Expand Down
1 change: 1 addition & 0 deletions android/src/main/java/io/sentry/RNSentryModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ public void captureEvent(ReadableMap event) {
}

Sentry.capture(buildEvent(eventBuilder));
RNSentryEventEmitter.sendEvent(reactContext, RNSentryEventEmitter.SENTRY_EVENT_STORED, new WritableNativeMap());
}

@ReactMethod
Expand Down
10 changes: 10 additions & 0 deletions appium/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Autogenerated by fastlane
#
# Ensure this file is checked in to source control!

source "https://rubygems.org"

gem 'fastlane'

plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
eval_gemfile(plugins_path) if File.exist?(plugins_path)
Loading