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
package util | |
import org.junit.Before | |
import org.junit.Test | |
import org.mockito.Mockito.* | |
import kotlin.reflect.KFunction1 | |
class MethodParameterTest { | |
private lateinit var mock: IPresenter |
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
package i.gabrielcosta.customstartexample; | |
import android.content.Context; | |
import java.io.Serializable; | |
/** | |
* Created by gabrielcosta on 26/08/17. | |
*/ | |
public interface Executor extends Serializable { |
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
package com.example.gabriel.mediatorlivedata | |
import android.arch.lifecycle.LiveData | |
import android.arch.lifecycle.MediatorLiveData | |
import android.arch.lifecycle.MutableLiveData | |
import android.os.Handler | |
import android.util.Log | |
import java.util.* | |
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
package com.gabrielcosta.weather.feature.forecast | |
import android.arch.lifecycle.MutableLiveData | |
import android.support.test.espresso.Espresso.onView | |
import android.support.test.espresso.action.ViewActions | |
import android.support.test.espresso.assertion.ViewAssertions.matches | |
import android.support.test.espresso.matcher.ViewMatchers.isDisplayed | |
import android.support.test.espresso.matcher.ViewMatchers.withId | |
import android.support.test.espresso.matcher.ViewMatchers.withText | |
import com.gabrielcosta.weather.R |
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
package com.gabrielcosta.attrsample | |
import android.os.Bundle | |
import android.support.v7.app.AppCompatActivity | |
import android.util.TypedValue | |
import kotlinx.android.synthetic.main.activity_main.* | |
class MainActivity : AppCompatActivity() { | |
override fun onCreate(savedInstanceState: Bundle?) { |
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
/build |
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
package com.example.rsatest | |
import android.security.keystore.KeyProperties | |
import android.util.Base64 | |
import java.security.Key | |
import java.security.KeyFactory | |
import java.security.spec.X509EncodedKeySpec | |
import javax.crypto.Cipher | |
private const val ALGORITHM = KeyProperties.KEY_ALGORITHM_RSA |
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
//Podemos calcular algo | |
val sum = 3 + 3 | |
//Então ver o resutado deste calculo | |
println("total : $sum") | |
//Ou criar um array | |
val array = arrayOf(3,2,4,2) | |
//E ver o maior elemento dentro dele |
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
//Criamos uma classe | |
data class Sample( | |
val number: Int | |
) { | |
//Aqui temos um pequeno override so para exemplificar | |
override fun toString(): String { | |
return "Meu numero é $number" | |
} | |
} |
OlderNewer