From dd16b66b3dfae09450ab45529d3930d76e71b592 Mon Sep 17 00:00:00 2001 From: Robson Oliveira dos Santos Date: Wed, 6 Dec 2023 11:51:09 -0300 Subject: [PATCH] ci: rename package for publishing --- ...torCommunityNordicDfu.podspec => RobsonosNordicDfu.podspec | 2 +- example/android/app/capacitor.build.gradle | 2 +- example/android/capacitor.settings.gradle | 4 ++-- 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 +- 8 files changed, 10 insertions(+), 10 deletions(-) rename CapacitorCommunityNordicDfu.podspec => RobsonosNordicDfu.podspec (93%) diff --git a/CapacitorCommunityNordicDfu.podspec b/RobsonosNordicDfu.podspec similarity index 93% rename from CapacitorCommunityNordicDfu.podspec rename to RobsonosNordicDfu.podspec index 9f40763..2a8379a 100644 --- a/CapacitorCommunityNordicDfu.podspec +++ b/RobsonosNordicDfu.podspec @@ -3,7 +3,7 @@ require 'json' package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) Pod::Spec.new do |s| - s.name = 'CapacitorCommunityNordicDfu' + s.name = 'RobsonosNordicDfu' s.version = package['version'] s.summary = package['description'] s.license = package['license'] diff --git a/example/android/app/capacitor.build.gradle b/example/android/app/capacitor.build.gradle index cf42580..76faed1 100644 --- a/example/android/app/capacitor.build.gradle +++ b/example/android/app/capacitor.build.gradle @@ -10,7 +10,7 @@ android { apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle" dependencies { implementation project(':capacitor-community-bluetooth-le') - implementation project(':capacitor-community-nordic-dfu') + implementation project(':robsonos-nordic-dfu') implementation project(':capacitor-filesystem') implementation project(':capawesome-capacitor-file-picker') diff --git a/example/android/capacitor.settings.gradle b/example/android/capacitor.settings.gradle index 825f40f..cc9adab 100644 --- a/example/android/capacitor.settings.gradle +++ b/example/android/capacitor.settings.gradle @@ -5,8 +5,8 @@ project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/ 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') +include ':robsonos-nordic-dfu' +project(':robsonos-nordic-dfu').projectDir = new File('../node_modules/robsonos-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..31dbbcb 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 'RobsonosNordicDfu', :path => '../../node_modules/robsonos-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..c8d213d 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 robsonos-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:..", + "robsonos-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..40ed9ed 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 'robsonos-nordic-dfu'; import { ToastService } from '../../services/toast.service'; diff --git a/example/yarn.lock b/example/yarn.lock index 114b0c0..85414a3 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:..": +"robsonos-nordic-dfu@file:..": version "0.0.1" "@capacitor/android@^5.3.0": diff --git a/package.json b/package.json index 8f0c07b..d71944f 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@capacitor-community/nordic-dfu", + "name": "robsonos-nordic-dfu", "version": "0.0.1", "description": "Nordic DFU OTA integration for Capacitor", "main": "dist/plugin.cjs.js",