UPDATE: Optimize some of the dependencies as "runtimeOnly".

This could help reducing building time and the size of debug APK.
This commit is contained in:
Oasis 2019-07-09 11:44:37 +08:00
parent 1c58ab64dd
commit 45a51d9eaf

View File

@ -22,13 +22,13 @@ android {
dependencies {
implementation 'net.sourceforge.streamsupport:android-retrostreams:1.7.0'
implementation 'com.google.code.findbugs:jsr305:3.0.2'
implementation 'com.google.android.material:material:1.0.0' // class BottomSheetBindingAdapter
implementation 'androidx.appcompat:appcompat:1.0.2' // class Dialogs
implementation 'androidx.browser:browser:1.0.0' // class WebContent
implementation 'androidx.recyclerview:recyclerview:1.0.0' // class RecyclerViewBindings & BindingRecyclerViewAdapter
implementation 'androidx.lifecycle:lifecycle-livedata-core:2.0.0'
implementation 'androidx.lifecycle:lifecycle-viewmodel:2.0.0' // class LifecycleActivity, LifecycleFragment
implementation 'com.google.code.findbugs:jsr305:3.0.2' // Reference to class ParametersAreNonnullByDefault
implementation 'androidx.browser:browser:1.0.0' // class WebContent (not yet fully decoupled for "runtimeOnly"
runtimeOnly 'androidx.lifecycle:lifecycle-viewmodel:2.0.0' // class LifecycleViewModelActivity, LifecycleViewModelFragment
runtimeOnly 'androidx.lifecycle:lifecycle-livedata-core:2.0.0' // class NonNullMutableLiveData
runtimeOnly 'androidx.appcompat:appcompat:1.0.2' // class Dialogs
runtimeOnly 'androidx.recyclerview:recyclerview:1.0.0' // class RecyclerViewBindings & BindingRecyclerViewAdapter
runtimeOnly 'com.google.android.material:material:1.0.0' // class BottomSheetBindingAdapter
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'