Skip to content

Commit 61f487b

Browse files
authored
Merge pull request #168 from xmartlabs/update-readme
[Chore] Update migration guides
2 parents a47b9c4 + 2f7873a commit 61f487b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/MIGRATION_GUIDE.md

+22
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,28 @@
1111

1212
3. The `refreshToken` function is now called `refreshAccessToken`.
1313

14+
4. Remove the function `application` from `AppDelegate`:
15+
#### With Swift
16+
```swift
17+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
18+
LineLogin.setup(channelID: "YOUR_CHANNEL_ID", universalLinkURL: nil)
19+
return true
20+
}
21+
```
22+
23+
#### With Objective-C
24+
```objectivec
25+
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
26+
{
27+
[LineLogin setupWithChannelID:@"YOUR_CHANNEL_ID" universalLinkURL:nil];
28+
}
29+
```
30+
31+
5. Remove the string `line_channel_id` from Android resources:
32+
```xml
33+
<string name="line_channel_id" translatable="false">YOUR_CHANNEL_ID</string>
34+
```
35+
1436
## v4v5
1537

1638
1. The file name in the `AppDelegate` import has changed.

0 commit comments

Comments
 (0)