Compiled from RapaduraCast 594
View list.md
View kotlinconf2019.srt
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
1 | |
00:00:00,100 --> 00:00:07,000 | |
[Música] | |
2 | |
00:00:11,500 --> 00:00:13,500 | |
Olá pessoal, bom dia! | |
3 | |
00:00:13,500 --> 00:00:18,200 |
View CoroutineCallAdapterFactory.kt
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
import kotlinx.coroutines.CompletableDeferred | |
import kotlinx.coroutines.Deferred | |
import retrofit2.Call | |
import retrofit2.CallAdapter | |
import retrofit2.Callback | |
import retrofit2.HttpException | |
import retrofit2.Response | |
import retrofit2.Retrofit | |
import java.lang.reflect.ParameterizedType | |
import java.lang.reflect.Type |
View Fastfile
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
update_fastlane | |
default_platform(:android) | |
platform :android do | |
desc "Deploy a new version to the Google Play Internal track" | |
lane :deploy do | |
upload_to_play_store(track: 'internal', aab: 'app/build/outputs/bundle/release/app.aab', skip_upload_apk: true) | |
end |
View MainTest.kt
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
import junit.framework.Assert.assertTrue | |
import kotlinx.coroutines.* | |
import org.junit.Assert.assertEquals | |
import org.junit.Assert.assertFalse | |
import org.junit.Test | |
class MainTest { | |
@Test | |
fun `Assert launch coroutine works`() { |
View build.gradle
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
task jacocoTestReport(type: JacocoReport, dependsOn: ['testDebugUnitTest', 'createDebugCoverageReport']) { | |
reports { | |
xml.enabled = true | |
html.enabled = true | |
} | |
def fileFilter = [ '**/R.class', '**/R$*.class', '**/BuildConfig.*', '**/Manifest*.*', '**/*Test*.*', 'android/**/*.*' ] | |
def debugTree = fileTree(dir: "$project.buildDir/tmp/kotlin-classes/debug", excludes: fileFilter) | |
def mainSrc = "$project.projectDir/src/main/kotlin" |
View build.gradle
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
dependencies { | |
implementation 'com.android.support:appcompat-v7:27.0.2' | |
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2-alpha1' | |
androidTestUtil 'com.android.support.test:orchestrator:1.0.2-alpha1' | |
testImplementation 'junit:junit:4.12' | |
testImplementation 'org.robolectric:robolectric:3.7.1' | |
} |
View build.gradle
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
android { | |
compileSdkVersion 27 | |
defaultConfig { | |
applicationId 'net.rafaeltoledo.coverage' | |
minSdkVersion 15 | |
targetSdkVersion 27 | |
versionCode 1 | |
versionName '1.0' |
View build.gradle
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
# Our merge report task | |
task jacocoTestReport(type: JacocoReport, dependsOn: ['testDebugUnitTest', 'createDebugCoverageReport']) { | |
reports { | |
xml.enabled = true | |
html.enabled = true | |
} | |
def fileFilter = ['**/R.class', '**/R$*.class', '**/BuildConfig.*', '**/Manifest*.*', '**/*Test*.*', 'android/**/*.*'] |
View build.gradle
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
// app/build.gradle | |
apply plugin: 'com.android.application' | |
apply plugin: 'jacoco' | |
jacoco { | |
toolVersion = '0.8.0' | |
} | |
tasks.withType(Test) { |
NewerOlder