From fba9f7370cc61fc8f183011bd9ace4d0cc89734f Mon Sep 17 00:00:00 2001 From: Harshil Shah Date: Tue, 20 Aug 2024 12:05:40 +0530 Subject: [PATCH] enable minify for library module --- app/build.gradle.kts | 2 +- .../java/com/example/android/jitpacksample/MainActivity.kt | 3 +++ mylibrary/build.gradle.kts | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index d27b7c2..ce34cdc 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -66,5 +66,5 @@ dependencies { androidTestImplementation(libs.androidx.ui.test.junit4) debugImplementation(libs.androidx.ui.tooling) debugImplementation(libs.androidx.ui.test.manifest) -// implementation("com.github.shahharshil0:jitpack-sample:0.0.2") + implementation("com.github.shahharshil0:jitpack-sample:0.0.4") } \ No newline at end of file diff --git a/app/src/main/java/com/example/android/jitpacksample/MainActivity.kt b/app/src/main/java/com/example/android/jitpacksample/MainActivity.kt index 8036477..b443743 100644 --- a/app/src/main/java/com/example/android/jitpacksample/MainActivity.kt +++ b/app/src/main/java/com/example/android/jitpacksample/MainActivity.kt @@ -12,6 +12,7 @@ import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier import androidx.compose.ui.tooling.preview.Preview import com.example.android.jitpacksample.ui.theme.JitpackSampleTheme +import com.example.android.mylibrary.EmailHelper class MainActivity : ComponentActivity() { override fun onCreate(savedInstanceState: Bundle?) { @@ -27,6 +28,8 @@ class MainActivity : ComponentActivity() { } } } + + EmailHelper.updateEmail("") } } diff --git a/mylibrary/build.gradle.kts b/mylibrary/build.gradle.kts index 2d3127d..51d13cd 100644 --- a/mylibrary/build.gradle.kts +++ b/mylibrary/build.gradle.kts @@ -17,7 +17,7 @@ android { buildTypes { release { - isMinifyEnabled = false + isMinifyEnabled = true proguardFiles( getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"