lv 1 vecka sedan
förälder
incheckning
1db9aaceaa
4 ändrade filer med 36 tillägg och 46 borttagningar
  1. 31 41
      README.md
  2. 2 2
      airpush.sh
  3. 1 1
      app.json
  4. 2 2
      src/config.json

+ 31 - 41
README.md

@@ -1,56 +1,46 @@
-# Welcome to your Expo app 👋
+# 客户端
+# 基于Expo app 👋
+ [Expo](https://expo.dev) project created with [`create-expo-app`](https://www.npmjs.com/package/create-expo-app).
 
-This is an [Expo](https://expo.dev) project created with [`create-expo-app`](https://www.npmjs.com/package/create-expo-app).
-
-## Get started
-
-1. Install dependencies
+## 开始
 
+1. 安装依赖
    ```bash
-   npm install
+   pnpm install
    ```
 
-2. Start the app
+2. 运行
 
    ```bash
-   npx expo start
+   pnpm android / ios ...
    ```
 
-In the output, you'll find options to open the app in a
-
-- [development build](https://docs.expo.dev/develop/development-builds/introduction/)
-- [Android emulator](https://docs.expo.dev/workflow/android-studio-emulator/)
-- [iOS simulator](https://docs.expo.dev/workflow/ios-simulator/)
-- [Expo Go](https://expo.dev/go), a limited sandbox for trying out app development with Expo
 
-You can start developing by editing the files inside the **app** directory. This project uses [file-based routing](https://docs.expo.dev/router/introduction).
+## 相关配置
+1. app 配置
+/src/config.json
+···json
 
-## Get a fresh project
-
-When you're ready, run:
-
-```bash
-npm run reset-project
+{
+    "api": {
+        "url": "https://api.com/api/v1/", // api 地址
+        "timeout": 15000
+    },
+    "site": "https://xxx.com/",  // 官网地址 强更/隐私协议等
+    "jsVersion": "1"
+}
 ```
 
-This command will move the starter code to the **app-example** directory and create a blank **app** directory where you can start developing.
-
-### Other setup steps
-
-- To set up ESLint for linting, run `npx expo lint`, or follow our guide on ["Using ESLint and Prettier"](https://docs.expo.dev/guides/using-eslint/)
-- If you'd like to set up unit testing, follow our guide on ["Unit Testing with Jest"](https://docs.expo.dev/develop/unit-testing/)
-- Learn more about the TypeScript setup in this template in our guide on ["Using TypeScript"](https://docs.expo.dev/guides/typescript/)
-
-## Learn more
-
-To learn more about developing your project with Expo, look at the following resources:
-
-- [Expo documentation](https://docs.expo.dev/): Learn fundamentals, or go into advanced topics with our [guides](https://docs.expo.dev/guides).
-- [Learn Expo tutorial](https://docs.expo.dev/tutorial/introduction/): Follow a step-by-step tutorial where you'll create a project that runs on Android, iOS, and the web.
-
-## Join the community
+2. 热更
+/app.json
+```json
+ "updates": {
+      "enabled": true,
+      "checkAutomatically": "NEVER",
+      "url": "https://updates-loan.xxx.com/api/manifest", // 热更地址(使用第三方)
+      ...
+```
 
-Join our community of developers creating universal apps.
 
-- [Expo on GitHub](https://github.com/expo/expo): View our open source platform and contribute.
-- [Discord community](https://chat.expo.dev): Chat with Expo users and ask questions.
+## 热跟推送
+airpush.sh   (请先修改serverHost为热根服务器)

+ 2 - 2
airpush.sh

@@ -12,8 +12,8 @@ commitMessage=$(git log -1 --pretty=%B)
 
 # Assign arguments to variables
 runtimeVersion=$1
-serverHost="https://updates-loan.ewaga.com"
-uploadKey="accdcdc"
+serverHost="https://xxx.com"
+uploadKey="xxxxx"
 
 # Generate a timestamp for the output folder
 timestamp=$(date -u +%Y%m%d%H%M%S)

+ 1 - 1
app.json

@@ -81,7 +81,7 @@
     "updates": {
       "enabled": true,
       "checkAutomatically": "NEVER",
-      "url": "https://updates-loan.ewaga.com/api/manifest",
+      "url": "https://updates-loan.xxx.com/api/manifest",
       "fallbackToCacheTimeout": 30000,
       "codeSigningCertificate": "./code-signing/certificate.pem",
       "codeSigningMetadata": {

+ 2 - 2
src/config.json

@@ -1,9 +1,9 @@
 
 {
     "api": {
-        "url": "https://loan.ewaga.com/api/v1/",
+        "url": "https://api.com/api/v1/",
         "timeout": 15000
     },
-    "site": "https://loan.ewaga.com/",
+    "site": "https://xxx.com/",
     "jsVersion": "1"
 }