@historydev
Редактирую файлы с непонятными расширениями

Почему коммит не появился в ionic?

Доброе утро.Скажите пожалуйста, почему мой коммит появился на гите, но не появился в ionic приложении?

Я следовал документации:

> ionic gi remote
> ionic deploy add [data]
> git config --global user.email "you@example.com"
> git config --global user.name "Your Name"
> git add .
> git commit -m "My commit"

Все прошло без ошибок, вот лог:

C:\Users\History\Desktop\android\App>git commit -m "added appflow sdk"
[master (root-commit) e463fab] added appflow sdk
75 files changed, 15834 insertions(+)
create mode 100644 .gitignore
create mode 100644 android/.gitignore
create mode 100644 android/app/.npmignore
create mode 100644 android/app/build.gradle
create mode 100644 android/app/capacitor.build.gradle
create mode 100644 android/app/proguard-rules.pro
create mode 100644 android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java
create mode 100644 android/app/src/main/AndroidManifest.xml
create mode 100644 android/app/src/main/assets/capacitor.config.json
create mode 100644 android/app/src/main/java/io/ionic/starter/MainActivity.java
create mode 100644 android/app/src/main/res/drawable-land-hdpi/splash.png
create mode 100644 android/app/src/main/res/drawable-land-mdpi/splash.png
create mode 100644 android/app/src/main/res/drawable-land-xhdpi/splash.png
create mode 100644 android/app/src/main/res/drawable-land-xxhdpi/splash.png
create mode 100644 android/app/src/main/res/drawable-land-xxxhdpi/splash.png
create mode 100644 android/app/src/main/res/drawable-port-hdpi/splash.png
create mode 100644 android/app/src/main/res/drawable-port-mdpi/splash.png
create mode 100644 android/app/src/main/res/drawable-port-xhdpi/splash.png
create mode 100644 android/app/src/main/res/drawable-port-xxhdpi/splash.png
create mode 100644 android/app/src/main/res/drawable-port-xxxhdpi/splash.png
create mode 100644 android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
create mode 100644 android/app/src/main/res/drawable/ic_launcher_background.xml
create mode 100644 android/app/src/main/res/drawable/launch_splash.xml
create mode 100644 android/app/src/main/res/drawable/splash.png
create mode 100644 android/app/src/main/res/layout/activity_main.xml
create mode 100644 android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
create mode 100644 android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
create mode 100644 android/app/src/main/res/mipmap-hdpi/ic_launcher.png
create mode 100644 android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
create mode 100644 android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
create mode 100644 android/app/src/main/res/mipmap-mdpi/ic_launcher.png
create mode 100644 android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
create mode 100644 android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
create mode 100644 android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
create mode 100644 android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
create mode 100644 android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
create mode 100644 android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
create mode 100644 android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
create mode 100644 android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
create mode 100644 android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
create mode 100644 android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
create mode 100644 android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
create mode 100644 android/app/src/main/res/values/ic_launcher_background.xml
create mode 100644 android/app/src/main/res/values/strings.xml
create mode 100644 android/app/src/main/res/values/styles.xml
create mode 100644 android/app/src/main/res/xml/config.xml
create mode 100644 android/app/src/main/res/xml/file_paths.xml
create mode 100644 android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java
create mode 100644 android/build.gradle
create mode 100644 android/capacitor.settings.gradle
create mode 100644 android/gradle.properties
create mode 100644 android/gradle/wrapper/gradle-wrapper.jar
create mode 100644 android/gradle/wrapper/gradle-wrapper.properties
create mode 100644 android/gradlew
create mode 100644 android/gradlew.bat
create mode 100644 android/settings.gradle
create mode 100644 capacitor.config.json
create mode 100644 ionic.config.json
create mode 100644 package-lock.json
create mode 100644 package.json
create mode 100644 public/assets/icon/favicon.png
create mode 100644 public/assets/icon/icon.png
create mode 100644 public/assets/shapes.svg
create mode 100644 public/index.html
create mode 100644 public/manifest.json
create mode 100644 src/App.test.tsx
create mode 100644 src/App.tsx
create mode 100644 src/index.tsx
create mode 100644 src/pages/Home.tsx
create mode 100644 src/react-app-env.d.ts
create mode 100644 src/serviceWorker.ts
create mode 100644 src/theme.css
create mode 100644 src/theme/variables.css
create mode 100644 tsconfig.json
create mode 100644 tslint.json

C:\Users\History\Desktop\android\App>ionic git commit -m "added appflow sdk"
[ERROR] Unable to find command: git commit added appflow sdk

ionic git - Commands relating to git

Usage:

$ ionic git [] [--help] [--verbose] [--quiet] [--no-interactive] [--no-color] [--confirm] [options]

Project Commands:

remote .......................... Adds/updates the Ionic Appflow git remote to your local Ionic app

C:\Users\History\Desktop\android\App>ionic deploy add --app-id="2ca2697b" --channel-name="Master" --update-method="background"
> npm.cmd i --save -E cordova-plugin-ionic
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules\jest-haste-map\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.11: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.11: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.0.7 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ cordova-plugin-ionic@5.4.5
added 1 package from 3 contributors and audited 906624 packages in 99.709s

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

found 2 moderate severity vulnerabilities
run `npm audit fix` to fix them, or `npm audit` for details
> ionic deploy manifest
[OK] Appflow Deploy manifest written to .\public\pro-manifest.json!
> ionic capacitor sync
> capacitor.cmd sync
√ Copying web assets from public to android\app\src\main\assets\public in 314.97ms
√ Copying native bridge in 54.84ms
√ Copying capacitor.config.json in 58.16ms
| copy Found 1 Cordova plugin for android
cordova-plugin-ionic (5.4.5)
√ copy in 3.31s
√ Updating Android plugins in 311.57ms
[info] installing missing dependency plugin cordova-plugin-whitelist
√ Updating Android plugins in 62.44ms
Found 0 Capacitor plugins for android:
Found 2 Cordova plugins for android
cordova-plugin-ionic (5.4.5)
cordova-plugin-whitelist (1.3.4)
√ update android in 67.69s
√ copy in 874.90μp
√ update web in 15.70μp
Sync finished in 71.339s
[INFO] No Capacitor iOS project found.
[OK] cordova-plugin-ionic variables correctly added to the Android project
[OK] Appflow Deploy plugin added to the project!

C:\Users\History\Desktop\android\App>git add .
warning: LF will be replaced by CRLF in android/app/capacitor.build.gradle.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in android/app/src/main/assets/capacitor.config.json.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in android/app/src/main/res/values/strings.xml.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in android/app/src/main/res/xml/config.xml.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in android/capacitor.settings.gradle.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in package-lock.json.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in package.json.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in public/pro-manifest.json.
The file will have its original line endings in your working directory

C:\Users\History\Desktop\android\App>git commit -m "added appflow sdk"
[master 304d6f6] added appflow sdk
6 files changed, 65 insertions(+), 8 deletions(-)
rewrite android/app/src/main/res/values/strings.xml (76%)
create mode 100644 public/pro-manifest.json

C:\Users\History\Desktop\android\App>git add .

C:\Users\History\Desktop\android\App>git commit -m "added appflow sdk"
On branch master
nothing to commit, working tree clean
  • Вопрос задан
  • 72 просмотра
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы