Merge pull request #228 from Microsoft/cocoapods

Fixing Podspec for Swift consumption
This commit is contained in:
Jonathan Carter
2016-03-04 17:17:34 -08:00
3 changed files with 18 additions and 14 deletions

View File

@@ -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

View File

@@ -1,6 +1,6 @@
#import "RCTBridgeModule.h"
#import <Foundation/Foundation.h>
@interface CodePush : NSObject <RCTBridgeModule>
@interface CodePush : NSObject
+ (NSURL *)binaryBundleURL;
/*

View File

@@ -6,6 +6,9 @@
#import "CodePush.h"
@interface CodePush () <RCTBridgeModule>
@end
@implementation CodePush {
BOOL _hasResumeListener;
BOOL _isFirstRunAfterUpdate;