Skip to content

Commit

Permalink
refactor codes
Browse files Browse the repository at this point in the history
  • Loading branch information
cnrture committed Sep 14, 2024
1 parent c6ee7b0 commit 065a2eb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import com.github.cnrture.quickprojectwizard.general.ImageLibrary
import com.github.cnrture.quickprojectwizard.general.NetworkLibrary
import com.github.cnrture.quickprojectwizard.gradle.network.getVersions
import com.github.cnrture.quickprojectwizard.recipes.composeProjectRecipe
import kotlinx.coroutines.*
import kotlinx.coroutines.runBlocking
import java.net.URL
import java.util.*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package com.github.cnrture.quickprojectwizard.gradle

import com.github.cnrture.quickprojectwizard.*
import com.github.cnrture.quickprojectwizard.addLibsDependency
import com.github.cnrture.quickprojectwizard.addLibsPlugin
import com.github.cnrture.quickprojectwizard.addLibsVersion
import com.github.cnrture.quickprojectwizard.general.ImageLibrary
import com.github.cnrture.quickprojectwizard.general.NetworkLibrary

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,21 +95,25 @@ fun getGradleKts(
append(" // Coil\n")
addGradleImplementation(Library.CoilCompose)
}

isCompose && selectedImageLibrary == ImageLibrary.Glide -> {
append("\n")
append(" // Glide\n")
addGradleImplementation(Library.GlideCompose)
}

!isCompose && selectedImageLibrary == ImageLibrary.Coil -> {
append("\n")
append(" // Coil\n")
addGradleImplementation(Library.Coil)
}

!isCompose && selectedImageLibrary == ImageLibrary.Glide -> {
append("\n")
append(" // Glide\n")
addGradleImplementation(Library.Glide)
}

else -> Unit
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.github.cnrture.quickprojectwizard.xmlarch.ui

fun emptyActivityLayout(isNavigationEnable: Boolean,): String {
fun emptyActivityLayout(isNavigationEnable: Boolean): String {
return if (isNavigationEnable) withNavigation() else empty()
}

Expand Down

0 comments on commit 065a2eb

Please sign in to comment.