From ec61ebbb4796f62b9bf36aff79faac9b7095997d Mon Sep 17 00:00:00 2001 From: Denis Sedura Date: Sun, 28 Oct 2018 11:24:53 +0200 Subject: [PATCH] upgrade TwitterKit for iOS --- example/ios/Podfile | 2 +- example/ios/example/AppDelegate.m | 4 ++-- ios/TPSTwitterModule/TPSTwitterModule.m | 2 +- package.json | 2 +- scripts/post-link-ios.rb | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/example/ios/Podfile b/example/ios/Podfile index c582bcd..2e327b2 100644 --- a/example/ios/Podfile +++ b/example/ios/Podfile @@ -2,5 +2,5 @@ platform :ios, '9.0' target 'example' do - pod 'TwitterKit', '3.1.1' + pod 'TwitterKit', '3.4.0' end diff --git a/example/ios/example/AppDelegate.m b/example/ios/example/AppDelegate.m index d3a7469..8ba1264 100644 --- a/example/ios/example/AppDelegate.m +++ b/example/ios/example/AppDelegate.m @@ -11,12 +11,12 @@ #import #import -#import +#import @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - + NSURL *jsCodeLocation; jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil]; diff --git a/ios/TPSTwitterModule/TPSTwitterModule.m b/ios/TPSTwitterModule/TPSTwitterModule.m index 1814533..bbb137b 100644 --- a/ios/TPSTwitterModule/TPSTwitterModule.m +++ b/ios/TPSTwitterModule/TPSTwitterModule.m @@ -1,5 +1,5 @@ #import "TPSTwitterModule.h" -#import +#import #import #import #import "OAuthCore.h" diff --git a/package.json b/package.json index 1836c40..53d14ab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tipsi-twitter", - "version": "2.1.1", + "version": "2.1.2", "description": "Twitter sdk for react-native", "main": "src/index.js", "scripts": { diff --git a/scripts/post-link-ios.rb b/scripts/post-link-ios.rb index 5ca3f3c..cc2ebed 100644 --- a/scripts/post-link-ios.rb +++ b/scripts/post-link-ios.rb @@ -7,8 +7,8 @@ Dir.chdir('ios') @podfile_path = Pathname.pwd + 'Podfile' -@pod_dep_kit = " pod 'TwitterKit', '3.1.1'\n" -@pod_dep_core = " pod 'TwitterCore', '3.0.1'\n" +@pod_dep_kit = " pod 'TwitterKit', '3.4.0'\n" +@pod_dep_core = " pod 'TwitterCore', '3.2.0'\n" @project_paths= Pathname.pwd.children.select { |pn| pn.extname == '.xcodeproj' } raise 'No Xcode project found' unless @project_paths.length > 0