You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-6Lines changed: 19 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,18 +59,16 @@ First, install the npm package with yarn. _Autolink_ is automatic.
59
59
Inside your `AppDelegate.m`, setup the line sdk by passing the channel id obtained.
60
60
61
61
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:
66
64
67
65
```objc
68
66
// AppDelegate.m
69
67
70
68
//
71
69
// Import the Library
72
70
//
73
-
#import"RNLine-Swift.h"
71
+
@import RNLine;
74
72
75
73
//
76
74
// 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.
137
135
```
138
136
139
137
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
0 commit comments