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

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


The following commit(s) were added to refs/heads/master by this push:
     new 083cb2e  fix: change CRLF to LF (#279)
083cb2e is described below

commit 083cb2eb7c82d559966beff145007b1b43983a2f
Author: エリス <[email protected]>
AuthorDate: Fri Dec 5 01:48:04 2025 +0900

    fix: change CRLF to LF (#279)
---
 .../scripts/EnableDebuggingForPackage.ps1          | 166 ++++++++++-----------
 debug-mode-plugin/scripts/disable-debug-mode.js    |  64 ++++----
 debug-mode-plugin/scripts/enable-debug-mode.js     |  92 ++++++------
 .../src/ios/CDVAllowLocation.m                     |  72 ++++-----
 4 files changed, 197 insertions(+), 197 deletions(-)

diff --git a/debug-mode-plugin/scripts/EnableDebuggingForPackage.ps1 
b/debug-mode-plugin/scripts/EnableDebuggingForPackage.ps1
index 5ed9d09..80414bd 100644
--- a/debug-mode-plugin/scripts/EnableDebuggingForPackage.ps1
+++ b/debug-mode-plugin/scripts/EnableDebuggingForPackage.ps1
@@ -1,83 +1,83 @@
-<#
-       Licensed to the Apache Software Foundation (ASF) under one
-       or more contributor license agreements.  See the NOTICE file
-       distributed with this work for additional information
-       regarding copyright ownership.  The ASF licenses this file
-       to you under the Apache License, Version 2.0 (the
-       "License"); you may not use this file except in compliance
-       with the License.  You may obtain a copy of the License at
-
-         http://www.apache.org/licenses/LICENSE-2.0
-
-       Unless required by applicable law or agreed to in writing,
-       software distributed under the License is distributed on an
-       "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-       KIND, either express or implied.  See the License for the
-       specific language governing permissions and limitations
-       under the License.
-#>
-
-param(
-    [Parameter(Mandatory=$true, Position=0, 
ValueFromPipelineByPropertyName=$true)]
-    [string] $ID <# package.appxmanifest//Identity@name #>
-)
-
-$code = @"
-using System;
-using System.Runtime.InteropServices;
-namespace PackageDebug
-{
-    public enum PACKAGE_EXECUTION_STATE
-    {
-        PES_UNKNOWN,
-        PES_RUNNING,
-        PES_SUSPENDING,
-        PES_SUSPENDED,
-        PES_TERMINATED
-    }
-
-    [ComImport, Guid("B1AEC16F-2383-4852-B0E9-8F0B1DC66B4D")]
-    public class PackageDebugSettings
-    {
-    }
-
-    [ComImport, 
Guid("F27C3930-8029-4AD1-94E3-3DBA417810C1"),InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
-    public interface IPackageDebugSettings
-    {
-        int EnableDebugging([MarshalAs(UnmanagedType.LPWStr)] string 
packageFullName, [MarshalAs(UnmanagedType.LPWStr)] string debuggerCommandLine, 
IntPtr environment);
-        int DisableDebugging([MarshalAs(UnmanagedType.LPWStr)] string 
packageFullName);
-        int Suspend([MarshalAs(UnmanagedType.LPWStr)] string packageFullName);
-        int Resume([MarshalAs(UnmanagedType.LPWStr)] string packageFullName);
-        int TerminateAllProcesses([MarshalAs(UnmanagedType.LPWStr)] string 
packageFullName);
-        int SetTargetSessionId(int sessionId);
-        int EnumerageBackgroundTasks([MarshalAs(UnmanagedType.LPWStr)] string 
packageFullName,
-                                                      out uint taskCount, out 
int intPtr, [Out] string[] array);
-        int ActivateBackgroundTask(IntPtr something);
-        int StartServicing([MarshalAs(UnmanagedType.LPWStr)] string 
packageFullName);
-        int StopServicing([MarshalAs(UnmanagedType.LPWStr)] string 
packageFullName);
-        int StartSessionRedirection([MarshalAs(UnmanagedType.LPWStr)] string 
packageFullName, uint sessionId);
-        int StopSessionRedirection([MarshalAs(UnmanagedType.LPWStr)] string 
packageFullName);
-        int GetPackageExecutionState([MarshalAs(UnmanagedType.LPWStr)] string 
packageFullName,
-                                            out PACKAGE_EXECUTION_STATE 
packageExecutionState);
-        int RegisterForPackageStateChanges([MarshalAs(UnmanagedType.LPWStr)] 
string packageFullName,
-                               IntPtr 
pPackageExecutionStateChangeNotification, out uint pdwCookie);
-        int UnregisterForPackageStateChanges(uint dwCookie);
-    }
-
-    public class DebugTool
-    {
-        public static void EnableDebug(String packageFullName)
-        {
-            // Set debug mode for App and activate installed application
-            var debugSettings = (IPackageDebugSettings)(new 
PackageDebugSettings());
-            debugSettings.EnableDebugging(packageFullName, null, (IntPtr)null);
-        }
-    }
-}
-"@
-
-Add-Type -TypeDefinition $code
-
-$packageFullName = $(Get-AppxPackage $ID).PackageFullName
-Write-Host "Setting debug mode for application:" $ID
-[PackageDebug.DebugTool]::EnableDebug($packageFullName) | Out-Null
+<#
+       Licensed to the Apache Software Foundation (ASF) under one
+       or more contributor license agreements.  See the NOTICE file
+       distributed with this work for additional information
+       regarding copyright ownership.  The ASF licenses this file
+       to you under the Apache License, Version 2.0 (the
+       "License"); you may not use this file except in compliance
+       with the License.  You may obtain a copy of the License at
+
+         http://www.apache.org/licenses/LICENSE-2.0
+
+       Unless required by applicable law or agreed to in writing,
+       software distributed under the License is distributed on an
+       "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+       KIND, either express or implied.  See the License for the
+       specific language governing permissions and limitations
+       under the License.
+#>
+
+param(
+    [Parameter(Mandatory=$true, Position=0, 
ValueFromPipelineByPropertyName=$true)]
+    [string] $ID <# package.appxmanifest//Identity@name #>
+)
+
+$code = @"
+using System;
+using System.Runtime.InteropServices;
+namespace PackageDebug
+{
+    public enum PACKAGE_EXECUTION_STATE
+    {
+        PES_UNKNOWN,
+        PES_RUNNING,
+        PES_SUSPENDING,
+        PES_SUSPENDED,
+        PES_TERMINATED
+    }
+
+    [ComImport, Guid("B1AEC16F-2383-4852-B0E9-8F0B1DC66B4D")]
+    public class PackageDebugSettings
+    {
+    }
+
+    [ComImport, 
Guid("F27C3930-8029-4AD1-94E3-3DBA417810C1"),InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
+    public interface IPackageDebugSettings
+    {
+        int EnableDebugging([MarshalAs(UnmanagedType.LPWStr)] string 
packageFullName, [MarshalAs(UnmanagedType.LPWStr)] string debuggerCommandLine, 
IntPtr environment);
+        int DisableDebugging([MarshalAs(UnmanagedType.LPWStr)] string 
packageFullName);
+        int Suspend([MarshalAs(UnmanagedType.LPWStr)] string packageFullName);
+        int Resume([MarshalAs(UnmanagedType.LPWStr)] string packageFullName);
+        int TerminateAllProcesses([MarshalAs(UnmanagedType.LPWStr)] string 
packageFullName);
+        int SetTargetSessionId(int sessionId);
+        int EnumerageBackgroundTasks([MarshalAs(UnmanagedType.LPWStr)] string 
packageFullName,
+                                                      out uint taskCount, out 
int intPtr, [Out] string[] array);
+        int ActivateBackgroundTask(IntPtr something);
+        int StartServicing([MarshalAs(UnmanagedType.LPWStr)] string 
packageFullName);
+        int StopServicing([MarshalAs(UnmanagedType.LPWStr)] string 
packageFullName);
+        int StartSessionRedirection([MarshalAs(UnmanagedType.LPWStr)] string 
packageFullName, uint sessionId);
+        int StopSessionRedirection([MarshalAs(UnmanagedType.LPWStr)] string 
packageFullName);
+        int GetPackageExecutionState([MarshalAs(UnmanagedType.LPWStr)] string 
packageFullName,
+                                            out PACKAGE_EXECUTION_STATE 
packageExecutionState);
+        int RegisterForPackageStateChanges([MarshalAs(UnmanagedType.LPWStr)] 
string packageFullName,
+                               IntPtr 
pPackageExecutionStateChangeNotification, out uint pdwCookie);
+        int UnregisterForPackageStateChanges(uint dwCookie);
+    }
+
+    public class DebugTool
+    {
+        public static void EnableDebug(String packageFullName)
+        {
+            // Set debug mode for App and activate installed application
+            var debugSettings = (IPackageDebugSettings)(new 
PackageDebugSettings());
+            debugSettings.EnableDebugging(packageFullName, null, (IntPtr)null);
+        }
+    }
+}
+"@
+
+Add-Type -TypeDefinition $code
+
+$packageFullName = $(Get-AppxPackage $ID).PackageFullName
+Write-Host "Setting debug mode for application:" $ID
+[PackageDebug.DebugTool]::EnableDebug($packageFullName) | Out-Null
diff --git a/debug-mode-plugin/scripts/disable-debug-mode.js 
b/debug-mode-plugin/scripts/disable-debug-mode.js
index a74f383..71f2948 100644
--- a/debug-mode-plugin/scripts/disable-debug-mode.js
+++ b/debug-mode-plugin/scripts/disable-debug-mode.js
@@ -1,32 +1,32 @@
-/**
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-*/
-
-module.exports = function (context) {
-    const path = require('path');
-    const shell = require('shelljs');
-
-    const libPath = path.resolve(context.opts.projectRoot, 'platforms', 
'windows', 'cordova', 'lib');
-    const appUtilsPath = path.join(libPath, 'WindowsStoreAppUtils.ps1');
-    const appUtilsBackupPath = path.join(libPath, 
'WindowsStoreAppUtils.ps1.bak');
-    const destScriptPath = path.join(libPath, 'EnableDebuggingForPackage.ps1');
-
-    // Remove the patch and copu over backup StoreAppUtils script
-    shell.rm('-f', destScriptPath);
-    shell.cp('-f', appUtilsBackupPath, appUtilsPath);
-};
+/**
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+*/
+
+module.exports = function (context) {
+    const path = require('path');
+    const shell = require('shelljs');
+
+    const libPath = path.resolve(context.opts.projectRoot, 'platforms', 
'windows', 'cordova', 'lib');
+    const appUtilsPath = path.join(libPath, 'WindowsStoreAppUtils.ps1');
+    const appUtilsBackupPath = path.join(libPath, 
'WindowsStoreAppUtils.ps1.bak');
+    const destScriptPath = path.join(libPath, 'EnableDebuggingForPackage.ps1');
+
+    // Remove the patch and copu over backup StoreAppUtils script
+    shell.rm('-f', destScriptPath);
+    shell.cp('-f', appUtilsBackupPath, appUtilsPath);
+};
diff --git a/debug-mode-plugin/scripts/enable-debug-mode.js 
b/debug-mode-plugin/scripts/enable-debug-mode.js
index a4c6cdb..5d5f7f7 100644
--- a/debug-mode-plugin/scripts/enable-debug-mode.js
+++ b/debug-mode-plugin/scripts/enable-debug-mode.js
@@ -1,46 +1,46 @@
-/**
-    Licensed to the Apache Software Foundation (ASF) under one
-    or more contributor license agreements.  See the NOTICE file
-    distributed with this work for additional information
-    regarding copyright ownership.  The ASF licenses this file
-    to you under the Apache License, Version 2.0 (the
-    "License"); you may not use this file except in compliance
-    with the License.  You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing,
-    software distributed under the License is distributed on an
-    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-    KIND, either express or implied.  See the License for the
-    specific language governing permissions and limitations
-    under the License.
-*/
-
-module.exports = function (context) {
-    const path = require('path');
-    const shell = require('shelljs');
-
-    const libPath = path.resolve(context.opts.projectRoot, 'platforms', 
'windows', 'cordova', 'lib');
-    const appUtilsPath = path.join(libPath, 'WindowsStoreAppUtils.ps1');
-    const appUtilsBackupPath = path.join(libPath, 
'WindowsStoreAppUtils.ps1.bak');
-    const srcScriptPath = path.join(__dirname, 
'EnableDebuggingForPackage.ps1');
-    const destScriptPath = path.join(libPath, 'EnableDebuggingForPackage.ps1');
-
-    // copy over the patch
-    shell.cp('-f', srcScriptPath, libPath);
-    shell.cp('-f', appUtilsPath, appUtilsBackupPath);
-
-    // add extra code to patch
-    shell.sed(
-        '-i',
-        /^\s*\$appActivator .*$/gim,
-        '$&\n\n' +
-        '    # START ENABLE DEBUG MODE SECTION\n' +
-        '    powershell ' + destScriptPath + ' $$ID\n' +
-        '    $Ole32 = Add-Type -MemberDefinition 
"[DllImport(\'Ole32.dll\')]public static extern int 
CoAllowSetForegroundWindow(IntPtr pUnk, IntPtr lpvReserved);" -Name "Ole32" 
-Namespace "Win32" -PassThru\n' +
-        '    
$Ole32::CoAllowSetForegroundWindow([System.Runtime.InteropServices.Marshal]::GetIUnknownForObject($appActivator),
 [System.IntPtr]::Zero)\n' +
-        '    # END ENABLE DEBUG MODE SECTION\n',
-        appUtilsPath
-    );
-};
+/**
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+*/
+
+module.exports = function (context) {
+    const path = require('path');
+    const shell = require('shelljs');
+
+    const libPath = path.resolve(context.opts.projectRoot, 'platforms', 
'windows', 'cordova', 'lib');
+    const appUtilsPath = path.join(libPath, 'WindowsStoreAppUtils.ps1');
+    const appUtilsBackupPath = path.join(libPath, 
'WindowsStoreAppUtils.ps1.bak');
+    const srcScriptPath = path.join(__dirname, 
'EnableDebuggingForPackage.ps1');
+    const destScriptPath = path.join(libPath, 'EnableDebuggingForPackage.ps1');
+
+    // copy over the patch
+    shell.cp('-f', srcScriptPath, libPath);
+    shell.cp('-f', appUtilsPath, appUtilsBackupPath);
+
+    // add extra code to patch
+    shell.sed(
+        '-i',
+        /^\s*\$appActivator .*$/gim,
+        '$&\n\n' +
+        '    # START ENABLE DEBUG MODE SECTION\n' +
+        '    powershell ' + destScriptPath + ' $$ID\n' +
+        '    $Ole32 = Add-Type -MemberDefinition 
"[DllImport(\'Ole32.dll\')]public static extern int 
CoAllowSetForegroundWindow(IntPtr pUnk, IntPtr lpvReserved);" -Name "Ole32" 
-Namespace "Win32" -PassThru\n' +
+        '    
$Ole32::CoAllowSetForegroundWindow([System.Runtime.InteropServices.Marshal]::GetIUnknownForObject($appActivator),
 [System.IntPtr]::Zero)\n' +
+        '    # END ENABLE DEBUG MODE SECTION\n',
+        appUtilsPath
+    );
+};
diff --git a/ios-geolocation-permissions-plugin/src/ios/CDVAllowLocation.m 
b/ios-geolocation-permissions-plugin/src/ios/CDVAllowLocation.m
index 0545f1f..5c9b7f4 100644
--- a/ios-geolocation-permissions-plugin/src/ios/CDVAllowLocation.m
+++ b/ios-geolocation-permissions-plugin/src/ios/CDVAllowLocation.m
@@ -1,36 +1,36 @@
-/*
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements.  See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership.  The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License.  You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied.  See the License for the
- specific language governing permissions and limitations
- under the License.
- */
-
-#import <Cordova/CDVPlugin.h>
-#import <CoreLocation/CoreLocation.h>
-
-@interface CLLocationManager()
-+ (void)setAuthorizationStatus:(BOOL)status forBundleIdentifier:(NSString 
*)bundleIdentifier;
-@end
-
-@interface CDVAllowLocation : CDVPlugin <CLLocationManagerDelegate>{
-}
-@end
-
-@implementation CDVAllowLocation
-- (void)pluginInitialize
-{
-    [CLLocationManager setAuthorizationStatus:YES 
forBundleIdentifier:[[NSBundle mainBundle] bundleIdentifier]];
-}
-@end
+/*
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+ */
+
+#import <Cordova/CDVPlugin.h>
+#import <CoreLocation/CoreLocation.h>
+
+@interface CLLocationManager()
++ (void)setAuthorizationStatus:(BOOL)status forBundleIdentifier:(NSString 
*)bundleIdentifier;
+@end
+
+@interface CDVAllowLocation : CDVPlugin <CLLocationManagerDelegate>{
+}
+@end
+
+@implementation CDVAllowLocation
+- (void)pluginInitialize
+{
+    [CLLocationManager setAuthorizationStatus:YES 
forBundleIdentifier:[[NSBundle mainBundle] bundleIdentifier]];
+}
+@end


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to