File tree Expand file tree Collapse file tree
src/main/kotlin/com/redmadrobot/inputmask Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 7.1.1
4+
5+ ** 🔄 Modified:**
6+
7+ * ` minSdkVersion ` → ` 23 `
8+
39## 7.1.0
410
511** ⤵️ Added:**
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ android {
1616 proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
1717 }
1818 }
19- buildToolsVersion ' 30.0.2 '
19+ buildToolsVersion ' 30.0.3 '
2020}
2121
2222dependencies {
Original file line number Diff line number Diff line change 1- # Project-wide Gradle settings.
2- # IDE (e.g. Android Studio) users:
3- # Gradle settings configured through the IDE *will override*
4- # any settings specified in this file.
5- # For more details on how to configure your build environment visit
1+ # # For more details on how to configure your build environment visit
62# http://www.gradle.org/docs/current/userguide/build_environment.html
3+ #
74# Specifies the JVM arguments used for the daemon process.
85# The setting is particularly useful for tweaking memory settings.
9- # Default value: -Xmx10248m -XX:MaxPermSize=256m
6+ # Default value: -Xmx1024m -XX:MaxPermSize=256m
107# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
8+ #
119# When configured, Gradle will run in incubating parallel mode.
1210# This option should only be used with decoupled projects. More details, visit
1311# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
1412# org.gradle.parallel=true
13+ # Sun Apr 16 18:25:25 GET 2023
14+ org.gradle.jvmargs =-Xmx2048M -Dkotlin.daemon.jvm.options\="-Xmx2048M"
1515android.enableJetifier =true
1616android.useAndroidX =true
17+ org.gradle.unsafe.configuration-cache =true
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ ext.addRepos = this.&addRepos
88// region Build versions
99def build_versions = [:]
1010
11- build_versions. min_sdk = 30
11+ build_versions. min_sdk = 23
1212build_versions. target_sdk = 33
1313build_versions. compile_sdk = 33
1414
@@ -23,7 +23,7 @@ def deps = [:]
2323// region Gradle
2424def gradle = [:]
2525
26- versions. android_plugin = " 7.0 .2"
26+ versions. android_plugin = " 7.4 .2"
2727
2828gradle. android_plugin = " com.android.tools.build:gradle:$versions . android_plugin "
2929
@@ -33,7 +33,7 @@ deps.gradle = gradle
3333// region Kotlin
3434def kotlin = [:]
3535
36- versions. kotlin = " 1.5.21 "
36+ versions. kotlin = " 1.8.0 "
3737versions. dokka = " 0.9.18"
3838
3939kotlin. stdlib = " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$versions . kotlin "
Original file line number Diff line number Diff line change 1- # Sat Sep 25 23:02:38 MSK 2021
1+ # Sun Apr 16 18:05:37 GET 2023
22distributionBase =GRADLE_USER_HOME
3+ distributionUrl =https\://services.gradle.org/distributions/gradle-7.5-bin.zip
34distributionPath =wrapper/dists
4- zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
6- distributionUrl = https\://services.gradle.org/distributions/gradle-7.0.2-all.zip
6+ zipStoreBase = GRADLE_USER_HOME
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ android {
4848
4949dependencies {
5050 implementation deps. kotlin. stdlib
51+ implementation ' androidx.annotation:annotation:1.6.0'
5152
5253 testImplementation deps. test. junit
5354}
Original file line number Diff line number Diff line change @@ -3,8 +3,10 @@ package com.redmadrobot.inputmask
33import android.icu.number.LocalizedNumberFormatter
44import android.icu.number.NumberFormatter
55import android.icu.number.Precision
6+ import android.os.Build
67import android.text.TextWatcher
78import android.widget.EditText
9+ import androidx.annotation.RequiresApi
810import com.redmadrobot.inputmask.helper.AffinityCalculationStrategy
911import com.redmadrobot.inputmask.helper.Mask
1012import com.redmadrobot.inputmask.model.CaretString
@@ -28,6 +30,7 @@ import java.util.*
2830 *
2931 * - seealso: the ``NumberInputListener/formatter`` field
3032 */
33+ @RequiresApi(Build .VERSION_CODES .R )
3134open class NumberInputListener (
3235 primaryFormat : String ,
3336 affineFormats : List <String > = emptyList(),
You can’t perform that action at this time.
0 commit comments