Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
shiburagi committed Oct 6, 2020
1 parent 146ff03 commit 64e598a
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 20 deletions.
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ you can include it by **download this project** and **import /blockedittext** as
```xml
<com.infideap.blockedittext.BlockEditText
android:id="@+id/blockEditText_tac"
app:bet_defaultLength="1"
app:bet_numberOfBlock="4"
app:bet_inputType="Integer"
app:bet_hintTextAppearance="@style/TextAppearance.AppCompat.Medium"
app:bet_hint="TAC"
app:bet_textSize="24sp"
app:defaultLength="1"
app:numberOfBlock="4"
app:inputType="Integer"
app:hintTextAppearance="@style/TextAppearance.AppCompat.Medium"
app:hint="TAC"
app:textSize="24sp"
android:layout_width="300dp"
app:bet_editTextBackground="@drawable/selector_edittext_round_border"
app:editTextBackground="@drawable/selector_edittext_round_border"
android:layout_height="wrap_content" />

```
Expand All @@ -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" />
```


Expand Down
35 changes: 28 additions & 7 deletions blockedittext/build.gradle
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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'])

Expand All @@ -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()
}

0 comments on commit 64e598a

Please sign in to comment.