From 67a35134cc6b4b399a7b7e0284996d1d95341eaa Mon Sep 17 00:00:00 2001 From: "erol.aksoy" Date: Tue, 18 Jul 2023 17:59:23 +0300 Subject: [PATCH 1/2] Disable proguard of rating bar compose and update package name --- libraries/rating-bar-compose/build.gradle.kts | 2 +- .../trendyol/{ => uicomponents}/ratingbarcompose/RatingBar.kt | 3 ++- .../com/trendyol/uicomponents/samplecompose/RatingBarScreen.kt | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) rename libraries/rating-bar-compose/src/main/java/com/trendyol/{ => uicomponents}/ratingbarcompose/RatingBar.kt (96%) diff --git a/libraries/rating-bar-compose/build.gradle.kts b/libraries/rating-bar-compose/build.gradle.kts index a4669ed1..440b13f4 100644 --- a/libraries/rating-bar-compose/build.gradle.kts +++ b/libraries/rating-bar-compose/build.gradle.kts @@ -17,7 +17,7 @@ android { buildTypes { getByName("release") { - isMinifyEnabled = true + isMinifyEnabled = false setProguardFiles( mutableListOf( getDefaultProguardFile("proguard-android.txt"), diff --git a/libraries/rating-bar-compose/src/main/java/com/trendyol/ratingbarcompose/RatingBar.kt b/libraries/rating-bar-compose/src/main/java/com/trendyol/uicomponents/ratingbarcompose/RatingBar.kt similarity index 96% rename from libraries/rating-bar-compose/src/main/java/com/trendyol/ratingbarcompose/RatingBar.kt rename to libraries/rating-bar-compose/src/main/java/com/trendyol/uicomponents/ratingbarcompose/RatingBar.kt index fff94483..54663367 100644 --- a/libraries/rating-bar-compose/src/main/java/com/trendyol/ratingbarcompose/RatingBar.kt +++ b/libraries/rating-bar-compose/src/main/java/com/trendyol/uicomponents/ratingbarcompose/RatingBar.kt @@ -1,4 +1,4 @@ -package com.trendyol.ratingbarcompose +package com.trendyol.uicomponents.ratingbarcompose import androidx.annotation.DrawableRes import androidx.compose.foundation.Canvas @@ -16,6 +16,7 @@ import androidx.compose.ui.graphics.painter.Painter import androidx.compose.ui.platform.LocalDensity import androidx.compose.ui.res.painterResource import androidx.compose.ui.unit.Dp +import com.trendyol.ratingbarcompose.R import kotlin.math.floor /** diff --git a/sample-compose/src/main/java/com/trendyol/uicomponents/samplecompose/RatingBarScreen.kt b/sample-compose/src/main/java/com/trendyol/uicomponents/samplecompose/RatingBarScreen.kt index b542d9fb..d4086eba 100644 --- a/sample-compose/src/main/java/com/trendyol/uicomponents/samplecompose/RatingBarScreen.kt +++ b/sample-compose/src/main/java/com/trendyol/uicomponents/samplecompose/RatingBarScreen.kt @@ -6,7 +6,7 @@ import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Color import androidx.compose.ui.unit.dp -import com.trendyol.ratingbarcompose.RatingBar +import com.trendyol.uicomponents.ratingbarcompose.RatingBar @Composable fun RatingBarScreen( From eff47b87219281c62b859a78a4d1277e36c8902e Mon Sep 17 00:00:00 2001 From: "erol.aksoy" Date: Tue, 18 Jul 2023 18:00:27 +0300 Subject: [PATCH 2/2] Update README.md --- libraries/rating-bar-compose/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/rating-bar-compose/README.md b/libraries/rating-bar-compose/README.md index 20e3481d..84c2bab4 100644 --- a/libraries/rating-bar-compose/README.md +++ b/libraries/rating-bar-compose/README.md @@ -1,4 +1,4 @@ -ratingBarComposeVersion = **rating-bar-compose-1.0** [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) +ratingBarComposeVersion = **rating-bar-compose-1.0.1** [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) # RatingBar