├── .watchmanconfig
├── img
├── 1dna.jpg
├── 2dna.jpg
├── 3dna.jpg
├── 4dna.jpg
├── 5dna.jpg
└── 6dna.jpg
├── screenshots
├── task.gif
├── user.gif
├── login.gif
├── module.gif
└── multi.gif
├── android
├── app
│ ├── src
│ │ └── main
│ │ │ ├── res
│ │ │ ├── values
│ │ │ │ ├── strings.xml
│ │ │ │ └── styles.xml
│ │ │ ├── mipmap-hdpi
│ │ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ └── mipmap-xxhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ ├── assets
│ │ │ └── fonts
│ │ │ │ ├── Entypo.ttf
│ │ │ │ ├── Zocial.ttf
│ │ │ │ ├── EvilIcons.ttf
│ │ │ │ ├── Ionicons.ttf
│ │ │ │ ├── Octicons.ttf
│ │ │ │ ├── FontAwesome.ttf
│ │ │ │ ├── Foundation.ttf
│ │ │ │ └── MaterialIcons.ttf
│ │ │ ├── AndroidManifest.xml
│ │ │ └── java
│ │ │ └── com
│ │ │ └── gene
│ │ │ └── MainActivity.java
│ ├── BUCK
│ ├── proguard-rules.pro
│ └── build.gradle
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── keystores
│ ├── debug.keystore.properties
│ └── BUCK
├── settings.gradle
├── build.gradle
├── gradle.properties
├── gradlew.bat
└── gradlew
├── ios
├── gene
│ ├── Images.xcassets
│ │ ├── Contents.json
│ │ ├── card.imageset
│ │ │ ├── card.png
│ │ │ └── Contents.json
│ │ ├── gene.imageset
│ │ │ ├── gene.png
│ │ │ └── Contents.json
│ │ └── AppIcon.appiconset
│ │ │ ├── Icon-Small@2x.png
│ │ │ ├── Icon-Small@3x.png
│ │ │ ├── Icon-Small-40@2x.png
│ │ │ ├── Icon-Small-60@2x.png
│ │ │ ├── Icon-Small-60@2x-1.png
│ │ │ ├── Icon-Small-60@3x-1.png
│ │ │ └── Contents.json
│ ├── AppDelegate.h
│ ├── main.m
│ ├── Info.plist
│ ├── AppDelegate.m
│ └── Base.lproj
│ │ └── LaunchScreen.xib
├── geneTests
│ ├── Info.plist
│ └── geneTests.m
└── gene.xcodeproj
│ ├── xcshareddata
│ └── xcschemes
│ │ └── gene.xcscheme
│ └── project.pbxproj
├── .buckconfig
├── package.json
├── .gitignore
├── readme.md
├── view
├── network.js
├── report.js
├── utils.js
├── item.js
├── task.js
├── module.js
├── login.js
├── config.js
├── moduleDetail.js
├── setting.js
└── main.js
├── index.android.js
├── index.ios.js
└── .flowconfig
/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/img/1dna.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fangwei716/gene-task-runner/HEAD/img/1dna.jpg
--------------------------------------------------------------------------------
/img/2dna.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fangwei716/gene-task-runner/HEAD/img/2dna.jpg
--------------------------------------------------------------------------------
/img/3dna.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fangwei716/gene-task-runner/HEAD/img/3dna.jpg
--------------------------------------------------------------------------------
/img/4dna.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fangwei716/gene-task-runner/HEAD/img/4dna.jpg
--------------------------------------------------------------------------------
/img/5dna.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fangwei716/gene-task-runner/HEAD/img/5dna.jpg
--------------------------------------------------------------------------------
/img/6dna.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fangwei716/gene-task-runner/HEAD/img/6dna.jpg
--------------------------------------------------------------------------------
/screenshots/task.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fangwei716/gene-task-runner/HEAD/screenshots/task.gif
--------------------------------------------------------------------------------
/screenshots/user.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fangwei716/gene-task-runner/HEAD/screenshots/user.gif
--------------------------------------------------------------------------------
/screenshots/login.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fangwei716/gene-task-runner/HEAD/screenshots/login.gif
--------------------------------------------------------------------------------
/screenshots/module.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fangwei716/gene-task-runner/HEAD/screenshots/module.gif
--------------------------------------------------------------------------------
/screenshots/multi.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fangwei716/gene-task-runner/HEAD/screenshots/multi.gif
--------------------------------------------------------------------------------
/android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | gene
3 |
4 |
--------------------------------------------------------------------------------
/ios/gene/Images.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fangwei716/gene-task-runner/HEAD/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/.buckconfig:
--------------------------------------------------------------------------------
1 |
2 | [android]
3 | target = Google Inc.:Google APIs:23
4 |
5 | [maven_repositories]
6 | central = https://repo1.maven.org/maven2
7 |
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Entypo.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fangwei716/gene-task-runner/HEAD/android/app/src/main/assets/fonts/Entypo.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Zocial.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fangwei716/gene-task-runner/HEAD/android/app/src/main/assets/fonts/Zocial.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/EvilIcons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fangwei716/gene-task-runner/HEAD/android/app/src/main/assets/fonts/EvilIcons.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Ionicons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fangwei716/gene-task-runner/HEAD/android/app/src/main/assets/fonts/Ionicons.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Octicons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fangwei716/gene-task-runner/HEAD/android/app/src/main/assets/fonts/Octicons.ttf
--------------------------------------------------------------------------------
/ios/gene/Images.xcassets/card.imageset/card.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fangwei716/gene-task-runner/HEAD/ios/gene/Images.xcassets/card.imageset/card.png
--------------------------------------------------------------------------------
/ios/gene/Images.xcassets/gene.imageset/gene.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fangwei716/gene-task-runner/HEAD/ios/gene/Images.xcassets/gene.imageset/gene.png
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/FontAwesome.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fangwei716/gene-task-runner/HEAD/android/app/src/main/assets/fonts/FontAwesome.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Foundation.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fangwei716/gene-task-runner/HEAD/android/app/src/main/assets/fonts/Foundation.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/MaterialIcons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fangwei716/gene-task-runner/HEAD/android/app/src/main/assets/fonts/MaterialIcons.ttf
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fangwei716/gene-task-runner/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fangwei716/gene-task-runner/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/keystores/debug.keystore.properties:
--------------------------------------------------------------------------------
1 | key.store=debug.keystore
2 | key.alias=androiddebugkey
3 | key.store.password=android
4 | key.alias.password=android
5 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fangwei716/gene-task-runner/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fangwei716/gene-task-runner/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ios/gene/Images.xcassets/AppIcon.appiconset/Icon-Small@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fangwei716/gene-task-runner/HEAD/ios/gene/Images.xcassets/AppIcon.appiconset/Icon-Small@2x.png
--------------------------------------------------------------------------------
/ios/gene/Images.xcassets/AppIcon.appiconset/Icon-Small@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fangwei716/gene-task-runner/HEAD/ios/gene/Images.xcassets/AppIcon.appiconset/Icon-Small@3x.png
--------------------------------------------------------------------------------
/android/keystores/BUCK:
--------------------------------------------------------------------------------
1 | keystore(
2 | name = 'debug',
3 | store = 'debug.keystore',
4 | properties = 'debug.keystore.properties',
5 | visibility = [
6 | 'PUBLIC',
7 | ],
8 | )
9 |
--------------------------------------------------------------------------------
/ios/gene/Images.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fangwei716/gene-task-runner/HEAD/ios/gene/Images.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png
--------------------------------------------------------------------------------
/ios/gene/Images.xcassets/AppIcon.appiconset/Icon-Small-60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fangwei716/gene-task-runner/HEAD/ios/gene/Images.xcassets/AppIcon.appiconset/Icon-Small-60@2x.png
--------------------------------------------------------------------------------
/ios/gene/Images.xcassets/AppIcon.appiconset/Icon-Small-60@2x-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fangwei716/gene-task-runner/HEAD/ios/gene/Images.xcassets/AppIcon.appiconset/Icon-Small-60@2x-1.png
--------------------------------------------------------------------------------
/ios/gene/Images.xcassets/AppIcon.appiconset/Icon-Small-60@3x-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fangwei716/gene-task-runner/HEAD/ios/gene/Images.xcassets/AppIcon.appiconset/Icon-Small-60@3x-1.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip
6 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'gene'
2 |
3 | include ':app'
4 | include ':react-native-material-kit'
5 | project(':react-native-material-kit').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-material-kit/android')
6 | include ':react-native-vector-icons'
7 | project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')
8 |
--------------------------------------------------------------------------------
/ios/gene/Images.xcassets/card.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x"
10 | },
11 | {
12 | "idiom" : "universal",
13 | "filename" : "card.png",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/ios/gene/Images.xcassets/gene.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "scale" : "1x"
6 | },
7 | {
8 | "idiom" : "universal",
9 | "scale" : "2x"
10 | },
11 | {
12 | "idiom" : "universal",
13 | "filename" : "gene.png",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/ios/gene/AppDelegate.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 |
12 | @interface AppDelegate : UIResponder
13 |
14 | @property (nonatomic, strong) UIWindow *window;
15 |
16 | @end
17 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "gene",
3 | "version": "0.0.1",
4 | "author": "weifang",
5 | "description": "a sequencing analysis tool",
6 | "private": true,
7 | "scripts": {
8 | "start": "node node_modules/react-native/local-cli/cli.js start"
9 | },
10 | "dependencies": {
11 | "react": "^0.14.8",
12 | "react-native": "^0.25.1",
13 | "react-native-material-kit": "^0.3.1",
14 | "react-native-scrollable-tab-view": "^0.4.2",
15 | "react-native-touch-id": "^1.2.4",
16 | "react-native-vector-icons": "^2.0.2"
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/ios/gene/main.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 |
12 | #import "AppDelegate.h"
13 |
14 | int main(int argc, char * argv[]) {
15 | @autoreleasepool {
16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # OSX
2 | #
3 | .DS_Store
4 |
5 | # Xcode
6 | #
7 | build/
8 | *.pbxuser
9 | !default.pbxuser
10 | *.mode1v3
11 | !default.mode1v3
12 | *.mode2v3
13 | !default.mode2v3
14 | *.perspectivev3
15 | !default.perspectivev3
16 | xcuserdata
17 | *.xccheckout
18 | *.moved-aside
19 | DerivedData
20 | *.hmap
21 | *.ipa
22 | *.xcuserstate
23 | project.xcworkspace
24 |
25 | # Android/IJ
26 | #
27 | .idea
28 | .gradle
29 | local.properties
30 |
31 | # node.js
32 | #
33 | node_modules/
34 | npm-debug.log
35 |
36 | # BUCK
37 | buck-out/
38 | \.buckd/
39 | android/app/libs
40 | android/keystores/debug.keystore
41 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:1.3.1'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | mavenLocal()
18 | jcenter()
19 | maven {
20 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
21 | url "$projectDir/../../node_modules/react-native/android"
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/ios/geneTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/readme.md:
--------------------------------------------------------------------------------
1 | # GENE Task Runner
2 |
3 | A complete React Native Example: A Sequencing Analysis Task Runner.
4 |
5 | ## Installation
6 |
7 | Require node.js& xcode
8 |
9 | 1. `$ npm install`
10 |
11 | 2. run ios/gene.xcodeproj
12 |
13 |
14 | ## Views
15 |
16 | ### Log in page
17 |
18 | 
19 |
20 | ### modules
21 |
22 | 
23 |
24 | ### tasks
25 |
26 | 
27 |
28 | ### user
29 |
30 | 
31 |
32 | ### task configurations
33 |
34 | 
--------------------------------------------------------------------------------
/view/network.js:
--------------------------------------------------------------------------------
1 | /**
2 | * network
3 | */
4 | 'use strict'
5 |
6 | import React, { Component } from 'react';
7 | import {
8 | NavigatorIOS,
9 | ScrollView,
10 | StyleSheet,
11 | Text,
12 | TouchableHighlight,
13 | View,
14 | } from 'react-native';
15 | import Util from './utils';
16 |
17 | export default class extends Component{
18 | render() {
19 | return(
20 |
21 |
22 | My network (12)
23 |
24 |
25 | )
26 | }
27 | }
28 |
29 | const styles = StyleSheet.create({
30 | networkContainer:{
31 | width: Util.size.width,
32 | height: Util.size.height - 145,
33 | backgroundColor:'#f5f5f5',
34 | },
35 | network:{
36 | paddingLeft:10,
37 | paddingTop:10,
38 | paddingBottom:70,
39 | },
40 | tabTitle:{
41 | marginBottom:10,
42 | },
43 | })
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
19 |
20 | android.useDeprecatedNdk=true
21 |
--------------------------------------------------------------------------------
/view/report.js:
--------------------------------------------------------------------------------
1 | /**
2 | * My report
3 | * WebView
4 | */
5 | 'use strict'
6 |
7 | import React, { Component } from 'react';
8 | import {
9 | WebView,
10 | StyleSheet,
11 | Text,
12 | View,
13 | } from 'react-native';
14 | import Util from './utils';
15 |
16 | export default class extends Component{
17 | render() {
18 | return(
19 |
20 | My Report
21 |
29 |
30 | )
31 | }
32 | }
33 |
34 | const styles = StyleSheet.create({
35 | reportContainer:{
36 | width: Util.size.width,
37 | height: Util.size.height - 145,
38 | backgroundColor:'#f5f5f5',
39 | },
40 | tabTitle:{
41 | marginBottom:10,
42 | marginLeft: 10,
43 | marginTop: 10,
44 | },
45 | })
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
12 |
13 |
18 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/index.android.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Sample React Native App
3 | * https://github.com/facebook/react-native
4 | */
5 |
6 | import React, { Component } from 'react';
7 | import {
8 | AppRegistry,
9 | StyleSheet,
10 | Text,
11 | View
12 | } from 'react-native';
13 |
14 | class gene extends Component {
15 | render() {
16 | return (
17 |
18 |
19 | Welcome to React Native!
20 |
21 |
22 | To get started, edit index.android.js
23 |
24 |
25 | Shake or press menu button for dev menu
26 |
27 |
28 | );
29 | }
30 | }
31 |
32 | const styles = StyleSheet.create({
33 | container: {
34 | flex: 1,
35 | justifyContent: 'center',
36 | alignItems: 'center',
37 | backgroundColor: '#F5FCFF',
38 | },
39 | welcome: {
40 | fontSize: 20,
41 | textAlign: 'center',
42 | margin: 10,
43 | },
44 | instructions: {
45 | textAlign: 'center',
46 | color: '#333333',
47 | marginBottom: 5,
48 | },
49 | });
50 |
51 | AppRegistry.registerComponent('gene', () => gene);
52 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/gene/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.gene;
2 |
3 | import com.facebook.react.ReactActivity;
4 | import com.oblador.vectoricons.VectorIconsPackage;
5 | import com.github.xinthink.rnmk.ReactMaterialKitPackage;
6 | import com.facebook.react.ReactPackage;
7 | import com.facebook.react.shell.MainReactPackage;
8 |
9 | import java.util.Arrays;
10 | import java.util.List;
11 |
12 | public class MainActivity extends ReactActivity {
13 |
14 | /**
15 | * Returns the name of the main component registered from JavaScript.
16 | * This is used to schedule rendering of the component.
17 | */
18 | @Override
19 | protected String getMainComponentName() {
20 | return "gene";
21 | }
22 |
23 | /**
24 | * Returns whether dev mode should be enabled.
25 | * This enables e.g. the dev menu.
26 | */
27 | @Override
28 | protected boolean getUseDeveloperSupport() {
29 | return BuildConfig.DEBUG;
30 | }
31 |
32 | /**
33 | * A list of packages used by the app. If the app uses additional views
34 | * or modules besides the default ones, add more packages here.
35 | */
36 | @Override
37 | protected List getPackages() {
38 | return Arrays.asList(
39 | new MainReactPackage(),
40 | new VectorIconsPackage(),
41 | new ReactMaterialKitPackage()
42 | );
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/ios/gene/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "size" : "40x40",
20 | "idiom" : "iphone",
21 | "filename" : "Icon-Small-60@2x.png",
22 | "scale" : "3x"
23 | },
24 | {
25 | "size" : "60x60",
26 | "idiom" : "iphone",
27 | "filename" : "Icon-Small-60@2x-1.png",
28 | "scale" : "2x"
29 | },
30 | {
31 | "size" : "60x60",
32 | "idiom" : "iphone",
33 | "filename" : "Icon-Small-60@3x-1.png",
34 | "scale" : "3x"
35 | },
36 | {
37 | "size" : "29x29",
38 | "idiom" : "watch",
39 | "filename" : "Icon-Small@2x.png",
40 | "role" : "companionSettings",
41 | "scale" : "2x"
42 | },
43 | {
44 | "size" : "29x29",
45 | "idiom" : "watch",
46 | "filename" : "Icon-Small@3x.png",
47 | "role" : "companionSettings",
48 | "scale" : "3x"
49 | },
50 | {
51 | "size" : "40x40",
52 | "idiom" : "watch",
53 | "filename" : "Icon-Small-40@2x.png",
54 | "scale" : "2x",
55 | "role" : "appLauncher",
56 | "subtype" : "38mm"
57 | }
58 | ],
59 | "info" : {
60 | "version" : 1,
61 | "author" : "xcode"
62 | }
63 | }
--------------------------------------------------------------------------------
/android/app/BUCK:
--------------------------------------------------------------------------------
1 | import re
2 |
3 | # To learn about Buck see [Docs](https://buckbuild.com/).
4 | # To run your application with Buck:
5 | # - install Buck
6 | # - `npm start` - to start the packager
7 | # - `cd android`
8 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US`
9 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
10 | # - `buck install -r android/app` - compile, install and run application
11 | #
12 |
13 | lib_deps = []
14 | for jarfile in glob(['libs/*.jar']):
15 | name = 'jars__' + re.sub(r'^.*/([^/]+)\.jar$', r'\1', jarfile)
16 | lib_deps.append(':' + name)
17 | prebuilt_jar(
18 | name = name,
19 | binary_jar = jarfile,
20 | )
21 |
22 | for aarfile in glob(['libs/*.aar']):
23 | name = 'aars__' + re.sub(r'^.*/([^/]+)\.aar$', r'\1', aarfile)
24 | lib_deps.append(':' + name)
25 | android_prebuilt_aar(
26 | name = name,
27 | aar = aarfile,
28 | )
29 |
30 | android_library(
31 | name = 'all-libs',
32 | exported_deps = lib_deps
33 | )
34 |
35 | android_library(
36 | name = 'app-code',
37 | srcs = glob([
38 | 'src/main/java/**/*.java',
39 | ]),
40 | deps = [
41 | ':all-libs',
42 | ':build_config',
43 | ':res',
44 | ],
45 | )
46 |
47 | android_build_config(
48 | name = 'build_config',
49 | package = 'com.gene',
50 | )
51 |
52 | android_resource(
53 | name = 'res',
54 | res = 'src/main/res',
55 | package = 'com.gene',
56 | )
57 |
58 | android_binary(
59 | name = 'app',
60 | package_type = 'debug',
61 | manifest = 'src/main/AndroidManifest.xml',
62 | keystore = '//android/keystores:debug',
63 | deps = [
64 | ':app-code',
65 | ],
66 | )
67 |
--------------------------------------------------------------------------------
/view/utils.js:
--------------------------------------------------------------------------------
1 | // obtained from react native tutorials
2 | 'use strict'
3 |
4 | import React from 'react';
5 | import { PixelRatio } from 'react-native';
6 | import Dimensions from 'Dimensions';
7 |
8 | const Util = {
9 | ratio: PixelRatio.get(),
10 | pixel: 1 / PixelRatio.get(),
11 | size: {
12 | width: Dimensions.get('window').width,
13 | height: Dimensions.get('window').height
14 | },
15 | post(url, data, callback) {
16 | const fetchOptions = {
17 | method: 'POST',
18 | headers: {
19 | 'Accept': 'application/json',
20 | 'Content-Type': 'application/json'
21 | },
22 | body: JSON.stringify(data)
23 | };
24 |
25 | fetch(url, fetchOptions)
26 | .then((response) => {
27 | return response.json()
28 | })
29 | .then((responseData) => {
30 | callback(responseData);
31 | })
32 | .catch((error) => {
33 | //if (resData.error !== true) {} else {AlertIOS.alert('服务器无响应', '请稍后再试');}
34 | //consistant with server error msg
35 | callback({
36 | error: true,
37 | });
38 | });
39 | },
40 | key: 'LFDHSFHSFJKHJFHS-REACT-NATIVE',
41 | };
42 |
43 |
44 | // import {StyleSheet, Platform} from 'react-native';
45 |
46 | // export function create(styles: Object): {[name: string]: number} {
47 | // const platformStyles = {};
48 | // Object.keys(styles).forEach((name) => {
49 | // let {ios, android, ...style} = {...styles[name]};
50 | // if (ios && Platform.OS === 'ios') {
51 | // style = {...style, ...ios};
52 | // }
53 | // if (android && Platform.OS === 'android') {
54 | // style = {...style, ...android};
55 | // }
56 | // platformStyles[name] = style;
57 | // });
58 | // return StyleSheet.create(platformStyles);
59 | // }
60 |
61 | export default Util;
--------------------------------------------------------------------------------
/index.ios.js:
--------------------------------------------------------------------------------
1 | /**
2 | * gene app
3 | * search "fetch" to see where it talks to the server
4 | */
5 | 'use strict'
6 |
7 | import React, { Component } from 'react';
8 | import {
9 | AppRegistry,
10 | AsyncStorage,
11 | StyleSheet,
12 | Text,
13 | View
14 | } from 'react-native';
15 | import Login from './view/login';
16 | import Main from './view/main';
17 |
18 | class gene extends Component {
19 | constructor() {
20 | super();
21 | // this.state = {
22 | // in: false,
23 | // main: ,
24 | // };
25 | this.state = {
26 | in: true,
27 | main: this._exitGene()}/>,
28 | };
29 | }
30 |
31 | _enterGene() {
32 | this.setState({
33 | in: true,
34 | });
35 | this._renderMain();
36 | }
37 |
38 | _exitGene() {
39 | this.setState({
40 | in: false,
41 | });
42 | AsyncStorage.setItem('username','');
43 | AsyncStorage.setItem('uid','');
44 | AsyncStorage.setItem('idReady','false');
45 | }
46 |
47 | _renderMain() {
48 | AsyncStorage.getItem("uid").then((value) =>{
49 | if (value !== '') {
50 | let main = this._exitGene()}/>
51 | this.setState({
52 | main
53 | })
54 | }
55 | });
56 | }
57 |
58 | render() {
59 | return (
60 |
61 | {
62 | this.state.in?
63 | this.state.main:
64 | this._enterGene()}/>
65 | }
66 |
67 | );
68 | }
69 | }
70 |
71 | const styles = StyleSheet.create({
72 | container: {
73 | flex: 1,
74 | justifyContent: 'center',
75 | alignItems: 'center',
76 | backgroundColor: '#F5FCFF',
77 | },
78 | });
79 |
80 | AppRegistry.registerComponent('gene', () => gene);
81 |
--------------------------------------------------------------------------------
/ios/gene/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | zh_CN
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | NSAppTransportSecurity
26 |
27 | NSAllowsArbitraryLoads
28 |
29 |
30 | NSLocationWhenInUseUsageDescription
31 |
32 | UIAppFonts
33 |
34 | Entypo.ttf
35 | EvilIcons.ttf
36 | FontAwesome.ttf
37 | Foundation.ttf
38 | Ionicons.ttf
39 | MaterialIcons.ttf
40 | Octicons.ttf
41 | Zocial.ttf
42 |
43 | UILaunchStoryboardName
44 | LaunchScreen
45 | UIRequiredDeviceCapabilities
46 |
47 | armv7
48 |
49 | UISupportedInterfaceOrientations
50 |
51 | UIInterfaceOrientationPortrait
52 |
53 | UIViewControllerBasedStatusBarAppearance
54 |
55 | CFBundleAllowMixedLocalizations
56 |
57 |
58 |
59 |
--------------------------------------------------------------------------------
/ios/gene/AppDelegate.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import "AppDelegate.h"
11 |
12 | #import "RCTRootView.h"
13 |
14 | @implementation AppDelegate
15 |
16 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
17 | {
18 | NSURL *jsCodeLocation;
19 |
20 | /**
21 | * Loading JavaScript code - uncomment the one you want.
22 | *
23 | * OPTION 1
24 | * Load from development server. Start the server from the repository root:
25 | *
26 | * $ npm start
27 | *
28 | * To run on device, change `localhost` to the IP address of your computer
29 | * (you can get this by typing `ifconfig` into the terminal and selecting the
30 | * `inet` value under `en0:`) and make sure your computer and iOS device are
31 | * on the same Wi-Fi network.
32 | */
33 |
34 | jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle?platform=ios&dev=true"];
35 |
36 | /**
37 | * OPTION 2
38 | * Load from pre-bundled file on disk. The static bundle is automatically
39 | * generated by the "Bundle React Native code and images" build step when
40 | * running the project on an actual device or running the project on the
41 | * simulator in the "Release" build configuration.
42 | */
43 |
44 | // jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
45 |
46 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
47 | moduleName:@"gene"
48 | initialProperties:nil
49 | launchOptions:launchOptions];
50 |
51 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
52 | UIViewController *rootViewController = [UIViewController new];
53 | rootViewController.view = rootView;
54 | self.window.rootViewController = rootViewController;
55 | [self.window makeKeyAndVisible];
56 | return YES;
57 | }
58 |
59 | @end
60 |
--------------------------------------------------------------------------------
/ios/geneTests/geneTests.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 | #import
12 |
13 | #import "RCTLog.h"
14 | #import "RCTRootView.h"
15 |
16 | #define TIMEOUT_SECONDS 600
17 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!"
18 |
19 | @interface geneTests : XCTestCase
20 |
21 | @end
22 |
23 | @implementation geneTests
24 |
25 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test
26 | {
27 | if (test(view)) {
28 | return YES;
29 | }
30 | for (UIView *subview in [view subviews]) {
31 | if ([self findSubviewInView:subview matching:test]) {
32 | return YES;
33 | }
34 | }
35 | return NO;
36 | }
37 |
38 | - (void)testRendersWelcomeScreen
39 | {
40 | UIViewController *vc = [[[[UIApplication sharedApplication] delegate] window] rootViewController];
41 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
42 | BOOL foundElement = NO;
43 |
44 | __block NSString *redboxError = nil;
45 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) {
46 | if (level >= RCTLogLevelError) {
47 | redboxError = message;
48 | }
49 | });
50 |
51 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) {
52 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
53 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
54 |
55 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) {
56 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) {
57 | return YES;
58 | }
59 | return NO;
60 | }];
61 | }
62 |
63 | RCTSetLogFunction(RCTDefaultLogFunction);
64 |
65 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError);
66 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS);
67 | }
68 |
69 |
70 | @end
71 |
--------------------------------------------------------------------------------
/android/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
19 | # Disabling obfuscation is useful if you collect stack traces from production crashes
20 | # (unless you are using a system that supports de-obfuscate the stack traces).
21 | -dontobfuscate
22 |
23 | # React Native
24 |
25 | # Keep our interfaces so they can be used by other ProGuard rules.
26 | # See http://sourceforge.net/p/proguard/bugs/466/
27 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip
28 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters
29 |
30 | # Do not strip any method/class that is annotated with @DoNotStrip
31 | -keep @com.facebook.proguard.annotations.DoNotStrip class *
32 | -keepclassmembers class * {
33 | @com.facebook.proguard.annotations.DoNotStrip *;
34 | }
35 |
36 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * {
37 | void set*(***);
38 | *** get*();
39 | }
40 |
41 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; }
42 | -keep class * extends com.facebook.react.bridge.NativeModule { *; }
43 | -keepclassmembers,includedescriptorclasses class * { native ; }
44 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; }
45 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; }
46 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; }
47 |
48 | -dontwarn com.facebook.react.**
49 |
50 | # okhttp
51 |
52 | -keepattributes Signature
53 | -keepattributes *Annotation*
54 | -keep class com.squareup.okhttp.** { *; }
55 | -keep interface com.squareup.okhttp.** { *; }
56 | -dontwarn com.squareup.okhttp.**
57 |
58 | # okio
59 |
60 | -keep class sun.misc.Unsafe { *; }
61 | -dontwarn java.nio.file.*
62 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
63 | -dontwarn okio.**
64 |
--------------------------------------------------------------------------------
/android/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 |
3 | # We fork some components by platform.
4 | .*/*.web.js
5 | .*/*.android.js
6 |
7 | # Some modules have their own node_modules with overlap
8 | .*/node_modules/node-haste/.*
9 |
10 | # Ugh
11 | .*/node_modules/babel.*
12 | .*/node_modules/babylon.*
13 | .*/node_modules/invariant.*
14 |
15 | # Ignore react and fbjs where there are overlaps, but don't ignore
16 | # anything that react-native relies on
17 | .*/node_modules/fbjs/lib/Map.js
18 | .*/node_modules/fbjs/lib/fetch.js
19 | .*/node_modules/fbjs/lib/ExecutionEnvironment.js
20 | .*/node_modules/fbjs/lib/ErrorUtils.js
21 |
22 | # Flow has a built-in definition for the 'react' module which we prefer to use
23 | # over the currently-untyped source
24 | .*/node_modules/react/react.js
25 | .*/node_modules/react/lib/React.js
26 | .*/node_modules/react/lib/ReactDOM.js
27 |
28 | .*/__mocks__/.*
29 | .*/__tests__/.*
30 |
31 | .*/commoner/test/source/widget/share.js
32 |
33 | # Ignore commoner tests
34 | .*/node_modules/commoner/test/.*
35 |
36 | # See https://github.com/facebook/flow/issues/442
37 | .*/react-tools/node_modules/commoner/lib/reader.js
38 |
39 | # Ignore jest
40 | .*/node_modules/jest-cli/.*
41 |
42 | # Ignore Website
43 | .*/website/.*
44 |
45 | # Ignore generators
46 | .*/local-cli/generator.*
47 |
48 | # Ignore BUCK generated folders
49 | .*\.buckd/
50 |
51 | .*/node_modules/is-my-json-valid/test/.*\.json
52 | .*/node_modules/iconv-lite/encodings/tables/.*\.json
53 | .*/node_modules/y18n/test/.*\.json
54 | .*/node_modules/spdx-license-ids/spdx-license-ids.json
55 | .*/node_modules/spdx-exceptions/index.json
56 | .*/node_modules/resolve/test/subdirs/node_modules/a/b/c/x.json
57 | .*/node_modules/resolve/lib/core.json
58 | .*/node_modules/jsonparse/samplejson/.*\.json
59 | .*/node_modules/json5/test/.*\.json
60 | .*/node_modules/ua-parser-js/test/.*\.json
61 | .*/node_modules/builtin-modules/builtin-modules.json
62 | .*/node_modules/binary-extensions/binary-extensions.json
63 | .*/node_modules/url-regex/tlds.json
64 | .*/node_modules/joi/.*\.json
65 | .*/node_modules/isemail/.*\.json
66 | .*/node_modules/tr46/.*\.json
67 |
68 |
69 | [include]
70 |
71 | [libs]
72 | node_modules/react-native/Libraries/react-native/react-native-interface.js
73 | node_modules/react-native/flow
74 | flow/
75 |
76 | [options]
77 | module.system=haste
78 |
79 | esproposal.class_static_fields=enable
80 | esproposal.class_instance_fields=enable
81 |
82 | munge_underscores=true
83 |
84 | module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub'
85 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\)$' -> 'RelativeImageStub'
86 |
87 | suppress_type=$FlowIssue
88 | suppress_type=$FlowFixMe
89 | suppress_type=$FixMe
90 |
91 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(2[0-3]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
92 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(2[0-3]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
93 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
94 |
95 | [version]
96 | 0.23.0
97 |
--------------------------------------------------------------------------------
/ios/gene/Base.lproj/LaunchScreen.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
21 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/ios/gene.xcodeproj/xcshareddata/xcschemes/gene.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
29 |
35 |
36 |
37 |
38 |
39 |
44 |
45 |
46 |
47 |
53 |
54 |
55 |
56 |
57 |
58 |
68 |
70 |
76 |
77 |
78 |
79 |
80 |
81 |
87 |
89 |
95 |
96 |
97 |
98 |
100 |
101 |
104 |
105 |
106 |
--------------------------------------------------------------------------------
/view/item.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 |
3 | import React, { Component } from 'react';
4 | import {
5 | ActionSheetIOS,
6 | AlertIOS,
7 | Image,
8 | StyleSheet,
9 | StatusBar,
10 | Text,
11 | TouchableHighlight,
12 | View,
13 | WebView
14 | } from 'react-native';
15 | import Util from './utils';
16 | import Icon from 'react-native-vector-icons/Ionicons';
17 |
18 | class Report extends Component{
19 | render() {
20 | return(
21 |
29 | )
30 | }
31 | }
32 |
33 | export default class extends Component{
34 | constructor(props) {
35 | super(props);
36 | }
37 |
38 | _showShareActionSheet(link,title) {
39 | ActionSheetIOS.showShareActionSheetWithOptions({
40 | url: link,
41 | message: title,
42 | },
43 | (error) => console.log(error),
44 | (success, method) => {
45 | });
46 | }
47 |
48 | _showReport(link, title) {
49 | this.props.navigator.push({
50 | title,
51 | tintColor:'#f5f5f5',
52 | barTintColor:'#8bc34a',
53 | titleTextColor:'#fff',
54 | component: Report,
55 | passProps:{link},
56 | })
57 | }
58 |
59 | _showAlert(index) {
60 | AlertIOS.alert(
61 | 'Delete Task',
62 | 'Are you sure you want to delete this task? This action can not be undo.',
63 | [{text: 'Cancel', onPress: () => console.log('Cancel Pressed'), style: 'cancel'},
64 | {text: 'OK', onPress: () => this.props.deleteTask(index)}]
65 | );
66 | }
67 |
68 | render() {
69 | const { index,title,created,completed,component,link } = this.props.data;
70 | return(
71 |
72 | this._showReport(link,title)}>
73 |
74 | {created}
75 | {title}
76 | {component}
77 |
78 |
79 |
80 |
81 |
82 | Completed: {completed}%
83 |
84 | this._showShareActionSheet(link,title)}>
85 |
86 |
87 | this._showAlert(index)}>
88 |
89 |
90 |
91 |
92 | )
93 | }
94 | }
95 |
96 | const styles = StyleSheet.create({
97 | container:{
98 | width:Util.size.width-20,
99 | height: 120,
100 | marginBottom:15,
101 | backgroundColor:'#fff',
102 | shadowColor: "#777",
103 | shadowOpacity: 0.3,
104 | shadowRadius: 2,
105 | shadowOffset: {
106 | height: 2,
107 | width: 0
108 | },
109 | },
110 | textContainer:{
111 | paddingTop: 10,
112 | paddingBottom:10,
113 | paddingLeft:15,
114 | paddingRight:15,
115 | height:80,
116 | },
117 | tiny:{
118 | fontSize:12,
119 | color:'#333',
120 | },
121 | title:{
122 | fontSize:15,
123 | fontWeight:'700',
124 | color:'#111',
125 | paddingTop:5,
126 | paddingBottom:5,
127 | },
128 | completed:{
129 | width: Util.size.width - 100,
130 | height: 40,
131 | position: 'absolute',
132 | left: 0,
133 | top: 0,
134 | backgroundColor: 'transparent',
135 | paddingLeft:15,
136 | paddingTop: 13,
137 | fontSize:12,
138 | },
139 | actionContainer:{
140 | height:40,
141 | borderTopWidth: Util.pixel,
142 | borderTopColor: '#ddd',
143 | flexDirection: 'row',
144 | },
145 | progress:{
146 | width: Util.size.width - 100,
147 | },
148 | icon:{
149 | width:40,
150 | borderLeftWidth: Util.pixel,
151 | borderLeftColor: '#ddd',
152 | alignItems:'center',
153 | justifyContent:'center',
154 | },
155 | })
--------------------------------------------------------------------------------
/view/task.js:
--------------------------------------------------------------------------------
1 | /**
2 | * main of GENE
3 | */
4 | 'use strict'
5 |
6 | import React, { Component } from 'react';
7 | import {
8 | NavigatorIOS,
9 | RefreshControl,
10 | ScrollView,
11 | StyleSheet,
12 | Text,
13 | TouchableHighlight,
14 | View
15 | } from 'react-native';
16 | import {
17 | MKColor,
18 | } from 'react-native-material-kit';
19 | import Util from './utils';
20 | import Item from './item';
21 |
22 | export default class extends Component{
23 | constructor(props) {
24 | super(props);
25 | this.state = {
26 | data: [{
27 | index:0,
28 | title:'Some name for the task',
29 | created: '2016.05.12 16:18',
30 | completed: 10,
31 | link: 'http://www.google.com',
32 | component:'module3',
33 | },{
34 | index:1,
35 | title:'My fifth task',
36 | created: '2016.05.12 14:28',
37 | completed: 30,
38 | link: 'http://www.google.com',
39 | component:'module4',
40 | },{
41 | index:2,
42 | title:'A task for analyzing something',
43 | created: '2016.05.12 11:56',
44 | completed: 60,
45 | link: 'http://www.google.com',
46 | component:'module2',
47 | },{
48 | index:3,
49 | title:'My third task',
50 | created: '2016.05.12 08:52',
51 | completed: 80,
52 | link: 'http://www.google.com',
53 | component:'module1, module2',
54 | },{
55 | index:4,
56 | title:'Another task of mine',
57 | created: '2016.05.02 16:39',
58 | completed: 100,
59 | link: 'http://www.google.com',
60 | component:'module4',
61 | },{
62 | index:5,
63 | title:'My first task',
64 | created: '2016.04.18 17:39',
65 | completed: 100,
66 | link: 'http://www.google.com',
67 | component:'module3',
68 | }],
69 | isRefreshing: false,
70 | refreshTitle: "pull down to update"
71 | }
72 | }
73 |
74 | componentWillMount() {
75 | // fetch
76 | // Util.post("http://dnafw.com:8100/iosapp/all_orders/",{uid:this.props.uid},(resData) => {
77 | // if (resData.error!=="true") {
78 | // console.log(resData);
79 | // this.setState({
80 | // rowData: resData,
81 | // });
82 | // }
83 | // });
84 | }
85 |
86 | _deleteTask(index) {
87 | const {data} = this.state;
88 | for (var i = 0; i < data.length; i++) {
89 | if(data[i].index === index){
90 | data.splice(i,1)
91 | }
92 | }
93 | this.setState({
94 | data
95 | })
96 | //fetch
97 | }
98 |
99 | _onRefresh() {
100 | this.setState({
101 | isRefreshing: true,
102 | refreshTitle: "updating"
103 | });
104 |
105 | // fetch
106 | // Util.post("http://dnafw.com:8100/iosapp/all_orders/",{uid:this.props.uid},(resData) => {
107 | // if (resData.error!=="true") {
108 | // this.setState({
109 | // isRefreshing: false,
110 | // data: resData,
111 | // refreshTitle: "更新完毕",
112 | // });
113 | // }else{
114 | // this.setState({
115 | // isRefreshing: false,
116 | // refreshTitle: "更新失败",
117 | // });
118 | // }
119 | // setTimeout(() => {
120 | // this.setState({
121 | // refreshTitle: "下拉更新"
122 | // });
123 | // }, 1000);
124 | // });
125 | }
126 |
127 | render() {
128 | const items = this.state.data.map((elem, index) => {
129 | return (
130 | - this._deleteTask(i)}key={'item'+index} data={elem} navigator={this.props.navigator}/>
131 | );
132 | })
133 |
134 | return(
135 | this._onRefresh()}
142 | tintColor="#ddd"
143 | />
144 | }
145 | >
146 |
147 | My Tasks (6)
148 | {items}
149 |
150 |
151 | )
152 | }
153 | }
154 |
155 | const styles = StyleSheet.create({
156 | listContainer:{
157 | width: Util.size.width,
158 | height: Util.size.height - 145,
159 | backgroundColor:'#f5f5f5',
160 | },
161 | list:{
162 | paddingLeft:10,
163 | paddingTop:10,
164 | paddingBottom:70,
165 | },
166 | tabTitle:{
167 | marginBottom:10,
168 | },
169 | })
170 |
--------------------------------------------------------------------------------
/android/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10 | DEFAULT_JVM_OPTS=""
11 |
12 | APP_NAME="Gradle"
13 | APP_BASE_NAME=`basename "$0"`
14 |
15 | # Use the maximum available, or set MAX_FD != -1 to use that value.
16 | MAX_FD="maximum"
17 |
18 | warn ( ) {
19 | echo "$*"
20 | }
21 |
22 | die ( ) {
23 | echo
24 | echo "$*"
25 | echo
26 | exit 1
27 | }
28 |
29 | # OS specific support (must be 'true' or 'false').
30 | cygwin=false
31 | msys=false
32 | darwin=false
33 | case "`uname`" in
34 | CYGWIN* )
35 | cygwin=true
36 | ;;
37 | Darwin* )
38 | darwin=true
39 | ;;
40 | MINGW* )
41 | msys=true
42 | ;;
43 | esac
44 |
45 | # For Cygwin, ensure paths are in UNIX format before anything is touched.
46 | if $cygwin ; then
47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
48 | fi
49 |
50 | # Attempt to set APP_HOME
51 | # Resolve links: $0 may be a link
52 | PRG="$0"
53 | # Need this for relative symlinks.
54 | while [ -h "$PRG" ] ; do
55 | ls=`ls -ld "$PRG"`
56 | link=`expr "$ls" : '.*-> \(.*\)$'`
57 | if expr "$link" : '/.*' > /dev/null; then
58 | PRG="$link"
59 | else
60 | PRG=`dirname "$PRG"`"/$link"
61 | fi
62 | done
63 | SAVED="`pwd`"
64 | cd "`dirname \"$PRG\"`/" >&-
65 | APP_HOME="`pwd -P`"
66 | cd "$SAVED" >&-
67 |
68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
69 |
70 | # Determine the Java command to use to start the JVM.
71 | if [ -n "$JAVA_HOME" ] ; then
72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
73 | # IBM's JDK on AIX uses strange locations for the executables
74 | JAVACMD="$JAVA_HOME/jre/sh/java"
75 | else
76 | JAVACMD="$JAVA_HOME/bin/java"
77 | fi
78 | if [ ! -x "$JAVACMD" ] ; then
79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
80 |
81 | Please set the JAVA_HOME variable in your environment to match the
82 | location of your Java installation."
83 | fi
84 | else
85 | JAVACMD="java"
86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
87 |
88 | Please set the JAVA_HOME variable in your environment to match the
89 | location of your Java installation."
90 | fi
91 |
92 | # Increase the maximum file descriptors if we can.
93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
94 | MAX_FD_LIMIT=`ulimit -H -n`
95 | if [ $? -eq 0 ] ; then
96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
97 | MAX_FD="$MAX_FD_LIMIT"
98 | fi
99 | ulimit -n $MAX_FD
100 | if [ $? -ne 0 ] ; then
101 | warn "Could not set maximum file descriptor limit: $MAX_FD"
102 | fi
103 | else
104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
105 | fi
106 | fi
107 |
108 | # For Darwin, add options to specify how the application appears in the dock
109 | if $darwin; then
110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
111 | fi
112 |
113 | # For Cygwin, switch paths to Windows format before running java
114 | if $cygwin ; then
115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
158 | function splitJvmOpts() {
159 | JVM_OPTS=("$@")
160 | }
161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
163 |
164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
165 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: "com.android.application"
2 |
3 | import com.android.build.OutputFile
4 |
5 | /**
6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
7 | * and bundleReleaseJsAndAssets).
8 | * These basically call `react-native bundle` with the correct arguments during the Android build
9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
10 | * bundle directly from the development server. Below you can see all the possible configurations
11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the
12 | * `apply from: "../../node_modules/react-native/react.gradle"` line.
13 | *
14 | * project.ext.react = [
15 | * // the name of the generated asset file containing your JS bundle
16 | * bundleAssetName: "index.android.bundle",
17 | *
18 | * // the entry file for bundle generation
19 | * entryFile: "index.android.js",
20 | *
21 | * // whether to bundle JS and assets in debug mode
22 | * bundleInDebug: false,
23 | *
24 | * // whether to bundle JS and assets in release mode
25 | * bundleInRelease: true,
26 | *
27 | * // whether to bundle JS and assets in another build variant (if configured).
28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
29 | * // The configuration property can be in the following formats
30 | * // 'bundleIn${productFlavor}${buildType}'
31 | * // 'bundleIn${buildType}'
32 | * // bundleInFreeDebug: true,
33 | * // bundleInPaidRelease: true,
34 | * // bundleInBeta: true,
35 | *
36 | * // the root of your project, i.e. where "package.json" lives
37 | * root: "../../",
38 | *
39 | * // where to put the JS bundle asset in debug mode
40 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
41 | *
42 | * // where to put the JS bundle asset in release mode
43 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release",
44 | *
45 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
46 | * // require('./image.png')), in debug mode
47 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
48 | *
49 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
50 | * // require('./image.png')), in release mode
51 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
52 | *
53 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means
54 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
55 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle
56 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
57 | * // for example, you might want to remove it from here.
58 | * inputExcludes: ["android/**", "ios/**"]
59 | * ]
60 | */
61 |
62 | apply from: "../../node_modules/react-native/react.gradle"
63 |
64 | /**
65 | * Set this to true to create two separate APKs instead of one:
66 | * - An APK that only works on ARM devices
67 | * - An APK that only works on x86 devices
68 | * The advantage is the size of the APK is reduced by about 4MB.
69 | * Upload all the APKs to the Play Store and people will download
70 | * the correct one based on the CPU architecture of their device.
71 | */
72 | def enableSeparateBuildPerCPUArchitecture = false
73 |
74 | /**
75 | * Run Proguard to shrink the Java bytecode in release builds.
76 | */
77 | def enableProguardInReleaseBuilds = false
78 |
79 | android {
80 | compileSdkVersion 23
81 | buildToolsVersion "23.0.1"
82 |
83 | defaultConfig {
84 | applicationId "com.gene"
85 | minSdkVersion 16
86 | targetSdkVersion 22
87 | versionCode 1
88 | versionName "1.0"
89 | ndk {
90 | abiFilters "armeabi-v7a", "x86"
91 | }
92 | }
93 | splits {
94 | abi {
95 | reset()
96 | enable enableSeparateBuildPerCPUArchitecture
97 | universalApk false // If true, also generate a universal APK
98 | include "armeabi-v7a", "x86"
99 | }
100 | }
101 | buildTypes {
102 | release {
103 | minifyEnabled enableProguardInReleaseBuilds
104 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
105 | }
106 | }
107 | // applicationVariants are e.g. debug, release
108 | applicationVariants.all { variant ->
109 | variant.outputs.each { output ->
110 | // For each separate APK per architecture, set a unique version code as described here:
111 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
112 | def versionCodes = ["armeabi-v7a":1, "x86":2]
113 | def abi = output.getFilter(OutputFile.ABI)
114 | if (abi != null) { // null for the universal-debug, universal-release variants
115 | output.versionCodeOverride =
116 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
117 | }
118 | }
119 | }
120 | }
121 |
122 | dependencies {
123 | compile project(':react-native-vector-icons')
124 | compile project(':react-native-material-kit')
125 | compile fileTree(dir: "libs", include: ["*.jar"])
126 | compile "com.android.support:appcompat-v7:23.0.1"
127 | compile "com.facebook.react:react-native:+" // From node_modules
128 | }
129 |
130 | // Run this once to be able to run the application with BUCK
131 | // puts all compile dependencies into folder libs for BUCK to use
132 | task copyDownloadableDepsToLibs(type: Copy) {
133 | from configurations.compile
134 | into 'libs'
135 | }
136 |
--------------------------------------------------------------------------------
/view/module.js:
--------------------------------------------------------------------------------
1 | /**
2 | * modules
3 | * highlight the new modules!
4 | */
5 | 'use strict'
6 |
7 | import React, { Component } from 'react';
8 | import {
9 | AlertIOS,
10 | Image,
11 | Modal,
12 | StyleSheet,
13 | ScrollView,
14 | Text,
15 | TouchableHighlight,
16 | View,
17 | WebView
18 | } from 'react-native';
19 | import {
20 | MKColor,
21 | MKTextField,
22 | mdl,
23 | } from 'react-native-material-kit';
24 | import Util from './utils';
25 | import Icon from 'react-native-vector-icons/Ionicons';
26 |
27 | import {SingleConfig} from './config';
28 |
29 | export default class extends Component{
30 | constructor() {
31 | super();
32 | this.state = {
33 | showModal:false,
34 | moduleSelected: 0,
35 | }
36 | }
37 |
38 | _initSingleTask(moduleSelected) {
39 | this.setState({
40 | showModal:true,
41 | moduleSelected,
42 | });
43 | }
44 |
45 | _hideModal() {
46 | this.setState({
47 | showModal:false,
48 | });
49 | }
50 |
51 | render() {
52 | return(
53 |
54 |
58 | this._hideModal()}
61 | />
62 |
63 |
64 | Modules
65 | this._initSingleTask(1)} style={styles.moduleContainer}>
66 |
67 |
68 |
69 | HISAT
70 |
71 | new
72 |
73 |
74 |
75 |
76 |
77 | this._initSingleTask(2)} style={styles.moduleContainer}>
78 |
79 |
80 | Module 2
81 |
82 |
83 |
84 | this._initSingleTask(3)} style={styles.moduleContainer}>
85 |
86 |
87 | Module 3
88 |
89 |
90 |
91 | this._initSingleTask(4)} style={styles.moduleContainer}>
92 |
93 |
94 | Module 4
95 |
96 |
97 |
98 | this._initSingleTask(5)} style={styles.moduleContainer}>
99 |
100 |
101 | Module 5
102 |
103 |
104 |
105 |
106 |
107 | )
108 | }
109 | }
110 |
111 | const styles = StyleSheet.create({
112 | container:{
113 | width: Util.size.width,
114 | height: Util.size.height - 145,
115 | backgroundColor:'#f5f5f5',
116 | },
117 | content:{
118 | flexDirection:'row',
119 | flexWrap:"wrap",
120 | width: Util.size.width,
121 | paddingLeft:10,
122 | paddingTop:10,
123 | paddingBottom:70,
124 | },
125 | tabTitle:{
126 | marginBottom:10,
127 | width: Util.size.width,
128 | },
129 | moduleContainer:{
130 | width: 0.5*Util.size.width-10,
131 | height: 135,
132 | alignItems:'center',
133 | },
134 | module:{
135 | height: 120,
136 | width: 0.5*Util.size.width-25,
137 | marginBottom:15,
138 | backgroundColor:'#fff',
139 | shadowColor: "#777",
140 | shadowOpacity: 0.3,
141 | shadowRadius: 2,
142 | shadowOffset: {
143 | height: 2,
144 | width: 0
145 | },
146 | },
147 | moduleImg:{
148 | width: 0.5*Util.size.width-25,
149 | height: 95,
150 | },
151 | moduleText:{
152 | height:25,
153 | fontSize:14,
154 | fontWeight:'500',
155 | paddingLeft:5,
156 | paddingTop:3,
157 | },
158 | moduleIcon:{
159 | position:'absolute',
160 | right:5,
161 | bottom:2,
162 | },
163 | newContainer:{
164 | height:25,
165 | width:0.5*Util.size.width-25,
166 | flexDirection:'row',
167 | alignItems:'flex-start',
168 | },
169 | new:{
170 | backgroundColor:'#8bc34a',
171 | height: 15,
172 | paddingBottom:2,
173 | marginTop:4,
174 | width: 30,
175 | marginLeft: 10,
176 | alignItems:'center',
177 | justifyContent:'center',
178 | borderRadius:2,
179 | },
180 | newText:{
181 | color:'#fff',
182 | fontWeight:'300',
183 | backgroundColor:'transparent',
184 | },
185 | })
--------------------------------------------------------------------------------
/view/login.js:
--------------------------------------------------------------------------------
1 | /**
2 | * log in page
3 | * the first time: username+password
4 | * later on choose Touch ID or enter password
5 | */
6 | 'use strict'
7 |
8 | import React, { Component } from 'react';
9 | import {
10 | AsyncStorage,
11 | Image,
12 | StyleSheet,
13 | Text,
14 | View
15 | } from 'react-native';
16 | import Util from './utils';
17 | import {
18 | MKTextField,
19 | MKColor,
20 | MKButton,
21 | mdl,
22 | } from 'react-native-material-kit';
23 | import Icon from 'react-native-vector-icons/Ionicons';
24 | import TouchID from 'react-native-touch-id';
25 |
26 | const FloatInput = mdl.Textfield.textfieldWithFloatingLabel().build();
27 |
28 | class LoginForm extends Component{
29 | static propTypes = {
30 | enterGene: React.PropTypes.func.isRequired,
31 | inputFocus: React.PropTypes.func.isRequired,
32 | };
33 |
34 | constructor(props) {
35 | super(props);
36 | this.state = {
37 | username: '',
38 | password: '',
39 | };
40 | }
41 |
42 | componentDidMount() {
43 | AsyncStorage.getItem("username").then((value) =>{
44 | if (value !== '') {
45 | this.setState({
46 | username:value,
47 | });
48 | }
49 | });
50 | }
51 |
52 | clearText() {
53 | this._username.setNativeProps({text: ''});
54 | this._password.setNativeProps({text: ''});
55 | this.setState({
56 | username: '',
57 | password: '',
58 | });
59 | }
60 |
61 | _submit() {
62 | //fetch
63 | // if success
64 | const username = this.state.username;
65 | AsyncStorage.setItem('username',username);
66 | AsyncStorage.setItem('uid','jdkhfkdshfsbdbwqk');
67 | AsyncStorage.setItem('idReady','true');
68 | this.props.enterGene();
69 | }
70 |
71 | render() {
72 | return(
73 |
74 |
75 |
76 | {this.state.username?this.state.username.charAt(0).toUpperCase():}
77 |
78 |
79 |
80 | this._username = component}
84 | returnKeyType = {"next"}
85 | placeholder="Username"
86 | highlightColor={MKColor.LightGreen}
87 | onFocus={() => this.props.inputFocus(true)}
88 | onBlur={() => this.props.inputFocus(false)}
89 | onChangeText={(text) => this.setState({username:text})}
90 | onSubmitEditing={(event) => {this._password.focus();}}
91 | />
92 | this._password = component}
95 | placeholder="Password"
96 | password={true}
97 | highlightColor={MKColor.LightGreen}
98 | onFocus={() => this.props.inputFocus(true)}
99 | onBlur={() => this.props.inputFocus(false)}
100 | onChangeText={(text) => this.setState({password:text})}
101 | onSubmitEditing={(event) => this._submit()}
102 | />
103 |
104 |
105 | this._submit()}
113 | >
114 |
116 | Log in
117 |
118 |
119 |
120 |
121 | )
122 | }
123 | }
124 |
125 | export default class extends Component{
126 | static propTypes = {
127 | enterGene: React.PropTypes.func.isRequired,
128 | };
129 |
130 | constructor() {
131 | super();
132 | this.state = {
133 | username:'',
134 | offset: 20,
135 | }
136 | }
137 |
138 | componentDidMount() {
139 | AsyncStorage.getItem("idReady").then((value) =>{
140 | if (value === 'true') {
141 | this._touchID();
142 | }
143 | });
144 | }
145 |
146 | _inputFocused(isFocused) {
147 | if (isFocused) {
148 | this.setState({
149 | offset: 100,
150 | })
151 | }else{
152 | this.setState({
153 | offset: 20,
154 | })
155 | }
156 | }
157 |
158 | _touchID = () => {
159 | TouchID.authenticate('Unlock GENE')
160 | .then(success => {
161 | this.props.enterGene();
162 | })
163 | .catch(error => {
164 | console.log('touch id error');
165 | });
166 | };
167 |
168 | render() {
169 | return(
170 |
171 |
172 | A Sequencing Analysis Task Runner.
173 | Get Started on gene.cityu.edu.hk
174 | this._inputFocused(isFocused)} enterGene={()=>this.props.enterGene()}/>
175 |
176 | )
177 | }
178 | }
179 |
180 | const styles = StyleSheet.create({
181 | container: {
182 | flex: 1,
183 | alignItems: 'center',
184 | justifyContent: 'center',
185 | backgroundColor: '#FFF',
186 | width: Util.size.width,
187 | height: Util.size.height,
188 | },
189 | formContainer:{
190 | alignItems: 'center',
191 | justifyContent: 'center',
192 | },
193 | logo:{
194 | width:Util.size.width-160,
195 | height:80,
196 | marginBottom:10,
197 | },
198 | logoText:{
199 | fontSize:11,
200 | color:'#555',
201 | },
202 | col: {
203 | flex: 1,
204 | flexDirection: 'column',
205 | marginLeft: 7, marginRight: 7,
206 | },
207 | icon:{
208 | height:80,
209 | width:80,
210 | borderRadius:40,
211 | marginTop: 50,
212 | marginBottom:10,
213 | backgroundColor: '#ccc',
214 | alignItems:'center',
215 | justifyContent:'center',
216 | },
217 | iconText:{
218 | fontSize:50,
219 | color:'#fff',
220 | backgroundColor:'transparent',
221 | },
222 | textfieldWithFloatingLabel: {
223 | height: 48, // have to do it on iOS
224 | marginTop: 10,
225 | width: Util.size.width -80,
226 | },
227 | loginBtn: {
228 | marginTop:50,
229 | height:35,
230 | width:Util.size.width -80,
231 | alignItems:'center',
232 | justifyContent:'center',
233 | },
234 | });
--------------------------------------------------------------------------------
/view/config.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 |
3 | import React, { Component } from 'react';
4 | import {
5 | AlertIOS,
6 | Image,
7 | Modal,
8 | ScrollView,
9 | StyleSheet,
10 | Text,
11 | TouchableHighlight,
12 | View
13 | } from 'react-native';
14 | import Util from './utils';
15 | import {
16 | setTheme,
17 | MKColor,
18 | MKCheckbox,
19 | } from 'react-native-material-kit';
20 |
21 | import { HISAT } from './moduleDetail';
22 |
23 | setTheme({checkboxStyle: {
24 | fillColor: MKColor.LightGreen,
25 | borderOnColor: MKColor.LightGreen,
26 | borderOffColor: MKColor.LightGreen,
27 | rippleColor: 'rgba(139,195,74,.15)',
28 | }});
29 |
30 | export class SingleConfig extends Component{
31 | constructor(props){
32 | super(props);
33 | }
34 |
35 | _addSingleTask() {
36 | // fetch
37 | // read config
38 | this.props.hideModal();
39 | }
40 |
41 | _selectModule() {
42 | switch(this.props.moduleSelected){
43 | case 1:
44 | return ;
45 | break;
46 | default:
47 | return ;
48 | break;
49 | }
50 | }
51 |
52 | render() {
53 | return(
54 |
55 |
56 | this.props.hideModal()}>Cancle
57 | Task Configuration
58 | this._addSingleTask()}>Add Task
59 |
60 |
61 | {this._selectModule()}
62 |
63 |
64 | )
65 | }
66 | }
67 |
68 | export default class extends Component{
69 | constructor(props) {
70 | super(props);
71 | this.state = {
72 | modules: ['HISAT','module 2','module 3','module 4','module 5'],
73 | moduleChecked: [false,false,false,false,false],
74 | taskConfiguration: false,
75 | }
76 | }
77 |
78 | _closeModal() {
79 | this.setState({
80 | modalTitle: '',
81 | moduleChecked: [false,false,false,false,false],
82 | });
83 | this.props.hideModal();
84 | }
85 |
86 | _continue() {
87 | const { moduleChecked } = this.state;
88 | let counter = 0;
89 | for (let isChecked of moduleChecked) {
90 | if (isChecked) {
91 | counter ++;
92 | }
93 | }
94 | if (counter>1) {
95 | AlertIOS.alert(
96 | 'Add multi-module Task',
97 | `You choosed ${counter} modules. Please confirm to add a quick multi-module task with default settings.`,
98 | [{text: 'Cancel', onPress: () => console.log('Cancel Pressed'), style: 'cancel'},
99 | {text: 'OK', onPress: () => this._addMultiTask(moduleChecked)}]
100 | );
101 | }else if (counter === 1){
102 | this.setState({
103 | taskConfiguration: true,
104 | })
105 | }else{
106 | AlertIOS.alert('At least select one module.')
107 | }
108 | }
109 |
110 | _addSingleTask() {
111 | // fetch
112 | // read config
113 | this.props.hideModal();
114 | }
115 |
116 | _addMultiTask(moduleChecked) {
117 | //fetch add a new multi-task
118 | //callback, return new task list data and force task list to update
119 | this._closeModal();
120 | }
121 |
122 | _back() {
123 | this.setState({
124 | taskConfiguration: false,
125 | });
126 | }
127 |
128 | _switchCheck(index) {
129 | const { moduleChecked } = this.state;
130 | moduleChecked[index] = !moduleChecked[index];
131 | this.setState({
132 | moduleChecked
133 | });
134 | }
135 |
136 | render() {
137 | const { modules,moduleChecked,taskConfiguration } = this.state;
138 |
139 | const moduleList = modules.map((elem, index) => {
140 | return (
141 |
142 | {elem}
143 | this._switchCheck(index)}/>
144 |
145 | );
146 | })
147 |
148 | return(
149 |
150 | { taskConfiguration?
151 |
152 | this._back()}>Back
153 | Task Configuration
154 | this._addSingleTask()}>Add Task
155 | :
156 |
157 | this._closeModal()}>Cancle
158 | {this.props.modalTitle}
159 | this._continue()}>Continue
160 |
161 | }
162 |
163 | { taskConfiguration?
164 | :
165 | moduleList
166 | }
167 |
168 |
169 | )
170 | }
171 | }
172 |
173 | const styles = StyleSheet.create({
174 | checkBox:{
175 | position:'absolute',
176 | top:0,
177 | right:0,
178 | },
179 | modalContainer:{
180 | height: Util.size.height,
181 | width: Util.size.width,
182 | backgroundColor:"#f5f5f5"
183 | },
184 | modalNav:{
185 | position:"absolute",
186 | height:60,
187 | width:Util.size.width,
188 | backgroundColor:MKColor.LightGreen,
189 | flexDirection:"row",
190 | justifyContent:"space-between",
191 | paddingTop:20,
192 | paddingLeft:15,
193 | paddingRight:15
194 | },
195 | modalContent:{
196 | width:Util.size.width,
197 | height:Util.size.height-60,
198 | marginTop:60
199 | },
200 | btnText:{
201 | color:"#f5f5f5",
202 | fontSize:16,
203 | paddingTop:10,
204 | },
205 | navTitle:{
206 | paddingTop:8,
207 | fontWeight:"500",
208 | color:"#fff",
209 | fontSize:18
210 | },
211 | module:{
212 | padding: 15,
213 | paddingLeft:25,
214 | height:50,
215 | borderBottomWidth: Util.pixel,
216 | borderBottomColor: '#ddd',
217 | flexDirection:'row',
218 | },
219 | moduleText:{
220 | color: '#222',
221 | fontWeight: '500',
222 | fontSize:16,
223 | width: Util.size.width - 100,
224 | },
225 | })
--------------------------------------------------------------------------------
/view/moduleDetail.js:
--------------------------------------------------------------------------------
1 | /**
2 | * define module detail here
3 | * hardcode for each module basically
4 | */
5 | 'use strict'
6 |
7 | import React, { Component } from 'react';
8 | import {
9 | ScrollView,
10 | StyleSheet,
11 | Text,
12 | TextInput,
13 | View
14 | } from 'react-native';
15 | import Util from './utils';
16 | import {
17 | MKColor,
18 | MKRadioButton,
19 | setTheme,
20 | } from 'react-native-material-kit';
21 |
22 | setTheme({radioStyle: {
23 | fillColor: 'rgba(139,195,74,.8)',
24 | borderOnColor: 'rgba(139,195,74,.6)',
25 | borderOffColor: 'rgba(139,195,74,.3)',
26 | rippleColor: 'rgba(139,195,74,.15)',
27 | }});
28 |
29 | export class HISAT extends Component{
30 | static defaultProps = {
31 | title:'',
32 | };
33 |
34 | constructor(props) {
35 | super(props);
36 | this.state = {
37 | title:'',
38 | thread: '',
39 | entry: '',
40 | feature: '',
41 | run:1,
42 | clip:1,
43 | };
44 | this.run = new MKRadioButton.Group();
45 | this.clip = new MKRadioButton.Group();
46 | }
47 |
48 | _gatherInfo() {
49 | return this.state;
50 | }
51 |
52 | _changeRadio(state, group, index) {
53 | this.setState({
54 | [group]:index,
55 | });
56 | }
57 |
58 | render() {
59 | return(
60 |
61 | HISAT Hierarchical Indexing for Spliced Alignment of Transcripts
62 | Configurations:
63 |
64 | {this._num.focus();}}
70 | />
71 |
72 | task name
73 |
74 | this._num = component}
76 | placeholder="number of thread"
77 | keyboardType = "number-pad"
78 | defaultValue = "4"
79 | style = {styles.input}
80 | />
81 |
82 | number of thread
83 |
84 |
90 |
91 | maximum queue entry
92 |
93 | this.setState({feature:text})}
98 | />
99 |
100 | feature type
101 |
102 |
103 | this._changeRadio(state,'run',1)}
107 | />
108 | alignReads
109 |
110 |
111 | this._changeRadio(state,'run',2)}
115 | />
116 | genomeGenerate
117 |
118 |
119 | this._changeRadio(state,'run',3)}
123 | />
124 | inputAlignmentsFromBAM
125 |
126 |
127 | run mode
128 |
129 |
130 | this._changeRadio(state,'clip',1)}
134 | />
135 | true
136 |
137 |
138 | this._changeRadio(state,'clip',2)}
142 | />
143 | false
144 |
145 |
146 | align soft clip
147 | HISAT is a fast and sensitive spliced alignment program for mapping RNA-seq reads. In addition to one global FM index that represents a whole genome, HISAT uses a large set of small FM indexes that collectively cover the whole genome (each index represents a genomic region of ~64,000 bp and ~48,000 indexes are needed to cover the human genome). These small indexes (called local indexes) combined with several alignment strategies enable effective alignment of RNA-seq reads, in particular, reads spanning multiple exons. The memory footprint of HISAT is relatively low (~4.3GB for the human genome). We have developed HISAT based on the Bowtie2 implementation to handle most of the operations on the FM index.
148 | Version: 1.0
149 | Author:The Center for Computational Biology
150 | Publish-date: 2016-05-09
151 | Source-Language: Python
152 | Category: Alignment
153 | Tags: Alignment, HISAT, FASTQ, SAM, BAM
154 |
155 | );
156 | }
157 | }
158 |
159 | const styles = StyleSheet.create({
160 | configContainer:{
161 | padding: 15,
162 | },
163 | configTitle:{
164 | fontSize:18,
165 | fontWeight:'500',
166 | paddingBottom:15,
167 | },
168 | configTitleSmall:{
169 | fontSize:14,
170 | fontWeight:'300',
171 | },
172 | configDes:{
173 | fontSize: 14,
174 | fontWeight:'300',
175 | paddingBottom: 15,
176 | marginTop: 20,
177 | },
178 | configInfo:{
179 | fontSize:14,
180 | fontWeight:'500',
181 | paddingBottom:5,
182 | },
183 | configInfoSmall:{
184 | fontSize:14,
185 | fontWeight:'300',
186 | },
187 | textfield:{
188 | marginTop:5,
189 | width:Util.size.width - 30,
190 | borderBottomWidth:2,
191 | borderBottomColor: MKColor.LightGreen,
192 | },
193 | radioContainer:{
194 | flexDirection:'row',
195 | alignItems:'center',
196 | },
197 | input:{
198 | width: Util.size.width - 30,
199 | fontSize: 16,
200 | height: 30,
201 | paddingLeft:10,
202 | },
203 | textfieldText:{
204 | color:'#555',
205 | fontSize:12,
206 | }
207 | })
--------------------------------------------------------------------------------
/view/setting.js:
--------------------------------------------------------------------------------
1 | /**
2 | * settings
3 | */
4 | 'use strict'
5 |
6 | import React, { Component } from 'react';
7 | import {
8 | ActionSheetIOS,
9 | NavigatorIOS,
10 | ScrollView,
11 | StyleSheet,
12 | Text,
13 | TouchableHighlight,
14 | View,
15 | WebView,
16 | } from 'react-native';
17 | import Util from './utils';
18 | import Icon from 'react-native-vector-icons/Ionicons';
19 | import {
20 | MKTextField,
21 | MKColor,
22 | MKButton,
23 | mdl,
24 | } from 'react-native-material-kit';
25 |
26 | class Help extends Component{
27 | render() {
28 | return(
29 |
37 | )
38 | }
39 | }
40 |
41 | class About extends Component{
42 | render() {
43 | return(
44 |
45 | Gene is ...
46 |
47 | )
48 | }
49 | }
50 |
51 | class Reset extends Component{
52 | constructor() {
53 | super();
54 | this.state = {
55 | current:"",
56 | new:"",
57 | };
58 | }
59 |
60 | _updatePassword() {
61 | // fetch
62 | // update password
63 | }
64 |
65 | render() {
66 | return(
67 |
68 | this.setState({current:text})}
75 | onSubmitEditing={(event) => {this._new.focus();}}
76 | />
77 | this._new = component}
81 | placeholder="new password"
82 | style={styles.textfield}
83 | onChangeText={(text) => this.setState({new:text})}
84 | onSubmitEditing={(event) => {this._updatePassword();}}
85 | />
86 | this._updatePassword()}
94 | >
95 |
99 | Change password
100 |
101 |
102 |
103 | )
104 | }
105 | }
106 |
107 | export default class extends Component{
108 | _onResetPress() {
109 | this.props.navigator.push({
110 | title:"Change Password",
111 | tintColor:'#f5f5f5',
112 | barTintColor:'#8bc34a',
113 | titleTextColor:'#fff',
114 | component: Reset,
115 | });
116 | }
117 |
118 | _onHelpPress() {
119 | this.props.navigator.push({
120 | title:"Help Center",
121 | tintColor:'#f5f5f5',
122 | barTintColor:'#8bc34a',
123 | titleTextColor:'#fff',
124 | component: Help,
125 | });
126 | }
127 |
128 | _onSharePress() {
129 | ActionSheetIOS.showShareActionSheetWithOptions({
130 | url: "http://gene.city.edu.hk",
131 | message: "Gene Sequencing Analysis",
132 | },
133 | (error) => console.log(error),
134 | (success, method) => {
135 | });
136 | }
137 |
138 | _onAboutPress() {
139 | this.props.navigator.push({
140 | title:"About Gene",
141 | tintColor:'#f5f5f5',
142 | barTintColor:'#8bc34a',
143 | titleTextColor:'#fff',
144 | component: About,
145 | });
146 | }
147 |
148 | render() {
149 | return(
150 |
151 |
152 | Settings
153 | this._onResetPress()}>
154 |
155 |
156 | Change password
157 |
158 |
159 |
160 | this._onHelpPress()}>
161 |
162 |
163 | Help center
164 |
165 |
166 |
167 | this._onSharePress()}>
168 |
169 |
170 | Share this app
171 |
172 |
173 |
174 | this._onAboutPress()}>
175 |
176 |
177 | About Gene
178 |
179 |
180 |
181 | this.props.exitGene()}
189 | >
190 |
194 | Log out
195 |
196 |
197 |
198 |
199 | )
200 | }
201 | }
202 |
203 | const styles = StyleSheet.create({
204 | settingContainer:{
205 | width: Util.size.width,
206 | height: Util.size.height - 145,
207 | backgroundColor:'#f5f5f5',
208 | },
209 | setting:{
210 | paddingTop:10,
211 | paddingBottom:70,
212 | },
213 | tabTitle:{
214 | paddingLeft:10,
215 | marginBottom:10,
216 | },
217 | itemNavMenu:{
218 | position:"absolute",
219 | top:12,
220 | right:20,
221 | color: "#bbb",
222 | backgroundColor:"transparent"
223 | },
224 | itemNavText:{
225 | position:"absolute",
226 | top:13,
227 | right:30,
228 | color: "#777",
229 | backgroundColor:"transparent"
230 | },
231 | userMenuContainer:{
232 | height:45,
233 | borderTopWidth: Util.pixel,
234 | borderTopColor:"#bbb",
235 | borderBottomWidth: Util.pixel,
236 | borderBottomColor:"#bbb",
237 | backgroundColor:"#fff",
238 | flex:1,
239 | marginBottom:20,
240 | },
241 | userMenu:{
242 | paddingLeft:50,
243 | height:45,
244 | justifyContent:'center',
245 | },
246 | itemNavIcon:{
247 | position:"absolute",
248 | top:12,
249 | left:20,
250 | color: "#454545",
251 | backgroundColor:"transparent"
252 | },
253 | aboutText:{
254 | marginTop:80,
255 | paddingLeft: 15,
256 | paddingRight: 15,
257 | },
258 | aboutContainer:{
259 | width: Util.size.width,
260 | height: Util.size.height,
261 | backgroundColor:'#f5f5f5',
262 | },
263 | resetContainer:{
264 | width: Util.size.width,
265 | height: Util.size.height,
266 | paddingTop: 80,
267 | backgroundColor:'#f5f5f5',
268 | alignItems:'center',
269 | },
270 | logoutBtn: {
271 | marginTop:20,
272 | height:35,
273 | width:Util.size.width -80,
274 | alignItems:'center',
275 | justifyContent:'center',
276 | marginLeft:40,
277 | },
278 | resetBtn: {
279 | marginTop:35,
280 | height:35,
281 | width:Util.size.width -80,
282 | alignItems:'center',
283 | justifyContent:'center',
284 | },
285 | textfield:{
286 | marginTop:20,
287 | height:35,
288 | width:Util.size.width -80,
289 | },
290 | })
--------------------------------------------------------------------------------
/view/main.js:
--------------------------------------------------------------------------------
1 | /**
2 | * main of GENE
3 | */
4 | 'use strict'
5 |
6 | import React, { Component } from 'react';
7 | import {
8 | AlertIOS,
9 | Animated,
10 | Image,
11 | Modal,
12 | NavigatorIOS,
13 | RefreshControl,
14 | ScrollView,
15 | StyleSheet,
16 | StatusBar,
17 | Text,
18 | TouchableHighlight,
19 | TouchableOpacity,
20 | View,
21 | WebView
22 | } from 'react-native';
23 | import Util from './utils';
24 | import {
25 | getTheme,
26 | setTheme,
27 | MKColor,
28 | MKCheckbox,
29 | MKButton,
30 | MKTextField,
31 | mdl,
32 | } from 'react-native-material-kit';
33 | import Icon from 'react-native-vector-icons/Ionicons';
34 | import ScrollableTabView from 'react-native-scrollable-tab-view';
35 |
36 | import Task from './task';
37 | import Config from './config';
38 | import Report from './report';
39 | import Setting from './setting';
40 | import Network from './network';
41 | import Module from './module';
42 |
43 | const theme = getTheme();
44 |
45 | const FloatInput = mdl.Textfield.textfieldWithFloatingLabel().build();
46 |
47 | class UserInfo extends Component{
48 | constructor(props){
49 | super(props);
50 | this.state = {
51 | username: this.props.username,
52 | };
53 | }
54 |
55 | render() {
56 | return(
57 |
58 |
59 |
60 |
61 | {this.state.username.charAt(0).toUpperCase()}
62 |
63 |
64 | {this.state.username}
65 | fangwei716@gmail.com
66 |
67 |
68 |
69 | )
70 | }
71 | }
72 |
73 | const TabBar = React.createClass({
74 | selectedTabIcons: [],
75 | unselectedTabIcons: [],
76 |
77 | propTypes: {
78 | goToPage: React.PropTypes.func,
79 | activeTab: React.PropTypes.number,
80 | tabs: React.PropTypes.array
81 | },
82 |
83 | renderTabOption(name, page) {
84 | var isTabActive = this.props.activeTab === page;
85 |
86 | return (
87 | this.props.goToPage(page)} style={styles.tab}>
88 | { this.selectedTabIcons[page] = icon }}/>
90 | { this.unselectedTabIcons[page] = icon }}/>
92 |
93 | );
94 | },
95 |
96 | componentDidMount() {
97 | this.setAnimationValue({value: this.props.activeTab});
98 | this._listener = this.props.scrollValue.addListener(this.setAnimationValue);
99 | },
100 |
101 | setAnimationValue({value}) {
102 | var currentPage = this.props.activeTab;
103 |
104 | this.unselectedTabIcons.forEach((icon, i) => {
105 | var iconRef = icon;
106 |
107 | if (!icon.setNativeProps && icon !== null) {
108 | iconRef = icon.refs.icon_image
109 | }
110 |
111 | if (value - i >= 0 && value - i <= 1) {
112 | iconRef.setNativeProps({ style: {opacity: value - i} });
113 | }
114 | if (i - value >= 0 && i - value <= 1) {
115 | iconRef.setNativeProps({ style: {opacity: i - value} });
116 | }
117 | });
118 | },
119 |
120 | render() {
121 | var containerWidth = this.props.containerWidth;
122 | var numberOfTabs = this.props.tabs.length;
123 | var tabUnderlineStyle = {
124 | position: 'absolute',
125 | width: containerWidth / numberOfTabs,
126 | height: 2,
127 | backgroundColor: '#8bc34a',
128 | bottom: 0,
129 | };
130 |
131 | var left = this.props.scrollValue.interpolate({
132 | inputRange: [0, 1], outputRange: [0, containerWidth / numberOfTabs]
133 | });
134 |
135 | return (
136 |
137 |
138 | {this.props.tabs.map((tab, i) => this.renderTabOption(tab, i))}
139 |
140 |
141 |
142 | );
143 | },
144 | });
145 |
146 | class TabView extends Component{
147 | render() {
148 | return(
149 |
150 | }>
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 | )
160 | }
161 | }
162 |
163 | class MainView extends Component{
164 | constructor(props) {
165 | super(props);
166 | this.state = {
167 | showModal: false,
168 | modalTitle: '',
169 | }
170 | }
171 |
172 | componentDidMount() {
173 | StatusBar.setBarStyle(1);
174 | }
175 |
176 | _hideModal() {
177 | this.setState({
178 | showModal: false,
179 | });
180 | }
181 |
182 | render() {
183 | const { modules,moduleChecked,taskConfiguration } = this.state;
184 |
185 | return(
186 |
187 |
188 |
189 |
193 | this._hideModal()}
196 | />
197 |
198 |
199 | {
207 | AlertIOS.prompt(
208 | 'Add Task',
209 | 'Please enter the name for your task.',
210 | [
211 | {text: 'Cancel', onPress: () => console.log('Cancel Pressed'), style: 'cancel'},
212 | {text: 'OK', onPress: (title) => {
213 | this.setState({showModal:true,modalTitle:title})
214 | }},
215 | ],
216 | 'plain-text',
217 | 'New task'
218 | );
219 | }}
220 | >
221 |
222 |
223 |
224 |
225 | )
226 | }
227 | }
228 |
229 | export default class extends Component{
230 | render() {
231 | return(
232 |
244 | );
245 | }
246 | }
247 |
248 | const styles = StyleSheet.create({
249 | container: {
250 | flex: 1,
251 | backgroundColor: '#fff',
252 | width: Util.size.width,
253 | height: Util.size.height,
254 | },
255 | card:{
256 | width:Util.size.width,
257 | alignItems: 'stretch',
258 | height:100,
259 | padding:0,
260 | },
261 | iconLetter:{
262 | height:50,
263 | width:50,
264 | borderRadius:25,
265 | marginTop: 20,
266 | marginBottom:10,
267 | alignItems:'center',
268 | justifyContent:'center',
269 | backgroundColor: 'rgba(0,0,0,0.3)',
270 | position:'absolute',
271 | left:15,
272 | top:15,
273 | },
274 | iconText:{
275 | fontSize:30,
276 | color:'#fff',
277 | backgroundColor:'transparent',
278 | },
279 | usernameContainer:{
280 | position:'absolute',
281 | left:80,
282 | top:60,
283 | backgroundColor:'transparent',
284 | flexDirection:'row',
285 | },
286 | username:{
287 | fontSize:16,
288 | fontWeight:'500',
289 | },
290 | email:{
291 | fontSize:12,
292 | fontWeight:'400',
293 | paddingLeft:10,
294 | paddingTop:4,
295 | },
296 | col: {
297 | flex: 1,
298 | flexDirection: 'column',
299 | marginLeft: 7, marginRight: 7,
300 | },
301 | addBtn:{
302 | position:'absolute',
303 | right:25,
304 | bottom:25,
305 | },
306 | action:{
307 | width:50,
308 | height:50,
309 | borderRadius:25,
310 | alignItems:'center',
311 | justifyContent:'center',
312 | },
313 | actionIcon:{
314 | backgroundColor:'transparent',
315 | },
316 | tab: {
317 | flex: 1,
318 | alignItems: 'center',
319 | justifyContent: 'center',
320 | paddingBottom: 10,
321 | },
322 | tabs: {
323 | height: 45,
324 | flexDirection: 'row',
325 | paddingTop: 7,
326 | borderWidth: 1,
327 | borderTopWidth: 0,
328 | borderLeftWidth: 0,
329 | borderRightWidth: 0,
330 | borderBottomColor: 'rgba(0,0,0,0.05)',
331 | backgroundColor:"#fff",
332 | },
333 | icon: {
334 | position: 'absolute',
335 | top: 0,
336 | left: 27,
337 | },
338 | iconContainer:{
339 | flexDirection:"row",
340 | justifyContent:"space-between",
341 | width:60,
342 | },
343 | })
--------------------------------------------------------------------------------
/ios/gene.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; };
11 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; };
12 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; };
13 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; };
14 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; };
15 | 00E356F31AD99517003FC87E /* geneTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* geneTests.m */; };
16 | 12EE67CC3BE64B01925CBE96 /* Zocial.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 4374AD283C7B45AEAD09B9F4 /* Zocial.ttf */; };
17 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; };
18 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; };
19 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; };
20 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
21 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; };
22 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
23 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
24 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
25 | 26527B0C6F1F4957A83DA152 /* EvilIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = B8E6E5B6E24B4140B9357761 /* EvilIcons.ttf */; };
26 | 273AF7AF47D64CC2AB271965 /* FontAwesome.ttf in Resources */ = {isa = PBXBuildFile; fileRef = E264292F1FF94E18A98E08B3 /* FontAwesome.ttf */; };
27 | 536ECE614A074E4E843B8055 /* MaterialIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 646CE902ED6245C3A8DCAFA2 /* MaterialIcons.ttf */; };
28 | 598C7ED41CE639F900A6A54B /* libRCTMaterialKit.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 598C7ED31CE639F100A6A54B /* libRCTMaterialKit.a */; };
29 | 598C7EF61CE6733900A6A54B /* libTouchID.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 598C7EF51CE6730600A6A54B /* libTouchID.a */; };
30 | 7D231DE9640249B1ACD51B6A /* Ionicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = FDF98E53D6454A519A263E51 /* Ionicons.ttf */; };
31 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; };
32 | 868F09DC2A5D4E9B96B6A90F /* libRNVectorIcons.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 59C29EE3DE3540F3A5C5D876 /* libRNVectorIcons.a */; };
33 | 9910F4EA6065497F9F655C9D /* Entypo.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 84B879ECD39E4C0385145312 /* Entypo.ttf */; };
34 | 9BB34C54567C4756B496FCDB /* Foundation.ttf in Resources */ = {isa = PBXBuildFile; fileRef = E6BC605A1A594DB7ADF8F6CE /* Foundation.ttf */; };
35 | A3847EF4DAEB4DFE8C2A3ED8 /* Octicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = D62E6812FE2D48138F8E7227 /* Octicons.ttf */; };
36 | /* End PBXBuildFile section */
37 |
38 | /* Begin PBXContainerItemProxy section */
39 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = {
40 | isa = PBXContainerItemProxy;
41 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */;
42 | proxyType = 2;
43 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
44 | remoteInfo = RCTActionSheet;
45 | };
46 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = {
47 | isa = PBXContainerItemProxy;
48 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */;
49 | proxyType = 2;
50 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
51 | remoteInfo = RCTGeolocation;
52 | };
53 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = {
54 | isa = PBXContainerItemProxy;
55 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
56 | proxyType = 2;
57 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676;
58 | remoteInfo = RCTImage;
59 | };
60 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = {
61 | isa = PBXContainerItemProxy;
62 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
63 | proxyType = 2;
64 | remoteGlobalIDString = 58B511DB1A9E6C8500147676;
65 | remoteInfo = RCTNetwork;
66 | };
67 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = {
68 | isa = PBXContainerItemProxy;
69 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */;
70 | proxyType = 2;
71 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7;
72 | remoteInfo = RCTVibration;
73 | };
74 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = {
75 | isa = PBXContainerItemProxy;
76 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
77 | proxyType = 1;
78 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A;
79 | remoteInfo = gene;
80 | };
81 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = {
82 | isa = PBXContainerItemProxy;
83 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
84 | proxyType = 2;
85 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
86 | remoteInfo = RCTSettings;
87 | };
88 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = {
89 | isa = PBXContainerItemProxy;
90 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
91 | proxyType = 2;
92 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A;
93 | remoteInfo = RCTWebSocket;
94 | };
95 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = {
96 | isa = PBXContainerItemProxy;
97 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
98 | proxyType = 2;
99 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192;
100 | remoteInfo = React;
101 | };
102 | 598C7ED21CE639F100A6A54B /* PBXContainerItemProxy */ = {
103 | isa = PBXContainerItemProxy;
104 | containerPortal = 598C7ECE1CE639F100A6A54B /* RCTMaterialKit.xcodeproj */;
105 | proxyType = 2;
106 | remoteGlobalIDString = 8A1B8E771B22E4E300DB45C2;
107 | remoteInfo = RCTMaterialKit;
108 | };
109 | 598C7EEE1CE63B0C00A6A54B /* PBXContainerItemProxy */ = {
110 | isa = PBXContainerItemProxy;
111 | containerPortal = 775BB0F566C44628B676B800 /* RNVectorIcons.xcodeproj */;
112 | proxyType = 2;
113 | remoteGlobalIDString = 5DBEB1501B18CEA900B34395;
114 | remoteInfo = RNVectorIcons;
115 | };
116 | 598C7EF41CE6730600A6A54B /* PBXContainerItemProxy */ = {
117 | isa = PBXContainerItemProxy;
118 | containerPortal = 598C7EF01CE6730600A6A54B /* TouchID.xcodeproj */;
119 | proxyType = 2;
120 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
121 | remoteInfo = TouchID;
122 | };
123 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = {
124 | isa = PBXContainerItemProxy;
125 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
126 | proxyType = 2;
127 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
128 | remoteInfo = RCTLinking;
129 | };
130 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = {
131 | isa = PBXContainerItemProxy;
132 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
133 | proxyType = 2;
134 | remoteGlobalIDString = 58B5119B1A9E6C1200147676;
135 | remoteInfo = RCTText;
136 | };
137 | /* End PBXContainerItemProxy section */
138 |
139 | /* Begin PBXFileReference section */
140 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; };
141 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; };
142 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; };
143 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; };
144 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; };
145 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; };
146 | 00E356EE1AD99517003FC87E /* geneTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = geneTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
147 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
148 | 00E356F21AD99517003FC87E /* geneTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = geneTests.m; sourceTree = ""; };
149 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; };
150 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; };
151 | 13B07F961A680F5B00A75B9A /* gene.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = gene.app; sourceTree = BUILT_PRODUCTS_DIR; };
152 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = gene/AppDelegate.h; sourceTree = ""; };
153 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = gene/AppDelegate.m; sourceTree = ""; };
154 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; };
155 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = gene/Images.xcassets; sourceTree = ""; };
156 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = gene/Info.plist; sourceTree = ""; };
157 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = gene/main.m; sourceTree = ""; };
158 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; };
159 | 4374AD283C7B45AEAD09B9F4 /* Zocial.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Zocial.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Zocial.ttf"; sourceTree = ""; };
160 | 598C7ECE1CE639F100A6A54B /* RCTMaterialKit.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTMaterialKit.xcodeproj; path = "../node_modules/react-native-material-kit/iOS/RCTMaterialKit.xcodeproj"; sourceTree = ""; };
161 | 598C7EF01CE6730600A6A54B /* TouchID.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = TouchID.xcodeproj; path = "../node_modules/react-native-touch-id/TouchID.xcodeproj"; sourceTree = ""; };
162 | 59C29EE3DE3540F3A5C5D876 /* libRNVectorIcons.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRNVectorIcons.a; sourceTree = ""; };
163 | 646CE902ED6245C3A8DCAFA2 /* MaterialIcons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = MaterialIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/MaterialIcons.ttf"; sourceTree = ""; };
164 | 775BB0F566C44628B676B800 /* RNVectorIcons.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RNVectorIcons.xcodeproj; path = "../node_modules/react-native-vector-icons/RNVectorIcons.xcodeproj"; sourceTree = ""; };
165 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; };
166 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; };
167 | 84B879ECD39E4C0385145312 /* Entypo.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Entypo.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Entypo.ttf"; sourceTree = ""; };
168 | B8E6E5B6E24B4140B9357761 /* EvilIcons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = EvilIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/EvilIcons.ttf"; sourceTree = ""; };
169 | D62E6812FE2D48138F8E7227 /* Octicons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Octicons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Octicons.ttf"; sourceTree = ""; };
170 | E264292F1FF94E18A98E08B3 /* FontAwesome.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = FontAwesome.ttf; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome.ttf"; sourceTree = ""; };
171 | E6BC605A1A594DB7ADF8F6CE /* Foundation.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Foundation.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Foundation.ttf"; sourceTree = ""; };
172 | FDF98E53D6454A519A263E51 /* Ionicons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Ionicons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Ionicons.ttf"; sourceTree = ""; };
173 | /* End PBXFileReference section */
174 |
175 | /* Begin PBXFrameworksBuildPhase section */
176 | 00E356EB1AD99517003FC87E /* Frameworks */ = {
177 | isa = PBXFrameworksBuildPhase;
178 | buildActionMask = 2147483647;
179 | files = (
180 | );
181 | runOnlyForDeploymentPostprocessing = 0;
182 | };
183 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
184 | isa = PBXFrameworksBuildPhase;
185 | buildActionMask = 2147483647;
186 | files = (
187 | 598C7EF61CE6733900A6A54B /* libTouchID.a in Frameworks */,
188 | 598C7ED41CE639F900A6A54B /* libRCTMaterialKit.a in Frameworks */,
189 | 146834051AC3E58100842450 /* libReact.a in Frameworks */,
190 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */,
191 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */,
192 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */,
193 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */,
194 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */,
195 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */,
196 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */,
197 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */,
198 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */,
199 | 868F09DC2A5D4E9B96B6A90F /* libRNVectorIcons.a in Frameworks */,
200 | );
201 | runOnlyForDeploymentPostprocessing = 0;
202 | };
203 | /* End PBXFrameworksBuildPhase section */
204 |
205 | /* Begin PBXGroup section */
206 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = {
207 | isa = PBXGroup;
208 | children = (
209 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */,
210 | );
211 | name = Products;
212 | sourceTree = "";
213 | };
214 | 00C302B61ABCB90400DB3ED1 /* Products */ = {
215 | isa = PBXGroup;
216 | children = (
217 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */,
218 | );
219 | name = Products;
220 | sourceTree = "";
221 | };
222 | 00C302BC1ABCB91800DB3ED1 /* Products */ = {
223 | isa = PBXGroup;
224 | children = (
225 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */,
226 | );
227 | name = Products;
228 | sourceTree = "";
229 | };
230 | 00C302D41ABCB9D200DB3ED1 /* Products */ = {
231 | isa = PBXGroup;
232 | children = (
233 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */,
234 | );
235 | name = Products;
236 | sourceTree = "";
237 | };
238 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = {
239 | isa = PBXGroup;
240 | children = (
241 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */,
242 | );
243 | name = Products;
244 | sourceTree = "";
245 | };
246 | 00E356EF1AD99517003FC87E /* geneTests */ = {
247 | isa = PBXGroup;
248 | children = (
249 | 00E356F21AD99517003FC87E /* geneTests.m */,
250 | 00E356F01AD99517003FC87E /* Supporting Files */,
251 | );
252 | path = geneTests;
253 | sourceTree = "";
254 | };
255 | 00E356F01AD99517003FC87E /* Supporting Files */ = {
256 | isa = PBXGroup;
257 | children = (
258 | 00E356F11AD99517003FC87E /* Info.plist */,
259 | );
260 | name = "Supporting Files";
261 | sourceTree = "";
262 | };
263 | 139105B71AF99BAD00B5F7CC /* Products */ = {
264 | isa = PBXGroup;
265 | children = (
266 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */,
267 | );
268 | name = Products;
269 | sourceTree = "";
270 | };
271 | 139FDEE71B06529A00C62182 /* Products */ = {
272 | isa = PBXGroup;
273 | children = (
274 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */,
275 | );
276 | name = Products;
277 | sourceTree = "";
278 | };
279 | 13B07FAE1A68108700A75B9A /* gene */ = {
280 | isa = PBXGroup;
281 | children = (
282 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */,
283 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */,
284 | 13B07FB01A68108700A75B9A /* AppDelegate.m */,
285 | 13B07FB51A68108700A75B9A /* Images.xcassets */,
286 | 13B07FB61A68108700A75B9A /* Info.plist */,
287 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */,
288 | 13B07FB71A68108700A75B9A /* main.m */,
289 | );
290 | name = gene;
291 | sourceTree = "";
292 | };
293 | 146834001AC3E56700842450 /* Products */ = {
294 | isa = PBXGroup;
295 | children = (
296 | 146834041AC3E56700842450 /* libReact.a */,
297 | );
298 | name = Products;
299 | sourceTree = "";
300 | };
301 | 1ACA09948B4945E08AB4C429 /* Resources */ = {
302 | isa = PBXGroup;
303 | children = (
304 | 84B879ECD39E4C0385145312 /* Entypo.ttf */,
305 | B8E6E5B6E24B4140B9357761 /* EvilIcons.ttf */,
306 | E264292F1FF94E18A98E08B3 /* FontAwesome.ttf */,
307 | E6BC605A1A594DB7ADF8F6CE /* Foundation.ttf */,
308 | FDF98E53D6454A519A263E51 /* Ionicons.ttf */,
309 | 646CE902ED6245C3A8DCAFA2 /* MaterialIcons.ttf */,
310 | D62E6812FE2D48138F8E7227 /* Octicons.ttf */,
311 | 4374AD283C7B45AEAD09B9F4 /* Zocial.ttf */,
312 | );
313 | name = Resources;
314 | sourceTree = "";
315 | };
316 | 598C7ECF1CE639F100A6A54B /* Products */ = {
317 | isa = PBXGroup;
318 | children = (
319 | 598C7ED31CE639F100A6A54B /* libRCTMaterialKit.a */,
320 | );
321 | name = Products;
322 | sourceTree = "";
323 | };
324 | 598C7EE01CE63B0C00A6A54B /* Products */ = {
325 | isa = PBXGroup;
326 | children = (
327 | 598C7EEF1CE63B0C00A6A54B /* libRNVectorIcons.a */,
328 | );
329 | name = Products;
330 | sourceTree = "";
331 | };
332 | 598C7EF11CE6730600A6A54B /* Products */ = {
333 | isa = PBXGroup;
334 | children = (
335 | 598C7EF51CE6730600A6A54B /* libTouchID.a */,
336 | );
337 | name = Products;
338 | sourceTree = "";
339 | };
340 | 78C398B11ACF4ADC00677621 /* Products */ = {
341 | isa = PBXGroup;
342 | children = (
343 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */,
344 | );
345 | name = Products;
346 | sourceTree = "";
347 | };
348 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = {
349 | isa = PBXGroup;
350 | children = (
351 | 598C7EF01CE6730600A6A54B /* TouchID.xcodeproj */,
352 | 598C7ECE1CE639F100A6A54B /* RCTMaterialKit.xcodeproj */,
353 | 146833FF1AC3E56700842450 /* React.xcodeproj */,
354 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */,
355 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */,
356 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */,
357 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */,
358 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */,
359 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */,
360 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */,
361 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */,
362 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */,
363 | 775BB0F566C44628B676B800 /* RNVectorIcons.xcodeproj */,
364 | );
365 | name = Libraries;
366 | sourceTree = "";
367 | };
368 | 832341B11AAA6A8300B99B32 /* Products */ = {
369 | isa = PBXGroup;
370 | children = (
371 | 832341B51AAA6A8300B99B32 /* libRCTText.a */,
372 | );
373 | name = Products;
374 | sourceTree = "";
375 | };
376 | 83CBB9F61A601CBA00E9B192 = {
377 | isa = PBXGroup;
378 | children = (
379 | 13B07FAE1A68108700A75B9A /* gene */,
380 | 832341AE1AAA6A7D00B99B32 /* Libraries */,
381 | 00E356EF1AD99517003FC87E /* geneTests */,
382 | 83CBBA001A601CBA00E9B192 /* Products */,
383 | 1ACA09948B4945E08AB4C429 /* Resources */,
384 | );
385 | indentWidth = 2;
386 | sourceTree = "";
387 | tabWidth = 2;
388 | };
389 | 83CBBA001A601CBA00E9B192 /* Products */ = {
390 | isa = PBXGroup;
391 | children = (
392 | 13B07F961A680F5B00A75B9A /* gene.app */,
393 | 00E356EE1AD99517003FC87E /* geneTests.xctest */,
394 | );
395 | name = Products;
396 | sourceTree = "";
397 | };
398 | /* End PBXGroup section */
399 |
400 | /* Begin PBXNativeTarget section */
401 | 00E356ED1AD99517003FC87E /* geneTests */ = {
402 | isa = PBXNativeTarget;
403 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "geneTests" */;
404 | buildPhases = (
405 | 00E356EA1AD99517003FC87E /* Sources */,
406 | 00E356EB1AD99517003FC87E /* Frameworks */,
407 | 00E356EC1AD99517003FC87E /* Resources */,
408 | );
409 | buildRules = (
410 | );
411 | dependencies = (
412 | 00E356F51AD99517003FC87E /* PBXTargetDependency */,
413 | );
414 | name = geneTests;
415 | productName = geneTests;
416 | productReference = 00E356EE1AD99517003FC87E /* geneTests.xctest */;
417 | productType = "com.apple.product-type.bundle.unit-test";
418 | };
419 | 13B07F861A680F5B00A75B9A /* gene */ = {
420 | isa = PBXNativeTarget;
421 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "gene" */;
422 | buildPhases = (
423 | 13B07F871A680F5B00A75B9A /* Sources */,
424 | 13B07F8C1A680F5B00A75B9A /* Frameworks */,
425 | 13B07F8E1A680F5B00A75B9A /* Resources */,
426 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
427 | );
428 | buildRules = (
429 | );
430 | dependencies = (
431 | );
432 | name = gene;
433 | productName = "Hello World";
434 | productReference = 13B07F961A680F5B00A75B9A /* gene.app */;
435 | productType = "com.apple.product-type.application";
436 | };
437 | /* End PBXNativeTarget section */
438 |
439 | /* Begin PBXProject section */
440 | 83CBB9F71A601CBA00E9B192 /* Project object */ = {
441 | isa = PBXProject;
442 | attributes = {
443 | LastUpgradeCheck = 730;
444 | ORGANIZATIONNAME = Facebook;
445 | TargetAttributes = {
446 | 00E356ED1AD99517003FC87E = {
447 | CreatedOnToolsVersion = 6.2;
448 | TestTargetID = 13B07F861A680F5B00A75B9A;
449 | };
450 | 13B07F861A680F5B00A75B9A = {
451 | DevelopmentTeam = GS9JFDA578;
452 | };
453 | };
454 | };
455 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "gene" */;
456 | compatibilityVersion = "Xcode 3.2";
457 | developmentRegion = English;
458 | hasScannedForEncodings = 0;
459 | knownRegions = (
460 | en,
461 | Base,
462 | );
463 | mainGroup = 83CBB9F61A601CBA00E9B192;
464 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
465 | projectDirPath = "";
466 | projectReferences = (
467 | {
468 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */;
469 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */;
470 | },
471 | {
472 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */;
473 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */;
474 | },
475 | {
476 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */;
477 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
478 | },
479 | {
480 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */;
481 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
482 | },
483 | {
484 | ProductGroup = 598C7ECF1CE639F100A6A54B /* Products */;
485 | ProjectRef = 598C7ECE1CE639F100A6A54B /* RCTMaterialKit.xcodeproj */;
486 | },
487 | {
488 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */;
489 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
490 | },
491 | {
492 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */;
493 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
494 | },
495 | {
496 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */;
497 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
498 | },
499 | {
500 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */;
501 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */;
502 | },
503 | {
504 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */;
505 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
506 | },
507 | {
508 | ProductGroup = 146834001AC3E56700842450 /* Products */;
509 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */;
510 | },
511 | {
512 | ProductGroup = 598C7EE01CE63B0C00A6A54B /* Products */;
513 | ProjectRef = 775BB0F566C44628B676B800 /* RNVectorIcons.xcodeproj */;
514 | },
515 | {
516 | ProductGroup = 598C7EF11CE6730600A6A54B /* Products */;
517 | ProjectRef = 598C7EF01CE6730600A6A54B /* TouchID.xcodeproj */;
518 | },
519 | );
520 | projectRoot = "";
521 | targets = (
522 | 13B07F861A680F5B00A75B9A /* gene */,
523 | 00E356ED1AD99517003FC87E /* geneTests */,
524 | );
525 | };
526 | /* End PBXProject section */
527 |
528 | /* Begin PBXReferenceProxy section */
529 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = {
530 | isa = PBXReferenceProxy;
531 | fileType = archive.ar;
532 | path = libRCTActionSheet.a;
533 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */;
534 | sourceTree = BUILT_PRODUCTS_DIR;
535 | };
536 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = {
537 | isa = PBXReferenceProxy;
538 | fileType = archive.ar;
539 | path = libRCTGeolocation.a;
540 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */;
541 | sourceTree = BUILT_PRODUCTS_DIR;
542 | };
543 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = {
544 | isa = PBXReferenceProxy;
545 | fileType = archive.ar;
546 | path = libRCTImage.a;
547 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */;
548 | sourceTree = BUILT_PRODUCTS_DIR;
549 | };
550 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = {
551 | isa = PBXReferenceProxy;
552 | fileType = archive.ar;
553 | path = libRCTNetwork.a;
554 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */;
555 | sourceTree = BUILT_PRODUCTS_DIR;
556 | };
557 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = {
558 | isa = PBXReferenceProxy;
559 | fileType = archive.ar;
560 | path = libRCTVibration.a;
561 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */;
562 | sourceTree = BUILT_PRODUCTS_DIR;
563 | };
564 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = {
565 | isa = PBXReferenceProxy;
566 | fileType = archive.ar;
567 | path = libRCTSettings.a;
568 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */;
569 | sourceTree = BUILT_PRODUCTS_DIR;
570 | };
571 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = {
572 | isa = PBXReferenceProxy;
573 | fileType = archive.ar;
574 | path = libRCTWebSocket.a;
575 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */;
576 | sourceTree = BUILT_PRODUCTS_DIR;
577 | };
578 | 146834041AC3E56700842450 /* libReact.a */ = {
579 | isa = PBXReferenceProxy;
580 | fileType = archive.ar;
581 | path = libReact.a;
582 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */;
583 | sourceTree = BUILT_PRODUCTS_DIR;
584 | };
585 | 598C7ED31CE639F100A6A54B /* libRCTMaterialKit.a */ = {
586 | isa = PBXReferenceProxy;
587 | fileType = archive.ar;
588 | path = libRCTMaterialKit.a;
589 | remoteRef = 598C7ED21CE639F100A6A54B /* PBXContainerItemProxy */;
590 | sourceTree = BUILT_PRODUCTS_DIR;
591 | };
592 | 598C7EEF1CE63B0C00A6A54B /* libRNVectorIcons.a */ = {
593 | isa = PBXReferenceProxy;
594 | fileType = archive.ar;
595 | path = libRNVectorIcons.a;
596 | remoteRef = 598C7EEE1CE63B0C00A6A54B /* PBXContainerItemProxy */;
597 | sourceTree = BUILT_PRODUCTS_DIR;
598 | };
599 | 598C7EF51CE6730600A6A54B /* libTouchID.a */ = {
600 | isa = PBXReferenceProxy;
601 | fileType = archive.ar;
602 | path = libTouchID.a;
603 | remoteRef = 598C7EF41CE6730600A6A54B /* PBXContainerItemProxy */;
604 | sourceTree = BUILT_PRODUCTS_DIR;
605 | };
606 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = {
607 | isa = PBXReferenceProxy;
608 | fileType = archive.ar;
609 | path = libRCTLinking.a;
610 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */;
611 | sourceTree = BUILT_PRODUCTS_DIR;
612 | };
613 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = {
614 | isa = PBXReferenceProxy;
615 | fileType = archive.ar;
616 | path = libRCTText.a;
617 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */;
618 | sourceTree = BUILT_PRODUCTS_DIR;
619 | };
620 | /* End PBXReferenceProxy section */
621 |
622 | /* Begin PBXResourcesBuildPhase section */
623 | 00E356EC1AD99517003FC87E /* Resources */ = {
624 | isa = PBXResourcesBuildPhase;
625 | buildActionMask = 2147483647;
626 | files = (
627 | );
628 | runOnlyForDeploymentPostprocessing = 0;
629 | };
630 | 13B07F8E1A680F5B00A75B9A /* Resources */ = {
631 | isa = PBXResourcesBuildPhase;
632 | buildActionMask = 2147483647;
633 | files = (
634 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
635 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */,
636 | 9910F4EA6065497F9F655C9D /* Entypo.ttf in Resources */,
637 | 26527B0C6F1F4957A83DA152 /* EvilIcons.ttf in Resources */,
638 | 273AF7AF47D64CC2AB271965 /* FontAwesome.ttf in Resources */,
639 | 9BB34C54567C4756B496FCDB /* Foundation.ttf in Resources */,
640 | 7D231DE9640249B1ACD51B6A /* Ionicons.ttf in Resources */,
641 | 536ECE614A074E4E843B8055 /* MaterialIcons.ttf in Resources */,
642 | A3847EF4DAEB4DFE8C2A3ED8 /* Octicons.ttf in Resources */,
643 | 12EE67CC3BE64B01925CBE96 /* Zocial.ttf in Resources */,
644 | );
645 | runOnlyForDeploymentPostprocessing = 0;
646 | };
647 | /* End PBXResourcesBuildPhase section */
648 |
649 | /* Begin PBXShellScriptBuildPhase section */
650 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
651 | isa = PBXShellScriptBuildPhase;
652 | buildActionMask = 2147483647;
653 | files = (
654 | );
655 | inputPaths = (
656 | );
657 | name = "Bundle React Native code and images";
658 | outputPaths = (
659 | );
660 | runOnlyForDeploymentPostprocessing = 0;
661 | shellPath = /bin/sh;
662 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/packager/react-native-xcode.sh";
663 | };
664 | /* End PBXShellScriptBuildPhase section */
665 |
666 | /* Begin PBXSourcesBuildPhase section */
667 | 00E356EA1AD99517003FC87E /* Sources */ = {
668 | isa = PBXSourcesBuildPhase;
669 | buildActionMask = 2147483647;
670 | files = (
671 | 00E356F31AD99517003FC87E /* geneTests.m in Sources */,
672 | );
673 | runOnlyForDeploymentPostprocessing = 0;
674 | };
675 | 13B07F871A680F5B00A75B9A /* Sources */ = {
676 | isa = PBXSourcesBuildPhase;
677 | buildActionMask = 2147483647;
678 | files = (
679 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */,
680 | 13B07FC11A68108700A75B9A /* main.m in Sources */,
681 | );
682 | runOnlyForDeploymentPostprocessing = 0;
683 | };
684 | /* End PBXSourcesBuildPhase section */
685 |
686 | /* Begin PBXTargetDependency section */
687 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = {
688 | isa = PBXTargetDependency;
689 | target = 13B07F861A680F5B00A75B9A /* gene */;
690 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */;
691 | };
692 | /* End PBXTargetDependency section */
693 |
694 | /* Begin PBXVariantGroup section */
695 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = {
696 | isa = PBXVariantGroup;
697 | children = (
698 | 13B07FB21A68108700A75B9A /* Base */,
699 | );
700 | name = LaunchScreen.xib;
701 | path = gene;
702 | sourceTree = "";
703 | };
704 | /* End PBXVariantGroup section */
705 |
706 | /* Begin XCBuildConfiguration section */
707 | 00E356F61AD99517003FC87E /* Debug */ = {
708 | isa = XCBuildConfiguration;
709 | buildSettings = {
710 | BUNDLE_LOADER = "$(TEST_HOST)";
711 | FRAMEWORK_SEARCH_PATHS = (
712 | "$(SDKROOT)/Developer/Library/Frameworks",
713 | "$(inherited)",
714 | );
715 | GCC_PREPROCESSOR_DEFINITIONS = (
716 | "DEBUG=1",
717 | "$(inherited)",
718 | );
719 | INFOPLIST_FILE = geneTests/Info.plist;
720 | IPHONEOS_DEPLOYMENT_TARGET = 8.2;
721 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
722 | LIBRARY_SEARCH_PATHS = (
723 | "$(inherited)",
724 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
725 | );
726 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
727 | PRODUCT_NAME = "$(TARGET_NAME)";
728 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/gene.app/gene";
729 | };
730 | name = Debug;
731 | };
732 | 00E356F71AD99517003FC87E /* Release */ = {
733 | isa = XCBuildConfiguration;
734 | buildSettings = {
735 | BUNDLE_LOADER = "$(TEST_HOST)";
736 | COPY_PHASE_STRIP = NO;
737 | FRAMEWORK_SEARCH_PATHS = (
738 | "$(SDKROOT)/Developer/Library/Frameworks",
739 | "$(inherited)",
740 | );
741 | INFOPLIST_FILE = geneTests/Info.plist;
742 | IPHONEOS_DEPLOYMENT_TARGET = 8.2;
743 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
744 | LIBRARY_SEARCH_PATHS = (
745 | "$(inherited)",
746 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
747 | );
748 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
749 | PRODUCT_NAME = "$(TARGET_NAME)";
750 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/gene.app/gene";
751 | };
752 | name = Release;
753 | };
754 | 13B07F941A680F5B00A75B9A /* Debug */ = {
755 | isa = XCBuildConfiguration;
756 | buildSettings = {
757 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
758 | CODE_SIGN_IDENTITY = "iPhone Developer";
759 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
760 | DEAD_CODE_STRIPPING = NO;
761 | HEADER_SEARCH_PATHS = (
762 | "$(inherited)",
763 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
764 | "$(SRCROOT)/../node_modules/react-native/React/**",
765 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager",
766 | );
767 | INFOPLIST_FILE = gene/Info.plist;
768 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
769 | OTHER_LDFLAGS = "-ObjC";
770 | PRODUCT_BUNDLE_IDENTIFIER = weifang.gene;
771 | PRODUCT_NAME = gene;
772 | PROVISIONING_PROFILE = "";
773 | };
774 | name = Debug;
775 | };
776 | 13B07F951A680F5B00A75B9A /* Release */ = {
777 | isa = XCBuildConfiguration;
778 | buildSettings = {
779 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
780 | CODE_SIGN_IDENTITY = "iPhone Developer";
781 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
782 | HEADER_SEARCH_PATHS = (
783 | "$(inherited)",
784 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
785 | "$(SRCROOT)/../node_modules/react-native/React/**",
786 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager",
787 | );
788 | INFOPLIST_FILE = gene/Info.plist;
789 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
790 | OTHER_LDFLAGS = "-ObjC";
791 | PRODUCT_BUNDLE_IDENTIFIER = weifang.gene;
792 | PRODUCT_NAME = gene;
793 | PROVISIONING_PROFILE = "";
794 | };
795 | name = Release;
796 | };
797 | 83CBBA201A601CBA00E9B192 /* Debug */ = {
798 | isa = XCBuildConfiguration;
799 | buildSettings = {
800 | ALWAYS_SEARCH_USER_PATHS = NO;
801 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
802 | CLANG_CXX_LIBRARY = "libc++";
803 | CLANG_ENABLE_MODULES = YES;
804 | CLANG_ENABLE_OBJC_ARC = YES;
805 | CLANG_WARN_BOOL_CONVERSION = YES;
806 | CLANG_WARN_CONSTANT_CONVERSION = YES;
807 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
808 | CLANG_WARN_EMPTY_BODY = YES;
809 | CLANG_WARN_ENUM_CONVERSION = YES;
810 | CLANG_WARN_INT_CONVERSION = YES;
811 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
812 | CLANG_WARN_UNREACHABLE_CODE = YES;
813 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
814 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
815 | COPY_PHASE_STRIP = NO;
816 | ENABLE_STRICT_OBJC_MSGSEND = YES;
817 | ENABLE_TESTABILITY = YES;
818 | GCC_C_LANGUAGE_STANDARD = gnu99;
819 | GCC_DYNAMIC_NO_PIC = NO;
820 | GCC_OPTIMIZATION_LEVEL = 0;
821 | GCC_PREPROCESSOR_DEFINITIONS = (
822 | "DEBUG=1",
823 | "$(inherited)",
824 | );
825 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
826 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
827 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
828 | GCC_WARN_UNDECLARED_SELECTOR = YES;
829 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
830 | GCC_WARN_UNUSED_FUNCTION = YES;
831 | GCC_WARN_UNUSED_VARIABLE = YES;
832 | HEADER_SEARCH_PATHS = (
833 | "$(inherited)",
834 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
835 | "$(SRCROOT)/../node_modules/react-native/React/**",
836 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager",
837 | );
838 | IPHONEOS_DEPLOYMENT_TARGET = 7.0;
839 | MTL_ENABLE_DEBUG_INFO = YES;
840 | ONLY_ACTIVE_ARCH = YES;
841 | SDKROOT = iphoneos;
842 | };
843 | name = Debug;
844 | };
845 | 83CBBA211A601CBA00E9B192 /* Release */ = {
846 | isa = XCBuildConfiguration;
847 | buildSettings = {
848 | ALWAYS_SEARCH_USER_PATHS = NO;
849 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
850 | CLANG_CXX_LIBRARY = "libc++";
851 | CLANG_ENABLE_MODULES = YES;
852 | CLANG_ENABLE_OBJC_ARC = YES;
853 | CLANG_WARN_BOOL_CONVERSION = YES;
854 | CLANG_WARN_CONSTANT_CONVERSION = YES;
855 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
856 | CLANG_WARN_EMPTY_BODY = YES;
857 | CLANG_WARN_ENUM_CONVERSION = YES;
858 | CLANG_WARN_INT_CONVERSION = YES;
859 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
860 | CLANG_WARN_UNREACHABLE_CODE = YES;
861 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
862 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
863 | COPY_PHASE_STRIP = YES;
864 | ENABLE_NS_ASSERTIONS = NO;
865 | ENABLE_STRICT_OBJC_MSGSEND = YES;
866 | GCC_C_LANGUAGE_STANDARD = gnu99;
867 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
868 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
869 | GCC_WARN_UNDECLARED_SELECTOR = YES;
870 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
871 | GCC_WARN_UNUSED_FUNCTION = YES;
872 | GCC_WARN_UNUSED_VARIABLE = YES;
873 | HEADER_SEARCH_PATHS = (
874 | "$(inherited)",
875 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
876 | "$(SRCROOT)/../node_modules/react-native/React/**",
877 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager",
878 | );
879 | IPHONEOS_DEPLOYMENT_TARGET = 7.0;
880 | MTL_ENABLE_DEBUG_INFO = NO;
881 | SDKROOT = iphoneos;
882 | VALIDATE_PRODUCT = YES;
883 | };
884 | name = Release;
885 | };
886 | /* End XCBuildConfiguration section */
887 |
888 | /* Begin XCConfigurationList section */
889 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "geneTests" */ = {
890 | isa = XCConfigurationList;
891 | buildConfigurations = (
892 | 00E356F61AD99517003FC87E /* Debug */,
893 | 00E356F71AD99517003FC87E /* Release */,
894 | );
895 | defaultConfigurationIsVisible = 0;
896 | defaultConfigurationName = Release;
897 | };
898 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "gene" */ = {
899 | isa = XCConfigurationList;
900 | buildConfigurations = (
901 | 13B07F941A680F5B00A75B9A /* Debug */,
902 | 13B07F951A680F5B00A75B9A /* Release */,
903 | );
904 | defaultConfigurationIsVisible = 0;
905 | defaultConfigurationName = Release;
906 | };
907 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "gene" */ = {
908 | isa = XCConfigurationList;
909 | buildConfigurations = (
910 | 83CBBA201A601CBA00E9B192 /* Debug */,
911 | 83CBBA211A601CBA00E9B192 /* Release */,
912 | );
913 | defaultConfigurationIsVisible = 0;
914 | defaultConfigurationName = Release;
915 | };
916 | /* End XCConfigurationList section */
917 | };
918 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
919 | }
920 |
--------------------------------------------------------------------------------