This repository has been archived by the owner on Dec 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 80
Manual Installation
Bruno Tortato Furtado edited this page Jan 2, 2020
·
4 revisions
- Add the following lines to
android/settings.gradle
:
include ':react-native-sms-retriever'
project(':react-native-sms-retriever').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-sms-retriever/android')
- Add the compile line to the dependencies in
android/app/build.gradle
:
dependencies {
// ...
compile project(':react-native-sms-retriever')
}
- Add the import and link the package in
MainApplication.java
:
import me.furtado.smsretriever.RNSmsRetrieverPackage; // <-- Add the import
public class MainApplication extends Application implements ReactApplication {
// ...
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
// ...
new RNSmsRetrieverPackage() // <-- Add it to the packages list
);
}
// ...
}
Made with ❤ in Curitiba 🇧🇷