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 androidx.lifecycle.ViewModel | |
import androidx.lifecycle.ViewModelProvider | |
import com.test.simpleapp.common.ViewModelFactory | |
import com.test.simpleapp.common.ViewModelKey | |
import dagger.Binds | |
import dagger.Module | |
import dagger.multibindings.IntoMap | |
@Module | |
abstract class ViewModelModule { |
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 com.google.gson.FieldNamingPolicy | |
import com.google.gson.Gson | |
import com.google.gson.GsonBuilder | |
import com.google.gson.JsonDeserializer | |
import dagger.Module | |
import dagger.Provides | |
import dagger.Reusable | |
import okhttp3.OkHttpClient | |
import okhttp3.logging.HttpLoggingInterceptor | |
import retrofit2.Retrofit |
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 androidx.lifecycle.ViewModel | |
import androidx.lifecycle.ViewModelProvider | |
import dagger.MapKey | |
import javax.inject.Inject | |
import javax.inject.Provider | |
import javax.inject.Singleton | |
import kotlin.reflect.KClass | |
@Suppress("UNCHECKED_CAST") | |
@Singleton |
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 'package:flutter/physics.dart'; | |
import 'package:flutter/widgets.dart'; | |
class SpringAnimated extends StatefulWidget { | |
final Widget child; | |
final Offset startOffset; | |
final bool shouldResetOffset; | |
SpringAnimated( | |
{@required this.child, |
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
apply plugin: 'jacoco' | |
jacoco { | |
toolVersion = "0.8.2" | |
reportsDir = file("$buildDir/reports") | |
} | |
tasks.withType(Test) { | |
jacoco.includeNoLocationClasses = true | |
} |
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
apply plugin: 'jacoco' | |
jacoco { | |
toolVersion = "0.8.3-SNAPSHOT" | |
reportsDir = file("$buildDir/reports") | |
} | |
tasks.withType(Test) { | |
jacoco.includeNoLocationClasses = true | |
} |