@@ -76,6 +76,92 @@ project(':tipsi-twitter').projectDir = new File(rootProject.projectDir, '../node
7676 </application >
7777```
7878
79+ ## Migration guide to 2.0.0
80+
81+ ### iOS
82+
83+ Version ` 2.0.0 ` works with iOS 9+. In order to to migrate you should:
84+
85+ 1 . Update ` iOS Deployment Target ` (` IPHONEOS_DEPLOYMENT_TARGET ` ) for your target in ` .xcodeproj ` .
86+
87+ 2 . Update ` platform ` in ` Podfile ` :
88+
89+ ```
90+ // remove this line
91+ platform :ios, '8.0'
92+
93+ // add this line
94+ platform :ios, '9.0'
95+ ```
96+
97+ 2 . Update ` TwitterKit ` pod dependency in ` Podfile ` :
98+
99+ ```
100+ // remove this line
101+ pod 'TwitterKit', '2.7.0'
102+
103+ // add this line
104+ pod 'TwitterKit', '~> 3.1'
105+ ```
106+
107+ 3 . Update object which implement ` UIApplicationDelegate ` (more often ` AppDelegate.m ` ):
108+
109+ ```
110+ // remove this line
111+ #import <Fabric/Fabric.h>
112+
113+ // add this line
114+ #import <TwitterKit/TwitterKit.h>
115+
116+ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
117+ ...
118+ // remove this line
119+ [Fabric with:@[[Twitter class]]];
120+ ...
121+ }
122+
123+ - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *,id> *)options {
124+ // add this line
125+ return [[Twitter sharedInstance] application:app openURL:url options:options];
126+ }
127+ ```
128+
129+ 4 . Update ` Info.plist File ` (` INFOPLIST_FILE ` ) (more ofter ` Info.plist ` ):
130+
131+ – Remove ` Fabric ` key and related object from ` Info.plist ` .
132+
133+ – Add new URL type to ` Info.plist ` :
134+
135+ ```
136+ ...
137+ <key>CFBundleURLTypes</key>
138+ <array>
139+ ...
140+ // add this object
141+ <dict>
142+ <key>CFBundleURLSchemes</key>
143+ <array>
144+ <string>twitterkit-<YOUR_TWITTER_KEY></string>
145+ </array>
146+ </dict>
147+ ...
148+ </array>
149+ ...
150+ ```
151+
152+ – Add twitter queries schemes ` LSApplicationQueriesSchemes ` to ` Info.plist ` :
153+
154+ ```
155+ ...
156+ <key>LSApplicationQueriesSchemes</key>
157+ <array>
158+ // add this two lines
159+ <string>twitter</string>
160+ <string>twitterauth</string>
161+ </array>
162+ ...
163+ ```
164+
79165## Usage
80166
81167``` js
0 commit comments