Manual installation for Android
masterFollow these steps to manually configure Android:
Update MainActivity.java:
- Add
import com.otomogroove.OGReactNativeWaveform.OGWavePackage;to the imports. - Add
new OGWavePackage()to the list returned by thegetPackages()method.
- Add
Update settings.gradle: Append these lines to
android/settings.gradle:include ':react-native-audiowaveform' project(':react-native-audiowaveform').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-audiowaveform/android')Update app/build.gradle: Insert this line inside the
dependenciesblock inandroid/app/build.gradle:compile project(':react-native-audiowaveform')
include ':react-native-audiowaveform'
project(':react-native-audiowwaveform').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-audiowaveform/android')