1.1.2 • Published 5 years ago

react-native-verify-installer v1.1.2

Weekly downloads
12
License
MIT
Repository
github
Last release
5 years ago

react-native-verify-installer

Android only React Native library to retrieve the source of installation for a given package name

Getting started

$ npm install react-native-verify-installer --save

Automatic installation

$ react-native link react-native-verify-installer

Manual installation

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

Usage

import VerifyInstaller from 'react-native-verify-installer';

VerifyInstaller.getInstallerSource("com.android.chrome", source => {
      console.log(source);//Will return one of ['Play Store','Amazon Appstore','ADB','Unknown']
});
1.1.2

5 years ago

1.1.0

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago