Skip to content

Commit

Permalink
publish v1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
crazycodeboy committed Nov 5, 2016
1 parent 4909c78 commit 123680e
Show file tree
Hide file tree
Showing 28 changed files with 61 additions and 200 deletions.
Binary file modified android/app/src/main/res/drawable-xhdpi/launch_screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/drawable-xxhdpi/launch_screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 11 additions & 5 deletions ios/GitHubPopular.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@
83CBB9F71A601CBA00E9B192 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 730;
LastUpgradeCheck = 0800;
ORGANIZATIONNAME = Facebook;
TargetAttributes = {
00E356ED1AD99517003FC87E = {
Expand Down Expand Up @@ -656,7 +656,7 @@
"-ObjC",
"-lc++",
);
PRODUCT_BUNDLE_IDENTIFIER = com.jph.GitHubPopular;
PRODUCT_BUNDLE_IDENTIFIER = com.jph.rn.GitHubPopular;
PRODUCT_NAME = GitHubPopular;
};
name = Debug;
Expand Down Expand Up @@ -684,7 +684,7 @@
"-ObjC",
"-lc++",
);
PRODUCT_BUNDLE_IDENTIFIER = com.jph.GitHubPopular;
PRODUCT_BUNDLE_IDENTIFIER = com.jph.rn.GitHubPopular;
PRODUCT_NAME = GitHubPopular;
};
name = Release;
Expand All @@ -702,8 +702,10 @@
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
Expand All @@ -712,6 +714,7 @@
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
Expand All @@ -736,7 +739,7 @@
"$(SRCROOT)/../node_modules/react-native-splash-screen/ios/SplashScreen",
"$(SRCROOT)/../node_modules/react-native-splash-screen/ios",
);
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand All @@ -756,15 +759,18 @@
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = YES;
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
Expand All @@ -783,7 +789,7 @@
"$(SRCROOT)/../node_modules/react-native-splash-screen/ios/SplashScreen",
"$(SRCROOT)/../node_modules/react-native-splash-screen/ios",
);
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0620"
LastUpgradeVersion = "0800"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down Expand Up @@ -37,10 +37,10 @@
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
Expand All @@ -62,15 +62,18 @@
ReferencedContainer = "container:GitHubPopular.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
Expand All @@ -86,10 +89,10 @@
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
{
"images" : [
{
"orientation" : "portrait",
"idiom" : "iphone",
"extent" : "full-screen",
"scale" : "1x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"filename" : "LaunchScreen640x960-1.png",
"extent" : "full-screen",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"filename" : "LaunchScreen640 × 1136-1.png",
"extent" : "full-screen",
"subtype" : "retina4",
"scale" : "2x"
},
{
"extent" : "full-screen",
"idiom" : "iphone",
Expand All @@ -21,15 +42,15 @@
"extent" : "full-screen",
"idiom" : "iphone",
"subtype" : "667h",
"filename" : "LaunchScreen750x1334-1.png",
"filename" : "LaunchScreen750x1334.png",
"minimum-system-version" : "8.0",
"orientation" : "portrait",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"filename" : "LaunchScreen_640_960.png",
"filename" : "LaunchScreen640x960.png",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "2x"
Expand All @@ -38,31 +59,10 @@
"extent" : "full-screen",
"idiom" : "iphone",
"subtype" : "retina4",
"filename" : "LaunchScreen-1.png",
"filename" : "LaunchScreen640 × 1136.png",
"minimum-system-version" : "7.0",
"orientation" : "portrait",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"extent" : "full-screen",
"scale" : "1x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"filename" : "LaunchScreen_640_960-1.png",
"extent" : "full-screen",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"filename" : "LaunchScreen-2.png",
"extent" : "full-screen",
"subtype" : "retina4",
"scale" : "2x"
}
],
"info" : {
Expand Down
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
4 changes: 3 additions & 1 deletion ios/GitHubPopular/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<string>zh_CN</string>
<key>CFBundleDisplayName</key>
<string>GitHub Popular</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
Expand Down
12 changes: 7 additions & 5 deletions js/common/NavigationBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const StatusBarShape = {
export default class NavigationBar extends Component {
static propTypes = {
style: View.propTypes.style,
titleLayoutStyle:View.propTypes.style,
navigator: PropTypes.object,
leftButtonTitle: PropTypes.string,
popEnabled: PropTypes.bool,
Expand Down Expand Up @@ -107,17 +108,17 @@ export default class NavigationBar extends Component {
render() {
let statusBar = !this.props.statusBar.hidden ?
<View style={styles.statusBar}>
<StatusBar {...this.props.statusBar} style={styles.statusBar}/>
<StatusBar {...this.props.statusBar} barStyle="light-content" style={styles.statusBar}/>
</View>: null;

let titleView = this.props.titleView ? this.props.titleView :
<Text style={styles.title}>{this.props.title}</Text>;
<Text style={styles.title} ellipsizeMode="head" numberOfLines={1} >{this.props.title}</Text>;

let content = this.props.hide ? null :
<View style={styles.navBar}>
{/*{this.leftView()}*/}
{this.getButtonElement(this.props.leftButton)}
<View style={styles.navBarTitleContainer}>
<View style={[styles.navBarTitleContainer,this.props.titleLayoutStyle]}>
{titleView}
</View>
{/*{this.rightView()}*/}
Expand Down Expand Up @@ -183,9 +184,9 @@ const styles = StyleSheet.create({
alignItems: 'center',
justifyContent: 'center',
position: 'absolute',
left: 60,
left: 40,
top: 0,
right: 60,
right: 40,
bottom: 0,
},
title: {
Expand All @@ -198,5 +199,6 @@ const styles = StyleSheet.create({
},
statusBar: {
height: Platform.OS === 'ios' ? STATUS_BAR_HEIGHT:0,

},
})
2 changes: 1 addition & 1 deletion js/expand/dao/DataRepository.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import {
AsyncStorage,
} from 'react-native';
import Trending from "../../expand/trending/GitHubTrending";
import Trending from "GitHubTrending";
export var FLAG_STORAGE = {flag_popular: 'popular', flag_trending: 'trending'}

export default class DataRepository {
Expand Down
2 changes: 1 addition & 1 deletion js/expand/dao/RepositoryUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
AsyncStorage,
} from 'react-native';
import config from '../../../res/data/Config.json'
const URL = 'http://cboy.me/io/GitHubPopular/json/Config.json';
const URL = 'http://www.devio.org/io/GitHubPopular/json/Config.json';
var repositoryUtils;
export default class RepositoryUtils {
constructor(isInit) {
Expand Down
34 changes: 0 additions & 34 deletions js/expand/trending/GitHubTrending.js

This file was deleted.

18 changes: 0 additions & 18 deletions js/expand/trending/StringUtil.js

This file was deleted.

17 changes: 0 additions & 17 deletions js/expand/trending/TrendingRepoModel.js

This file was deleted.

Loading

0 comments on commit 123680e

Please sign in to comment.