Skip to content

Commit

Permalink
Move snapshot tests into their own app and improve performance (#1914)
Browse files Browse the repository at this point in the history
The dedicated module prevents extra code in the main sample app modules and allows for easy creation of compose snapshot tests. I also found a bug in which the rendering of animations was not fan-in when it should have been. This increased the performance of the test suite locally by ~4x.
  • Loading branch information
gpeal authored Nov 4, 2021
1 parent 2e91789 commit 06571da
Show file tree
Hide file tree
Showing 433 changed files with 2,230 additions and 1,848 deletions.
4 changes: 0 additions & 4 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ android {
buildTypes {
debug {
multiDexKeepProguard file('proguard-multidex-rules.pro')
buildConfigField("String", "S3AccessKey", "\"" + System.getenv("LOTTIE_S3_API_KEY") + "\"")
buildConfigField("String", "S3SecretKey", "\"" + System.getenv("LOTTIE_S3_SECRET_KEY") + "\"")
buildConfigField("String", "HappoApiKey", "\"" + System.getenv("LOTTIE_HAPPO_API_KEY") + "\"")
buildConfigField("String", "HappoSecretKey", "\"" + System.getenv("LOTTIE_HAPPO_SECRET_KEY") + "\"")
}
release {
multiDexKeepProguard file('proguard-multidex-rules.pro')
Expand Down Expand Up @@ -82,9 +78,6 @@ dependencies {
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutinesVersion"
implementation 'com.dlazaro66.qrcodereaderview:qrcodereaderview:2.0.2'
implementation 'com.github.PhilJay:MPAndroidChart:3.1.0'
implementation "com.amazonaws:aws-android-sdk-s3:$awsVersion"
implementation("com.amazonaws:aws-android-sdk-mobile-client:$awsVersion") { transitive = true }
implementation("com.amazonaws:aws-android-sdk-auth-userpools:$awsVersion") { transitive = true }
implementation 'com.google.code.gson:gson:2.8.8'
implementation 'com.squareup.okhttp3:okhttp:4.9.1'
implementation "com.squareup.retrofit2:retrofit:$retrofitVersion"
Expand All @@ -100,7 +93,6 @@ dependencies {
androidTestImplementation "androidx.test.espresso:espresso-idling-resource:$espressoVersion"
androidTestImplementation 'androidx.test:core:1.3.0'
androidTestImplementation 'androidx.test:rules:1.4.0'
androidTestImplementation 'io.jsonwebtoken:jjwt:0.9.1'
androidTestImplementation "org.mockito:mockito-android:$mockitoVersion"
androidTestImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0"
}
1 change: 0 additions & 1 deletion sample/src/androidTest/assets/Hosts.json

This file was deleted.

1 change: 0 additions & 1 deletion sample/src/androidTest/assets/LightBulb.json

This file was deleted.

Loading

0 comments on commit 06571da

Please sign in to comment.