feat: use implementation.

This commit is contained in:
cgspine
2022-03-18 21:16:19 +08:00
parent 94f0a90036
commit fa1ca16a85
6 changed files with 14 additions and 13 deletions
-3
View File
@@ -44,12 +44,9 @@ android {
}
dependencies {
api(Dep.AndroidX.annotation)
api(Dep.AndroidX.appcompat)
api(Dep.AndroidX.coreKtx)
api(Dep.Compose.ui)
api(Dep.Compose.animation)
api(Dep.Compose.material)
api(Dep.Compose.compiler)
api(Dep.Compose.constraintlayout)
}
+1
View File
@@ -45,4 +45,5 @@ android {
dependencies {
api(project(":compose-core"))
api(Dep.Compose.constraintlayout)
}
@@ -19,7 +19,6 @@ import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.platform.ComposeView
import androidx.core.view.isVisible
import kotlinx.coroutines.flow.MutableStateFlow
internal abstract class QMUIModalPresent(
@@ -61,7 +60,7 @@ internal abstract class QMUIModalPresent(
private fun doAfterDismiss() {
isDismissing = false
composeLayout.isVisible = false
composeLayout.visibility = View.GONE
composeLayout.disposeComposition()
rootLayout.removeView(composeLayout)
onBackPressedCallback.remove()
+3 -2
View File
@@ -45,7 +45,8 @@ android {
}
dependencies {
api(project(":compose-core"))
compileOnly(project(":photo"))
implementation(project(":compose-core"))
implementation(Dep.AndroidX.coreKtx)
api(project(":photo"))
api(Dep.Coil.compose)
}
+3 -2
View File
@@ -46,8 +46,9 @@ android {
}
dependencies {
api(project(":compose-core"))
compileOnly(project(":photo"))
implementation(project(":compose-core"))
implementation(Dep.AndroidX.coreKtx)
api(project(":photo"))
api(Dep.Glide.glide)
kapt(Dep.Glide.compiler)
}
+6 -4
View File
@@ -44,8 +44,10 @@ android {
}
dependencies {
api(project(":compose-core"))
api(Dep.AndroidX.activity)
api(Dep.Compose.activity)
api(Dep.Compose.pager)
implementation(Dep.AndroidX.appcompat)
implementation(project(":compose-core"))
implementation(Dep.AndroidX.activity)
implementation(Dep.Compose.activity)
implementation(Dep.Compose.pager)
implementation(Dep.Compose.constraintlayout)
}