Skip to content

Commit 4183112

Browse files
committed
ios support cocoapods
1 parent b0bf63b commit 4183112

File tree

5 files changed

+43
-4
lines changed

5 files changed

+43
-4
lines changed

JPushRN.podspec

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
require 'json'
2+
pjson = JSON.parse(File.read('package.json'))
3+
4+
Pod::Spec.new do |s|
5+
6+
s.name = "JPushRN"
7+
s.version = pjson["version"]
8+
s.homepage = "https://github.com/jpush/jpush-react-native"
9+
s.summary = pjson["description"]
10+
s.license = pjson["license"]
11+
s.author = { "huminios" => "[email protected]" }
12+
13+
s.ios.deployment_target = '7.0'
14+
15+
s.source = { :git => "https://github.com/jpush/jpush-react-native", :tag => "#{s.version}" }
16+
s.source_files = 'ios/RCTJPushModule/*.{h,m}'
17+
s.preserve_paths = "*.js"
18+
s.frameworks = 'UIKit','CFNetwork','CoreFoundation','CoreTelephony','SystemConfiguration','CoreGraphics','Foundation','Security'
19+
s.weak_frameworks = 'UserNotifications'
20+
s.libraries = 'z','resolv'
21+
s.vendored_libraries = "ios/RCTJPushModule/*.a"
22+
23+
s.dependency 'React'
24+
end

example/ios/example/Images.xcassets/AppIcon.appiconset/Contents.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
{
22
"images" : [
3+
{
4+
"idiom" : "iphone",
5+
"size" : "20x20",
6+
"scale" : "2x"
7+
},
8+
{
9+
"idiom" : "iphone",
10+
"size" : "20x20",
11+
"scale" : "3x"
12+
},
313
{
414
"idiom" : "iphone",
515
"size" : "29x29",
@@ -29,6 +39,11 @@
2939
"idiom" : "iphone",
3040
"size" : "60x60",
3141
"scale" : "3x"
42+
},
43+
{
44+
"idiom" : "ios-marketing",
45+
"size" : "1024x1024",
46+
"scale" : "1x"
3247
}
3348
],
3449
"info" : {

ios/RCTJPushModule.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/* Begin PBXBuildFile section */
1010
624386D71E096B8800F69E07 /* RCTJPushActionQueue.m in Sources */ = {isa = PBXBuildFile; fileRef = 624386D21E096B8800F69E07 /* RCTJPushActionQueue.m */; };
1111
624386D81E096B8800F69E07 /* RCTJPushModule.m in Sources */ = {isa = PBXBuildFile; fileRef = 624386D41E096B8800F69E07 /* RCTJPushModule.m */; };
12-
626A78821FA336AA0074D518 /* jpush-ios-3.0.7.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 626A78811FA336AA0074D518 /* jpush-ios-3.0.7.a */; };
12+
626A78821FA336AA0074D518 /* libjpush-ios-3.0.7.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 626A78811FA336AA0074D518 /* libjpush-ios-3.0.7.a */; };
1313
/* End PBXBuildFile section */
1414

1515
/* Begin PBXCopyFilesBuildPhase section */
@@ -30,7 +30,7 @@
3030
624386D21E096B8800F69E07 /* RCTJPushActionQueue.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTJPushActionQueue.m; sourceTree = "<group>"; };
3131
624386D31E096B8800F69E07 /* RCTJPushModule.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTJPushModule.h; sourceTree = "<group>"; };
3232
624386D41E096B8800F69E07 /* RCTJPushModule.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTJPushModule.m; sourceTree = "<group>"; };
33-
626A78811FA336AA0074D518 /* jpush-ios-3.0.7.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = "jpush-ios-3.0.7.a"; sourceTree = "<group>"; };
33+
626A78811FA336AA0074D518 /* libjpush-ios-3.0.7.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = "libjpush-ios-3.0.7.a"; sourceTree = "<group>"; };
3434
6280980A1CEDC407000D3A81 /* libRCTJPushModule.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRCTJPushModule.a; sourceTree = BUILT_PRODUCTS_DIR; };
3535
/* End PBXFileReference section */
3636

@@ -39,7 +39,7 @@
3939
isa = PBXFrameworksBuildPhase;
4040
buildActionMask = 2147483647;
4141
files = (
42-
626A78821FA336AA0074D518 /* jpush-ios-3.0.7.a in Frameworks */,
42+
626A78821FA336AA0074D518 /* libjpush-ios-3.0.7.a in Frameworks */,
4343
);
4444
runOnlyForDeploymentPostprocessing = 0;
4545
};
@@ -65,7 +65,7 @@
6565
6280980C1CEDC407000D3A81 /* RCTJPushModule */ = {
6666
isa = PBXGroup;
6767
children = (
68-
626A78811FA336AA0074D518 /* jpush-ios-3.0.7.a */,
68+
626A78811FA336AA0074D518 /* libjpush-ios-3.0.7.a */,
6969
623D05801EA4D29100F31FBE /* JPUSHService.h */,
7070
624386D11E096B8800F69E07 /* RCTJPushActionQueue.h */,
7171
624386D21E096B8800F69E07 /* RCTJPushActionQueue.m */,

0 commit comments

Comments
 (0)