Skip to content

Commit 2f2ea76

Browse files
committed
rm some comment
1 parent a381808 commit 2f2ea76

File tree

9 files changed

+76
-46
lines changed

9 files changed

+76
-46
lines changed

index.ios.js

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,12 @@
11
'use strict';
22

3-
// var React = require('react-native');
3+
44
import React from 'react';
55
import ReactNative from 'react-native';
6-
// var ToastAndroid = require('ToastAndroid');
6+
77
var PushActivity = require('./react-native-ios/push_activity.js');
88
var SetActivity = require('./react-native-ios/set_activity');
99
var LocalPushActivity = require('./react-native-ios/localPush_activity');
10-
// var WebActivity = require('./react-native-iOS/web_activity');
11-
// var {
12-
// Text,
13-
// TextInput,
14-
// View,
15-
// Navigator,
16-
// BackAndroid,
17-
// NativeModules
18-
// } = React;
1910

2011
var {
2112
Text,

ios-demo/PushDemo.xcodeproj/project.pbxproj

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@
133133
13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = PushDemo/Info.plist; sourceTree = "<group>"; };
134134
13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = PushDemo/main.m; sourceTree = "<group>"; };
135135
146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = "<group>"; };
136+
6228B0721DA8D09D00862BA3 /* PushDemo.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; name = PushDemo.entitlements; path = PushDemo/PushDemo.entitlements; sourceTree = "<group>"; };
136137
78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = "<group>"; };
137138
832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = "<group>"; };
138139
B1925385AB2543288721BE4D /* RCTJPushModule.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RCTJPushModule.xcodeproj; path = "../node_modules/jpush-react-native/ios/RCTJPushModule/RCTJPushModule.xcodeproj"; sourceTree = "<group>"; };
@@ -245,6 +246,7 @@
245246
13B07FAE1A68108700A75B9A /* PushDemo */ = {
246247
isa = PBXGroup;
247248
children = (
249+
6228B0721DA8D09D00862BA3 /* PushDemo.entitlements */,
248250
008F07F21AC5B25A0029DE68 /* main.jsbundle */,
249251
13B07FAF1A68108700A75B9A /* AppDelegate.h */,
250252
13B07FB01A68108700A75B9A /* AppDelegate.m */,
@@ -382,6 +384,11 @@
382384
};
383385
13B07F861A680F5B00A75B9A = {
384386
DevelopmentTeam = RL64Y54S9V;
387+
SystemCapabilities = {
388+
com.apple.Push = {
389+
enabled = 1;
390+
};
391+
};
385392
};
386393
};
387394
};
@@ -650,6 +657,7 @@
650657
isa = XCBuildConfiguration;
651658
buildSettings = {
652659
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
660+
CODE_SIGN_ENTITLEMENTS = PushDemo/PushDemo.entitlements;
653661
CURRENT_PROJECT_VERSION = 1;
654662
DEAD_CODE_STRIPPING = NO;
655663
DEVELOPMENT_TEAM = RL64Y54S9V;
@@ -685,6 +693,7 @@
685693
"-ObjC",
686694
"-lc++",
687695
);
696+
PRODUCT_BUNDLE_IDENTIFIER = com.example.huminios.jpushTest;
688697
PRODUCT_NAME = PushDemo;
689698
VERSIONING_SYSTEM = "apple-generic";
690699
};
@@ -694,6 +703,7 @@
694703
isa = XCBuildConfiguration;
695704
buildSettings = {
696705
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
706+
CODE_SIGN_ENTITLEMENTS = PushDemo/PushDemo.entitlements;
697707
CURRENT_PROJECT_VERSION = 1;
698708
DEVELOPMENT_TEAM = RL64Y54S9V;
699709
HEADER_SEARCH_PATHS = (
@@ -728,6 +738,7 @@
728738
"-ObjC",
729739
"-lc++",
730740
);
741+
PRODUCT_BUNDLE_IDENTIFIER = com.example.huminios.jpushTest;
731742
PRODUCT_NAME = PushDemo;
732743
VERSIONING_SYSTEM = "apple-generic";
733744
};
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Bucket
3+
type = "1"
4+
version = "2.0">
5+
<Breakpoints>
6+
<BreakpointProxy
7+
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
8+
<BreakpointContent
9+
shouldBeEnabled = "Yes"
10+
ignoreCount = "0"
11+
continueAfterRunningActions = "No"
12+
filePath = "../node_modules/jpush-react-native/ios/RCTJPushModule/RCTJPushModule/RCTJPushModule.m"
13+
timestampString = "497602371.58849"
14+
startingColumnNumber = "9223372036854775807"
15+
endingColumnNumber = "9223372036854775807"
16+
startingLineNumber = "439"
17+
endingLineNumber = "439"
18+
landmarkName = "RCT_EXPORT_METHOD()"
19+
landmarkType = "9">
20+
</BreakpointContent>
21+
</BreakpointProxy>
22+
<BreakpointProxy
23+
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
24+
<BreakpointContent
25+
shouldBeEnabled = "Yes"
26+
ignoreCount = "0"
27+
continueAfterRunningActions = "No"
28+
filePath = "PushDemo/AppDelegate.m"
29+
timestampString = "497602709.20329"
30+
startingColumnNumber = "9223372036854775807"
31+
endingColumnNumber = "9223372036854775807"
32+
startingLineNumber = "64"
33+
endingLineNumber = "64"
34+
landmarkName = "-application:didRegisterForRemoteNotificationsWithDeviceToken:"
35+
landmarkType = "7">
36+
</BreakpointContent>
37+
</BreakpointProxy>
38+
</Breakpoints>
39+
</Bucket>

ios-demo/PushDemo/Info.plist

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<key>CFBundleExecutable</key>
88
<string>$(EXECUTABLE_NAME)</string>
99
<key>CFBundleIdentifier</key>
10-
<string>org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)</string>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
1111
<key>CFBundleInfoDictionaryVersion</key>
1212
<string>6.0</string>
1313
<key>CFBundleName</key>
@@ -22,6 +22,19 @@
2222
<string>1</string>
2323
<key>LSRequiresIPhoneOS</key>
2424
<true/>
25+
<key>NSAppTransportSecurity</key>
26+
<dict>
27+
<key>NSExceptionDomains</key>
28+
<dict>
29+
<key>localhost</key>
30+
<dict>
31+
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
32+
<true/>
33+
</dict>
34+
</dict>
35+
</dict>
36+
<key>NSLocationWhenInUseUsageDescription</key>
37+
<string></string>
2538
<key>UILaunchStoryboardName</key>
2639
<string>LaunchScreen</string>
2740
<key>UIRequiredDeviceCapabilities</key>
@@ -36,19 +49,5 @@
3649
</array>
3750
<key>UIViewControllerBasedStatusBarAppearance</key>
3851
<false/>
39-
<key>NSLocationWhenInUseUsageDescription</key>
40-
<string></string>
41-
<key>NSAppTransportSecurity</key>
42-
<!--See http://ste.vn/2015/06/10/configuring-app-transport-security-ios-9-osx-10-11/ -->
43-
<dict>
44-
<key>NSExceptionDomains</key>
45-
<dict>
46-
<key>localhost</key>
47-
<dict>
48-
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
49-
<true/>
50-
</dict>
51-
</dict>
52-
</dict>
5352
</dict>
5453
</plist>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>aps-environment</key>
6+
<string>development</string>
7+
</dict>
8+
</plist>

react-native-iOS/localPush_activity.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
'use strict'
22

3-
// var React = require('react-native');
43
import React from 'react';
54
import ReactNative from 'react-native';
5+
66
var PushActivity = require('./push_activity');
77
const {
88
Text,

react-native-iOS/push_activity.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,7 @@
11
'use strict';
22

3-
// var React = require('react-native');
43
import React from 'react';
54
import ReactNative from 'react-native';
6-
// var {
7-
// Text,
8-
// View,
9-
// TextInput,
10-
// TouchableHighlight,
11-
// PropTypes,
12-
// requireNativeComponent,
13-
// NativeModules,
14-
// ScrollView,
15-
// DeviceEventEmitter,
16-
// NativeAppEventEmitter
17-
// } = React;
185

196
const {
207
Text,

react-native-iOS/web_activity.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
'use strict'
22

3-
// var React = require('react-native');
43
import React from 'react';
54
import ReactNative from 'react-native';
65
var PushActivity = require('./push_activity');
7-
// var {
8-
// View,
9-
// TouchableHighlight,
10-
// Text
11-
// } = React;
6+
127
const {
138
View,
149
TouchableHighlight,

0 commit comments

Comments
 (0)