Skip to content

Commit

Permalink
optimized imports because who needs extra lines
Browse files Browse the repository at this point in the history
  • Loading branch information
CraZyLegenD committed Apr 2, 2019
1 parent f5659ef commit 55cfd8a
Show file tree
Hide file tree
Showing 28 changed files with 37 additions and 100 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
package com.crazylegend.kotlinextensions;

import android.content.Context;

import org.junit.Test;
import org.junit.runner.RunWith;

import androidx.test.InstrumentationRegistry;
import androidx.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;

import static org.junit.Assert.assertEquals;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,17 @@ import java.net.URI
import java.net.URL
import java.net.URLDecoder
import java.net.URLEncoder
import java.nio.file.Path
import java.nio.file.Paths
import java.security.MessageDigest
import java.security.NoSuchAlgorithmException
import java.security.SecureRandom
import java.text.ParseException
import java.text.SimpleDateFormat
import java.util.*
import java.util.regex.Pattern
import javax.crypto.Cipher
import javax.crypto.spec.SecretKeySpec
import java.nio.file.Path
import java.nio.file.Paths
import java.text.ParseException
import java.text.SimpleDateFormat
import java.util.concurrent.ConcurrentHashMap
import java.util.concurrent.ConcurrentMap


/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.crazylegend.kotlinextensions.basehelpers

import android.content.Context
import android.graphics.DashPathEffect
import android.graphics.Canvas
import android.graphics.DashPathEffect
import android.graphics.Paint
import android.util.AttributeSet
import android.view.View
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package com.crazylegend.kotlinextensions.biometric

import android.Manifest.permission.USE_BIOMETRIC
import androidx.annotation.RequiresPermission
import androidx.biometric.BiometricConstants
import androidx.biometric.BiometricPrompt
import androidx.fragment.app.FragmentActivity
import java.util.concurrent.Executors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ import android.app.ActivityOptions
import android.content.Context
import android.os.Bundle
import android.os.Parcelable
import android.view.View
import androidx.annotation.AnimRes
import com.crazylegend.kotlinextensions.R
import com.crazylegend.kotlinextensions.packageutils.buildIsLollipopAndUp
import java.lang.Exception
import java.io.Serializable


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ package com.crazylegend.kotlinextensions.codestyle
import android.content.Context
import android.graphics.Color
import android.os.Bundle
import android.view.Gravity
import android.view.ViewGroup
import android.view.WindowManager
import android.widget.LinearLayout
import android.widget.ProgressBar
import android.widget.RelativeLayout
import android.widget.TextView
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.app.AppCompatActivity
import com.crazylegend.kotlinextensions.locale.LocaleHelper
import android.widget.RelativeLayout
import com.crazylegend.kotlinextensions.views.gone
import com.crazylegend.kotlinextensions.views.visible
import android.widget.TextView
import android.view.Gravity
import android.view.ViewGroup
import androidx.appcompat.app.AlertDialog


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package com.crazylegend.kotlinextensions.collections
import android.content.res.TypedArray
import android.util.LongSparseArray
import android.util.SparseArray
import android.util.SparseBooleanArray
import androidx.core.util.forEach
import java.util.*
import kotlin.NoSuchElementException
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.crazylegend.kotlinextensions.compress

import com.bumptech.glide.load.engine.bitmap_recycle.ByteArrayAdapter
import java.io.ByteArrayOutputStream
import java.util.zip.Deflater
import java.util.zip.Inflater
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import android.net.wifi.p2p.WifiP2pManager
import android.nfc.NfcManager
import android.os.*
import android.os.storage.StorageManager
import android.preference.PreferenceManager
import android.print.PrintManager
import android.telecom.TelecomManager
import android.telephony.TelephonyManager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ import androidx.core.app.ActivityCompat
import androidx.core.app.NotificationManagerCompat
import androidx.core.content.ContextCompat
import androidx.core.content.res.ResourcesCompat
import com.bumptech.glide.Glide
import com.bumptech.glide.load.DataSource
import com.bumptech.glide.load.engine.GlideException
import com.bumptech.glide.request.RequestListener
import com.crazylegend.kotlinextensions.enums.ContentColumns
import com.crazylegend.kotlinextensions.enums.ContentOrder
import com.crazylegend.kotlinextensions.toFile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package com.crazylegend.kotlinextensions.dataStructuresAndAlgorithms.cryptograph
import android.content.Context
import android.os.Build
import android.security.KeyPairGeneratorSpec
import android.security.keystore.KeyProperties
import android.security.keystore.KeyGenParameterSpec
import android.security.keystore.KeyProperties
import android.util.Base64
import android.util.Log
import androidx.annotation.RequiresApi
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.crazylegend.kotlinextensions.dateAndTime

import android.content.Context
import java.util.concurrent.TimeUnit


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@ import java.nio.channels.FileChannel
import java.nio.charset.Charset
import java.text.SimpleDateFormat
import java.util.*
import java.nio.file.Files.isDirectory
import java.nio.file.Files.delete
import java.nio.file.Files.isDirectory






/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import android.content.ContentResolver
import android.content.Context
import android.database.Cursor
import android.net.Uri
import android.provider.MediaStore
import android.provider.OpenableColumns
import android.webkit.MimeTypeMap
import java.io.File
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.crazylegend.kotlinextensions.input

import android.view.MotionEvent
import android.view.GestureDetector
import android.app.Activity
import android.view.GestureDetector
import android.view.MotionEvent
import android.view.View
import androidx.annotation.NonNull

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import android.Manifest.permission.*
import android.app.Activity
import android.app.SearchManager
import android.content.Intent
import android.graphics.*
import android.graphics.BitmapFactory
import android.net.Uri
import android.provider.*
import androidx.annotation.RequiresPermission
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.crazylegend.kotlinextensions.receivers

import android.telephony.TelephonyManager
import android.telephony.PhoneStateListener
import android.content.Intent
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.telephony.PhoneStateListener
import android.telephony.TelephonyManager
import java.util.*


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package com.crazylegend.kotlinextensions.receivers
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.os.Build
import android.provider.Telephony
import android.telephony.SmsMessage

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@ import android.graphics.*
import android.graphics.drawable.ColorDrawable
import android.graphics.drawable.Drawable
import android.graphics.drawable.GradientDrawable
import android.os.Build
import android.view.View
import android.view.ViewGroup
import android.widget.EdgeEffect
import androidx.annotation.ColorInt
import androidx.annotation.IdRes
import androidx.core.widget.EdgeEffectCompat
import androidx.recyclerview.widget.*
import com.crazylegend.kotlinextensions.context.getCompatDrawable
import com.crazylegend.kotlinextensions.dp2px
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
package com.crazylegend.kotlinextensions.recyclerview.utils

import android.R.attr.top
import android.R.attr.right
import android.R.attr.bottom
import android.R.attr.left
import android.graphics.Canvas
import android.graphics.Rect
import android.view.View
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.RecyclerView




/**
* Created by hristijan on 3/29/19 to long live and prosper !
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
package com.crazylegend.kotlinextensions.recyclerview.utils

import android.R.attr.top
import android.R.attr.right
import android.R.attr.left
import android.R.attr.bottom
import android.graphics.Rect
import android.view.View
import androidx.annotation.NonNull
import androidx.recyclerview.widget.RecyclerView




/**
* Created by hristijan on 3/29/19 to long live and prosper !
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ package com.crazylegend.kotlinextensions.recyclerview.utils
import android.graphics.Canvas
import android.graphics.Rect
import android.view.View
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import androidx.recyclerview.widget.GridLayoutManager




/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package com.crazylegend.kotlinextensions.recyclerview.utils

import android.graphics.Canvas
import android.graphics.Rect
import androidx.recyclerview.widget.RecyclerView
import android.graphics.drawable.ColorDrawable
import android.graphics.drawable.Drawable
import android.view.View
import androidx.recyclerview.widget.RecyclerView


/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
package com.crazylegend.kotlinextensions.ui

import android.text.Spannable
import android.text.style.RelativeSizeSpan
import android.text.style.BackgroundColorSpan
import android.text.style.ForegroundColorSpan
import android.graphics.Typeface
import android.text.style.StyleSpan
import android.text.style.UnderlineSpan
import android.text.style.StrikethroughSpan
import android.text.Spannable
import android.text.SpannableString
import android.text.style.*
import androidx.annotation.ColorInt
import androidx.annotation.NonNull

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
package com.crazylegend.kotlinextensions.views

import android.annotation.SuppressLint
import android.content.Context
import android.graphics.PorterDuff
import android.os.Handler
import android.text.Editable
import android.text.InputFilter
import android.text.TextUtils
import android.text.TextWatcher
import android.view.*
import android.view.inputmethod.EditorInfo
import android.view.inputmethod.InputMethodManager
import android.widget.EditText
Expand All @@ -16,13 +19,6 @@ import com.crazylegend.kotlinextensions.context.inputMethodManager
import com.google.android.material.textfield.TextInputEditText
import java.net.MalformedURLException
import java.net.URL
import java.lang.reflect.AccessibleObject.setAccessible
import android.annotation.SuppressLint
import android.text.InputFilter
import android.view.*
import android.view.KeyEvent.KEYCODE_DEL




/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@ package com.crazylegend.kotlinextensions.views
import android.animation.ObjectAnimator
import android.annotation.SuppressLint
import android.content.ClipData
import android.content.Context
import android.graphics.Color
import android.graphics.Paint
import android.graphics.Typeface
import android.os.Build
import android.text.*
import android.text.method.LinkMovementMethod
import android.text.style.AbsoluteSizeSpan
import android.text.style.ForegroundColorSpan
import android.util.Log
import android.view.View
Expand Down
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
package com.crazylegend.kotlinextensions.views

import android.widget.ImageView
import android.app.Activity
import android.content.Context
import android.content.res.Resources
import android.graphics.*
import android.view.View
import android.widget.RelativeLayout
import android.widget.TextView
import android.view.ViewGroup
import android.view.MotionEvent
import android.graphics.drawable.BitmapDrawable
import android.util.DisplayMetrics
import android.graphics.drawable.Drawable
import android.graphics.drawable.ColorDrawable
import android.graphics.drawable.Drawable
import android.graphics.drawable.GradientDrawable
import android.os.Build.VERSION.SDK_INT
import android.os.Build.VERSION_CODES.JELLY_BEAN
import android.text.Spannable
import android.text.SpannableString
import android.text.Spanned
import android.text.method.LinkMovementMethod
import android.text.style.ClickableSpan
import androidx.annotation.*
import android.util.DisplayMetrics
import android.view.MotionEvent
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.RelativeLayout
import android.widget.TextView
import androidx.annotation.ColorInt
import androidx.annotation.ColorRes
import androidx.annotation.DrawableRes
import com.crazylegend.kotlinextensions.bitmap.flipHorizontally
import com.crazylegend.kotlinextensions.context.getColorCompat
import com.crazylegend.kotlinextensions.context.getCompatColor
Expand Down
Loading

0 comments on commit 55cfd8a

Please sign in to comment.