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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 26
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This value should be set to the latest SDK which is currently 28.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

August 2019: New apps are required to target API level 28 (Android 9) or higher.
November 2019: Updates to existing apps are required to target API level 28 or higher.

https://android-developers.googleblog.com/2019/03/introducing-android-q-beta.html

buildToolsVersion "27.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'
}
7 changes: 6 additions & 1 deletion ios/RCTBraintree/RCTBraintree.m
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,13 @@ - (instancetype)init
if ( error == nil ) {
args = @[[NSNull null], tokenizedCard.nonce];
} else {
NSMutableDictionary *userInfo = [error.userInfo mutableCopy];

[userInfo removeObjectForKey:@"com.braintreepayments.BTHTTPJSONResponseBodyKey"];
[userInfo removeObjectForKey:@"com.braintreepayments.BTHTTPURLResponseKey"];

NSError *serialisationErr;
NSData *jsonData = [NSJSONSerialization dataWithJSONObject:[error userInfo]
NSData *jsonData = [NSJSONSerialization dataWithJSONObject:userInfo
options:NSJSONWritingPrettyPrinted
error:&serialisationErr];

Expand Down