Skip to content

Commit 9e29e54

Browse files
author
愤怒的晃晃
committed
add iOS app logo resource
1 parent 4ebf512 commit 9e29e54

20 files changed

+296
-39
lines changed

ios/reactNativeCnblogs.xcodeproj/project.pbxproj

Lines changed: 172 additions & 1 deletion
Large diffs are not rendered by default.

ios/reactNativeCnblogs.xcodeproj/xcshareddata/xcschemes/reactNativeCnblogs.xcscheme

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@
3737
</BuildActionEntries>
3838
</BuildAction>
3939
<TestAction
40+
buildConfiguration = "Debug"
4041
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
4142
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
42-
shouldUseLaunchSchemeArgsEnv = "YES"
43-
buildConfiguration = "Debug">
43+
shouldUseLaunchSchemeArgsEnv = "YES">
4444
<Testables>
4545
<TestableReference
4646
skipped = "NO">
@@ -62,15 +62,18 @@
6262
ReferencedContainer = "container:reactNativeCnblogs.xcodeproj">
6363
</BuildableReference>
6464
</MacroExpansion>
65+
<AdditionalOptions>
66+
</AdditionalOptions>
6567
</TestAction>
6668
<LaunchAction
69+
buildConfiguration = "Debug"
6770
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
6871
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
6972
launchStyle = "0"
7073
useCustomWorkingDirectory = "NO"
71-
buildConfiguration = "Debug"
7274
ignoresPersistentStateOnLaunch = "NO"
7375
debugDocumentVersioning = "YES"
76+
debugServiceExtension = "internal"
7477
allowLocationSimulation = "YES">
7578
<BuildableProductRunnable
7679
runnableDebuggingMode = "0">
@@ -86,10 +89,10 @@
8689
</AdditionalOptions>
8790
</LaunchAction>
8891
<ProfileAction
92+
buildConfiguration = "Release"
8993
shouldUseLaunchSchemeArgsEnv = "YES"
9094
savedToolIdentifier = ""
9195
useCustomWorkingDirectory = "NO"
92-
buildConfiguration = "Release"
9396
debugDocumentVersioning = "YES">
9497
<BuildableProductRunnable
9598
runnableDebuggingMode = "0">

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

Lines changed: 72 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,100 @@
11
{
22
"images" : [
33
{
4-
"idiom" : "iphone",
54
"size" : "29x29",
5+
"idiom" : "iphone",
6+
"filename" : "[email protected]",
67
"scale" : "2x"
78
},
89
{
9-
"idiom" : "iphone",
1010
"size" : "29x29",
11+
"idiom" : "iphone",
12+
"filename" : "[email protected]",
1113
"scale" : "3x"
1214
},
1315
{
14-
"idiom" : "iphone",
1516
"size" : "40x40",
17+
"idiom" : "iphone",
18+
"filename" : "[email protected]",
1619
"scale" : "2x"
1720
},
1821
{
19-
"idiom" : "iphone",
2022
"size" : "40x40",
23+
"idiom" : "iphone",
24+
"filename" : "[email protected]",
2125
"scale" : "3x"
2226
},
2327
{
24-
"idiom" : "iphone",
2528
"size" : "60x60",
29+
"idiom" : "iphone",
30+
"filename" : "[email protected]",
2631
"scale" : "2x"
2732
},
2833
{
29-
"idiom" : "iphone",
3034
"size" : "60x60",
35+
"idiom" : "iphone",
36+
"filename" : "[email protected]",
37+
"scale" : "3x"
38+
},
39+
{
40+
"size" : "29x29",
41+
"idiom" : "ipad",
42+
"filename" : "Icon-Small.png",
43+
"scale" : "1x"
44+
},
45+
{
46+
"size" : "40x40",
47+
"idiom" : "ipad",
48+
"filename" : "Icon-40.png",
49+
"scale" : "1x"
50+
},
51+
{
52+
"size" : "40x40",
53+
"idiom" : "ipad",
54+
"filename" : "[email protected]",
55+
"scale" : "2x"
56+
},
57+
{
58+
"size" : "72x72",
59+
"idiom" : "ipad",
60+
"filename" : "Icon-72.png",
61+
"scale" : "1x"
62+
},
63+
{
64+
"size" : "72x72",
65+
"idiom" : "ipad",
66+
"filename" : "[email protected]",
67+
"scale" : "2x"
68+
},
69+
{
70+
"size" : "76x76",
71+
"idiom" : "ipad",
72+
"filename" : "Icon-76.png",
73+
"scale" : "1x"
74+
},
75+
{
76+
"size" : "76x76",
77+
"idiom" : "ipad",
78+
"filename" : "[email protected]",
79+
"scale" : "2x"
80+
},
81+
{
82+
"size" : "29x29",
83+
"idiom" : "watch",
84+
"role" : "companionSettings",
85+
"scale" : "2x"
86+
},
87+
{
88+
"size" : "29x29",
89+
"idiom" : "watch",
90+
"role" : "companionSettings",
3191
"scale" : "3x"
92+
},
93+
{
94+
"size" : "256x256",
95+
"idiom" : "mac",
96+
"filename" : "cnblogs_icon.png",
97+
"scale" : "1x"
3298
}
3399
],
34100
"info" : {
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"version" : 1,
4+
"author" : "xcode"
5+
}
6+
}

ios/reactNativeCnblogs/Info.plist

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
<plist version="1.0">
44
<dict>
55
<key>CFBundleDevelopmentRegion</key>
6-
<string>en</string>
6+
<string>zh_CN</string>
77
<key>CFBundleExecutable</key>
88
<string>$(EXECUTABLE_NAME)</string>
99
<key>CFBundleIdentifier</key>
1010
<string>org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)</string>
1111
<key>CFBundleInfoDictionaryVersion</key>
1212
<string>6.0</string>
1313
<key>CFBundleName</key>
14-
<string>$(PRODUCT_NAME)</string>
14+
<string>博客园</string>
1515
<key>CFBundlePackageType</key>
1616
<string>APPL</string>
1717
<key>CFBundleShortVersionString</key>
@@ -22,6 +22,30 @@
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>
38+
<key>UIAppFonts</key>
39+
<array>
40+
<string>Entypo.ttf</string>
41+
<string>EvilIcons.ttf</string>
42+
<string>FontAwesome.ttf</string>
43+
<string>Foundation.ttf</string>
44+
<string>Ionicons.ttf</string>
45+
<string>MaterialIcons.ttf</string>
46+
<string>Octicons.ttf</string>
47+
<string>Zocial.ttf</string>
48+
</array>
2549
<key>UILaunchStoryboardName</key>
2650
<string>LaunchScreen</string>
2751
<key>UIRequiredDeviceCapabilities</key>
@@ -31,24 +55,8 @@
3155
<key>UISupportedInterfaceOrientations</key>
3256
<array>
3357
<string>UIInterfaceOrientationPortrait</string>
34-
<string>UIInterfaceOrientationLandscapeLeft</string>
35-
<string>UIInterfaceOrientationLandscapeRight</string>
3658
</array>
3759
<key>UIViewControllerBasedStatusBarAppearance</key>
3860
<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>
5361
</dict>
5462
</plist>

source/view/startup.js

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
Image,
66
Modal,
77
NetInfo,
8+
Platform,
89
StyleSheet,
910
BackAndroid,
1011
TouchableOpacity
@@ -178,16 +179,18 @@ class StartupPage extends Component {
178179
}
179180

180181
renderModalFooterCancel(){
181-
return (
182-
<TouchableOpacity
183-
activeOpacity={ StyleConfig.touchable_press_opacity }
184-
style={ CommonStyles.m_t_3 }
185-
onPress={()=>this.onCancelPress() }>
186-
<Text style={ CommonStyles.text_dark }>
187-
放弃
188-
</Text>
189-
</TouchableOpacity>
190-
)
182+
if(Platform.OS === 'android'){
183+
return (
184+
<TouchableOpacity
185+
activeOpacity={ StyleConfig.touchable_press_opacity }
186+
style={ CommonStyles.m_t_3 }
187+
onPress={()=>this.onCancelPress() }>
188+
<Text style={ CommonStyles.text_dark }>
189+
放弃
190+
</Text>
191+
</TouchableOpacity>
192+
)
193+
}
191194
}
192195

193196
renderModalFooter(){

0 commit comments

Comments
 (0)