Use Conscrypt as Security Provider
This commit is contained in:
parent
711298c899
commit
cd442a24f5
|
@ -36,6 +36,7 @@ dependencies {
|
|||
|
||||
implementation 'org.slf4j:slf4j-api:1.7.30'
|
||||
runtimeOnly 'com.github.tony19:logback-android:2.0.0'
|
||||
implementation 'org.conscrypt:conscrypt-android:2.4.0'
|
||||
//noinspection GradleDependency: 3.12.* is the latest version compatible with Android <5
|
||||
implementation 'com.squareup.okhttp3:okhttp:3.12.12'
|
||||
implementation 'commons-codec:commons-codec:1.14' // beware: a version included in Android is used instead
|
||||
|
|
|
@ -3,8 +3,11 @@ package dummydomain.yetanothercallblocker;
|
|||
import android.annotation.SuppressLint;
|
||||
import android.app.Application;
|
||||
|
||||
import org.conscrypt.Conscrypt;
|
||||
import org.greenrobot.eventbus.EventBus;
|
||||
|
||||
import java.security.Security;
|
||||
|
||||
import dummydomain.yetanothercallblocker.data.Config;
|
||||
|
||||
public class App extends Application {
|
||||
|
@ -20,6 +23,8 @@ public class App extends Application {
|
|||
|
||||
instance = this;
|
||||
|
||||
Security.insertProviderAt(Conscrypt.newProvider(), 1);
|
||||
|
||||
settings = new Settings(this);
|
||||
settings.init();
|
||||
|
||||
|
|
Loading…
Reference in New Issue