From 955dd0d1efd391c179d21ed0a1e777290961dce7 Mon Sep 17 00:00:00 2001 From: Robson Oliveira dos Santos Date: Wed, 6 Dec 2023 12:05:17 -0300 Subject: [PATCH] ci: rename package for publishing --- example/android/capacitor.settings.gradle | 2 +- example/ios/App/Podfile | 2 +- example/package.json | 4 ++-- example/src/app/scan/dfu/dfu.page.ts | 2 +- example/yarn.lock | 2 +- package.json | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/example/android/capacitor.settings.gradle b/example/android/capacitor.settings.gradle index 825f40f..dadf7bf 100644 --- a/example/android/capacitor.settings.gradle +++ b/example/android/capacitor.settings.gradle @@ -6,7 +6,7 @@ include ':capacitor-community-bluetooth-le' project(':capacitor-community-bluetooth-le').projectDir = new File('../node_modules/@capacitor-community/bluetooth-le/android') include ':capacitor-community-nordic-dfu' -project(':capacitor-community-nordic-dfu').projectDir = new File('../node_modules/@capacitor-community/nordic-dfu/android') +project(':capacitor-community-nordic-dfu').projectDir = new File('../node_modules/capacitor-community-nordic-dfu/android') include ':capacitor-filesystem' project(':capacitor-filesystem').projectDir = new File('../node_modules/@capacitor/filesystem/android') diff --git a/example/ios/App/Podfile b/example/ios/App/Podfile index ca44089..e814c8a 100644 --- a/example/ios/App/Podfile +++ b/example/ios/App/Podfile @@ -12,7 +12,7 @@ def capacitor_pods pod 'Capacitor', :path => '../../node_modules/@capacitor/ios' pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios' pod 'CapacitorCommunityBluetoothLe', :path => '../../node_modules/@capacitor-community/bluetooth-le' - pod 'CapacitorCommunityNordicDfu', :path => '../../node_modules/@capacitor-community/nordic-dfu' + pod 'CapacitorCommunityNordicDfu', :path => '../../node_modules/capacitor-community-nordic-dfu' pod 'CapacitorFilesystem', :path => '../../node_modules/@capacitor/filesystem' pod 'CapawesomeCapacitorFilePicker', :path => '../../node_modules/@capawesome/capacitor-file-picker' end diff --git a/example/package.json b/example/package.json index 5b7f23d..c77b18d 100644 --- a/example/package.json +++ b/example/package.json @@ -10,7 +10,7 @@ "mobile" ], "scripts": { - "postinstall": "yarn cache clean @capacitor-community/nordic-dfu", + "postinstall": "yarn cache clean capacitor-community-nordic-dfu", "start": "ng serve", "build": "ng build", "test": "ng test" @@ -25,7 +25,7 @@ "@angular/platform-browser-dynamic": "^16.0.0", "@angular/router": "^16.0.0", "@capacitor-community/bluetooth-le": "^3.0.1", - "@capacitor-community/nordic-dfu": "file:..", + "capacitor-community-nordic-dfu": "file:..", "@capacitor/android": "^5.3.0", "@capacitor/core": "^5.3.0", "@capacitor/filesystem": "^5.1.4", diff --git a/example/src/app/scan/dfu/dfu.page.ts b/example/src/app/scan/dfu/dfu.page.ts index 8937366..6d54665 100644 --- a/example/src/app/scan/dfu/dfu.page.ts +++ b/example/src/app/scan/dfu/dfu.page.ts @@ -5,9 +5,9 @@ import { Router } from '@angular/router'; import { type PluginResultError } from '@capacitor/core'; import { Directory, Filesystem } from '@capacitor/filesystem'; import { type BleDevice, type ScanResult } from '@capacitor-community/bluetooth-le'; -import { NordicDfu, type DfuUpdateOptions, DfuOptions, DfuUpdate } from '@capacitor-community/nordic-dfu'; import { FilePicker, type PickedFile } from '@capawesome/capacitor-file-picker'; import { IonicModule, Platform } from '@ionic/angular'; +import { NordicDfu, type DfuUpdateOptions, DfuOptions, DfuUpdate } from 'capacitor-community-nordic-dfu'; import { ToastService } from '../../services/toast.service'; diff --git a/example/yarn.lock b/example/yarn.lock index 114b0c0..4e357a2 100644 --- a/example/yarn.lock +++ b/example/yarn.lock @@ -1361,7 +1361,7 @@ dependencies: "@types/web-bluetooth" "^0.0.16" -"@capacitor-community/nordic-dfu@file:..": +"capacitor-community-nordic-dfu@file:..": version "0.0.1" "@capacitor/android@^5.3.0": diff --git a/package.json b/package.json index 8f0c07b..86ecfec 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@capacitor-community/nordic-dfu", + "name": "capacitor-community-nordic-dfu", "version": "0.0.1", "description": "Nordic DFU OTA integration for Capacitor", "main": "dist/plugin.cjs.js",