#1259 Crash Report: UnsatisfiedLinkError - integrate with changes to kiwix-lib

This commit is contained in:
Sean Mac Gillicuddy 2019-07-25 15:32:53 +01:00
parent 249c00ec03
commit ce97adc7ee

View File

@ -17,6 +17,7 @@
*/
package org.kiwix.kiwixmobile.di.modules;
import android.content.Context;
import dagger.Module;
import dagger.Provides;
import javax.inject.Singleton;
@ -29,7 +30,7 @@ import org.kiwix.kiwixlib.JNIKiwix;
@Module public class JNIModule {
@Provides
@Singleton
public JNIKiwix providesJNIKiwix() {
return new JNIKiwix();
public JNIKiwix providesJNIKiwix(Context context) {
return new JNIKiwix(context);
}
}