- Fix NSNumber populate

- Fix
This commit is contained in:
Giuseppe Nucifora 2016-04-26 15:45:48 +02:00
parent 531bd9966a
commit 499520c1f6
61 changed files with 8057 additions and 29074 deletions

View File

@ -2,7 +2,7 @@ source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
target 'PNObject_Example' do
pod "PNObject", :path => "../"
pod 'PNObject', :path => '../'
pod 'PEAR-FileManager-iOS'
pod 'NSDate_Utils'
pod 'UIDevice-Utils'
@ -19,10 +19,14 @@ target 'PNObject_Example' do
end
target 'PNObject_Tests' do
pod "PNObject", :path => "../"
pod 'PNObject', :path => '../'
pod 'Specta'
pod 'Expecta'
pod 'FBSnapshotTestCase'
pod 'Expecta+Snapshots'
end
post_install do |installer|
`find Pods -regex 'Pods/FBSDKShareKit.*\\.h' -print0 | xargs -0 sed -i '' 's/\\(<\\)FBSDKShareKit\\/\\(.*\\)\\(>\\)/\\"\\2\\"/'`
#`find Pods -regex 'Pods/Google.*\\.h' -print0 | xargs -0 sed -i '' 's/\\(<\\)GoogleInteractiveMediaAds\\/\\(.*\\)\\(>\\)/\\"\\2\\"/'`
end

View File

@ -48,7 +48,7 @@ PODS:
- CocoaSecurity (~> 1.2.2)
- nv-ios-http-status (0.0.1)
- PEAR-FileManager-iOS (1.3.1)
- PNObject (0.7.2):
- PNObject (0.7.4):
- AFNetworking
- CodFis-Helper
- DJLocalization
@ -112,7 +112,7 @@ SPEC CHECKSUMS:
NSUserDefaults-AESEncryptor: da02cfef056f1e18ebe2748767915f08b274c9c5
nv-ios-http-status: b6c2b5fc8656cc19e0d3000dadce2080b99d0e2f
PEAR-FileManager-iOS: 3bc403f68a53483f5629aa822f4649e40275c4d3
PNObject: 82e78a25ca365822eadbf9bbac66fdd76bd71370
PNObject: e4ae453116a8ec99b1a5aa44286dbf92b1151c5d
PureLayout: f35f5384c9c4e4479df041dbe33ad7577b71ddfb
RZDataBinding: 00d468ebe667f02c2bd5416f87b4b5d826188c4d
Specta: ac94d110b865115fe60ff2c6d7281053c6f8e8a2

View File

@ -18,7 +18,7 @@
#import <Foundation/Foundation.h>
#import <FBSDKShareKit/FBSDKAppGroupContent.h>
#import "FBSDKAppGroupContent.h"
@protocol FBSDKAppGroupAddDialogDelegate;

View File

@ -19,7 +19,7 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <FBSDKShareKit/FBSDKAppInviteContent.h>
#import "FBSDKAppInviteContent.h"
@protocol FBSDKAppInviteDialogDelegate;

View File

@ -18,7 +18,7 @@
#import <Foundation/Foundation.h>
#import <FBSDKShareKit/FBSDKGameRequestContent.h>
#import "FBSDKGameRequestContent.h"
@protocol FBSDKGameRequestDialogDelegate;

View File

@ -20,8 +20,8 @@
#import <FBSDKCoreKit/FBSDKButton.h>
#import <FBSDKShareKit/FBSDKLikeObjectType.h>
#import <FBSDKShareKit/FBSDKLiking.h>
#import "FBSDKLikeObjectType.h"
#import "FBSDKLiking.h"
/*!
@abstract A button to like an object.

View File

@ -20,8 +20,8 @@
#import <FBSDKCoreKit/FBSDKMacros.h>
#import <FBSDKShareKit/FBSDKLikeObjectType.h>
#import <FBSDKShareKit/FBSDKLiking.h>
#import "FBSDKLikeObjectType.h"
#import "FBSDKLiking.h"
/*!
@typedef NS_ENUM (NSUInteger, FBSDKLikeControlAuxiliaryPosition)

View File

@ -18,7 +18,7 @@
#import <Foundation/Foundation.h>
#import <FBSDKShareKit/FBSDKSharing.h>
#import "FBSDKSharing.h"
/*!
@abstract A dialog for sharing content through Messenger.

View File

@ -20,7 +20,7 @@
#import <FBSDKCoreKit/FBSDKButton.h>
#import <FBSDKShareKit/FBSDKSharingButton.h>
#import "FBSDKSharingButton.h"
/*!
@abstract A button to send content through Messenger.

View File

@ -18,8 +18,8 @@
#import <Foundation/Foundation.h>
#import <FBSDKShareKit/FBSDKShareOpenGraphObject.h>
#import <FBSDKShareKit/FBSDKSharing.h>
#import "FBSDKShareOpenGraphObject.h"
#import "FBSDKSharing.h"
/*!
@abstract A utility class for sharing through the graph API. Using this class requires an access token in

View File

@ -20,7 +20,7 @@
#import <FBSDKCoreKit/FBSDKButton.h>
#import <FBSDKShareKit/FBSDKSharingButton.h>
#import "FBSDKSharingButton.h"
/*!
@abstract A button to share content.

View File

@ -18,9 +18,9 @@
#import <UIKit/UIKit.h>
#import <FBSDKShareKit/FBSDKShareDialogMode.h>
#import <FBSDKShareKit/FBSDKSharing.h>
#import <FBSDKShareKit/FBSDKSharingContent.h>
#import "FBSDKShareDialogMode.h"
#import "FBSDKSharing.h"
#import "FBSDKSharingContent.h"
/*!
@abstract A dialog for sharing content on Facebook.

View File

@ -18,38 +18,38 @@
#import <UIKit/UIKit.h>
#import <FBSDKShareKit/FBSDKHashtag.h>
#import <FBSDKShareKit/FBSDKShareAPI.h>
#import <FBSDKShareKit/FBSDKShareConstants.h>
#import <FBSDKShareKit/FBSDKShareLinkContent.h>
#import <FBSDKShareKit/FBSDKShareOpenGraphAction.h>
#import <FBSDKShareKit/FBSDKShareOpenGraphContent.h>
#import <FBSDKShareKit/FBSDKShareOpenGraphObject.h>
#import <FBSDKShareKit/FBSDKSharePhoto.h>
#import <FBSDKShareKit/FBSDKSharePhotoContent.h>
#import <FBSDKShareKit/FBSDKShareVideo.h>
#import <FBSDKShareKit/FBSDKShareVideoContent.h>
#import <FBSDKShareKit/FBSDKSharing.h>
#import <FBSDKShareKit/FBSDKSharingContent.h>
#import "FBSDKHashtag.h"
#import "FBSDKShareAPI.h"
#import "FBSDKShareConstants.h"
#import "FBSDKShareLinkContent.h"
#import "FBSDKShareOpenGraphAction.h"
#import "FBSDKShareOpenGraphContent.h"
#import "FBSDKShareOpenGraphObject.h"
#import "FBSDKSharePhoto.h"
#import "FBSDKSharePhotoContent.h"
#import "FBSDKShareVideo.h"
#import "FBSDKShareVideoContent.h"
#import "FBSDKSharing.h"
#import "FBSDKSharingContent.h"
#if !TARGET_OS_TV
#import <FBSDKShareKit/FBSDKAppGroupAddDialog.h>
#import <FBSDKShareKit/FBSDKAppGroupContent.h>
#import <FBSDKShareKit/FBSDKAppGroupJoinDialog.h>
#import <FBSDKShareKit/FBSDKAppInviteContent.h>
#import <FBSDKShareKit/FBSDKAppInviteDialog.h>
#import <FBSDKShareKit/FBSDKGameRequestContent.h>
#import <FBSDKShareKit/FBSDKGameRequestDialog.h>
#import <FBSDKShareKit/FBSDKLikeButton.h>
#import <FBSDKShareKit/FBSDKLikeControl.h>
#import <FBSDKShareKit/FBSDKLikeObjectType.h>
#import <FBSDKShareKit/FBSDKMessageDialog.h>
#import <FBSDKShareKit/FBSDKShareButton.h>
#import <FBSDKShareKit/FBSDKShareDialog.h>
#import <FBSDKShareKit/FBSDKShareDialogMode.h>
#import <FBSDKShareKit/FBSDKShareMediaContent.h>
#import <FBSDKShareKit/FBSDKSendButton.h>
#import "FBSDKAppGroupAddDialog.h"
#import "FBSDKAppGroupContent.h"
#import "FBSDKAppGroupJoinDialog.h"
#import "FBSDKAppInviteContent.h"
#import "FBSDKAppInviteDialog.h"
#import "FBSDKGameRequestContent.h"
#import "FBSDKGameRequestDialog.h"
#import "FBSDKLikeButton.h"
#import "FBSDKLikeControl.h"
#import "FBSDKLikeObjectType.h"
#import "FBSDKMessageDialog.h"
#import "FBSDKShareButton.h"
#import "FBSDKShareDialog.h"
#import "FBSDKShareDialogMode.h"
#import "FBSDKShareMediaContent.h"
#import "FBSDKSendButton.h"
#else
#import <FBSDKShareKit/FBSDKDeviceShareViewController.h>
#import <FBSDKShareKit/FBSDKDeviceShareButton.h>
#import "FBSDKDeviceShareViewController.h"
#import "FBSDKDeviceShareButton.h"
#endif

View File

@ -18,7 +18,7 @@
#import <Foundation/Foundation.h>
#import <FBSDKShareKit/FBSDKSharingContent.h>
#import "FBSDKSharingContent.h"
/*!
@abstract A model for status and link content to be shared.

View File

@ -18,7 +18,7 @@
#import <Foundation/Foundation.h>
#import <FBSDKShareKit/FBSDKSharingContent.h>
#import "FBSDKSharingContent.h"
/*!
@abstract A model for media content (photo or video) to be shared.

View File

@ -20,8 +20,8 @@
#import <FBSDKCoreKit/FBSDKCopying.h>
#import <FBSDKShareKit/FBSDKShareOpenGraphObject.h>
#import <FBSDKShareKit/FBSDKShareOpenGraphValueContainer.h>
#import "FBSDKShareOpenGraphObject.h"
#import "FBSDKShareOpenGraphValueContainer.h"
/*!
@abstract An Open Graph Action for sharing.

View File

@ -18,8 +18,8 @@
#import <Foundation/Foundation.h>
#import <FBSDKShareKit/FBSDKShareOpenGraphAction.h>
#import <FBSDKShareKit/FBSDKSharingContent.h>
#import "FBSDKShareOpenGraphAction.h"
#import "FBSDKSharingContent.h"
/*!
@abstract A model for Open Graph content to be shared.

View File

@ -20,7 +20,7 @@
#import <FBSDKCoreKit/FBSDKCopying.h>
#import <FBSDKShareKit/FBSDKShareOpenGraphValueContainer.h>
#import "FBSDKShareOpenGraphValueContainer.h"
/*!
@abstract An Open Graph Object for sharing.

View File

@ -18,7 +18,7 @@
#import <Foundation/Foundation.h>
#import <FBSDKShareKit/FBSDKSharingContent.h>
#import "FBSDKSharingContent.h"
/*!
@abstract A model for photo content to be shared.

View File

@ -18,9 +18,9 @@
#import <Foundation/Foundation.h>
#import <FBSDKShareKit/FBSDKSharePhoto.h>
#import <FBSDKShareKit/FBSDKShareVideo.h>
#import <FBSDKShareKit/FBSDKSharingContent.h>
#import "FBSDKSharePhoto.h"
#import "FBSDKShareVideo.h"
#import "FBSDKSharingContent.h"
/*!
@abstract A model for video content to be shared.

View File

@ -18,7 +18,7 @@
#import <Foundation/Foundation.h>
#import <FBSDKShareKit/FBSDKSharingContent.h>
#import "FBSDKSharingContent.h"
@protocol FBSDKSharingDelegate;

View File

@ -18,7 +18,7 @@
#import <Foundation/Foundation.h>
#import <FBSDKShareKit/FBSDKSharingContent.h>
#import "FBSDKSharingContent.h"
/*!
@abstract The common interface for sharing buttons.

View File

@ -21,7 +21,7 @@
#import <FBSDKCoreKit/FBSDKMacros.h>
#import <FBSDKShareKit/FBSDKLikeObjectType.h>
#import "FBSDKLikeObjectType.h"
FBSDK_EXTERN NSString *const FBSDKLikeActionControllerDidDisableNotification;
FBSDK_EXTERN NSString *const FBSDKLikeActionControllerDidResetNotification;

View File

@ -19,7 +19,7 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <FBSDKShareKit/FBSDKLikeObjectType.h>
#import "FBSDKLikeObjectType.h"
@protocol FBSDKLikeDialogDelegate;

View File

@ -18,7 +18,7 @@
#import <UIKit/UIKit.h>
#import <FBSDKShareKit/FBSDKShareKit.h>
#import "FBSDKShareKit.h"
#import "FBSDKShareDefines.h"
#import "FBSDKShareError.h"

View File

@ -18,7 +18,7 @@
#import <Foundation/Foundation.h>
#import <FBSDKShareKit/FBSDKShareOpenGraphValueContainer.h>
#import "FBSDKShareOpenGraphValueContainer.h"
@interface FBSDKShareOpenGraphValueContainer ()

View File

@ -18,16 +18,16 @@
#import <Foundation/Foundation.h>
#import <FBSDKShareKit/FBSDKShareLinkContent.h>
#import <FBSDKShareKit/FBSDKShareMediaContent.h>
#import <FBSDKShareKit/FBSDKShareOpenGraphContent.h>
#import <FBSDKShareKit/FBSDKSharePhotoContent.h>
#import <FBSDKShareKit/FBSDKShareVideoContent.h>
#import <FBSDKShareKit/FBSDKSharingContent.h>
#import "FBSDKShareLinkContent.h"
#import "FBSDKShareMediaContent.h"
#import "FBSDKShareOpenGraphContent.h"
#import "FBSDKSharePhotoContent.h"
#import "FBSDKShareVideoContent.h"
#import "FBSDKSharingContent.h"
#if !TARGET_OS_TV
#import <FBSDKShareKit/FBSDKAppInviteContent.h>
#import <FBSDKShareKit/FBSDKGameRequestContent.h>
#import "FBSDKAppInviteContent.h"
#import "FBSDKGameRequestContent.h"
#endif
@interface FBSDKShareUtility : NSObject

View File

@ -20,8 +20,8 @@
#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <FBSDKShareKit/FBSDKShareVideo.h>
#import <FBSDKShareKit/FBSDKSharing.h>
#import "FBSDKShareVideo.h"
#import "FBSDKSharing.h"
@protocol FBSDKVideoUploaderDelegate;

View File

@ -1,6 +1,6 @@
{
"name": "PNObject",
"version": "0.7.2",
"version": "0.7.4",
"summary": "PNObject is a simple replica of the more complex ParseObject",
"homepage": "https://github.com/giuseppenucifora/PNObject",
"license": "MIT",
@ -9,7 +9,7 @@
},
"source": {
"git": "https://github.com/giuseppenucifora/PNObject.git",
"tag": "0.7.2"
"tag": "0.7.4"
},
"platforms": {
"ios": "8.0"

View File

@ -48,7 +48,7 @@ PODS:
- CocoaSecurity (~> 1.2.2)
- nv-ios-http-status (0.0.1)
- PEAR-FileManager-iOS (1.3.1)
- PNObject (0.7.2):
- PNObject (0.7.4):
- AFNetworking
- CodFis-Helper
- DJLocalization
@ -112,7 +112,7 @@ SPEC CHECKSUMS:
NSUserDefaults-AESEncryptor: da02cfef056f1e18ebe2748767915f08b274c9c5
nv-ios-http-status: b6c2b5fc8656cc19e0d3000dadce2080b99d0e2f
PEAR-FileManager-iOS: 3bc403f68a53483f5629aa822f4649e40275c4d3
PNObject: 82e78a25ca365822eadbf9bbac66fdd76bd71370
PNObject: e4ae453116a8ec99b1a5aa44286dbf92b1151c5d
PureLayout: f35f5384c9c4e4479df041dbe33ad7577b71ddfb
RZDataBinding: 00d468ebe667f02c2bd5416f87b4b5d826188c4d
Specta: ac94d110b865115fe60ff2c6d7281053c6f8e8a2

File diff suppressed because it is too large Load Diff

View File

@ -1,36 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0700"
LastUpgradeVersion = "0730"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForAnalyzing = "YES"
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES">
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = 'primary'
BlueprintIdentifier = '5269615F8E372917DF25E9A1'
BlueprintName = 'PNObject'
ReferencedContainer = 'container:Pods.xcodeproj'
BuildableName = 'PNObject.framework'>
BuildableIdentifier = "primary"
BlueprintIdentifier = "A34F8887C7CEA6BDD52B08E04CD44746"
BuildableName = "PNObject.framework"
BlueprintName = "PNObject"
ReferencedContainer = "container:Pods.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
@ -38,17 +41,25 @@
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
buildConfiguration = "Debug"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A34F8887C7CEA6BDD52B08E04CD44746"
BuildableName = "PNObject.framework"
BlueprintName = "PNObject"
ReferencedContainer = "container:Pods.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES"
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES">
debugDocumentVersioning = "YES">
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">

View File

@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>

View File

@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>

View File

@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>

View File

@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>

View File

@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>

View File

@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>

View File

@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>

View File

@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>

View File

@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>

View File

@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>

View File

@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>

View File

@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>

View File

@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>

View File

@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>

View File

@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>

View File

@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>

View File

@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>

View File

@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.7.2</string>
<string>0.7.4</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>

View File

@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>

View File

@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>

View File

@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>

View File

@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>

View File

@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>

View File

@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>

View File

@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>

View File

@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>

View File

@ -8,7 +8,7 @@
Pod::Spec.new do |s|
s.name = "PNObject"
s.version = "0.7.3"
s.version = "0.7.4"
s.summary = "PNObject is a simple replica of the more complex ParseObject"
# This description is used to generate tags and improve search results.
@ -31,6 +31,7 @@ s.requires_arc = true
s.source_files = 'Pod/Classes/**/*'
# s.frameworks = 'UIKit', 'MapKit'
s.dependency 'AFNetworking'
s.dependency 'PEAR-FileManager-iOS'
s.dependency 'NSDate_Utils'

View File

@ -109,9 +109,9 @@
},
@"NSNumber" : ^{
NSInteger val = [value integerValue];
NSNumber *val = [NSNumber numberWithDouble:[value doubleValue]];
[self setValue:@(val) forKey:propertyName];
[self setValue:val forKey:propertyName];
},
@"NSDate" : ^{
NSString *str = [NSString stringWithFormat:@"%@", value];
@ -266,7 +266,15 @@
NSDictionary *properties = [PNObject propertiesForClass:self.class];
NSDictionary *formMapping = [[self class] performSelector:dictionaryMappingSelector];
//NSDictionary *formMapping = [[self class] performSelector:dictionaryMappingSelector];
NSDictionary *formMapping;
NSMethodSignature *methodSig = [[self class] instanceMethodSignatureForSelector:dictionaryMappingSelector];
NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:methodSig];
[invocation setSelector:dictionaryMappingSelector];
[invocation setTarget:formMapping];
[invocation invoke];
for (NSString *formMappingKey in formMapping) {
@ -337,8 +345,8 @@
}
},
@"NSNumber" : ^{
NSInteger val = [property integerValue];
[JSON setValue:@(val) forKey:mappedKey];
NSNumber *val = [NSNumber numberWithDouble:[property doubleValue]];
[JSON setValue:val forKey:mappedKey];
},
@"NSDate" : ^{
NSDate *val = [property toLocalTime];
@ -356,6 +364,9 @@
[arr addObject:objectDict];
}
else {
[arr addObject:object];
}
}
[JSON setValue:arr forKey:mappedKey];
@ -370,6 +381,9 @@
[arr addObject:objectDict];
}
else {
[arr addObject:object];
}
}
[JSON setValue:arr forKey:mappedKey];
@ -383,7 +397,9 @@
[JSON setValue:objectDict forKey:mappedKey];
}
else {
// do nothing
NSString *errorStr = [NSString stringWithFormat:@"Property '%@' could not be assigned any value.", property];
NSLogDebug(@"%@",errorStr);
}
})();
}

View File