Release 1.1.4-beta.6

main
Vavassor 7 years ago
parent 81089ade92
commit b5039b7d8c
  1. 11
      app/build.gradle
  2. 3
      app/proguard-rules.pro
  3. 12
      app/src/main/java/com/keylesspalace/tusky/TuskyApplication.java

@ -1,14 +1,17 @@
apply plugin: 'com.android.application'
android {
signingConfigs {
}
compileSdkVersion 25
buildToolsVersion "25.0.3"
defaultConfig {
applicationId "com.keylesspalace.tusky"
minSdkVersion 15
targetSdkVersion 25
versionCode 21
versionName "1.1.4-beta.5"
versionCode 22
versionName "1.1.4-beta.6"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary true
}
@ -59,11 +62,9 @@ dependencies {
}
compile 'org.bouncycastle:bcprov-jdk15on:1.57'
testCompile 'junit:junit:4.12'
//room
compile "android.arch.persistence.room:runtime:1.0.0-alpha3"
compile 'android.arch.persistence.room:runtime:1.0.0-alpha3'
annotationProcessor "android.arch.persistence.room:compiler:1.0.0-alpha3"
googleCompile 'com.google.firebase:firebase-crash:10.0.1'
}

@ -59,4 +59,5 @@ public *;
}
# for bouncycastle
-dontwarn org.bouncycastle.**
-keep class org.bouncycastle.jce.provider.**
-dontwarn javax.naming.**

@ -65,7 +65,9 @@ public class TuskyApplication extends Application {
Provider existingProvider = Security.getProvider(providerName);
if (existingProvider == null) {
try {
Security.addProvider(new BouncyCastleProvider());
int priority = Security.addProvider(new BouncyCastleProvider());
Log.i(TAG, String.format("BouncyCastleProvider was added with priority %d.",
priority));
} catch (SecurityException e) {
Log.e(TAG, "Permission to add the security provider was denied.");
}
@ -82,13 +84,17 @@ public class TuskyApplication extends Application {
try {
Security.removeProvider(providerName);
Security.insertProviderAt(replacement, priority);
Log.i(TAG, String.format(
"BouncyCastleProvider version %f was updated to version %f.",
existingProvider.getVersion(), replacement.getVersion()));
} catch (SecurityException e) {
Log.e(TAG, "Permission to update a security provider was denied.");
}
}
}
db = Room.databaseBuilder(getApplicationContext(),
AppDatabase.class, "tuskyDB").allowMainThreadQueries().build();
db = Room.databaseBuilder(getApplicationContext(), AppDatabase.class, "tuskyDB")
.allowMainThreadQueries()
.build();
}
}
Loading…
Cancel
Save