Skip to content

Commit 123680e

Browse files
committed
publish v1.0.3
1 parent 4909c78 commit 123680e

28 files changed

+61
-200
lines changed
Loading
Loading

ios/GitHubPopular.xcodeproj/project.pbxproj

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@
367367
83CBB9F71A601CBA00E9B192 /* Project object */ = {
368368
isa = PBXProject;
369369
attributes = {
370-
LastUpgradeCheck = 730;
370+
LastUpgradeCheck = 0800;
371371
ORGANIZATIONNAME = Facebook;
372372
TargetAttributes = {
373373
00E356ED1AD99517003FC87E = {
@@ -656,7 +656,7 @@
656656
"-ObjC",
657657
"-lc++",
658658
);
659-
PRODUCT_BUNDLE_IDENTIFIER = com.jph.GitHubPopular;
659+
PRODUCT_BUNDLE_IDENTIFIER = com.jph.rn.GitHubPopular;
660660
PRODUCT_NAME = GitHubPopular;
661661
};
662662
name = Debug;
@@ -684,7 +684,7 @@
684684
"-ObjC",
685685
"-lc++",
686686
);
687-
PRODUCT_BUNDLE_IDENTIFIER = com.jph.GitHubPopular;
687+
PRODUCT_BUNDLE_IDENTIFIER = com.jph.rn.GitHubPopular;
688688
PRODUCT_NAME = GitHubPopular;
689689
};
690690
name = Release;
@@ -702,8 +702,10 @@
702702
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
703703
CLANG_WARN_EMPTY_BODY = YES;
704704
CLANG_WARN_ENUM_CONVERSION = YES;
705+
CLANG_WARN_INFINITE_RECURSION = YES;
705706
CLANG_WARN_INT_CONVERSION = YES;
706707
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
708+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
707709
CLANG_WARN_UNREACHABLE_CODE = YES;
708710
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
709711
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
@@ -712,6 +714,7 @@
712714
ENABLE_TESTABILITY = YES;
713715
GCC_C_LANGUAGE_STANDARD = gnu99;
714716
GCC_DYNAMIC_NO_PIC = NO;
717+
GCC_NO_COMMON_BLOCKS = YES;
715718
GCC_OPTIMIZATION_LEVEL = 0;
716719
GCC_PREPROCESSOR_DEFINITIONS = (
717720
"DEBUG=1",
@@ -736,7 +739,7 @@
736739
"$(SRCROOT)/../node_modules/react-native-splash-screen/ios/SplashScreen",
737740
"$(SRCROOT)/../node_modules/react-native-splash-screen/ios",
738741
);
739-
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
742+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
740743
MTL_ENABLE_DEBUG_INFO = YES;
741744
ONLY_ACTIVE_ARCH = YES;
742745
SDKROOT = iphoneos;
@@ -756,15 +759,18 @@
756759
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
757760
CLANG_WARN_EMPTY_BODY = YES;
758761
CLANG_WARN_ENUM_CONVERSION = YES;
762+
CLANG_WARN_INFINITE_RECURSION = YES;
759763
CLANG_WARN_INT_CONVERSION = YES;
760764
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
765+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
761766
CLANG_WARN_UNREACHABLE_CODE = YES;
762767
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
763768
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
764769
COPY_PHASE_STRIP = YES;
765770
ENABLE_NS_ASSERTIONS = NO;
766771
ENABLE_STRICT_OBJC_MSGSEND = YES;
767772
GCC_C_LANGUAGE_STANDARD = gnu99;
773+
GCC_NO_COMMON_BLOCKS = YES;
768774
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
769775
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
770776
GCC_WARN_UNDECLARED_SELECTOR = YES;
@@ -783,7 +789,7 @@
783789
"$(SRCROOT)/../node_modules/react-native-splash-screen/ios/SplashScreen",
784790
"$(SRCROOT)/../node_modules/react-native-splash-screen/ios",
785791
);
786-
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
792+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
787793
MTL_ENABLE_DEBUG_INFO = NO;
788794
SDKROOT = iphoneos;
789795
VALIDATE_PRODUCT = YES;

ios/GitHubPopular.xcodeproj/xcshareddata/xcschemes/GitHubPopular.xcscheme

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0620"
3+
LastUpgradeVersion = "0800"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -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:GitHubPopular.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/GitHubPopular/Images.xcassets/LaunchImage.launchimage/Contents.json

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
{
22
"images" : [
3+
{
4+
"orientation" : "portrait",
5+
"idiom" : "iphone",
6+
"extent" : "full-screen",
7+
"scale" : "1x"
8+
},
9+
{
10+
"orientation" : "portrait",
11+
"idiom" : "iphone",
12+
"filename" : "LaunchScreen640x960-1.png",
13+
"extent" : "full-screen",
14+
"scale" : "2x"
15+
},
16+
{
17+
"orientation" : "portrait",
18+
"idiom" : "iphone",
19+
"filename" : "LaunchScreen640 × 1136-1.png",
20+
"extent" : "full-screen",
21+
"subtype" : "retina4",
22+
"scale" : "2x"
23+
},
324
{
425
"extent" : "full-screen",
526
"idiom" : "iphone",
@@ -21,15 +42,15 @@
2142
"extent" : "full-screen",
2243
"idiom" : "iphone",
2344
"subtype" : "667h",
24-
"filename" : "LaunchScreen750x1334-1.png",
45+
"filename" : "LaunchScreen750x1334.png",
2546
"minimum-system-version" : "8.0",
2647
"orientation" : "portrait",
2748
"scale" : "2x"
2849
},
2950
{
3051
"orientation" : "portrait",
3152
"idiom" : "iphone",
32-
"filename" : "LaunchScreen_640_960.png",
53+
"filename" : "LaunchScreen640x960.png",
3354
"extent" : "full-screen",
3455
"minimum-system-version" : "7.0",
3556
"scale" : "2x"
@@ -38,31 +59,10 @@
3859
"extent" : "full-screen",
3960
"idiom" : "iphone",
4061
"subtype" : "retina4",
41-
"filename" : "LaunchScreen-1.png",
62+
"filename" : "LaunchScreen640 × 1136.png",
4263
"minimum-system-version" : "7.0",
4364
"orientation" : "portrait",
4465
"scale" : "2x"
45-
},
46-
{
47-
"orientation" : "portrait",
48-
"idiom" : "iphone",
49-
"extent" : "full-screen",
50-
"scale" : "1x"
51-
},
52-
{
53-
"orientation" : "portrait",
54-
"idiom" : "iphone",
55-
"filename" : "LaunchScreen_640_960-1.png",
56-
"extent" : "full-screen",
57-
"scale" : "2x"
58-
},
59-
{
60-
"orientation" : "portrait",
61-
"idiom" : "iphone",
62-
"filename" : "LaunchScreen-2.png",
63-
"extent" : "full-screen",
64-
"subtype" : "retina4",
65-
"scale" : "2x"
6666
}
6767
],
6868
"info" : {
Binary file not shown.
Binary file not shown.
Loading
Loading
Loading
Loading
Loading
Loading
Binary file not shown.

ios/GitHubPopular/Info.plist

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
<plist version="1.0">
44
<dict>
55
<key>CFBundleDevelopmentRegion</key>
6-
<string>en</string>
6+
<string>zh_CN</string>
7+
<key>CFBundleDisplayName</key>
8+
<string>GitHub Popular</string>
79
<key>CFBundleExecutable</key>
810
<string>$(EXECUTABLE_NAME)</string>
911
<key>CFBundleIdentifier</key>

js/common/NavigationBar.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const StatusBarShape = {
3737
export default class NavigationBar extends Component {
3838
static propTypes = {
3939
style: View.propTypes.style,
40+
titleLayoutStyle:View.propTypes.style,
4041
navigator: PropTypes.object,
4142
leftButtonTitle: PropTypes.string,
4243
popEnabled: PropTypes.bool,
@@ -107,17 +108,17 @@ export default class NavigationBar extends Component {
107108
render() {
108109
let statusBar = !this.props.statusBar.hidden ?
109110
<View style={styles.statusBar}>
110-
<StatusBar {...this.props.statusBar} style={styles.statusBar}/>
111+
<StatusBar {...this.props.statusBar} barStyle="light-content" style={styles.statusBar}/>
111112
</View>: null;
112113

113114
let titleView = this.props.titleView ? this.props.titleView :
114-
<Text style={styles.title}>{this.props.title}</Text>;
115+
<Text style={styles.title} ellipsizeMode="head" numberOfLines={1} >{this.props.title}</Text>;
115116

116117
let content = this.props.hide ? null :
117118
<View style={styles.navBar}>
118119
{/*{this.leftView()}*/}
119120
{this.getButtonElement(this.props.leftButton)}
120-
<View style={styles.navBarTitleContainer}>
121+
<View style={[styles.navBarTitleContainer,this.props.titleLayoutStyle]}>
121122
{titleView}
122123
</View>
123124
{/*{this.rightView()}*/}
@@ -183,9 +184,9 @@ const styles = StyleSheet.create({
183184
alignItems: 'center',
184185
justifyContent: 'center',
185186
position: 'absolute',
186-
left: 60,
187+
left: 40,
187188
top: 0,
188-
right: 60,
189+
right: 40,
189190
bottom: 0,
190191
},
191192
title: {
@@ -198,5 +199,6 @@ const styles = StyleSheet.create({
198199
},
199200
statusBar: {
200201
height: Platform.OS === 'ios' ? STATUS_BAR_HEIGHT:0,
202+
201203
},
202204
})

js/expand/dao/DataRepository.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import {
1010
AsyncStorage,
1111
} from 'react-native';
12-
import Trending from "../../expand/trending/GitHubTrending";
12+
import Trending from "GitHubTrending";
1313
export var FLAG_STORAGE = {flag_popular: 'popular', flag_trending: 'trending'}
1414

1515
export default class DataRepository {

js/expand/dao/RepositoryUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
AsyncStorage,
1111
} from 'react-native';
1212
import config from '../../../res/data/Config.json'
13-
const URL = 'http://cboy.me/io/GitHubPopular/json/Config.json';
13+
const URL = 'http://www.devio.org/io/GitHubPopular/json/Config.json';
1414
var repositoryUtils;
1515
export default class RepositoryUtils {
1616
constructor(isInit) {

js/expand/trending/GitHubTrending.js

Lines changed: 0 additions & 34 deletions
This file was deleted.

js/expand/trending/StringUtil.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

js/expand/trending/TrendingRepoModel.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)