Skip to content

Commit a6f5bfa

Browse files
committed
Version 1.0.1
1 parent f827c92 commit a6f5bfa

File tree

3 files changed

+26
-8
lines changed

3 files changed

+26
-8
lines changed

README.md

+16-4
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ An Android EditText with automatic currency formatting.
66

77
## Releases:
88

9-
#### Current release: 1.0.0.
9+
#### Current release: 1.0.1.
1010

1111
You can see all the library releases [here](https://github.com/marcoscgdev/CurrencyEditText/releases).
1212

1313
---
1414

1515
## Screenshots
16-
<kbd><img src="https://raw.githubusercontent.com/marcoscgdev/CurrencyEditText/master/Screenshot_1617663066.png" width="350"></kbd>&nbsp;&nbsp;&nbsp;&nbsp;<kbd><img src="https://raw.githubusercontent.com/marcoscgdev/CurrencyEditText/master/Screenshot_1617663115.png" width="350"></kbd>
16+
<kbd><img src="https://raw.githubusercontent.com/marcoscgdev/CurrencyEditText/master/Screenshot_1617663066.png" width="250"></kbd>&nbsp;&nbsp;&nbsp;&nbsp;<kbd><img src="https://raw.githubusercontent.com/marcoscgdev/CurrencyEditText/master/Screenshot_1617663115.png" width="250"></kbd>
1717

18-
Download the sample apk [here](https://github.com/marcoscgdev/CurrencyEditText/releases/download/1.0.0/app-debug.apk).
18+
Download the sample apk [here](https://github.com/marcoscgdev/CurrencyEditText/releases/download/1.0.1/app-debug.apk).
1919

2020
---
2121

@@ -37,7 +37,7 @@ allprojects {
3737
Now add the dependency to your app build.gradle file:
3838

3939
```groovy
40-
implementation 'com.github.marcoscgdev:CurrencyEditText:1.0.0'
40+
implementation 'com.github.marcoscgdev:CurrencyEditText:1.0.1'
4141
```
4242

4343
### Using the widget
@@ -55,6 +55,18 @@ implementation 'com.github.marcoscgdev:CurrencyEditText:1.0.0'
5555
val value = currencyEditText.getNumericValue()
5656
```
5757

58+
### Using a custom locale
59+
60+
```kotlin
61+
currencyEditText.setLocale(Locale.UK)
62+
```
63+
64+
### Setting max number length
65+
66+
```kotlin
67+
currencyEditText.setMaxLength(6)
68+
```
69+
5870
---
5971
>See the *sample project* to clarify any queries you may have.
6072

app/build.gradle

+6-2
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,28 @@ android {
1111
applicationId "com.marcoscg.currencyedittextsample"
1212
minSdkVersion 21
1313
targetSdkVersion 30
14-
versionCode 1
15-
versionName "1.0"
14+
versionCode 2
15+
versionName "1.0.1"
1616

1717
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1818
}
19+
1920
buildFeatures {
2021
viewBinding true
2122
}
23+
2224
buildTypes {
2325
release {
2426
minifyEnabled false
2527
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
2628
}
2729
}
30+
2831
compileOptions {
2932
sourceCompatibility JavaVersion.VERSION_1_8
3033
targetCompatibility JavaVersion.VERSION_1_8
3134
}
35+
3236
kotlinOptions {
3337
jvmTarget = '1.8'
3438
}

library/build.gradle

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ android {
1010
defaultConfig {
1111
minSdkVersion 21
1212
targetSdkVersion 30
13-
versionCode 1
14-
versionName "1.0"
13+
versionCode 2
14+
versionName "1.0.1"
1515

1616
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1717
consumerProguardFiles "consumer-rules.pro"
@@ -23,10 +23,12 @@ android {
2323
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
2424
}
2525
}
26+
2627
compileOptions {
2728
sourceCompatibility JavaVersion.VERSION_1_8
2829
targetCompatibility JavaVersion.VERSION_1_8
2930
}
31+
3032
kotlinOptions {
3133
jvmTarget = '1.8'
3234
}

0 commit comments

Comments
 (0)