I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| import com.squareup.okhttp.OkHttpClient; | |
| import java.security.cert.CertificateException; | |
| import javax.net.ssl.HostnameVerifier; | |
| import javax.net.ssl.SSLContext; | |
| import javax.net.ssl.SSLSession; | |
| import javax.net.ssl.SSLSocketFactory; | |
| import javax.net.ssl.TrustManager; | |
| import javax.net.ssl.X509TrustManager; | |
| public class OkHttpUtils { |
| public class TextDrawable extends Drawable { | |
| private final String text; | |
| private final Paint paint; | |
| public TextDrawable(String text) { | |
| this.text = text; | |
| this.paint = new Paint(); |
| /* | |
| * Copyright (C) 2006 The Android Open Source Project | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| public class MainActivity extends AppCompatActivity implements Updatable { | |
| private TextView textView; | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setContentView(R.layout.activity_main); | |
| textView = (TextView) findViewById(R.id.text); |
| public class CustomMatchers { | |
| public static Matcher<View> withBackground(final int resourceId) { | |
| return new TypeSafeMatcher<View>() { | |
| @Override | |
| public boolean matchesSafely(View view) { | |
| return sameBitmap(view.getContext(), view.getBackground(), resourceId); | |
| } | |
| @Override |
| -ignorewarnings | |
| -keep public class * extends android.os.Binder | |
| -keepclassmembers enum * { | |
| **[] $VALUES; | |
| public *; | |
| } | |
| # v7 | |
| -keep public class android.support.v7.widget.** { *; } | |
| -keep public class android.support.v7.internal.widget.** { *; } |
| ### Keybase proof | |
| I hereby claim: | |
| * I am drakeet on github. | |
| * I am drakeet (https://keybase.io/drakeet) on keybase. | |
| * I have a public key ASCtsAYEK4FBAGci9LMr_H8U7MURxIVrbnVqfgzSUCyzpgo | |
| To claim this, I am signing this object: |
| import android.support.v7.widget.RecyclerView | |
| /** | |
| * @author drakeet | |
| */ | |
| class QuickReturnDelegate(private val scrollSlop: Int = 12) : RecyclerView.OnScrollListener() { | |
| private lateinit var callback: (hide: Boolean) -> Unit | |
| private var scrollY: Int = 0 |
| -assumenosideeffects class kotlin.jvm.internal.Intrinsics { | |
| static void checkParameterIsNotNull(java.lang.Object, java.lang.String); | |
| static void checkExpressionValueIsNotNull(java.lang.Object, java.lang.String); | |
| static void checkNotNullExpressionValue(java.lang.Object, java.lang.String); | |
| static void checkReturnedValueIsNotNull(java.lang.Object, java.lang.String, java.lang.String); | |
| static void checkReturnedValueIsNotNull(java.lang.Object, java.lang.String); | |
| static void checkFieldIsNotNull(java.lang.Object, java.lang.String, java.lang.String); | |
| static void checkFieldIsNotNull(java.lang.Object, java.lang.String); | |
| static void checkNotNull(java.lang.Object, java.lang.String); | |
| static void checkNotNullParameter(java.lang.Object, java.lang.String); |