Repository: duheng/Mozi Branch: master Commit: a3eadbd25e85 Files: 97 Total size: 240.1 KB Directory structure: gitextract_eay86s7o/ ├── .babelrc ├── .buckconfig ├── .eslintcache ├── .eslintignore ├── .eslintrc ├── .flowconfig ├── .gitattributes ├── .gitignore ├── .watchmanconfig ├── LICENSE ├── README.md ├── __tests__/ │ ├── index.android.js │ └── index.ios.js ├── _config.yml ├── android/ │ ├── app/ │ │ ├── BUCK │ │ ├── build.gradle │ │ ├── my-release-key.keystore │ │ ├── proguard-rules.pro │ │ └── src/ │ │ └── main/ │ │ ├── AndroidManifest.xml │ │ ├── java/ │ │ │ └── com/ │ │ │ └── mozi/ │ │ │ ├── MainActivity.java │ │ │ └── MainApplication.java │ │ └── res/ │ │ ├── layout/ │ │ │ └── launch_screen.xml │ │ └── values/ │ │ ├── colors.xml │ │ ├── strings.xml │ │ └── styles.xml │ ├── build.gradle │ ├── gradle/ │ │ └── wrapper/ │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties │ ├── gradle.properties │ ├── gradlew │ ├── gradlew.bat │ ├── keystores/ │ │ ├── BUCK │ │ └── debug.keystore.properties │ └── settings.gradle ├── app.json ├── index.js ├── ios/ │ ├── Mozi/ │ │ ├── AppDelegate.h │ │ ├── AppDelegate.m │ │ ├── Base.lproj/ │ │ │ └── LaunchScreen.xib │ │ ├── Images.xcassets/ │ │ │ ├── AppIcon.appiconset/ │ │ │ │ └── Contents.json │ │ │ ├── Contents.json │ │ │ └── LaunchImage.launchimage/ │ │ │ └── Contents.json │ │ ├── Info.plist │ │ ├── Mozi.entitlements │ │ └── main.m │ ├── Mozi-tvOS/ │ │ └── Info.plist │ ├── Mozi-tvOSTests/ │ │ └── Info.plist │ ├── Mozi.xcodeproj/ │ │ ├── project.pbxproj │ │ └── xcshareddata/ │ │ └── xcschemes/ │ │ ├── Mozi-tvOS.xcscheme │ │ └── Mozi.xcscheme │ └── MoziTests/ │ ├── Info.plist │ └── MoziTests.m ├── package.json ├── src/ │ ├── AppNavigationState.js │ ├── app/ │ │ ├── actions/ │ │ │ └── home.js │ │ ├── constants/ │ │ │ ├── actionTypes.js │ │ │ ├── apiConfig.js │ │ │ └── urls.js │ │ ├── reducers/ │ │ │ ├── base.js │ │ │ ├── home.js │ │ │ ├── index.js │ │ │ └── nav.js │ │ ├── selectors/ │ │ │ ├── base.js │ │ │ └── home.js │ │ └── store/ │ │ ├── configureStore.js │ │ └── connect.js │ ├── commons/ │ │ ├── i18n/ │ │ │ ├── cn.js │ │ │ ├── en.js │ │ │ └── index.js │ │ └── utils/ │ │ ├── md5.js │ │ ├── request.js │ │ └── util.js │ ├── components/ │ │ ├── Icon/ │ │ │ └── index.js │ │ ├── ListItem/ │ │ │ ├── index.js │ │ │ └── item.style.js │ │ ├── ListParagraph/ │ │ │ └── index.js │ │ ├── Loading/ │ │ │ └── index.js │ │ ├── NavigationButton/ │ │ │ └── index.js │ │ ├── Toast/ │ │ │ └── index.js │ │ └── index.js │ ├── config.js │ ├── containers/ │ │ ├── cheng/ │ │ │ ├── CustomPlaceholder.js │ │ │ └── index.js │ │ ├── demo/ │ │ │ ├── back.js │ │ │ ├── backa.js │ │ │ └── web.js │ │ ├── gong/ │ │ │ ├── HeaderImageScrollView.js │ │ │ └── index.js │ │ ├── mo/ │ │ │ ├── index.js │ │ │ ├── moui/ │ │ │ │ └── index.js │ │ │ ├── plug/ │ │ │ │ └── index.js │ │ │ └── rule/ │ │ │ └── index.js │ │ └── zi/ │ │ └── index.js │ ├── root.js │ └── routers/ │ ├── app.js │ └── index.js └── tab.js ================================================ FILE CONTENTS ================================================ ================================================ FILE: .babelrc ================================================ { "presets": ["module:metro-react-native-babel-preset"], "sourceMaps": true, "plugins": [ [ "module-resolver", { "root": ["./"], "extensions": [".js"], "alias": { "actions": "./src/app/actions", "constants": "./src/app/constants", "reducers": "./src/app/reducers", "selectors": "./src/app/selectors", "store": "./src/app/store", "assets": "./src/commons/assets", "styles": "./src/commons/styles", "utils": "./src/commons/utils", "components": "./src/components", "containers": "./src/containers", "routers": "./src/routers" }, "cwd": "babelrc" } ], ["@babel/plugin-proposal-decorators", { "legacy": true }], ["@babel/transform-runtime", { "helpers": true, "regenerator": false }], ], "env": { "production": { "plugins": ["transform-remove-console"] } } } ================================================ FILE: .buckconfig ================================================ [android] target = Google Inc.:Google APIs:23 [maven_repositories] central = https://repo1.maven.org/maven2 ================================================ FILE: .eslintcache ================================================ {"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/index.js":{"size":129,"mtime":1573299995553,"hashOfConfig":"1uae5uh","results":{"filePath":"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/index.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0}},"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/app/constants/actionTypes.js":{"size":255,"mtime":1573299995697,"hashOfConfig":"1uae5uh","results":{"filePath":"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/app/constants/actionTypes.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0}},"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/app/constants/apiConfig.js":{"size":183,"mtime":1573299995697,"hashOfConfig":"1uae5uh","results":{"filePath":"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/app/constants/apiConfig.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0}},"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/app/constants/urls.js":{"size":137,"mtime":1589085098862,"hashOfConfig":"1uae5uh","results":{"filePath":"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/app/constants/urls.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0}},"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/app/reducers/base.js":{"size":494,"mtime":1573299995698,"hashOfConfig":"1uae5uh","results":{"filePath":"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/app/reducers/base.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0}},"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/app/reducers/home.js":{"size":344,"mtime":1589085325637,"hashOfConfig":"1uae5uh","results":{"filePath":"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/app/reducers/home.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0}},"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/app/reducers/index.js":{"size":217,"mtime":1573299995698,"hashOfConfig":"1uae5uh","results":{"filePath":"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/app/reducers/index.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0}},"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/app/reducers/nav.js":{"size":195,"mtime":1573299995698,"hashOfConfig":"1uae5uh","results":{"filePath":"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/app/reducers/nav.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0}},"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/app/selectors/base.js":{"size":262,"mtime":1573299995699,"hashOfConfig":"1uae5uh","results":{"filePath":"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/app/selectors/base.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0}},"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/app/selectors/home.js":{"size":450,"mtime":1589085312073,"hashOfConfig":"1uae5uh","results":{"filePath":"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/app/selectors/home.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0}},"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/app/store/configureStore.js":{"size":803,"mtime":1573299995699,"hashOfConfig":"1uae5uh","results":{"filePath":"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/app/store/configureStore.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0}},"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/app/store/connect.js":{"size":477,"mtime":1573299995699,"hashOfConfig":"1uae5uh","results":{"filePath":"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/app/store/connect.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0}},"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/commons/i18n/cn.js":{"size":3926,"mtime":1573299995700,"hashOfConfig":"1uae5uh","results":{"filePath":"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/commons/i18n/cn.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0}},"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/commons/i18n/en.js":{"size":3761,"mtime":1573299995700,"hashOfConfig":"1uae5uh","results":{"filePath":"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/commons/i18n/en.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0}},"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/commons/i18n/index.js":{"size":287,"mtime":1573299995701,"hashOfConfig":"1uae5uh","results":{"filePath":"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/commons/i18n/index.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0}},"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/components/Icon/index.js":{"size":419,"mtime":1573299995702,"hashOfConfig":"1uae5uh","results":{"filePath":"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/components/Icon/index.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0}},"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/components/index.js":{"size":320,"mtime":1573299995704,"hashOfConfig":"1uae5uh","results":{"filePath":"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/components/index.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0}},"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/components/ListItem/item.style.js":{"size":1016,"mtime":1573299995702,"hashOfConfig":"1uae5uh","results":{"filePath":"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/components/ListItem/item.style.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0}},"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/components/ListParagraph/index.js":{"size":1334,"mtime":1573299995703,"hashOfConfig":"1uae5uh","results":{"filePath":"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/components/ListParagraph/index.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0}},"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/components/NavigationButton/index.js":{"size":1179,"mtime":1573299995703,"hashOfConfig":"1uae5uh","results":{"filePath":"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/components/NavigationButton/index.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0}},"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/config.js":{"size":3396,"mtime":1573299995704,"hashOfConfig":"1uae5uh","results":{"filePath":"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/config.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0}},"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/containers/cheng/CustomPlaceholder.js":{"size":346,"mtime":1589077886129,"hashOfConfig":"1uae5uh","results":{"filePath":"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/containers/cheng/CustomPlaceholder.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"output":"import React from 'react';\nimport { Text, } from 'react-native';\nimport Placeholder from 'rn-placeholder';\n\nconst customPlaceholder = props => {\n const style = { backgroundColor: props.bgColor, };\n return I m a custom loader with props bgColor = {props.bgColor};\n};\nexport default Placeholder.connect(customPlaceholder);\n"}},"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/containers/cheng/index.js":{"size":2593,"mtime":1589077886130,"hashOfConfig":"1uae5uh","results":{"filePath":"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/containers/cheng/index.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"output":"import React, { Component, } from 'react';\nimport { StyleSheet, Text, View, } from 'react-native';\nimport Placeholder from 'rn-placeholder';\nimport CustomPlaceholder from './CustomPlaceholder';\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n justifyContent: 'center',\n alignItems: 'center',\n backgroundColor: '#F5FCFF',\n },\n welcome: {\n fontSize: 20,\n textAlign: 'center',\n margin: 10,\n },\n box: {\n width: '90%',\n margin: 10,\n },\n});\n\nexport default class Cheng extends Component {\n static navigationOptions = {\n headerTitle: '城',\n };\n constructor(...args) {\n super(...args);\n\n this.state = {\n isReady: false,\n };\n }\n render() {\n return (\n \n \n 左边图右内容布局\n \n 左边图右内容布局\n \n \n \n 一行直线的布局\n \n 一行直线的布局\n \n \n \n 只有图片的布局\n \n 只有图片的布局\n \n \n \n 段落布局\n \n 段落布局\n \n \n \n 这是自定义demo\n \n \n \n );\n }\n}\n"}},"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/containers/demo/back.js":{"size":1281,"mtime":1573299995705,"hashOfConfig":"1uae5uh","results":{"filePath":"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/containers/demo/back.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0}},"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/containers/demo/backa.js":{"size":840,"mtime":1573299995705,"hashOfConfig":"1uae5uh","results":{"filePath":"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/containers/demo/backa.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0}},"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/containers/demo/web.js":{"size":1137,"mtime":1573299995705,"hashOfConfig":"1uae5uh","results":{"filePath":"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/containers/demo/web.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0}},"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/containers/gong/HeaderImageScrollView.js":{"size":7514,"mtime":1573299995705,"hashOfConfig":"1uae5uh","results":{"filePath":"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/containers/gong/HeaderImageScrollView.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0}},"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/containers/mo/index.js":{"size":1333,"mtime":1573299995706,"hashOfConfig":"1uae5uh","results":{"filePath":"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/containers/mo/index.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0}},"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/containers/mo/plug/index.js":{"size":2461,"mtime":1573299995707,"hashOfConfig":"1uae5uh","results":{"filePath":"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/containers/mo/plug/index.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0}},"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/containers/mo/rule/index.js":{"size":596,"mtime":1573299995707,"hashOfConfig":"1uae5uh","results":{"filePath":"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/containers/mo/rule/index.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0}},"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/root.js":{"size":799,"mtime":1573299995708,"hashOfConfig":"1uae5uh","results":{"filePath":"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/root.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0}},"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/routers/index.js":{"size":462,"mtime":1573299995708,"hashOfConfig":"1uae5uh","results":{"filePath":"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/routers/index.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0}},"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/tab.js":{"size":618,"mtime":1573299995708,"hashOfConfig":"1uae5uh","results":{"filePath":"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/tab.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0}},"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/app/actions/home.js":{"size":526,"mtime":1589085331268,"hashOfConfig":"1uae5uh","results":{"filePath":"/Users/Aaron/Desktop/Aaron/mygithub/Mozi/src/app/actions/home.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"output":"import { GET, } from '../../commons/utils/request';\nimport { movieList, } from '../constants/urls';\nimport * as types from '../constants/actionTypes';\n\nconst receiveMovies = data => {\n return {\n type: types.RECEIVE_MOVIES,\n ...data,\n };\n};\n\nconst fetchMovies = params => {\n return dispatch => {\n return GET(movieList, params).then(resp => {\n const { coming, } = resp;\n dispatch(\n receiveMovies({\n movies: coming,\n }),\n );\n });\n };\n};\n\n\nmodule.exports = {\n fetchMovies,\n};\n"}}} ================================================ FILE: .eslintignore ================================================ __tests__/ node_modules/ package.json package-lock.json ios/ android/ src/commons/utils/md5.js ================================================ FILE: .eslintrc ================================================ { "parser": "babel-eslint", "extends": "airbnb", "plugins": ["react", "jsx-a11y", "import"], "rules": { "no-console": 0, "no-mixed-operators": 0, "no-underscore-dangle": 0, "no-irregular-whitespace": 0, "newline-after-var": 0, "no-plusplus": [ "error", { "allowForLoopAfterthoughts": true } ], "no-unused-expressions": [ 1, { "allowShortCircuit": true } ], "semi": ["error", "always"], "comma-dangle": ["error", "always"], "array-bracket-spacing": ["error", "always"], "comma-spacing": ["error", { "before": false, "after": true }], "quotes": 0, "camelcase": 0, "arrow-parens": 0, "arrow-body-style": 0, "no-use-before-define": 1, "react/jsx-filename-extension": ["error", {"extensions": [".js", ".jsx"]}], "react/prefer-stateless-function": 0, "react/require-default-props": 0, "react/prop-types": 0, "import/no-unresolved": 0, "import/extensions": 0, "import/no-extraneous-dependencies": 0, "jsx-a11y/href-no-hash": 0 }, "globals": { "fetch": true, "__DEV__": true, "alert": true } } ================================================ FILE: .flowconfig ================================================ [ignore] ; We fork some components by platform .*/*[.]android.js ; Ignore "BUCK" generated dirs /\.buckd/ ; Ignore unexpected extra "@providesModule" .*/node_modules/.*/node_modules/fbjs/.* ; Ignore duplicate module providers ; For RN Apps installed via npm, "Libraries" folder is inside ; "node_modules/react-native" but in the source repo it is in the root .*/Libraries/react-native/React.js ; Ignore polyfills .*/Libraries/polyfills/.* [include] [libs] node_modules/react-native/Libraries/react-native/react-native-interface.js node_modules/react-native/flow/ [options] emoji=true esproposal.optional_chaining=enable esproposal.nullish_coalescing=enable module.system=haste module.system.haste.use_name_reducers=true # get basename module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1' # strip .js or .js.flow suffix module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1' # strip .ios suffix module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1' module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1' module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1' module.system.haste.paths.blacklist=.*/__tests__/.* module.system.haste.paths.blacklist=.*/__mocks__/.* module.system.haste.paths.blacklist=/node_modules/react-native/Libraries/Animated/src/polyfills/.* module.system.haste.paths.whitelist=/node_modules/react-native/Libraries/.* munge_underscores=true module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub' suppress_type=$FlowIssue suppress_type=$FlowFixMe suppress_type=$FlowFixMeProps suppress_type=$FlowFixMeState suppress_type=$FixMe suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(5[0-7]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(5[0-7]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError unsafe.enable_getters_and_setters=true [version] ^0.78.0 ================================================ FILE: .gitattributes ================================================ *.pbxproj -text ================================================ FILE: .gitignore ================================================ # OSX # .DS_Store # Xcode # build/ *.pbxuser !default.pbxuser *.mode1v3 !default.mode1v3 *.mode2v3 !default.mode2v3 *.perspectivev3 !default.perspectivev3 xcuserdata *.xccheckout *.moved-aside DerivedData *.hmap *.ipa *.xcuserstate project.xcworkspace # Android/IntelliJ # build/ .idea .gradle local.properties *.iml # node.js # node_modules/ npm-debug.log yarn-error.log # BUCK buck-out/ \.buckd/ # *.keystore # fastlane # # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the # screenshots whenever they are needed. # For more information about the recommended setup visit: # https://docs.fastlane.tools/best-practices/source-control/ */fastlane/report.xml */fastlane/Preview.html */fastlane/screenshots ================================================ FILE: .watchmanconfig ================================================ {} ================================================ FILE: LICENSE ================================================ MIT License Copyright (c) 2017 杜恒(duheng) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: README.md ================================================ # Mozi 2.0-beta [![npm](https://img.shields.io/npm/l/express.svg)](https://github.com/duheng/Mozi) [![CircleCI](https://img.shields.io/circleci/project/github/RedSparr0w/node-csgo-parser.svg)](https://github.com/duheng/Mozi) [![Codecov branch](https://img.shields.io/codecov/c/github/codecov/example-python/master.svg)](https://github.com/duheng/Mozi) 此项目致力于构建一套可最基础,最精简,可维护的 react-native 项目,适用于团队合作开发 React Native 项目,我们知道 react-native init 出来的项目只是一个最简单的 demo,距离开发企业级项目还差很远,所以这套框架是我在开发中总结优化而来的,会提供群里关注度高的问题的解决方案以及 demo,此项目虽然还不够完善,但是以此为基础足可以搭建一个大型项目: ##升级 2.1-beta 说明: ``` 1- 增加auth分枝,包含登录功能,个人中心 ``` ##升级 2.0-beta 说明: ``` 1- 升级react-native到0.55.4;升级了react-navigation到2.5.5;这快改动比较大,如果你自己的项目有不会升级react-navigation的可以参考一下config.js 2- 增加了消息推动和codepush,和jpush,目前安卓版本有效,ios因没有证书还没测试 3- 删除了redux-saga,删除的原因并不是因为它不优秀,我个人觉得它很优秀,但是根据大多数工程师反馈不会用saga。而我个人觉得它是一个锦上添花的模块,并不是一个必须的,为了适应大多数工程师的使用习惯改回了原始版本。 注:(大家有喜欢用saga的也可以用 mozi1.0 的分枝) 4-master分枝是2.0-beta版本,还没有完善,大家要用稳定版本的也可以用mozi1.0分枝 5- 这个版本集成了codepush和jpush,因为我觉得这是每个成熟的产品都必须要有的功能,大家换成自己申请的key就可以了;如果觉得不需要某个我集成的功能可以直接 unlink就OK了;比如:react-native unlink react-native-code-push 这个模块 ``` #### 涉及主要技术 ``` 1.项目主架构: react-native, react-navigation, redux, redux-saga, 2.自动化工程部分 eslint, prettier, editorconfig, pre-commit ``` #### 项目初始化 请完全按照以下步骤启动项目,请完全按照以下步骤启动项目,请完全按照以下步骤启动项目,重要的事情说三遍 ``` git clone https://github.com/duheng/Mozi.git cd Mozi yarn install yarn start yarn run ios (android) windows用户请用 react-native run-android 命令启动 ``` **特别注意** 目前 npm5 存在安装新库时会删除其他库的问题,导致项目无法正常运行。请尽量使用 yarn 代替 npm 操作; **项目演示** ---

--- #### 已经完善文档 & 已完善效果 一: [添加启动屏 API](http://www.jianshu.com/p/4540ac17dfd4) 二: [添加 icons](http://www.jianshu.com/p/a25e4ecce60f) 三: [React Native 预设占位 placeholder](http://www.jianshu.com/p/984ef99641f5) 四:SectionList Demo & 下拉刷新 五:FlatList Demo 六:react-navigation 自定义可缩放头部 七:返回到指定页面(返回多级) 群号:397885169(有问题或者需求欢迎进群探讨 ) 简书:http://www.jianshu.com/u/c971c7ffa27e 知乎:https://www.zhihu.com/people/duheng2011/activities **项目结构** ``` ├── README.md // help ├── src // Ract Native │ ├── app // redux部分 │ │ ├── actions // creat action │ │ ├── constants // constants │ │ ├── reducers // reducer │ │ ├── sagas // redux saga │ │ ├── selectors // 过滤以及准备view层需要的数据 │ │ └── store // store │ ├── commons // 共享基础模块 │ ├── components // Ract Native 通用组件 │ ├── containers │ │ └── page // 具体业务模块 │ ├── routers // 路由部分 │ │ ├── index.js // page模块聚合页 │ │ └── app.js // 导航注册 │ ├── AppNavigationState.js // Nvigation state 入口 │ ├── config.js // 导航通用配置 │ └── root.js // Ract Native 入口页 │ ├── ios // ios原生部分 ├── index.js // 项目注册入口文件 ├── android // android原生部分 ├── node_modules // 项目依赖包 ├── __test__ // 自动化测试 ├── package.json // 项目配置信息 ├── pre-commit // 提交代码时按照.eslint的配置进行校验 ├── .editorconfig // 统一不同编辑器配置 ├── .babelrc // 设置转码的规则,插件,文件地址映射 ├── .eslintrc // 代码校验规则配置 └── yarn.lock // 依赖的版本信息管理 ``` **项目架构说明** 1. 在 redux 的集成方面采用了 es7 的 Decorator 的写法,这样写的优势是在不污染现有代码逻辑的前提下实现了链接 store(非侵入式编程思想) ``` @connect(Selector筛选后符合渲染标准的数据, 当前页面需要的Actions) export default class Zi extends Component { } ``` 2. 采用了 redux-saga 来做扁平(描述性语言)化的数据组织方式,(优势是用同步的方式写异步码方便自动化测试,随意组织多个 action,代理 mock 数据,自由控制 loading) 3. 在导航(react-navigation)的配置方面我封装了 config.js 的通用配置,默认会用通用配置,当你在业务页面配置了相应的字段会用你自己配置的覆盖默认的。实现了自由耦合。比如下面 demo 是 墨规范 页面我配置了 headerTitle 会用当前配置的: ``` export default class Rule extends Component { static navigationOptions = { headerTitle: '墨规范', }; } ``` 4. 待更新... ### 依赖库 1. react-navigation: 是官方主推的导航库,支持ios和安卓,如果你想很好的支持安卓用户最好用这个, [导航器性能对比](http://reactnative.cn/docs/0.43/navigation.html) 2. redux: a predictable state container 3. react-redux: offical react binding for redux 4. redux-saga: An alternative side effect model for Redux apps 5. redux-logger: 日志 ### 组件库 1. MOUI: 是一套轻量的适用于react-native的ui组件库,待开发.. 2. react-native-vector-icons: 是可以直接使用图片名就能加载图标的第三方库,类似于web的iconfont矢量图,使用很方便, 你不需要在工程文件夹里塞各种图片, 节省很多空间 3. react-native-scrollable-tab-view:是一个很好用的可滑动的tab导航,(如果你的项目的tab没有超过一屏的话就用react-navigation的TabNavigator) ### 消息推送 1. jpush-react-native: 极光推送官方支持的 React Native 插件(Android & iOS) 2. react-native-code-push: 微软的热更新开源库 ### 如何使用消息推送 全局搜索 896ea8641e9c62c38906de41 ,替换成自己的JPUSH_APPKEY就可以了 ### 如何使用热更新 1. android部分:全局搜索 TyXCHztJx9rvb3Ogy5I4cVU-DHGH6a76e0de-a57f-4a89-b60d-01d72ab0675f ,替换成自己的安卓项目codepushkey就可以了; 2. ios部分: 全局搜索 5WgvzaDBLyL5zKjeLscIhfGKtJHb6a76e0de-a57f-4a89-b60d-01d72ab0675f ,替换成自己的ios项目codepushkey就可以了; ### 编程规范 编程规范我们使用的是airbnb,但是这还不够,我希望大部分的代码格式类的工作都能自动化帮我做,开发人员只需要注重业务代码就好。 为此我们用prettier+eslint+sublimelinter+airbnb,在保存代码的时候就对我们的代码进行格式化,提交代码之前再做一次严格的airbnb校验。基本就能保证团队代码的可维护性。 ### 数据统计和错误分析 1. 项目基础数据由talkingdata收集并分析,7日内错误率达到0.5%时发相关报警短信邮件给开发人员处理。 2. 细粒度的数据收集用react-native-google-analytics-bridge来收集,主要用于产品部门,大数据,项目运营人员对用户行为以及数据的分析 ================================================ FILE: __tests__/index.android.js ================================================ import 'react-native'; import React from 'react'; import Index from '../index.android.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create(); }); ================================================ FILE: __tests__/index.ios.js ================================================ import 'react-native'; import React from 'react'; import Index from '../index.ios.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create(); }); ================================================ FILE: _config.yml ================================================ theme: jekyll-theme-leap-day ================================================ FILE: android/app/BUCK ================================================ # To learn about Buck see [Docs](https://buckbuild.com/). # To run your application with Buck: # - install Buck # - `npm start` - to start the packager # - `cd android` # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck # - `buck install -r android/app` - compile, install and run application # lib_deps = [] for jarfile in glob(['libs/*.jar']): name = 'jars__' + jarfile[jarfile.rindex('/') + 1: jarfile.rindex('.jar')] lib_deps.append(':' + name) prebuilt_jar( name = name, binary_jar = jarfile, ) for aarfile in glob(['libs/*.aar']): name = 'aars__' + aarfile[aarfile.rindex('/') + 1: aarfile.rindex('.aar')] lib_deps.append(':' + name) android_prebuilt_aar( name = name, aar = aarfile, ) android_library( name = "all-libs", exported_deps = lib_deps, ) android_library( name = "app-code", srcs = glob([ "src/main/java/**/*.java", ]), deps = [ ":all-libs", ":build_config", ":res", ], ) android_build_config( name = "build_config", package = "com.mozi", ) android_resource( name = "res", package = "com.mozi", res = "src/main/res", ) android_binary( name = "app", keystore = "//android/keystores:debug", manifest = "src/main/AndroidManifest.xml", package_type = "debug", deps = [ ":app-code", ], ) ================================================ FILE: android/app/build.gradle ================================================ apply plugin: "com.android.application" import com.android.build.OutputFile /** * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets * and bundleReleaseJsAndAssets). * These basically call `react-native bundle` with the correct arguments during the Android build * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the * bundle directly from the development server. Below you can see all the possible configurations * and their defaults. If you decide to add a configuration block, make sure to add it before the * `apply from: "../../node_modules/react-native/react.gradle"` line. * * project.ext.react = [ * // the name of the generated asset file containing your JS bundle * bundleAssetName: "index.android.bundle", * * // the entry file for bundle generation * entryFile: "index.android.js", * * // whether to bundle JS and assets in debug mode * bundleInDebug: false, * * // whether to bundle JS and assets in release mode * bundleInRelease: true, * * // whether to bundle JS and assets in another build variant (if configured). * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants * // The configuration property can be in the following formats * // 'bundleIn${productFlavor}${buildType}' * // 'bundleIn${buildType}' * // bundleInFreeDebug: true, * // bundleInPaidRelease: true, * // bundleInBeta: true, * * // whether to disable dev mode in custom build variants (by default only disabled in release) * // for example: to disable dev mode in the staging build type (if configured) * devDisabledInStaging: true, * // The configuration property can be in the following formats * // 'devDisabledIn${productFlavor}${buildType}' * // 'devDisabledIn${buildType}' * * // the root of your project, i.e. where "package.json" lives * root: "../../", * * // where to put the JS bundle asset in debug mode * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", * * // where to put the JS bundle asset in release mode * jsBundleDirRelease: "$buildDir/intermediates/assets/release", * * // where to put drawable resources / React Native assets, e.g. the ones you use via * // require('./image.png')), in debug mode * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", * * // where to put drawable resources / React Native assets, e.g. the ones you use via * // require('./image.png')), in release mode * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", * * // by default the gradle tasks are skipped if none of the JS files or assets change; this means * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to * // date; if you have any other folders that you want to ignore for performance reasons (gradle * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ * // for example, you might want to remove it from here. * inputExcludes: ["android/**", "ios/**"], * * // override which node gets called and with what additional arguments * nodeExecutableAndArgs: ["node"], * * // supply additional arguments to the packager * extraPackagerArgs: [] * ] */ project.ext.react = [ entryFile: "index.js" ] apply from: "../../node_modules/react-native/react.gradle" apply from: "../../node_modules/react-native-code-push/android/codepush.gradle" /** * Set this to true to create two separate APKs instead of one: * - An APK that only works on ARM devices * - An APK that only works on x86 devices * The advantage is the size of the APK is reduced by about 4MB. * Upload all the APKs to the Play Store and people will download * the correct one based on the CPU architecture of their device. */ def enableSeparateBuildPerCPUArchitecture = false /** * Run Proguard to shrink the Java bytecode in release builds. */ def enableProguardInReleaseBuilds = false android { compileSdkVersion rootProject.ext.compileSdkVersion buildToolsVersion '28.0.3' defaultConfig { applicationId "com.mozi" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion versionCode 1 versionName "1.0.0" manifestPlaceholders = [ JPUSH_APPKEY: "896ea8641e9c62c38906de41", APP_CHANNEL : "default" ] ndk { abiFilters "armeabi-v7a", "x86" } } signingConfigs { release { storeFile file(MYAPP_RELEASE_STORE_FILE) storePassword MYAPP_RELEASE_STORE_PASSWORD keyAlias MYAPP_RELEASE_KEY_ALIAS keyPassword MYAPP_RELEASE_KEY_PASSWORD } } splits { abi { reset() enable enableSeparateBuildPerCPUArchitecture universalApk false // If true, also generate a universal APK include "armeabi-v7a", "x86" } } buildTypes { release { minifyEnabled enableProguardInReleaseBuilds proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" signingConfig signingConfigs.release buildConfigField "String", "CODEPUSH_KEY", '"TyXCHztJx9rvb3Ogy5I4cVU-DHGH6a76e0de-a57f-4a89-b60d-01d72ab0675f"' } } // applicationVariants are e.g. debug, release applicationVariants.all { variant -> variant.outputs.each { output -> // For each separate APK per architecture, set a unique version code as described here: // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits def versionCodes = ["armeabi-v7a":1, "x86":2] def abi = output.getFilter(OutputFile.ABI) if (abi != null) { // null for the universal-debug, universal-release variants output.versionCodeOverride = versionCodes.get(abi) * 1048576 + defaultConfig.versionCode } } } } dependencies { implementation project(':react-native-device-info') implementation project(':react-native-gesture-handler') implementation project(':react-native-code-push') implementation project(':jcore-react-native') implementation project(':jpush-react-native') implementation project(':react-native-splash-screen') implementation project(':react-native-vector-icons') implementation fileTree(dir: "libs", include: ["*.jar"]) implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}" implementation "com.facebook.react:react-native:+" // From node_modules } // Run this once to be able to run the application with BUCK // puts all compile dependencies into folder libs for BUCK to use task copyDownloadableDepsToLibs(type: Copy) { from configurations.compile into 'libs' } ================================================ FILE: android/app/proguard-rules.pro ================================================ # Add project specific ProGuard rules here. # By default, the flags in this file are appended to flags specified # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt # You can edit the include path and order by changing the proguardFiles # directive in build.gradle. # # For more details, see # http://developer.android.com/guide/developing/tools/proguard.html # Add any project specific keep options here: # If your project uses WebView with JS, uncomment the following # and specify the fully qualified class name to the JavaScript interface # class: #-keepclassmembers class fqcn.of.javascript.interface.for.webview { # public *; #} ================================================ FILE: android/app/src/main/AndroidManifest.xml ================================================ ================================================ FILE: android/app/src/main/java/com/mozi/MainActivity.java ================================================ package com.mozi; import android.os.Bundle; import com.facebook.react.ReactActivity; import org.devio.rn.splashscreen.SplashScreen; // 1.导入启动屏包 import cn.jpush.android.api.JPushInterface; public class MainActivity extends ReactActivity { /** * Returns the name of the main component registered from JavaScript. * This is used to schedule rendering of the component. */ @Override protected String getMainComponentName() { return "Mozi"; } @Override protected void onCreate(Bundle savedInstanceState) { // 2. 显示启动方法 SplashScreen.show(this); super.onCreate(savedInstanceState); JPushInterface.init(this); } @Override protected void onPause() { super.onPause(); JPushInterface.onPause(this); } @Override protected void onResume() { super.onResume(); JPushInterface.onResume(this); } @Override protected void onDestroy() { super.onDestroy(); } } ================================================ FILE: android/app/src/main/java/com/mozi/MainApplication.java ================================================ package com.mozi; import android.app.Application; import com.facebook.react.ReactApplication; import com.learnium.RNDeviceInfo.RNDeviceInfo; import cn.jpush.reactnativejpush.JPushPackage; import com.swmansion.gesturehandler.react.RNGestureHandlerPackage; import com.microsoft.codepush.react.CodePush; import org.devio.rn.splashscreen.SplashScreenReactPackage; import com.oblador.vectoricons.VectorIconsPackage; import com.facebook.react.ReactNativeHost; import com.facebook.react.ReactPackage; import com.facebook.react.shell.MainReactPackage; import com.facebook.soloader.SoLoader; import java.util.Arrays; import java.util.List; public class MainApplication extends Application implements ReactApplication { // 设置为 true 将不会弹出 toast private boolean SHUTDOWN_TOAST = false; // 设置为 true 将不会打印 log private boolean SHUTDOWN_LOG = false; private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { @Override protected String getJSBundleFile() { return CodePush.getJSBundleFile(); } @Override public boolean getUseDeveloperSupport() { return BuildConfig.DEBUG; } @Override protected List getPackages() { return Arrays.asList( new MainReactPackage(), new RNDeviceInfo(), new RNGestureHandlerPackage(), new CodePush(getResources().getString(R.string.reactNativeCodePush_androidDeploymentKey), getApplicationContext(), BuildConfig.DEBUG), new SplashScreenReactPackage(), new VectorIconsPackage(), new JPushPackage(SHUTDOWN_TOAST, SHUTDOWN_LOG) // <-- 添加 JPushPackage ); } @Override protected String getJSMainModuleName() { return "index"; } }; @Override public ReactNativeHost getReactNativeHost() { return mReactNativeHost; } @Override public void onCreate() { super.onCreate(); SoLoader.init(this, /* native exopackage */ false); } } ================================================ FILE: android/app/src/main/res/layout/launch_screen.xml ================================================ ================================================ FILE: android/app/src/main/res/values/colors.xml ================================================ #000000 ================================================ FILE: android/app/src/main/res/values/strings.xml ================================================ TyXCHztJx9rvb3Ogy5I4cVU-DHGH6a76e0de-a57f-4a89-b60d-01d72ab0675f Mozi ================================================ FILE: android/app/src/main/res/values/styles.xml ================================================ ================================================ FILE: android/build.gradle ================================================ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext { buildToolsVersion = "27.0.3" minSdkVersion = 16 compileSdkVersion = 27 targetSdkVersion = 26 supportLibVersion = "27.1.1" googlePlayServicesVersion = "15.0.0" } repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.2.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { mavenLocal() google() jcenter() maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url "$rootDir/../node_modules/react-native/android" } } } task wrapper(type: Wrapper) { gradleVersion = '4.4' distributionUrl = distributionUrl.replace("bin", "all") } ================================================ FILE: android/gradle/wrapper/gradle-wrapper.properties ================================================ #Thu Jan 10 18:28:10 CST 2019 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip #如果你项目启动的时候以上地址一直下载不下来,可以自行下载,用以下方式引入 #distributionUrl=file:\/Users/Aaron/Desktop/Aaron/gradle-4.6.zip ================================================ FILE: android/gradle.properties ================================================ # Project-wide Gradle settings. # IDE (e.g. Android Studio) users: # Gradle settings configured through the IDE *will override* # any settings specified in this file. # For more details on how to configure your build environment visit # http://www.gradle.org/docs/current/userguide/build_environment.html # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. # Default value: -Xmx10248m -XX:MaxPermSize=256m # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 # When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. More details, visit # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects # org.gradle.parallel=true android.useDeprecatedNdk=true MYAPP_RELEASE_STORE_FILE=my-release-key.keystore MYAPP_RELEASE_KEY_ALIAS=my-key-alias MYAPP_RELEASE_STORE_PASSWORD=mozi123 MYAPP_RELEASE_KEY_PASSWORD=mozi123 ================================================ FILE: android/gradlew ================================================ #!/usr/bin/env sh ############################################################################## ## ## Gradle start up script for UN*X ## ############################################################################## # Attempt to set APP_HOME # Resolve links: $0 may be a link PRG="$0" # Need this for relative symlinks. while [ -h "$PRG" ] ; do ls=`ls -ld "$PRG"` link=`expr "$ls" : '.*-> \(.*\)$'` if expr "$link" : '/.*' > /dev/null; then PRG="$link" else PRG=`dirname "$PRG"`"/$link" fi done SAVED="`pwd`" cd "`dirname \"$PRG\"`/" >/dev/null APP_HOME="`pwd -P`" cd "$SAVED" >/dev/null APP_NAME="Gradle" APP_BASE_NAME=`basename "$0"` # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. DEFAULT_JVM_OPTS="" # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD="maximum" warn () { echo "$*" } die () { echo echo "$*" echo exit 1 } # OS specific support (must be 'true' or 'false'). cygwin=false msys=false darwin=false nonstop=false case "`uname`" in CYGWIN* ) cygwin=true ;; Darwin* ) darwin=true ;; MINGW* ) msys=true ;; NONSTOP* ) nonstop=true ;; esac CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar # Determine the Java command to use to start the JVM. if [ -n "$JAVA_HOME" ] ; then if [ -x "$JAVA_HOME/jre/sh/java" ] ; then # IBM's JDK on AIX uses strange locations for the executables JAVACMD="$JAVA_HOME/jre/sh/java" else JAVACMD="$JAVA_HOME/bin/java" fi if [ ! -x "$JAVACMD" ] ; then die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME Please set the JAVA_HOME variable in your environment to match the location of your Java installation." fi else JAVACMD="java" which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. Please set the JAVA_HOME variable in your environment to match the location of your Java installation." fi # Increase the maximum file descriptors if we can. if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then MAX_FD_LIMIT=`ulimit -H -n` if [ $? -eq 0 ] ; then if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then MAX_FD="$MAX_FD_LIMIT" fi ulimit -n $MAX_FD if [ $? -ne 0 ] ; then warn "Could not set maximum file descriptor limit: $MAX_FD" fi else warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" fi fi # For Darwin, add options to specify how the application appears in the dock if $darwin; then GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" fi # For Cygwin, switch paths to Windows format before running java if $cygwin ; then APP_HOME=`cygpath --path --mixed "$APP_HOME"` CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` JAVACMD=`cygpath --unix "$JAVACMD"` # We build the pattern for arguments to be converted via cygpath ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` SEP="" for dir in $ROOTDIRSRAW ; do ROOTDIRS="$ROOTDIRS$SEP$dir" SEP="|" done OURCYGPATTERN="(^($ROOTDIRS))" # Add a user-defined pattern to the cygpath arguments if [ "$GRADLE_CYGPATTERN" != "" ] ; then OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" fi # Now convert the arguments - kludge to limit ourselves to /bin/sh i=0 for arg in "$@" ; do CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` else eval `echo args$i`="\"$arg\"" fi i=$((i+1)) done case $i in (0) set -- ;; (1) set -- "$args0" ;; (2) set -- "$args0" "$args1" ;; (3) set -- "$args0" "$args1" "$args2" ;; (4) set -- "$args0" "$args1" "$args2" "$args3" ;; (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; esac fi # Escape application args save () { for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done echo " " } APP_ARGS=$(save "$@") # Collect all arguments for the java command, following the shell quoting and substitution rules eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then cd "$(dirname "$0")" fi exec "$JAVACMD" "$@" ================================================ FILE: android/gradlew.bat ================================================ @if "%DEBUG%" == "" @echo off @rem ########################################################################## @rem @rem Gradle startup script for Windows @rem @rem ########################################################################## @rem Set local scope for the variables with windows NT shell if "%OS%"=="Windows_NT" setlocal set DIRNAME=%~dp0 if "%DIRNAME%" == "" set DIRNAME=. set APP_BASE_NAME=%~n0 set APP_HOME=%DIRNAME% @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. set DEFAULT_JVM_OPTS= @rem Find java.exe if defined JAVA_HOME goto findJavaFromJavaHome set JAVA_EXE=java.exe %JAVA_EXE% -version >NUL 2>&1 if "%ERRORLEVEL%" == "0" goto init echo. echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. echo. echo Please set the JAVA_HOME variable in your environment to match the echo location of your Java installation. goto fail :findJavaFromJavaHome set JAVA_HOME=%JAVA_HOME:"=% set JAVA_EXE=%JAVA_HOME%/bin/java.exe if exist "%JAVA_EXE%" goto init echo. echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% echo. echo Please set the JAVA_HOME variable in your environment to match the echo location of your Java installation. goto fail :init @rem Get command-line arguments, handling Windows variants if not "%OS%" == "Windows_NT" goto win9xME_args :win9xME_args @rem Slurp the command line arguments. set CMD_LINE_ARGS= set _SKIP=2 :win9xME_args_slurp if "x%~1" == "x" goto execute set CMD_LINE_ARGS=%* :execute @rem Setup the command line set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar @rem Execute Gradle "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% :end @rem End local scope for the variables with windows NT shell if "%ERRORLEVEL%"=="0" goto mainEnd :fail rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of rem the _cmd.exe /c_ return code! if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 exit /b 1 :mainEnd if "%OS%"=="Windows_NT" endlocal :omega ================================================ FILE: android/keystores/BUCK ================================================ keystore( name = "debug", properties = "debug.keystore.properties", store = "debug.keystore", visibility = [ "PUBLIC", ], ) ================================================ FILE: android/keystores/debug.keystore.properties ================================================ key.store=debug.keystore key.alias=androiddebugkey key.store.password=android key.alias.password=android ================================================ FILE: android/settings.gradle ================================================ rootProject.name = 'Mozi' include ':react-native-device-info' project(':react-native-device-info').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-device-info/android') include ':react-native-gesture-handler' project(':react-native-gesture-handler').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-gesture-handler/android') include ':react-native-code-push' project(':react-native-code-push').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-code-push/android/app') include ':jcore-react-native' project(':jcore-react-native').projectDir = new File(rootProject.projectDir, '../node_modules/jcore-react-native/android') include ':jpush-react-native' project(':jpush-react-native').projectDir = new File(rootProject.projectDir, '../node_modules/jpush-react-native/android') include ':react-native-splash-screen' project(':react-native-splash-screen').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-splash-screen/android') include ':react-native-vector-icons' project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android') include ':app' ================================================ FILE: app.json ================================================ { "name": "Mozi", "displayName": "Mozi", "window": { "headerBackgroundColor": "#262a37", "headerTitleStyle" : { "alignSelf": "center", "textAlign": "center", "flex": 1, "fontSize": 18, "color": "#FFFFFF", } } } ================================================ FILE: index.js ================================================ import { AppRegistry, } from 'react-native'; import Mozi from './src/root'; AppRegistry.registerComponent('Mozi', () => Mozi); ================================================ FILE: ios/Mozi/AppDelegate.h ================================================ /** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #import @interface AppDelegate : UIResponder @property (nonatomic, strong) UIWindow *window; @end ================================================ FILE: ios/Mozi/AppDelegate.m ================================================ /** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #import "AppDelegate.h" #import #import #ifdef NSFoundationVersionNumber_iOS_9_x_Max #import #endif #import #import #import "RNSplashScreen.h" // 1. 导入启动屏包 @implementation AppDelegate - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken { [JPUSHService registerDeviceToken:deviceToken]; } - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo { [[NSNotificationCenter defaultCenter] postNotificationName:kJPFDidReceiveRemoteNotification object:userInfo]; } - (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification { [[NSNotificationCenter defaultCenter] postNotificationName:kJPFDidReceiveRemoteNotification object: notification.userInfo]; } - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^) (UIBackgroundFetchResult))completionHandler { [[NSNotificationCenter defaultCenter] postNotificationName:kJPFDidReceiveRemoteNotification object:userInfo]; } - (void)jpushNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(NSInteger))completionHandler { NSDictionary * userInfo = notification.request.content.userInfo; if ([notification.request.trigger isKindOfClass:[UNPushNotificationTrigger class]]) { [JPUSHService handleRemoteNotification:userInfo]; [[NSNotificationCenter defaultCenter] postNotificationName:kJPFDidReceiveRemoteNotification object:userInfo]; } completionHandler(UNNotificationPresentationOptionAlert); } - (void)jpushNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void (^)())completionHandler { NSDictionary * userInfo = response.notification.request.content.userInfo; if ([response.notification.request.trigger isKindOfClass:[UNPushNotificationTrigger class]]) { [JPUSHService handleRemoteNotification:userInfo]; [[NSNotificationCenter defaultCenter] postNotificationName:kJPFOpenNotification object:userInfo]; } completionHandler(); } - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [JPUSHService setupWithOption:launchOptions appKey:@"896ea8641e9c62c38906de41" channel:nil apsForProduction:nil]; NSURL *jsCodeLocation; #ifdef DEBUG jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; #else jsCodeLocation = [CodePush bundleURL]; #endif RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation moduleName:@"Mozi" initialProperties:nil launchOptions:launchOptions]; rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; UIViewController *rootViewController = [UIViewController new]; rootViewController.view = rootView; self.window.rootViewController = rootViewController; [self.window makeKeyAndVisible]; [RNSplashScreen show]; // 2. 显示启动屏幕 return YES; } @end ================================================ FILE: ios/Mozi/Base.lproj/LaunchScreen.xib ================================================ ================================================ FILE: ios/Mozi/Images.xcassets/AppIcon.appiconset/Contents.json ================================================ { "images" : [ { "idiom" : "iphone", "size" : "20x20", "scale" : "2x" }, { "idiom" : "iphone", "size" : "20x20", "scale" : "3x" }, { "idiom" : "iphone", "size" : "29x29", "scale" : "2x" }, { "idiom" : "iphone", "size" : "29x29", "scale" : "3x" }, { "idiom" : "iphone", "size" : "40x40", "scale" : "2x" }, { "idiom" : "iphone", "size" : "40x40", "scale" : "3x" }, { "size" : "60x60", "idiom" : "iphone", "filename" : "icon120.png", "scale" : "2x" }, { "size" : "60x60", "idiom" : "iphone", "filename" : "icon180.png", "scale" : "3x" }, { "size" : "1024x1024", "idiom" : "ios-marketing", "filename" : "icon-2.png", "scale" : "1x" } ], "info" : { "version" : 1, "author" : "xcode" } } ================================================ FILE: ios/Mozi/Images.xcassets/Contents.json ================================================ { "info" : { "version" : 1, "author" : "xcode" } } ================================================ FILE: ios/Mozi/Images.xcassets/LaunchImage.launchimage/Contents.json ================================================ { "images" : [ { "extent" : "full-screen", "idiom" : "iphone", "subtype" : "2436h", "filename" : "LaunchScreen1125 x2436-2.png", "minimum-system-version" : "11.0", "orientation" : "portrait", "scale" : "3x" }, { "extent" : "full-screen", "idiom" : "iphone", "subtype" : "736h", "filename" : "iphone8-5.5.png", "minimum-system-version" : "8.0", "orientation" : "portrait", "scale" : "3x" }, { "extent" : "full-screen", "idiom" : "iphone", "subtype" : "736h", "filename" : "iphone8-5.5-1.png", "minimum-system-version" : "8.0", "orientation" : "landscape", "scale" : "3x" }, { "extent" : "full-screen", "idiom" : "iphone", "subtype" : "667h", "filename" : "iphone8-4.7.png", "minimum-system-version" : "8.0", "orientation" : "portrait", "scale" : "2x" }, { "orientation" : "portrait", "idiom" : "iphone", "filename" : "LaunchScreen640x960.png", "extent" : "full-screen", "minimum-system-version" : "7.0", "scale" : "2x" }, { "extent" : "full-screen", "idiom" : "iphone", "subtype" : "retina4", "filename" : "LaunchScreen640 x1136.png", "minimum-system-version" : "7.0", "orientation" : "portrait", "scale" : "2x" }, { "orientation" : "portrait", "idiom" : "iphone", "extent" : "full-screen", "scale" : "1x" }, { "orientation" : "portrait", "idiom" : "iphone", "filename" : "LaunchScreen640x960-1.png", "extent" : "full-screen", "scale" : "2x" }, { "orientation" : "portrait", "idiom" : "iphone", "filename" : "LaunchScreen640 x1136-1.png", "extent" : "full-screen", "subtype" : "retina4", "scale" : "2x" } ], "info" : { "version" : 1, "author" : "xcode" } } ================================================ FILE: ios/Mozi/Info.plist ================================================ CFBundleDevelopmentRegion en CFBundleDisplayName Mozi CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName $(PRODUCT_NAME) CFBundlePackageType APPL CFBundleShortVersionString 1.0.0 CFBundleVersion 1 CodePushDeploymentKey 5WgvzaDBLyL5zKjeLscIhfGKtJHb6a76e0de-a57f-4a89-b60d-01d72ab0675f LSRequiresIPhoneOS NSAppTransportSecurity NSExceptionDomains localhost NSExceptionAllowsInsecureHTTPLoads NSLocationWhenInUseUsageDescription UIAppFonts Entypo.ttf EvilIcons.ttf FontAwesome.ttf Foundation.ttf Ionicons.ttf MaterialCommunityIcons.ttf MaterialIcons.ttf Octicons.ttf SimpleLineIcons.ttf Zocial.ttf Feather.ttf UIBackgroundModes remote-notification UIRequiredDeviceCapabilities armv7 UISupportedInterfaceOrientations UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIViewControllerBasedStatusBarAppearance ================================================ FILE: ios/Mozi/Mozi.entitlements ================================================ aps-environment development ================================================ FILE: ios/Mozi/main.m ================================================ /** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #import #import "AppDelegate.h" int main(int argc, char * argv[]) { @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); } } ================================================ FILE: ios/Mozi-tvOS/Info.plist ================================================ CFBundleDevelopmentRegion en CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) CFBundleInfoDictionaryVersion 6.0 CFBundleName $(PRODUCT_NAME) CFBundlePackageType APPL CFBundleShortVersionString 1.0 CFBundleSignature ???? CFBundleVersion 1 LSRequiresIPhoneOS UILaunchStoryboardName LaunchScreen UIRequiredDeviceCapabilities armv7 UISupportedInterfaceOrientations UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIViewControllerBasedStatusBarAppearance NSLocationWhenInUseUsageDescription NSAppTransportSecurity NSExceptionDomains localhost NSExceptionAllowsInsecureHTTPLoads ================================================ FILE: ios/Mozi-tvOSTests/Info.plist ================================================ CFBundleDevelopmentRegion en CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) CFBundleInfoDictionaryVersion 6.0 CFBundleName $(PRODUCT_NAME) CFBundlePackageType BNDL CFBundleShortVersionString 1.0 CFBundleSignature ???? CFBundleVersion 1 ================================================ FILE: ios/Mozi.xcodeproj/project.pbxproj ================================================ // !$*UTF8*$! { archiveVersion = 1; classes = { }; objectVersion = 46; objects = { /* Begin PBXBuildFile section */ 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; }; 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; }; 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; }; 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; }; 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; }; 00E356F31AD99517003FC87E /* MoziTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* MoziTests.m */; }; 027F5F7EA6704F1A94959048 /* CFNetwork.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DC24AE13C6A848C4A64A8BEC /* CFNetwork.framework */; }; 0A94FA42FA734AFBB7EE42A6 /* Octicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 7FEAAC7DE5774AD5A7AF964C /* Octicons.ttf */; }; 11D1A2F320CAFA9E000508D9 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 25C37FE1CABD42D5B0DE90C5 /* libresolv.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = C49095E1C4C84845ABF93A87 /* libresolv.tbd */; }; 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */; }; 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */; }; 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */; }; 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */; }; 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */; }; 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */; }; 2D02E4C91E0B4AEC006451C7 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3EA31DF850E9000B6D8A /* libReact.a */; }; 2DCD954D1E0B4F2C00145EB5 /* MoziTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* MoziTests.m */; }; 3D41771914134245BCDA4145 /* EvilIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = B04A5E546465440EA935C9FC /* EvilIcons.ttf */; }; 3EFC119072504DE5BAA1053D /* Feather.ttf in Resources */ = {isa = PBXBuildFile; fileRef = EB98245B2CF648DA9A0D10B3 /* Feather.ttf */; }; 4588DBB5AFB74303BB9FB0E7 /* libRCTJPushModule.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 31BD5408C8BA40A9AB31769D /* libRCTJPushModule.a */; }; 4A00CCDD87674FB499DC2A86 /* CoreTelephony.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8CC7069839FB497CB16FBA07 /* CoreTelephony.framework */; }; 4A90A66A06BF4355A875AF26 /* SimpleLineIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 457EDB6A20284C51B0572ABE /* SimpleLineIcons.ttf */; }; 4C54B34038B34A2C899176C4 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CB0FBF4A43E048ACA7E6EE50 /* CoreGraphics.framework */; }; 4EDB78C1497748999FADF3FF /* libRNDeviceInfo-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 25DA72EDE9654851AF78C6C0 /* libRNDeviceInfo-tvOS.a */; }; 512C933BE9B742BAA88280CB /* libRNGestureHandler.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 34413B3C9C7947159BCAD312 /* libRNGestureHandler.a */; }; 54D4656D0DE948AE8229199A /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3CD3A42F9FC544449C0D210F /* Security.framework */; }; 6C20C6581D114CB981E69A16 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 78911FABBFF6445C8C46912B /* SystemConfiguration.framework */; }; 71BAD735686C47A8884FFDE5 /* Entypo.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 67EEBE3037544141B01EF948 /* Entypo.ttf */; }; 744BDFB363F24CA1B08CBCBE /* libRNDeviceInfo.a in Frameworks */ = {isa = PBXBuildFile; fileRef = D1200F3E2ABE4650B892F54C /* libRNDeviceInfo.a */; }; 7503964D7F33441489D8270D /* libSplashScreen.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0C959D21FA764B0396428649 /* libSplashScreen.a */; }; 8292B522BA374F13A79EFE4E /* UserNotifications.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 647EAC5399ED42D48E250864 /* UserNotifications.framework */; settings = {ATTRIBUTES = (Weak, ); }; }; 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 832583A23FB346DC968C09BF /* libRNVectorIcons.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B3621F4032F9435D945418CE /* libRNVectorIcons.a */; }; 866F2DD2EDCC4B7F85681B54 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FC5A5E28735F4B90BAD770D6 /* Foundation.framework */; }; 8BAC3C6C16CE4907B19B4D11 /* libRCTJCoreModule.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3E98D972EE904596B3560BC9 /* libRCTJCoreModule.a */; }; 903B1E360AE14C57A8B851FA /* Zocial.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 6F5416F3A1B843A39E65D101 /* Zocial.ttf */; }; 916BBE5B3042403FBF88B500 /* MaterialCommunityIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 2D4268A182F4468AA3FA4A4E /* MaterialCommunityIcons.ttf */; }; 937452C11F5A9B5E00F01FDA /* Fonts in Resources */ = {isa = PBXBuildFile; fileRef = 937452C01F5A9B5E00F01FDA /* Fonts */; }; A4AD63F3DCE541478C34BE53 /* FontAwesome.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 8BFE1E3A86524474878D8D91 /* FontAwesome.ttf */; }; A811A90E3AFE4F2BAF8260FE /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B78D1FF8D67D492CAA460AB3 /* CoreFoundation.framework */; }; B7B97B70282F47109C6D884F /* Ionicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = A8364BB7718B488B96D7BA46 /* Ionicons.ttf */; }; BBDD151508174251B2D70858 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8B8AA8A02B4B44F89690AF68 /* UIKit.framework */; }; CDADE8F99C4D4C33871032FE /* Foundation.ttf in Resources */ = {isa = PBXBuildFile; fileRef = F9C3900C66074853937A0E3B /* Foundation.ttf */; }; DAAE26B639FC4195BA20D306 /* libCodePush.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 839FB109878741C0A05AD9D7 /* libCodePush.a */; }; DF57E95F8B374A34849637C8 /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = EF7963DBAF3E4F07AB3FECF6 /* libz.tbd */; }; F02B6C54DD3D4ACBB957CE91 /* MaterialIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 5E683A6ECEBC44E186E186E6 /* MaterialIcons.ttf */; }; F2FD89945F5348F6A9D60FE6 /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = FBD04CF1A42B485B890C8721 /* libz.tbd */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; proxyType = 2; remoteGlobalIDString = 134814201AA4EA6300B7C361; remoteInfo = RCTActionSheet; }; 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; proxyType = 2; remoteGlobalIDString = 134814201AA4EA6300B7C361; remoteInfo = RCTGeolocation; }; 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; proxyType = 2; remoteGlobalIDString = 58B5115D1A9E6B3D00147676; remoteInfo = RCTImage; }; 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; proxyType = 2; remoteGlobalIDString = 58B511DB1A9E6C8500147676; remoteInfo = RCTNetwork; }; 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; proxyType = 2; remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; remoteInfo = RCTVibration; }; 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; proxyType = 1; remoteGlobalIDString = 13B07F861A680F5B00A75B9A; remoteInfo = Mozi; }; 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; proxyType = 2; remoteGlobalIDString = 134814201AA4EA6300B7C361; remoteInfo = RCTSettings; }; 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; proxyType = 2; remoteGlobalIDString = 3C86DF461ADF2C930047B81A; remoteInfo = RCTWebSocket; }; 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; proxyType = 2; remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; remoteInfo = React; }; 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; proxyType = 1; remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; remoteInfo = "Mozi-tvOS"; }; 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; proxyType = 2; remoteGlobalIDString = 2D2A283A1D9B042B00D4039D; remoteInfo = "RCTImage-tvOS"; }; 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; proxyType = 2; remoteGlobalIDString = 2D2A28471D9B043800D4039D; remoteInfo = "RCTLinking-tvOS"; }; 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; proxyType = 2; remoteGlobalIDString = 2D2A28541D9B044C00D4039D; remoteInfo = "RCTNetwork-tvOS"; }; 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; proxyType = 2; remoteGlobalIDString = 2D2A28611D9B046600D4039D; remoteInfo = "RCTSettings-tvOS"; }; 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; proxyType = 2; remoteGlobalIDString = 2D2A287B1D9B048500D4039D; remoteInfo = "RCTText-tvOS"; }; 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; proxyType = 2; remoteGlobalIDString = 2D2A28881D9B049200D4039D; remoteInfo = "RCTWebSocket-tvOS"; }; 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; proxyType = 2; remoteGlobalIDString = 2D2A28131D9B038B00D4039D; remoteInfo = "React-tvOS"; }; 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; proxyType = 2; remoteGlobalIDString = 3D3C059A1DE3340900C268FA; remoteInfo = yoga; }; 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; proxyType = 2; remoteGlobalIDString = 3D3C06751DE3340C00C268FA; remoteInfo = "yoga-tvOS"; }; 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; proxyType = 2; remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4; remoteInfo = cxxreact; }; 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; proxyType = 2; remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4; remoteInfo = "cxxreact-tvOS"; }; 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; proxyType = 2; remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4; remoteInfo = jschelpers; }; 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; proxyType = 2; remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4; remoteInfo = "jschelpers-tvOS"; }; 43227C6120EE0AF300EB26CB /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; proxyType = 2; remoteGlobalIDString = 3DBE0D001F3B181A0099AA32; remoteInfo = fishhook; }; 43227C6320EE0AF300EB26CB /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; proxyType = 2; remoteGlobalIDString = 3DBE0D0D1F3B181C0099AA32; remoteInfo = "fishhook-tvOS"; }; 43227C7520EE0AF300EB26CB /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; proxyType = 2; remoteGlobalIDString = EBF21BDC1FC498900052F4D5; remoteInfo = jsinspector; }; 43227C7720EE0AF300EB26CB /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; proxyType = 2; remoteGlobalIDString = EBF21BFA1FC4989A0052F4D5; remoteInfo = "jsinspector-tvOS"; }; 43227C7920EE0AF300EB26CB /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; proxyType = 2; remoteGlobalIDString = 9936F3131F5F2E4B0010BF04; remoteInfo = privatedata; }; 43227C7B20EE0AF300EB26CB /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; proxyType = 2; remoteGlobalIDString = 9936F32F1F5F2E5B0010BF04; remoteInfo = "privatedata-tvOS"; }; 43227C8320EE0AF600EB26CB /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 06FB1A1FAED540B48C9C2BE7 /* CodePush.xcodeproj */; proxyType = 2; remoteGlobalIDString = 134814201AA4EA6300B7C361; remoteInfo = CodePush; }; 43227C8520EE0AF600EB26CB /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 06FB1A1FAED540B48C9C2BE7 /* CodePush.xcodeproj */; proxyType = 2; remoteGlobalIDString = F886647B1F4ADB500036D01B; remoteInfo = "CodePush-tvOS"; }; 43453FAB21EDC41F00615509 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 37D6A074F6C448DE93D41729 /* RNDeviceInfo.xcodeproj */; proxyType = 2; remoteGlobalIDString = DA5891D81BA9A9FC002B4DB2; remoteInfo = RNDeviceInfo; }; 43453FAD21EDC41F00615509 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 37D6A074F6C448DE93D41729 /* RNDeviceInfo.xcodeproj */; proxyType = 2; remoteGlobalIDString = E72EC1401F7ABB5A0001BC90; remoteInfo = "RNDeviceInfo-tvOS"; }; 43D5DCE321E6EAE000B5D32F /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 8CB754E1EF3B416295F29252 /* RNGestureHandler.xcodeproj */; proxyType = 2; remoteGlobalIDString = 134814201AA4EA6300B7C361; remoteInfo = RNGestureHandler; }; 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; proxyType = 2; remoteGlobalIDString = 134814201AA4EA6300B7C361; remoteInfo = RCTAnimation; }; 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; proxyType = 2; remoteGlobalIDString = 2D2A28201D9B03D100D4039D; remoteInfo = "RCTAnimation-tvOS"; }; 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; proxyType = 2; remoteGlobalIDString = 134814201AA4EA6300B7C361; remoteInfo = RCTLinking; }; 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; proxyType = 2; remoteGlobalIDString = 58B5119B1A9E6C1200147676; remoteInfo = RCTText; }; 932C714C2103216B0084925B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 3864592F47C84A92A69F79A2 /* RCTJCoreModule.xcodeproj */; proxyType = 2; remoteGlobalIDString = 6212E9B41F3990DC00BDF51A; remoteInfo = RCTJCoreModule; }; 932C71512103216B0084925B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 3D8C6B24290E4495A31B9710 /* RCTJPushModule.xcodeproj */; proxyType = 2; remoteGlobalIDString = 6280980A1CEDC407000D3A81; remoteInfo = RCTJPushModule; }; 934F05681F7147A9005216B0 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 3E08446BC02F4F84ABDEB23C /* SplashScreen.xcodeproj */; proxyType = 2; remoteGlobalIDString = 3D7682761D8E76B80014119E; remoteInfo = SplashScreen; }; 937452B51F5A9A0D00F01FDA /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; proxyType = 2; remoteGlobalIDString = 139D7ECE1E25DB7D00323FB7; remoteInfo = "third-party"; }; 937452B71F5A9A0D00F01FDA /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; proxyType = 2; remoteGlobalIDString = 3D383D3C1EBD27B6005632C8; remoteInfo = "third-party-tvOS"; }; 937452B91F5A9A0D00F01FDA /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; proxyType = 2; remoteGlobalIDString = 139D7E881E25C6D100323FB7; remoteInfo = "double-conversion"; }; 937452BB1F5A9A0D00F01FDA /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; proxyType = 2; remoteGlobalIDString = 3D383D621EBD27B9005632C8; remoteInfo = "double-conversion-tvOS"; }; 937452BE1F5A9A0D00F01FDA /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 88A2080D3F334AE387A599A5 /* RNVectorIcons.xcodeproj */; proxyType = 2; remoteGlobalIDString = 5DBEB1501B18CEA900B34395; remoteInfo = RNVectorIcons; }; /* End PBXContainerItemProxy section */ /* Begin PBXFileReference section */ 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 00E356EE1AD99517003FC87E /* MoziTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MoziTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 00E356F21AD99517003FC87E /* MoziTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MoziTests.m; sourceTree = ""; }; 06FB1A1FAED540B48C9C2BE7 /* CodePush.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = CodePush.xcodeproj; path = "../node_modules/react-native-code-push/ios/CodePush.xcodeproj"; sourceTree = ""; }; 0C959D21FA764B0396428649 /* libSplashScreen.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libSplashScreen.a; sourceTree = ""; }; 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 13B07F961A680F5B00A75B9A /* Mozi.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Mozi.app; sourceTree = BUILT_PRODUCTS_DIR; }; 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = Mozi/AppDelegate.h; sourceTree = ""; }; 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = Mozi/AppDelegate.m; sourceTree = ""; }; 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = Mozi/Images.xcassets; sourceTree = ""; }; 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = Mozi/Info.plist; sourceTree = ""; }; 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = Mozi/main.m; sourceTree = ""; }; 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 25DA72EDE9654851AF78C6C0 /* libRNDeviceInfo-tvOS.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = "libRNDeviceInfo-tvOS.a"; sourceTree = ""; }; 2D02E47B1E0B4A5D006451C7 /* Mozi-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Mozi-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 2D02E4901E0B4A5D006451C7 /* Mozi-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Mozi-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 2D4268A182F4468AA3FA4A4E /* MaterialCommunityIcons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = MaterialCommunityIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf"; sourceTree = ""; }; 31BD5408C8BA40A9AB31769D /* libRCTJPushModule.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRCTJPushModule.a; sourceTree = ""; }; 34413B3C9C7947159BCAD312 /* libRNGestureHandler.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRNGestureHandler.a; sourceTree = ""; }; 37D6A074F6C448DE93D41729 /* RNDeviceInfo.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RNDeviceInfo.xcodeproj; path = "../node_modules/react-native-device-info/ios/RNDeviceInfo.xcodeproj"; sourceTree = ""; }; 3864592F47C84A92A69F79A2 /* RCTJCoreModule.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RCTJCoreModule.xcodeproj; path = "../node_modules/jcore-react-native/ios/RCTJCoreModule.xcodeproj"; sourceTree = ""; }; 3CD3A42F9FC544449C0D210F /* Security.framework */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; }; 3D8C6B24290E4495A31B9710 /* RCTJPushModule.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RCTJPushModule.xcodeproj; path = "../node_modules/jpush-react-native/ios/RCTJPushModule.xcodeproj"; sourceTree = ""; }; 3E08446BC02F4F84ABDEB23C /* SplashScreen.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = SplashScreen.xcodeproj; path = "../node_modules/react-native-splash-screen/ios/SplashScreen.xcodeproj"; sourceTree = ""; }; 3E98D972EE904596B3560BC9 /* libRCTJCoreModule.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRCTJCoreModule.a; sourceTree = ""; }; 457EDB6A20284C51B0572ABE /* SimpleLineIcons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = SimpleLineIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/SimpleLineIcons.ttf"; sourceTree = ""; }; 5E683A6ECEBC44E186E186E6 /* MaterialIcons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = MaterialIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/MaterialIcons.ttf"; sourceTree = ""; }; 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; }; 647EAC5399ED42D48E250864 /* UserNotifications.framework */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = wrapper.framework; name = UserNotifications.framework; path = System/Library/Frameworks/UserNotifications.framework; sourceTree = SDKROOT; }; 67EEBE3037544141B01EF948 /* Entypo.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Entypo.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Entypo.ttf"; sourceTree = ""; }; 6F5416F3A1B843A39E65D101 /* Zocial.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Zocial.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Zocial.ttf"; sourceTree = ""; }; 78911FABBFF6445C8C46912B /* SystemConfiguration.framework */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; }; 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 7FEAAC7DE5774AD5A7AF964C /* Octicons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Octicons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Octicons.ttf"; sourceTree = ""; }; 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 839FB109878741C0A05AD9D7 /* libCodePush.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libCodePush.a; sourceTree = ""; }; 88A2080D3F334AE387A599A5 /* RNVectorIcons.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RNVectorIcons.xcodeproj; path = "../node_modules/react-native-vector-icons/RNVectorIcons.xcodeproj"; sourceTree = ""; }; 8B8AA8A02B4B44F89690AF68 /* UIKit.framework */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 8BFE1E3A86524474878D8D91 /* FontAwesome.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = FontAwesome.ttf; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome.ttf"; sourceTree = ""; }; 8CB754E1EF3B416295F29252 /* RNGestureHandler.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RNGestureHandler.xcodeproj; path = "../node_modules/react-native-gesture-handler/ios/RNGestureHandler.xcodeproj"; sourceTree = ""; }; 8CC7069839FB497CB16FBA07 /* CoreTelephony.framework */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = wrapper.framework; name = CoreTelephony.framework; path = System/Library/Frameworks/CoreTelephony.framework; sourceTree = SDKROOT; }; 936F60A521ECD1B300655585 /* Mozi.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; name = Mozi.entitlements; path = Mozi/Mozi.entitlements; sourceTree = ""; }; 937452C01F5A9B5E00F01FDA /* Fonts */ = {isa = PBXFileReference; lastKnownFileType = folder; name = Fonts; path = "../node_modules/react-native-vector-icons/Fonts"; sourceTree = ""; }; A8364BB7718B488B96D7BA46 /* Ionicons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Ionicons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Ionicons.ttf"; sourceTree = ""; }; B04A5E546465440EA935C9FC /* EvilIcons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = EvilIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/EvilIcons.ttf"; sourceTree = ""; }; B3621F4032F9435D945418CE /* libRNVectorIcons.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRNVectorIcons.a; sourceTree = ""; }; B78D1FF8D67D492CAA460AB3 /* CoreFoundation.framework */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = System/Library/Frameworks/CoreFoundation.framework; sourceTree = SDKROOT; }; C49095E1C4C84845ABF93A87 /* libresolv.tbd */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libresolv.tbd; path = usr/lib/libresolv.tbd; sourceTree = SDKROOT; }; CB0FBF4A43E048ACA7E6EE50 /* CoreGraphics.framework */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; D1200F3E2ABE4650B892F54C /* libRNDeviceInfo.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRNDeviceInfo.a; sourceTree = ""; }; DC24AE13C6A848C4A64A8BEC /* CFNetwork.framework */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = wrapper.framework; name = CFNetwork.framework; path = System/Library/Frameworks/CFNetwork.framework; sourceTree = SDKROOT; }; EB98245B2CF648DA9A0D10B3 /* Feather.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Feather.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Feather.ttf"; sourceTree = ""; }; EF7963DBAF3E4F07AB3FECF6 /* libz.tbd */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libz.tbd; path = usr/lib/libz.tbd; sourceTree = SDKROOT; }; F9C3900C66074853937A0E3B /* Foundation.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Foundation.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Foundation.ttf"; sourceTree = ""; }; FBD04CF1A42B485B890C8721 /* libz.tbd */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libz.tbd; path = usr/lib/libz.tbd; sourceTree = SDKROOT; }; FC5A5E28735F4B90BAD770D6 /* Foundation.framework */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ 00E356EB1AD99517003FC87E /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 11D1A2F320CAFA9E000508D9 /* libRCTAnimation.a in Frameworks */, 146834051AC3E58100842450 /* libReact.a in Frameworks */, 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 832583A23FB346DC968C09BF /* libRNVectorIcons.a in Frameworks */, 7503964D7F33441489D8270D /* libSplashScreen.a in Frameworks */, DAAE26B639FC4195BA20D306 /* libCodePush.a in Frameworks */, DF57E95F8B374A34849637C8 /* libz.tbd in Frameworks */, 4588DBB5AFB74303BB9FB0E7 /* libRCTJPushModule.a in Frameworks */, F2FD89945F5348F6A9D60FE6 /* libz.tbd in Frameworks */, 8292B522BA374F13A79EFE4E /* UserNotifications.framework in Frameworks */, 4A00CCDD87674FB499DC2A86 /* CoreTelephony.framework in Frameworks */, 54D4656D0DE948AE8229199A /* Security.framework in Frameworks */, 027F5F7EA6704F1A94959048 /* CFNetwork.framework in Frameworks */, A811A90E3AFE4F2BAF8260FE /* CoreFoundation.framework in Frameworks */, 6C20C6581D114CB981E69A16 /* SystemConfiguration.framework in Frameworks */, 866F2DD2EDCC4B7F85681B54 /* Foundation.framework in Frameworks */, BBDD151508174251B2D70858 /* UIKit.framework in Frameworks */, 25C37FE1CABD42D5B0DE90C5 /* libresolv.tbd in Frameworks */, 4C54B34038B34A2C899176C4 /* CoreGraphics.framework in Frameworks */, 8BAC3C6C16CE4907B19B4D11 /* libRCTJCoreModule.a in Frameworks */, 512C933BE9B742BAA88280CB /* libRNGestureHandler.a in Frameworks */, 744BDFB363F24CA1B08CBCBE /* libRNDeviceInfo.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 2D02E4C91E0B4AEC006451C7 /* libReact.a in Frameworks */, 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */, 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */, 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */, 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */, 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */, 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */, 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */, 4EDB78C1497748999FADF3FF /* libRNDeviceInfo-tvOS.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ 00C302A81ABCB8CE00DB3ED1 /* Products */ = { isa = PBXGroup; children = ( 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, ); name = Products; sourceTree = ""; }; 00C302B61ABCB90400DB3ED1 /* Products */ = { isa = PBXGroup; children = ( 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, ); name = Products; sourceTree = ""; }; 00C302BC1ABCB91800DB3ED1 /* Products */ = { isa = PBXGroup; children = ( 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */, ); name = Products; sourceTree = ""; }; 00C302D41ABCB9D200DB3ED1 /* Products */ = { isa = PBXGroup; children = ( 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */, ); name = Products; sourceTree = ""; }; 00C302E01ABCB9EE00DB3ED1 /* Products */ = { isa = PBXGroup; children = ( 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, ); name = Products; sourceTree = ""; }; 00E356EF1AD99517003FC87E /* MoziTests */ = { isa = PBXGroup; children = ( 00E356F21AD99517003FC87E /* MoziTests.m */, 00E356F01AD99517003FC87E /* Supporting Files */, ); path = MoziTests; sourceTree = ""; }; 00E356F01AD99517003FC87E /* Supporting Files */ = { isa = PBXGroup; children = ( 00E356F11AD99517003FC87E /* Info.plist */, ); name = "Supporting Files"; sourceTree = ""; }; 139105B71AF99BAD00B5F7CC /* Products */ = { isa = PBXGroup; children = ( 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */, ); name = Products; sourceTree = ""; }; 139FDEE71B06529A00C62182 /* Products */ = { isa = PBXGroup; children = ( 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */, 43227C6220EE0AF300EB26CB /* libfishhook.a */, 43227C6420EE0AF300EB26CB /* libfishhook-tvOS.a */, ); name = Products; sourceTree = ""; }; 13B07FAE1A68108700A75B9A /* Mozi */ = { isa = PBXGroup; children = ( 936F60A521ECD1B300655585 /* Mozi.entitlements */, 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 13B07FB01A68108700A75B9A /* AppDelegate.m */, 13B07FB51A68108700A75B9A /* Images.xcassets */, 13B07FB61A68108700A75B9A /* Info.plist */, 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 13B07FB71A68108700A75B9A /* main.m */, ); name = Mozi; sourceTree = ""; }; 146834001AC3E56700842450 /* Products */ = { isa = PBXGroup; children = ( 146834041AC3E56700842450 /* libReact.a */, 3DAD3EA31DF850E9000B6D8A /* libReact.a */, 3DAD3EA51DF850E9000B6D8A /* libyoga.a */, 3DAD3EA71DF850E9000B6D8A /* libyoga.a */, 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */, 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */, 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */, 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */, 43227C7620EE0AF300EB26CB /* libjsinspector.a */, 43227C7820EE0AF300EB26CB /* libjsinspector-tvOS.a */, 937452B61F5A9A0D00F01FDA /* libthird-party.a */, 937452B81F5A9A0D00F01FDA /* libthird-party.a */, 937452BA1F5A9A0D00F01FDA /* libdouble-conversion.a */, 937452BC1F5A9A0D00F01FDA /* libdouble-conversion.a */, 43227C7A20EE0AF300EB26CB /* libprivatedata.a */, 43227C7C20EE0AF300EB26CB /* libprivatedata-tvOS.a */, ); name = Products; sourceTree = ""; }; 32199A5EDF39487786E918F7 /* Frameworks */ = { isa = PBXGroup; children = ( EF7963DBAF3E4F07AB3FECF6 /* libz.tbd */, ); name = Frameworks; sourceTree = ""; }; 43227C7F20EE0AF500EB26CB /* Products */ = { isa = PBXGroup; children = ( 43227C8420EE0AF600EB26CB /* libCodePush.a */, 43227C8620EE0AF600EB26CB /* libCodePush.a */, ); name = Products; sourceTree = ""; }; 43453FA721EDC41E00615509 /* Products */ = { isa = PBXGroup; children = ( 43453FAC21EDC41F00615509 /* libRNDeviceInfo.a */, 43453FAE21EDC41F00615509 /* libRNDeviceInfo-tvOS.a */, ); name = Products; sourceTree = ""; }; 43D5DCE021E6EADF00B5D32F /* Products */ = { isa = PBXGroup; children = ( 43D5DCE421E6EAE000B5D32F /* libRNGestureHandler.a */, ); name = Products; sourceTree = ""; }; 5E91572E1DD0AC6500FF2AA8 /* Products */ = { isa = PBXGroup; children = ( 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */, 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */, ); name = Products; sourceTree = ""; }; 78C398B11ACF4ADC00677621 /* Products */ = { isa = PBXGroup; children = ( 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */, ); name = Products; sourceTree = ""; }; 832341AE1AAA6A7D00B99B32 /* Libraries */ = { isa = PBXGroup; children = ( 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */, 146833FF1AC3E56700842450 /* React.xcodeproj */, 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 88A2080D3F334AE387A599A5 /* RNVectorIcons.xcodeproj */, 3E08446BC02F4F84ABDEB23C /* SplashScreen.xcodeproj */, 06FB1A1FAED540B48C9C2BE7 /* CodePush.xcodeproj */, 3D8C6B24290E4495A31B9710 /* RCTJPushModule.xcodeproj */, 3864592F47C84A92A69F79A2 /* RCTJCoreModule.xcodeproj */, 8CB754E1EF3B416295F29252 /* RNGestureHandler.xcodeproj */, 37D6A074F6C448DE93D41729 /* RNDeviceInfo.xcodeproj */, ); name = Libraries; sourceTree = ""; }; 832341B11AAA6A8300B99B32 /* Products */ = { isa = PBXGroup; children = ( 832341B51AAA6A8300B99B32 /* libRCTText.a */, 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */, ); name = Products; sourceTree = ""; }; 83CBB9F61A601CBA00E9B192 = { isa = PBXGroup; children = ( 937452C01F5A9B5E00F01FDA /* Fonts */, 13B07FAE1A68108700A75B9A /* Mozi */, 832341AE1AAA6A7D00B99B32 /* Libraries */, 00E356EF1AD99517003FC87E /* MoziTests */, 83CBBA001A601CBA00E9B192 /* Products */, 8F3C116094D84A318F3E12F9 /* Resources */, 93B775041F79335C00CEAFA4 /* Recovered References */, 32199A5EDF39487786E918F7 /* Frameworks */, F4D52C9CB9284B999FE4CAFC /* Frameworks */, ); indentWidth = 2; sourceTree = ""; tabWidth = 2; }; 83CBBA001A601CBA00E9B192 /* Products */ = { isa = PBXGroup; children = ( 13B07F961A680F5B00A75B9A /* Mozi.app */, 00E356EE1AD99517003FC87E /* MoziTests.xctest */, 2D02E47B1E0B4A5D006451C7 /* Mozi-tvOS.app */, 2D02E4901E0B4A5D006451C7 /* Mozi-tvOSTests.xctest */, ); name = Products; sourceTree = ""; }; 8F3C116094D84A318F3E12F9 /* Resources */ = { isa = PBXGroup; children = ( 67EEBE3037544141B01EF948 /* Entypo.ttf */, B04A5E546465440EA935C9FC /* EvilIcons.ttf */, 8BFE1E3A86524474878D8D91 /* FontAwesome.ttf */, F9C3900C66074853937A0E3B /* Foundation.ttf */, A8364BB7718B488B96D7BA46 /* Ionicons.ttf */, 2D4268A182F4468AA3FA4A4E /* MaterialCommunityIcons.ttf */, 5E683A6ECEBC44E186E186E6 /* MaterialIcons.ttf */, 7FEAAC7DE5774AD5A7AF964C /* Octicons.ttf */, 457EDB6A20284C51B0572ABE /* SimpleLineIcons.ttf */, 6F5416F3A1B843A39E65D101 /* Zocial.ttf */, EB98245B2CF648DA9A0D10B3 /* Feather.ttf */, ); name = Resources; sourceTree = ""; }; 932C71492103216B0084925B /* Products */ = { isa = PBXGroup; children = ( 932C714D2103216B0084925B /* libRCTJCoreModule.a */, ); name = Products; sourceTree = ""; }; 932C714E2103216B0084925B /* Products */ = { isa = PBXGroup; children = ( 932C71522103216B0084925B /* libRCTJPushModule.a */, ); name = Products; sourceTree = ""; }; 934F05471F7147A9005216B0 /* Products */ = { isa = PBXGroup; children = ( 934F05691F7147A9005216B0 /* libSplashScreen.a */, ); name = Products; sourceTree = ""; }; 937452961F5A9A0C00F01FDA /* Products */ = { isa = PBXGroup; children = ( 937452BF1F5A9A0D00F01FDA /* libRNVectorIcons.a */, ); name = Products; sourceTree = ""; }; 93B775041F79335C00CEAFA4 /* Recovered References */ = { isa = PBXGroup; children = ( B3621F4032F9435D945418CE /* libRNVectorIcons.a */, 0C959D21FA764B0396428649 /* libSplashScreen.a */, 839FB109878741C0A05AD9D7 /* libCodePush.a */, 31BD5408C8BA40A9AB31769D /* libRCTJPushModule.a */, 3E98D972EE904596B3560BC9 /* libRCTJCoreModule.a */, 34413B3C9C7947159BCAD312 /* libRNGestureHandler.a */, D1200F3E2ABE4650B892F54C /* libRNDeviceInfo.a */, 25DA72EDE9654851AF78C6C0 /* libRNDeviceInfo-tvOS.a */, ); name = "Recovered References"; sourceTree = ""; }; F4D52C9CB9284B999FE4CAFC /* Frameworks */ = { isa = PBXGroup; children = ( FBD04CF1A42B485B890C8721 /* libz.tbd */, 647EAC5399ED42D48E250864 /* UserNotifications.framework */, 8CC7069839FB497CB16FBA07 /* CoreTelephony.framework */, 3CD3A42F9FC544449C0D210F /* Security.framework */, DC24AE13C6A848C4A64A8BEC /* CFNetwork.framework */, B78D1FF8D67D492CAA460AB3 /* CoreFoundation.framework */, 78911FABBFF6445C8C46912B /* SystemConfiguration.framework */, FC5A5E28735F4B90BAD770D6 /* Foundation.framework */, 8B8AA8A02B4B44F89690AF68 /* UIKit.framework */, C49095E1C4C84845ABF93A87 /* libresolv.tbd */, CB0FBF4A43E048ACA7E6EE50 /* CoreGraphics.framework */, ); name = Frameworks; sourceTree = ""; }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ 00E356ED1AD99517003FC87E /* MoziTests */ = { isa = PBXNativeTarget; buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "MoziTests" */; buildPhases = ( 00E356EA1AD99517003FC87E /* Sources */, 00E356EB1AD99517003FC87E /* Frameworks */, 00E356EC1AD99517003FC87E /* Resources */, ); buildRules = ( ); dependencies = ( 00E356F51AD99517003FC87E /* PBXTargetDependency */, ); name = MoziTests; productName = MoziTests; productReference = 00E356EE1AD99517003FC87E /* MoziTests.xctest */; productType = "com.apple.product-type.bundle.unit-test"; }; 13B07F861A680F5B00A75B9A /* Mozi */ = { isa = PBXNativeTarget; buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "Mozi" */; buildPhases = ( 13B07F871A680F5B00A75B9A /* Sources */, 13B07F8C1A680F5B00A75B9A /* Frameworks */, 13B07F8E1A680F5B00A75B9A /* Resources */, 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, ); buildRules = ( ); dependencies = ( ); name = Mozi; productName = "Hello World"; productReference = 13B07F961A680F5B00A75B9A /* Mozi.app */; productType = "com.apple.product-type.application"; }; 2D02E47A1E0B4A5D006451C7 /* Mozi-tvOS */ = { isa = PBXNativeTarget; buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "Mozi-tvOS" */; buildPhases = ( 2D02E4771E0B4A5D006451C7 /* Sources */, 2D02E4781E0B4A5D006451C7 /* Frameworks */, 2D02E4791E0B4A5D006451C7 /* Resources */, 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, ); buildRules = ( ); dependencies = ( ); name = "Mozi-tvOS"; productName = "Mozi-tvOS"; productReference = 2D02E47B1E0B4A5D006451C7 /* Mozi-tvOS.app */; productType = "com.apple.product-type.application"; }; 2D02E48F1E0B4A5D006451C7 /* Mozi-tvOSTests */ = { isa = PBXNativeTarget; buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "Mozi-tvOSTests" */; buildPhases = ( 2D02E48C1E0B4A5D006451C7 /* Sources */, 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 2D02E48E1E0B4A5D006451C7 /* Resources */, ); buildRules = ( ); dependencies = ( 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, ); name = "Mozi-tvOSTests"; productName = "Mozi-tvOSTests"; productReference = 2D02E4901E0B4A5D006451C7 /* Mozi-tvOSTests.xctest */; productType = "com.apple.product-type.bundle.unit-test"; }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ 83CBB9F71A601CBA00E9B192 /* Project object */ = { isa = PBXProject; attributes = { LastUpgradeCheck = 940; ORGANIZATIONNAME = Facebook; TargetAttributes = { 00E356ED1AD99517003FC87E = { CreatedOnToolsVersion = 6.2; TestTargetID = 13B07F861A680F5B00A75B9A; }; 13B07F861A680F5B00A75B9A = { DevelopmentTeam = 36SPC7M5CX; ProvisioningStyle = Manual; SystemCapabilities = { com.apple.BackgroundModes = { enabled = 1; }; com.apple.Push = { enabled = 1; }; }; }; 2D02E47A1E0B4A5D006451C7 = { CreatedOnToolsVersion = 8.2.1; ProvisioningStyle = Automatic; }; 2D02E48F1E0B4A5D006451C7 = { CreatedOnToolsVersion = 8.2.1; ProvisioningStyle = Automatic; TestTargetID = 2D02E47A1E0B4A5D006451C7; }; }; }; buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "Mozi" */; compatibilityVersion = "Xcode 3.2"; developmentRegion = English; hasScannedForEncodings = 0; knownRegions = ( English, en, Base, ); mainGroup = 83CBB9F61A601CBA00E9B192; productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; projectDirPath = ""; projectReferences = ( { ProductGroup = 43227C7F20EE0AF500EB26CB /* Products */; ProjectRef = 06FB1A1FAED540B48C9C2BE7 /* CodePush.xcodeproj */; }, { ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; }, { ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */; ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; }, { ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; }, { ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; }, { ProductGroup = 932C71492103216B0084925B /* Products */; ProjectRef = 3864592F47C84A92A69F79A2 /* RCTJCoreModule.xcodeproj */; }, { ProductGroup = 932C714E2103216B0084925B /* Products */; ProjectRef = 3D8C6B24290E4495A31B9710 /* RCTJPushModule.xcodeproj */; }, { ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; }, { ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; }, { ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; }, { ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; }, { ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; }, { ProductGroup = 139FDEE71B06529A00C62182 /* Products */; ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; }, { ProductGroup = 146834001AC3E56700842450 /* Products */; ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; }, { ProductGroup = 43453FA721EDC41E00615509 /* Products */; ProjectRef = 37D6A074F6C448DE93D41729 /* RNDeviceInfo.xcodeproj */; }, { ProductGroup = 43D5DCE021E6EADF00B5D32F /* Products */; ProjectRef = 8CB754E1EF3B416295F29252 /* RNGestureHandler.xcodeproj */; }, { ProductGroup = 937452961F5A9A0C00F01FDA /* Products */; ProjectRef = 88A2080D3F334AE387A599A5 /* RNVectorIcons.xcodeproj */; }, { ProductGroup = 934F05471F7147A9005216B0 /* Products */; ProjectRef = 3E08446BC02F4F84ABDEB23C /* SplashScreen.xcodeproj */; }, ); projectRoot = ""; targets = ( 13B07F861A680F5B00A75B9A /* Mozi */, 00E356ED1AD99517003FC87E /* MoziTests */, 2D02E47A1E0B4A5D006451C7 /* Mozi-tvOS */, 2D02E48F1E0B4A5D006451C7 /* Mozi-tvOSTests */, ); }; /* End PBXProject section */ /* Begin PBXReferenceProxy section */ 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = libRCTActionSheet.a; remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = libRCTGeolocation.a; remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = libRCTImage.a; remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = libRCTNetwork.a; remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = libRCTVibration.a; remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = libRCTSettings.a; remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = libRCTWebSocket.a; remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 146834041AC3E56700842450 /* libReact.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = libReact.a; remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = "libRCTImage-tvOS.a"; remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = "libRCTLinking-tvOS.a"; remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = "libRCTNetwork-tvOS.a"; remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = "libRCTSettings-tvOS.a"; remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = "libRCTText-tvOS.a"; remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = "libRCTWebSocket-tvOS.a"; remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = libReact.a; remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = libyoga.a; remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = libyoga.a; remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = libcxxreact.a; remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = libcxxreact.a; remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = libjschelpers.a; remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = libjschelpers.a; remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 43227C6220EE0AF300EB26CB /* libfishhook.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = libfishhook.a; remoteRef = 43227C6120EE0AF300EB26CB /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 43227C6420EE0AF300EB26CB /* libfishhook-tvOS.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = "libfishhook-tvOS.a"; remoteRef = 43227C6320EE0AF300EB26CB /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 43227C7620EE0AF300EB26CB /* libjsinspector.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = libjsinspector.a; remoteRef = 43227C7520EE0AF300EB26CB /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 43227C7820EE0AF300EB26CB /* libjsinspector-tvOS.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = "libjsinspector-tvOS.a"; remoteRef = 43227C7720EE0AF300EB26CB /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 43227C7A20EE0AF300EB26CB /* libprivatedata.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = libprivatedata.a; remoteRef = 43227C7920EE0AF300EB26CB /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 43227C7C20EE0AF300EB26CB /* libprivatedata-tvOS.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = "libprivatedata-tvOS.a"; remoteRef = 43227C7B20EE0AF300EB26CB /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 43227C8420EE0AF600EB26CB /* libCodePush.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = libCodePush.a; remoteRef = 43227C8320EE0AF600EB26CB /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 43227C8620EE0AF600EB26CB /* libCodePush.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = libCodePush.a; remoteRef = 43227C8520EE0AF600EB26CB /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 43453FAC21EDC41F00615509 /* libRNDeviceInfo.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = libRNDeviceInfo.a; remoteRef = 43453FAB21EDC41F00615509 /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 43453FAE21EDC41F00615509 /* libRNDeviceInfo-tvOS.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = "libRNDeviceInfo-tvOS.a"; remoteRef = 43453FAD21EDC41F00615509 /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 43D5DCE421E6EAE000B5D32F /* libRNGestureHandler.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = libRNGestureHandler.a; remoteRef = 43D5DCE321E6EAE000B5D32F /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = libRCTAnimation.a; remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = libRCTAnimation.a; remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = libRCTLinking.a; remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = libRCTText.a; remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 932C714D2103216B0084925B /* libRCTJCoreModule.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = libRCTJCoreModule.a; remoteRef = 932C714C2103216B0084925B /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 932C71522103216B0084925B /* libRCTJPushModule.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = libRCTJPushModule.a; remoteRef = 932C71512103216B0084925B /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 934F05691F7147A9005216B0 /* libSplashScreen.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = libSplashScreen.a; remoteRef = 934F05681F7147A9005216B0 /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 937452B61F5A9A0D00F01FDA /* libthird-party.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = "libthird-party.a"; remoteRef = 937452B51F5A9A0D00F01FDA /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 937452B81F5A9A0D00F01FDA /* libthird-party.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = "libthird-party.a"; remoteRef = 937452B71F5A9A0D00F01FDA /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 937452BA1F5A9A0D00F01FDA /* libdouble-conversion.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = "libdouble-conversion.a"; remoteRef = 937452B91F5A9A0D00F01FDA /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 937452BC1F5A9A0D00F01FDA /* libdouble-conversion.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = "libdouble-conversion.a"; remoteRef = 937452BB1F5A9A0D00F01FDA /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 937452BF1F5A9A0D00F01FDA /* libRNVectorIcons.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; path = libRNVectorIcons.a; remoteRef = 937452BE1F5A9A0D00F01FDA /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXReferenceProxy section */ /* Begin PBXResourcesBuildPhase section */ 00E356EC1AD99517003FC87E /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; 13B07F8E1A680F5B00A75B9A /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 71BAD735686C47A8884FFDE5 /* Entypo.ttf in Resources */, 3D41771914134245BCDA4145 /* EvilIcons.ttf in Resources */, A4AD63F3DCE541478C34BE53 /* FontAwesome.ttf in Resources */, 937452C11F5A9B5E00F01FDA /* Fonts in Resources */, CDADE8F99C4D4C33871032FE /* Foundation.ttf in Resources */, B7B97B70282F47109C6D884F /* Ionicons.ttf in Resources */, 916BBE5B3042403FBF88B500 /* MaterialCommunityIcons.ttf in Resources */, F02B6C54DD3D4ACBB957CE91 /* MaterialIcons.ttf in Resources */, 0A94FA42FA734AFBB7EE42A6 /* Octicons.ttf in Resources */, 4A90A66A06BF4355A875AF26 /* SimpleLineIcons.ttf in Resources */, 903B1E360AE14C57A8B851FA /* Zocial.ttf in Resources */, 3EFC119072504DE5BAA1053D /* Feather.ttf in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; 2D02E4791E0B4A5D006451C7 /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; 2D02E48E1E0B4A5D006451C7 /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputPaths = ( ); name = "Bundle React Native code and images"; outputPaths = ( ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; }; 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputPaths = ( ); name = "Bundle React Native Code And Images"; outputPaths = ( ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ 00E356EA1AD99517003FC87E /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 00E356F31AD99517003FC87E /* MoziTests.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 13B07F871A680F5B00A75B9A /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 13B07FC11A68108700A75B9A /* main.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 2D02E4771E0B4A5D006451C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; 2D02E48C1E0B4A5D006451C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 2DCD954D1E0B4F2C00145EB5 /* MoziTests.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 13B07F861A680F5B00A75B9A /* Mozi */; targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; }; 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 2D02E47A1E0B4A5D006451C7 /* Mozi-tvOS */; targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; }; /* End PBXTargetDependency section */ /* Begin PBXVariantGroup section */ 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { isa = PBXVariantGroup; children = ( 13B07FB21A68108700A75B9A /* Base */, ); name = LaunchScreen.xib; path = Mozi; sourceTree = ""; }; /* End PBXVariantGroup section */ /* Begin XCBuildConfiguration section */ 00E356F61AD99517003FC87E /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; GCC_PREPROCESSOR_DEFINITIONS = ( "DEBUG=1", "$(inherited)", ); HEADER_SEARCH_PATHS = ( "$(inherited)", "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", "$(SRCROOT)/../node_modules/react-native-splash-screen/ios", "$(SRCROOT)/../node_modules/react-native-code-push/ios/CodePush/**", "$(SRCROOT)/../node_modules/jpush-react-native/ios/RCTJPushModule", "$(SRCROOT)/../node_modules/jcore-react-native/ios/RCTJCoreModule", "$(SRCROOT)/../node_modules/react-native-gesture-handler/ios/**", "$(SRCROOT)/../node_modules/react-native-device-info/ios/RNDeviceInfo", ); INFOPLIST_FILE = MoziTests/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; LIBRARY_SEARCH_PATHS = ( "$(inherited)", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", ); OTHER_LDFLAGS = ( "-ObjC", "-lc++", ); PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Mozi.app/Mozi"; }; name = Debug; }; 00E356F71AD99517003FC87E /* Release */ = { isa = XCBuildConfiguration; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; COPY_PHASE_STRIP = NO; HEADER_SEARCH_PATHS = ( "$(inherited)", "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", "$(SRCROOT)/../node_modules/react-native-splash-screen/ios", "$(SRCROOT)/../node_modules/react-native-code-push/ios/CodePush/**", "$(SRCROOT)/../node_modules/jpush-react-native/ios/RCTJPushModule", "$(SRCROOT)/../node_modules/jcore-react-native/ios/RCTJCoreModule", "$(SRCROOT)/../node_modules/react-native-gesture-handler/ios/**", "$(SRCROOT)/../node_modules/react-native-device-info/ios/RNDeviceInfo", ); INFOPLIST_FILE = MoziTests/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 9.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; LIBRARY_SEARCH_PATHS = ( "$(inherited)", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", ); OTHER_LDFLAGS = ( "-ObjC", "-lc++", ); PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Mozi.app/Mozi"; }; name = Release; }; 13B07F941A680F5B00A75B9A /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; CODE_SIGN_ENTITLEMENTS = Mozi/Mozi.entitlements; CODE_SIGN_IDENTITY = "iPhone Distribution"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution: Beijing Lexueyou Culture Development Co., Ltd. (36SPC7M5CX)"; CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; DEAD_CODE_STRIPPING = NO; DEVELOPMENT_TEAM = 36SPC7M5CX; HEADER_SEARCH_PATHS = ( "$(inherited)", "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", "$(SRCROOT)/../node_modules/react-native-splash-screen/ios", "$(SRCROOT)/../node_modules/react-native-code-push/ios/CodePush/**", "$(SRCROOT)/../node_modules/jpush-react-native/ios/RCTJPushModule", "$(SRCROOT)/../node_modules/jcore-react-native/ios/RCTJCoreModule", "$(SRCROOT)/../node_modules/react-native-gesture-handler/ios/**", "$(SRCROOT)/../node_modules/react-native-device-info/ios/RNDeviceInfo", ); INFOPLIST_FILE = Mozi/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; OTHER_LDFLAGS = ( "$(inherited)", "-ObjC", "-lc++", ); PRODUCT_BUNDLE_IDENTIFIER = com.lxy.songqingling; PRODUCT_NAME = Mozi; PROVISIONING_PROFILE_SPECIFIER = lxySql_ad_hoc; VERSIONING_SYSTEM = "apple-generic"; }; name = Debug; }; 13B07F951A680F5B00A75B9A /* Release */ = { isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; CODE_SIGN_ENTITLEMENTS = Mozi/Mozi.entitlements; CODE_SIGN_IDENTITY = "iPhone Distribution: Beijing Lexueyou Culture Development Co., Ltd. (36SPC7M5CX)"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution: Beijing Lexueyou Culture Development Co., Ltd. (36SPC7M5CX)"; CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = 36SPC7M5CX; HEADER_SEARCH_PATHS = ( "$(inherited)", "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", "$(SRCROOT)/../node_modules/react-native-splash-screen/ios", "$(SRCROOT)/../node_modules/react-native-code-push/ios/CodePush/**", "$(SRCROOT)/../node_modules/jpush-react-native/ios/RCTJPushModule", "$(SRCROOT)/../node_modules/jcore-react-native/ios/RCTJCoreModule", "$(SRCROOT)/../node_modules/react-native-gesture-handler/ios/**", "$(SRCROOT)/../node_modules/react-native-device-info/ios/RNDeviceInfo", ); INFOPLIST_FILE = Mozi/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; OTHER_LDFLAGS = ( "$(inherited)", "-ObjC", "-lc++", ); PRODUCT_BUNDLE_IDENTIFIER = com.lxy.songqingling; PRODUCT_NAME = Mozi; PROVISIONING_PROFILE_SPECIFIER = lxySql_ad_hoc; VERSIONING_SYSTEM = "apple-generic"; }; name = Release; }; 2D02E4971E0B4A5E006451C7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; CLANG_ANALYZER_NONNULL = YES; CLANG_WARN_DOCUMENTATION_COMMENTS = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_TESTABILITY = YES; GCC_NO_COMMON_BLOCKS = YES; HEADER_SEARCH_PATHS = ( "$(inherited)", "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", "$(SRCROOT)/../node_modules/react-native-splash-screen/ios", "$(SRCROOT)/../node_modules/react-native-code-push/ios/CodePush/**", "$(SRCROOT)/../node_modules/jpush-react-native/ios/RCTJPushModule", "$(SRCROOT)/../node_modules/jcore-react-native/ios/RCTJCoreModule", "$(SRCROOT)/../node_modules/react-native-gesture-handler/ios/**", "$(SRCROOT)/../node_modules/react-native-device-info/ios/RNDeviceInfo", ); INFOPLIST_FILE = "Mozi-tvOS/Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LIBRARY_SEARCH_PATHS = ( "$(inherited)", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", ); OTHER_LDFLAGS = ( "-ObjC", "-lc++", ); PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.Mozi-tvOS"; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = appletvos; TARGETED_DEVICE_FAMILY = 3; TVOS_DEPLOYMENT_TARGET = 9.2; }; name = Debug; }; 2D02E4981E0B4A5E006451C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; CLANG_ANALYZER_NONNULL = YES; CLANG_WARN_DOCUMENTATION_COMMENTS = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; GCC_NO_COMMON_BLOCKS = YES; HEADER_SEARCH_PATHS = ( "$(inherited)", "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager", "$(SRCROOT)/../node_modules/react-native-splash-screen/ios", "$(SRCROOT)/../node_modules/react-native-code-push/ios/CodePush/**", "$(SRCROOT)/../node_modules/jpush-react-native/ios/RCTJPushModule", "$(SRCROOT)/../node_modules/jcore-react-native/ios/RCTJCoreModule", "$(SRCROOT)/../node_modules/react-native-gesture-handler/ios/**", "$(SRCROOT)/../node_modules/react-native-device-info/ios/RNDeviceInfo", ); INFOPLIST_FILE = "Mozi-tvOS/Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LIBRARY_SEARCH_PATHS = ( "$(inherited)", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", ); OTHER_LDFLAGS = ( "-ObjC", "-lc++", ); PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.Mozi-tvOS"; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = appletvos; TARGETED_DEVICE_FAMILY = 3; TVOS_DEPLOYMENT_TARGET = 9.2; }; name = Release; }; 2D02E4991E0B4A5E006451C7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_ANALYZER_NONNULL = YES; CLANG_WARN_DOCUMENTATION_COMMENTS = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_TESTABILITY = YES; GCC_NO_COMMON_BLOCKS = YES; INFOPLIST_FILE = "Mozi-tvOSTests/Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; LIBRARY_SEARCH_PATHS = ( "$(inherited)", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", ); PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.Mozi-tvOSTests"; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = appletvos; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Mozi-tvOS.app/Mozi-tvOS"; TVOS_DEPLOYMENT_TARGET = 10.1; }; name = Debug; }; 2D02E49A1E0B4A5E006451C7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CLANG_ANALYZER_NONNULL = YES; CLANG_WARN_DOCUMENTATION_COMMENTS = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; GCC_NO_COMMON_BLOCKS = YES; INFOPLIST_FILE = "Mozi-tvOSTests/Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; LIBRARY_SEARCH_PATHS = ( "$(inherited)", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", "\"$(SRCROOT)/$(TARGET_NAME)\"", ); PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.Mozi-tvOSTests"; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = appletvos; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Mozi-tvOS.app/Mozi-tvOS"; TVOS_DEPLOYMENT_TARGET = 10.1; }; name = Release; }; 83CBBA201A601CBA00E9B192 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; GCC_NO_COMMON_BLOCKS = YES; GCC_OPTIMIZATION_LEVEL = 0; GCC_PREPROCESSOR_DEFINITIONS = ( "DEBUG=1", "$(inherited)", ); GCC_SYMBOLS_PRIVATE_EXTERN = NO; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 9.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; }; name = Debug; }; 83CBBA211A601CBA00E9B192 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = YES; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_NO_COMMON_BLOCKS = YES; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 9.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; VALIDATE_PRODUCT = YES; }; name = Release; }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "MoziTests" */ = { isa = XCConfigurationList; buildConfigurations = ( 00E356F61AD99517003FC87E /* Debug */, 00E356F71AD99517003FC87E /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "Mozi" */ = { isa = XCConfigurationList; buildConfigurations = ( 13B07F941A680F5B00A75B9A /* Debug */, 13B07F951A680F5B00A75B9A /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "Mozi-tvOS" */ = { isa = XCConfigurationList; buildConfigurations = ( 2D02E4971E0B4A5E006451C7 /* Debug */, 2D02E4981E0B4A5E006451C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "Mozi-tvOSTests" */ = { isa = XCConfigurationList; buildConfigurations = ( 2D02E4991E0B4A5E006451C7 /* Debug */, 2D02E49A1E0B4A5E006451C7 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "Mozi" */ = { isa = XCConfigurationList; buildConfigurations = ( 83CBBA201A601CBA00E9B192 /* Debug */, 83CBBA211A601CBA00E9B192 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; /* End XCConfigurationList section */ }; rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; } ================================================ FILE: ios/Mozi.xcodeproj/xcshareddata/xcschemes/Mozi-tvOS.xcscheme ================================================ ================================================ FILE: ios/Mozi.xcodeproj/xcshareddata/xcschemes/Mozi.xcscheme ================================================ ================================================ FILE: ios/MoziTests/Info.plist ================================================ CFBundleDevelopmentRegion en CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName $(PRODUCT_NAME) CFBundlePackageType BNDL CFBundleShortVersionString 1.0 CFBundleSignature ???? CFBundleVersion 1 ================================================ FILE: ios/MoziTests/MoziTests.m ================================================ /** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #import #import #import #import #define TIMEOUT_SECONDS 600 #define TEXT_TO_LOOK_FOR @"Welcome to React Native!" @interface MoziTests : XCTestCase @end @implementation MoziTests - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test { if (test(view)) { return YES; } for (UIView *subview in [view subviews]) { if ([self findSubviewInView:subview matching:test]) { return YES; } } return NO; } - (void)testRendersWelcomeScreen { UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; BOOL foundElement = NO; __block NSString *redboxError = nil; RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { if (level >= RCTLogLevelError) { redboxError = message; } }); while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { return YES; } return NO; }]; } RCTSetLogFunction(RCTDefaultLogFunction); XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); } @end ================================================ FILE: package.json ================================================ { "name": "Mozi", "version": "2.0.1", "private": true, "license": "MIT", "scripts": { "start": "node node_modules/react-native/local-cli/cli.js start", "android": "react-native run-android", "an-release": "cd android && ./gradlew assembleRelease", "an-clean": "cd android && ./gradlew clean", "build": "cd node_modules/react-native/third-party/glog-0.3.5/ && ../../scripts/ios-configure-glog.sh", "ios": "react-native run-ios --simulator 'iPhone 6'", "test": "jest", "precommit": "lint-staged" }, "dependencies": { "babel-plugin-root-import": "^6.4.1", "jcore-react-native": "^1.3.1", "jpush-react-native": "^2.5.1", "react": "16.6.3", "react-native": "0.57.8", "react-native-animatable": "^1.2.4", "react-native-code-push": "^5.5.1", "react-native-device-info": "^0.24.3", "react-native-gesture-handler": "^1.0.12", "react-native-image-header-scroll-view": "^0.8.2", "react-native-root-siblings": "^3.1.7", "react-native-scrollable-tab-view": "^0.10.0", "react-native-splash-screen": "^3.1.1", "react-native-vector-icons": "^4.6.0", "react-navigation": "^3.12.1", "react-redux": "^6.0.0", "redux": "^4.0.1", "redux-actions": "^2.6.4", "redux-logger": "^3.0.6", "redux-thunk": "^2.3.0", "reselect": "^3.0.1", "rn-placeholder": "^1.2.0" }, "devDependencies": { "@babel/core": "^7.2.2", "@babel/plugin-proposal-decorators": "^7.2.3", "@babel/plugin-transform-runtime": "^7.2.0", "@babel/runtime": "^7.2.0", "babel-eslint": "^7.2.3", "babel-jest": "23.6.0", "babel-plugin-module-resolver": "^3.1.1", "babel-plugin-transform-es2015-duplicate-keys": "^6.24.1", "babel-plugin-transform-remove-console": "^6.8.5", "eslint": "^4.6.1", "eslint-config-airbnb": "^15.1.0", "eslint-plugin-import": "^2.7.0", "eslint-plugin-jsx-a11y": "^5.1.1", "eslint-plugin-react": "^7.3.0", "husky": "^1.0.0-rc.13", "jest": "23.6.0", "lint-staged": "^7.2.0", "metro-react-native-babel-preset": "^0.51.1", "react-test-renderer": "16.6.1" }, "jest": { "preset": "react-native" }, "lint-staged": { "*.{js,json,css}": [ "eslint --fix ./ --cache --ignore-pattern .gitignore", "git add" ] } } ================================================ FILE: src/AppNavigationState.js ================================================ import React, { Component, } from 'react'; import { BackHandler, ToastAndroid, Platform, } from 'react-native'; import { connect, } from 'react-redux'; import { NavigationActions, } from 'react-navigation'; import JPushModule from 'jpush-react-native'; import Routers from './routers/app'; // state持久化 const persistenceKey = 'persistenceKey'; const persistNavigationState = async navState => { try { console.log('navState_______', navState); await AsyncStorage.setItem(persistenceKey, JSON.stringify(navState)); } catch (err) { // handle the error according to your needs } }; const loadNavigationState = async () => { const jsonString = await AsyncStorage.getItem(persistenceKey); return JSON.parse(jsonString); }; const getPersistenceFunctions = __DEV__ ? { persistNavigationState, loadNavigationState, } : undefined; @connect(state => ({ nav: state.nav, })) export default class AppNavigationState extends Component { componentDidMount() { if (Platform.OS === 'android') { // 通知 JPushModule 初始化完成,发送缓存事件。 JPushModule.notifyJSDidLoad(() => {}); } else { JPushModule.initPush(); } // 接收自定义消息 JPushModule.addReceiveCustomMsgListener(message => { // this.setState({ pushMsg: message, }); }); // 接收推送通知 JPushModule.addReceiveNotificationListener(message => { // console.log(`receive notification: ${message}`); }); // 打开通知 JPushModule.addReceiveOpenNotificationListener(() => { console.log('Opening notification!'); !!this.root && this.root._navigation.navigate('Gong'); }); } componentWillUnmount() { !!this.onBackPress && BackHandler.removeEventListener('hardwareBackPress', this.onBackPress); this.lastBackPressed = null; JPushModule.removeReceiveCustomMsgListener(); JPushModule.removeReceiveNotificationListener(); JPushModule.removeReceiveOpenNotificationListener(); JPushModule.clearAllNotifications(); } onBackPress = () => { const { dispatch, nav, } = this.props; if (this.lastBackPressed && this.lastBackPressed + 2000 >= Date.now()) { return false; } this.lastBackPressed = Date.now(); ToastAndroid.show('再按一次退出应用', ToastAndroid.SHORT); dispatch(NavigationActions.back()); return true; }; render() { return ( { this.root = ref; }} {...getPersistenceFunctions} onNavigationStateChange={(prevState, currentState) => { const appState = currentState.routes; if ((appState && appState.length > 1) || appState[0].index > 0) { BackHandler.removeEventListener('hardwareBackPress', this.onBackPress); } else { BackHandler.addEventListener('hardwareBackPress', this.onBackPress); } }} /> ); } } ================================================ FILE: src/app/actions/home.js ================================================ import { GET, } from '../../commons/utils/request'; import { movieList, } from '../constants/urls'; import * as types from '../constants/actionTypes'; const receiveMovies = data => { return { type: types.RECEIVE_MOVIES, ...data, }; }; const fetchMovies = params => { return dispatch => { return GET(movieList, params).then(resp => { const { coming, } = resp; dispatch( receiveMovies({ movies: coming, }), ); }); }; }; module.exports = { fetchMovies, }; ================================================ FILE: src/app/constants/actionTypes.js ================================================ // base export const BASE_LOADING = 'BASE_LOADING'; // 获取登录状态 export const GET_SIGIN_STATE = 'GET_SIGIN_STATE'; // 设置登录状态 export const SET_SIGIN_STATE = 'SET_SIGIN_STATE'; // movies export const RECEIVE_MOVIES = 'RECEIVE_MOVIES'; ================================================ FILE: src/app/constants/apiConfig.js ================================================ module.exports = { IOS_LXY_KEY: 'U2FsdGVkX18cpkVER23U5PNi5PBX5KLA/h6yGesmEE4=', // 小黑IOS ANDROID_LXY_DKEY: 'U2FsdGVkX19pGXJl7rtdgVE3LmSvRIYQ6Ku+dmEkDHo=', // 小黑ANDROID }; ================================================ FILE: src/app/constants/urls.js ================================================ const HOST = 'https://m.maoyan.com'; const URLS = { // MOVE_LIST movieList: `${HOST}/ajax/mostExpected`, }; module.exports = URLS; ================================================ FILE: src/app/reducers/base.js ================================================ import { handleActions, } from 'redux-actions'; import * as types from '../constants/actionTypes'; const initialState = { loading: true, logged: false, }; const handler = {}; handler[types.BASE_LOADING] = (state, action) => { const { loading, } = action; return { ...state, loading, }; }; handler[types.SET_SIGIN_STATE] = (state, action) => { const { logged, } = action; return { ...state, logged, }; }; export default handleActions(handler, initialState); ================================================ FILE: src/app/reducers/home.js ================================================ import { handleActions, } from 'redux-actions'; import * as types from '../constants/actionTypes'; const initialState = { movies: [], }; const handler = {}; handler[types.RECEIVE_MOVIES] = (state, action) => { const { movies, } = action; return { ...state, movies, }; }; export default handleActions(handler, initialState); ================================================ FILE: src/app/reducers/index.js ================================================ import { combineReducers, } from 'redux'; import nav from './nav'; import base from './base'; import home from './home'; const rootReducer = combineReducers({ nav, base, home, }); export default rootReducer; ================================================ FILE: src/app/reducers/nav.js ================================================ import Routers from '../../routers/app'; const nav = (state, action) => { const newState = Routers.router.getStateForAction(action, state); return newState || state; }; export default nav; ================================================ FILE: src/app/selectors/base.js ================================================ import { createSelector, } from 'reselect'; const getBase = state => { const { logged, } = { ...state.base, }; return logged; }; export default createSelector(getBase, logged => { console.log('logged-----------', logged); return { logged, }; }); ================================================ FILE: src/app/selectors/home.js ================================================ import { createSelector, } from 'reselect'; const listData = item => { const MyItem = { ...item, }; return { key: MyItem.id, data: [ { ...MyItem, }, ], }; }; const getHome = state => { const { movies, } = { ...state.home, }; const filterMovies = movies.map(listData); return { movies: filterMovies, }; }; export default createSelector(getHome, home => { console.log('redu-home--', home); return { home, }; }); ================================================ FILE: src/app/store/configureStore.js ================================================ import { createStore, applyMiddleware, } from 'redux'; import thunk from 'redux-thunk'; import rootReducer from '../reducers/index'; const middlewares = [ thunk, ]; const { logger, } = require('redux-logger'); /* global __DEV__ */ if (__DEV__) { middlewares.push(logger); console.disableYellowBox = true; console.ignoredYellowBox = [ 'Warning: ...', ]; } const createStoreWithMiddleware = applyMiddleware(...middlewares)(createStore); export default function configureStore(initialState) { const store = createStoreWithMiddleware(rootReducer, initialState); if (module.hot) { const acceptCallback = () => { store.replaceReducer(rootReducer); }; module.hot.accept('reducers/index', acceptCallback); module.hot.acceptCallback = acceptCallback; } return store; } ================================================ FILE: src/app/store/connect.js ================================================ import { connect, } from 'react-redux'; import { bindActionCreators, } from 'redux'; function mapStateToProps(props, state) { if (typeof props === 'function') return props; return state; } function mapDispatchToProps(actions, dispatch) { return { actions: bindActionCreators(actions, dispatch), }; } export default (selector, actions) => { return target => connect(mapStateToProps.bind(null, selector), mapDispatchToProps.bind(null, actions))(target); }; ================================================ FILE: src/commons/i18n/cn.js ================================================ export default { lang: 'cn', disconnected: '网络断了,请检查你的网络设置 \n 或者点击页面重试', toast: { title: '提示', cancel: '取消', ok: '确定', }, unit: { M: { value: 10000, name: '万', }, B: { value: 10000 * 10000, name: '亿', }, }, tabbars: { home: '首页', library: '影库', explore: '发现', boxoffice: '票房', schedules: '排片', cinemas: '影院', theaters: '院线', my: '我的', market: '大盘', }, timepicker: { prevday: '前一天', nextday: '后一天', }, theaters: { announcement: '院线数据一天更新一次,每日11:30更新昨日数据', }, cinemas: { announcement: '影院数据一天更新一次,每日11:30更新昨日数据', }, theatershead: { name: '院线', boxOffice: '实时票房', tickets: '人次', avgTickets: '场均人次', avgPrice: '均价', }, cinemashead: { name: '影院', boxOffice: '实时票房', tickets: '人次', avgTickets: '场均人次', avgPrice: '平均票价', }, loading: '正在加载中...', date: { today: '今天', tomorrow: '明天', ttomorrow: '后天', dayNamesShort: [ '周日', '周一', '周二', '周三', '周四', '周五', '周六', ], dayNames: [ '星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六', ], monthNamesShort: [ '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', ], monthNames: [ '一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月', ], amPm: [ '上午', '下午', ], }, boxoffice: { rank: '排行', more: '更多', gross: '实时', presale: '预售', panel: { grossMarket: '实时大盘', totalTimes: '总场次', totalTickets: '总人数', newRelease: '新上映', time: '北京时间', }, movie: { boxOffice: '实时票房', boxOfficeRate: '票房占比', showTimesRate: '排片占比', ticketSeatRate: '上座率', showTimes: '场次', tickets: '人次', seatsRate: '排座占比', avgTickets: '场均人次', avgPrice: '均价', }, shows: [ '首日', day => `上映${day}天`, '零点场', '点映', ], schedules: { name: '影片', rate: '占比', }, }, boxofficeForecast: { grossEstimation: '票房预测', columns: { movie: '影片', todayEstimation: '今日预测', tomorrowEstimation: '明日预测', totalEstimation: '总票房预测', }, }, citylist: { title: '全国城市', recentVisited: '最近访问', region: '区域', hot: '热门', }, theaterlist: { title: '全国院线', recentVisited: '最近访问', hot: '热门院线', theaters: '院线', }, theater: { operate: { boxOffice: '票房', showTimes: '场次', tickets: '人次', avgTickets: '场均人次', avgPrice: '平均票价', seatBoxOffice: '单座票房', avgBoxOffice: '场均票房', hallBoxOffice: '单银幕票房', nomal: '普通厅票房', IMAX: 'IMAX票房', china: '中国巨幕票房', other: '其他影厅票房', }, movie: { boxOffice: '票房', seats: '座位数', tickets: '人次', showTimes: '场次', showTimesRate: '排片占比', avgTickets: '场均人次', avgPrice: '平均票价', ticketSeatRate: '上座率', boxOfficeRate: '票房占比', primeShowTimes: '黄金场', primeShowTimesRate: '黄金场占比', primeSeatsRate: '黄金场座位占比', }, }, dateWeeks: { 0: '周日', 1: '周一', 2: '周二', 3: '周三', 4: '周四', 5: '周五', 6: '周六', }, }; ================================================ FILE: src/commons/i18n/en.js ================================================ export default { lang: 'en', disconnected: 'network is unavailable, please check your connection.', toast: { title: 'Alert', cancel: 'Cancel', ok: 'OK', }, unit: { M: { value: 1000 * 1000, name: 'M', }, B: { value: 1000 * 1000 * 1000, name: 'B', }, }, tabbars: { home: 'home', library: 'library', explore: 'explore', boxoffice: 'boxoffice', schedules: 'schedules', cinema: 'cinema', cinemas: 'cinemas', my: 'my', market: 'market', }, timepicker: { prevDay: 'Prev Day', nextDay: 'Next Day', }, theatershead: { name: 'theater', boxOffice: 'boxOffice', tickets: 'tickets', avgTickets: 'avgTickets', avgPrice: 'avgPrice', }, cinemashead: { name: 'cinema', boxOffice: 'boxOffice', tickets: 'tickets', avgTickets: 'avgTickets', avgPrice: 'avgPrice', }, loading: 'loading...', date: { today: 'Today', tomorrow: 'Tomorrow', ttomorrow: '', dayNamesShort: [ 'Sun', 'Mon', 'Tue', 'Wed', 'Thur', 'Fri', 'Sat', ], dayNames: [ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', ], monthNamesShort: [ 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec', ], monthNames: [ 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December', ], amPm: [ 'am', 'pm', ], }, boxoffice: { rank: 'Rank', more: 'More', gross: 'Gross', presale: 'PreSale', panel: { grossMarket: 'Gross Market', totalTimes: 'Total Times', totalTickets: 'Total Tickets', newRelease: 'New Release', time: 'BeiJing Time', }, boxofficeForecast: { grossEstimation: 'Gross estimation', columns: { movie: 'movie', todayEstimation: 'Today estimation', tomorrowEstimation: 'Tomorrow estimation', totalEstimation: 'Total Estimation', }, }, movie: { boxOffice: 'Gross', boxOfficeRate: 'Gross Share', ticketSeatRate: 'Tickets Seat Rate', seatsRate: 'Seats Rate', showTimes: 'Show Times', showTimesRate: 'Show Times Rate', avgPrice: 'Avg Price', avgTickets: 'Avg Tickets', tickets: 'Tickets', }, shows: [ 'First Day', day => `Day ${day}th`, 'Midnight', 'Limited Release', ], schedules: { name: 'Movie', rate: 'Rate', }, }, citylist: { title: 'Cities', recentVisited: 'Recent Visited', region: 'Regions', hot: 'Hot', }, theaterlist: { title: 'National Theaters', recentVisited: 'Recent Visited', hot: 'Hot', theaters: 'Theaters', }, theater: { operate: { boxOffice: 'Gross', showTimes: 'showTimes', tickets: 'tickets', avgTickets: 'avgTickets', avgPrice: 'avgPrice', seatBoxOffice: 'seatBoxOffice', avgBoxOffice: 'avgBoxOffice', hallBoxOffice: 'hallBoxOffice', nomal: 'nomal', IMAX: 'IMAX', china: 'china', other: 'other', }, movie: { boxOffice: 'boxOffice', seats: 'seats', tickets: 'tickets', showTimes: 'showTimes', showTimesRate: 'showTimesRate', boxOfficeRate: 'boxOfficeRate', type: 'type', avgPrice: 'avgPrice', singleickets: 'singleickets', nomal: 'nomal', primeShowTimesRate: 'primeShowTimesRate', other: 'other', }, }, dateWeeks: { 0: 'Sunday', 1: 'Monday', 2: 'Tuesday', 3: 'Wednesday', 4: 'Thursday', 5: 'Friday', 6: 'Saturday', }, }; ================================================ FILE: src/commons/i18n/index.js ================================================ import I18n from 'react-native-i18n'; import en from './en'; import cn from './cn'; I18n.missingTranslationPrefix = 'EE: '; I18n.missingTranslation = () => { return 'no'; }; I18n.fallbacks = true; I18n.defaultLocale = 'cn'; I18n.translations = { en, cn, }; export default I18n; ================================================ FILE: src/commons/utils/md5.js ================================================ function md5(string) { function md5_RotateLeft(lValue, iShiftBits) { return (lValue << iShiftBits) | (lValue >>> (32 - iShiftBits)); } function md5_AddUnsigned(lX, lY) { let lX4, lY4, lX8, lY8, lResult; lX8 = (lX & 0x80000000); lY8 = (lY & 0x80000000); lX4 = (lX & 0x40000000); lY4 = (lY & 0x40000000); lResult = (lX & 0x3FFFFFFF) + (lY & 0x3FFFFFFF); if (lX4 & lY4) { return (lResult ^ 0x80000000 ^ lX8 ^ lY8); } if (lX4 | lY4) { if (lResult & 0x40000000) { return (lResult ^ 0xC0000000 ^ lX8 ^ lY8); } return (lResult ^ 0x40000000 ^ lX8 ^ lY8); } return (lResult ^ lX8 ^ lY8); } function md5_F(x, y, z) { return (x & y) | ((~x) & z); } function md5_G(x, y, z) { return (x & z) | (y & (~z)); } function md5_H(x, y, z) { return (x ^ y ^ z); } function md5_I(x, y, z) { return (y ^ (x | (~z))); } function md5_FF(a, b, c, d, x, s, ac) { a = md5_AddUnsigned(a, md5_AddUnsigned(md5_AddUnsigned(md5_F(b, c, d), x), ac)); return md5_AddUnsigned(md5_RotateLeft(a, s), b); } function md5_GG(a, b, c, d, x, s, ac) { a = md5_AddUnsigned(a, md5_AddUnsigned(md5_AddUnsigned(md5_G(b, c, d), x), ac)); return md5_AddUnsigned(md5_RotateLeft(a, s), b); } function md5_HH(a, b, c, d, x, s, ac) { a = md5_AddUnsigned(a, md5_AddUnsigned(md5_AddUnsigned(md5_H(b, c, d), x), ac)); return md5_AddUnsigned(md5_RotateLeft(a, s), b); } function md5_II(a, b, c, d, x, s, ac) { a = md5_AddUnsigned(a, md5_AddUnsigned(md5_AddUnsigned(md5_I(b, c, d), x), ac)); return md5_AddUnsigned(md5_RotateLeft(a, s), b); } function md5_ConvertToWordArray(string) { let lWordCount; const lMessageLength = string.length; const lNumberOfWords_temp1 = lMessageLength + 8; const lNumberOfWords_temp2 = (lNumberOfWords_temp1 - (lNumberOfWords_temp1 % 64)) / 64; const lNumberOfWords = (lNumberOfWords_temp2 + 1) * 16; const lWordArray = Array(lNumberOfWords - 1); let lBytePosition = 0; let lByteCount = 0; while (lByteCount < lMessageLength) { lWordCount = (lByteCount - (lByteCount % 4)) / 4; lBytePosition = (lByteCount % 4) * 8; lWordArray[lWordCount] = (lWordArray[lWordCount] | (string.charCodeAt(lByteCount) << lBytePosition)); lByteCount++; } lWordCount = (lByteCount - (lByteCount % 4)) / 4; lBytePosition = (lByteCount % 4) * 8; lWordArray[lWordCount] = lWordArray[lWordCount] | (0x80 << lBytePosition); lWordArray[lNumberOfWords - 2] = lMessageLength << 3; lWordArray[lNumberOfWords - 1] = lMessageLength >>> 29; return lWordArray; } function md5_WordToHex(lValue) { let WordToHexValue = "", WordToHexValue_temp = "", lByte, lCount; for (lCount = 0; lCount <= 3; lCount++) { lByte = (lValue >>> (lCount * 8)) & 255; WordToHexValue_temp = `0${lByte.toString(16)}`; WordToHexValue += WordToHexValue_temp.substr(WordToHexValue_temp.length - 2, 2); } return WordToHexValue; } function md5_Utf8Encode(string) { string = string.replace(/\r\n/g, "\n"); let utftext = ""; for (let n = 0; n < string.length; n++) { const c = string.charCodeAt(n); if (c < 128) { utftext += String.fromCharCode(c); } else if ((c > 127) && (c < 2048)) { utftext += String.fromCharCode((c >> 6) | 192); utftext += String.fromCharCode((c & 63) | 128); } else { utftext += String.fromCharCode((c >> 12) | 224); utftext += String.fromCharCode(((c >> 6) & 63) | 128); utftext += String.fromCharCode((c & 63) | 128); } } return utftext; } let x = Array(); let k, AA, BB, CC, DD, a, b, c, d; let S11 = 7, S12 = 12, S13 = 17, S14 = 22; let S21 = 5, S22 = 9, S23 = 14, S24 = 20; let S31 = 4, S32 = 11, S33 = 16, S34 = 23; let S41 = 6, S42 = 10, S43 = 15, S44 = 21; string = md5_Utf8Encode(string); x = md5_ConvertToWordArray(string); a = 0x67452301; b = 0xEFCDAB89; c = 0x98BADCFE; d = 0x10325476; for (k = 0; k < x.length; k += 16) { AA = a; BB = b; CC = c; DD = d; a = md5_FF(a, b, c, d, x[k + 0], S11, 0xD76AA478); d = md5_FF(d, a, b, c, x[k + 1], S12, 0xE8C7B756); c = md5_FF(c, d, a, b, x[k + 2], S13, 0x242070DB); b = md5_FF(b, c, d, a, x[k + 3], S14, 0xC1BDCEEE); a = md5_FF(a, b, c, d, x[k + 4], S11, 0xF57C0FAF); d = md5_FF(d, a, b, c, x[k + 5], S12, 0x4787C62A); c = md5_FF(c, d, a, b, x[k + 6], S13, 0xA8304613); b = md5_FF(b, c, d, a, x[k + 7], S14, 0xFD469501); a = md5_FF(a, b, c, d, x[k + 8], S11, 0x698098D8); d = md5_FF(d, a, b, c, x[k + 9], S12, 0x8B44F7AF); c = md5_FF(c, d, a, b, x[k + 10], S13, 0xFFFF5BB1); b = md5_FF(b, c, d, a, x[k + 11], S14, 0x895CD7BE); a = md5_FF(a, b, c, d, x[k + 12], S11, 0x6B901122); d = md5_FF(d, a, b, c, x[k + 13], S12, 0xFD987193); c = md5_FF(c, d, a, b, x[k + 14], S13, 0xA679438E); b = md5_FF(b, c, d, a, x[k + 15], S14, 0x49B40821); a = md5_GG(a, b, c, d, x[k + 1], S21, 0xF61E2562); d = md5_GG(d, a, b, c, x[k + 6], S22, 0xC040B340); c = md5_GG(c, d, a, b, x[k + 11], S23, 0x265E5A51); b = md5_GG(b, c, d, a, x[k + 0], S24, 0xE9B6C7AA); a = md5_GG(a, b, c, d, x[k + 5], S21, 0xD62F105D); d = md5_GG(d, a, b, c, x[k + 10], S22, 0x2441453); c = md5_GG(c, d, a, b, x[k + 15], S23, 0xD8A1E681); b = md5_GG(b, c, d, a, x[k + 4], S24, 0xE7D3FBC8); a = md5_GG(a, b, c, d, x[k + 9], S21, 0x21E1CDE6); d = md5_GG(d, a, b, c, x[k + 14], S22, 0xC33707D6); c = md5_GG(c, d, a, b, x[k + 3], S23, 0xF4D50D87); b = md5_GG(b, c, d, a, x[k + 8], S24, 0x455A14ED); a = md5_GG(a, b, c, d, x[k + 13], S21, 0xA9E3E905); d = md5_GG(d, a, b, c, x[k + 2], S22, 0xFCEFA3F8); c = md5_GG(c, d, a, b, x[k + 7], S23, 0x676F02D9); b = md5_GG(b, c, d, a, x[k + 12], S24, 0x8D2A4C8A); a = md5_HH(a, b, c, d, x[k + 5], S31, 0xFFFA3942); d = md5_HH(d, a, b, c, x[k + 8], S32, 0x8771F681); c = md5_HH(c, d, a, b, x[k + 11], S33, 0x6D9D6122); b = md5_HH(b, c, d, a, x[k + 14], S34, 0xFDE5380C); a = md5_HH(a, b, c, d, x[k + 1], S31, 0xA4BEEA44); d = md5_HH(d, a, b, c, x[k + 4], S32, 0x4BDECFA9); c = md5_HH(c, d, a, b, x[k + 7], S33, 0xF6BB4B60); b = md5_HH(b, c, d, a, x[k + 10], S34, 0xBEBFBC70); a = md5_HH(a, b, c, d, x[k + 13], S31, 0x289B7EC6); d = md5_HH(d, a, b, c, x[k + 0], S32, 0xEAA127FA); c = md5_HH(c, d, a, b, x[k + 3], S33, 0xD4EF3085); b = md5_HH(b, c, d, a, x[k + 6], S34, 0x4881D05); a = md5_HH(a, b, c, d, x[k + 9], S31, 0xD9D4D039); d = md5_HH(d, a, b, c, x[k + 12], S32, 0xE6DB99E5); c = md5_HH(c, d, a, b, x[k + 15], S33, 0x1FA27CF8); b = md5_HH(b, c, d, a, x[k + 2], S34, 0xC4AC5665); a = md5_II(a, b, c, d, x[k + 0], S41, 0xF4292244); d = md5_II(d, a, b, c, x[k + 7], S42, 0x432AFF97); c = md5_II(c, d, a, b, x[k + 14], S43, 0xAB9423A7); b = md5_II(b, c, d, a, x[k + 5], S44, 0xFC93A039); a = md5_II(a, b, c, d, x[k + 12], S41, 0x655B59C3); d = md5_II(d, a, b, c, x[k + 3], S42, 0x8F0CCC92); c = md5_II(c, d, a, b, x[k + 10], S43, 0xFFEFF47D); b = md5_II(b, c, d, a, x[k + 1], S44, 0x85845DD1); a = md5_II(a, b, c, d, x[k + 8], S41, 0x6FA87E4F); d = md5_II(d, a, b, c, x[k + 15], S42, 0xFE2CE6E0); c = md5_II(c, d, a, b, x[k + 6], S43, 0xA3014314); b = md5_II(b, c, d, a, x[k + 13], S44, 0x4E0811A1); a = md5_II(a, b, c, d, x[k + 4], S41, 0xF7537E82); d = md5_II(d, a, b, c, x[k + 11], S42, 0xBD3AF235); c = md5_II(c, d, a, b, x[k + 2], S43, 0x2AD7D2BB); b = md5_II(b, c, d, a, x[k + 9], S44, 0xEB86D391); a = md5_AddUnsigned(a, AA); b = md5_AddUnsigned(b, BB); c = md5_AddUnsigned(c, CC); d = md5_AddUnsigned(d, DD); } return (md5_WordToHex(a) + md5_WordToHex(b) + md5_WordToHex(c) + md5_WordToHex(d)).toLowerCase(); } module.exports = { hexMD5: md5, }; ================================================ FILE: src/commons/utils/request.js ================================================ import { Platform, AsyncStorage, } from 'react-native'; import { IOS_LXY_KEY, ANDROID_LXY_DKEY, } from '../../app/constants/apiConfig'; import { hexMD5, } from './md5'; import { sortObject, setUrlK, formData, } from './util'; import { appid, platform, } from '../../app/constants/urls'; const signKey = Platform.OS === 'android' ? ANDROID_LXY_DKEY : IOS_LXY_KEY; const GUID = () => { function s4() { return Math.floor((1 + Math.random()) * 0x10000) .toString(16) .substring(1); } return `${s4()}${s4()}-${s4()}-${s4()}-${s4()}-${s4()}${s4()}${s4()}`; }; const throwError = json => { const error = new Error(json.code); error.message = json.msg; error.code = json.code; throw error; }; const checkStatus = ({ resp, json, }) => { // 如果 返回结果中包含 code 和 message, 则认为出错了 if (resp.status >= 200 && resp.status < 300) { return json; } else if (resp.status >= 500) { throwError(json); } else { throwError(json); } return json; }; const encodeQuery = (path, data = {}) => { let url = path; if (!data || !Object.keys(data).length) { return url; } url = url.indexOf('?') === -1 ? `${url}?` : `${url}&`; const query = Object.keys(data) .map(key => `${key}=${data[key]}`) .join('&'); return `${url}${query}`; }; // 这个方法是做接口签名用的,如果你的项目中需要对接口做签名直接改一下 IOS_LXY_KEY, ANDROID_LXY_DKEY的值就行, const signMd = (pKey, data) => { const __data = JSON.parse(JSON.stringify(data)); const sign_data = { ...data, ...data.signs, }; delete __data.signs; delete sign_data.signs; __data.sign = hexMD5(pKey + decodeURIComponent(setUrlK(sortObject(sign_data)))).toUpperCase(); return __data; }; // get token const getToken = async () => { const users = await AsyncStorage.getItem('users'); if (users) { const __users = JSON.parse(users); return __users.token ? __users.token : null; } return null; }; const FETCH = async (url, options, noHeaders = false) => { const { headers, ...others } = options; const __token = await getToken(); let combineHeaders = { ...headers, }; if (!noHeaders) { combineHeaders = { 'X-Request-Id': GUID(), ...headers, }; } if (__token) { combineHeaders['Request-Token'] = __token; } console.log('请求头信息:', combineHeaders); console.log('请求地址:', url, '请求信息:', others); return fetch(url, { credentials: 'include', ...others, headers: combineHeaders, }) .then(resp => resp .json() .then(json => ({ resp, json, })) .catch(error => ({ resp, json: {}, error, })), ) .then(checkStatus); }; const POST = (url, data = {}, options = {}) => { const dataCopy = { appid, platform, ...data, }; const __signParam = signMd(signKey, dataCopy); const __formData = formData(__signParam); return FETCH(url, { method: 'POST', headers: { "Content-Type": "multipart/form-data", Connection: "close", type: "getUserData", }, body: __formData, ...options, }) .then(resp => { return resp; }) .catch(error => { return error; }); }; const GET = (url, data = {}, options = {}) => { const dataCopy = { appid, platform, ...data, }; const __signParam = signMd(signKey, dataCopy); const requestUrl = encodeQuery(url, __signParam); return FETCH(requestUrl, { method: 'GET', contentType: 'application/json', ...options, }) .then(res => { return res; }) .catch(error => { throw error; }); }; module.exports = { POST, GET, }; ================================================ FILE: src/commons/utils/util.js ================================================ const formatTime = date => { const year = date.getFullYear(); const month = date.getMonth() + 1; const day = date.getDate(); const hour = date.getHours(); const minute = date.getMinutes(); const second = date.getSeconds(); return `${year}-${month}-${day}`; }; const sortObject = (obj) => { // 先获取所有属性名 const keys = []; for (var key in obj) { keys.push(key); } // 排序 keys.sort(); // 导出新的对象 const r = {}; for (let i = 0; i < keys.length; i++) { key = keys[i]; r[key] = typeof (obj[key]) === "object" ? JSON.stringify(obj[key]) : obj[key]; } return r; }; const setUrlK = (ojson) => { let s = '', name, key; for (const p in ojson) { if (ojson.hasOwnProperty(p)) { name = p; } key = ojson[p]; s += `&${name}=${encodeURIComponent(key)}`; } return s.substring(1, s.length); }; const onlyOnes = (data, limitkey) => { // 去重 const __data = JSON.parse(JSON.stringify(data)); if (__data.length <= 1) { return __data; } const arr = []; for (const val of __data) { arr.push(val[limitkey]); } const newArr = []; const newArr2 = []; for (let i = 0; i <= arr.length - 1; i++) { if (newArr.indexOf(arr[i]) == -1) { newArr.push(arr[i]); newArr2.push(__data[i]); } } return newArr2; }; const compareVersion = (v1, v2) => { v1 = v1.split('.'); v2 = v2.split('.'); const len = Math.max(v1.length, v2.length); while (v1.length < len) { v1.push('0'); } while (v2.length < len) { v2.push('0'); } for (let i = 0; i < len; i++) { const num1 = parseInt(v1[i]); const num2 = parseInt(v2[i]); if (num1 > num2) { return 1; } else if (num1 < num2) { return -1; } } return 0; }; const formData = (data) => { const __formData = new FormData(); for (const k in data) { __formData.append(k, data[k]); } return __formData; }; // 遇到相同元素级属性,以后者(main)为准 // 不返还新Object,而是main改变 function mergeJSON(minor, main) { for (const key in minor) { if (main[key] === undefined) { // 不冲突的,直接赋值 main[key] = minor[key]; continue; } // 冲突了,如果是Object,看看有么有不冲突的属性 // 不是Object 则以main为主,忽略即可。故不需要else if (isJSON(minor[key])) { // arguments.callee 递归调用,并且与函数名解耦 arguments.callee(minor[key], main[key]); } } } const isJSON = (target) => { return typeof target === "object" && target.constructor == Object; }; const isArray = (o) => { return Object.prototype.toString.call(o) == '[object Array]'; }; module.exports = { formatTime, sortObject, setUrlK, onlyOnes, compareVersion, formData, mergeJSON, }; ================================================ FILE: src/components/Icon/index.js ================================================ import React from 'react'; import FontAwesome from 'react-native-vector-icons/FontAwesome'; import Ionicons from 'react-native-vector-icons/Ionicons'; const TYPES = { fontawesome: FontAwesome, ionicons: Ionicons, }; export default props => { const { source = 'ionicons', ...others } = props; const Icon = TYPES[source.toLowerCase()]; console.log('Ionicons----', Ionicons); return ; }; ================================================ FILE: src/components/ListItem/index.js ================================================ import React, { PureComponent, } from 'react'; import { View, Text, Image, TouchableOpacity, } from 'react-native'; import styles from './item.style'; export default class MovieItem extends PureComponent { render() { console.log('listitem----', this.props.data); // return () const { img, nm, showInfo, sc, comingTitle, wish, } = this.props.data; const image = img.replace(/http:/g, 'https:').replace(/w.h/g, '128.180'); return ( {nm} {wish} 喜欢 {comingTitle} {showInfo} ); } } ================================================ FILE: src/components/ListItem/item.style.js ================================================ /** * description:独立样式文件demo * Author: 墨子 * GitHub: https://github.com/duheng/Mozi * Email: duheng1100@163.com */ import { StyleSheet, } from 'react-native'; export default StyleSheet.create({ item: { flexDirection: 'row', borderBottomColor: '#e5e5e5', borderBottomWidth: 0.5, paddingTop: 10, paddingBottom: 10, paddingRight: 10, alignItems: 'center', }, image: { marginLeft: 10, width: 66, height: 93, }, right: { flex: 1, marginLeft: 10, flexDirection: 'column', justifyContent: 'space-between', }, rightTop: { flexDirection: 'row', justifyContent: 'space-between', }, rightInfo: { marginTop: 10, }, colorGray: { color: '#666', width: '60%', fontSize: 12, }, fontSize15: { fontSize: 15, }, fontSize13: { fontSize: 13, }, fontSize11: { fontSize: 11, }, red: { color: '#FF5200', }, black: { color: '#333', }, width50: { width: '50%', }, }); ================================================ FILE: src/components/ListParagraph/index.js ================================================ import React from 'react'; import { StyleSheet, View, } from 'react-native'; import Placeholder from 'rn-placeholder'; const styles = StyleSheet.create({ title: { marginBottom: 12, }, item: { margin: 12, }, }); const Title = hasTitle => { return hasTitle ? ( ) : null; }; const Placeholders = props => { const { ParagraphLength, ParagraphType, hasTitle, ...others } = props; const PlaceholderItem = Placeholder[ParagraphType]; const PlaceholderContent = []; for (let key = 0; key < ParagraphLength; key++) { PlaceholderContent.push( {Title(hasTitle)} , ); } return {PlaceholderContent}; }; const ListParagraph = props => { const baseOption = { ParagraphLength: 5, ParagraphType: 'ImageContent', hasTitle: false, size: 60, animate: 'fade', lineNumber: 3, lineSpacing: 12, lastLineWidth: '60%', }; const options = { ...baseOption, ...props, }; const { isLoading, list, } = props; if (isLoading) { return Placeholders(options); } return typeof list === 'function' && list(); }; export default Placeholder.connect(ListParagraph); ================================================ FILE: src/components/Loading/index.js ================================================ import React, { Component, } from 'react'; import { View, Text, StyleSheet, ActivityIndicator, Dimensions, } from 'react-native'; import RootSiblings from 'react-native-root-siblings'; const { width, height, } = Dimensions.get('window'); const Loading = { show: (title = '请稍后...') => { this.sibling = new RootSiblings( {title} ); }, hide: () => { if (this.sibling instanceof RootSiblings) { this.sibling.destroy(); } }, }; const styles = StyleSheet.create({ loadingMask: { position: 'absolute', backgroundColor: 'rgba(0, 0, 0, 0.3)', width, height, alignItems: 'center', justifyContent: 'center', }, indicatorViewStyle: { backgroundColor: '#111', width: 120, height: 100, justifyContent: 'center', alignItems: 'center', borderRadius: 5, }, indicatorTextStyle: { color: '#FFFFFF', marginTop: 10, }, } ); export default Loading; ================================================ FILE: src/components/NavigationButton/index.js ================================================ import React from 'react'; import { TouchableOpacity, } from 'react-native'; import Icon from '../Icon'; const typeMap = { share: 'md-share-alt', search: 'ios-search', back: 'ios-arrow-back', reload: 'ion-ios-reload', delete: 'ios-trash-outline', }; const iStyle = { paddingLeft: 8, paddingRight: 8, }; const creatIcon = props => { const { name, usename = false, size = 30, color = 'white', } = props; const names = usename ? name : typeMap[name]; const styles = usename ? '' : iStyle; return ; }; const runCallback = options => { const { callback, } = options; const buttons = callback && typeof callback === 'function' ? ( {creatIcon(options)} ) : ( creatIcon(options) ); return buttons; }; const NavigationButton = props => { const propsLength = props.length; let Buttons = null; if (propsLength >= 1) { props.map(item => { Buttons = runCallback(item); return null; }); } else { Buttons = runCallback(props); } return Buttons; }; export default NavigationButton; ================================================ FILE: src/components/Toast/index.js ================================================ import React, { Component, } from 'react'; import { View, Text, StyleSheet, ActivityIndicator, Dimensions, } from 'react-native'; import RootSiblings from 'react-native-root-siblings'; import Icon from '../Icon'; const { width, height, } = Dimensions.get('window'); const Toast = { show: (option) => { // state: default (默认提示) success(成功) fail(失败) const defaultOption = { title: '请请入提示文案', duration: 2000, state: 'default', }; const options = { ...defaultOption, ...option, }; const { title, duration, state, } = options; let toastUI = ( {title} ); if (state == 'success') { toastUI = ( {title} ); } else if (state == 'fail') { toastUI = ( {title} ); } this.sibling = new RootSiblings(toastUI); this.times = setTimeout(_ => { Toast.hide(); }, duration); }, hide: () => { if (this.sibling instanceof RootSiblings) { this.sibling.destroy(); delete this.times; } }, }; const styles = StyleSheet.create({ toastMask: { position: 'absolute', backgroundColor: 'rgba(0, 0, 0, 0.3)', width, height, alignItems: 'center', justifyContent: 'center', }, indicatorViewStyle: { backgroundColor: '#111', width: 120, height: 100, alignItems: 'center', justifyContent: 'center', borderRadius: 5, }, indicatorTextStyle: { color: '#FFFFFF', marginTop: -2, marginLeft: 8, textAlign: 'center', }, indicatorViewStyleDefault: { backgroundColor: '#111', maxWidth: '70%', height: 'auto', justifyContent: 'center', alignItems: 'center', borderRadius: 5, padding: 10, }, indicatorTextStyleDefault: { lineHeight: 18, color: '#FFFFFF', }, } ); export default Toast; ================================================ FILE: src/components/index.js ================================================ import Toast from './Toast'; import Loading from './Loading'; import Icon from './Icon'; import ListItem from './ListItem'; import NavigationButton from './NavigationButton'; import ListParagraph from './ListParagraph'; module.exports = { Toast, Loading, Icon, ListItem, NavigationButton, ListParagraph, }; ================================================ FILE: src/config.js ================================================ import React from 'react'; import { Platform, Image, } from 'react-native'; import StackViewStyleInterpolator from 'react-navigation-stack/src/views/StackView/StackViewStyleInterpolator'; import NavigationButton from './components/NavigationButton'; import { window, } from '../app'; import { tabBar, } from '../tab'; const BottomTabNavigatorConfig = options => { const { inactiveTintColor, activeTintColor, list, } = tabBar; const { initialRouteName = '', showIcon = true, } = options; return { initialRouteName, tabBarOptions: { inactiveTintColor, activeTintColor, showLabel: true, showIcon, indicatorStyle: { height: 0, }, style: { height: 49, margin: 0, padding: 0, borderTopColor: '#F0F0F0', borderTopWidth: 1, }, labelStyle: { fontSize: 12, margin: 0, padding: 0, }, }, defaultNavigationOptions: ({ navigation, }) => { const { routeName, } = navigation.state; const { icoPath, selectedIconPath, icoName, text, } = list[routeName]; return { tabBarIcon: ({ focused, tintColor, }) => { if (icoPath) { const icon = focused ? selectedIconPath : icoPath; return ( ); } const IcoName = focused ? icoName : `${icoName}-outline`; return ; }, tabBarLabel: text, }; }, }; }; const StackNavigatorConfig = options => { const { initialRouteName = '', screenInterpolator = StackViewStyleInterpolator.forHorizontal, } = options; const TITLE_OFFSET = Platform.OS === 'ios' ? 70 : 56; const { headerBackTitle = null, headerTintColor = '#FFFFFF', gesturesEnabled = true, headerBackgroundColor = '#262a37', headerTitleStyle = { alignSelf: 'center', textAlign: 'center', flex: 1, fontSize: 18, color: '#9c9c9c', }, } = window || {}; return { initialRouteName, mode: 'card', // 页面跳转方式 card - 原生系统默认的的跳转;modal - 只针对iOS平台,模态跳转 headerMode: 'float', // float - 渐变,类似iOS的原生效果;screen - 标题与屏幕一起淡入淡出;none - 没有动画 cardStyle: { backgroundColor: '#F5FCFF', }, // 为各个页面设置统一的样式,比如背景色,字体大小等 defaultNavigationOptions: { headerBackTitle, // 返回按钮文字 headerTintColor, // 返回按钮颜色 gesturesEnabled, // 是否支持滑动返回 headerTitleStyle, headerTitleContainerStyle: { left: TITLE_OFFSET, right: TITLE_OFFSET, }, headerStyle: { backgroundColor: headerBackgroundColor, shadowColor: 'transparent', shadowOpacity: 0, borderBottomWidth: 0, borderBottomColor: 'transparent', elevation: 0, }, }, transitionConfig: () => ({ screenInterpolator, }), }; }; module.exports = { BottomTabNavigatorConfig, StackNavigatorConfig, }; ================================================ FILE: src/containers/cheng/CustomPlaceholder.js ================================================ import React from 'react'; import { Text, } from 'react-native'; import Placeholder from 'rn-placeholder'; const customPlaceholder = props => { const style = { backgroundColor: props.bgColor, }; return I m a custom loader with props bgColor = {props.bgColor}; }; export default Placeholder.connect(customPlaceholder); ================================================ FILE: src/containers/cheng/index.js ================================================ import React, { Component, } from 'react'; import { StyleSheet, Text, View, } from 'react-native'; import Placeholder from 'rn-placeholder'; import CustomPlaceholder from './CustomPlaceholder'; const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#F5FCFF', }, welcome: { fontSize: 20, textAlign: 'center', margin: 10, }, box: { width: '90%', margin: 10, }, }); export default class Cheng extends Component { static navigationOptions = { headerTitle: '城', }; constructor(...args) { super(...args); this.state = { isReady: false, }; } render() { return ( 左边图右内容布局 左边图右内容布局 一行直线的布局 一行直线的布局 只有图片的布局 只有图片的布局 段落布局 段落布局 这是自定义demo ); } } ================================================ FILE: src/containers/demo/back.js ================================================ import React, { Component, } from 'react'; import { StyleSheet, Text, View, } from 'react-native'; import connect from '../../app/store/connect'; import NavigationButton from '../../components/NavigationButton'; const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#F5FCFF', }, welcome: { fontSize: 20, textAlign: 'center', margin: 10, }, }); @connect( state => ({ routes: state.nav.routes, }), {}, ) export default class Back extends Component { static navigationOptions = ({ navigation, }) => ({ headerTitle: 'Custom Back Demo', headerLeft: ( { navigation.state.params.goBack && navigation.state.params.goBack(); }} /> ), }); componentDidMount() { this.props.navigation.setParams({ goBack: this.goBack, }); } goBack = () => { this.props.navigation.navigate('Mo'); }; render() { return ( { this.goBack(); }} > 返回到首页 ); } } ================================================ FILE: src/containers/demo/backa.js ================================================ import React, { Component, } from 'react'; import { StyleSheet, Text, View, } from 'react-native'; const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#F5FCFF', }, welcome: { fontSize: 20, textAlign: 'center', margin: 10, }, }); export default class Backa extends Component { static navigationOptions = { headerTitle: '第一个入栈的页面', }; goBack = () => { const { navigation, } = this.props; navigation.navigate('Back'); }; render() { return ( { this.goBack(); }} > 点此去第二个入栈的页面 ); } } ================================================ FILE: src/containers/demo/web.js ================================================ import React, { Component, } from 'react'; import { WebView, StyleSheet, ActivityIndicator, } from 'react-native'; const styles = StyleSheet.create({ webview: { flex: 1, }, }); export default class Web extends Component { static navigationOptions = { headerTitle: 'Web', }; // 这是返回刷新的demo,如果需要就取消注释调试一下 // reLoad = () => { // const { navigation } = this.props; // console.log('navigation____', navigation); // navigation.state.params.onGoBack(); // navigation.goBack(); // }; loading = () => { return ; }; render() { const { navigation, } = this.props; const { url, userAgent = 'Mozi/', } = navigation.state.params; console.log('web props___', url); return ( { this.webview = ref; }} style={styles.webview} source={{ uri: url, }} userAgent={userAgent} startInLoadingState renderLoading={() => { return this.loading(); }} /> ); } } ================================================ FILE: src/containers/gong/HeaderImageScrollView.js ================================================ import React, { Component, } from 'react'; import { StyleSheet, Text, View, Image, Dimensions, } from 'react-native'; import * as Animatable from 'react-native-animatable'; import { Header, } from 'react-navigation'; import HeaderImageScrollView, { TriggeringView, } from 'react-native-image-header-scroll-view'; import NavigationButton from '../../components/NavigationButton'; const MIN_HEIGHT = Header.HEIGHT; const MAX_HEIGHT = 200; const styles = StyleSheet.create({ nav: { position: 'absolute', left: 0, top: 0, width: 50, height: 50, zIndex: 1000, }, image: { height: MAX_HEIGHT, width: Dimensions.get('window').width, alignSelf: 'stretch', resizeMode: 'cover', }, navTitleView: { height: MIN_HEIGHT, justifyContent: 'center', alignItems: 'center', opacity: 0, flexDirection: 'row', }, navBack: { flex: 1, alignSelf: 'stretch', }, navTitle: { flex: 3, color: 'white', fontSize: 18, textAlign: 'center', backgroundColor: 'transparent', }, titleContainer: { flex: 1, alignSelf: 'stretch', justifyContent: 'center', alignItems: 'center', }, imageTitle: { color: 'white', backgroundColor: 'transparent', fontSize: 24, }, section: { padding: 20, borderBottomWidth: 1, borderBottomColor: '#cccccc', backgroundColor: 'white', }, sectionTitle: { fontSize: 18, fontWeight: 'bold', }, sectionContent: { fontSize: 16, marginTop: 10, marginBottom: 10, textAlign: 'justify', }, }); export default class HeaderImageScrollViews extends Component { static navigationOptions = { headerTintColor: 'white', headerTitle: null, headerStyle: { position: 'absolute', top: 0, height: 0, elevation: 0, shadowColor: 'transparent', shadowRadius: 0, shadowOffset: { height: 0, }, }, }; render() { return ( ( )} renderFixedForeground={() => ( { this.navTitleView = navTitleView; }} > { this.props.navigation.goBack(); }} /> 墨子 - 攻城 )} renderForeground={() => ( 墨子 )} > this.navTitleView.fadeInUp(200)} onDisplay={() => this.navTitleView.fadeOut(100)} > 墨子 - 攻城 研发背景 量子保密通信技术已经从实验室演示走向产业化。在城市里,通过光纤建构的城域量子网络通信已经开始尝试实际应用,我国在城域光纤量子通信方面已取得了国际领先的地位。 在量子通信的国际赛跑中,中国属于后来者。经过多年的努力,中国已经跻身于国际一流的量子信息研究行列,在城域量子通信技术方 面也走在了世界前列,建设完成合肥、济南等规模化量子通信城域网,“京沪干线”大尺度光纤量子通信骨干网也即将竣工。 然而,这只是开始。“在城市范围内,通过光纤构建城域量子通信网络是最 佳方案。但要实现远距离甚至全球量子通信,仅依靠光纤量子通信技术是远远不够的。”潘建伟说。[2] 量子保密通信,能够从三个方面保障信息安全。第一, 发送者和接收者之间的信息交互是安全的,不会被窃听或盗取。 第二,“主仆”身份能够自动确认,只有主人才能够使唤“仆人”, 而其他人无法指挥“仆人”。第三,一旦发送者和接收者之间的传递口令被恶意篡改,使用者会立刻知晓,从而重新发送和接收指令。 原来,用量子通信方式传递信息,传送的是光的最小能 量单元。但这种最小的颗粒,不能再被分割,也不能复 制。即使采用目前最先进的理想单光子探测器, 在1000公里光纤中进行点对点量子通信,每300年也只能传输一个比特。 “就好比一支拥有100万人的队伍,到最后可能只剩下几个人, 花了很长时间才能抵达目的地。”这种受制于光纤,不能放大量子通信信号的问题, 导致了在远距离上信息传递效率很低,令科学家们一筹莫展。虽然通过量子中继手段,即分成若干段传输来降低每一段的损耗,用“量子接力”的方式解决这一难题,但走向实际应用还需时日。 后来,科学家意识到,真空里不会有光的损耗, 想要实现覆盖全球的广域量子保密通信,还需要借助卫星的中转。 2005年,潘建伟团队实现了13公里自由空 间量子纠缠和密钥分发实验,证明光子穿透大气层后,其量子态能够有效保持,从而验证了星地量子通信的可行性。近几年开展的一系列后续实验都为发射量子卫星奠定了技术基础。 “这样一来,通过发射卫星,去除干扰因素, 就可以实现几千公里的量子通信。”潘建伟说,有了量子卫星, 还可以在宏观距离上检验所谓的量子力学的非局域性,也就是“幽灵般的超距作用”。“看看在实验室里不断被重复检验的理论,放在太空是否还能实现。” 研发单位 量子卫星工程由中科院国家空间科学中心总负责; 中国科学技术大学负责科学目标的提出和科学应用系统的研制; 中科院上海微小卫星创新研究院抓总研制卫星系统,中科院上海技术 物理研究所联合中科大研制有效载荷分系统;中科院国家空间科学中心牵头 负责地面支撑系统研制、建设和运行;对地观测与数字地球科学中心等单位参加。 ); } } ================================================ FILE: src/containers/gong/index.js ================================================ import React, { Component, } from 'react'; import { StyleSheet, Text, View, FlatList, InteractionManager, } from 'react-native'; import HomeSelector from '../../app/selectors/home'; import * as HomeActions from '../../app/actions/home'; import { ListItem, ListParagraph, } from '../../components'; import connect from '../../app/store/connect'; const styles = StyleSheet.create({ container: { flex: 1, marginLeft: 10, }, headerButton: { borderRadius: 5, borderWidth: 3, borderColor: '#B0B0B0', backgroundColor: '#B0B0B0', margin: 10, padding: 10, }, welcome: { fontSize: 20, textAlign: 'center', }, }); @connect(HomeSelector, HomeActions) export default class Gong extends Component { static navigationOptions = { headerTitle: 'FlatList and Placeholder', }; componentWillMount() { InteractionManager.runAfterInteractions(() => { this.props.actions.fetchMovies({ ci: 1, limit: 100, offset: 0, token: 'mozi', optimus_uuid: 'mozi', }); }); } headerImageScrollView = () => { const { navigation, } = this.props; navigation.navigate('HeaderImageScrollView'); }; flatList = () => { const { home, } = this.props; return ( { this.flist = view; }} style={styles.container} initialNumToRender={8} scrollEventThrottle={16} onEndReachedThreshold={0.01} removeClippedSubviews windowSize={350} // 如果你的列表的2-3行占一屏的话,这个值应该设置450-600之前,如果四五行占一屏应该设置300-350之间 keyExtractor={item => `gong_${item.data[0].id}`} ListHeaderComponent={() => { return this.renderHeader(); }} renderItem={item => { return this.renderItem(item); }} data={home.movies} /> ); }; renderHeader = () => { return ( 自定义头部图片 & 缩放! ); }; renderItem = item => { return ; }; render() { const { home, } = this.props; let loading = true; if (!!home.movies && home.movies.length > 0) { loading = false; } setTimeout(() => { this.flist && this.flist.recordInteraction(); }, 50); return ; } } ================================================ FILE: src/containers/mo/index.js ================================================ import React, { Component, } from 'react'; import { StyleSheet, } from 'react-native'; import ScrollableTabView, { DefaultTabBar, } from 'react-native-scrollable-tab-view'; import Plug from './plug'; import Moui from './moui'; import Rule from './rule'; const activeTabColor = '#42c02e'; const defaultTabColor = "#949494"; const styles = StyleSheet.create({ underline: { height: 3, backgroundColor: '#42c02e', alignItems: 'center', }, border: { borderBottomWidth: 1, borderBottomColor: '#fcfcfc', backgroundColor: 'white', marginBottom: -0.5, }, }); export default class Mo extends Component { static navigationOptions = { headerTitle: '墨子攻城', }; render() { const { navigation, } = this.props; return ( } > ); } } ================================================ FILE: src/containers/mo/moui/index.js ================================================ import React, { Component, } from 'react'; import { StyleSheet, Text, View, } from 'react-native'; import { Toast, Loading, } from 'components'; const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#F5FCFF', }, welcome: { fontSize: 20, textAlign: 'center', margin: 10, }, }); export default class Moui extends Component { static navigationOptions = { headerTitle: '墨组件', }; showToast = (state = 'default') => { if (state == 'success') { Toast.show({ title: '恭喜您!', state: 'success', }); } else if (state == 'fail') { Toast.show({ title: '抱歉!', state: 'fail', }); } else { Toast.show({ title: '这是我的自定义Toast!', }); } } showLoading = () => { Loading.show(); setTimeout(_ => { Loading.hide(); }, 2500); } render() { return ( { this.showToast(); }} >Toase default { this.showToast('success'); }} >Toase success { this.showToast('fail'); }} >Toase fail { this.showLoading(); }} >Loading! ); } } ================================================ FILE: src/containers/mo/plug/index.js ================================================ import React, { Component, } from 'react'; import { StyleSheet, Text, View, } from 'react-native'; const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#F5FCFF', }, welcome: { fontSize: 20, textAlign: 'center', margin: 10, }, }); const apiurls = { mozi: 'https://github.com/duheng/Mozi', icons: 'https://www.jianshu.com/p/a25e4ecce60f', splash: 'https://www.jianshu.com/p/4540ac17dfd4', }; export default class Plug extends Component { static navigationOptions = { headerTitle: '墨依赖!&', }; goWeb = (gourl = 'https://www.jianshu.com/u/c971c7ffa27e') => { const { navigation, } = this.props; navigation.navigate('Web', { url: gourl, }); }; goBack = () => { const { navigation, } = this.props; navigation.navigate('Backa'); }; goTab = () => { const { navigation, } = this.props; navigation.navigate('Gong'); }; render() { return ( { this.goWeb(apiurls.splash); }} > 启动屏! { this.goBack(); }} > 返回到指定页面Demo! { this.goTab(); }} > 跳转到指定tab页面 { this.goWeb(); }} > react-navigation集成! { this.goWeb(apiurls.icons); }} > react-native-vector-icons集成! { this.goWeb(); }} > codepush集成! { this.goWeb(); }} > jpush集成! { this.goWeb(); }} > redux集成! ); } } ================================================ FILE: src/containers/mo/rule/index.js ================================================ import React, { Component, } from 'react'; import { StyleSheet, Text, View, } from 'react-native'; const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#F5FCFF', }, welcome: { fontSize: 20, textAlign: 'center', margin: 10, }, }); export default class Rule extends Component { static navigationOptions = { headerTitle: '墨规范', }; render() { return ( 墨规范! ); } } ================================================ FILE: src/containers/zi/index.js ================================================ import React, { Component, } from 'react'; import { StyleSheet, Text, View, Alert, RefreshControl, SectionList, TouchableOpacity, InteractionManager, } from 'react-native'; import { Icon, } from 'components'; import { ListItem, ListParagraph, } from '../../components'; import HomeSelector from '../../app/selectors/home'; import * as HomeActions from '../../app/actions/home'; import connect from '../../app/store/connect'; const styles = StyleSheet.create({ container: { flex: 1, overflow: 'hidden', backgroundColor: '#FFFFFF', }, sectionHead: { height: 30, paddingTop: 6, paddingLeft: 10, backgroundColor: '#F7F7F7', shadowColor: '#666666', shadowOffset: { height: 2, width: 0, }, shadowRadius: 3, shadowOpacity: 0.3, }, sectionHeadText: { fontSize: 12, color: '#666666', }, headerTitle: { display: 'flex', flexDirection: 'row', alignItems: 'center', marginRight: 'auto', marginLeft: 'auto', }, headerText: { color: '#FFFFFF', fontSize: 17, fontWeight: '500', marginRight: 4, }, }); @connect(HomeSelector, HomeActions) export default class Zi extends Component { static navigationOptions = ({ navigation, params, }) => { return { headerTitle: Alert.alert('自定头部标题')}>{ !!params && params.headerName } , headerRight: Alert.alert('自定头部右侧')}> , }; }; constructor(...args) { super(...args); this.state = { isRefreshing: false, flagApi: true, }; } componentWillMount() { this.props.navigation.setParams({ title: '墨子', }); InteractionManager.runAfterInteractions(() => { this.props.actions.fetchMovies({ ci: 1, limit: 100, offset: 0, token: 'mozi', optimus_uuid: 'mozi', }); }); } componentDidMount() { this.props.navigation.setParams({ headerName: '自定义头部', }); } onRefresh = () => { this.setState({ isRefreshing: true, }); setTimeout(() => { this.setState({ isRefreshing: false, }); }, 3000); }; goPage = (gourl = 'https://www.baidu.com/') => { this.props.navigation.navigate('Web', { onGoBack: () => this.onRefresh(), url: gourl, }); }; sectionList = () => { const { home, } = this.props; return ( { this.flist = view; }} style={styles.container} stickySectionHeadersEnabled // 安卓粘性头部需要开启这个,ios默认开启 initialNumToRender={6} scrollEventThrottle={16} onEndReachedThreshold={0.01} removeClippedSubviews windowSize={350} // 如果你的列表的2-3行占一屏的话,这个值应该设置450-600之前,如果四五行占一屏应该设置300-350之间 sections={home.movies} renderItem={item => { return this.renderItem(item); }} renderSectionHeader={item => { return this.renderHeader(item); }} keyExtractor={item => { return item.id; }} refreshControl={ } /> ); }; renderHeader = headerItem => { console.log('renderHeader---', headerItem); return ( {headerItem.section.data[0].nm} ); }; renderItem = renderItem => { const __url = 'https://www.jianshu.com/p/984ef99641f5'; return ( { this.goPage(__url); }} /> ); }; render() { const { home, } = this.props; let loading = true; if (!!home.movies && home.movies.length > 0) { loading = false; } setTimeout(() => { this.flist && this.flist.recordInteraction(); }, 50); return ( ); } } ================================================ FILE: src/root.js ================================================ /** * Author: 墨子 * GitHub: https://github.com/duheng/Mozi * Email: duheng1100@163.com */ import React, { Component, } from 'react'; import { Provider, } from 'react-redux'; import SplashScreen from 'react-native-splash-screen'; import codePush from 'react-native-code-push'; import configureStore from './app/store/configureStore'; import App from './AppNavigationState'; const store = configureStore(); @codePush({ checkFrequency: codePush.CheckFrequency.ON_APP_RESUME, installMode: codePush.InstallMode.ON_NEXT_SUSPEND, }) export default class Root extends Component { componentDidMount() { SplashScreen.hide(); // 隐藏启动屏 } render() { console.log('store----', store); return ( ); } } ================================================ FILE: src/routers/app.js ================================================ import { createBottomTabNavigator, createStackNavigator, createAppContainer, createSwitchNavigator, } from 'react-navigation'; import { mergeJSON, } from 'utils/util'; import { BottomTabNavigatorConfig, StackNavigatorConfig, } from '../config'; import * as pages from './index'; const TabNav = createBottomTabNavigator( { Mo: pages.Mo, Zi: pages.Zi, Gong: pages.Gong, Cheng: pages.Cheng, }, BottomTabNavigatorConfig({ initialRouteName: 'Mo', }), ); TabNav.navigationOptions = ({ navigation, }) => { // 设置tabBar的标题 const { routes, index, } = navigation.state; const { routeName, params, } = routes[index]; const __defaultNavigationOptions = StackNavigatorConfig({ initialRouteName: routeName, }).defaultNavigationOptions; console.log('efaultNavigationOptions######', routes[index]); const __navigationOptions = pages[routeName].navigationOptions; let targetNavigationOptions = {}; if (typeof (__navigationOptions) === 'function') { targetNavigationOptions = __navigationOptions({ navigation, params, }); } else { targetNavigationOptions = { ...__navigationOptions, }; } mergeJSON(__defaultNavigationOptions, targetNavigationOptions); return targetNavigationOptions; }; const AppStack = createStackNavigator( { Root: TabNav, Web: pages.Web, Back: pages.Back, Backa: pages.Backa, HeaderImageScrollView: pages.HeaderImageScrollView, }, StackNavigatorConfig({ initialRouteName: 'Root', }), ); export default createAppContainer(AppStack); ================================================ FILE: src/routers/index.js ================================================ import Mo from '../containers/mo'; import Zi from '../containers/zi'; import Gong from '../containers/gong'; import Cheng from '../containers/cheng'; import Web from '../containers/demo/web'; import Back from '../containers/demo/back'; import Backa from '../containers/demo/backa'; import HeaderImageScrollView from '../containers/gong/HeaderImageScrollView'; module.exports = { Mo, Zi, Gong, Cheng, Web, Back, Backa, HeaderImageScrollView, }; ================================================ FILE: tab.js ================================================ const tabBar = { inactiveTintColor: "#949494", backgroundColor: "#FFFFFF", activeTintColor: "#42c02e", list: { Mo: { icoPath: "", selectedIconPath: "", icoName: "ios-home", text: "墨", }, Zi: { icoPath: "", selectedIconPath: "", icoName: "ios-planet", text: "子", }, Gong: { icoPath: "", selectedIconPath: "", icoName: "ios-analytics", text: "攻", }, Cheng: { icoPath: "", selectedIconPath: "", icoName: "ios-contacts", text: "城", }, }, }; module.exports = { tabBar, };