Skip to content

Commit 16ed8f9

Browse files
committed
chore: remove comments
1 parent a0e6ab0 commit 16ed8f9

9 files changed

+17
-127
lines changed

ios/LineLogin.h

-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
1-
//
2-
// LineLogin.h
3-
// RNLine
4-
//
5-
// Created by Emiliano on 11/1/19.
6-
// Copyright © 2019 XmartLabs S.R.L. All rights reserved.
7-
//
8-
91
#ifndef LineLogin_h
102
#define LineLogin_h
113

12-
134
#endif /* LineLogin_h */

ios/LineLogin.m

-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
//
2-
// LineLogin.m
3-
// RNLine
4-
//
5-
// Created by Emiliano Botti on 9/25/19.
6-
// Copyright © 2019 XmartLabs S.R.L.. All rights reserved.
7-
//
8-
91
#import <Foundation/Foundation.h>
102
#import "React/RCTBridgeModule.h"
113

ios/LineLogin.swift

+4-12
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,21 @@
1-
//
2-
// LineLogin.swift
3-
// RNLine
4-
//
5-
// Created by Emiliano Botti on 9/25/19.
6-
// Copyright © 2019 XmartLabs S.R.L.. All rights reserved.
7-
//
8-
91
import Foundation
102
import LineSDK
113

124
@objc(LineLogin) public class LineLogin: NSObject {
13-
5+
146
// Setup to be called in AppDelegate
157
@objc public static func setup(channelID: String, universalLinkURL: URL?) {
168
return LoginManager.shared.setup(channelID: channelID, universalLinkURL: universalLinkURL)
179
}
18-
10+
1911
@objc public static func application(
2012
_ application: UIApplication,
2113
open url: URL,
2214
options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool
2315
{
2416
return LoginManager.shared.application(application, open: url, options: options)
2517
}
26-
18+
2719
@objc public static func application(
2820
_ application: UIApplication,
2921
continue userActivity: NSUserActivity,
@@ -54,7 +46,7 @@ import LineSDK
5446
default: break
5547
}
5648
}
57-
49+
5850
DispatchQueue.main.async {
5951
LoginManager.shared.login(
6052
permissions: Set(scopes),

ios/LineSetup.h

-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
1-
//
2-
// LineSetup.h
3-
// RNLine
4-
//
5-
// Created by Emiliano on 11/28/19.
6-
// Copyright © 2019 XmartLabs S.R.L. All rights reserved.
7-
//
8-
91
#ifndef LineSetup_h
102
#define LineSetup_h
113

12-
134
#endif /* LineSetup_h */

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"peerDependencies": {
4545
"react-native": "*"
4646
},
47+
"packageManager": "[email protected]",
4748
"repository": {
4849
"type": "git",
4950
"url": "ssh:[email protected]:xmartlabs/react-native-line.git"
@@ -54,6 +55,5 @@
5455
"ios",
5556
"plugin",
5657
"app.plugin.js"
57-
],
58-
"packageManager": "[email protected]"
58+
]
5959
}

plugin/android/withLineChannelId.js

+3-6
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,13 @@ const { withStringsXml } = require('@expo/config-plugins')
22

33
function withLineChannelId(config, { channelId }) {
44
return withStringsXml(config, config => {
5-
let strings = config.modResults.resources.string
5+
const strings = config.modResults.resources.string
66

7-
let line_channel_id = strings.findIndex(
7+
const lineChannelId = strings.findIndex(
88
value => value.$.name === 'line_channel_id',
99
)
1010

11-
if (line_channel_id !== -1) {
12-
// Dp nothing
13-
return config
14-
} else {
11+
if (lineChannelId === -1) {
1512
strings.push({
1613
$: {
1714
name: 'line_channel_id',

plugin/ios/appDelegate_template.m

-73
This file was deleted.

plugin/withLineSDK.js

+6-8
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
11
const { withPlugins } = require('@expo/config-plugins')
22

3-
// Android
4-
const withLineChannelId = require('./android/withLineChannelId')
5-
6-
// iOS
3+
const withAppDelegateMod = require('./ios/withAppDelegateMod')
74
const withCustomPlist = require('./ios/withCustomPlist')
5+
const withLineChannelId = require('./android/withLineChannelId')
86
const withLinePod = require('./ios/withLinePod')
9-
const withAppDelegateMod = require('./ios/withAppDelegateMod')
107

118
function withLineSDK(config, props) {
129
if (!props?.channelId) {
1310
throw Error('Please specify channelId')
1411
}
12+
1513
return withPlugins(config, [
14+
// Android
15+
[withLineChannelId, props],
16+
1617
// iOS
1718
withLinePod,
1819
[withCustomPlist, props],
1920
[withAppDelegateMod, props],
20-
21-
// Android
22-
[withLineChannelId, props],
2321
])
2422
}
2523

src/lineSDKWrapper.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
2+
// @ts-ignore
13
import { NativeModules } from 'react-native'
24

35
import {

0 commit comments

Comments
 (0)