open-index/open-npm huggingface dataset:
npm package: @globules-io/cordova-plugin-debug-check
Description: Cordova plugin to check if an app is being debugged
Author: Globules.io
Latest version: 1.1.2

# cordova-plugin-debug-check
Check if an app is being debugged via ADB/Chrome

## Installation
```bash
cordova plugin add @globules-io/cordova-plugin-debug-check
cordova plugin rm @globules-io/cordova-plugin-debug-check
```

## Supported Platforms
Android

## JS API
Check in one call if the app is being debugged
```bash
DebugCheck.isDebugging(
     function (bool) { 
          console.log('Debugger attached:', bool); 
          if (bool) {
                // Your policy: kill app, show message, whatever navigator.app.exitApp(); 
          } 
     }, 
     function (err) { 
          console.error('DebugCheck error:', err); 
     }
);
```

Get information
```bash
DebugCheck.getStats(
     function (stats) { 
          console.log(stats);
          //{ javaDebugger: true|false, webviewDebugger: true|false, adbEnabled: true|false, emulated: true|false, fridaPresent: true|false, hookFramework: true|false }    
     }, 
     function (err) { 
          console.error('DebugCheck error:', err); 
     }
);
```

Check if app is compromised
```bash
DebugCheck.isCompromised(
     function (bool) {
          console.log(true);
          //if true, app is compromised
     },
     function (err) { 
          console.error('DebugCheck error:', err); 
     }
);

```

Recursive check if app is compromised (in milliseconds)
```bash
DebugCheck.watch(ms);
```
then listen to custom event DebugCheck.COMPROMISED
npm package: @globules-io/cordova-plugin-disable-font-scaling
Description: Cordova Disable Font Scaling
Author: globules.io
Latest version: 1.0.3

# Cordova Plugin Disable Font Scaling

Disable font scaling for Android and iOS


## Installation

To install the plugin, run

```bash
  cordova plugin add @globules-io/cordova-plugin-disable-font-scaling
```

## Uninstall

To remove the plugin, run

```bash
  cordova plugin rm @globules-io/cordova-plugin-disable-font-scaling
```
npm package: @globules-io/cordova-plugin-installer-id
Description: Cordova plugin to check the installer id on Android
Author: Globules.io
Latest version: 1.0.0

# cordova-plugin-installer-id
Cordova plugin for Android to detect installer id

## Installation
```bash
cordova plugin add @globules-io/cordova-plugin-installer-id
cordova plugin rm @globules-io/cordova-plugin-installer-id
```
## Supported Platforms
Android

## JS API
Get the installer id
```bash
InstallerId.getInstaller(function(installerId) {
    console.log("Installer ID:", installerId);
    if (!installerId || installerId === "") {
        console.log("App was sideloaded");
    } else if (installerId === "com.android.vending") {
        console.log("Installed from Google Play");
    } else {
        console.log("Installed from:", installerId);
    }
}, function(err) {
    console.error("Error retrieving installer ID:", err);
});
```

Check if app was sideloaded
```bash
InstallerId.sideLoaded(function(bool) {
     console.log("Add sideLoaded ?", bool);
}, function(err) {});
```
npm package: @globules-io/cordova-plugin-ios-xhr
Description: Cordova iOS 6+ File XHR Plugin
Author: globules.io
Latest version: 1.2.4

# cordova-plugin-ios-xhr
## cordova-ios 6+ File XHR Plugin

### About
> Originally, this plugin was a merge of two other plugins, and made compatible for cordova-ios 6+.

> [cordova-plugin-wkwebview-file-xhr](https://github.com/oracle/cordova-plugin-wkwebview-file-xhr)

> [cordova-plugin-wkwebviewxhrfix](https://github.com/TheMattRay/cordova-plugin-wkwebviewxhrfix)

> It's been since remodified and the code from [TheMattRay](https://github.com/TheMattRay) has now been entirely removed. It is kept here as original reference. 
> This could be turned into a PR to [cordova-plugin-wkwebview-file-xhr](https://github.com/oracle/cordova-plugin-wkwebview-file-xhr), if time allows it, or if anybody wants to go at it! All credits go to Oracle. 

### Install

> Install latest release

     cordova plugin add @globules-io/cordova-plugin-ios-xhr
     
> Or install from github master

     cordova plugin add https://github.com/globules-io/cordova-plugin-ios-xhr
     
### Uninstall

     cordova plugin rm @globules-io/cordova-plugin-ios-xhr
     
### Preferences

     <preference name="NativeXHRLogging" value="full|none" />
     <preference name="AllowUntrustedCerts"  value="true|false" />
     <preference name="InterceptRemoteRequests" value="all|secureOnly" />
     <preference name="allowFileAccessFromFileURLs" value="true|false" />
     <preference name="allowUniversalAccessFromFileURLs" value="true|false" />
     
### Description

>The default behavior of WKWebView is to raise a cross origin exception when loading files from the main bundle using the file protocol - "file://". This plugin works around this shortcoming by loading files via native code if the web view's current location has "file" protocol and the target URL passed to the open method of the XMLHttpRequest is relative. As a security measure, the plugin verifies that the standardized path of the target URL is within the "www" folder of the application's main bundle or in the /Library path of the application data directory.

>Since the application's starting page is loaded from the device's file system, all XHR requests to remote endpoints are considered cross origin. For such requests, WKWebView specifies "null" as the value of the Origin header, which will be rejected by endpoints that are configured to disallow requests from the null origin. This plugin works around that issue by handling all remote requests at the native layer where the origin header will be excluded

>Fixes local file access via XHR with WKWebView

>CustomUserAgent is only set for XHR requests and does not override cordova's OverrideUserAgent
npm package: @globules-io/cordova-plugin-proguard
Description: Cordova plugin for ProGuard
Author: Aleksandr Filatov
Latest version: 2.2.2

# cordova-plugin-proguard

[![NPM version][npm-image]][npm-url]
[![npm](https://img.shields.io/npm/dm/cordova-plugin-proguard.svg)](https://www.npmjs.com/package/@globules-io/cordova-plugin-proguard)

> Cordova plugin which activates ProGuard and minification for debug and release builds in your cordova mobile application.

## What is ProGuard?

> ProGuard is the open source optimizer for Java bytecode

You can read more about it on [ProGuard official website](https://www.guardsquare.com/en/proguard) and on [android developer portal](https://developer.android.com/studio/build/shrink-code.html)

## How to use

- If you already have installed [Android Studio](https://developer.android.com/studio/index.html) then seems you already have installed ProGuard on your machine. If no, then  you should download and install it manually from [ProGuard official website](https://www.guardsquare.com/en/proguard).
- ```cordova plugin add @globules-io/cordova-plugin-proguard``` - this command will configure your `build.gradle` file and copy `proguard-custom.txt` to `${androidPlatformDirectory}/assets/www/proguard-custom.txt`

## Customization

`proguard-custom.txt` file contains some basic rules for your cordova mobile app. Feel free to [fork this repo](https://github.com/greybax/cordova-plugin-proguard/fork) and modify it as you want. 

You can also to check out some [Android ProGuard snippets](https://github.com/krschultz/android-proguard-snippets)

If you want to add rules to this `proguard-custom.txt`, please create your own `proguard-custom.txt` and add this to your projectroot folder. 
Upon preparing the app, the rules will merged with the base file.
Example rules for various situations will be in the commented section in the plugin `proguard-custom.txt`.

```
ionic cordova platform rm android
ionic cordova platform add android
```

## History
 - v1.0.0 - supports Cordova version <7
 - v2.0.0 - supports Cordova version 7+ (thanks to @SujitSingh)

## Why I've done this plugin?

https://alfilatov.com/posts/how-to-setup-proguard-in-cordova-application/

## License

MIT © [Aleksandr Filatov](https://alfilatov.com)

[npm-url]: https://www.npmjs.com/package/@globules-io/cordova-plugin-proguard
[npm-image]: https://img.shields.io/npm/v/cordova-plugin-proguard.svg
npm package: @globules-io/cordova-plugin-remove-duplicate-permissions
Description: Cordova plugin to clean duplicate permissions from AndroidManifest.xml
Author: Globules.io
Latest version: 1.0.1

# cordova-plugin-remove-duplicate-permissions
Cordova plugin to clean up manifest and remove duplicate permissions added by plugins

### Add the plugin 
> cordova plugin add @globules-io/cordova-plugin-remove-duplicate-permissions

### Remove the plugin 
> cordova plugin rm @globules-io/cordova-plugin-remove-duplicate-permissions