From 6a96ad8c94e4b5d88da0c56e2eb9af063de20047 Mon Sep 17 00:00:00 2001 From: shwetachauhan18 Date: Sun, 5 Sep 2021 17:52:17 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20jitpack=20release=20fail=20issue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- app/build.gradle | 5 ++--- custombottomnavigation/build.gradle | 15 +++++++++++++++ .../CustomBottomNavigationIcon.kt | 19 ++++++++++++++----- 4 files changed, 32 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 4e3eb09..8f49263 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ The actual features are: ``` dependencies { - implementation 'com.github.simformsolutions:SSCustomBottomNavigation:3.1' + implementation 'com.github.simformsolutions:SSCustomBottomNavigation:3.2' } ``` diff --git a/app/build.gradle b/app/build.gradle index 4a57b18..6d139f1 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,6 +1,5 @@ apply plugin: 'com.android.application' apply plugin: 'kotlin-android' -apply plugin: 'kotlin-android-extensions' android { compileSdkVersion 30 @@ -10,8 +9,8 @@ android { applicationId "com.sscustombottomnavigation" minSdkVersion 21 targetSdkVersion 30 - versionCode 2 - versionName "3.1" + versionCode 3 + versionName "3.2" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true } diff --git a/custombottomnavigation/build.gradle b/custombottomnavigation/build.gradle index 767d5f4..954133b 100644 --- a/custombottomnavigation/build.gradle +++ b/custombottomnavigation/build.gradle @@ -1,6 +1,21 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' +apply plugin: 'maven-publish' + +afterEvaluate { + publishing { + publications { + // Creates a Maven publication called "release". + release(MavenPublication) { + from components.release + groupId = 'com.simform.custombottomnavigation' + artifactId = 'custombottomnavigation' + version = '3.2' + } + } + } +} android { compileSdkVersion 30 diff --git a/custombottomnavigation/src/main/java/com/simform/custombottomnavigation/CustomBottomNavigationIcon.kt b/custombottomnavigation/src/main/java/com/simform/custombottomnavigation/CustomBottomNavigationIcon.kt index 5c24cf8..a586f2a 100644 --- a/custombottomnavigation/src/main/java/com/simform/custombottomnavigation/CustomBottomNavigationIcon.kt +++ b/custombottomnavigation/src/main/java/com/simform/custombottomnavigation/CustomBottomNavigationIcon.kt @@ -63,7 +63,9 @@ class CustomBottomNavigationIcon : RelativeLayout, LayoutContainer { set(value) { field = value if (allowDraw) { - if(!isEnabledCell) tv.setTextColor(iconTextColor) else tv.setTextColor(selectedIconTextColor) + if (!isEnabledCell) tv.setTextColor(iconTextColor) else tv.setTextColor( + selectedIconTextColor + ) } } @@ -72,7 +74,9 @@ class CustomBottomNavigationIcon : RelativeLayout, LayoutContainer { set(value) { field = value if (allowDraw) - if(isEnabledCell) tv.setTextColor(selectedIconTextColor) else tv.setTextColor(iconTextColor) + if (isEnabledCell) tv.setTextColor(selectedIconTextColor) else tv.setTextColor( + iconTextColor + ) } var iconTextTypeface: Typeface? = null @@ -158,7 +162,7 @@ class CustomBottomNavigationIcon : RelativeLayout, LayoutContainer { private var progress = 0f set(value) { field = value - Log.e("TAG","height is ${containerView.layoutParams.height} ${dip(context, 18)}") + Log.e("TAG", "height is ${containerView.layoutParams.height} ${dip(context, 18)}") fl.y = (1f - progress) * dip(context, 18) + dip(context, -2) iv.color = if (progress == 1f) selectedIconColor else iconTextColor @@ -215,7 +219,11 @@ class CustomBottomNavigationIcon : RelativeLayout, LayoutContainer { initializeView() } - constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int) : super(context, attrs, defStyleAttr) { + constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int) : super( + context, + attrs, + defStyleAttr + ) { setAttributeFromXml(context, attrs) initializeView() } @@ -226,7 +234,8 @@ class CustomBottomNavigationIcon : RelativeLayout, LayoutContainer { private fun initializeView() { allowDraw = true - containerView = LayoutInflater.from(context).inflate(R.layout.custom_bottom_navigation_icon, this) + containerView = + LayoutInflater.from(context).inflate(R.layout.custom_bottom_navigation_icon, this) draw() }