-
A
setup
function has been added and needs to be called before using the library.Line.setup({ channelId: 'YOUR_CHANNEL_ID' })
-
The
getBotFriendshipStatus
function is now calledgetFriendshipStatus
. -
The
refreshToken
function is now calledrefreshAccessToken
. -
Remove the function
application
fromAppDelegate
:func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { LineLogin.setup(channelID: "YOUR_CHANNEL_ID", universalLinkURL: nil) return true }
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [LineLogin setupWithChannelID:@"YOUR_CHANNEL_ID" universalLinkURL:nil]; }
-
Remove the string
line_channel_id
from Android resources:<string name="line_channel_id" translatable="false">YOUR_CHANNEL_ID</string>
-
The file name in the
AppDelegate
import has changed.- #import "RNLine-Swift.h" + #import "react_native_line-Swift.h"
-
The
login
function now expects an empty object as a default value.- Line.login() + Line.login({})