Skip to content

Commit

Permalink
app 1.0.0 完成
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongjie-chen committed Apr 10, 2016
1 parent 932290b commit 8e3dbb4
Show file tree
Hide file tree
Showing 18 changed files with 270 additions and 158 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -32,3 +32,5 @@ local.properties
#
node_modules/
npm-debug.log

*.jks
9 changes: 9 additions & 0 deletions android/app/build.gradle
Expand Up @@ -90,6 +90,14 @@ android {
abiFilters "armeabi-v7a", "x86"
}
}
signingConfigs {
release {
storeFile file(MYAPP_RELEASE_STORE_FILE)
storePassword MYAPP_RELEASE_STORE_PASSWORD
keyAlias MYAPP_RELEASE_KEY_ALIAS
keyPassword MYAPP_RELEASE_KEY_PASSWORD
}
}
splits {
abi {
reset()
Expand All @@ -102,6 +110,7 @@ android {
release {
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
signingConfig signingConfigs.release
}
}
// applicationVariants are e.g. debug, release
Expand Down
Binary file modified android/app/src/main/res/mipmap-hdpi/ic_launcher.png
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/mipmap-mdpi/ic_launcher.png
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/mipmap-xhdpi/ic_launcher.png
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/mipmap-xxhdpi/ic_launcher.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion android/app/src/main/res/values/strings.xml
@@ -1,3 +1,3 @@
<resources>
<string name="app_name">rn_rank</string>
<string name="app_name">干货分享</string>
</resources>
4 changes: 4 additions & 0 deletions android/gradle.properties
Expand Up @@ -18,3 +18,7 @@
# org.gradle.parallel=true

android.useDeprecatedNdk=true
MYAPP_RELEASE_STORE_FILE=key.jks
MYAPP_RELEASE_KEY_ALIAS=key_alias
MYAPP_RELEASE_STORE_PASSWORD=123456
MYAPP_RELEASE_KEY_PASSWORD=123456
3 changes: 2 additions & 1 deletion app/actions/beauty.js
@@ -1,8 +1,9 @@
import * as types from '../constants/ActionTypes';

export function fetchBeauty(index = 1) {
let page = Math.floor(Math.random()*19+1)
return dispatch => {
let URL = `http://gank.io/api/random/data/福利/20`;
let URL = `http://gank.io/api/data/福利/12/${page}`;
console.log(URL);
fetch(URL).then(response => response.json())
.then(responseData => {
Expand Down
96 changes: 96 additions & 0 deletions app/containers/AboutCmp.js
@@ -0,0 +1,96 @@
import React, {
View,
Text,
Image,
WebView,
ScrollView,
TouchableOpacity,
TouchableHighlight,
ProgressBarAndroid,
Linking,
Dimensions,
StyleSheet,
Animated,
Easing,
} from 'react-native';


class AboutCmp extends React.Component {

constructor(props) {
super(props);
const {navigator} = this.props;
}



_onBackClick(navigator){

if(navigator) {
navigator.pop();
}
}


_onLinkClick(url){
Linking.openURL(url).catch(err => console.error('An error occurred', err));
}


render() {
const {navigator} = this.props;
return (
<View style={{flex :1}}>
<View style = {styles.headerBar}>
<TouchableHighlight underlayColor="rgba(34, 26, 38, 0.1)" onPress={()=>this._onBackClick(navigator)}>
<Image style = {styles.iconImage} source = {require('../../images/icon_back.png')}></Image>
</TouchableHighlight>
<Text style = {styles.headerText}>关于</Text>
</View>
<Image style={{alignSelf:'center',margin:40}} source = {require('../../images/ic_app.png')}></Image>
<Text style={{alignSelf:'center',marginTop:-38,color:'#9c9c9c'}}>干货分享1.0.0</Text>
<Text style={{alignSelf:'center',fontSize:18,margin:6}}>每日提供技术干货的App。</Text>
<Text style={{alignSelf:'center',fontSize:14,margin:6}}>本App中所有数据均来自
<Text onPress={()=>this._onLinkClick('http://gank.io')}
style={{color:'#9c9c9c',fontSize:14,margin:6}}>@干货集中营。</Text>
</Text>
<Text style={{alignSelf:'center',fontSize:14,margin:6}} >作者:陈忠杰 杭州 328197444</Text>
<Text style={{alignSelf:'center',fontSize:14,margin:6,color:'blue',}} onPress={()=>this._onLinkClick('mailto:czjchn@163.com')} >e-mail:czjchn@163.com</Text>
<Text style={{alignSelf:'center',fontSize:14,color:'blue',margin:6}} onPress={()=>this._onLinkClick('https://github.com/zhongjie-chen')} >
@Github</Text>
<Text style={{alignSelf:'center',fontSize:14,color:'blue',margin:6}} onPress={()=>this._onLinkClick('https://github.com/zhongjie-chen/rn_rank')} >
@该项目开源地址</Text>
<Text style={{alignSelf:'center',fontSize:14,margin:6}} >感谢
<Text onPress={()=>this._onLinkClick('https://github.com/facebook/react-native')}
style={{color:'#9c9c9c',fontSize:14,margin:6}}>@React-native</Text>
<Text onPress={()=>this._onLinkClick('http://toutiao.io/')}
style={{color:'#9c9c9c',fontSize:14,margin:6}}>@开发者头条</Text>
<Text onPress={()=>this._onLinkClick('https://github.com/attentiveness/reading')}
style={{color:'#9c9c9c',fontSize:14,margin:6}}>@reading</Text>


</Text>
</View>
);
}
}
let {height, width} = Dimensions.get('window');
const styles = StyleSheet.create({
iconImage: {
height: 30,
margin: 4,
width: 30
},
headerBar: {
backgroundColor: '#27B5EE',
flexDirection: 'row',
alignItems: 'center',
padding: 10
},
headerText: {
fontSize: 22,
color: 'white',
marginLeft: 10
}
});
export { AboutCmp as default}
121 changes: 0 additions & 121 deletions app/containers/AutoResponisve.js

This file was deleted.

0 comments on commit 8e3dbb4

Please sign in to comment.