Skip to content

Commit 64e598a

Browse files
committed
update README.md
1 parent 146ff03 commit 64e598a

File tree

3 files changed

+41
-20
lines changed

3 files changed

+41
-20
lines changed
0 Bytes
Binary file not shown.

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ you can include it by **download this project** and **import /blockedittext** as
5454
```xml
5555
<com.infideap.blockedittext.BlockEditText
5656
android:id="@+id/blockEditText_tac"
57-
app:bet_defaultLength="1"
58-
app:bet_numberOfBlock="4"
59-
app:bet_inputType="Integer"
60-
app:bet_hintTextAppearance="@style/TextAppearance.AppCompat.Medium"
61-
app:bet_hint="TAC"
62-
app:bet_textSize="24sp"
57+
app:defaultLength="1"
58+
app:numberOfBlock="4"
59+
app:inputType="Integer"
60+
app:hintTextAppearance="@style/TextAppearance.AppCompat.Medium"
61+
app:hint="TAC"
62+
app:textSize="24sp"
6363
android:layout_width="300dp"
64-
app:bet_editTextBackground="@drawable/selector_edittext_round_border"
64+
app:editTextBackground="@drawable/selector_edittext_round_border"
6565
android:layout_height="wrap_content" />
6666

6767
```
@@ -72,12 +72,12 @@ you can include it by **download this project** and **import /blockedittext** as
7272
android:id="@+id/blockEditText_visa"
7373
android:layout_width="match_parent"
7474
android:layout_height="wrap_content"
75-
app:bet_defaultLength="4"
76-
app:bet_hint="Visa/Mastercard"
77-
app:bet_hintTextAppearance="@style/TextAppearance.AppCompat.Medium"
78-
app:bet_inputType="Integer"
79-
app:bet_numberOfBlock="4"
80-
app:bet_text="131321323-13213-21321312" />
75+
app:defaultLength="4"
76+
app:hint="Visa/Mastercard"
77+
app:hintTextAppearance="@style/TextAppearance.AppCompat.Medium"
78+
app:inputType="Integer"
79+
app:numberOfBlock="4"
80+
app:text="131321323-13213-21321312" />
8181
```
8282

8383

blockedittext/build.gradle

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
apply plugin: 'com.android.library'
22
apply plugin: 'kotlin-android'
3-
ext{
4-
PUBLISH_GROUP_ID= 'com.infideap.blockedittext'
5-
PUBLISH_ARTIFACT_ID= 'block-edittext'
6-
PUBLISH_VERSION= '0.1.2'
7-
}
3+
apply plugin: 'maven-publish'
84
android {
95
compileSdkVersion 30
106

@@ -27,7 +23,34 @@ android {
2723
}
2824

2925
}
26+
afterEvaluate {
27+
def publish_groupId = 'com.infideap.blockedittext'
28+
def publish_artifactId = 'block-edittext'
29+
def publish_version = '0.2.2'
30+
publishing {
31+
publications {
32+
// Creates a Maven publication called "release".
33+
release(MavenPublication) {
34+
// Applies the component for the release build variant.
35+
from components.release
36+
37+
// You can then customize attributes of the publication as shown below.
38+
groupId = publish_groupId
39+
artifactId = publish_artifactId
40+
version = publish_version
41+
}
42+
// Creates a Maven publication called “debug”.
43+
debug(MavenPublication) {
44+
// Applies the component for the debug build variant.
45+
from components.debug
3046

47+
groupId = publish_groupId
48+
artifactId = publish_artifactId
49+
version = publish_version
50+
}
51+
}
52+
}
53+
}
3154
dependencies {
3255
implementation fileTree(dir: 'libs', include: ['*.jar'])
3356

@@ -45,8 +68,6 @@ dependencies {
4568
implementation "androidx.core:core-ktx:1.3.2"
4669
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
4770
}
48-
apply from: 'https://raw.githubusercontent.com/blundell/release-android-library/' +
49-
'master/android-release-aar.gradle'
5071
repositories {
5172
mavenCentral()
5273
}

0 commit comments

Comments
 (0)