Skip to content

Commit 3b12fc8

Browse files
author
詹强
committed
iOS- 更新example
1 parent c55aa31 commit 3b12fc8

File tree

3 files changed

+58
-86
lines changed

3 files changed

+58
-86
lines changed

example/ios/PushDemo.xcodeproj/project.pbxproj

Lines changed: 57 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -190,19 +190,33 @@
190190
remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4;
191191
remoteInfo = "cxxreact-tvOS";
192192
};
193-
3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
193+
5CAF6C072327F2F100B5A09F /* PBXContainerItemProxy */ = {
194194
isa = PBXContainerItemProxy;
195195
containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
196196
proxyType = 2;
197-
remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4;
198-
remoteInfo = jschelpers;
197+
remoteGlobalIDString = EDEBC6D6214B3E7000DD5AC8;
198+
remoteInfo = jsi;
199199
};
200-
3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = {
200+
5CAF6C092327F2F100B5A09F /* PBXContainerItemProxy */ = {
201201
isa = PBXContainerItemProxy;
202202
containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
203203
proxyType = 2;
204-
remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4;
205-
remoteInfo = "jschelpers-tvOS";
204+
remoteGlobalIDString = EDEBC73B214B45A300DD5AC8;
205+
remoteInfo = jsiexecutor;
206+
};
207+
5CAF6C0B2327F2F100B5A09F /* PBXContainerItemProxy */ = {
208+
isa = PBXContainerItemProxy;
209+
containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
210+
proxyType = 2;
211+
remoteGlobalIDString = ED296FB6214C9A0900B7C4FE;
212+
remoteInfo = "jsi-tvOS";
213+
};
214+
5CAF6C0D2327F2F100B5A09F /* PBXContainerItemProxy */ = {
215+
isa = PBXContainerItemProxy;
216+
containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
217+
proxyType = 2;
218+
remoteGlobalIDString = ED296FEE214C9CF800B7C4FE;
219+
remoteInfo = "jsiexecutor-tvOS";
206220
};
207221
5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = {
208222
isa = PBXContainerItemProxy;
@@ -246,20 +260,6 @@
246260
remoteGlobalIDString = 6212E9B41F3990DC00BDF51A;
247261
remoteInfo = RCTJCoreModule;
248262
};
249-
62EDFB3B2019B8C000C0628D /* PBXContainerItemProxy */ = {
250-
isa = PBXContainerItemProxy;
251-
containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
252-
proxyType = 2;
253-
remoteGlobalIDString = 3DBE0D001F3B181A0099AA32;
254-
remoteInfo = fishhook;
255-
};
256-
62EDFB3D2019B8C000C0628D /* PBXContainerItemProxy */ = {
257-
isa = PBXContainerItemProxy;
258-
containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
259-
proxyType = 2;
260-
remoteGlobalIDString = 3DBE0D0D1F3B181C0099AA32;
261-
remoteInfo = "fishhook-tvOS";
262-
};
263263
62EDFB4D2019B8C000C0628D /* PBXContainerItemProxy */ = {
264264
isa = PBXContainerItemProxy;
265265
containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
@@ -288,20 +288,6 @@
288288
remoteGlobalIDString = 3D383D621EBD27B9005632C8;
289289
remoteInfo = "double-conversion-tvOS";
290290
};
291-
62EDFB552019B8C000C0628D /* PBXContainerItemProxy */ = {
292-
isa = PBXContainerItemProxy;
293-
containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
294-
proxyType = 2;
295-
remoteGlobalIDString = 9936F3131F5F2E4B0010BF04;
296-
remoteInfo = privatedata;
297-
};
298-
62EDFB572019B8C000C0628D /* PBXContainerItemProxy */ = {
299-
isa = PBXContainerItemProxy;
300-
containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
301-
proxyType = 2;
302-
remoteGlobalIDString = 9936F32F1F5F2E5B0010BF04;
303-
remoteInfo = "privatedata-tvOS";
304-
};
305291
78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = {
306292
isa = PBXContainerItemProxy;
307293
containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
@@ -490,8 +476,6 @@
490476
children = (
491477
139FDEF41B06529B00C62182 /* libRCTWebSocket.a */,
492478
3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */,
493-
62EDFB3C2019B8C000C0628D /* libfishhook.a */,
494-
62EDFB3E2019B8C000C0628D /* libfishhook-tvOS.a */,
495479
);
496480
name = Products;
497481
sourceTree = "<group>";
@@ -520,16 +504,16 @@
520504
3DAD3EA71DF850E9000B6D8A /* libyoga.a */,
521505
3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */,
522506
3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */,
523-
3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */,
524-
3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */,
525507
6279623B212124B400CFE32D /* libjsinspector.a */,
526508
6279623D212124B400CFE32D /* libjsinspector-tvOS.a */,
527509
62EDFB4E2019B8C000C0628D /* libthird-party.a */,
528510
62EDFB502019B8C000C0628D /* libthird-party.a */,
529511
62EDFB522019B8C000C0628D /* libdouble-conversion.a */,
530512
62EDFB542019B8C000C0628D /* libdouble-conversion.a */,
531-
62EDFB562019B8C000C0628D /* libprivatedata.a */,
532-
62EDFB582019B8C000C0628D /* libprivatedata-tvOS.a */,
513+
5CAF6C082327F2F100B5A09F /* libjsi.a */,
514+
5CAF6C0A2327F2F100B5A09F /* libjsiexecutor.a */,
515+
5CAF6C0C2327F2F100B5A09F /* libjsi-tvOS.a */,
516+
5CAF6C0E2327F2F100B5A09F /* libjsiexecutor-tvOS.a */,
533517
);
534518
name = Products;
535519
sourceTree = "<group>";
@@ -719,7 +703,7 @@
719703
ProvisioningStyle = Manual;
720704
SystemCapabilities = {
721705
com.apple.BackgroundModes = {
722-
enabled = 1;
706+
enabled = 0;
723707
};
724708
com.apple.Push = {
725709
enabled = 1;
@@ -946,18 +930,32 @@
946930
remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */;
947931
sourceTree = BUILT_PRODUCTS_DIR;
948932
};
949-
3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = {
933+
5CAF6C082327F2F100B5A09F /* libjsi.a */ = {
950934
isa = PBXReferenceProxy;
951935
fileType = archive.ar;
952-
path = libjschelpers.a;
953-
remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */;
936+
path = libjsi.a;
937+
remoteRef = 5CAF6C072327F2F100B5A09F /* PBXContainerItemProxy */;
954938
sourceTree = BUILT_PRODUCTS_DIR;
955939
};
956-
3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = {
940+
5CAF6C0A2327F2F100B5A09F /* libjsiexecutor.a */ = {
957941
isa = PBXReferenceProxy;
958942
fileType = archive.ar;
959-
path = libjschelpers.a;
960-
remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */;
943+
path = libjsiexecutor.a;
944+
remoteRef = 5CAF6C092327F2F100B5A09F /* PBXContainerItemProxy */;
945+
sourceTree = BUILT_PRODUCTS_DIR;
946+
};
947+
5CAF6C0C2327F2F100B5A09F /* libjsi-tvOS.a */ = {
948+
isa = PBXReferenceProxy;
949+
fileType = archive.ar;
950+
path = "libjsi-tvOS.a";
951+
remoteRef = 5CAF6C0B2327F2F100B5A09F /* PBXContainerItemProxy */;
952+
sourceTree = BUILT_PRODUCTS_DIR;
953+
};
954+
5CAF6C0E2327F2F100B5A09F /* libjsiexecutor-tvOS.a */ = {
955+
isa = PBXReferenceProxy;
956+
fileType = archive.ar;
957+
path = "libjsiexecutor-tvOS.a";
958+
remoteRef = 5CAF6C0D2327F2F100B5A09F /* PBXContainerItemProxy */;
961959
sourceTree = BUILT_PRODUCTS_DIR;
962960
};
963961
5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = {
@@ -1002,20 +1000,6 @@
10021000
remoteRef = 62796271212124D500CFE32D /* PBXContainerItemProxy */;
10031001
sourceTree = BUILT_PRODUCTS_DIR;
10041002
};
1005-
62EDFB3C2019B8C000C0628D /* libfishhook.a */ = {
1006-
isa = PBXReferenceProxy;
1007-
fileType = archive.ar;
1008-
path = libfishhook.a;
1009-
remoteRef = 62EDFB3B2019B8C000C0628D /* PBXContainerItemProxy */;
1010-
sourceTree = BUILT_PRODUCTS_DIR;
1011-
};
1012-
62EDFB3E2019B8C000C0628D /* libfishhook-tvOS.a */ = {
1013-
isa = PBXReferenceProxy;
1014-
fileType = archive.ar;
1015-
path = "libfishhook-tvOS.a";
1016-
remoteRef = 62EDFB3D2019B8C000C0628D /* PBXContainerItemProxy */;
1017-
sourceTree = BUILT_PRODUCTS_DIR;
1018-
};
10191003
62EDFB4E2019B8C000C0628D /* libthird-party.a */ = {
10201004
isa = PBXReferenceProxy;
10211005
fileType = archive.ar;
@@ -1044,20 +1028,6 @@
10441028
remoteRef = 62EDFB532019B8C000C0628D /* PBXContainerItemProxy */;
10451029
sourceTree = BUILT_PRODUCTS_DIR;
10461030
};
1047-
62EDFB562019B8C000C0628D /* libprivatedata.a */ = {
1048-
isa = PBXReferenceProxy;
1049-
fileType = archive.ar;
1050-
path = libprivatedata.a;
1051-
remoteRef = 62EDFB552019B8C000C0628D /* PBXContainerItemProxy */;
1052-
sourceTree = BUILT_PRODUCTS_DIR;
1053-
};
1054-
62EDFB582019B8C000C0628D /* libprivatedata-tvOS.a */ = {
1055-
isa = PBXReferenceProxy;
1056-
fileType = archive.ar;
1057-
path = "libprivatedata-tvOS.a";
1058-
remoteRef = 62EDFB572019B8C000C0628D /* PBXContainerItemProxy */;
1059-
sourceTree = BUILT_PRODUCTS_DIR;
1060-
};
10611031
78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = {
10621032
isa = PBXReferenceProxy;
10631033
fileType = archive.ar;
@@ -1192,7 +1162,6 @@
11921162
DEAD_CODE_STRIPPING = NO;
11931163
DEVELOPMENT_TEAM = 8X2A38Q9VD;
11941164
HEADER_SEARCH_PATHS = (
1195-
"$(inherited)",
11961165
"$(SRCROOT)/../node_modules/jpush-react-native/ios/RCTJPushModule/",
11971166
"$(SRCROOT)/../node_modules/jcore-react-native/ios/RCTJCoreModule",
11981167
);
@@ -1203,9 +1172,9 @@
12031172
"-ObjC",
12041173
"-lc++",
12051174
);
1206-
PRODUCT_BUNDLE_IDENTIFIER = io.jiguang.hxhg;
1175+
PRODUCT_BUNDLE_IDENTIFIER = com.jmessage.sdk;
12071176
PRODUCT_NAME = PushDemo;
1208-
PROVISIONING_PROFILE_SPECIFIER = JIGUANGSDK;
1177+
PROVISIONING_PROFILE_SPECIFIER = "com.jmessage.sdk-dev";
12091178
VERSIONING_SYSTEM = "apple-generic";
12101179
};
12111180
name = Debug;
@@ -1219,7 +1188,6 @@
12191188
CURRENT_PROJECT_VERSION = 1;
12201189
DEVELOPMENT_TEAM = 8X2A38Q9VD;
12211190
HEADER_SEARCH_PATHS = (
1222-
"$(inherited)",
12231191
"$(SRCROOT)/../node_modules/jpush-react-native/ios/RCTJPushModule/",
12241192
"$(SRCROOT)/../node_modules/jcore-react-native/ios/RCTJCoreModule",
12251193
);
@@ -1230,9 +1198,9 @@
12301198
"-ObjC",
12311199
"-lc++",
12321200
);
1233-
PRODUCT_BUNDLE_IDENTIFIER = io.jiguang.hxhg;
1201+
PRODUCT_BUNDLE_IDENTIFIER = com.jmessage.sdk;
12341202
PRODUCT_NAME = PushDemo;
1235-
PROVISIONING_PROFILE_SPECIFIER = JIGUANGSDK;
1203+
PROVISIONING_PROFILE_SPECIFIER = "com.jmessage.sdk-dev";
12361204
VERSIONING_SYSTEM = "apple-generic";
12371205
};
12381206
name = Release;
@@ -1246,7 +1214,10 @@
12461214
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
12471215
CLANG_WARN_INFINITE_RECURSION = YES;
12481216
CLANG_WARN_SUSPICIOUS_MOVE = YES;
1217+
CODE_SIGN_IDENTITY = "iPhone Developer";
1218+
CODE_SIGN_STYLE = Automatic;
12491219
DEBUG_INFORMATION_FORMAT = dwarf;
1220+
DEVELOPMENT_TEAM = "";
12501221
ENABLE_TESTABILITY = YES;
12511222
GCC_NO_COMMON_BLOCKS = YES;
12521223
HEADER_SEARCH_PATHS = (
@@ -1267,6 +1238,7 @@
12671238
);
12681239
PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.PushDemo-tvOS";
12691240
PRODUCT_NAME = "$(TARGET_NAME)";
1241+
PROVISIONING_PROFILE_SPECIFIER = "";
12701242
SDKROOT = appletvos;
12711243
TARGETED_DEVICE_FAMILY = 3;
12721244
TVOS_DEPLOYMENT_TARGET = 9.2;
@@ -1282,8 +1254,11 @@
12821254
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
12831255
CLANG_WARN_INFINITE_RECURSION = YES;
12841256
CLANG_WARN_SUSPICIOUS_MOVE = YES;
1257+
CODE_SIGN_IDENTITY = "iPhone Developer";
1258+
CODE_SIGN_STYLE = Automatic;
12851259
COPY_PHASE_STRIP = NO;
12861260
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
1261+
DEVELOPMENT_TEAM = "";
12871262
GCC_NO_COMMON_BLOCKS = YES;
12881263
HEADER_SEARCH_PATHS = (
12891264
"$(inherited)",
@@ -1303,6 +1278,7 @@
13031278
);
13041279
PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.PushDemo-tvOS";
13051280
PRODUCT_NAME = "$(TARGET_NAME)";
1281+
PROVISIONING_PROFILE_SPECIFIER = "";
13061282
SDKROOT = appletvos;
13071283
TARGETED_DEVICE_FAMILY = 3;
13081284
TVOS_DEPLOYMENT_TARGET = 9.2;

example/ios/PushDemo/AppDelegate.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
3939
// ReactNative环境配置
4040
NSURL *jsCodeLocation = [NSURL URLWithString:@"http://10.224.36.16:8081/index.bundle?platform=ios&dev=true"];
4141
RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
42-
moduleName:@"ReactNative-JPush"
42+
moduleName:@"JPush-RN"
4343
initialProperties:nil
4444
launchOptions:launchOptions];
4545
rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];

example/ios/PushDemo/Info.plist

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@
3131
</dict>
3232
<key>NSLocationWhenInUseUsageDescription</key>
3333
<string></string>
34-
<key>UIBackgroundModes</key>
35-
<array>
36-
<string>remote-notification</string>
37-
</array>
3834
<key>UILaunchStoryboardName</key>
3935
<string>LaunchScreen</string>
4036
<key>UIRequiredDeviceCapabilities</key>

0 commit comments

Comments
 (0)