From 64e598a4e99d0bc7bd89f282ee5806ad4ef9d685 Mon Sep 17 00:00:00 2001 From: Shiburagi Date: Tue, 6 Oct 2020 17:18:50 +0800 Subject: [PATCH] update README.md --- .idea/caches/build_file_checksums.ser | Bin 596 -> 596 bytes README.md | 26 +++++++++---------- blockedittext/build.gradle | 35 ++++++++++++++++++++------ 3 files changed, 41 insertions(+), 20 deletions(-) diff --git a/.idea/caches/build_file_checksums.ser b/.idea/caches/build_file_checksums.ser index 71305791fb6b4af53d7e950396b362659b445dd8..26f6d07435f920442424cec3e7776e20ecfccbb2 100644 GIT binary patch delta 42 zcmV+_0M-B01k?nOnFBPKP_dkO0TbHS(})Y)Qwi!t7^ogmO^b8@5tD5J8 ``` @@ -72,12 +72,12 @@ you can include it by **download this project** and **import /blockedittext** as android:id="@+id/blockEditText_visa" android:layout_width="match_parent" android:layout_height="wrap_content" - app:bet_defaultLength="4" - app:bet_hint="Visa/Mastercard" - app:bet_hintTextAppearance="@style/TextAppearance.AppCompat.Medium" - app:bet_inputType="Integer" - app:bet_numberOfBlock="4" - app:bet_text="131321323-13213-21321312" /> + app:defaultLength="4" + app:hint="Visa/Mastercard" + app:hintTextAppearance="@style/TextAppearance.AppCompat.Medium" + app:inputType="Integer" + app:numberOfBlock="4" + app:text="131321323-13213-21321312" /> ``` diff --git a/blockedittext/build.gradle b/blockedittext/build.gradle index b338872..303fee2 100644 --- a/blockedittext/build.gradle +++ b/blockedittext/build.gradle @@ -1,10 +1,6 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' -ext{ - PUBLISH_GROUP_ID= 'com.infideap.blockedittext' - PUBLISH_ARTIFACT_ID= 'block-edittext' - PUBLISH_VERSION= '0.1.2' -} +apply plugin: 'maven-publish' android { compileSdkVersion 30 @@ -27,7 +23,34 @@ android { } } +afterEvaluate { + def publish_groupId = 'com.infideap.blockedittext' + def publish_artifactId = 'block-edittext' + def publish_version = '0.2.2' + publishing { + publications { + // Creates a Maven publication called "release". + release(MavenPublication) { + // Applies the component for the release build variant. + from components.release + + // You can then customize attributes of the publication as shown below. + groupId = publish_groupId + artifactId = publish_artifactId + version = publish_version + } + // Creates a Maven publication called “debug”. + debug(MavenPublication) { + // Applies the component for the debug build variant. + from components.debug + groupId = publish_groupId + artifactId = publish_artifactId + version = publish_version + } + } + } +} dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) @@ -45,8 +68,6 @@ dependencies { implementation "androidx.core:core-ktx:1.3.2" implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" } -apply from: 'https://raw.githubusercontent.com/blundell/release-android-library/' + - 'master/android-release-aar.gradle' repositories { mavenCentral() } \ No newline at end of file