diff --git a/.idea/caches/build_file_checksums.ser b/.idea/caches/build_file_checksums.ser index 7130579..26f6d07 100644 Binary files a/.idea/caches/build_file_checksums.ser and b/.idea/caches/build_file_checksums.ser differ diff --git a/README.md b/README.md index cfdd960..1437da3 100644 --- a/README.md +++ b/README.md @@ -54,14 +54,14 @@ you can include it by **download this project** and **import /blockedittext** as ```xml ``` @@ -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