From 57ba257bad7188fc77a5b4077ca22d3232a8f9fc Mon Sep 17 00:00:00 2001 From: Rodrigo Nunes Date: Thu, 12 Mar 2020 10:25:21 -0300 Subject: [PATCH 1/9] rename TextInputHighlight to ValueTextHighlight --- .../widget/{TextInputHighlight.kt => ValueTextHighlight.kt} | 2 +- ...ghtActivityTest.kt => ValueTextHighlightActivityTest.kt} | 4 ++-- sample/src/main/AndroidManifest.xml | 2 +- .../main/kotlin/com/natura/android/sample/MainActivity.kt | 2 +- ...utHighlightActivity.kt => ValueTextHighlightActivity.kt} | 6 +++--- sample/src/main/res/layout/activity_main.xml | 2 +- .../src/main/res/layout/activity_text_input_highlight.xml | 5 +++-- 7 files changed, 12 insertions(+), 11 deletions(-) rename designsystem/src/main/kotlin/com/natura/android/widget/{TextInputHighlight.kt => ValueTextHighlight.kt} (96%) rename sample/src/androidTest/kotlin/com/natura/android/sample/components/{TextInputHighlightActivityTest.kt => ValueTextHighlightActivityTest.kt} (94%) rename sample/src/main/kotlin/com/natura/android/sample/components/{TextInputHighlightActivity.kt => ValueTextHighlightActivity.kt} (73%) diff --git a/designsystem/src/main/kotlin/com/natura/android/widget/TextInputHighlight.kt b/designsystem/src/main/kotlin/com/natura/android/widget/ValueTextHighlight.kt similarity index 96% rename from designsystem/src/main/kotlin/com/natura/android/widget/TextInputHighlight.kt rename to designsystem/src/main/kotlin/com/natura/android/widget/ValueTextHighlight.kt index c5cffc8e3..6853a3cab 100644 --- a/designsystem/src/main/kotlin/com/natura/android/widget/TextInputHighlight.kt +++ b/designsystem/src/main/kotlin/com/natura/android/widget/ValueTextHighlight.kt @@ -7,7 +7,7 @@ import android.view.LayoutInflater import android.widget.TextView import com.natura.android.R -class TextInputHighlight @JvmOverloads constructor( +class ValueTextHighlight @JvmOverloads constructor( context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0 diff --git a/sample/src/androidTest/kotlin/com/natura/android/sample/components/TextInputHighlightActivityTest.kt b/sample/src/androidTest/kotlin/com/natura/android/sample/components/ValueTextHighlightActivityTest.kt similarity index 94% rename from sample/src/androidTest/kotlin/com/natura/android/sample/components/TextInputHighlightActivityTest.kt rename to sample/src/androidTest/kotlin/com/natura/android/sample/components/ValueTextHighlightActivityTest.kt index beeb33aa7..5150efd3c 100644 --- a/sample/src/androidTest/kotlin/com/natura/android/sample/components/TextInputHighlightActivityTest.kt +++ b/sample/src/androidTest/kotlin/com/natura/android/sample/components/ValueTextHighlightActivityTest.kt @@ -14,11 +14,11 @@ import org.junit.Test import org.junit.runner.RunWith @RunWith(AndroidJUnit4::class) -class TextInputHighlightActivityTest { +class ValueTextHighlightActivityTest { @Before fun setup() { - ActivityScenario.launch(TextInputHighlightActivity::class.java) + ActivityScenario.launch(ValueTextHighlightActivity::class.java) } @Test diff --git a/sample/src/main/AndroidManifest.xml b/sample/src/main/AndroidManifest.xml index f5921552b..f2ed6dd1e 100644 --- a/sample/src/main/AndroidManifest.xml +++ b/sample/src/main/AndroidManifest.xml @@ -39,7 +39,7 @@ android:name=".components.LoadingActivity" android:theme="@style/Theme.Natura" /> (R.id.btn_input_text_highlight).setOnClickListener { - startActivity(Intent(this, TextInputHighlightActivity::class.java)) + startActivity(Intent(this, ValueTextHighlightActivity::class.java)) } findViewById