Browse Source

init jmessage

wennjie 6 years ago
parent
commit
299ee21c5b
100 changed files with 524 additions and 0 deletions
  1. 5 0
      huiliaoAPPJmessage/.babelrc
  2. 6 0
      huiliaoAPPJmessage/.buckconfig
  3. 67 0
      huiliaoAPPJmessage/.flowconfig
  4. 1 0
      huiliaoAPPJmessage/.gitattributes
  5. 56 0
      huiliaoAPPJmessage/.gitignore
  6. 1 0
      huiliaoAPPJmessage/.watchmanconfig
  7. 24 0
      huiliaoAPPJmessage/App.js
  8. 65 0
      huiliaoAPPJmessage/android/app/BUCK
  9. 175 0
      huiliaoAPPJmessage/android/app/build.gradle
  10. 17 0
      huiliaoAPPJmessage/android/app/proguard-rules.pro
  11. 33 0
      huiliaoAPPJmessage/android/app/src/main/AndroidManifest.xml
  12. BIN
      huiliaoAPPJmessage/android/app/src/main/assets/归档.zip
  13. 15 0
      huiliaoAPPJmessage/android/app/src/main/java/com/huiliaoapp/MainActivity.java
  14. 59 0
      huiliaoAPPJmessage/android/app/src/main/java/com/huiliaoapp/MainApplication.java
  15. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-hdpi/node_modules_reactnavigation_src_views_assets_backicon.png
  16. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_code.png
  17. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_codebg.png
  18. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_contact_add.png
  19. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_contact_addclick.png
  20. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_contact_close.png
  21. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_contact_code.png
  22. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_contact_groupchaticon.png
  23. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_contact_newfriendicon.png
  24. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_contact_phone.png
  25. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_contact_phonecall.png
  26. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_contact_phoneclick.png
  27. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_contact_scan.png
  28. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_contact_search.png
  29. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_contact_searchbg.png
  30. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_in.png
  31. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_login_bg.png
  32. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_login_line.png
  33. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_login_lock.png
  34. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_login_lockclick.png
  35. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_login_phone.png
  36. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_login_phoneclick.png
  37. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_message_add.png
  38. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_set.png
  39. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_icon.png
  40. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_tabicon_mine.png
  41. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_tabicon_mineclick.png
  42. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_tabicon_news.png
  43. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_tabicon_newsclick.png
  44. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_tabicon_phone.png
  45. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_tabicon_phoneclick.png
  46. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/node_modules_reactnativecamerarollpicker_circlecheck.png
  47. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/node_modules_reactnavigation_src_views_assets_backicon.png
  48. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/node_modules_reactnavigation_src_views_assets_backiconmask.png
  49. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/assets_2x_return.png
  50. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_accordion_style_assets_down.png
  51. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_accordion_style_assets_up.png
  52. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_checkbox_image_checked.png
  53. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_checkbox_image_checked_disable.png
  54. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_checkbox_image_normal.png
  55. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_checkbox_image_normal_disable.png
  56. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_radio_image_checked.png
  57. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_radio_image_checked_disable.png
  58. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_style_images_arrow.png
  59. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_style_images_arrowdown.png
  60. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_style_images_arrowup.png
  61. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_style_images_check.png
  62. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_style_images_check_w.png
  63. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_style_images_cross.png
  64. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_style_images_cross_w.png
  65. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_style_images_error.png
  66. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_style_images_more.png
  67. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_style_images_more_w.png
  68. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_style_images_search.png
  69. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_toast_images_fail.png
  70. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_toast_images_offline.png
  71. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_toast_images_success.png
  72. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_reactnavigation_src_views_assets_backicon.png
  73. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_accordion_style_assets_down.png
  74. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_accordion_style_assets_up.png
  75. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_checkbox_image_checked.png
  76. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_checkbox_image_checked_disable.png
  77. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_checkbox_image_normal.png
  78. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_checkbox_image_normal_disable.png
  79. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_radio_image_checked.png
  80. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_radio_image_checked_disable.png
  81. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_style_images_arrow.png
  82. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_style_images_arrowdown.png
  83. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_style_images_arrowup.png
  84. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_style_images_check.png
  85. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_style_images_check_w.png
  86. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_style_images_cross.png
  87. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_style_images_cross_w.png
  88. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_style_images_error.png
  89. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_style_images_more.png
  90. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_style_images_more_w.png
  91. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_style_images_search.png
  92. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_toast_images_fail.png
  93. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_toast_images_offline.png
  94. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_toast_images_success.png
  95. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_reactnavigation_src_views_assets_backicon.png
  96. BIN
      huiliaoAPPJmessage/android/app/src/main/res/drawable-xxxhdpi/node_modules_reactnavigation_src_views_assets_backicon.png
  97. BIN
      huiliaoAPPJmessage/android/app/src/main/res/ic_launcher.png
  98. BIN
      huiliaoAPPJmessage/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
  99. BIN
      huiliaoAPPJmessage/android/app/src/main/res/mipmap-ldpi/ic_launcher.png
  100. 0 0
      huiliaoAPPJmessage/android/app/src/main/res/mipmap-mdpi/ic_launcher.png

+ 5 - 0
huiliaoAPPJmessage/.babelrc

@@ -0,0 +1,5 @@
+{
+  "presets": [
+    "react-native"
+  ]
+}

+ 6 - 0
huiliaoAPPJmessage/.buckconfig

@@ -0,0 +1,6 @@
+
+[android]
+  target = Google Inc.:Google APIs:23
+
+[maven_repositories]
+  central = https://repo1.maven.org/maven2

+ 67 - 0
huiliaoAPPJmessage/.flowconfig

@@ -0,0 +1,67 @@
+[ignore]
+; We fork some components by platform
+.*/*[.]android.js
+
+; Ignore "BUCK" generated dirs
+<PROJECT_ROOT>/\.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/.*
+
+; Ignore metro
+.*/node_modules/metro/.*
+
+[include]
+
+[libs]
+node_modules/react-native/Libraries/react-native/react-native-interface.js
+node_modules/react-native/flow/
+node_modules/react-native/flow-github/
+
+[options]
+emoji=true
+
+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=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*
+module.system.haste.paths.whitelist=<PROJECT_ROOT>/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'
+
+module.file_ext=.js
+module.file_ext=.jsx
+module.file_ext=.json
+module.file_ext=.native.js
+
+suppress_type=$FlowIssue
+suppress_type=$FlowFixMe
+suppress_type=$FlowFixMeProps
+suppress_type=$FlowFixMeState
+
+suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
+suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
+suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
+suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
+
+[version]
+^0.75.0

+ 1 - 0
huiliaoAPPJmessage/.gitattributes

@@ -0,0 +1 @@
+*.pbxproj -text

+ 56 - 0
huiliaoAPPJmessage/.gitignore

@@ -0,0 +1,56 @@
+# 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
+
+# Bundle artifact
+*.jsbundle

+ 1 - 0
huiliaoAPPJmessage/.watchmanconfig

@@ -0,0 +1 @@
+{}

+ 24 - 0
huiliaoAPPJmessage/App.js

@@ -0,0 +1,24 @@
+import React from 'react';
+import { AppRegistry } from 'react-native';
+import { Provider } from 'react-redux';
+import { createStore, applyMiddleware } from 'redux';
+
+import AppReducer from './src/reducers';
+import { AppNavigator, middleware } from './src/navigators/AppNavigator';
+
+const store = createStore(AppReducer, applyMiddleware(middleware));
+
+class HuiLiaoApp extends React.Component {
+ 
+  render() {
+    return (
+      <Provider store={store}>
+        <AppNavigator />
+      </Provider>
+    );
+  }
+}
+
+AppRegistry.registerComponent('HuiLiaoApp', () => HuiLiaoApp);
+
+export default HuiLiaoApp;

+ 65 - 0
huiliaoAPPJmessage/android/app/BUCK

@@ -0,0 +1,65 @@
+# 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.huiliaoapp",
+)
+
+android_resource(
+    name = "res",
+    package = "com.huiliaoapp",
+    res = "src/main/res",
+)
+
+android_binary(
+    name = "app",
+    keystore = "//android/keystores:debug",
+    manifest = "src/main/AndroidManifest.xml",
+    package_type = "debug",
+    deps = [
+        ":app-code",
+    ],
+)

+ 175 - 0
huiliaoAPPJmessage/android/app/build.gradle

@@ -0,0 +1,175 @@
+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"
+
+/**
+ * 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 {
+    signingConfigs {
+        reless {
+            keyAlias '/Users/wenjie/Desktop/'
+            keyPassword '871010'
+        }
+    }
+    lintOptions {
+        checkReleaseBuilds false
+        abortOnError false
+    }
+    compileSdkVersion 27
+    buildToolsVersion "27.0.3"
+    defaultConfig {
+        multiDexEnabled true
+        applicationId "com.huiliaoapp"
+        minSdkVersion rootProject.ext.minSdkVersion
+        targetSdkVersion 27
+        vectorDrawables.useSupportLibrary = true
+        versionCode 1
+        versionName "1.0"
+        ndk {
+            abiFilters "armeabi-v7a", "x86"
+        }
+    }
+    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"
+            minifyEnabled false
+        }
+    }
+    // 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 {
+    compile project(':react-native-push-notification')
+    compile project(':react-native-sound')
+    compile project(':react-native-audio')
+    implementation(project(':react-native-camera')) {
+        exclude group: "com.google.android.gms"
+    }
+    implementation('com.google.android.gms:play-services-vision:10.2.0') {
+        force = true;
+    }
+    implementation project(':react-native-contacts-wrapper')
+    implementation project(':react-native-contacts-picker')
+    implementation project(':react-native-image-crop-picker')
+    implementation fileTree(include: ['*.jar'], dir: 'libs')
+    implementation 'com.android.support:appcompat-v7:26.1.0'
+    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'
+}

+ 17 - 0
huiliaoAPPJmessage/android/app/proguard-rules.pro

@@ -0,0 +1,17 @@
+# 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 *;
+#}

+ 33 - 0
huiliaoAPPJmessage/android/app/src/main/AndroidManifest.xml

@@ -0,0 +1,33 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    package="com.huiliaoapp">
+
+    <uses-permission android:name="android.permission.INTERNET" />
+    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
+    <uses-permission android:name="android.permission.CAMERA"/>
+    <uses-permission android:name="android.permission.READ_CONTACTS" />
+    <uses-permission android:name="android.permission.WRITE_CONTACTS" />
+    <uses-permission android:name="android.permission.GET_ACCOUNTS" />
+    <uses-permission android:name="android.permission.RECORD_AUDIO"/>
+    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
+    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
+
+    <application
+      android:name=".MainApplication"
+      android:label="@string/app_name"
+      android:icon="@mipmap/ic_launcher"
+      android:allowBackup="false"
+      android:theme="@style/AppTheme">
+      <activity
+        android:name=".MainActivity"
+        android:label="@string/app_name"
+        android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
+        android:windowSoftInputMode="adjustResize">
+        <intent-filter>
+            <action android:name="android.intent.action.MAIN" />
+            <category android:name="android.intent.category.LAUNCHER" />
+        </intent-filter>
+      </activity>
+      <activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
+    </application>
+
+</manifest>

BIN
huiliaoAPPJmessage/android/app/src/main/assets/归档.zip


+ 15 - 0
huiliaoAPPJmessage/android/app/src/main/java/com/huiliaoapp/MainActivity.java

@@ -0,0 +1,15 @@
+package com.huiliaoapp;
+
+import com.facebook.react.ReactActivity;
+
+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 "huiliaoAPP";
+    }
+}

+ 59 - 0
huiliaoAPPJmessage/android/app/src/main/java/com/huiliaoapp/MainApplication.java

@@ -0,0 +1,59 @@
+package com.huiliaoapp;
+
+import android.app.Application;
+
+import com.facebook.react.ReactApplication;
+import com.dieam.reactnativepushnotification.ReactNativePushNotificationPackage;
+import com.zmxv.RNSound.RNSoundPackage;
+import com.rnim.rn.audio.ReactNativeAudioPackage;
+import org.reactnative.camera.RNCameraPackage;
+import com.lynxit.contactswrapper.ContactsWrapperPackage;
+import com.xb.contactpicker.ReactNativeContacts;
+import com.reactnative.ivpusic.imagepicker.PickerPackage;
+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 {
+
+  private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
+    @Override
+    public boolean getUseDeveloperSupport() {
+      return BuildConfig.DEBUG;
+    }
+
+    @Override
+    protected List<ReactPackage> getPackages() {
+      return Arrays.<ReactPackage>asList(
+          new MainReactPackage(),
+            new ReactNativePushNotificationPackage(),
+            new RNSoundPackage(),
+            new ReactNativeAudioPackage(),
+            new RNCameraPackage(),
+            new ContactsWrapperPackage(),
+            new ReactNativeContacts(),
+            new PickerPackage()
+      );
+    }
+
+    @Override
+    protected String getJSMainModuleName() {
+      return "index";
+    }
+  };
+
+  @Override
+  public ReactNativeHost getReactNativeHost() {
+    return mReactNativeHost;
+  }
+
+  @Override
+  public void onCreate() {
+    super.onCreate();
+    SoLoader.init(this, /* native exopackage */ false);
+  }
+}

BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-hdpi/node_modules_reactnavigation_src_views_assets_backicon.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_code.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_codebg.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_contact_add.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_contact_addclick.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_contact_close.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_contact_code.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_contact_groupchaticon.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_contact_newfriendicon.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_contact_phone.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_contact_phonecall.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_contact_phoneclick.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_contact_scan.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_contact_search.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_contact_searchbg.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_in.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_login_bg.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_login_line.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_login_lock.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_login_lockclick.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_login_phone.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_login_phoneclick.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_message_add.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_2x_set.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_icon.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_tabicon_mine.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_tabicon_mineclick.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_tabicon_news.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_tabicon_newsclick.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_tabicon_phone.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/assets_tabicon_phoneclick.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/node_modules_reactnativecamerarollpicker_circlecheck.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/node_modules_reactnavigation_src_views_assets_backicon.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-mdpi/node_modules_reactnavigation_src_views_assets_backiconmask.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/assets_2x_return.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_accordion_style_assets_down.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_accordion_style_assets_up.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_checkbox_image_checked.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_checkbox_image_checked_disable.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_checkbox_image_normal.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_checkbox_image_normal_disable.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_radio_image_checked.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_radio_image_checked_disable.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_style_images_arrow.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_style_images_arrowdown.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_style_images_arrowup.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_style_images_check.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_style_images_check_w.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_style_images_cross.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_style_images_cross_w.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_style_images_error.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_style_images_more.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_style_images_more_w.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_style_images_search.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_toast_images_fail.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_toast_images_offline.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_antdmobilern_lib_toast_images_success.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xhdpi/node_modules_reactnavigation_src_views_assets_backicon.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_accordion_style_assets_down.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_accordion_style_assets_up.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_checkbox_image_checked.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_checkbox_image_checked_disable.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_checkbox_image_normal.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_checkbox_image_normal_disable.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_radio_image_checked.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_radio_image_checked_disable.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_style_images_arrow.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_style_images_arrowdown.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_style_images_arrowup.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_style_images_check.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_style_images_check_w.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_style_images_cross.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_style_images_cross_w.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_style_images_error.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_style_images_more.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_style_images_more_w.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_style_images_search.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_toast_images_fail.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_toast_images_offline.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_antdmobilern_lib_toast_images_success.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xxhdpi/node_modules_reactnavigation_src_views_assets_backicon.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/drawable-xxxhdpi/node_modules_reactnavigation_src_views_assets_backicon.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/ic_launcher.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/mipmap-hdpi/ic_launcher.png


BIN
huiliaoAPPJmessage/android/app/src/main/res/mipmap-ldpi/ic_launcher.png


+ 0 - 0
huiliaoAPPJmessage/android/app/src/main/res/mipmap-mdpi/ic_launcher.png


Some files were not shown because too many files changed in this diff