From 1283eb754dc4a9fca7510d697aac5ca6dafe6af9 Mon Sep 17 00:00:00 2001 From: Aryan-mor Date: Tue, 4 Jun 2019 12:50:05 +0430 Subject: [PATCH 1/8] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 29e2c6b..e284824 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,7 @@ dependencies { * [CheckUtils](#checkutilsfunctions) * [Convertor](#convertorfunctions) * [DateUtils](#datefunctions) +* [VoiceRecorder](#voicerecorder) * [DirUtils](#dirfunctions) * [FileUtils](#filefunctions) * [Encryption](#encryptionfunctions) From 87710fb1ae2214ba4fa5517838c4e25fe7433f11 Mon Sep 17 00:00:00 2001 From: Aryan-mor Date: Tue, 4 Jun 2019 12:50:30 +0430 Subject: [PATCH 2/8] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 29e2c6b..e284824 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,7 @@ dependencies { * [CheckUtils](#checkutilsfunctions) * [Convertor](#convertorfunctions) * [DateUtils](#datefunctions) +* [VoiceRecorder](#voicerecorder) * [DirUtils](#dirfunctions) * [FileUtils](#filefunctions) * [Encryption](#encryptionfunctions) From af11075059925a0895c0f40d242b30fc935d1f6b Mon Sep 17 00:00:00 2001 From: Aryan-mor Date: Wed, 5 Jun 2019 15:05:48 +0430 Subject: [PATCH 3/8] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e284824..58688ee 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Utils-Library Android amazing helper function library
-`Only work on kotlin` +`Works better on kotlin` Usage -------- From 8f659bbd28a38b17fadcbf305bd04fed1f61fb5f Mon Sep 17 00:00:00 2001 From: Aryan-mor Date: Wed, 5 Jun 2019 15:14:25 +0430 Subject: [PATCH 4/8] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 58688ee..a3d5d93 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ dependencies { * [Log](#logfunctions) * [SharedPreferences](#sharedpreferencesfunctions) * [Toast](#toastfunctions) -* [SnackBar](#toastfunctions) +* [SnackBar](#snackbarfunctions) * [CheckUtils](#checkutilsfunctions) * [Convertor](#convertorfunctions) * [DateUtils](#datefunctions) From c84956973434d022aa0b244a5900f9d6d46d5f8c Mon Sep 17 00:00:00 2001 From: Aryan-mor Date: Wed, 5 Jun 2019 18:34:15 +0430 Subject: [PATCH 5/8] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a3d5d93..f6b8f22 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ dependencies { * [DirUtils](#dirfunctions) * [FileUtils](#filefunctions) * [Encryption](#encryptionfunctions) +* [Hash](#hashfunctions) # Example Some examples of library functions From 330015683e0d7265f5463af9362186ddfc968e9c Mon Sep 17 00:00:00 2001 From: Aryan-mor Date: Wed, 5 Jun 2019 18:42:58 +0430 Subject: [PATCH 6/8] Update README.md --- README.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f6b8f22..17eff7b 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,7 @@ You can convert all classes to json like this and hydrate Another functions ```AnotherFunction + //You can close application like this activity.closeApp() @@ -104,11 +105,11 @@ Another functions //Or activity.vibrate(milliseconds: Long, amplitude: Int) - ``` ## IntentFunctions ```intent + class MainActivity : AppCompatActivity(){ override fun onCreate(savedInstanceState: Bundle?) { @@ -132,22 +133,28 @@ class MainActivity : AppCompatActivity(){ } } + ``` You can intent to your app package setting like this ```intentToPackageSetting + context.intentToPackageSetting() + ``` You can open link like this ```intentToPackageSetting + context.openLink("http://...") + ``` ## LogFunctions AnyWhere can use log funtion :relaxed: ```basicLog + //Basic usage log(Any) // log any object //or @@ -217,6 +224,7 @@ items will be decrypted upon retrieving ## ToastFunctions Toast fuction by context ```toast + //ToastFucntion | return Toast context.toast("myToastMessage").show() @@ -227,3 +235,18 @@ Toast fuction by context context.longToast(R.string.myString).show() ``` + +## HashFunctions +You can make hash of your string using 6 algoritm +```hash + + val s = "MyString" + logE("MD5 -> " + s.toMd5()) + logE("toSHA-1 -> " + s.toSHA_1()) + logE("toSHA-224 -> " + s.toSHA_224()) + logE("toSHA-256 -> " + s.toSHA_256()) + logE("toSHA-384 -> " + s.toSHA_384()) + logE("toSHA-512 -> " + s.toSHA_512()) + +``` + From 73ae7fe54a8e8cb2da3cc4ac12c8755f4d45cf4f Mon Sep 17 00:00:00 2001 From: Aryan-mor Date: Wed, 5 Jun 2019 18:43:51 +0430 Subject: [PATCH 7/8] Update README.md --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 17eff7b..065a5b2 100644 --- a/README.md +++ b/README.md @@ -241,12 +241,12 @@ You can make hash of your string using 6 algoritm ```hash val s = "MyString" - logE("MD5 -> " + s.toMd5()) - logE("toSHA-1 -> " + s.toSHA_1()) - logE("toSHA-224 -> " + s.toSHA_224()) - logE("toSHA-256 -> " + s.toSHA_256()) - logE("toSHA-384 -> " + s.toSHA_384()) - logE("toSHA-512 -> " + s.toSHA_512()) + logI("toMD5 -> " + s.toMd5()) + logI("toSHA-1 -> " + s.toSHA_1()) + logI("toSHA-224 -> " + s.toSHA_224()) + logI("toSHA-256 -> " + s.toSHA_256()) + logI("toSHA-384 -> " + s.toSHA_384()) + logI("toSHA-512 -> " + s.toSHA_512()) ``` From 7ed190fd1e20690e4ab8784d421a9219e3c60563 Mon Sep 17 00:00:00 2001 From: Aryan-mor Date: Wed, 5 Jun 2019 18:44:55 +0430 Subject: [PATCH 8/8] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 065a5b2..744cb0d 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ allprojects { //Module:App dependencies { - implementation 'com.github.Aryan-mor:Utils-Library:1.3.8' + implementation 'com.github.Aryan-mor:Utils-Library:1.3.9' } ```