Skip to content

Instantly share code, notes, and snippets.

Elye elye

Block or report user

Report or block elye

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View default.build.gradle
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "<YourApplicationID>"
minSdkVersion 19
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
View custom.build.gradle
ext {
appVersionName = '1.0'
appPackageId = '<YourApplicationID>'
}
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
@elye
elye / Android_Kotlin_TestRuleFlow
Created Aug 21, 2018
Experimenting TestRule Flow
View Android_Kotlin_TestRuleFlow
package com.elyeproj.testrules
import org.junit.After
import org.junit.AfterClass
import org.junit.Before
import org.junit.BeforeClass
import org.junit.ClassRule
import org.junit.Rule
import org.junit.Test
import org.junit.rules.TestRule
@elye
elye / Kotlin Date Iterator
Last active Feb 26, 2019
Kotlin Date Iterator
View Kotlin Date Iterator
class TestingClass {
fun testingFunction() {
for (everyday in this year 2017) {
// Do something with everyday
println(everyday.toString())
}
}
private infix fun year(year: Int): DateRange {
return Date(year, 1, 1)..Date(year, 12, 31)
You can’t perform that action at this time.