ncdcdev / cordova-plugin-blackboard-camera

0 stars 0 forks source link

cordovaの最新版対応 #28

Closed JangSungChul closed 1 year ago

JangSungChul commented 1 year ago

issue

27

Java 11が必要

Android 変更内容

プラグインのインストール

ビルド時の問題

  1. CordovaError: Using "requireCordovaModule" to load non-cordova module "q" is not supported. 【対応】 hooks/on-uninstall.jsq = require("q")を使うように修正

  2. エラーログ The 'kotlin-android-extensions' Gradle plugin is deprecated. Please use this migration guide (https://goo.gle/kotlin-android-extensions-deprecation) to start working with View Binding (https://developer.android.com/topic/libraries/view-binding) and the 'kotlin-parcelize' plugin. 【対応】 plugin.xmlから以下を削除 <apply-plugin>kotlin-android-extensions</apply-plugin>

Import問題

Android12以上でカメラボタンをタップしても反応しない

I/ViewRootImpl@9a5d955[CameraActivity]: ViewPostIme pointer 0
I/ViewRootImpl@9a5d955[CameraActivity]: ViewPostIme pointer 1
D/Camera2Fragment: test:lockFocus:start
D/Camera2Fragment: test:lockFocus:end
D/Camera2Fragment: test:CaptureCallback:STATE_WAITING_LOCK:3
D/Camera2Fragment: test:runPrecaptureSequence
D/Camera2Fragment: test:CaptureCallback:STATE_WAITING_PRECAPTURE
D/Camera2Fragment: test:CaptureCallback:STATE_WAITING_NON_PRECAPTURE
D/Camera2Fragment: test:CaptureCallback:STATE_WAITING_NON_PRECAPTURE
D/Camera2Fragment: test:CaptureCallback:STATE_WAITING_NON_PRECAPTURE

Camera2FragmentCameraCaptureSession.CaptureCallback()から次のステータスが取れない STATE_WAITING_NON_PRECAPTURE:カメラがオートフォーカスと露出を調整している

権限確認で落ちる

写真保存の際に表示される権限確認でAndroid12で落ってしまう →対応中

iOS変更内容

platformの設置エラー

Dependent plugin "cordova-plugin-file" already installed on ios.
Failed to install 'cordova-plugin-photo-library-sism': CordovaError: Version of installed plugin: "cordova-plugin-add-swift-support@1.7.2" does not satisfy dependency plugin requirement "cordova-plugin-add-swift-support@^2.0.2". Try --force to use installed plugin as dependency.
    at /Users/jang/git/KuiManagementSystem/app/node_modules/cordova-lib/src/plugman/install.js:526:43
Failed to restore plugin "cordova-plugin-photo-library-sism". You might need to try adding it again. Error: CordovaError: Version of installed plugin: "cordova-plugin-add-swift-support@1.7.2" does not satisfy dependency plugin requirement "cordova-plugin-add-swift-support@^2.0.2". Try --force to use installed plugin as dependency.

→本体のpackage.jsonに"cordova-plugin-add-swift-support": "^2.0.2", "cordova-plugin-inappbrowser": "^5.0.0"を追加

ビルドエラー

Could not build Objective-C module 'Cordova' →カメラのplugincordova-plugin-photo-library-sismが正しく動作しない?

確認したこと

スクリーンショット

補足事項

JangSungChul commented 1 year ago
/Users/jang/git/KuiManagementSystem/app/platforms/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'Firebase' from project 'Pods')
/Users/jang/git/KuiManagementSystem/app/platforms/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'FirebaseInstallations' from project 'Pods')
warning: Run script build phase 'Copy www directory' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'TPR2' from project 'TPR2')
/Users/jang/git/KuiManagementSystem/app/platforms/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'Protobuf' from project 'Pods')
/Users/jang/git/KuiManagementSystem/app/platforms/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'PromisesObjC' from project 'Pods')
/Users/jang/git/KuiManagementSystem/app/platforms/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'GoogleDataTransport' from project 'Pods')
/Users/jang/git/KuiManagementSystem/app/platforms/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'FirebaseMessaging' from project 'Pods')
/Users/jang/git/KuiManagementSystem/app/platforms/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'FirebaseInstanceID' from project 'Pods')
/Users/jang/git/KuiManagementSystem/app/platforms/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'FirebaseCoreDiagnostics' from project 'Pods')
/Users/jang/git/KuiManagementSystem/app/platforms/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'FirebaseCore' from project 'Pods')
** BUILD FAILED **
JangSungChul commented 1 year ago

XcodeでCordovaLibのCordova.hが見つからない

スクリーンショット 2023-04-17 19 52 39 スクリーンショット 2023-04-17 19 53 43
Using cordova-fetch for cordova-ios@^6.2.0
Adding ios project...
Creating Cordova project for the iOS platform:
    Path: platforms/ios
    Package: jp.co.taisei.construction.fieldmanagement.prod2
    Name: TPR2
iOS project created with cordova-ios@6.2.0
Discovered plugin "cordova-plugin-device". Adding it to the project
Installing "cordova-plugin-device" for ios
Adding cordova-plugin-device to package.json
Discovered plugin "cordova-plugin-statusbar". Adding it to the project
Installing "cordova-plugin-statusbar" for ios
Adding cordova-plugin-statusbar to package.json
Discovered plugin "cordova-plugin-android-permissions". Adding it to the project
Installing "cordova-plugin-android-permissions" for ios
Adding cordova-plugin-android-permissions to package.json
Discovered plugin "cordova-plugin-ios-camera-permissions". Adding it to the project
Installing "cordova-plugin-ios-camera-permissions" for ios
Adding cordova-plugin-ios-camera-permissions to package.json
Discovered plugin "cordova-plugin-file". Adding it to the project
Installing "cordova-plugin-file" for ios
Adding cordova-plugin-file to package.json
Discovered plugin "cordova-plugin-inappbrowser". Adding it to the project
Installing "cordova-plugin-inappbrowser" for ios
Adding cordova-plugin-inappbrowser to package.json
Discovered plugin "cordova-plugin-camera". Adding it to the project
Installing "cordova-plugin-camera" for ios
Adding cordova-plugin-camera to package.json
Discovered plugin "cordova-plugin-base64-joewsh". Adding it to the project
Installing "cordova-plugin-base64-joewsh" for ios
Adding cordova-plugin-base64-joewsh to package.json
Discovered plugin "cordova-plugin-dialogs". Adding it to the project
Installing "cordova-plugin-dialogs" for ios
Adding cordova-plugin-dialogs to package.json
Discovered plugin "@havesource/cordova-plugin-push". Adding it to the project
Installing "@havesource/cordova-plugin-push" for ios
Running command: pod install --verbose
Ignoring ffi-1.12.2 because its extensions are not built. Try: gem pristine ffi --version 1.12.2
[!] The `TPR2 [Debug]` target overrides the `LD_RUNPATH_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-TPR2/Pods-TPR2.debug.xcconfig'. This can lead to problems with the CocoaPods installation
[!] The `TPR2 [Release]` target overrides the `LD_RUNPATH_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-TPR2/Pods-TPR2.release.xcconfig'. This can lead to problems with the CocoaPods installation
Adding @havesource/cordova-plugin-push to package.json
Discovered plugin "cordova-plugin-androidx-adapter". Adding it to the project
Installing "cordova-plugin-androidx-adapter" for ios
Adding cordova-plugin-androidx-adapter to package.json
Discovered plugin "cordova-plugin-photo-library-sism". Adding it to the project
Installing "cordova-plugin-photo-library-sism" for ios
Plugin dependency "cordova-plugin-file@6.0.2" already fetched, using that version.
Dependent plugin "cordova-plugin-file" already installed on ios.
Installing "cordova-plugin-add-swift-support" for ios
Adding cordova-plugin-photo-library-sism to package.json
Update IOS build setting SWIFT_OBJC_BRIDGING_HEADER to: "$(PROJECT_DIR)/$(PROJECT_NAME)/Bridging-Header.h" for build configuration Debug
Update IOS build setting SWIFT_OBJC_BRIDGING_HEADER to: "$(PROJECT_DIR)/$(PROJECT_NAME)/Bridging-Header.h" for build configuration Release
Update IOS build setting ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES to: YES for build configuration Debug
Use Swift language version 5
Update IOS build setting SWIFT_OPTIMIZATION_LEVEL to: -Onone for build configuration Debug
Update IOS build setting ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES to: YES for build configuration Release
Use Swift language version 5

プラグイン問題

cordova-plugin-photo-librarywkwebviewに対応してないため、 代わりにcordova-plugin-photo-library-wkwebview-ionicを使わないといけない? https://www.npmjs.com/package/cordova-plugin-photo-library-wkwebview-ionic?activeTab=readme

ただ、cordova-plugin-photo-library-wkwebview-ionicをインストールすると他のコードの関係性がエラーなる、、

スクリーンショット 2023-04-17 20 22 17
JangSungChul commented 1 year ago

その他エラー

cordova-plugin-photo-libraryがcordova11に対応していない

cordovaのcordova-camera-pluginを使うか? https://cordova.apache.org/news/2021/08/23/camera-plugin-6.0.0-release.html

ビルド警告

  1. Discovered plugin "@havesource/cordova-plugin-push". Adding it to the project
    Installing "@havesource/cordova-plugin-push" for ios
    Running command: pod install --verbose
    Ignoring ffi-1.12.2 because its extensions are not built. Try: gem pristine ffi --version 1.12.2

    sudo gem install ffi -v '1.12.2'を実施

    Ignoring ffi-1.12.2 because its extensions are not built. Try: gem pristine ffi --version 1.12.2
    Building native extensions. This could take a while...
    Successfully installed ffi-1.12.2
    Parsing documentation for ffi-1.12.2
    Done installing documentation for ffi after 3 seconds
    1 gem installed
  2. /Users/jang/git/KuiManagementSystem/app/platforms/ios/TPR2/Plugins/cordova-plugin-inappbrowser/CDVWKInAppBrowser.m:27:9 'Cordova/CDVUserAgentUtil.h' file not found

    →本体のcordova-plugin-inappbrowserのバージョンアップ:3.2.05.0.0

JangSungChul commented 1 year ago

ビルドはできたがカメラ画面が真っ黒

2023-04-18 18:56:37.531930+0900 TPR2[6299:3903458] loading::@@router/LOCATION_CHANGE
2023-04-18 18:56:37.545639+0900 TPR2[6299:3903458] 🌈 [object Object]
2023-04-18 18:56:37.545913+0900 TPR2[6299:3903458] loadSiteList
2023-04-18 18:56:37.546440+0900 TPR2[6299:3903458] kui-progress not match
2023-04-18 18:56:37.547000+0900 TPR2[6299:3903458] {"type":"@@router/LOCATION_CHANGE","payload":{"pathname":"/camera-view","search":"","hash":"","state":{"itemId":"item006","kuiId":"Kui_02f63dfaab404b358ea3be616f29bf17","itemGroupId":"itemGroup001","priority":"Web"},"action":"PUSH","key":"obs0we","query":{}}}
2023-04-18 18:56:37.547691+0900 TPR2[6299:3903458] loading::camera-view_start_take_photo
2023-04-18 18:56:37.556987+0900 TPR2[6299:3903458] 🌈 [object Object]
2023-04-18 18:56:37.662058+0900 TPR2[6299:3903458] {"comment":"テストコメント5","limit":3}
2023-04-18 18:56:37.662183+0900 TPR2[6299:3903458] camera-view.saga:1 priority=Web
2023-04-18 18:56:37.662264+0900 TPR2[6299:3903458] camera-view.saga:2 priority=Web
2023-04-18 18:56:37.754792+0900 TPR2[6299:3903458] drawBlackBoardByLayoutId start:title=undefined, comment=テストコメント5
2023-04-18 18:56:38.603317+0900 TPR2[6299:3903458] {"label":{"text":"工事名","startX":0.018,"startY":0.03,"endX":0.275,"endY":0.095},"value":{"text":"@Site.siteName","startX":0.26,"startY":0.03,"endX":0.99,"endY":0.095}}
2023-04-18 18:56:38.603627+0900 TPR2[6299:3903458] {"label":{"text":"工事場所","startX":0.018,"startY":0.094,"endX":0.975,"endY":0.172},"value":{"text":"@Kui.tourishinNumber","startX":0.26,"startY":0.094,"endX":0.99,"endY":0.172}}
2023-04-18 18:56:38.603809+0900 TPR2[6299:3903458] {"label":{"text":"工種","startX":0.018,"startY":0.155,"endX":0.975,"endY":0.233},"value":{"text":"既製杭工事","startX":0.26,"startY":0.155,"endX":0.975,"endY":0.233}}
2023-04-18 18:56:38.603941+0900 TPR2[6299:3903458] {"label":{"text":"撮影日","startX":0.52,"startY":0.155,"endX":0.7,"endY":0.233},"value":{"text":"@currentDate.YYYY/MM/DD","startX":0.725,"startY":0.155,"endX":0.99,"endY":0.233}}
2023-04-18 18:56:38.604118+0900 TPR2[6299:3903458] {"label":{"text":"杭番号:","startX":0.018,"startY":0.22,"endX":0.175,"endY":0.285},"value":{"text":"@Kui.kuiNumber","startX":0.15,"startY":0.22,"endX":0.375,"endY":0.285}}
2023-04-18 18:56:38.604261+0900 TPR2[6299:3903458] {"label":{"text":"杭符号:","startX":0.38,"startY":0.22,"endX":0.605,"endY":0.285},"value":{"text":"@KuiDesign.design-0025","startX":0.53,"startY":0.22,"endX":0.72,"endY":0.285}}
2023-04-18 18:56:38.604425+0900 TPR2[6299:3903458] {"value":{"text":"@Kui.district.districtName","startX":0.725,"startY":0.22,"endX":0.975,"endY":0.285}}
2023-04-18 18:56:38.606907+0900 TPR2[6299:3903458] {"value":{"text":"@userComment","startX":0.018,"startY":0.27,"endX":1,"endY":0.75}}
2023-04-18 18:56:38.607086+0900 TPR2[6299:3903458] {"value":{"text":"@title","startX":0.018,"startY":0.6,"endX":0.99,"endY":0.665}}
2023-04-18 18:56:38.607194+0900 TPR2[6299:3903458] {"value":{"text":"@comment","startX":0.018,"startY":0.655,"endX":0.99,"endY":0.845,"maxLines":3,"maxCharsPerLine":20}}
2023-04-18 18:56:38.607323+0900 TPR2[6299:3903458] {"comment":"テストコメント5","limit":3}
2023-04-18 18:56:38.607442+0900 TPR2[6299:3903458] getNamesFromSite::names=元請社1 元請け立会い者0
2023-04-18 18:56:38.607561+0900 TPR2[6299:3903458] getNamesFromSite::names=設計社2 設計立会い者0
2023-04-18 18:56:38.607686+0900 TPR2[6299:3903458] getNamesFromSite::names=監理会社 監理1
2023-04-18 18:56:38.607820+0900 TPR2[6299:3903458] getNamesFromSite::names=施主会社 施主1
2023-04-18 18:56:38.607917+0900 TPR2[6299:3903458] {"startX":0,"startY":0.06,"endX":1,"endY":0.06}
2023-04-18 18:56:38.608016+0900 TPR2[6299:3903458] {"startX":0,"startY":0.12,"endX":1,"endY":0.12}
2023-04-18 18:56:38.608110+0900 TPR2[6299:3903458] {"startX":0,"startY":0.18,"endX":1,"endY":0.18}
2023-04-18 18:56:38.608201+0900 TPR2[6299:3903458] {"startX":0,"startY":0.925,"endX":1,"endY":0.925}
2023-04-18 18:56:38.608296+0900 TPR2[6299:3903458] {"startX":0,"startY":0.8,"endX":1,"endY":0.8}
2023-04-18 18:56:38.608393+0900 TPR2[6299:3903458] {"startX":0.25,"startY":0,"endX":0.25,"endY":0.18}
2023-04-18 18:56:38.608489+0900 TPR2[6299:3903458] {"startX":0.5,"startY":0.12,"endX":0.5,"endY":0.18}
2023-04-18 18:56:38.608586+0900 TPR2[6299:3903458] {"startX":0.7,"startY":0.12,"endX":0.7,"endY":0.18}
2023-04-18 18:56:38.608712+0900 TPR2[6299:3903458] {"startX":0.17,"startY":0.8,"endX":0.17,"endY":1}
2023-04-18 18:56:38.608849+0900 TPR2[6299:3903458] record={"label":{"text":"工事名","startX":0.018,"startY":0.03,"endX":0.275,"endY":0.095},"value":{"text":"@Site.siteName","startX":0.26,"startY":0.03,"endX":0.99,"endY":0.095}}
2023-04-18 18:56:38.633524+0900 TPR2[6299:3903458] getModelData:["siteName"]
2023-04-18 18:56:38.633961+0900 TPR2[6299:3903458] record={"label":{"text":"工事場所","startX":0.018,"startY":0.094,"endX":0.975,"endY":0.172},"value":{"text":"@Kui.tourishinNumber","startX":0.26,"startY":0.094,"endX":0.99,"endY":0.172}}
2023-04-18 18:56:38.634155+0900 TPR2[6299:3903458] getModelData:["tourishinNumber"]
2023-04-18 18:56:38.634318+0900 TPR2[6299:3903458] record={"label":{"text":"工種","startX":0.018,"startY":0.155,"endX":0.975,"endY":0.233},"value":{"text":"既製杭工事","startX":0.26,"startY":0.155,"endX":0.975,"endY":0.233}}
2023-04-18 18:56:38.634518+0900 TPR2[6299:3903458] record={"label":{"text":"撮影日","startX":0.52,"startY":0.155,"endX":0.7,"endY":0.233},"value":{"text":"@currentDate.YYYY/MM/DD","startX":0.725,"startY":0.155,"endX":0.99,"endY":0.233}}
2023-04-18 18:56:38.634898+0900 TPR2[6299:3903458] record={"label":{"text":"杭番号:","startX":0.018,"startY":0.22,"endX":0.175,"endY":0.285},"value":{"text":"@Kui.kuiNumber","startX":0.15,"startY":0.22,"endX":0.375,"endY":0.285}}
2023-04-18 18:56:38.634999+0900 TPR2[6299:3903458] getModelData:["kuiNumber"]
2023-04-18 18:56:38.635124+0900 TPR2[6299:3903458] record={"label":{"text":"杭符号:","startX":0.38,"startY":0.22,"endX":0.605,"endY":0.285},"value":{"text":"@KuiDesign.design-0025","startX":0.53,"startY":0.22,"endX":0.72,"endY":0.285}}
2023-04-18 18:56:38.635481+0900 TPR2[6299:3903458] getKuiDesign:kuiId=Kui_02f63dfaab404b358ea3be616f29bf17,designId=design-0025
2023-04-18 18:56:38.635699+0900 TPR2[6299:3903458] findKuiDesignValue:kuiId=Kui_02f63dfaab404b358ea3be616f29bf17, designId=design-0025
2023-04-18 18:56:38.834791+0900 TPR2[6299:3903458] getKuiDesign=P100
2023-04-18 18:56:38.835329+0900 TPR2[6299:3903458] record={"value":{"text":"@Kui.district.districtName","startX":0.725,"startY":0.22,"endX":0.975,"endY":0.285}}
2023-04-18 18:56:38.835612+0900 TPR2[6299:3903458] getModelData:["district","districtName"]
2023-04-18 18:56:38.836389+0900 TPR2[6299:3903458] record={"value":{"text":"@userComment","startX":0.018,"startY":0.27,"endX":1,"endY":0.75}}
2023-04-18 18:56:38.837656+0900 TPR2[6299:3903458] record={"value":{"text":"@title","startX":0.018,"startY":0.6,"endX":0.99,"endY":0.665}}
2023-04-18 18:56:38.837889+0900 TPR2[6299:3903458] record={"value":{"text":"@comment","startX":0.018,"startY":0.655,"endX":0.99,"endY":0.845,"maxLines":3,"maxCharsPerLine":20}}
2023-04-18 18:56:38.838122+0900 TPR2[6299:3903458] record={"label":{"text":"立会者","startX":0.018,"startY":0.838,"endX":0.225,"endY":0.903},"value":{"text":"@designer","startX":0.19,"startY":0.838,"endX":0.99,"endY":0.903}}
2023-04-18 18:56:38.838305+0900 TPR2[6299:3903458] record={"label":{"text":"","startX":0.018,"startY":0.887,"endX":0.225,"endY":0.952},"value":{"text":"@supervision","startX":0.19,"startY":0.887,"endX":0.99,"endY":0.952}}
2023-04-18 18:56:38.839101+0900 TPR2[6299:3903458] record={"label":{"text":"施工者","startX":0.018,"startY":0.958,"endX":0.3,"endY":1.023},"value":{"text":"@contractor","startX":0.19,"startY":0.958,"endX":0.99,"endY":1.023}}
2023-04-18 18:56:38.860320+0900 TPR2[6299:3903458] drawBlackBoardByLayoutId end
2023-04-18 18:56:38.860995+0900 TPR2[6299:3903458] WARN: hasPermission() function deprecated. Considers using checkPermission()
2023-04-18 18:56:38.861468+0900 TPR2[6299:3903458] WARN: hasPermission() function deprecated. Considers using checkPermission()
2023-04-18 18:56:38.861981+0900 TPR2[6299:3903458] isNeedBlackBoard:0, blackboardViewPriority:Web
JangSungChul commented 1 year ago

ビルド&動作確認

iOSビルドログ
❯ rm -rf package-lock.json node_modules plugins platforms && npm i && npm run build-production2-compress && npx cordova platform add ios
npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
npm WARN deprecated stringify-package@1.0.1: This module is not used anymore, and has been replaced by @npmcli/package-json
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated source-map-resolve@0.6.0: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated date-format@3.0.0: 3.x is no longer supported. Please upgrade to 4.x or higher.
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated intl-locales-supported@1.8.12: bad publish
npm WARN deprecated xmldom@0.1.31: Deprecated due to CVE-2021-21366 resolved in 0.5.0
npm WARN deprecated formidable@1.2.6: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau
npm WARN deprecated gulp-util@3.0.7: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated @babel/polyfill@7.12.1: 🚨 This package has been deprecated in favor of separate inclusion of a polyfill and regenerator-runtime (when needed). See the @babel/polyfill docs (https://babeljs.io/docs/en/babel-polyfill) for more information.
npm WARN deprecated superagent@3.8.3: Please upgrade to v7.0.2+ of superagent.  We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing.  See the releases tab for more information at .
npm WARN deprecated axios@0.19.2: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410
npm WARN deprecated core-js@1.2.7: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.

added 1660 packages, and audited 1661 packages in 3m

91 packages are looking for funding
  run `npm fund` for details

55 vulnerabilities (16 moderate, 30 high, 9 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues possible (including breaking changes), run:
  npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.

> app@1.0.0 build-production2-compress
> NODE_ENV=production2-compress npm run build

> app@1.0.0 build
> gulp build

environment: production
[10:46:00] Using gulpfile ~/git/KuiManagementSystem/app/gulpfile.js
[10:46:00] Starting 'build'...
[10:46:00] Starting 'config.xml'...
[10:46:00] Starting 'clean-xml'...
[10:46:00] Finished 'clean-xml' after 11 ms
[10:46:00] Starting ''...
[10:46:00] Finished '' after 45 ms
[10:46:00] Finished 'config.xml' after 58 ms
[10:46:00] Starting 'compile'...
[10:46:00] Starting 'copy-js'...
[10:46:00] Starting 'clean-js'...
[10:46:00] Finished 'clean-js' after 6.81 ms
[10:46:00] Starting ''...
[10:46:00] Finished '' after 4.59 ms
[10:46:00] Finished 'copy-js' after 12 ms
[10:46:00] Starting ''...
[10:47:01] asset bundle.js 13.1 MiB [emitted] [minimized] [big] (name: bundle) 1 related asset

WARNING in ./node_modules/material-ui/CheckBox/Checkbox.js
There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Use equal casing. Compare these module identifiers:
* /Users/jang/git/KuiManagementSystem/app/node_modules/material-ui/CheckBox/Checkbox.js
    Used by 1 module(s), i. e.
    /Users/jang/git/KuiManagementSystem/app/node_modules/material-ui/CheckBox/index.js
* /Users/jang/git/KuiManagementSystem/app/node_modules/material-ui/Checkbox/Checkbox.js
    Used by 1 module(s), i. e.
    /Users/jang/git/KuiManagementSystem/app/node_modules/material-ui/Checkbox/index.js
 @ ./node_modules/material-ui/CheckBox/index.js 8:16-37
 @ ./src/js/components/input-item/item.js 46:0-44 329:50-58
 @ ./src/js/components/input-item/index.js 35:0-26 763:48-52
 @ ./src/js/containers/input-item.js 8:0-50 166:72-81
 @ ./src/js/pages.js 26:0-52 130:42-55
 @ ./src/js/index.js 15:0-27 135:13-23 139:13-28 143:13-27 147:13-25 151:13-33 155:13-30 159:13-32 163:13-29 167:13-22 171:13-27 175:13-32 179:13-32 183:13-32 187:13-34 191:13-34 195:13-34 199:13-33 203:13-30 207:13-27 211:13-24 215:13-28 219:13-39 223:13-39 227:13-35 231:13-35 235:13-27 239:13-33 243:13-39 247:13-33 251:13-39

WARNING in ./node_modules/material-ui/CheckBox/index.js
There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Use equal casing. Compare these module identifiers:
* /Users/jang/git/KuiManagementSystem/app/node_modules/material-ui/CheckBox/index.js
    Used by 2 module(s), i. e.
    /Users/jang/git/KuiManagementSystem/app/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use[0]!/Users/jang/git/KuiManagementSystem/app/src/js/components/input-item/item.js
* /Users/jang/git/KuiManagementSystem/app/node_modules/material-ui/Checkbox/index.js
    Used by 4 module(s), i. e.
    /Users/jang/git/KuiManagementSystem/app/node_modules/babel-loader/lib/index.js??ruleSet[1].rules[0].use[0]!/Users/jang/git/KuiManagementSystem/app/src/js/components/black-board-edit/index.js
 @ ./src/js/components/input-item/item.js 46:0-44 329:50-58
 @ ./src/js/components/input-item/index.js 35:0-26 763:48-52
 @ ./src/js/containers/input-item.js 8:0-50 166:72-81
 @ ./src/js/pages.js 26:0-52 130:42-55
 @ ./src/js/index.js 15:0-27 135:13-23 139:13-28 143:13-27 147:13-25 151:13-33 155:13-30 159:13-32 163:13-29 167:13-22 171:13-27 175:13-32 179:13-32 183:13-32 187:13-34 191:13-34 195:13-34 199:13-33 203:13-30 207:13-27 211:13-24 215:13-28 219:13-39 223:13-39 227:13-35 231:13-35 235:13-27 239:13-33 243:13-39 247:13-33 251:13-39

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets: 
  bundle.js (13.1 MiB)

WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
  bundle (13.1 MiB)
      bundle.js

WARNING in webpack performance recommendations: 
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/

webpack 5.80.0 compiled with 5 warnings
[10:47:01] Finished '' after 1 min
[10:47:01] Finished 'compile' after 1 min
[10:47:01] Starting 'scss-global'...
[10:47:01] Starting 'copy-css'...
[10:47:01] Starting 'clean-css'...
[10:47:01] Finished 'clean-css' after 58 ms
[10:47:01] Starting ''...
[10:47:01] Finished '' after 185 ms
[10:47:01] Finished 'copy-css' after 244 ms
[10:47:01] Starting ''...
[10:47:01] Finished '' after 50 ms
[10:47:01] Finished 'scss-global' after 296 ms
[10:47:01] Starting 'html'...
[10:47:01] Starting 'clean-html'...
[10:47:01] Finished 'clean-html' after 6.89 ms
[10:47:01] Starting ''...
[10:47:01] Finished '' after 54 ms
[10:47:01] Finished 'html' after 63 ms
[10:47:01] Starting 'copy-image'...
[10:47:01] Starting 'clean-image'...
[10:47:01] Finished 'clean-image' after 14 ms
[10:47:01] Starting ''...
[10:47:01] Finished '' after 200 ms
[10:47:01] Finished 'copy-image' after 215 ms
[10:47:01] Finished 'build' after 1.02 min
Using cordova-fetch for cordova-ios@^6.2.0
Adding ios project...
Creating Cordova project for the iOS platform:
    Path: platforms/ios
    Package: jp.co.taisei.construction.fieldmanagement.prod2
    Name: TPR2
iOS project created with cordova-ios@6.3.0
Discovered plugin "cordova-plugin-device". Adding it to the project
Installing "cordova-plugin-device" for ios
Adding cordova-plugin-device to package.json
Discovered plugin "cordova-plugin-statusbar". Adding it to the project
Installing "cordova-plugin-statusbar" for ios
Adding cordova-plugin-statusbar to package.json
Discovered plugin "cordova-plugin-android-permissions". Adding it to the project
Installing "cordova-plugin-android-permissions" for ios
Adding cordova-plugin-android-permissions to package.json
Discovered plugin "cordova-plugin-file". Adding it to the project
Installing "cordova-plugin-file" for ios
Adding cordova-plugin-file to package.json
Discovered plugin "cordova-plugin-camera". Adding it to the project
Installing "cordova-plugin-camera" for ios
Adding cordova-plugin-camera to package.json
Discovered plugin "cordova-plugin-base64-joewsh". Adding it to the project
Installing "cordova-plugin-base64-joewsh" for ios
Adding cordova-plugin-base64-joewsh to package.json
Discovered plugin "cordova-plugin-dialogs". Adding it to the project
Installing "cordova-plugin-dialogs" for ios
Adding cordova-plugin-dialogs to package.json
Discovered plugin "@havesource/cordova-plugin-push". Adding it to the project
Installing "@havesource/cordova-plugin-push" for ios
Running command: pod install --verbose

[!] The `TPR2 [Debug]` target overrides the `LD_RUNPATH_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-TPR2/Pods-TPR2.debug.xcconfig'. This can lead to problems with the CocoaPods installation

[!] The `TPR2 [Release]` target overrides the `LD_RUNPATH_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-TPR2/Pods-TPR2.release.xcconfig'. This can lead to problems with the CocoaPods installation

Adding @havesource/cordova-plugin-push to package.json
Discovered plugin "cordova-plugin-androidx-adapter". Adding it to the project
Installing "cordova-plugin-androidx-adapter" for ios
Adding cordova-plugin-androidx-adapter to package.json
Discovered plugin "cordova-plugin-inappbrowser". Adding it to the project
Installing "cordova-plugin-inappbrowser" for ios
Adding cordova-plugin-inappbrowser to package.json
Discovered plugin "cordova-plugin-blackboard-camera". Adding it to the project
Installing "cordova-plugin-blackboard-camera" for ios
Installing "cordova-plugin-add-swift-support" for ios
Adding cordova-plugin-blackboard-camera to package.json
Update IOS build setting SWIFT_OBJC_BRIDGING_HEADER to: "$(PROJECT_DIR)/$(PROJECT_NAME)/Bridging-Header.h" for build configuration Debug
Update IOS build setting SWIFT_OBJC_BRIDGING_HEADER to: "$(PROJECT_DIR)/$(PROJECT_NAME)/Bridging-Header.h" for build configuration Release
Update IOS build setting ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES to: YES for build configuration Debug
Use Swift language version 5
Update IOS build setting SWIFT_OPTIMIZATION_LEVEL to: -Onone for build configuration Debug
Update IOS build setting ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES to: YES for build configuration Release
Use Swift language version 5

スクリーンショット 2023-04-20 11 08 17

Androidビルドログ
❯ npx cordova platform add android@11
Using cordova-fetch for cordova-android@11
Adding android project...
android-targetSdkVersion should be greater than or equal to 32.
Creating Cordova project for the Android platform:
    Path: platforms/android
    Package: jp.co.taisei.construction.fieldmanagement.prod2
    Name: TPR2
    Activity: MainActivity
    Android Target SDK: android-32
    Android Compile SDK: 31
Subproject Path: CordovaLib
Subproject Path: app
Android project created with cordova-android@11.0.0
Installing "cordova-plugin-add-swift-support" for android
Installing "cordova-plugin-android-permissions" for android
Installing "cordova-plugin-androidx-adapter" for android
Installing "cordova-plugin-base64-joewsh" for android
Installing "cordova-plugin-blackboard-camera" for android
Subproject Path: CordovaLib
Subproject Path: app
Installing "cordova-plugin-camera" for android
Subproject Path: CordovaLib
Subproject Path: app
Installing "cordova-plugin-device" for android
Installing "cordova-plugin-dialogs" for android
Installing "cordova-plugin-file" for android

The Android Persistent storage location now defaults to "Internal". Please check this plugin's README to see if your application needs any changes in its config.xml.

If this is a new application no changes are required.

If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add:

      ""

to config.xml in order for the application to find previously stored files.

Installing "cordova-plugin-inappbrowser" for android
Installing "cordova-plugin-statusbar" for android
Installing "@havesource/cordova-plugin-push" for android
Subproject Path: CordovaLib
Subproject Path: app
cordova-plugin-androidx-adapter: Processed 40 source files in 1470ms

スクリーンショット 2023-04-20 11 08 27

スクリーンショット 2023-04-20 12 34 28