Răsfoiți Sursa

update app.json

wudebin 5 luni în urmă
părinte
comite
b7a4f82086

+ 2 - 0
Strides-SPAPP/.bundle/config

@@ -0,0 +1,2 @@
+BUNDLE_PATH: "vendor/bundle"
+BUNDLE_FORCE_RUBY_PLATFORM: 1

+ 42 - 0
Strides-SPAPP/.eslintrc.js

@@ -0,0 +1,42 @@
+module.exports = {
+  root: true,
+  extends: '@react-native',
+  rules: {
+    // 关闭分号要求
+    semi: 'off',
+    // 关闭引号风格检查
+    quotes: 'off',
+    // 关闭逗号风格检查
+    'comma-dangle': 'off',
+    // 关闭未定义变量检查(全局变量)
+    'no-undef': 'off',
+    // 关闭未使用变量检查
+    'no-unused-vars': 'warn',
+    // 关闭 == 和 === 强制检查
+    eqeqeq: 'off',
+    // 关闭空组件自闭合检查
+    'react/self-closing-comp': 'off',
+    // 关闭 React Hooks 依赖检查
+    'react-hooks/exhaustive-deps': 'warn',
+    // 关闭字符串中花括号空格检查
+    'react/jsx-curly-spacing': 'off',
+    // 关闭 JSX 缩进检查
+    'react/jsx-indent': 'off',
+    // 关闭操作符空格检查
+    'space-infix-ops': 'off',
+    // 关闭关键字空格检查
+    'keyword-spacing': 'off',
+    // 关闭对象花括号空格检查
+    'object-curly-spacing': 'off',
+    // 关闭数组括号空格检查
+    'array-bracket-spacing': 'off',
+    // 关闭尾随空格检查
+    'no-trailing-spaces': 'off',
+    // 关闭多余空行检查
+    'no-multiple-empty-lines': 'off',
+    // 关闭 console 检查
+    'no-console': 'off',
+    // 关闭 Prettier 检查
+    'prettier/prettier': 'off',
+  },
+};

+ 8 - 0
Strides-SPAPP/.prettierrc.js

@@ -0,0 +1,8 @@
+module.exports = {
+  bracketSpacing: false,
+  jsxBracketSameLine: true,
+  singleQuote: true,
+  trailingComma: 'all',
+  arrowParens: 'avoid',
+  endOfLine: false,
+};

+ 1 - 0
Strides-SPAPP/.watchmanconfig

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

+ 9 - 0
Strides-SPAPP/Gemfile

@@ -0,0 +1,9 @@
+source 'https://rubygems.org'
+# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
+ruby ">= 2.6.10"
+
+# Exclude problematic versions of cocoapods and activesupport that causes build failures.
+gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
+gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
+gem 'xcodeproj', '< 1.26.0'
+gem 'concurrent-ruby', '< 1.3.4'

+ 173 - 0
Strides-SPAPP/README.md

@@ -0,0 +1,173 @@
+# ChargEco - React Native
+Application ID: com.strides.chargeco
+
+## 环境搭建
+`npm install -g yarn`  
+`yarn global add react-native-cli`  
+
+## 初始化
+`npx react-native init Strides`
+
+## 安装库
+`yarn add @react-native-community/art`  
+`yarn add @react-native-community/cameraroll`  
+`yarn add @react-native-async-storage/async-storage`  
+`yarn add @react-native-community/checkbox`  
+`yarn add @react-native-community/geolocation`  
+`yarn add @react-native-masked-view/masked-view`  
+`yarn add @react-native-community/push-notification-ios`  
+`yarn add @react-native-firebase/app`  
+`yarn add @react-native-firebase/messaging`  
+`yarn add @react-native-picker/picker`  
+`yarn add @react-navigation/drawer`  
+`yarn add @react-navigation/native`  
+`yarn add @react-navigation/stack`   
+
+`yarn add axios`  
+`yarn add react 17.0.1`  
+`yarn add react-native 0.64.0`  
+`yarn add react-native-camera`  
+`//yarn add react-native-cluster-map`  
+`yarn add react-native-code-push@6.4.0`
+`yarn add react-native-device-info`  
+`yarn add react-native-gesture-handler`  
+`yarn add react-native-gradients`  
+`yarn add react-native-linear-gradient`  
+`yarn add react-native-i18n`
+`yarn add react-native-image-crop-picker`  
+`//yarn add react-native-image-picker`  
+`yarn add react-native-map-clustering`  
+`yarn add react-native-map-link`  
+`yarn add react-native-maps`  
+`yarn add react-native-modal`  
+`yarn add react-native-permissions`  
+`yarn add react-native-progress`  
+`yarn add react-native-push-notification`  
+`yarn add react-native-qrcode-scanner`  
+`yarn add react-native-reanimated`   
+`yarn add react-native-reanimated-skeleton`  
+`yarn add react-native-root-siblings`  
+`yarn add react-native-root-toast`  
+`yarn add react-native-safe-area-context`  
+`yarn add react-native-screens`  
+`yarn add react-native-share`  
+`yarn add react-native-svg`  
+`yarn add react-native-vector-icons`  
+`yarn add react-native-view-shot`  
+`yarn add react-native-webview`  
+`yarn add victory-native`  
+
+## 运行(快捷命令)
+>Debug Android (yarn android)  
+`react-native run-android`  
+
+>Debug iOS (yarn ios)  
+`react-native run-ios`  
+
+>Start Metro Server (yarn start)  
+`react-native start`  
+
+## 测试(快捷命令)
+>Test Release (yarn release)  
+`npx react-native run-android --variant=release`
+
+>Test jest (yarn test)  
+`npx jest`
+
+>Check ESLint (yarn lint)  
+`npx eslint .`
+
+## 清理(快捷命令)
+>Reset Caches (yarn reset)  
+`react-native start --reset-cache`
+
+>Clean Project (yarn clean)   
+`cd android & ./gradlew clean`
+
+## 打包(快捷命令)
+>Build AAB for Android (yarn bundle)  
+`cd android & ./gradlew bundleRelease`
+
+>Build APK (yarn apk)  
+`cd android & ./gradlew assembleRelease`
+
+>Build JS to Android (yarn build:android)  
+`react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/`
+
+>Build JS to iOS (yarn build:ios)  
+`react-native bundle --platform ios --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/`
+
+----------
+
+## 文档
+[React Native中文文档](https://reactnative.cn)  
+[导航库-React Navigation](https://reactnavigation.org)  
+[动画库-Reanimated](https://docs.swmansion.com/react-native-reanimated/docs/)   
+[矢量图标集](https://oblador.github.io/react-native-vector-icons/)  
+[React Native常用库查询](https://reactnative.directory/)  
+[React Native教程集合](https://github.com/reactnativecn/react-native-guide)  
+[React Native Firebase](https://rnfirebase.io/)  
+[骨架屏 Skeleton](https://github.com/marcuzgabriel/react-native-reanimated-skeleton)  
+
+## Library Used
+[地图库](https://github.com/react-native-maps/react-native-maps)  
+[定位服务](https://github.com/react-native-geolocation/react-native-geolocation)   
+[地图聚合ClusterMap](https://github.com/codempireio/react-native-cluster-map)   
+[地图聚合Clustering](https://github.com/venits/react-native-map-clustering)   
+[地图聚合Clustered](https://github.com/novalabio/react-native-maps-super-cluster)  
+[矢量图标库](https://github.com/oblador/react-native-vector-icons)  
+[Modal弹窗](https://github.com/jacklam718/react-native-modals)   
+[颜色渐变](https://github.com/FriendsOfReact/react-native-gradients)  
+[Camera相机](https://github.com/react-native-camera)   
+[二维码扫描](https://github.com/moaazsidat/react-native-qrcode-scanner)   
+[权限处理](https://github.com/zoontek/react-native-permissions)   
+[下拉选择](https://github.com/react-native-picker/picker)   
+[多选框](https://github.com/react-native-checkbox/react-native-checkbox)   
+[Toast消息提示](https://github.com/magicismight/react-native-root-toast)   
+[react-native-svg](https://github.com/react-native-svg/react-native-svg)   
+[react-native-progress](https://github.com/oblador/react-native-progress)  
+[react-native-screens](https://github.com/software-mansion/react-native-screens)  
+[react-native-root-siblings](https://github.com/magicismight/react-native-root-siblings)  
+[React Native Image Picker](https://github.com/react-native-image-picker/react-native-image-picker)  
+[React Native Image Crop Picker](https://github.com/ivpusic/react-native-image-crop-picker)  
+[Victory Native](https://formidable.com/open-source/victory/docs/native/)  
+[Push NOtification](https://github.com/zo0r/react-native-push-notification)  
+[push-notification-ios](https://github.com/react-native-push-notification-ios/push-notification-ios)  
+[react-native-view-shot](https://github.com/gre/react-native-view-shot)  
+[Cameraroll](https://github.com/react-native-cameraroll/react-native-cameraroll)  
+[React Native Share](https://react-native-share.github.io/react-native-share/)  
+[RNWebView](https://github.com/react-native-webview/react-native-webview)  
+[react-native-device-info](https://github.com/react-native-device-info/react-native-device-info)  
+[微软热更新react-native-code-push](https://learn.microsoft.com/zh-cn/appcenter/distribution/codepush/)  
+[国际化react-native-i18n](https://github.com/AlexanderZaytsev/react-native-i18n)  
+
+## 文章
+https://blog.csdn.net/first_helloword/article/details/109903486  
+https://blog.csdn.net/LeoStarry2014/article/details/101178607  
+https://blog.csdn.net/daniel1227/article/details/95972996  
+https://blog.csdn.net/SpicyBoiledFish/article/details/70237681  
+https://www.jianshu.com/p/78fd5694446a  
+https://blog.csdn.net/qq_28483283/article/details/108239912  
+https://stackoverflow.com/questions/36685372/how-to-zoom-in-out-in-react-native-map  
+https://stackoverflow.com/questions/57227291/victory-native-events-props-not-working-in-react-native-event-not-firing-in/57723808  
+https://www.jianshu.com/p/0a51624dee2f  
+https://www.jianshu.com/p/8f75eb58b030  
+https://www.cnblogs.com/sundaysgarden/p/10357051.html  
+
+## 踩坑记
+[疑难杂症之module map file not found](https://blog.csdn.net/weixin_43883776/article/details/106793263)  
+
+## iOS16专题
+https://github.com/facebook/react-native/issues/32496  
+https://stackoverflow.com/questions/71597475/symbols-not-found-for-architecture-arm64-xcode  
+
+## RN 0.72踩坑记
+https://stackoverflow.com/questions/71702392/viewproptypes-will-be-removed-from-react-native-migrate-to-viewproptypes-export  
+https://stackoverflow.com/questions/55664673/require-cycles-are-allowed-but-can-result-in-uninitialized-values-consider-ref  
+https://www.jianshu.com/p/dd7c5d002303  
+https://stackoverflow.com/questions/75772965/error-react-native-permissions-nativemodule-rnpermissions-is-null   
+
+## iOS18踩坑记
+https://stackoverflow.com/questions/78120545/failed-to-build-ios-project-we-ran-xcodebuild-command-but-it-exited-with-erro   
+https://stackoverflow.com/questions/78993520/invalid-executable-the-executable-appname-app-frameworks-hermes-framework-herm   
+https://blog.csdn.net/galoiszhou/article/details/144554658   

+ 62 - 0
Strides-SPAPP/app.json

@@ -0,0 +1,62 @@
+{
+  "name": "Strides",
+  "displayName": "ChargEco",
+  "versionCode": 680,
+  "versionName": "V4.0.0",
+  "product": false,
+  "debug": true,
+  "isWhitelabel": true,
+  "isLumiWhitelabel": false,
+  "enableVAPTSecure": false,
+  "modules": {
+    "i18n": false,
+    "bookmarks": true,
+    "apply_phv": false,
+    "membership": true,
+    "nationally": false,
+    "topup_payment_type": false,
+    "support": {
+      "phone": "+6564775355",
+      "whatsapp": "https://wa.me/6597285916",
+      "fdEmail": "feedback@chargeco.global"
+    }
+  },
+  "storeUrl": {
+    "android": "market://details?id=com.strides.chargeco",
+    "ios": "itms-appss://apps.apple.com/app/id1664718768",
+    "refundUrl": "https://chargeco.global/refund-policy",
+    "termsUseUrl": "https://chargeco.global/terms-of-use",
+    "privacyPolicyUrl": "https://chargeco.global/privacy-policy"
+  },
+  "company": "Strides YTL Pte. Ltd.",
+  "v3": {
+    "drawer": false,
+    "overview": true,
+    "vouchers": false
+  },
+  "v4": {
+    "drawer": true,
+    "wallet": true
+  },
+  "charge": {
+    "version": 3,
+    "newSummary": false,
+    "anzPayment": false,
+    "paymentMethod": true
+  },
+  "vehicle": {
+    "enable": false,
+    "newVersionPage": false,
+    "showLicencePlate": true,
+    "showRequiredAsterisk": false,
+    "requireConnectorType": true,
+    "requireImageUpload": true,
+    "vehicleInRegisterPage": false
+  },
+  "notifications": {
+    "enable": true,
+    "showArticle": true,
+    "showCampaigns": true,
+    "description": "如果showCampaigns为true,需确保showArticle也为true,如果showArticle为false,则只显示Alert"
+  }
+}

+ 1 - 1
Strides-SPAPP/package.json

@@ -52,7 +52,7 @@
     "react": "18.3.1",
     "react-native": "0.77.0",
     "react-native-device-info": "14.0.4",
-    "react-native-gesture-handler": "^2.22.0",
+    "react-native-gesture-handler": "2.22.0",
     "react-native-i18n": "https://gitee.com/vbes/react-native-i18n.git",
     "react-native-image-crop-picker": "0.41.6",
     "react-native-linear-gradient": "2.8.3",