Skip to content

Instantly share code, notes, and snippets.

View deniszink's full-sized avatar

Denis Zinkovskiy deniszink

  • Ukraine
View GitHub Profile
import com.sun.org.apache.xml.internal.security.encryption.EncryptionMethod;
import javax.crypto.*;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import java.io.*;
import java.net.URLEncoder;
import java.security.*;
import java.security.spec.AlgorithmParameterSpec;
@deniszink
deniszink / SignInPresenter.kt
Created September 11, 2017 13:07
Example of Presenter class
package com.wellaapp.presentation.screens.authorization.presenter
import android.content.Context
import com.facebook.AccessToken
import com.hannesdorfmann.mosby.mvp.MvpBasePresenter
import com.wellaapp.data.entities.User
import com.wellaapp.data.error_handler.RetrofitException
import com.wellaapp.data.model.LoginResponseModel
import com.wellaapp.domain.action.sessions.AnonymousLogin
import com.wellaapp.domain.action.sessions.AutoLogin
@deniszink
deniszink / RequestAction.kt
Last active September 11, 2017 13:05
Base class to do network requests and children of it to do particular job
package com.wellaapp.domain.action
import android.content.Context
import android.view.View
import com.wellaapp.data.error_handler.RetrofitException
import com.wellaapp.presentation.extensions.isInternetConnectionExists
import io.reactivex.Observable
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.schedulers.Schedulers
07-14 10:22:58.933 2462-16349/com.google.android.gms V/FA-SVC: Logging event: origin=auto,name=session_start(_s),params=Bundle[{firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=-2277481415355967345}]
07-14 10:22:58.936 2462-16349/com.google.android.gms V/FA-SVC: Saving event, name, data size: session_start(_s), 53
07-14 10:22:58.936 2462-16349/com.google.android.gms V/FA-SVC: Event recorded: Event{appId='com.contentoffice', name='session_start(_s)', params=Bundle[{firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=-2277481415355967345}]}
07-14 10:22:58.938 2462-16349/com.google.android.gms V/FA-SVC: Upload scheduled in approximately ms: 456
07-14 10:22:58.939 2462-16349/com.google.android.gms V/FA-SVC: Cancelling job. JobID: 812057698
07-14 10:22:58.940 2462-16349/com.google.android.gms V/FA-SVC: Scheduling upload with DelayedRunnable
07-14 10:22:58.940 2462-16349/com.google.android.gms V/FA-SVC: Scheduling upload wi
package com.wellaapp.presentation.screens.authorization.view
import android.app.Activity
import android.content.Intent
import com.facebook.CallbackManager
import com.facebook.FacebookCallback
import com.facebook.FacebookException
import com.facebook.login.LoginManager
import com.facebook.login.LoginResult
import com.wellaapp.presentation.screens.authorization.presenter.AuthorizationMVP
package com.wellaapp.presentation.quickblox.chat.callback
import android.support.design.widget.Snackbar
import android.util.Log
import android.view.View
import org.jivesoftware.smack.ConnectionListener
import org.jivesoftware.smack.XMPPConnection
open class VerboseQbChatConnectionListener(private val rootView: View) : ConnectionListener {
package com.android.handsfree.data;
import com.android.handsfree.BuildConfig;
/**
* Created by denis on 4/11/16.
*/
public interface RestAPI {
String API_ENDPOINT = BuildConfig.BASE_URL;
}