Skip to content

Commit

Permalink
Added Custom Views and API and Socket Utils
Browse files Browse the repository at this point in the history
  • Loading branch information
Hariharan authored and Hariharan committed Nov 23, 2021
1 parent 201ca1d commit 2504b11
Show file tree
Hide file tree
Showing 38 changed files with 1,464 additions and 45 deletions.
3 changes: 1 addition & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* * Created by https://github.com/braver-tool on 16/11/21, 10:30 AM
* * Copyright (c) 2021 . All rights reserved.
* * Last modified 17/11/21, 03:10 PM
* * Last modified 23/11/21, 03:40 PM
*
*/

Expand Down Expand Up @@ -50,5 +50,4 @@ dependencies {
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation project(':utils')
//implementation 'com.github.braver-tool:app-utils:1.0.0'

}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* * Created by https://github.com/braver-tool on 16/11/21, 10:30 AM
* * Copyright (c) 2021 . All rights reserved.
* * Last modified 17/11/21, 03:10 PM
* * Last modified 23/11/21, 03:40 PM
*
*/

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
~ /*
~ * Created by https://github.com/braver-tool on 16/11/21, 10:30 AM
~ * Copyright (c) 2021 . All rights reserved.
~ * Last modified 17/11/21, 03:10 PM
~ * Last modified 23/11/21, 03:40 PM
~ */
-->

Expand Down
9 changes: 4 additions & 5 deletions app/src/main/java/com/braver/app/utils/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* * Created by https://github.com/braver-tool on 16/11/21, 10:30 AM
* * Copyright (c) 2021 . All rights reserved.
* * Last modified 17/11/21, 03:10 PM
* * Last modified 23/11/21, 03:40 PM
*
*/

Expand All @@ -19,15 +19,14 @@ import com.braver.utils.*
import java.util.*

class MainActivity : AppCompatActivity(), DialogUtils.OnDialogWidgetClick {
private lateinit var prefManager: PreferencesManager
private lateinit var prefUtils: PreferenceUtils


override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
prefManager = PreferencesManager.getInstance(this@MainActivity)
prefUtils = PreferenceUtils.getInstance(this@MainActivity)
usageOfUtils()

}

override fun onPositiveClick() {
Expand Down Expand Up @@ -101,7 +100,7 @@ class MainActivity : AppCompatActivity(), DialogUtils.OnDialogWidgetClick {

private fun usageOfUtils() {
//SharedPreferences
prefManager.setStringValue("DATA", "SAMPLE")
prefUtils.setStringValue("DATA", "SAMPLE")
//Check Network Availability
val isNetwork = AppUtils.isNetworkAvailable(this@MainActivity)
Log.d("##", "isNetwork------->$isNetwork")
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/drawable-v24/ic_launcher_foreground.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
~ /*
~ * Created by https://github.com/braver-tool on 16/11/21, 10:30 AM
~ * Copyright (c) 2021 . All rights reserved.
~ * Last modified 17/11/21, 03:10 PM
~ * Last modified 23/11/21, 03:40 PM
~ */
-->

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/drawable/ic_launcher_background.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
~ /*
~ * Created by https://github.com/braver-tool on 16/11/21, 10:30 AM
~ * Copyright (c) 2021 . All rights reserved.
~ * Last modified 17/11/21, 03:10 PM
~ * Last modified 23/11/21, 03:40 PM
~ */
-->

Expand Down
17 changes: 14 additions & 3 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
<?xml version="1.0" encoding="utf-8"?><!--
~ /*
~ * Created by https://github.com/braver-tool on 16/11/21, 10:30 AM
~ * Copyright (c) 2021 . All rights reserved.
~ * Last modified 17/11/21, 03:10 PM
~ * Last modified 23/11/21, 03:40 PM
~ */
-->

Expand All @@ -15,5 +14,17 @@
android:background="#E0E0E0"
tools:context=".MainActivity">

<TextView
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:padding="5dp"
android:text="@string/braver_tool"
android:textColor="@color/black"
android:textSize="12sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>
3 changes: 1 addition & 2 deletions app/src/main/res/menu/main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
~ /*
~ * Created by https://github.com/braver-tool on 16/11/21, 10:30 AM
~ * Copyright (c) 2021 . All rights reserved.
~ * Last modified 17/11/21, 03:10 PM
~ * Last modified 23/11/21, 03:40 PM
~ */
-->

Expand All @@ -27,5 +27,4 @@
android:orderInCategory="100"
android:title="Alert Dialog 2"
app:showAsAction="never" />

</menu>
2 changes: 1 addition & 1 deletion app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
~ /*
~ * Created by https://github.com/braver-tool on 16/11/21, 10:30 AM
~ * Copyright (c) 2021 . All rights reserved.
~ * Last modified 17/11/21, 03:10 PM
~ * Last modified 23/11/21, 03:40 PM
~ */
-->

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
~ /*
~ * Created by https://github.com/braver-tool on 16/11/21, 10:30 AM
~ * Copyright (c) 2021 . All rights reserved.
~ * Last modified 17/11/21, 03:10 PM
~ * Last modified 23/11/21, 03:40 PM
~ */
-->

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-night/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
~ /*
~ * Created by https://github.com/braver-tool on 16/11/21, 10:30 AM
~ * Copyright (c) 2021 . All rights reserved.
~ * Last modified 17/11/21, 03:10 PM
~ * Last modified 23/11/21, 03:40 PM
~ */
-->

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
~ /*
~ * Created by https://github.com/braver-tool on 16/11/21, 10:30 AM
~ * Copyright (c) 2021 . All rights reserved.
~ * Last modified 17/11/21, 03:10 PM
~ * Last modified 23/11/21, 03:40 PM
~ */
-->

Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
~ /*
~ * Created by https://github.com/braver-tool on 16/11/21, 10:30 AM
~ * Copyright (c) 2021 . All rights reserved.
~ * Last modified 17/11/21, 03:10 PM
~ * Last modified 23/11/21, 03:40 PM
~ */
-->

<resources>
<string name="app_name">App Utils</string>
<string name="braver_tool">Braver Tool</string>
</resources>
2 changes: 1 addition & 1 deletion app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
~ /*
~ * Created by https://github.com/braver-tool on 16/11/21, 10:30 AM
~ * Copyright (c) 2021 . All rights reserved.
~ * Last modified 17/11/21, 03:10 PM
~ * Last modified 23/11/21, 03:40 PM
~ */
-->

Expand Down
2 changes: 1 addition & 1 deletion app/src/test/java/com/braver/app/utils/ExampleUnitTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* * Created by https://github.com/braver-tool on 16/11/21, 10:30 AM
* * Copyright (c) 2021 . All rights reserved.
* * Last modified 17/11/21, 03:10 PM
* * Last modified 23/11/21, 03:40 PM
*
*/

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* * Created by https://github.com/braver-tool on 16/11/21, 10:30 AM
* * Copyright (c) 2021 . All rights reserved.
* * Last modified 17/11/21, 03:10 PM
* * Last modified 23/11/21, 03:40 PM
*
*/

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# /*
# * Created by https://github.com/braver-tool on 16/11/21, 10:30 AM
# * Copyright (c) 2021 . All rights reserved.
# * Last modified 17/11/21, 03:10 PM
# * Last modified 23/11/21, 03:40 PM
# */
#

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# /*
# * Created by https://github.com/braver-tool on 16/11/21, 10:30 AM
# * Copyright (c) 2021 . All rights reserved.
# * Last modified 17/11/21, 03:10 PM
# * Last modified 23/11/21, 03:40 PM
# */
#

Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* * Created by https://github.com/braver-tool on 16/11/21, 10:30 AM
* * Copyright (c) 2021 . All rights reserved.
* * Last modified 17/11/21, 03:10 PM
* * Last modified 23/11/21, 03:40 PM
*
*/

Expand Down
12 changes: 11 additions & 1 deletion utils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* * Created by https://github.com/braver-tool on 16/11/21, 10:30 AM
* * Copyright (c) 2021 . All rights reserved.
* * Last modified 17/11/21, 03:10 PM
* * Last modified 23/11/21, 03:40 PM
*
*/

Expand Down Expand Up @@ -41,5 +41,15 @@ dependencies {
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
//For Encryption/Decryption/KeyGeneration
implementation 'org.bouncycastle:bcprov-jdk16:1.45'
//For retrofit - Network Libraries
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'com.squareup.okhttp3:okhttp:4.9.1'
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.1'
//For Socket.IO
implementation('io.socket:socket.io-client:0.8.3') {
exclude group: 'org.json', module: 'json'
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*
* * Created by https://github.com/braver-tool on 16/11/21, 10:30 AM
* * Copyright (c) 2021 . All rights reserved.
* * Last modified 17/11/21, 03:10 PM
* * Last modified 23/11/21, 03:40 PM
*
*/

Expand Down
2 changes: 1 addition & 1 deletion utils/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
~ /*
~ * Created by https://github.com/braver-tool on 16/11/21, 10:30 AM
~ * Copyright (c) 2021 . All rights reserved.
~ * Last modified 17/11/21, 03:10 PM
~ * Last modified 23/11/21, 03:40 PM
~ */
-->

Expand Down
Loading

0 comments on commit 2504b11

Please sign in to comment.