react-native-xposed-utils
v1.0.0
Published
## Description
Downloads
17
Maintainers
Readme
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
- 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 thegetPackages()
method
- 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')
- 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