Skip to content

Commit

Permalink
chore: Modify library config
Browse files Browse the repository at this point in the history
- Disable Minify.
- Remove unnecessary code.
  • Loading branch information
raine-lemon committed Aug 22, 2024
1 parent ebb09e9 commit 133af86
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
15 changes: 0 additions & 15 deletions buildSystem/src/main/kotlin/io/lemon/android/buildSystem/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -40,28 +40,13 @@ internal object Config {
FlavorType(
name = "dev",
suffix = ".dev",
resourceValue = listOf(ResourceType(
type = ResourceType.Type.StringType,
name = "app_label",
value = "lemon.dev"
))
),
FlavorType(
name = "staging",
suffix = ".staging",
resourceValue = listOf(ResourceType(
type = ResourceType.Type.StringType,
name = "app_label",
value = "lemon.staging"
))
),
FlavorType(
name = "live",
resourceValue = listOf(ResourceType(
type = ResourceType.Type.StringType,
name = "app_label",
value = "lemon.live"
))
)
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import io.lemon.android.buildSystem.Config.BuildType.DEBUG
import io.lemon.android.buildSystem.Config.BuildType.RELEASE
import io.lemon.android.buildSystem.Config.COMPILE_SDK
import io.lemon.android.buildSystem.Config.MIN_SDK
import io.lemon.android.buildSystem.extensions.configureFlavor
import io.lemon.android.buildSystem.extensions.extensionAndroid
import org.gradle.api.Plugin
import org.gradle.api.Project
Expand Down Expand Up @@ -34,7 +33,7 @@ class AndroidLibraryPlugin : Plugin<Project> {
}

getByName(RELEASE) {
isMinifyEnabled = true
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
Expand Down
2 changes: 1 addition & 1 deletion sample/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_label"
android:label="sample"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.Lemon">
Expand Down

0 comments on commit 133af86

Please sign in to comment.