This file contains hidden or 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
# Github actions to run detekt, klint & jacoco on all modules of the project, then build and test the artifacts | |
name: Pre Merge Checks | |
# Controls when the action will run. | |
on: | |
# Triggers the workflow on push or pull request events but only for the master branch | |
push: | |
branches: [ master ] | |
pull_request: |
This file contains hidden or 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
Github actions to run detekt, klint & jacoco on all modules of the project, then build and test the artifacts |
This file contains hidden or 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
package com.changui.penguinpay | |
import android.os.SystemClock.sleep | |
import androidx.arch.core.executor.testing.InstantTaskExecutorRule | |
import androidx.test.espresso.Espresso.onData | |
import androidx.test.espresso.Espresso.onView | |
import androidx.test.espresso.IdlingRegistry | |
import androidx.test.espresso.action.ViewActions.* | |
import androidx.test.espresso.assertion.ViewAssertions.matches | |
import androidx.test.espresso.matcher.ViewMatchers.* |
This file contains hidden or 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
package com.changui.payoneerhomeexercise; | |
import com.changui.payoneerhomeexercise.data.ApiService; | |
import com.changui.payoneerhomeexercise.data.GetPaymentMethodsMapper; | |
import com.changui.payoneerhomeexercise.data.PaymentMethodRepositoryImpl; | |
import com.changui.payoneerhomeexercise.data.apiresponse.PaymentMethodsApiResponse; | |
import com.changui.payoneerhomeexercise.domain.PaymentMethodUIModel; | |
import com.changui.payoneerhomeexercise.domain.SchedulersFacade; | |
import org.junit.jupiter.api.BeforeEach; |
This file contains hidden or 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
package com.changui.payoneerhomeexercise.data; | |
import com.changui.payoneerhomeexercise.domain.PaymentMethodUIModel; | |
import com.changui.payoneerhomeexercise.domain.PaymentMethodRepository; | |
import com.changui.payoneerhomeexercise.domain.SchedulersFacade; | |
import java.util.List; | |
import javax.inject.Inject; | |
import io.reactivex.Single; |
This file contains hidden or 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
package com.changui.penguinpay | |
import android.content.Context | |
import android.net.ConnectivityManager | |
interface ExchangeRateRepoInt { | |
suspend fun getExchangeRates(): ExchangeRates? | |
} |
This file contains hidden or 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
package com.changui.penguinpay | |
import androidx.arch.core.executor.testing.InstantTaskExecutorRule | |
import kotlinx.coroutines.ExperimentalCoroutinesApi | |
import org.junit.Assert.assertNotNull | |
import org.junit.Before | |
import org.junit.Rule | |
import org.junit.Test | |
import org.junit.rules.ExpectedException | |
import org.junit.rules.TestRule |
This file contains hidden or 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
import android.graphics.*; | |
import android.net.Uri; | |
public class BitmapFileLoader | |
{ | |
public static Bitmap loadFromUri(Uri fileUri, float maxWidth, float maxHeight) | |
{ | |
BitmapFactory.Options options = new BitmapFactory.Options(); | |
options.inJustDecodeBounds = true; | |
BitmapFactory.decodeFile(fileUri.getPath(), options); |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:orientation="vertical" | |
app:layout_behavior="@string/appbar_scrolling_view_behavior"> | |
<RelativeLayout |
This file contains hidden or 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
package fr.koonda.koonda.ui.fragments; | |
import android.os.Bundle; | |
import android.support.annotation.Nullable; | |
import android.support.v4.app.DialogFragment; | |
import android.support.v7.widget.LinearLayoutManager; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; |
NewerOlder