Skip to content

Commit 676361c

Browse files
author
Emiliano Botti
committed
Adds migration guide. Removes comments.
1 parent 40a7401 commit 676361c

File tree

3 files changed

+26
-5
lines changed

3 files changed

+26
-5
lines changed

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,30 @@ This library includes:
1818
- React native `>=0.61.1`
1919
- [LINE developer account](https://developers.line.biz/console/) with a channel created.
2020

21+
## Migration from v1.x.x
22+
23+
If you are currently using `react-native-line-sdk` (v1.x.x):
24+
25+
1. Unlink the old library:
26+
27+
```
28+
react-native unlink react-native-line-sdk
29+
```
30+
31+
2. Remove it from the `package.json`
32+
3. Remove any line sdk's `*.aar` from `android/libs`
33+
4. Remove from `android/app/build.gradle`:
34+
35+
```
36+
repositories {
37+
flatDir {
38+
dirs 'libs'
39+
}
40+
}
41+
```
42+
43+
Finally, follow the installation steps for the new version.
44+
2145
## Installation
2246

2347
First, install the npm package with yarn. _Autolink_ is automatic.
@@ -281,7 +305,6 @@ If you want to see `@xmartlabs/react-native-line` in action, just move into the
281305

282306
## Contributors
283307

284-
<!-- TODO: Add contributors by using "All contributors bot" -->
285308
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
286309
<!-- prettier-ignore-start -->
287310
<!-- markdownlint-disable -->

RNLine.podspec

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@ Pod::Spec.new do |s|
1212
s.homepage = package['homepage']
1313
s.platform = :ios, "10.0"
1414

15-
s.source = { :git => "" } # https://github.com/CocoaPods/cocoapods-packager/issues/216#issuecomment-525296029
16-
# s.source = { :git => "https://github.com/xmartlabs/react-native-line.git", :tag => "v#{s.version}" }
15+
s.source = { :git => "" }
1716
s.source_files = "ios/**/*.{h,m,swift}"
18-
# s.preserve_paths = '**/*.{h,m}' # https://github.com/CocoaPods/cocoapods-packager/issues/216#issuecomment-525296029
1917

2018
s.dependency 'React'
2119
s.dependency 'LineSDKSwift', '~> 5.0'

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export function getBotFriendshipStatus(): Promise<any> // TODO: Add response type when tested
1+
export function getBotFriendshipStatus(): Promise<any>
22
export function getCurrentAccessToken(): Promise<AccessToken>
33
export function getProfile(): Promise<UserProfile>
44
export function login(args?: LoginArguments): Promise<LoginResult>

0 commit comments

Comments
 (0)