Skip to content

Commit c8f0e60

Browse files
committed
chore: modify ios podspec configuration
1 parent ad92b5c commit c8f0e60

File tree

5 files changed

+17
-46
lines changed

5 files changed

+17
-46
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require 'json'
22

3-
package = JSON.parse(File.read(File.join(__dir__, '..', 'package.json')))
3+
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
44

55
Pod::Spec.new do |s|
66
s.name = 'RNLine'
@@ -10,17 +10,18 @@ Pod::Spec.new do |s|
1010

1111
s.authors = package['author']
1212
s.homepage = package['homepage']
13-
s.platform = :ios, "13.0"
13+
s.platform = :ios, "15.1"
1414
s.swift_version = '5.4'
1515

16-
s.source = { :git => "https://github.com/xmartlabs/react-native-line" }
17-
s.source_files = "**/*.{h,m,swift}"
16+
s.source = { :git => package["repository"]["url"] }
17+
s.source_files = "ios/**/*.{h,m,swift}"
1818

1919
# Swift/Objective-C compatibility
2020
s.pod_target_xcconfig = {
21-
'DEFINES_MODULE' => 'YES'
21+
'DEFINES_MODULE' => 'YES',
22+
'SWIFT_COMPILATION_MODE' => 'wholemodule'
2223
}
2324

24-
s.dependency 'React-Core'
2525
s.dependency 'LineSDKSwift', '~> 5.8.1'
26+
s.dependency 'React-Core'
2627
end

package.json

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@xmartlabs/react-native-line",
33
"description": "React Native Line wrapper",
4-
"author": "XmartLabs <[email protected]>",
4+
"author": "Xmartlabs <[email protected]>",
55
"contributors": [
66
"Emiliano Botti <[email protected]>",
77
"Joaquin Aguirre <[email protected]>",
@@ -33,8 +33,8 @@
3333
},
3434
"devDependencies": {
3535
"@expo/config-plugins": "^9.0.14",
36-
"@typescript-eslint/eslint-plugin": "^8.20.0",
37-
"@typescript-eslint/parser": "^8.20.0",
36+
"@typescript-eslint/eslint-plugin": "^8.21.0",
37+
"@typescript-eslint/parser": "^8.21.0",
3838
"eslint": "^9.18.0",
3939
"eslint-plugin-simple-import-sort": "^12.1.1",
4040
"eslint-plugin-sort-keys-fix": "^1.1.2",
@@ -47,13 +47,14 @@
4747
"packageManager": "[email protected]",
4848
"repository": {
4949
"type": "git",
50-
"url": "ssh:git@github.com:xmartlabs/react-native-line.git"
50+
"url": "https://github.com/xmartlabs/react-native-line.git"
5151
},
5252
"files": [
5353
"android",
5454
"dist",
5555
"ios",
5656
"plugin",
57-
"app.plugin.js"
57+
"app.plugin.js",
58+
"RNLine.podspec"
5859
]
5960
}

plugin/ios/withLinePod.js

-29
This file was deleted.

plugin/withLineSDK.js

-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ const { withPlugins } = require('@expo/config-plugins')
33
const withAppDelegateMod = require('./ios/withAppDelegateMod')
44
const withCustomPlist = require('./ios/withCustomPlist')
55
const withLineChannelId = require('./android/withLineChannelId')
6-
const withLinePod = require('./ios/withLinePod')
76

87
function withLineSDK(config, props) {
98
if (!props?.channelId) {
@@ -15,7 +14,6 @@ function withLineSDK(config, props) {
1514
[withLineChannelId, props],
1615

1716
// iOS
18-
withLinePod,
1917
[withCustomPlist, props],
2018
[withAppDelegateMod, props],
2119
])

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ __metadata:
270270
languageName: node
271271
linkType: hard
272272

273-
"@typescript-eslint/eslint-plugin@npm:^8.20.0":
273+
"@typescript-eslint/eslint-plugin@npm:^8.21.0":
274274
version: 8.21.0
275275
resolution: "@typescript-eslint/eslint-plugin@npm:8.21.0"
276276
dependencies:
@@ -291,7 +291,7 @@ __metadata:
291291
languageName: node
292292
linkType: hard
293293

294-
"@typescript-eslint/parser@npm:^8.20.0":
294+
"@typescript-eslint/parser@npm:^8.21.0":
295295
version: 8.21.0
296296
resolution: "@typescript-eslint/parser@npm:8.21.0"
297297
dependencies:
@@ -387,8 +387,8 @@ __metadata:
387387
resolution: "@xmartlabs/react-native-line@workspace:."
388388
dependencies:
389389
"@expo/config-plugins": "npm:^9.0.14"
390-
"@typescript-eslint/eslint-plugin": "npm:^8.20.0"
391-
"@typescript-eslint/parser": "npm:^8.20.0"
390+
"@typescript-eslint/eslint-plugin": "npm:^8.21.0"
391+
"@typescript-eslint/parser": "npm:^8.21.0"
392392
eslint: "npm:^9.18.0"
393393
eslint-plugin-simple-import-sort: "npm:^12.1.1"
394394
eslint-plugin-sort-keys-fix: "npm:^1.1.2"

0 commit comments

Comments
 (0)