diff --git a/Rich Editor Lib/src/androidTest/java/com/easyapps/richeditorlib/ExampleInstrumentedTest.kt b/Rich Editor Lib/src/androidTest/java/com/easyapps/richeditorlib/ExampleInstrumentedTest.kt index d27a7de..d804c16 100644 --- a/Rich Editor Lib/src/androidTest/java/com/easyapps/richeditorlib/ExampleInstrumentedTest.kt +++ b/Rich Editor Lib/src/androidTest/java/com/easyapps/richeditorlib/ExampleInstrumentedTest.kt @@ -1,13 +1,11 @@ package com.easyapps.richeditorlib -import androidx.test.platform.app.InstrumentationRegistry import androidx.test.ext.junit.runners.AndroidJUnit4 - +import androidx.test.platform.app.InstrumentationRegistry +import org.junit.Assert.assertEquals import org.junit.Test import org.junit.runner.RunWith -import org.junit.Assert.* - /** * Instrumented test, which will execute on an Android device. * diff --git a/Rich Editor Lib/src/main/java/com/easyapps/richeditorlib/helpers/Helper.kt b/Rich Editor Lib/src/main/java/com/easyapps/richeditorlib/helpers/Helper.kt index 0ff0f6f..1432f4c 100644 --- a/Rich Editor Lib/src/main/java/com/easyapps/richeditorlib/helpers/Helper.kt +++ b/Rich Editor Lib/src/main/java/com/easyapps/richeditorlib/helpers/Helper.kt @@ -1,7 +1,6 @@ package com.easyapps.richeditorlib.helpers import android.content.Context -import android.content.res.ColorStateList import android.content.res.Resources import android.graphics.Color import android.graphics.drawable.Drawable diff --git a/Rich Editor Lib/src/main/java/com/easyapps/richeditorlib/styles/StyleBold.kt b/Rich Editor Lib/src/main/java/com/easyapps/richeditorlib/styles/StyleBold.kt index 8bc6826..f56f48d 100644 --- a/Rich Editor Lib/src/main/java/com/easyapps/richeditorlib/styles/StyleBold.kt +++ b/Rich Editor Lib/src/main/java/com/easyapps/richeditorlib/styles/StyleBold.kt @@ -1,9 +1,9 @@ package com.easyapps.richeditorlib.styles -import com.easyapps.richeditorlib.widgets.RichEditText import com.easyapps.richeditorlib.abstracts.Style import com.easyapps.richeditorlib.helpers.Helper import com.easyapps.richeditorlib.spans.SpanBold +import com.easyapps.richeditorlib.widgets.RichEditText import com.google.android.material.button.MaterialButton class StyleBold(private val item: MaterialButton, editText: RichEditText) : Style() { diff --git a/Rich Editor Lib/src/main/java/com/easyapps/richeditorlib/styles/StyleFontSize.kt b/Rich Editor Lib/src/main/java/com/easyapps/richeditorlib/styles/StyleFontSize.kt index 55d7c1c..5c843be 100644 --- a/Rich Editor Lib/src/main/java/com/easyapps/richeditorlib/styles/StyleFontSize.kt +++ b/Rich Editor Lib/src/main/java/com/easyapps/richeditorlib/styles/StyleFontSize.kt @@ -1,10 +1,10 @@ package com.easyapps.richeditorlib.styles import android.text.Editable -import com.easyapps.richeditorlib.widgets.RichEditText import com.easyapps.richeditorlib.abstracts.DynamicStyle import com.easyapps.richeditorlib.interfaces.FontSizeListener import com.easyapps.richeditorlib.spans.SpanFontSize +import com.easyapps.richeditorlib.widgets.RichEditText import com.easyapps.richeditorlib.windows.SizeSlider import com.google.android.material.button.MaterialButton diff --git a/Rich Editor Lib/src/main/java/com/easyapps/richeditorlib/styles/StyleItalic.kt b/Rich Editor Lib/src/main/java/com/easyapps/richeditorlib/styles/StyleItalic.kt index 20c390e..f43339d 100644 --- a/Rich Editor Lib/src/main/java/com/easyapps/richeditorlib/styles/StyleItalic.kt +++ b/Rich Editor Lib/src/main/java/com/easyapps/richeditorlib/styles/StyleItalic.kt @@ -1,9 +1,9 @@ package com.easyapps.richeditorlib.styles -import com.easyapps.richeditorlib.widgets.RichEditText import com.easyapps.richeditorlib.abstracts.Style import com.easyapps.richeditorlib.helpers.Helper import com.easyapps.richeditorlib.spans.SpanItalic +import com.easyapps.richeditorlib.widgets.RichEditText import com.google.android.material.button.MaterialButton class StyleItalic(private val item: MaterialButton, editText: RichEditText) : Style() { diff --git a/Rich Editor Lib/src/main/java/com/easyapps/richeditorlib/styles/StyleStrikethrough.kt b/Rich Editor Lib/src/main/java/com/easyapps/richeditorlib/styles/StyleStrikethrough.kt index ba36768..2d68aca 100644 --- a/Rich Editor Lib/src/main/java/com/easyapps/richeditorlib/styles/StyleStrikethrough.kt +++ b/Rich Editor Lib/src/main/java/com/easyapps/richeditorlib/styles/StyleStrikethrough.kt @@ -1,9 +1,9 @@ package com.easyapps.richeditorlib.styles import android.text.style.StrikethroughSpan -import com.easyapps.richeditorlib.widgets.RichEditText import com.easyapps.richeditorlib.abstracts.Style import com.easyapps.richeditorlib.helpers.Helper +import com.easyapps.richeditorlib.widgets.RichEditText import com.google.android.material.button.MaterialButton class StyleStrikethrough(private val item: MaterialButton, editText: RichEditText) : Style() { diff --git a/Rich Editor Lib/src/main/java/com/easyapps/richeditorlib/styles/StyleUnderline.kt b/Rich Editor Lib/src/main/java/com/easyapps/richeditorlib/styles/StyleUnderline.kt index 0045b71..e9c9956 100644 --- a/Rich Editor Lib/src/main/java/com/easyapps/richeditorlib/styles/StyleUnderline.kt +++ b/Rich Editor Lib/src/main/java/com/easyapps/richeditorlib/styles/StyleUnderline.kt @@ -1,9 +1,9 @@ package com.easyapps.richeditorlib.styles -import com.easyapps.richeditorlib.widgets.RichEditText import com.easyapps.richeditorlib.abstracts.Style import com.easyapps.richeditorlib.helpers.Helper import com.easyapps.richeditorlib.spans.SpanUnderline +import com.easyapps.richeditorlib.widgets.RichEditText import com.google.android.material.button.MaterialButton class StyleUnderline(private val item: MaterialButton, editText: RichEditText) : Style() { diff --git a/Rich Editor Lib/src/main/java/com/easyapps/richeditorlib/widgets/StyleBar.kt b/Rich Editor Lib/src/main/java/com/easyapps/richeditorlib/widgets/StyleBar.kt index f37c104..1bb226b 100644 --- a/Rich Editor Lib/src/main/java/com/easyapps/richeditorlib/widgets/StyleBar.kt +++ b/Rich Editor Lib/src/main/java/com/easyapps/richeditorlib/widgets/StyleBar.kt @@ -1,15 +1,12 @@ package com.easyapps.richeditorlib.widgets import android.content.Context -import android.graphics.Color -import android.graphics.drawable.LayerDrawable import android.util.AttributeSet import android.view.Gravity import android.view.View import android.widget.HorizontalScrollView import android.widget.LinearLayout import androidx.core.content.ContextCompat -import androidx.core.graphics.drawable.DrawableCompat import com.easyapps.richeditorlib.R import com.easyapps.richeditorlib.interfaces.StyleListener import com.easyapps.richeditorlib.styles.* diff --git a/Rich Editor Lib/src/test/java/com/easyapps/richeditorlib/ExampleUnitTest.kt b/Rich Editor Lib/src/test/java/com/easyapps/richeditorlib/ExampleUnitTest.kt index 1dfab8d..96253a3 100644 --- a/Rich Editor Lib/src/test/java/com/easyapps/richeditorlib/ExampleUnitTest.kt +++ b/Rich Editor Lib/src/test/java/com/easyapps/richeditorlib/ExampleUnitTest.kt @@ -1,9 +1,8 @@ package com.easyapps.richeditorlib +import org.junit.Assert.assertEquals import org.junit.Test -import org.junit.Assert.* - /** * Example local unit test, which will execute on the development machine (host). * diff --git a/app/src/androidTest/java/com/easyapps/richeditor/ExampleInstrumentedTest.kt b/app/src/androidTest/java/com/easyapps/richeditor/ExampleInstrumentedTest.kt index ad1c6c1..cdfdeb9 100644 --- a/app/src/androidTest/java/com/easyapps/richeditor/ExampleInstrumentedTest.kt +++ b/app/src/androidTest/java/com/easyapps/richeditor/ExampleInstrumentedTest.kt @@ -1,13 +1,11 @@ package com.easyapps.richeditor -import androidx.test.platform.app.InstrumentationRegistry import androidx.test.ext.junit.runners.AndroidJUnit4 - +import androidx.test.platform.app.InstrumentationRegistry +import org.junit.Assert.assertEquals import org.junit.Test import org.junit.runner.RunWith -import org.junit.Assert.* - /** * Instrumented test, which will execute on an Android device. * diff --git a/app/src/test/java/com/easyapps/richeditor/ExampleUnitTest.kt b/app/src/test/java/com/easyapps/richeditor/ExampleUnitTest.kt index 60f5269..9d6a60e 100644 --- a/app/src/test/java/com/easyapps/richeditor/ExampleUnitTest.kt +++ b/app/src/test/java/com/easyapps/richeditor/ExampleUnitTest.kt @@ -1,9 +1,8 @@ package com.easyapps.richeditor +import org.junit.Assert.assertEquals import org.junit.Test -import org.junit.Assert.* - /** * Example local unit test, which will execute on the development machine (host). *