You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ni...@apache.org on 2022/03/31 06:01:52 UTC

[cordova-plugin-device] branch master updated: fix(osx): rename classes to fix plugin (#152)

This is an automated email from the ASF dual-hosted git repository.

niklasmerz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-plugin-device.git


The following commit(s) were added to refs/heads/master by this push:
     new 3b48f30  fix(osx): rename classes to fix plugin (#152)
3b48f30 is described below

commit 3b48f30c6055e5ecbb46930ab6619cee3993d6ce
Author: Niklas Merz <ni...@apache.org>
AuthorDate: Thu Mar 31 08:01:44 2022 +0200

    fix(osx): rename classes to fix plugin (#152)
---
 plugin.xml          | 2 +-
 src/osx/CDVDevice.h | 2 +-
 src/osx/CDVDevice.m | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/plugin.xml b/plugin.xml
index 04a0a03..2381fff 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -90,7 +90,7 @@
     <platform name="osx">
         <config-file target="config.xml" parent="/*">
             <feature name="Device">
-                <param name="ios-package" value="CDVDevice"/>
+                <param name="ios-package" value="Device"/>
             </feature>
         </config-file>
 
diff --git a/src/osx/CDVDevice.h b/src/osx/CDVDevice.h
index 9def254..46bde27 100644
--- a/src/osx/CDVDevice.h
+++ b/src/osx/CDVDevice.h
@@ -19,7 +19,7 @@
 
 #import <Cordova/CDVPlugin.h>
 
-@interface CDVDevice : CDVPlugin
+@interface Device : CDVPlugin
 
 + (NSString*) cordovaVersion;
 
diff --git a/src/osx/CDVDevice.m b/src/osx/CDVDevice.m
index 3a63588..9e2d689 100644
--- a/src/osx/CDVDevice.m
+++ b/src/osx/CDVDevice.m
@@ -23,7 +23,7 @@
 
 #define SYSTEM_VERSION_PLIST    @"/System/Library/CoreServices/SystemVersion.plist"
 
-@implementation CDVDevice
+@implementation Device
 
 - (NSString*) modelVersion {
     size_t size;

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org