fix ssl handshake and bottom nav height
This commit is contained in:
@@ -20,8 +20,8 @@ android {
|
||||
applicationId "ch.pizzalemon.android"
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 35
|
||||
versionCode 29// play store'daki version --> canlı: 0 - dahili test: 17
|
||||
versionName "2.09" // play store'daki version --> canlı: 0.00 - dahili test: 1.17
|
||||
versionCode 30// play store'daki version --> canlı: 0 - dahili test: 17
|
||||
versionName "2.10" // play store'daki version --> canlı: 0.00 - dahili test: 1.17
|
||||
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
|
||||
multiDexEnabled true
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ import com.squareup.picasso.Picasso;
|
||||
import java.security.SecureRandom;
|
||||
|
||||
import javax.net.ssl.SSLContext;
|
||||
import javax.net.ssl.SSLSocketFactory;
|
||||
import javax.net.ssl.TrustManager;
|
||||
|
||||
import ch.pizzalemon.android.api.ApiConstants;
|
||||
@@ -73,12 +74,11 @@ public class App extends MultiDexApplication {
|
||||
|
||||
private void addSSLTrustToOkHttp(OkHttpClient.Builder okHttpClientBuilder) {
|
||||
try {
|
||||
TrustManager[] trustAllCerts = new TrustManager[]{new SSLTrustManager()};
|
||||
SSLContext sslContext = SSLContext.getInstance("SSL");
|
||||
sslContext.init(null, trustAllCerts, new SecureRandom());
|
||||
HttpLoggingInterceptor logging = new HttpLoggingInterceptor();
|
||||
logging.setLevel(HttpLoggingInterceptor.Level.BODY);
|
||||
okHttpClientBuilder.sslSocketFactory(sslContext.getSocketFactory());
|
||||
SSLTrustManager trustManager = new SSLTrustManager();
|
||||
SSLContext sslContext = SSLContext.getInstance("TLS");
|
||||
sslContext.init(null, new TrustManager[]{ trustManager }, new SecureRandom());
|
||||
SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();
|
||||
okHttpClientBuilder.sslSocketFactory(sslSocketFactory, trustManager);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ import java.security.SecureRandom;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import javax.net.ssl.SSLContext;
|
||||
import javax.net.ssl.SSLSocketFactory;
|
||||
import javax.net.ssl.TrustManager;
|
||||
|
||||
import ch.pizzalemon.android.BuildConfig;
|
||||
@@ -98,12 +99,11 @@ public class ApiService {
|
||||
|
||||
private void addSSLTrustToOkHttp(OkHttpClient.Builder okHttpClientBuilder) {
|
||||
try {
|
||||
TrustManager[] trustAllCerts = new TrustManager[]{new SSLTrustManager()};
|
||||
SSLContext sslContext = SSLContext.getInstance("SSL");
|
||||
sslContext.init(null, trustAllCerts, new SecureRandom());
|
||||
HttpLoggingInterceptor logging = new HttpLoggingInterceptor();
|
||||
logging.setLevel(HttpLoggingInterceptor.Level.BODY);
|
||||
okHttpClientBuilder.sslSocketFactory(sslContext.getSocketFactory());
|
||||
SSLTrustManager trustManager = new SSLTrustManager();
|
||||
SSLContext sslContext = SSLContext.getInstance("TLS");
|
||||
sslContext.init(null, new TrustManager[]{ trustManager }, new SecureRandom());
|
||||
SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();
|
||||
okHttpClientBuilder.sslSocketFactory(sslSocketFactory, trustManager);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@
|
||||
<com.google.android.material.bottomnavigation.BottomNavigationView
|
||||
android:id="@+id/bottomNavigationView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?android:attr/actionBarSize"
|
||||
android:layout_height="72dp"
|
||||
app:itemIconTint="@drawable/selector_bottom_navigation_item"
|
||||
app:itemTextColor="@drawable/selector_bottom_navigation_item"
|
||||
android:background="@color/pizzalemon_dark_green"
|
||||
@@ -132,7 +132,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_centerInParent="true"
|
||||
android:layout_marginBottom="-8dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:elevation="9dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user