From 6c072230480065f0922eed95319070637fb32d8c Mon Sep 17 00:00:00 2001 From: Jonathan Carter Date: Fri, 4 Mar 2016 14:16:52 -0800 Subject: [PATCH] Fixing Podspec for Swift consumption --- CodePush.podspec | 25 +++++++++++++------------ ios/CodePush/CodePush.h | 4 ++-- ios/CodePush/CodePush.m | 3 +++ 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/CodePush.podspec b/CodePush.podspec index a922065..27956cf 100644 --- a/CodePush.podspec +++ b/CodePush.podspec @@ -1,16 +1,17 @@ Pod::Spec.new do |s| - s.name = 'CodePush' - s.version = '1.7.3-beta' - s.summary = 'React Native plugin for the CodePush service' - s.author = 'Microsoft Corporation' - s.license = 'MIT' - s.homepage = 'http://microsoft.github.io/code-push/' - s.source = { :git => 'https://github.com/Microsoft/react-native-code-push.git', :tag => "v#{s.version}" } - s.platform = :ios, '7.0' - s.source_files = '*.{h,m}', 'SSZipArchive/*.{h,m}', 'SSZipArchive/aes/*.{h,c}', 'SSZipArchive/minizip/*.{h,c}' - s.preserve_paths = '*.js' - s.library = 'z' + s.name = 'CodePush' + s.version = '1.7.4-beta' + s.summary = 'React Native plugin for the CodePush service' + s.author = 'Microsoft Corporation' + s.license = 'MIT' + s.homepage = 'http://microsoft.github.io/code-push/' + s.source = { :git => 'https://github.com/Microsoft/react-native-code-push.git', :tag => "v#{s.version}" } + s.platform = :ios, '7.0' + s.source_files = 'ios/CodePush/*.{h,m}', 'ios/CodePush/SSZipArchive/*.{h,m}', 'ios/CodePush/SSZipArchive/aes/*.{h,c}', 'ios/CodePush/SSZipArchive/minizip/*.{h,c}' + s.public_header_files = 'ios/CodePush/CodePush.h' + s.preserve_paths = '*.js' + s.library = 'z' s.dependency 'React' -end +end \ No newline at end of file diff --git a/ios/CodePush/CodePush.h b/ios/CodePush/CodePush.h index 96b79a4..bd7db3c 100644 --- a/ios/CodePush/CodePush.h +++ b/ios/CodePush/CodePush.h @@ -1,6 +1,6 @@ -#import "RCTBridgeModule.h" +#import -@interface CodePush : NSObject +@interface CodePush : NSObject + (NSURL *)binaryBundleURL; /* diff --git a/ios/CodePush/CodePush.m b/ios/CodePush/CodePush.m index b0647b4..e21d4a3 100644 --- a/ios/CodePush/CodePush.m +++ b/ios/CodePush/CodePush.m @@ -6,6 +6,9 @@ #import "CodePush.h" +@interface CodePush () +@end + @implementation CodePush { BOOL _hasResumeListener; BOOL _isFirstRunAfterUpdate;