Skip to content

Instantly share code, notes, and snippets.

@Miiite
Created March 2, 2018 07:52
Show Gist options
  • Save Miiite/e272622df2e853d53f1add4c8eb4eabf to your computer and use it in GitHub Desktop.
Save Miiite/e272622df2e853d53f1add4c8eb4eabf to your computer and use it in GitHub Desktop.
Adriens-MacBook-Pro:PayON Adrien$ sharpie bind OPPWAMobile.framework/Headers/OPPTransaction.h OPPWAMobile.framework/Headers/OPPPaymentParams.h OPPWAMobile.framework/Headers/OPPPaymentProvider.h OPPWAMobile.framework/Headers/OPPCardPaymentParams.h OPPWAMobile.framework/Headers/OPPBankAccountPaymentParams.h OPPWAMobile.framework/Headers/OPPApplePayPaymentParams.h OPPWAMobile.framework/Headers/OPPPayPalPaymentParams.h OPPWAMobile.framework/Headers/OPPAlipayPaymentParams.h OPPWAMobile.framework/Headers/OPPChinaUnionPayPaymentParams.h OPPWAMobile.framework/Headers/OPPTokenPaymentParams.h OPPWAMobile.framework/Headers/OPPErrors.h OPPWAMobile.framework/Headers/OPPCheckoutInfo.h OPPWAMobile.framework/Headers/OPPToken.h OPPWAMobile.framework/Headers/OPPCard.h OPPWAMobile.framework/Headers/OPPBankAccount.h OPPWAMobile.framework/Headers/OPPPaymentBrandsConfig.h OPPWAMobile.framework/Headers/OPPCheckoutProvider.h OPPWAMobile.framework/Headers/OPPCheckoutSettings.h OPPWAMobile.framework/Headers/OPPSecurityPolicy.h OPPWAMobile.framework/Headers/OPPCheckoutPaymentMethod.h OPPWAMobile.framework/Headers/OPPCheckoutTheme.h OPPWAMobile.framework/Headers/OPPPaymentButton.h -scope OPPWAMobile.framework/Headers -sdk iphoneos11.2 -c -F -ferror-limit=99999
Parsing 22 header files...
In file included from /var/folders/cy/l8dyw4ln2rgf8sw076bmjn3r0000gn/T/tmp15fdc33b.h:1:
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPTransaction.h:69:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed [-Wobjc-property-no-attribute]
@property (nonatomic, nullable) NSURL *redirectURL;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPTransaction.h:69:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
In file included from /var/folders/cy/l8dyw4ln2rgf8sw076bmjn3r0000gn/T/tmp15fdc33b.h:12:
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutInfo.h:24:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed [-Wobjc-property-no-attribute]
@property (nonatomic) NSDecimalNumber *amount;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutInfo.h:24:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutInfo.h:33:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed [-Wobjc-property-no-attribute]
@property (nonatomic, nullable) OPPPaymentBrandsConfig *paymentBrandsConfig;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutInfo.h:33:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
In file included from /var/folders/cy/l8dyw4ln2rgf8sw076bmjn3r0000gn/T/tmp15fdc33b.h:18:
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutSettings.h:103:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed
[-Wobjc-property-no-attribute]
@property (nonatomic, nullable) PKPaymentRequest *applePayPaymentRequest;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutSettings.h:103:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutSettings.h:109:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed
[-Wobjc-property-no-attribute]
@property (nonatomic, nullable) NSDecimalNumber *klarnaInvoiceFee;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutSettings.h:109:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutSettings.h:112:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed
[-Wobjc-property-no-attribute]
@property (nonatomic, nullable) NSDecimalNumber *klarnaInstallmentsFee;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutSettings.h:112:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
In file included from /var/folders/cy/l8dyw4ln2rgf8sw076bmjn3r0000gn/T/tmp15fdc33b.h:21:
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:54:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed [-Wobjc-property-no-attribute]
@property (nonatomic) UIColor *primaryBackgroundColor;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:54:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:59:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed [-Wobjc-property-no-attribute]
@property (nonatomic) UIColor *primaryForegroundColor;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:59:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:65:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed [-Wobjc-property-no-attribute]
@property (nonatomic) UIColor *secondaryBackgroundColor DEPRECATED_ATTRIBUTE;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:65:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:71:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed [-Wobjc-property-no-attribute]
@property (nonatomic) UIColor *secondaryForegroundColor DEPRECATED_ATTRIBUTE;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:71:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:76:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed [-Wobjc-property-no-attribute]
@property (nonatomic) UIColor *confirmationButtonColor;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:76:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:81:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed [-Wobjc-property-no-attribute]
@property (nonatomic) UIColor *confirmationButtonTextColor;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:81:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:86:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed [-Wobjc-property-no-attribute]
@property (nonatomic) UIColor *textFieldBackroundColor;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:86:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:91:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed [-Wobjc-property-no-attribute]
@property (nonatomic) UIColor *textFieldTextColor;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:91:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:96:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed [-Wobjc-property-no-attribute]
@property (nonatomic) UIColor *textFieldPlaceholderColor;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:96:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:101:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed
[-Wobjc-property-no-attribute]
@property (nonatomic) UIColor *errorColor;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:101:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:121:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed
[-Wobjc-property-no-attribute]
@property (nonatomic) UIColor *navigationBarTintColor;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:121:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:126:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed
[-Wobjc-property-no-attribute]
@property (nonatomic) UIColor *navigationBarBackgroundColor;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:126:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:150:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed
[-Wobjc-property-no-attribute]
@property (nonatomic, nullable) UIImage *cancelBarButtonImage;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:150:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:158:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed
[-Wobjc-property-no-attribute]
@property (nonatomic) UIColor *cellTintColor;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:158:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:163:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed
[-Wobjc-property-no-attribute]
@property (nonatomic) UIColor *cellHighlightedBackgroundColor;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:163:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:168:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed
[-Wobjc-property-no-attribute]
@property (nonatomic) UIColor *cellHighlightedTextColor;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:168:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:173:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed
[-Wobjc-property-no-attribute]
@property (nonatomic) UIFont *cellTextFont;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:173:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:179:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed
[-Wobjc-property-no-attribute]
@property (nonatomic) UIColor *sectionBackgroundColor;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:179:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:184:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed
[-Wobjc-property-no-attribute]
@property (nonatomic) UIColor *sectionTextColor;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:184:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:189:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed
[-Wobjc-property-no-attribute]
@property (nonatomic) UIFont *sectionFont;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:189:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:194:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed
[-Wobjc-property-no-attribute]
@property (nonatomic) UIColor *separatorColor;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:194:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:201:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed
[-Wobjc-property-no-attribute]
@property (nonatomic) UIColor *paymentMethodIconBackgroundColor DEPRECATED_ATTRIBUTE;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:201:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:206:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed
[-Wobjc-property-no-attribute]
@property (nonatomic) UIColor *paymentBrandIconBackgroundColor;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:206:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:211:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed
[-Wobjc-property-no-attribute]
@property (nonatomic) UIColor *paymentBrandIconBorderColor;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:211:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:216:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed
[-Wobjc-property-no-attribute]
@property (nonatomic) UIColor *storedPaymentMethodIconBackgroundColor;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:216:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:221:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed
[-Wobjc-property-no-attribute]
@property (nonatomic) UIColor *storedPaymentMethodIconBorderColor;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:221:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:229:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed
[-Wobjc-property-no-attribute]
@property (nonatomic) UIFont *primaryFont;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:229:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:234:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed
[-Wobjc-property-no-attribute]
@property (nonatomic) UIFont *secondaryFont;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:234:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:240:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed
[-Wobjc-property-no-attribute]
@property (nonatomic) UIFont *amountLabelFont DEPRECATED_ATTRIBUTE;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:240:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:245:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed
[-Wobjc-property-no-attribute]
@property (nonatomic) UIFont *confirmationButtonFont;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:245:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:250:1: warning: no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed
[-Wobjc-property-no-attribute]
@property (nonatomic) UIFont *errorFont;
^
/Users/Adrien/Documents/PayON/OPPWAMobile.framework/Headers/OPPCheckoutTheme.h:250:1: warning: default property attribute 'assign' not appropriate for non-GC object [-Wobjc-property-no-attribute]
Binding...
[write] ApiDefinitions.cs
[write] StructsAndEnums.cs
Binding Analysis:
Automated binding is complete, but there are a few APIs which have been flagged with [Verify] attributes. While the entire binding should be audited for best API design practices, look more
closely at APIs with the following Verify attribute hints:
MethodToProperty (2 instances):
An Objective-C method was bound as a C# property due to convention such as taking no parameters and returning a value (non-void return). Often methods like these should be bound as properties
to surface a nicer API, but sometimes false-positives can occur and the binding should actually be a method.
ConstantsInterfaceAssociation (1 instance):
There's no foolproof way to determine with which Objective-C interface an extern variable declaration may be associated. Instances of these are bound as [Field] properties in a partial
interface into a nearby concrete interface to produce a more intuitive API, possibly eliminating the 'Constants' interface altogether.
Once you have verified a Verify attribute, you should remove it from the binding source code. The presence of Verify attributes intentionally cause build failures.
For more information about the Verify attribute hints above, consult the Objective Sharpie documentation by running 'sharpie docs' or visiting the following URL:
http://xmn.io/sharpie-docs
74 warnings generated.
Done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment