This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Headers("Content-Type:application/json; charset=UTF-8") | |
@GET("yourwebsite/{someParam}/login") | |
fun logout(@Header(UUID.randomUUID().toString()) authToken: String?, @Path("someParam") someParam: String?): Observable<LoginResponseViewModel> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<com.our.project.common.PasswordTextInputLayout | |
android:id="@+id/login_password_layout" | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:layout_marginEnd="35dp" | |
android:layout_marginStart="35dp" | |
android:layout_marginTop="2dp" | |
android:theme="@style/EditTextBlue" | |
app:errorEnabled="false" | |
app:hintEnabled="true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: java:8 | |
pipelines: | |
branches: | |
deployment: | |
- step: | |
caches: | |
- gradle | |
- android-sdk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Headers("Content-Type:application/json; charset=UTF-8") | |
@GET("yourwebsite/{someParam}/login") | |
fun logout(@Path("someParam") someParam: String?): Observable<LoginResponseViewModel> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by Dinorah Tovar on 18/01/19. | |
* Main Activity that verify if the user is availbale | |
*/ | |
class MainActivity : AppCompatActivity() { | |
private var viewModel: MainViewModel? = null | |
/** | |
* On Create View instance |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by Dinorah Tovar on 8/21/18 | |
* All presenter should extend from this. | |
*/ | |
open class BasePresenter : DisposableImpl { | |
/** | |
* Save disposables in a list to dispose them once user is navigate out of screen. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by Dinorah Tovar on 2/22/18. | |
* Application Owner using lifecycleObserver to know the application of | |
* the application. | |
*/ | |
class ApplicationOwner : LifecycleObserver { | |
/** | |
* Companion Object |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Provides | |
@Singleton | |
fun getUnsafeOkHttpClient(): OkHttpClient { | |
val interceptor = HttpLoggingInterceptor() | |
interceptor.level = HttpLoggingInterceptor.Level.BODY | |
val builder = OkHttpClient.Builder() | |
builder.addInterceptor(interceptor) | |
.connectTimeout(30, TimeUnit.SECONDS) | |
.readTimeout(30, TimeUnit.SECONDS) | |
.followRedirects(true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by Dinorah Tovar on 12/20/17. | |
* RecyclerViewHolder in separated files | |
* Butterknife options for inflate holder is avaliable with comments | |
*/ | |
public class FirstHolder extends RecyclerView.ViewHolder { | |
private TextView textView; | |
// @BindView(R.id.textView2) TextView ButterknifeTextView; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by Dinorah Tovar on 12/20/17. | |
* ViewPager | |
*/ | |
public class CustomViewPager extends ViewPager { | |
public CustomViewPager(Context context) { | |
super(context); | |
setMyScroller(); |
OlderNewer