Skip to content

Commit 180970b

Browse files
committed
update README
1 parent 40e999b commit 180970b

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

README.md

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,16 @@ First, install the npm package with yarn. _Autolink_ is automatic.
5959
Inside your `AppDelegate.m`, setup the line sdk by passing the channel id obtained.
6060

6161
1. Add `platform :ios, '10.0'` in `Podfile` line:1
62-
2. Enable `use_frameworks!` in `Podfile` line:3
63-
3. Comment the code related to flipper, flipper doesn't support `use_frameworks!` !
64-
4. Modify your info.plist like it says here [Configuring the Info.plist file](https://developers.line.biz/en/docs/ios-sdk/swift/setting-up-project/#configuring-the-info-plist-file)
65-
5. Change your `AppDelegate.m` to match the following:
62+
2. Modify your info.plist like it says here [Configuring the Info.plist file](https://developers.line.biz/en/docs/ios-sdk/swift/setting-up-project/#configuring-the-info-plist-file)
63+
3. Change your `AppDelegate.m` to match the following:
6664

6765
```objc
6866
// AppDelegate.m
6967

7068
//
7169
// Import the Library
7270
//
73-
#import "RNLine-Swift.h"
71+
@import RNLine;
7472

7573
//
7674
// Setup the plugin using your CHANNEL_ID when the app finishes launching
@@ -137,7 +135,22 @@ Don't forget to add `application` function, as line's instructions indicate.
137135
```
138136

139137
3. Add `minSdkVersion = 17` in `android/build.gradle`
140-
4. In your manifest add `xmlns:tools="http://schemas.android.com/tools"` in your `manifest` tag and also `tools:replace="android:allowBackup"` in your `application` tag
138+
4. Add LineSDK as a dependency in `android/build.gradle`
139+
```gradle
140+
android {
141+
// Enable Java 1.8 support.
142+
compileOptions { // <- add this block if didn't setup
143+
sourceCompatibility JavaVersion.VERSION_1_8
144+
targetCompatibility JavaVersion.VERSION_1_8
145+
}
146+
...
147+
dependencies {
148+
...
149+
implementation 'com.linecorp.linesdk:linesdk:5.7.0' // <- add this line
150+
}
151+
}
152+
```
153+
5. In your manifest add `xmlns:tools="http://schemas.android.com/tools"` in your `manifest` tag and also `tools:replace="android:allowBackup"` in your `application` tag
141154

142155
## API
143156

0 commit comments

Comments
 (0)