Skip to content

Commit 8e160e7

Browse files
0.8 refactor (#250)
* Add ios react native directory to header search paths (for pods) * Make the ios search path recursive * Bump to 0.7.2 * Update ReactNativePayments.m Add support for MADA payment Saudi Arabia * sync from react-native-easy-payments * fixed this on the intents branch which isn’t quite ready yet, so I’ll commit here * bugfix - incompatible export of PKPaymentButton * update readme linking to iOS example project * update organization name format * delete old stripe project so people don't get confused * also delete braintree, the iOS example project explains clearly how to use it Co-authored-by: rkaartikeyan <rkaartikeyan@gmail.com>
1 parent 8c36fad commit 8e160e7

File tree

438 files changed

+12094
-29685
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

438 files changed

+12094
-29685
lines changed
File renamed without changes.

.eslintrc.js

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
const IGNORE = 0;
2+
const WARN = 1;
3+
const ERROR = 2;
4+
5+
module.exports = {
6+
"extends": "airbnb-base",
7+
"parser": "babel-eslint",
8+
"plugins": [
9+
"flowtype"
10+
],
11+
"rules": {
12+
"import/no-named-as-default-member": IGNORE,
13+
"import/no-named-as-default": IGNORE,
14+
"no-tabs": IGNORE,
15+
"camelcase": IGNORE,
16+
"no-console": IGNORE,
17+
"no-param-reassign": IGNORE,
18+
"import/prefer-default-export": IGNORE,
19+
"consistent-return": IGNORE,
20+
"max-len": IGNORE,
21+
"no-continue": IGNORE,
22+
'no-case-declarations': IGNORE,
23+
"indent": [ERROR, 2, { "SwitchCase": 1, "VariableDeclarator": 1, "ignoredNodes": ["TemplateLiteral > *"] }],
24+
"class-methods-use-this": IGNORE,
25+
"no-restricted-syntax": IGNORE,
26+
"prefer-template": IGNORE,
27+
"no-plusplus": IGNORE,
28+
"default-case": IGNORE,
29+
"no-useless-constructor": IGNORE,
30+
"jsx-a11y/accessible-emoji": IGNORE,
31+
"no-use-before-define": IGNORE,
32+
"curly": IGNORE,
33+
"no-unused-expressions": [ERROR, { "allowShortCircuit": true }],
34+
"prefer-destructuring": IGNORE,
35+
"no-await-in-loop": IGNORE,
36+
"global-require": IGNORE,
37+
"func-names": IGNORE,
38+
"linebreak-style": IGNORE,
39+
"no-empty-function": IGNORE,
40+
"no-labels": IGNORE,
41+
"func-names": IGNORE,
42+
"guard-for-in": IGNORE,
43+
"radix": IGNORE,
44+
"import/no-dynamic-require": IGNORE,
45+
"quote-props": IGNORE,
46+
"no-shadow": IGNORE,
47+
"no-extra-label": IGNORE,
48+
"arrow-parens": IGNORE,
49+
"quotes": IGNORE,
50+
"prefer-rest-params": IGNORE,
51+
"no-nested-ternary": IGNORE,
52+
"newline-per-chained-call": IGNORE,
53+
"no-restricted-globals": IGNORE,
54+
"dot-notation": IGNORE,
55+
"arrow-body-style": IGNORE,
56+
"no-loop-func": IGNORE,
57+
"no-useless-escape": IGNORE,
58+
"no-trailing-spaces": IGNORE,
59+
"import/order": IGNORE,
60+
"no-lonely-if": IGNORE,
61+
},
62+
"env": {
63+
"jest": true
64+
},
65+
};
File renamed without changes.

.gitignore

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,45 @@
1+
# System
2+
#
3+
.DS_Store
4+
5+
# Xcode
6+
#
7+
build/
8+
*.pbxuser
9+
!default.pbxuser
10+
*.mode1v3
11+
!default.mode1v3
12+
*.mode2v3
13+
!default.mode2v3
14+
*.perspectivev3
15+
!default.perspectivev3
16+
xcuserdata
17+
*.xccheckout
18+
*.moved-aside
19+
DerivedData
20+
*.hmap
21+
*.ipa
22+
*.xcuserstate
23+
24+
# Android
25+
**/android/**/.idea
26+
**/android/**/*.iml
27+
**/android/**/gradlew*
28+
**/android/**/*.properties
29+
**/android/**/.gradle
30+
**/android/**/gradle
31+
**/android/**/.settings
32+
**/android/**/.project
33+
34+
# npm
35+
#
136
node_modules/
2-
npm-debug.log
3-
lerna-debug.log
37+
38+
# editors
39+
#
40+
jsconfig.json
41+
.vscode/*
42+
43+
# project
44+
#
45+
coverage
File renamed without changes.

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
language: node_js
22
node_js:
33
- "node"
4-
env:
5-
- TEST_DIR=packages/react-native-payments
6-
script: cd $TEST_DIR && yarn && yarn test -- --verbose --coverage
4+
script: npm test -- --verbose --coverage

README.md

Lines changed: 121 additions & 6 deletions

android/build.gradle

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
apply plugin: 'com.android.library'
2+
3+
android {
4+
compileSdkVersion 28
5+
buildToolsVersion "28.0.3"
6+
7+
defaultConfig {
8+
minSdkVersion 21
9+
targetSdkVersion 28
10+
versionCode 1
11+
versionName "1.0"
12+
ndk {
13+
abiFilters "armeabi-v7a", "x86"
14+
}
15+
}
16+
lintOptions {
17+
warning 'InvalidPackage'
18+
}
19+
}
20+
21+
dependencies {
22+
implementation 'com.facebook.react:react-native:+'
23+
implementation 'com.google.android.gms:play-services-base:17.0.0'
24+
implementation 'com.google.android.gms:play-services-identity:17.0.0'
25+
implementation 'com.google.android.gms:play-services-wallet:17.0.0'
26+
implementation 'com.android.support:support-v4:23.0.1'
27+
}

0 commit comments

Comments
 (0)