Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ public class MainApplication extends Application implements ReactApplication {
}

```
#### Pay Pal
for Pay Pal browser switch setup is required
https://developers.braintreepayments.com/guides/client-sdk/setup/android/v2#browser-switch-setup

---
### RN 0.28 and under

Expand Down
16 changes: 8 additions & 8 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apply plugin: "com.android.library"

android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
compileSdkVersion 28
buildToolsVersion "28.0.3"

defaultConfig {
minSdkVersion 16
targetSdkVersion 22
targetSdkVersion 26
versionCode 1
versionName "1.0"
}
Expand All @@ -19,9 +19,9 @@ android {
}

dependencies {
compile fileTree(dir: "libs", include: ["*.jar"])
compile "com.facebook.react:react-native:+"
compile 'com.braintreepayments.api:braintree:2.+'
compile 'com.braintreepayments.api:drop-in:2.+'
compile group: 'com.google.code.gson', name: 'gson', version: '2.3.1'
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.facebook.react:react-native:+"
implementation 'com.braintreepayments.api:braintree:2.+'
implementation 'com.braintreepayments.api:drop-in:2.+'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.3.1'
}
2 changes: 1 addition & 1 deletion android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<uses-permission android:name="android.permission.INTERNET" />

<application android:allowBackup="true" android:label="@string/app_name">
<application android:label="@string/app_name">
<activity android:name="com.braintreepayments.api.BraintreeBrowserSwitchActivity"
android:launchMode="singleTask"
android:theme="@android:style/Theme.Translucent.NoTitleBar">
Expand Down
8 changes: 8 additions & 0 deletions index.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ var Braintree = {
});
});
},

showApplePayViewController(options = {}) {
return new Promise(function(resolve, reject) {
RCTBraintree.showApplePayViewController(options, function(err, nonce) {
nonce != null ? resolve(nonce) : reject(err);
});
});
},
};

module.exports = Braintree;
491 changes: 21 additions & 470 deletions ios/RCTBraintree.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion ios/RCTBraintree/Braintree/.gitattributes

This file was deleted.

10 changes: 0 additions & 10 deletions ios/RCTBraintree/Braintree/.github/issue_template.md

This file was deleted.

36 changes: 0 additions & 36 deletions ios/RCTBraintree/Braintree/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion ios/RCTBraintree/Braintree/.ruby-gemset

This file was deleted.

1 change: 0 additions & 1 deletion ios/RCTBraintree/Braintree/.ruby-version

This file was deleted.

1 change: 0 additions & 1 deletion ios/RCTBraintree/Braintree/.swift-version

This file was deleted.

27 changes: 0 additions & 27 deletions ios/RCTBraintree/Braintree/.travis.yml

This file was deleted.

17 changes: 0 additions & 17 deletions ios/RCTBraintree/Braintree/ACKNOWLEDGEMENTS.md

This file was deleted.

121 changes: 0 additions & 121 deletions ios/RCTBraintree/Braintree/Braintree.podspec

This file was deleted.

Loading