react-native-xposed-utils
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

React Native Exposed Utils

Description

A wrapper around XposedUtils.java by Jared Rummler that allows your application to detect the presence of Xposed Framework on the phone.

Getting started

$ npm install react-native-xposed-utils --save

Mostly automatic installation

$ react-native link react-native-xposed-utils

Manual installation

Android

  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import com.reactlibrary.RNXposedUtilsPackage; to the imports at the top of the file
  • Add new RNXposedUtilsPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-xposed-utils'
    project(':react-native-xposed-utils').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-xposed-utils/android')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-xposed-utils')
    

Usage

import RNXposedUtils from 'react-native-xposed-utils';
 
// TODO: What to do with the module?
RNXposedUtils;

Credits

XposedUtils.java by Jared Rummler

Package Sidebar

Install

npm i react-native-xposed-utils

Weekly Downloads

0

Version

1.0.0

License

Apache-2.0

Unpacked Size

21.4 kB

Total Files

12

Last publish

Collaborators

  • mtumiati