Skip to content

Commit b3bb6a7

Browse files
committed
chore: update dependencies
1 parent cd5f76e commit b3bb6a7

15 files changed

+1410
-8165
lines changed

.all-contributorsrc

+9-26
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
2-
"files": [
3-
"README.md"
4-
],
2+
"files": ["README.md"],
53
"imageSize": 100,
64
"commit": false,
75
"contributors": [
@@ -10,58 +8,43 @@
108
"name": "Emiliano Botti",
119
"avatar_url": "https://avatars0.githubusercontent.com/u/20881388?v=4",
1210
"profile": "https://github.com/eb16",
13-
"contributions": [
14-
"code"
15-
]
11+
"contributions": ["code"]
1612
},
1713
{
1814
"login": "Joaguirrem",
19-
"name": "Joaquín Aguirre",
15+
"name": "Joaquin Aguirre",
2016
"avatar_url": "https://avatars2.githubusercontent.com/u/17858453?v=4",
2117
"profile": "https://github.com/Joaguirrem",
22-
"contributions": [
23-
"code"
24-
]
18+
"contributions": ["code"]
2519
},
2620
{
2721
"login": "nicoache1",
2822
"name": "Nicolas Hernandez",
2923
"avatar_url": "https://avatars0.githubusercontent.com/u/26419582?v=4",
3024
"profile": "https://github.com/nicoache1",
31-
"contributions": [
32-
"code",
33-
"review"
34-
]
25+
"contributions": ["code", "review"]
3526
},
3627
{
3728
"login": "santiagofm",
3829
"name": "Santiago Fernández",
3930
"avatar_url": "https://avatars0.githubusercontent.com/u/6749415?v=4",
4031
"profile": "https://github.com/santiagofm",
41-
"contributions": [
42-
"code",
43-
"projectManagement",
44-
"review"
45-
]
32+
"contributions": ["code", "projectManagement", "review"]
4633
},
4734
{
4835
"login": "matir91",
4936
"name": "Matías Irland",
5037
"avatar_url": "https://avatars2.githubusercontent.com/u/8472881?v=4",
5138
"profile": "https://github.com/matir91",
52-
"contributions": [
53-
"review"
54-
]
39+
"contributions": ["review"]
5540
},
5641
{
5742
"login": "MarcoF09",
5843
"name": "Marco Fiorito",
5944
"avatar_url": "https://avatars.githubusercontent.com/MarcoF09",
6045
"profile": "https://github.com/MarcoF09",
61-
"contributions": [
62-
"code",
63-
]
64-
},
46+
"contributions": ["code"]
47+
}
6548
],
6649
"contributorsPerLine": 7,
6750
"projectName": "react-native-line",

.eslintrc

-25
This file was deleted.

.npmignore

-19
This file was deleted.

.npmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
registry=https://registry.yarnpkg.com
1+
registry=https://registry.yarnpkg.com

.prettierignore

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1-
package.json
2-
ios
1+
android
2+
ios
3+
node_modules
4+
5+
README.md
6+
yarn.lock

.prettierrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"arrowParens": "avoid",
3+
"bracketSameLine": true,
4+
"bracketSpacing": true,
5+
"semi": false,
6+
"singleQuote": true
7+
}

.prettierrc.js

-8
This file was deleted.

android/gradle.properties

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
android.useAndroidX=true
2-
3-
hermesEnabled=true
2+
hermesEnabled=true

app.plugin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require('./plugins/withLineSDK');
1+
module.exports = require('./plugins/withLineSDK')

eslint.config.mjs

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
import path from 'node:path'
2+
import { fileURLToPath } from 'node:url'
3+
4+
import { FlatCompat } from '@eslint/eslintrc'
5+
import js from '@eslint/js'
6+
import typescriptEslint from '@typescript-eslint/eslint-plugin'
7+
import parser from '@typescript-eslint/parser'
8+
import simpleImportSort from 'eslint-plugin-simple-import-sort'
9+
import sortKeysFix from 'eslint-plugin-sort-keys-fix'
10+
11+
const __filename = fileURLToPath(import.meta.url)
12+
const __dirname = path.dirname(__filename)
13+
const compat = new FlatCompat({
14+
allConfig: js.configs.all,
15+
baseDirectory: __dirname,
16+
recommendedConfig: js.configs.recommended,
17+
})
18+
19+
export default [
20+
{
21+
ignores: ['**/*.d.*', '**/*.js', 'android/', 'ios/', 'node_modules/'],
22+
},
23+
{
24+
files: ['**/*.ts', '**/*.tsx'],
25+
},
26+
...compat.extends(
27+
'eslint:recommended',
28+
'plugin:@typescript-eslint/recommended',
29+
),
30+
{
31+
languageOptions: {
32+
ecmaVersion: 14,
33+
globals: {},
34+
parser,
35+
parserOptions: {
36+
ecmaFeatures: {
37+
jsx: true,
38+
},
39+
},
40+
sourceType: 'script',
41+
},
42+
43+
plugins: {
44+
'@typescript-eslint': typescriptEslint,
45+
'simple-import-sort': simpleImportSort,
46+
'sort-keys-fix': sortKeysFix,
47+
},
48+
49+
rules: {
50+
'@typescript-eslint/ban-types': 'off',
51+
'@typescript-eslint/no-explicit-any': 'off',
52+
'no-console': ['warn', { allow: ['error'] }],
53+
'no-duplicate-imports': ['error', { includeExports: true }],
54+
'simple-import-sort/imports': 'error',
55+
'sort-keys-fix/sort-keys-fix': 'error',
56+
},
57+
},
58+
]

package.json

+26-35
Original file line numberDiff line numberDiff line change
@@ -14,57 +14,48 @@
1414
"version": "2.2.1",
1515
"homepage": "https://github.com/xmartlabs/react-native-line#readme",
1616
"keywords": [
17-
"react-native",
18-
"react",
19-
"simple",
17+
"auth",
2018
"line",
21-
"social login",
22-
"auth"
19+
"login",
20+
"react",
21+
"react-native",
22+
"react-native-line",
23+
"social"
2324
],
2425
"license": "MIT",
2526
"scripts": {
26-
"prepare": "yarn run build",
2727
"android": "react-native run-android",
28-
"ios": "react-native run-ios",
29-
"start": "react-native start",
30-
"test": "jest",
3128
"build": "tsc",
3229
"dev": "tsc --watch",
30+
"ios": "react-native run-ios",
31+
"prepare": "yarn run build",
32+
"start": "react-native start",
3333
"test:ts": "tsc --noEmit"
3434
},
35-
"peerDependencies": {
36-
"@expo/config-plugins": "^8.0.10",
37-
"react": "^16.0",
38-
"react-native": ">=0.61.1"
39-
},
4035
"devDependencies": {
41-
"@expo/config-plugins": "^8.0.10",
42-
"@react-native/eslint-config": "0.76.3",
43-
"@types/react-native": "0.73.0",
44-
"@typescript-eslint/eslint-plugin": "8.17.0",
45-
"@typescript-eslint/parser": "8.17.0",
46-
"eslint": "9.16.0",
47-
"eslint-config-prettier": "9.1.0",
48-
"eslint-plugin-prettier": "5.2.1",
49-
"eslint-plugin-simple-import-sort": "12.1.1",
50-
"eslint-plugin-sort-keys-fix": "1.1.2",
51-
"prettier": "2.8.8",
52-
"typescript": "5.0.4"
36+
"@expo/config-plugins": "^9.0.13",
37+
"@typescript-eslint/eslint-plugin": "^8.19.1",
38+
"@typescript-eslint/parser": "^8.19.1",
39+
"eslint": "^9.17.0",
40+
"eslint-plugin-simple-import-sort": "^12.1.1",
41+
"eslint-plugin-sort-keys-fix": "^1.1.2",
42+
"prettier": "^3.4.2",
43+
"typescript": "^5.3.3"
44+
},
45+
"peerDependencies": {
46+
"react-native": "*"
5347
},
5448
"repository": {
5549
"type": "git",
5650
"url": "ssh:[email protected]:xmartlabs/react-native-line.git"
5751
},
5852
"files": [
59-
"dist/",
60-
"src/",
6153
"android",
54+
"dist",
6255
"ios",
63-
"RNLine.podspec",
64-
"README.md"
65-
],
66-
"engines": {
67-
"node": ">=18"
68-
},
69-
"packageManager": "[email protected]"
56+
"plugins",
57+
"src",
58+
"app.plugin.js",
59+
"expo-module.config.json"
60+
]
7061
}

src/index.ts

+11-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,16 @@ import {
77
refreshToken as LineSDKRefreshToken,
88
verifyAccessToken as LineSDKVerifyAccessToken,
99
} from './lineSDKWrapper'
10-
import { LoginArguments } from './types'
10+
import {
11+
AccessToken,
12+
AccessTokenVerifyResult,
13+
BotFriendshipStatus,
14+
BotPrompt,
15+
LoginArguments,
16+
LoginPermission,
17+
LoginResult,
18+
UserProfile,
19+
} from './types'
1120

1221
export {
1322
BotFriendshipStatus,
@@ -18,7 +27,7 @@ export {
1827
LoginResult,
1928
BotPrompt,
2029
UserProfile,
21-
} from './types'
30+
}
2231

2332
export default {
2433
getBotFriendshipStatus() {

src/lineSDKWrapper.ts

+6-5
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ import {
1818

1919
const { LineLogin } = NativeModules
2020

21-
export const getBotFriendshipStatus = async (): Promise<BotFriendshipStatus> => {
22-
const result = await LineLogin.getBotFriendshipStatus()
23-
const deserializedResult = deserializeBotFriendshipStatus(result)
24-
return deserializedResult
25-
}
21+
export const getBotFriendshipStatus =
22+
async (): Promise<BotFriendshipStatus> => {
23+
const result = await LineLogin.getBotFriendshipStatus()
24+
const deserializedResult = deserializeBotFriendshipStatus(result)
25+
return deserializedResult
26+
}
2627

2728
export const getCurrentAccessToken = async (): Promise<AccessToken> => {
2829
const result = await LineLogin.getCurrentAccessToken()

0 commit comments

Comments
 (0)