Skip to content

Commit

Permalink
Show dialog on main-thread and using modal-utils
Browse files Browse the repository at this point in the history
  • Loading branch information
hansemannn committed Aug 7, 2016
1 parent 14737ef commit ef06afc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 17 deletions.
9 changes: 5 additions & 4 deletions iphone/Classes/TiPaypalPaymentProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ -(void)show:(id)args
return;
}

[[[[TiApp app] controller] topPresentedController] presentViewController:[self paymentDialog]
animated:[TiUtils boolValue:animated def:YES]
completion:nil];
TiThreadPerformOnMainThread(^{
[[TiApp app] showModalController:[self paymentDialog]
animated:[TiUtils boolValue:animated def:YES]];
}, NO);
}

-(void)setConfiguration:(id)value
Expand Down Expand Up @@ -221,4 +222,4 @@ -(NSDictionary*)confirmationFromPayment:(PayPalPayment*)_payment
return event;
}

@end
@end
10 changes: 0 additions & 10 deletions iphone/Resources/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion iphone/manifest
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# this is your module manifest and used by Titanium
# during compilation, packaging, distribution, etc.
#
version: 1.0.1
version: 1.0.2
apiversion: 2
architectures: armv7 arm64 i386 x86_64
description: ti.paypal
Expand Down
4 changes: 2 additions & 2 deletions iphone/titanium.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
// OF YOUR TITANIUM SDK YOU'RE BUILDING FOR
//
//
TITANIUM_SDK_VERSION = 5.4.0
TITANIUM_SDK_VERSION = 5.3.1.GA


//
// THESE SHOULD BE OK GENERALLY AS-IS
//
TITANIUM_SDK = /Users/hans/Library/Application Support/Titanium/mobilesdk/osx/5.4.0
TITANIUM_SDK = ~/Library/Application Support/Titanium/mobilesdk/osx/$(TITANIUM_SDK_VERSION)
TITANIUM_BASE_SDK = "$(TITANIUM_SDK)/iphone/include"
TITANIUM_BASE_SDK2 = "$(TITANIUM_SDK)/iphone/include/TiCore"
TITANIUM_BASE_SDK3 = "$(TITANIUM_SDK)/iphone/include/JavaScriptCore"
Expand Down

0 comments on commit ef06afc

Please sign in to comment.