Browse Source

fix: 更新readme & 版本號 & 圖示

anxgang 1 year ago
parent
commit
f971fa88fd
59 changed files with 62 additions and 10663 deletions
  1. 43 4
      README.md
  2. BIN
      assets-src/apple-touch-icon.png
  3. BIN
      assets-src/cordova-android-icon.png
  4. BIN
      assets-src/cordova-ios-icon.png
  5. BIN
      assets-src/cordova-splash-screen.png
  6. BIN
      assets-src/web-icon.png
  7. 2 2
      cordova/config.xml
  8. 1 1
      cordova/package-lock.json
  9. 3 3
      cordova/package.json
  10. BIN
      cordova/res/icon/android/mipmap-hdpi/ic_launcher.png
  11. BIN
      cordova/res/icon/android/mipmap-ldpi/ic_launcher.png
  12. BIN
      cordova/res/icon/android/mipmap-mdpi/ic_launcher.png
  13. BIN
      cordova/res/icon/android/mipmap-xhdpi/ic_launcher.png
  14. BIN
      cordova/res/icon/android/mipmap-xxhdpi/ic_launcher.png
  15. BIN
      cordova/res/icon/android/mipmap-xxxhdpi/ic_launcher.png
  16. BIN
      cordova/res/icon/android/playstore-icon.png
  17. BIN
      cordova/res/icon/ios/icon-20x20@1x.png
  18. BIN
      cordova/res/icon/ios/icon-20x20@2x.png
  19. BIN
      cordova/res/icon/ios/icon-20x20@3x.png
  20. BIN
      cordova/res/icon/ios/icon-29x29@1x.png
  21. BIN
      cordova/res/icon/ios/icon-29x29@2x.png
  22. BIN
      cordova/res/icon/ios/icon-29x29@3x.png
  23. BIN
      cordova/res/icon/ios/icon-40x40@1x.png
  24. BIN
      cordova/res/icon/ios/icon-40x40@2x.png
  25. BIN
      cordova/res/icon/ios/icon-40x40@3x.png
  26. BIN
      cordova/res/icon/ios/icon-50x50@1x.png
  27. BIN
      cordova/res/icon/ios/icon-50x50@2x.png
  28. BIN
      cordova/res/icon/ios/icon-512x512@1x.png
  29. BIN
      cordova/res/icon/ios/icon-512x512@2x.png
  30. BIN
      cordova/res/icon/ios/icon-57x57@1x.png
  31. BIN
      cordova/res/icon/ios/icon-57x57@2x.png
  32. BIN
      cordova/res/icon/ios/icon-60x60@1x.png
  33. BIN
      cordova/res/icon/ios/icon-60x60@2x.png
  34. BIN
      cordova/res/icon/ios/icon-60x60@3x.png
  35. BIN
      cordova/res/icon/ios/icon-72x72@1x.png
  36. BIN
      cordova/res/icon/ios/icon-72x72@2x.png
  37. BIN
      cordova/res/icon/ios/icon-76x76@1x.png
  38. BIN
      cordova/res/icon/ios/icon-76x76@2x.png
  39. BIN
      cordova/res/icon/ios/icon-76x76@3x.png
  40. BIN
      cordova/res/icon/ios/icon-83.5x83.5@2x.png
  41. BIN
      cordova/res/screen/android/drawable-hdpi/screen.png
  42. BIN
      cordova/res/screen/android/drawable-ldpi/screen.png
  43. BIN
      cordova/res/screen/android/drawable-mdpi/screen.png
  44. BIN
      cordova/res/screen/android/drawable-xhdpi/screen.png
  45. BIN
      cordova/res/screen/android/drawable-xxhdpi/screen.png
  46. BIN
      cordova/res/screen/android/drawable-xxxhdpi/screen.png
  47. BIN
      cordova/res/screen/ios/Default@2x~universal~anyany.png
  48. 0 10642
      package-lock.json
  49. 7 5
      package.json
  50. 5 5
      src/components/app.vue
  51. 1 1
      src/index.html
  52. BIN
      src/static/icons/128x128.png
  53. BIN
      src/static/icons/144x144.png
  54. BIN
      src/static/icons/152x152.png
  55. BIN
      src/static/icons/192x192.png
  56. BIN
      src/static/icons/256x256.png
  57. BIN
      src/static/icons/512x512.png
  58. BIN
      src/static/icons/apple-touch-icon.png
  59. BIN
      src/static/icons/favicon.png

+ 43 - 4
README.md

@@ -1,4 +1,4 @@
-# test
+# kixScannerPro
 
 ## Framework7 CLI Options
 
@@ -6,12 +6,12 @@ Framework7 app created with following options:
 
 ```
 {
-  "cwd": "/Users/kennyname/Documents/Documents/projects/cordova/test",
+  "cwd": "/Users/kennyname/Documents/Documents/projects/cordova/kixScannerPro",
   "type": [
     "cordova",
     "web"
   ],
-  "name": "test",
+  "name": "kixScannerPro",
   "framework": "vue",
   "template": "tabs",
   "bundler": "webpack",
@@ -31,7 +31,7 @@ Framework7 app created with following options:
     "preserveAssetsPaths": false,
     "inlineAssets": true
   },
-  "pkg": "io.tranyi.test",
+  "pkg": "io.tranyi.kixScannerPro",
   "cordova": {
     "folder": "cordova",
     "platforms": [
@@ -85,6 +85,45 @@ Or launch UI where you will be able to change icons and splash screens:
 framework7 generate-assets --ui
 ```
 
+## 開發說明
+
+```bash
+$ yarn 
+$ yarn start # 網頁瀏覽
+$ yarn demo # 若要測試原生的東西,如 barcode 掃描,可由這個指令測試
+```
+
+## 安裝方式 
+
+#### iOS
+
+#### Android 
+
+1. 安裝 java SDK
+  - [](https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
+2. 安裝 Android Studio
+  - [](https://developer.android.com/studio#downloads)
+  - 相關的環境變數也要確認沒問題
+3. 手機先成為開發者模式
+  - 『關於手機』 > 『系統版本號』多點幾次 > 開啟開發者模式
+4. 手機先與電腦連線,並開啟相關指令
+  - 至『開發者選項』
+    - 勾選『開啟開發人員選項』
+    - 勾選『USB偵錯』
+    - 勾選『USB安裝』
+    - 勾選『USB試調』(小米才有)
+5. 至 terminal 輸入指令,確認手機有連接
+  - adb devices -l
+  ```bash 
+  * daemon not running; starting now at tcp:5037
+  * daemon started successfully
+  List of devices attached
+  92819f16               device usb:336592896X product:sagit model:MI_6 device:sagit transport_id:1
+  ```
+5. 輸入 `framework7 cordova platform add android` 新增 Cordova 的 Android 輸出目錄(首次建立需要,之後可跳過)
+6. 輸入 `yarn run-cordova-android-dev` 會 build 專案並將 apk 自動安裝至手機
+
+
 ## Documentation & Resources
 
 * [Framework7 Core Documentation](https://framework7.io/docs/)

BIN
assets-src/apple-touch-icon.png


BIN
assets-src/cordova-android-icon.png


BIN
assets-src/cordova-ios-icon.png


BIN
assets-src/cordova-splash-screen.png


BIN
assets-src/web-icon.png


+ 2 - 2
cordova/config.xml

@@ -1,6 +1,6 @@
 <?xml version='1.0' encoding='utf-8'?>
-<widget id="io.tranyi.test" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
-    <name>test</name>
+<widget id="io.tranyi.kixScannerPro" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
+    <name>kixScannerPro</name>
     <description>
         A sample Apache Cordova application that responds to the deviceready event.
     </description>

+ 1 - 1
cordova/package-lock.json

@@ -1,5 +1,5 @@
 {
-    "name": "io.tranyi.test",
+    "name": "io.tranyi.kixScannerPro",
     "version": "1.0.0",
     "lockfileVersion": 1,
     "requires": true,

+ 3 - 3
cordova/package.json

@@ -1,11 +1,11 @@
 {
-  "name": "io.tranyi.test",
-  "displayName": "test",
+  "name": "io.tranyi.kixScannerPro",
+  "displayName": "kixScannerPro",
   "version": "1.0.0",
   "description": "A sample Apache Cordova application that responds to the deviceready event.",
   "main": "index.js",
   "scripts": {
-    "test": "echo \"Error: no test specified\" && exit 1"
+    "kixScannerPro": "echo \"Error: no kixScannerPro specified\" && exit 1"
   },
   "keywords": [
     "ecosystem:cordova"

BIN
cordova/res/icon/android/mipmap-hdpi/ic_launcher.png


BIN
cordova/res/icon/android/mipmap-ldpi/ic_launcher.png


BIN
cordova/res/icon/android/mipmap-mdpi/ic_launcher.png


BIN
cordova/res/icon/android/mipmap-xhdpi/ic_launcher.png


BIN
cordova/res/icon/android/mipmap-xxhdpi/ic_launcher.png


BIN
cordova/res/icon/android/mipmap-xxxhdpi/ic_launcher.png


BIN
cordova/res/icon/android/playstore-icon.png


BIN
cordova/res/icon/ios/icon-20x20@1x.png


BIN
cordova/res/icon/ios/icon-20x20@2x.png


BIN
cordova/res/icon/ios/icon-20x20@3x.png


BIN
cordova/res/icon/ios/icon-29x29@1x.png


BIN
cordova/res/icon/ios/icon-29x29@2x.png


BIN
cordova/res/icon/ios/icon-29x29@3x.png


BIN
cordova/res/icon/ios/icon-40x40@1x.png


BIN
cordova/res/icon/ios/icon-40x40@2x.png


BIN
cordova/res/icon/ios/icon-40x40@3x.png


BIN
cordova/res/icon/ios/icon-50x50@1x.png


BIN
cordova/res/icon/ios/icon-50x50@2x.png


BIN
cordova/res/icon/ios/icon-512x512@1x.png


BIN
cordova/res/icon/ios/icon-512x512@2x.png


BIN
cordova/res/icon/ios/icon-57x57@1x.png


BIN
cordova/res/icon/ios/icon-57x57@2x.png


BIN
cordova/res/icon/ios/icon-60x60@1x.png


BIN
cordova/res/icon/ios/icon-60x60@2x.png


BIN
cordova/res/icon/ios/icon-60x60@3x.png


BIN
cordova/res/icon/ios/icon-72x72@1x.png


BIN
cordova/res/icon/ios/icon-72x72@2x.png


BIN
cordova/res/icon/ios/icon-76x76@1x.png


BIN
cordova/res/icon/ios/icon-76x76@2x.png


BIN
cordova/res/icon/ios/icon-76x76@3x.png


BIN
cordova/res/icon/ios/icon-83.5x83.5@2x.png


BIN
cordova/res/screen/android/drawable-hdpi/screen.png


BIN
cordova/res/screen/android/drawable-ldpi/screen.png


BIN
cordova/res/screen/android/drawable-mdpi/screen.png


BIN
cordova/res/screen/android/drawable-xhdpi/screen.png


BIN
cordova/res/screen/android/drawable-xxhdpi/screen.png


BIN
cordova/res/screen/android/drawable-xxxhdpi/screen.png


BIN
cordova/res/screen/ios/Default@2x~universal~anyany.png


File diff suppressed because it is too large
+ 0 - 10642
package-lock.json


+ 7 - 5
package.json

@@ -1,17 +1,17 @@
 {
-  "name": "test",
+  "name": "kixScannerPro",
   "private": true,
   "version": "1.0.0",
-  "description": "test",
+  "description": "kixScannerPro",
   "repository": "",
   "license": "UNLICENSED",
   "framework7": {
-    "cwd": "/Users/kennyname/Documents/Documents/projects/cordova/test",
+    "cwd": ".",
     "type": [
       "cordova",
       "web"
     ],
-    "name": "test",
+    "name": "kixScannerPro",
     "framework": "vue",
     "template": "tabs",
     "bundler": "webpack",
@@ -31,7 +31,7 @@
       "preserveAssetsPaths": false,
       "inlineAssets": true
     },
-    "pkg": "io.tranyi.test",
+    "pkg": "io.tranyi.kixScannerPro",
     "cordova": {
       "folder": "cordova",
       "platforms": [
@@ -55,6 +55,8 @@
     "build-cordova-ios-prod": "cross-env TARGET=cordova cross-env NODE_ENV=production node ./build/build.js && cd cordova && cordova build ios",
     "build-cordova-android-dev": "cross-env TARGET=cordova cross-env NODE_ENV=development node ./build/build.js && cd cordova && cordova build android",
     "build-cordova-android-prod": "cross-env TARGET=cordova cross-env NODE_ENV=production node ./build/build.js && cd cordova && cordova build android",
+    "run-cordova-android-dev": "cross-env TARGET=cordova cross-env NODE_ENV=development node ./build/build.js && cd cordova && cordova run android",
+    "run-cordova-android-prod": "cross-env TARGET=cordova cross-env NODE_ENV=production node ./build/build.js && cd cordova && cordova run android",
     "demo": "cross-env TARGET=cordova cross-env NODE_ENV=development node ./build/build.js && cd cordova && cordova run browser",
     "dev": "cross-env NODE_ENV=development webpack-dev-server --config ./build/webpack.config.js",
     "start": "npm run dev",

+ 5 - 5
src/components/app.vue

@@ -5,9 +5,9 @@
   <f7-views tabs class="safe-areas">
     <!-- Tabbar for switching views-tabs -->
     <f7-toolbar tabbar labels bottom>
-      <f7-link tab-link="#view-home" tab-link-active icon-ios="f7:home_fil" icon-aurora="f7:home_fil" icon-md="material:home" text="Home"></f7-link>
-      <f7-link tab-link="#view-history" icon-ios="f7:list_fill" icon-aurora="f7:list_fill" icon-md="material:view_list" text="History"></f7-link>
-      <f7-link tab-link="#view-settings" icon-ios="f7:settings_fill" icon-aurora="f7:settings_fill" icon-md="material:settings" text="Settings"></f7-link>
+      <f7-link tab-link="#view-home" tab-link-active icon-ios="f7:barcode" icon-aurora="f7:barcode" icon-md="material:select_all" text="開始掃描"></f7-link>
+      <f7-link tab-link="#view-history" icon-ios="f7:list_fill" icon-aurora="f7:list_fill" icon-md="material:view_list" text="歷史紀錄"></f7-link>
+      <f7-link tab-link="#view-settings" icon-ios="f7:settings_fill" icon-aurora="f7:settings_fill" icon-md="material:settings" text="相關設定"></f7-link>
     </f7-toolbar>
 
     <!-- Your main view/tab, should have "view-main" class. It also has "tab-active" class -->
@@ -31,8 +31,8 @@
       return {
         // Framework7 Parameters
         f7params: {
-          id: 'io.tranyi.test', // App bundle ID
-          name: 'test', // App name
+          id: 'io.tranyi.kixScannerPro', // App bundle ID
+          name: 'kixScannerPro', // App name
           theme: 'auto', // Automatic theme detection
           // App root data
           data: function () {

+ 1 - 1
src/index.html

@@ -17,7 +17,7 @@
   <meta name="theme-color" content="#007aff">
   <meta name="format-detection" content="telephone=no">
   <meta name="msapplication-tap-highlight" content="no">
-  <title>test</title>
+  <title>kixScannerPro</title>
   <% if (process.env.TARGET === 'web') { %>
   <meta name="apple-mobile-web-app-capable" content="yes">
   <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">

BIN
src/static/icons/128x128.png


BIN
src/static/icons/144x144.png


BIN
src/static/icons/152x152.png


BIN
src/static/icons/192x192.png


BIN
src/static/icons/256x256.png


BIN
src/static/icons/512x512.png


BIN
src/static/icons/apple-touch-icon.png


BIN
src/static/icons/favicon.png