├── .watchmanconfig ├── android ├── settings.gradle ├── jd.jks ├── app │ ├── app-release.apk │ ├── 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 │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── jdapp │ │ │ └── MainActivity.java │ ├── proguard-rules.pro │ ├── react.gradle │ ├── build.gradle │ └── app.iml ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── build.gradle ├── gradle.properties ├── JdApp.iml ├── gradlew.bat └── gradlew ├── images ├── banner │ ├── 1.jpg │ ├── 2.jpg │ ├── 3.jpg │ └── 4.jpg ├── home_icons │ ├── cz.png │ ├── gd.png │ ├── dyp.png │ ├── ljd.png │ ├── wdgz.png │ ├── wlcx.png │ ├── xjk.png │ └── yxcz.png ├── header │ ├── icon_qr.png │ ├── header_logo.png │ ├── icon_search.png │ └── icon_voice.png └── tabs │ ├── cart_focus.png │ ├── cart_normal.png │ ├── home_focus.png │ ├── home_normal.png │ ├── faxian_focus.png │ ├── faxian_normal.png │ ├── category_focus.png │ ├── category_normal.png │ ├── personal_focus.png │ └── personal_normal.png ├── package.json ├── .gitignore ├── ios ├── JdApp │ ├── AppDelegate.h │ ├── main.m │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ ├── AppDelegate.m │ └── Base.lproj │ │ └── LaunchScreen.xib ├── JdAppTests │ ├── Info.plist │ └── JdAppTests.m └── JdApp.xcodeproj │ ├── xcshareddata │ └── xcschemes │ │ └── JdApp.xcscheme │ └── project.pbxproj ├── WebView.js ├── index.android.js ├── index.ios.js ├── README.md ├── home ├── MenuButton.js └── HomePage.js ├── .flowconfig ├── Header.js ├── MainScreen.js └── LICENSE /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'JdApp' 2 | 3 | include ':app' 4 | -------------------------------------------------------------------------------- /android/jd.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanguozheng/JdApp/HEAD/android/jd.jks -------------------------------------------------------------------------------- /images/banner/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanguozheng/JdApp/HEAD/images/banner/1.jpg -------------------------------------------------------------------------------- /images/banner/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanguozheng/JdApp/HEAD/images/banner/2.jpg -------------------------------------------------------------------------------- /images/banner/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanguozheng/JdApp/HEAD/images/banner/3.jpg -------------------------------------------------------------------------------- /images/banner/4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanguozheng/JdApp/HEAD/images/banner/4.jpg -------------------------------------------------------------------------------- /images/home_icons/cz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanguozheng/JdApp/HEAD/images/home_icons/cz.png -------------------------------------------------------------------------------- /images/home_icons/gd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanguozheng/JdApp/HEAD/images/home_icons/gd.png -------------------------------------------------------------------------------- /android/app/app-release.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanguozheng/JdApp/HEAD/android/app/app-release.apk -------------------------------------------------------------------------------- /images/header/icon_qr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanguozheng/JdApp/HEAD/images/header/icon_qr.png -------------------------------------------------------------------------------- /images/home_icons/dyp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanguozheng/JdApp/HEAD/images/home_icons/dyp.png -------------------------------------------------------------------------------- /images/home_icons/ljd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanguozheng/JdApp/HEAD/images/home_icons/ljd.png -------------------------------------------------------------------------------- /images/home_icons/wdgz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanguozheng/JdApp/HEAD/images/home_icons/wdgz.png -------------------------------------------------------------------------------- /images/home_icons/wlcx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanguozheng/JdApp/HEAD/images/home_icons/wlcx.png -------------------------------------------------------------------------------- /images/home_icons/xjk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanguozheng/JdApp/HEAD/images/home_icons/xjk.png -------------------------------------------------------------------------------- /images/home_icons/yxcz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanguozheng/JdApp/HEAD/images/home_icons/yxcz.png -------------------------------------------------------------------------------- /images/tabs/cart_focus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanguozheng/JdApp/HEAD/images/tabs/cart_focus.png -------------------------------------------------------------------------------- /images/tabs/cart_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanguozheng/JdApp/HEAD/images/tabs/cart_normal.png -------------------------------------------------------------------------------- /images/tabs/home_focus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanguozheng/JdApp/HEAD/images/tabs/home_focus.png -------------------------------------------------------------------------------- /images/tabs/home_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanguozheng/JdApp/HEAD/images/tabs/home_normal.png -------------------------------------------------------------------------------- /images/header/header_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanguozheng/JdApp/HEAD/images/header/header_logo.png -------------------------------------------------------------------------------- /images/header/icon_search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanguozheng/JdApp/HEAD/images/header/icon_search.png -------------------------------------------------------------------------------- /images/header/icon_voice.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanguozheng/JdApp/HEAD/images/header/icon_voice.png -------------------------------------------------------------------------------- /images/tabs/faxian_focus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanguozheng/JdApp/HEAD/images/tabs/faxian_focus.png -------------------------------------------------------------------------------- /images/tabs/faxian_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanguozheng/JdApp/HEAD/images/tabs/faxian_normal.png -------------------------------------------------------------------------------- /images/tabs/category_focus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanguozheng/JdApp/HEAD/images/tabs/category_focus.png -------------------------------------------------------------------------------- /images/tabs/category_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanguozheng/JdApp/HEAD/images/tabs/category_normal.png -------------------------------------------------------------------------------- /images/tabs/personal_focus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanguozheng/JdApp/HEAD/images/tabs/personal_focus.png -------------------------------------------------------------------------------- /images/tabs/personal_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanguozheng/JdApp/HEAD/images/tabs/personal_normal.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | JdApp 3 | 4 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanguozheng/JdApp/HEAD/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanguozheng/JdApp/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/yuanguozheng/JdApp/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuanguozheng/JdApp/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/yuanguozheng/JdApp/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.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.10-all.zip 6 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "JdApp", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "start": "node node_modules/react-native/local-cli/cli.js start" 7 | }, 8 | "dependencies": { 9 | "react-native": "^0.18.0", 10 | "react-native-tab-navigator": "^0.2.15", 11 | "react-native-viewpager": "^0.2.1" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /.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 | -------------------------------------------------------------------------------- /ios/JdApp/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 | -------------------------------------------------------------------------------- /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.5.0' 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 | } 20 | } 21 | -------------------------------------------------------------------------------- /ios/JdApp/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 | -------------------------------------------------------------------------------- /WebView.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by yuanguozheng on 16/3/10. 3 | */ 4 | 'use strict'; 5 | 6 | import React, { 7 | Component, 8 | View, 9 | WebView, 10 | Platform 11 | } from 'react-native'; 12 | 13 | export default class JdWebView extends Component { 14 | 15 | constructor(props) { 16 | super(props); 17 | } 18 | 19 | render() { 20 | return ( 21 | 22 | 26 | 27 | ) 28 | } 29 | } -------------------------------------------------------------------------------- /ios/JdApp/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 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /ios/JdAppTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 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 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 11 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /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=-Xmx4096m -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 | -------------------------------------------------------------------------------- /android/JdApp.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /index.android.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | */ 5 | 'use strict'; 6 | import React, { 7 | AppRegistry, 8 | Component, 9 | Navigator, 10 | StyleSheet, 11 | TouchableOpacity, 12 | Text 13 | } from 'react-native'; 14 | import MainScreen from './MainScreen'; 15 | import JdWebView from './WebView'; 16 | 17 | class JdApp extends Component { 18 | render() { 19 | return ( 20 | JdApp._renderPage(route,navigator)} 23 | /> 24 | ) 25 | } 26 | 27 | static _renderPage(route, nav) { 28 | switch (route.id) { 29 | case 'main': 30 | return (); 31 | break; 32 | case 'webview': 33 | return (); 34 | break; 35 | } 36 | } 37 | } 38 | 39 | AppRegistry.registerComponent('JdApp', () => JdApp); -------------------------------------------------------------------------------- /index.ios.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | */ 5 | 'use strict'; 6 | import React, { 7 | AppRegistry, 8 | Component, 9 | Navigator, 10 | StyleSheet, 11 | TouchableOpacity, 12 | Text 13 | } from 'react-native'; 14 | import MainScreen from './MainScreen'; 15 | import JdWebView from './WebView'; 16 | 17 | class JdApp extends Component { 18 | 19 | render() { 20 | return ( 21 | JdApp._renderPage(route,navigator)} 24 | /> 25 | ) 26 | } 27 | 28 | static _renderPage(route, nav) { 29 | switch (route.id) { 30 | case 'main': 31 | return (); 32 | break; 33 | case 'webview': 34 | return (); 35 | break; 36 | } 37 | } 38 | } 39 | 40 | AppRegistry.registerComponent('JdApp', () => JdApp); 41 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/jdapp/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.jdapp; 2 | 3 | import com.facebook.react.ReactActivity; 4 | import com.facebook.react.ReactPackage; 5 | import com.facebook.react.shell.MainReactPackage; 6 | 7 | import java.util.Arrays; 8 | import java.util.List; 9 | 10 | public class MainActivity extends ReactActivity { 11 | 12 | /** 13 | * Returns the name of the main component registered from JavaScript. 14 | * This is used to schedule rendering of the component. 15 | */ 16 | @Override 17 | protected String getMainComponentName() { 18 | return "JdApp"; 19 | } 20 | 21 | /** 22 | * Returns whether dev mode should be enabled. 23 | * This enables e.g. the dev menu. 24 | */ 25 | @Override 26 | protected boolean getUseDeveloperSupport() { 27 | return BuildConfig.DEBUG; 28 | } 29 | 30 | /** 31 | * A list of packages used by the app. If the app uses additional views 32 | * or modules besides the default ones, add more packages here. 33 | */ 34 | @Override 35 | protected List getPackages() { 36 | return Arrays.asList( 37 | new MainReactPackage()); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # JdApp 2 | 基于React Native构建的仿京东客户端 3 | 4 | 博客地址: http://blog.csdn.net/yuanguozhengjust 5 | 6 | ### 教程一: 7 | [React Native入门——布局实践:开发京东客户端首页(一)](http://blog.csdn.net/yuanguozhengjust/article/details/50538651) 8 | 9 | Commit: [First Commit](https://github.com/yuanguozheng/JdApp/commit/b34add1224fc02d25bd7a188e2cade73c122f59c) 10 | 11 | ### 教程二: 12 | [React Native入门——布局实践:开发京东客户端首页(二)TabBar的构建](http://blog.csdn.net/yuanguozhengjust/article/details/50553525) 13 | 14 | Commit: [Add Tab](https://github.com/yuanguozheng/JdApp/commit/b661cd8767749bcf8512ea6564f4ac379adb5cf7) 15 | 16 | ### 教程三: 17 | [React Native布局实践:开发京东客户端首页(三)轮播图的实现](http://blog.csdn.net/yuanguozhengjust/article/details/50556700) 18 | 19 | Commit: [Add ViewPager](https://github.com/yuanguozheng/JdApp/commit/2d1741bef1c7908c9e0d2f52c23210e8de2fcc7a) 20 | 21 | ### 教程四: 22 | [React Native布局实践:开发京东客户端首页(四)——首页功能按钮及控件封装](http://blog.csdn.net/yuanguozhengjust/article/details/50601111) 23 | 24 | Commit: [Update Home Buttons](https://github.com/yuanguozheng/JdApp/commit/bc7d59c1c4b624b60bf5f88bd50c5c1bf7fafad6) 25 | 26 | ### 其他教程 27 | [React Native入门——环境配置及Hello World](http://blog.csdn.net/yuanguozhengjust/article/details/50468050) 28 | 29 | [React Native入门——IDE及其他相关基础技术](http://blog.csdn.net/yuanguozhengjust/article/details/50468561) 30 | 31 | [React Native入门——组件构成及生命周期简介](http://blog.csdn.net/yuanguozhengjust/article/details/50470171) 32 | 33 | 此项目为博文演示DEMO, 欢迎批评指正! -------------------------------------------------------------------------------- /ios/JdApp/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 | 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 | UILaunchStoryboardName 33 | LaunchScreen 34 | UIRequiredDeviceCapabilities 35 | 36 | armv7 37 | 38 | UISupportedInterfaceOrientations 39 | 40 | UIInterfaceOrientationPortrait 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | UIViewControllerBasedStatusBarAppearance 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /home/MenuButton.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by yuanguozheng on 16/1/22. 3 | */ 4 | 'use strict'; 5 | 6 | import React, { 7 | Component, 8 | View, 9 | Text, 10 | Image, 11 | TouchableWithoutFeedback, 12 | PropTypes, 13 | StyleSheet 14 | } from 'react-native'; 15 | 16 | export default class MenuButton extends React.Component { 17 | 18 | static propTypes = { 19 | renderIcon: PropTypes.number.isRequired, // 图片,加入.isRequired即为比填项 20 | showText: PropTypes.string, // 显示标题\文字 21 | tag: PropTypes.string, // Tag 22 | onClick: PropTypes.func // 回调函数 23 | }; 24 | 25 | constructor(props) { 26 | super(props); 27 | this._onClick = this._onClick.bind(this); // 需要在回调函数中使用this,必须使用bind(this)来绑定 28 | } 29 | 30 | _onClick() { 31 | if (this.props.onClick) { // 在设置了回调函数的情况下 32 | this.props.onClick(this.props.showText, this.props.tag); // 回调Title和Tag 33 | } 34 | } 35 | 36 | render() { 37 | return ( 38 | 39 | 40 | 41 | {this.props.showText} 42 | 43 | 44 | ); 45 | } 46 | } 47 | 48 | const styles = StyleSheet.create({ 49 | iconImg: { 50 | width: 38, 51 | height: 38, 52 | marginBottom: 2 53 | }, 54 | showText: { 55 | fontSize: 12 56 | } 57 | }); -------------------------------------------------------------------------------- /.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/Promise.js 19 | .*/node_modules/fbjs/lib/fetch.js 20 | .*/node_modules/fbjs/lib/ExecutionEnvironment.js 21 | .*/node_modules/fbjs/lib/isEmpty.js 22 | .*/node_modules/fbjs/lib/crc32.js 23 | .*/node_modules/fbjs/lib/ErrorUtils.js 24 | 25 | # Flow has a built-in definition for the 'react' module which we prefer to use 26 | # over the currently-untyped source 27 | .*/node_modules/react/react.js 28 | .*/node_modules/react/lib/React.js 29 | .*/node_modules/react/lib/ReactDOM.js 30 | 31 | # Ignore commoner tests 32 | .*/node_modules/commoner/test/.* 33 | 34 | # See https://github.com/facebook/flow/issues/442 35 | .*/react-tools/node_modules/commoner/lib/reader.js 36 | 37 | # Ignore jest 38 | .*/node_modules/jest-cli/.* 39 | 40 | # Ignore Website 41 | .*/website/.* 42 | 43 | [include] 44 | 45 | [libs] 46 | node_modules/react-native/Libraries/react-native/react-native-interface.js 47 | 48 | [options] 49 | module.system=haste 50 | 51 | munge_underscores=true 52 | 53 | module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub' 54 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.png$' -> 'RelativeImageStub' 55 | 56 | suppress_type=$FlowIssue 57 | suppress_type=$FlowFixMe 58 | suppress_type=$FixMe 59 | 60 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(2[0-0]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 61 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(2[0-0]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 62 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 63 | 64 | [version] 65 | 0.20.1 66 | -------------------------------------------------------------------------------- /ios/JdApp/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 "Bundle React Native code and images" build step. 40 | */ 41 | 42 | // jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 43 | 44 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 45 | moduleName:@"JdApp" 46 | initialProperties:nil 47 | launchOptions:launchOptions]; 48 | 49 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 50 | UIViewController *rootViewController = [UIViewController new]; 51 | rootViewController.view = rootView; 52 | self.window.rootViewController = rootViewController; 53 | [self.window makeKeyAndVisible]; 54 | return YES; 55 | } 56 | 57 | @end 58 | -------------------------------------------------------------------------------- /ios/JdAppTests/JdAppTests.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 240 17 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!" 18 | 19 | @interface JdAppTests : XCTestCase 20 | 21 | @end 22 | 23 | @implementation JdAppTests 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 | -------------------------------------------------------------------------------- /Header.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by yuanguozheng on 16/1/19. 3 | */ 4 | 'use strict'; 5 | 6 | import React, { 7 | Component, 8 | Image, 9 | TextInput, 10 | View, 11 | Platform, 12 | StyleSheet 13 | } from 'react-native'; 14 | 15 | export default class Header extends Component { 16 | render() { 17 | return ( 18 | 19 | 20 | 21 | 22 | 26 | 27 | 28 | 29 | 30 | ) 31 | } 32 | } 33 | 34 | const styles = StyleSheet.create({ 35 | container: { 36 | flexDirection: 'row', // 水平排布 37 | paddingLeft: 10, 38 | paddingRight: 10, 39 | paddingTop: Platform.OS === 'ios' ? 20 : 0, // 处理iOS状态栏 40 | height: Platform.OS === 'ios' ? 68 : 48, // 处理iOS状态栏 41 | backgroundColor: '#d74047', 42 | alignItems: 'center' // 使元素垂直居中排布, 当flexDirection为column时, 为水平居中 43 | }, 44 | logo: { 45 | height: 24, 46 | width: 64, 47 | resizeMode: 'stretch' // 设置拉伸模式 48 | }, 49 | searchBox: { 50 | height: 30, 51 | flexDirection: 'row', 52 | flex: 1, // 类似于android中的layout_weight,设置为1即自动拉伸填充 53 | borderRadius: 5, // 设置圆角边 54 | backgroundColor: 'white', 55 | alignItems: 'center', 56 | marginLeft: 8, 57 | marginRight: 12 58 | }, 59 | scanIcon: { 60 | height: 26.7, 61 | width: 26.7, 62 | resizeMode: 'stretch' 63 | }, 64 | searchIcon: { 65 | marginLeft: 6, 66 | marginRight: 6, 67 | width: 16.7, 68 | height: 16.7, 69 | resizeMode: 'stretch' 70 | }, 71 | voiceIcon: { 72 | marginLeft: 5, 73 | marginRight: 8, 74 | width: 15, 75 | height: 20, 76 | resizeMode: 'stretch' 77 | }, 78 | inputText: { 79 | flex: 1, 80 | backgroundColor: 'transparent', 81 | fontSize: 14 82 | } 83 | }); -------------------------------------------------------------------------------- /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.ReactProp ; } 46 | -keepclassmembers class * { @com.facebook.react.uimanager.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 | 65 | # stetho 66 | 67 | -dontwarn com.facebook.stetho.** 68 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /MainScreen.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by yuanguozheng on 16/1/19. 3 | */ 4 | 'use strict'; 5 | 6 | import React, { 7 | Component, 8 | StyleSheet, 9 | Image, 10 | Text, 11 | View, 12 | Navigator 13 | } from 'react-native'; 14 | 15 | import Header from './Header'; 16 | import HomePage from './home/HomePage'; 17 | import TabNavigator from 'react-native-tab-navigator'; 18 | 19 | const HOME = 'home'; 20 | const HOME_NORMAL = require('./images/tabs/home_normal.png'); 21 | const HOME_FOCUS = require('./images/tabs/home_focus.png'); 22 | const CATEGORY = 'category'; 23 | const CATEGORY_NORMAL = require('./images/tabs/category_normal.png'); 24 | const CATEGORY_FOCUS = require('./images/tabs/category_focus.png'); 25 | const FAXIAN = 'faxian'; 26 | const FAXIAN_NORMAL = require('./images/tabs/faxian_normal.png'); 27 | const FAXIAN_FOCUS = require('./images/tabs/faxian_focus.png'); 28 | const CART = 'cart'; 29 | const CART_NORMAL = require('./images/tabs/cart_normal.png'); 30 | const CART_FOCUS = require('./images/tabs/cart_focus.png'); 31 | const PERSONAL = 'personal'; 32 | const PERSONAL_NORMAL = require('./images/tabs/personal_normal.png'); 33 | const PERSONAL_FOCUS = require('./images/tabs/personal_focus.png'); 34 | 35 | export default class MainScreen extends Component { 36 | 37 | constructor(props) { 38 | super(props); 39 | this.state = {selectedTab: HOME} 40 | } 41 | 42 | _renderTabItem(img, selectedImg, tag, childView) { 43 | return ( 44 | } 47 | renderSelectedIcon={() => } 48 | onPress={() => this.setState({ selectedTab: tag })}> 49 | {childView} 50 | 51 | ); 52 | } 53 | 54 | static _createChildView(tag) { 55 | return ( 56 | 57 | {tag} 58 | 59 | ) 60 | } 61 | 62 | render() { 63 | return ( 64 | 65 |
66 | 67 | {this._renderTabItem(HOME_NORMAL, HOME_FOCUS, HOME, )} 68 | {this._renderTabItem(CATEGORY_NORMAL, CATEGORY_FOCUS, CATEGORY, MainScreen._createChildView(CATEGORY))} 69 | {this._renderTabItem(FAXIAN_NORMAL, FAXIAN_FOCUS, FAXIAN, MainScreen._createChildView(FAXIAN))} 70 | {this._renderTabItem(CART_NORMAL, CART_FOCUS, CART, MainScreen._createChildView(CART))} 71 | {this._renderTabItem(PERSONAL_NORMAL, PERSONAL_FOCUS, PERSONAL, MainScreen._createChildView(PERSONAL))} 72 | 73 | 74 | ); 75 | } 76 | } 77 | 78 | const styles = StyleSheet.create({ 79 | tab: { 80 | height: 52, 81 | backgroundColor: '#303030', 82 | alignItems: 'center', 83 | }, 84 | tabIcon: { 85 | width: 30, 86 | height: 35, 87 | resizeMode: 'stretch', 88 | marginTop: 12.5 89 | } 90 | }); -------------------------------------------------------------------------------- /ios/JdApp/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 | -------------------------------------------------------------------------------- /android/app/react.gradle: -------------------------------------------------------------------------------- 1 | import org.apache.tools.ant.taskdefs.condition.Os 2 | 3 | def config = project.hasProperty("react") ? project.react : []; 4 | 5 | def bundleAssetName = config.bundleAssetName ?: "index.android.bundle" 6 | def entryFile = config.entryFile ?: "index.android.js" 7 | 8 | // because elvis operator 9 | def elvisFile(thing) { 10 | return thing ? file(thing) : null; 11 | } 12 | 13 | def reactRoot = elvisFile(config.root) ?: file("../../") 14 | def jsBundleDirDebug = elvisFile(config.jsBundleDirDebug) ?: 15 | file("$buildDir/intermediates/assets/debug") 16 | def jsBundleDirRelease = elvisFile(config.jsBundleDirRelease) ?: 17 | file("$buildDir/intermediates/assets/release") 18 | def resourcesDirDebug = elvisFile(config.resourcesDirDebug) ?: 19 | file("$buildDir/intermediates/res/merged/debug") 20 | def resourcesDirRelease = elvisFile(config.resourcesDirRelease) ?: 21 | file("$buildDir/intermediates/res/merged/release") 22 | def inputExcludes = config.inputExcludes ?: ["android/**", "ios/**"] 23 | 24 | def jsBundleFileDebug = file("$jsBundleDirDebug/$bundleAssetName") 25 | def jsBundleFileRelease = file("$jsBundleDirRelease/$bundleAssetName") 26 | 27 | task bundleDebugJsAndAssets(type: Exec) { 28 | // create dirs if they are not there (e.g. the "clean" task just ran) 29 | doFirst { 30 | jsBundleDirDebug.mkdirs() 31 | resourcesDirDebug.mkdirs() 32 | } 33 | 34 | // set up inputs and outputs so gradle can cache the result 35 | inputs.files fileTree(dir: reactRoot, excludes: inputExcludes) 36 | outputs.dir jsBundleDirDebug 37 | outputs.dir resourcesDirDebug 38 | 39 | // set up the call to the react-native cli 40 | workingDir reactRoot 41 | if (Os.isFamily(Os.FAMILY_WINDOWS)) { 42 | commandLine "cmd", "/c", "react-native", "bundle", "--platform", "android", "--dev", "true", "--entry-file", 43 | entryFile, "--bundle-output", jsBundleFileDebug, "--assets-dest", resourcesDirDebug 44 | } else { 45 | commandLine "react-native", "bundle", "--platform", "android", "--dev", "true", "--entry-file", 46 | entryFile, "--bundle-output", jsBundleFileDebug, "--assets-dest", resourcesDirDebug 47 | } 48 | 49 | enabled config.bundleInDebug ?: false 50 | } 51 | 52 | task bundleReleaseJsAndAssets(type: Exec) { 53 | // create dirs if they are not there (e.g. the "clean" task just ran) 54 | doFirst { 55 | jsBundleDirRelease.mkdirs() 56 | resourcesDirRelease.mkdirs() 57 | } 58 | 59 | // set up inputs and outputs so gradle can cache the result 60 | inputs.files fileTree(dir: reactRoot, excludes: inputExcludes) 61 | outputs.dir jsBundleDirRelease 62 | outputs.dir resourcesDirRelease 63 | 64 | // set up the call to the react-native cli 65 | workingDir reactRoot 66 | if (Os.isFamily(Os.FAMILY_WINDOWS)) { 67 | commandLine "cmd","/c", "react-native", "bundle", "--platform", "android", "--dev", "false", "--entry-file", 68 | entryFile, "--bundle-output", jsBundleFileRelease, "--assets-dest", resourcesDirRelease 69 | } else { 70 | commandLine "react-native", "bundle", "--platform", "android", "--dev", "false", "--entry-file", 71 | entryFile, "--bundle-output", jsBundleFileRelease, "--assets-dest", resourcesDirRelease 72 | } 73 | 74 | enabled config.bundleInRelease ?: true 75 | } 76 | 77 | void runBefore(String dependentTaskName, Task task) { 78 | Task dependentTask = tasks.findByPath(dependentTaskName); 79 | if (dependentTask != null) { 80 | dependentTask.dependsOn task 81 | } 82 | } 83 | 84 | gradle.projectsEvaluated { 85 | 86 | // hook bundleDebugJsAndAssets into the android build process 87 | 88 | bundleDebugJsAndAssets.dependsOn mergeDebugResources 89 | bundleDebugJsAndAssets.dependsOn mergeDebugAssets 90 | 91 | runBefore('processArmeabi-v7aDebugResources', bundleDebugJsAndAssets) 92 | runBefore('processX86DebugResources', bundleDebugJsAndAssets) 93 | runBefore('processUniversalDebugResources', bundleDebugJsAndAssets) 94 | runBefore('processDebugResources', bundleDebugJsAndAssets) 95 | 96 | // hook bundleReleaseJsAndAssets into the android build process 97 | 98 | bundleReleaseJsAndAssets.dependsOn mergeReleaseResources 99 | bundleReleaseJsAndAssets.dependsOn mergeReleaseAssets 100 | 101 | runBefore('processArmeabi-v7aReleaseResources', bundleReleaseJsAndAssets) 102 | runBefore('processX86ReleaseResources', bundleReleaseJsAndAssets) 103 | runBefore('processUniversalReleaseResources', bundleReleaseJsAndAssets) 104 | runBefore('processReleaseResources', bundleReleaseJsAndAssets) 105 | 106 | } 107 | -------------------------------------------------------------------------------- /ios/JdApp.xcodeproj/xcshareddata/xcschemes/JdApp.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 75 | 77 | 83 | 84 | 85 | 86 | 87 | 88 | 94 | 96 | 102 | 103 | 104 | 105 | 107 | 108 | 111 | 112 | 113 | -------------------------------------------------------------------------------- /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 two tasks: bundleDebugJsAndAssets and bundleReleaseJsAndAssets. 7 | * These basically call `react-native bundle` with the correct arguments during the Android build 8 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 9 | * bundle directly from the development server. Below you can see all the possible configurations 10 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 11 | * `apply from: "react.gradle"` line. 12 | * 13 | * project.ext.react = [ 14 | * // the name of the generated asset file containing your JS bundle 15 | * bundleAssetName: "index.android.bundle", 16 | * 17 | * // the entry file for bundle generation 18 | * entryFile: "index.android.js", 19 | * 20 | * // whether to bundle JS and assets in debug mode 21 | * bundleInDebug: false, 22 | * 23 | * // whether to bundle JS and assets in release mode 24 | * bundleInRelease: true, 25 | * 26 | * // the root of your project, i.e. where "package.json" lives 27 | * root: "../../", 28 | * 29 | * // where to put the JS bundle asset in debug mode 30 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 31 | * 32 | * // where to put the JS bundle asset in release mode 33 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 34 | * 35 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 36 | * // require('./image.png')), in debug mode 37 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 38 | * 39 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 40 | * // require('./image.png')), in release mode 41 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 42 | * 43 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 44 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 45 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 46 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 47 | * // for example, you might want to remove it from here. 48 | * inputExcludes: ["android/**", "ios/**"] 49 | * ] 50 | */ 51 | 52 | apply from: "react.gradle" 53 | 54 | /** 55 | * Set this to true to create three separate APKs instead of one: 56 | * - A universal APK that works on all devices 57 | * - An APK that only works on ARM devices 58 | * - An APK that only works on x86 devices 59 | * The advantage is the size of the APK is reduced by about 4MB. 60 | * Upload all the APKs to the Play Store and people will download 61 | * the correct one based on the CPU architecture of their device. 62 | */ 63 | def enableSeparateBuildPerCPUArchitecture = false 64 | 65 | /** 66 | * Run Proguard to shrink the Java bytecode in release builds. 67 | */ 68 | def enableProguardInReleaseBuilds = false 69 | 70 | android { 71 | compileSdkVersion 23 72 | buildToolsVersion "23.0.1" 73 | 74 | defaultConfig { 75 | applicationId "com.jdapp" 76 | minSdkVersion 16 77 | targetSdkVersion 22 78 | versionCode 1 79 | versionName "1.0" 80 | ndk { 81 | abiFilters "armeabi-v7a", "x86" 82 | } 83 | } 84 | splits { 85 | abi { 86 | enable enableSeparateBuildPerCPUArchitecture 87 | universalApk true 88 | reset() 89 | include "armeabi-v7a", "x86" 90 | } 91 | } 92 | buildTypes { 93 | release { 94 | minifyEnabled enableProguardInReleaseBuilds 95 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 96 | } 97 | } 98 | // applicationVariants are e.g. debug, release 99 | applicationVariants.all { variant -> 100 | variant.outputs.each { output -> 101 | // For each separate APK per architecture, set a unique version code as described here: 102 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits 103 | def versionCodes = ["armeabi-v7a":1, "x86":2] 104 | def abi = output.getFilter(OutputFile.ABI) 105 | if (abi != null) { // null for the universal-debug, universal-release variants 106 | output.versionCodeOverride = 107 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 108 | } 109 | } 110 | } 111 | } 112 | 113 | dependencies { 114 | compile fileTree(dir: "libs", include: ["*.jar"]) 115 | compile "com.android.support:appcompat-v7:23.0.1" 116 | compile "com.facebook.react:react-native:0.18.+" 117 | } 118 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /home/HomePage.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by yuanguozheng on 16/1/22. 3 | */ 4 | 'use strict'; 5 | import React, { 6 | Component, 7 | View, 8 | Text, 9 | Image, 10 | StyleSheet, 11 | ScrollView, 12 | Alert, 13 | ListView, 14 | RefreshControl, 15 | Dimensions, 16 | PixelRatio, 17 | TouchableWithoutFeedback 18 | } from 'react-native'; 19 | import ViewPager from 'react-native-viewpager'; 20 | import MenuButton from './MenuButton'; 21 | 22 | const BANNER_IMGS = [ 23 | require('../images/banner/1.jpg'), 24 | require('../images/banner/2.jpg'), 25 | require('../images/banner/3.jpg'), 26 | require('../images/banner/4.jpg') 27 | ]; 28 | 29 | const len = 160; 30 | 31 | export default class HomePage extends Component { 32 | 33 | constructor(props) { 34 | super(props); 35 | 36 | // 用于构建DataSource对象 37 | var dataSource = new ViewPager.DataSource({ 38 | pageHasChanged: (p1, p2) => p1 !== p2, 39 | }); 40 | this._onMenuClick = this._onMenuClick.bind(this); 41 | this._onRecommendClick = this._onRecommendClick.bind(this); 42 | this._renderRow = this._renderRow.bind(this); 43 | var ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2}); 44 | // 实际的DataSources存放在state中 45 | this.state = { 46 | dataSource: dataSource.cloneWithPages(BANNER_IMGS), 47 | listData: ds 48 | } 49 | } 50 | 51 | componentWillMount() { 52 | fetch('http://m.jd.com/index/recommend.action?_format_=json&page=1') 53 | .then((res)=> res.json()) 54 | .then((str)=> { 55 | let arr = JSON.parse(str.recommend).wareInfoList; 56 | var rows = []; 57 | for (let i = 0; i < arr.length; i += 2) { 58 | var item = {id: i, left: null, right: null}; 59 | item.left = (arr[i]); 60 | if (i < arr.length - 1) { 61 | item.right = (arr[i + 1]); 62 | } 63 | rows.push(item); 64 | } 65 | var ds = this.state.listData.cloneWithRows(rows); 66 | this.setState({listData: ds}); 67 | }); 68 | } 69 | 70 | _renderPage(data, pageID) { 71 | return ( 72 | 75 | ); 76 | } 77 | 78 | _onMenuClick(title, tag) { 79 | Alert.alert('提示', '你点击了:' + title + " Tag:" + tag); 80 | } 81 | 82 | _onRecommendClick(wareId) { 83 | let url = 'http://item.m.jd.com/product/' + wareId + '.html'; 84 | this.props.nav.push({ 85 | id: 'webview', 86 | title: 'webiew', 87 | url: url 88 | }); 89 | } 90 | 91 | _renderRow(rowData) { 92 | return ( 93 | 94 | {this._onRecommendClick(rowData.left.wareId)}}> 96 | 97 | 99 | {rowData.left.wname} 100 | 101 | 103 | ¥{rowData.left.jdPrice} 104 | 105 | 107 | 看相似 109 | 110 | 111 | 112 | 113 | 114 | {this._onRecommendClick(rowData.right.wareId)}}> 116 | 117 | 119 | {rowData.right.wname} 120 | 121 | 123 | ¥{rowData.right.jdPrice} 124 | 125 | 127 | 看相似 129 | 130 | 131 | 132 | 133 | 134 | 135 | ); 136 | } 137 | 138 | render() { 139 | return ( 140 | {return( 145 | 146 | 152 | 153 | 156 | 159 | 162 | 165 | 166 | 167 | 170 | 173 | 176 | 179 | 180 | 181 | 猜你喜欢 182 | )}}> 183 | 184 | ) 185 | } 186 | } 187 | 188 | const styles = StyleSheet.create({ 189 | page: { 190 | flex: 1, 191 | height: 130, 192 | resizeMode: 'stretch' 193 | }, 194 | menuView: { 195 | flexDirection: 'row', 196 | marginTop: 10 197 | }, 198 | recommendTitle: { 199 | width: len, 200 | flexWrap: 'wrap', 201 | fontSize: 12, 202 | color: 'black', 203 | flex: 1, 204 | marginTop: 8, 205 | marginBottom: 8, 206 | height: 30 207 | }, 208 | priceText: { 209 | flex: 1, 210 | alignSelf: 'flex-start', 211 | textAlign: 'left', 212 | fontSize: 13, 213 | color: '#f15353' 214 | } 215 | }); -------------------------------------------------------------------------------- /android/app/app.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 | 10 | 11 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright {yyyy} {name of copyright owner} 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /ios/JdApp.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 /* JdAppTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* JdAppTests.m */; }; 16 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 17 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 18 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; 19 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 20 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 21 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 22 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 23 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 24 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 25 | AF7031DC1C91666000B340B8 /* main.jsbundle in Resources */ = {isa = PBXBuildFile; fileRef = AF7031DB1C91666000B340B8 /* main.jsbundle */; }; 26 | /* End PBXBuildFile section */ 27 | 28 | /* Begin PBXContainerItemProxy section */ 29 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 30 | isa = PBXContainerItemProxy; 31 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 32 | proxyType = 2; 33 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 34 | remoteInfo = RCTActionSheet; 35 | }; 36 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 37 | isa = PBXContainerItemProxy; 38 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 39 | proxyType = 2; 40 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 41 | remoteInfo = RCTGeolocation; 42 | }; 43 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 44 | isa = PBXContainerItemProxy; 45 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 46 | proxyType = 2; 47 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 48 | remoteInfo = RCTImage; 49 | }; 50 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 51 | isa = PBXContainerItemProxy; 52 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 53 | proxyType = 2; 54 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 55 | remoteInfo = RCTNetwork; 56 | }; 57 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 58 | isa = PBXContainerItemProxy; 59 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 60 | proxyType = 2; 61 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 62 | remoteInfo = RCTVibration; 63 | }; 64 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 65 | isa = PBXContainerItemProxy; 66 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 67 | proxyType = 1; 68 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 69 | remoteInfo = JdApp; 70 | }; 71 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 72 | isa = PBXContainerItemProxy; 73 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 74 | proxyType = 2; 75 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 76 | remoteInfo = RCTSettings; 77 | }; 78 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 79 | isa = PBXContainerItemProxy; 80 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 81 | proxyType = 2; 82 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 83 | remoteInfo = RCTWebSocket; 84 | }; 85 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 86 | isa = PBXContainerItemProxy; 87 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 88 | proxyType = 2; 89 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 90 | remoteInfo = React; 91 | }; 92 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 93 | isa = PBXContainerItemProxy; 94 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 95 | proxyType = 2; 96 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 97 | remoteInfo = RCTLinking; 98 | }; 99 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 100 | isa = PBXContainerItemProxy; 101 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 102 | proxyType = 2; 103 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 104 | remoteInfo = RCTText; 105 | }; 106 | /* End PBXContainerItemProxy section */ 107 | 108 | /* Begin PBXFileReference section */ 109 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 110 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 111 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 112 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 113 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 114 | 00E356EE1AD99517003FC87E /* JdAppTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = JdAppTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 115 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 116 | 00E356F21AD99517003FC87E /* JdAppTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = JdAppTests.m; sourceTree = ""; }; 117 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 118 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 119 | 13B07F961A680F5B00A75B9A /* JdApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = JdApp.app; sourceTree = BUILT_PRODUCTS_DIR; }; 120 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = JdApp/AppDelegate.h; sourceTree = ""; }; 121 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = JdApp/AppDelegate.m; sourceTree = ""; }; 122 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 123 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = JdApp/Images.xcassets; sourceTree = ""; }; 124 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = JdApp/Info.plist; sourceTree = ""; }; 125 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = JdApp/main.m; sourceTree = ""; }; 126 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 127 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 128 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 129 | AF7031DB1C91666000B340B8 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 130 | /* End PBXFileReference section */ 131 | 132 | /* Begin PBXFrameworksBuildPhase section */ 133 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 134 | isa = PBXFrameworksBuildPhase; 135 | buildActionMask = 2147483647; 136 | files = ( 137 | ); 138 | runOnlyForDeploymentPostprocessing = 0; 139 | }; 140 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 141 | isa = PBXFrameworksBuildPhase; 142 | buildActionMask = 2147483647; 143 | files = ( 144 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 145 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 146 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 147 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 148 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 149 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 150 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 151 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 152 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 153 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 154 | ); 155 | runOnlyForDeploymentPostprocessing = 0; 156 | }; 157 | /* End PBXFrameworksBuildPhase section */ 158 | 159 | /* Begin PBXGroup section */ 160 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 161 | isa = PBXGroup; 162 | children = ( 163 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 164 | ); 165 | name = Products; 166 | sourceTree = ""; 167 | }; 168 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 169 | isa = PBXGroup; 170 | children = ( 171 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 172 | ); 173 | name = Products; 174 | sourceTree = ""; 175 | }; 176 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 177 | isa = PBXGroup; 178 | children = ( 179 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 180 | ); 181 | name = Products; 182 | sourceTree = ""; 183 | }; 184 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 185 | isa = PBXGroup; 186 | children = ( 187 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 188 | ); 189 | name = Products; 190 | sourceTree = ""; 191 | }; 192 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 193 | isa = PBXGroup; 194 | children = ( 195 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 196 | ); 197 | name = Products; 198 | sourceTree = ""; 199 | }; 200 | 00E356EF1AD99517003FC87E /* JdAppTests */ = { 201 | isa = PBXGroup; 202 | children = ( 203 | 00E356F21AD99517003FC87E /* JdAppTests.m */, 204 | 00E356F01AD99517003FC87E /* Supporting Files */, 205 | ); 206 | path = JdAppTests; 207 | sourceTree = ""; 208 | }; 209 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 210 | isa = PBXGroup; 211 | children = ( 212 | 00E356F11AD99517003FC87E /* Info.plist */, 213 | ); 214 | name = "Supporting Files"; 215 | sourceTree = ""; 216 | }; 217 | 139105B71AF99BAD00B5F7CC /* Products */ = { 218 | isa = PBXGroup; 219 | children = ( 220 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 221 | ); 222 | name = Products; 223 | sourceTree = ""; 224 | }; 225 | 139FDEE71B06529A00C62182 /* Products */ = { 226 | isa = PBXGroup; 227 | children = ( 228 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 229 | ); 230 | name = Products; 231 | sourceTree = ""; 232 | }; 233 | 13B07FAE1A68108700A75B9A /* JdApp */ = { 234 | isa = PBXGroup; 235 | children = ( 236 | AF7031DB1C91666000B340B8 /* main.jsbundle */, 237 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 238 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 239 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 240 | 13B07FB61A68108700A75B9A /* Info.plist */, 241 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 242 | 13B07FB71A68108700A75B9A /* main.m */, 243 | ); 244 | name = JdApp; 245 | sourceTree = ""; 246 | }; 247 | 146834001AC3E56700842450 /* Products */ = { 248 | isa = PBXGroup; 249 | children = ( 250 | 146834041AC3E56700842450 /* libReact.a */, 251 | ); 252 | name = Products; 253 | sourceTree = ""; 254 | }; 255 | 78C398B11ACF4ADC00677621 /* Products */ = { 256 | isa = PBXGroup; 257 | children = ( 258 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 259 | ); 260 | name = Products; 261 | sourceTree = ""; 262 | }; 263 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 264 | isa = PBXGroup; 265 | children = ( 266 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 267 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 268 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 269 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 270 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 271 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 272 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 273 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 274 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 275 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 276 | ); 277 | name = Libraries; 278 | sourceTree = ""; 279 | }; 280 | 832341B11AAA6A8300B99B32 /* Products */ = { 281 | isa = PBXGroup; 282 | children = ( 283 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 284 | ); 285 | name = Products; 286 | sourceTree = ""; 287 | }; 288 | 83CBB9F61A601CBA00E9B192 = { 289 | isa = PBXGroup; 290 | children = ( 291 | 13B07FAE1A68108700A75B9A /* JdApp */, 292 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 293 | 00E356EF1AD99517003FC87E /* JdAppTests */, 294 | 83CBBA001A601CBA00E9B192 /* Products */, 295 | ); 296 | indentWidth = 2; 297 | sourceTree = ""; 298 | tabWidth = 2; 299 | }; 300 | 83CBBA001A601CBA00E9B192 /* Products */ = { 301 | isa = PBXGroup; 302 | children = ( 303 | 13B07F961A680F5B00A75B9A /* JdApp.app */, 304 | 00E356EE1AD99517003FC87E /* JdAppTests.xctest */, 305 | ); 306 | name = Products; 307 | sourceTree = ""; 308 | }; 309 | /* End PBXGroup section */ 310 | 311 | /* Begin PBXNativeTarget section */ 312 | 00E356ED1AD99517003FC87E /* JdAppTests */ = { 313 | isa = PBXNativeTarget; 314 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "JdAppTests" */; 315 | buildPhases = ( 316 | 00E356EA1AD99517003FC87E /* Sources */, 317 | 00E356EB1AD99517003FC87E /* Frameworks */, 318 | 00E356EC1AD99517003FC87E /* Resources */, 319 | ); 320 | buildRules = ( 321 | ); 322 | dependencies = ( 323 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 324 | ); 325 | name = JdAppTests; 326 | productName = JdAppTests; 327 | productReference = 00E356EE1AD99517003FC87E /* JdAppTests.xctest */; 328 | productType = "com.apple.product-type.bundle.unit-test"; 329 | }; 330 | 13B07F861A680F5B00A75B9A /* JdApp */ = { 331 | isa = PBXNativeTarget; 332 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "JdApp" */; 333 | buildPhases = ( 334 | 13B07F871A680F5B00A75B9A /* Sources */, 335 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 336 | 13B07F8E1A680F5B00A75B9A /* Resources */, 337 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 338 | ); 339 | buildRules = ( 340 | ); 341 | dependencies = ( 342 | ); 343 | name = JdApp; 344 | productName = "Hello World"; 345 | productReference = 13B07F961A680F5B00A75B9A /* JdApp.app */; 346 | productType = "com.apple.product-type.application"; 347 | }; 348 | /* End PBXNativeTarget section */ 349 | 350 | /* Begin PBXProject section */ 351 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 352 | isa = PBXProject; 353 | attributes = { 354 | LastUpgradeCheck = 0610; 355 | ORGANIZATIONNAME = Facebook; 356 | TargetAttributes = { 357 | 00E356ED1AD99517003FC87E = { 358 | CreatedOnToolsVersion = 6.2; 359 | TestTargetID = 13B07F861A680F5B00A75B9A; 360 | }; 361 | }; 362 | }; 363 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "JdApp" */; 364 | compatibilityVersion = "Xcode 3.2"; 365 | developmentRegion = English; 366 | hasScannedForEncodings = 0; 367 | knownRegions = ( 368 | en, 369 | Base, 370 | ); 371 | mainGroup = 83CBB9F61A601CBA00E9B192; 372 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 373 | projectDirPath = ""; 374 | projectReferences = ( 375 | { 376 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 377 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 378 | }, 379 | { 380 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 381 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 382 | }, 383 | { 384 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 385 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 386 | }, 387 | { 388 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 389 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 390 | }, 391 | { 392 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 393 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 394 | }, 395 | { 396 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 397 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 398 | }, 399 | { 400 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 401 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 402 | }, 403 | { 404 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 405 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 406 | }, 407 | { 408 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 409 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 410 | }, 411 | { 412 | ProductGroup = 146834001AC3E56700842450 /* Products */; 413 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 414 | }, 415 | ); 416 | projectRoot = ""; 417 | targets = ( 418 | 13B07F861A680F5B00A75B9A /* JdApp */, 419 | 00E356ED1AD99517003FC87E /* JdAppTests */, 420 | ); 421 | }; 422 | /* End PBXProject section */ 423 | 424 | /* Begin PBXReferenceProxy section */ 425 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 426 | isa = PBXReferenceProxy; 427 | fileType = archive.ar; 428 | path = libRCTActionSheet.a; 429 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 430 | sourceTree = BUILT_PRODUCTS_DIR; 431 | }; 432 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 433 | isa = PBXReferenceProxy; 434 | fileType = archive.ar; 435 | path = libRCTGeolocation.a; 436 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 437 | sourceTree = BUILT_PRODUCTS_DIR; 438 | }; 439 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 440 | isa = PBXReferenceProxy; 441 | fileType = archive.ar; 442 | path = libRCTImage.a; 443 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 444 | sourceTree = BUILT_PRODUCTS_DIR; 445 | }; 446 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 447 | isa = PBXReferenceProxy; 448 | fileType = archive.ar; 449 | path = libRCTNetwork.a; 450 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 451 | sourceTree = BUILT_PRODUCTS_DIR; 452 | }; 453 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 454 | isa = PBXReferenceProxy; 455 | fileType = archive.ar; 456 | path = libRCTVibration.a; 457 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 458 | sourceTree = BUILT_PRODUCTS_DIR; 459 | }; 460 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 461 | isa = PBXReferenceProxy; 462 | fileType = archive.ar; 463 | path = libRCTSettings.a; 464 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 465 | sourceTree = BUILT_PRODUCTS_DIR; 466 | }; 467 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 468 | isa = PBXReferenceProxy; 469 | fileType = archive.ar; 470 | path = libRCTWebSocket.a; 471 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 472 | sourceTree = BUILT_PRODUCTS_DIR; 473 | }; 474 | 146834041AC3E56700842450 /* libReact.a */ = { 475 | isa = PBXReferenceProxy; 476 | fileType = archive.ar; 477 | path = libReact.a; 478 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 479 | sourceTree = BUILT_PRODUCTS_DIR; 480 | }; 481 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 482 | isa = PBXReferenceProxy; 483 | fileType = archive.ar; 484 | path = libRCTLinking.a; 485 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 486 | sourceTree = BUILT_PRODUCTS_DIR; 487 | }; 488 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 489 | isa = PBXReferenceProxy; 490 | fileType = archive.ar; 491 | path = libRCTText.a; 492 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 493 | sourceTree = BUILT_PRODUCTS_DIR; 494 | }; 495 | /* End PBXReferenceProxy section */ 496 | 497 | /* Begin PBXResourcesBuildPhase section */ 498 | 00E356EC1AD99517003FC87E /* Resources */ = { 499 | isa = PBXResourcesBuildPhase; 500 | buildActionMask = 2147483647; 501 | files = ( 502 | ); 503 | runOnlyForDeploymentPostprocessing = 0; 504 | }; 505 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 506 | isa = PBXResourcesBuildPhase; 507 | buildActionMask = 2147483647; 508 | files = ( 509 | AF7031DC1C91666000B340B8 /* main.jsbundle in Resources */, 510 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 511 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 512 | ); 513 | runOnlyForDeploymentPostprocessing = 0; 514 | }; 515 | /* End PBXResourcesBuildPhase section */ 516 | 517 | /* Begin PBXShellScriptBuildPhase section */ 518 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 519 | isa = PBXShellScriptBuildPhase; 520 | buildActionMask = 2147483647; 521 | files = ( 522 | ); 523 | inputPaths = ( 524 | ); 525 | name = "Bundle React Native code and images"; 526 | outputPaths = ( 527 | ); 528 | runOnlyForDeploymentPostprocessing = 0; 529 | shellPath = /bin/sh; 530 | shellScript = "../node_modules/react-native/packager/react-native-xcode.sh"; 531 | }; 532 | /* End PBXShellScriptBuildPhase section */ 533 | 534 | /* Begin PBXSourcesBuildPhase section */ 535 | 00E356EA1AD99517003FC87E /* Sources */ = { 536 | isa = PBXSourcesBuildPhase; 537 | buildActionMask = 2147483647; 538 | files = ( 539 | 00E356F31AD99517003FC87E /* JdAppTests.m in Sources */, 540 | ); 541 | runOnlyForDeploymentPostprocessing = 0; 542 | }; 543 | 13B07F871A680F5B00A75B9A /* Sources */ = { 544 | isa = PBXSourcesBuildPhase; 545 | buildActionMask = 2147483647; 546 | files = ( 547 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 548 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 549 | ); 550 | runOnlyForDeploymentPostprocessing = 0; 551 | }; 552 | /* End PBXSourcesBuildPhase section */ 553 | 554 | /* Begin PBXTargetDependency section */ 555 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 556 | isa = PBXTargetDependency; 557 | target = 13B07F861A680F5B00A75B9A /* JdApp */; 558 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 559 | }; 560 | /* End PBXTargetDependency section */ 561 | 562 | /* Begin PBXVariantGroup section */ 563 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 564 | isa = PBXVariantGroup; 565 | children = ( 566 | 13B07FB21A68108700A75B9A /* Base */, 567 | ); 568 | name = LaunchScreen.xib; 569 | path = JdApp; 570 | sourceTree = ""; 571 | }; 572 | /* End PBXVariantGroup section */ 573 | 574 | /* Begin XCBuildConfiguration section */ 575 | 00E356F61AD99517003FC87E /* Debug */ = { 576 | isa = XCBuildConfiguration; 577 | buildSettings = { 578 | BUNDLE_LOADER = "$(TEST_HOST)"; 579 | FRAMEWORK_SEARCH_PATHS = ( 580 | "$(SDKROOT)/Developer/Library/Frameworks", 581 | "$(inherited)", 582 | ); 583 | GCC_PREPROCESSOR_DEFINITIONS = ( 584 | "DEBUG=1", 585 | "$(inherited)", 586 | ); 587 | INFOPLIST_FILE = JdAppTests/Info.plist; 588 | IPHONEOS_DEPLOYMENT_TARGET = 8.2; 589 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 590 | PRODUCT_NAME = "$(TARGET_NAME)"; 591 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/JdApp.app/JdApp"; 592 | }; 593 | name = Debug; 594 | }; 595 | 00E356F71AD99517003FC87E /* Release */ = { 596 | isa = XCBuildConfiguration; 597 | buildSettings = { 598 | BUNDLE_LOADER = "$(TEST_HOST)"; 599 | COPY_PHASE_STRIP = NO; 600 | FRAMEWORK_SEARCH_PATHS = ( 601 | "$(SDKROOT)/Developer/Library/Frameworks", 602 | "$(inherited)", 603 | ); 604 | INFOPLIST_FILE = JdAppTests/Info.plist; 605 | IPHONEOS_DEPLOYMENT_TARGET = 8.2; 606 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 607 | PRODUCT_NAME = "$(TARGET_NAME)"; 608 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/JdApp.app/JdApp"; 609 | }; 610 | name = Release; 611 | }; 612 | 13B07F941A680F5B00A75B9A /* Debug */ = { 613 | isa = XCBuildConfiguration; 614 | buildSettings = { 615 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 616 | CODE_SIGN_IDENTITY = "iPhone Developer"; 617 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 618 | DEAD_CODE_STRIPPING = NO; 619 | HEADER_SEARCH_PATHS = ( 620 | "$(inherited)", 621 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 622 | "$(SRCROOT)/../node_modules/react-native/React/**", 623 | ); 624 | INFOPLIST_FILE = JdApp/Info.plist; 625 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 626 | OTHER_LDFLAGS = "-ObjC"; 627 | PRODUCT_BUNDLE_IDENTIFIER = com.coderyuan.jdapp; 628 | PRODUCT_NAME = JdApp; 629 | PROVISIONING_PROFILE = ""; 630 | }; 631 | name = Debug; 632 | }; 633 | 13B07F951A680F5B00A75B9A /* Release */ = { 634 | isa = XCBuildConfiguration; 635 | buildSettings = { 636 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 637 | CODE_SIGN_IDENTITY = "iPhone Developer"; 638 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 639 | HEADER_SEARCH_PATHS = ( 640 | "$(inherited)", 641 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 642 | "$(SRCROOT)/../node_modules/react-native/React/**", 643 | ); 644 | INFOPLIST_FILE = JdApp/Info.plist; 645 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 646 | OTHER_LDFLAGS = "-ObjC"; 647 | PRODUCT_BUNDLE_IDENTIFIER = com.coderyuan.jdapp; 648 | PRODUCT_NAME = JdApp; 649 | PROVISIONING_PROFILE = ""; 650 | }; 651 | name = Release; 652 | }; 653 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 654 | isa = XCBuildConfiguration; 655 | buildSettings = { 656 | ALWAYS_SEARCH_USER_PATHS = NO; 657 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 658 | CLANG_CXX_LIBRARY = "libc++"; 659 | CLANG_ENABLE_MODULES = YES; 660 | CLANG_ENABLE_OBJC_ARC = YES; 661 | CLANG_WARN_BOOL_CONVERSION = YES; 662 | CLANG_WARN_CONSTANT_CONVERSION = YES; 663 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 664 | CLANG_WARN_EMPTY_BODY = YES; 665 | CLANG_WARN_ENUM_CONVERSION = YES; 666 | CLANG_WARN_INT_CONVERSION = YES; 667 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 668 | CLANG_WARN_UNREACHABLE_CODE = YES; 669 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 670 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 671 | COPY_PHASE_STRIP = NO; 672 | ENABLE_STRICT_OBJC_MSGSEND = YES; 673 | GCC_C_LANGUAGE_STANDARD = gnu99; 674 | GCC_DYNAMIC_NO_PIC = NO; 675 | GCC_OPTIMIZATION_LEVEL = 0; 676 | GCC_PREPROCESSOR_DEFINITIONS = ( 677 | "DEBUG=1", 678 | "$(inherited)", 679 | ); 680 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 681 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 682 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 683 | GCC_WARN_UNDECLARED_SELECTOR = YES; 684 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 685 | GCC_WARN_UNUSED_FUNCTION = YES; 686 | GCC_WARN_UNUSED_VARIABLE = YES; 687 | HEADER_SEARCH_PATHS = ( 688 | "$(inherited)", 689 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 690 | "$(SRCROOT)/../node_modules/react-native/React/**", 691 | ); 692 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 693 | MTL_ENABLE_DEBUG_INFO = YES; 694 | ONLY_ACTIVE_ARCH = YES; 695 | SDKROOT = iphoneos; 696 | }; 697 | name = Debug; 698 | }; 699 | 83CBBA211A601CBA00E9B192 /* Release */ = { 700 | isa = XCBuildConfiguration; 701 | buildSettings = { 702 | ALWAYS_SEARCH_USER_PATHS = NO; 703 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 704 | CLANG_CXX_LIBRARY = "libc++"; 705 | CLANG_ENABLE_MODULES = YES; 706 | CLANG_ENABLE_OBJC_ARC = YES; 707 | CLANG_WARN_BOOL_CONVERSION = YES; 708 | CLANG_WARN_CONSTANT_CONVERSION = YES; 709 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 710 | CLANG_WARN_EMPTY_BODY = YES; 711 | CLANG_WARN_ENUM_CONVERSION = YES; 712 | CLANG_WARN_INT_CONVERSION = YES; 713 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 714 | CLANG_WARN_UNREACHABLE_CODE = YES; 715 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 716 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 717 | COPY_PHASE_STRIP = YES; 718 | ENABLE_NS_ASSERTIONS = NO; 719 | ENABLE_STRICT_OBJC_MSGSEND = YES; 720 | GCC_C_LANGUAGE_STANDARD = gnu99; 721 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 722 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 723 | GCC_WARN_UNDECLARED_SELECTOR = YES; 724 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 725 | GCC_WARN_UNUSED_FUNCTION = YES; 726 | GCC_WARN_UNUSED_VARIABLE = YES; 727 | HEADER_SEARCH_PATHS = ( 728 | "$(inherited)", 729 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 730 | "$(SRCROOT)/../node_modules/react-native/React/**", 731 | ); 732 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 733 | MTL_ENABLE_DEBUG_INFO = NO; 734 | SDKROOT = iphoneos; 735 | VALIDATE_PRODUCT = YES; 736 | }; 737 | name = Release; 738 | }; 739 | /* End XCBuildConfiguration section */ 740 | 741 | /* Begin XCConfigurationList section */ 742 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "JdAppTests" */ = { 743 | isa = XCConfigurationList; 744 | buildConfigurations = ( 745 | 00E356F61AD99517003FC87E /* Debug */, 746 | 00E356F71AD99517003FC87E /* Release */, 747 | ); 748 | defaultConfigurationIsVisible = 0; 749 | defaultConfigurationName = Release; 750 | }; 751 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "JdApp" */ = { 752 | isa = XCConfigurationList; 753 | buildConfigurations = ( 754 | 13B07F941A680F5B00A75B9A /* Debug */, 755 | 13B07F951A680F5B00A75B9A /* Release */, 756 | ); 757 | defaultConfigurationIsVisible = 0; 758 | defaultConfigurationName = Release; 759 | }; 760 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "JdApp" */ = { 761 | isa = XCConfigurationList; 762 | buildConfigurations = ( 763 | 83CBBA201A601CBA00E9B192 /* Debug */, 764 | 83CBBA211A601CBA00E9B192 /* Release */, 765 | ); 766 | defaultConfigurationIsVisible = 0; 767 | defaultConfigurationName = Release; 768 | }; 769 | /* End XCConfigurationList section */ 770 | }; 771 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 772 | } 773 | --------------------------------------------------------------------------------