Move from java/ to kotlin/ directory
Android 12 dynamic color usage on login screen
This commit is contained in:
@@ -8,13 +8,13 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdk = 30
|
compileSdk = 31
|
||||||
buildToolsVersion = "30.0.3"
|
buildToolsVersion = "31.0.0"
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId = "com.meloda.fast"
|
applicationId = "com.meloda.fast"
|
||||||
minSdk = 23
|
minSdk = 23
|
||||||
targetSdk = 30
|
targetSdk = 31
|
||||||
versionCode = 1
|
versionCode = 1
|
||||||
versionName = "1.0"
|
versionName = "1.0"
|
||||||
|
|
||||||
@@ -65,7 +65,7 @@ kapt {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.21")
|
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30")
|
||||||
|
|
||||||
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.1.5")
|
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.1.5")
|
||||||
|
|
||||||
@@ -98,16 +98,16 @@ dependencies {
|
|||||||
implementation("com.squareup.retrofit2:retrofit:2.9.0")
|
implementation("com.squareup.retrofit2:retrofit:2.9.0")
|
||||||
implementation("com.squareup.retrofit2:converter-gson:2.9.0")
|
implementation("com.squareup.retrofit2:converter-gson:2.9.0")
|
||||||
|
|
||||||
implementation("com.google.dagger:hilt-android:2.37")
|
implementation("com.google.dagger:hilt-android:2.38.1")
|
||||||
kapt("com.google.dagger:hilt-android-compiler:2.37")
|
kapt("com.google.dagger:hilt-android-compiler:2.38.1")
|
||||||
implementation("androidx.hilt:hilt-navigation-fragment:1.0.0")
|
implementation("androidx.hilt:hilt-navigation-fragment:1.0.0")
|
||||||
|
|
||||||
implementation("com.github.yogacp:android-viewbinding:1.0.2")
|
implementation("com.github.yogacp:android-viewbinding:1.0.2")
|
||||||
|
|
||||||
implementation("io.coil-kt:coil:1.3.0")
|
implementation("io.coil-kt:coil:1.3.2")
|
||||||
|
|
||||||
implementation("com.google.code.gson:gson:2.8.7")
|
implementation("com.google.code.gson:gson:2.8.8")
|
||||||
implementation("org.jsoup:jsoup:1.14.1")
|
implementation("org.jsoup:jsoup:1.14.2")
|
||||||
implementation("ch.acra:acra:4.11.1")
|
implementation("ch.acra:acra:4.11.1")
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
package="com.meloda.fast">
|
package="com.meloda.fast">
|
||||||
|
|
||||||
<uses-permission android:name="android.permission.INTERNET" />
|
<uses-permission android:name="android.permission.INTERNET" />
|
||||||
@@ -7,15 +8,17 @@
|
|||||||
|
|
||||||
<application
|
<application
|
||||||
android:name=".common.AppGlobal"
|
android:name=".common.AppGlobal"
|
||||||
android:allowBackup="true"
|
android:allowBackup="false"
|
||||||
android:icon="@mipmap/ic_launcher"
|
android:icon="@mipmap/ic_launcher"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:roundIcon="@mipmap/ic_launcher_round"
|
android:roundIcon="@mipmap/ic_launcher_round"
|
||||||
android:supportsRtl="true"
|
android:supportsRtl="true"
|
||||||
android:testOnly="false"
|
android:testOnly="false"
|
||||||
android:theme="@style/AppTheme">
|
android:theme="@style/AppTheme">
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".activity.MainActivity"
|
android:name=".activity.MainActivity"
|
||||||
|
android:exported="true"
|
||||||
android:windowSoftInputMode="adjustResize">
|
android:windowSoftInputMode="adjustResize">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
@@ -30,7 +33,8 @@
|
|||||||
|
|
||||||
<receiver
|
<receiver
|
||||||
android:name=".receiver.MinuteReceiver"
|
android:name=".receiver.MinuteReceiver"
|
||||||
android:enabled="true">
|
android:enabled="true"
|
||||||
|
android:exported="false">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.ACTION_TIME_CHANGED" />
|
<action android:name="android.intent.ACTION_TIME_CHANGED" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
|||||||
-1
@@ -3,7 +3,6 @@ package com.meloda.fast.extensions
|
|||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import android.util.SparseArray
|
import android.util.SparseArray
|
||||||
import androidx.core.util.forEach
|
import androidx.core.util.forEach
|
||||||
import androidx.core.util.set
|
|
||||||
import androidx.fragment.app.Fragment
|
import androidx.fragment.app.Fragment
|
||||||
import androidx.fragment.app.FragmentManager
|
import androidx.fragment.app.FragmentManager
|
||||||
import androidx.lifecycle.LiveData
|
import androidx.lifecycle.LiveData
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package com.meloda.fast.fragment.friends
|
package com.meloda.fast.screens.friends
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.view.View
|
import android.view.View
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package com.meloda.fast.fragment.important
|
package com.meloda.fast.screens.important
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.view.View
|
import android.view.View
|
||||||
+4
-2
@@ -1,6 +1,7 @@
|
|||||||
package com.meloda.fast.fragment.login
|
package com.meloda.fast.screens.login
|
||||||
|
|
||||||
import android.annotation.SuppressLint
|
import android.annotation.SuppressLint
|
||||||
|
import android.graphics.Typeface
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.view.KeyEvent
|
import android.view.KeyEvent
|
||||||
import android.view.View
|
import android.view.View
|
||||||
@@ -26,7 +27,7 @@ import com.meloda.fast.base.viewmodel.StopProgressEvent
|
|||||||
import com.meloda.fast.base.viewmodel.VKEvent
|
import com.meloda.fast.base.viewmodel.VKEvent
|
||||||
import com.meloda.fast.databinding.DialogCaptchaBinding
|
import com.meloda.fast.databinding.DialogCaptchaBinding
|
||||||
import com.meloda.fast.databinding.FragmentLoginBinding
|
import com.meloda.fast.databinding.FragmentLoginBinding
|
||||||
import com.meloda.fast.fragment.main.MainFragment
|
import com.meloda.fast.screens.main.MainFragment
|
||||||
import com.meloda.fast.util.KeyboardUtils
|
import com.meloda.fast.util.KeyboardUtils
|
||||||
import dagger.hilt.android.AndroidEntryPoint
|
import dagger.hilt.android.AndroidEntryPoint
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
@@ -123,6 +124,7 @@ class LoginFragment : BaseVMFragment<LoginVM>(R.layout.fragment_login) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun preparePasswordEditText() {
|
private fun preparePasswordEditText() {
|
||||||
|
binding.passwordInput.typeface = Typeface.DEFAULT
|
||||||
binding.passwordLayout.endIconMode = TextInputLayout.END_ICON_NONE
|
binding.passwordLayout.endIconMode = TextInputLayout.END_ICON_NONE
|
||||||
|
|
||||||
binding.passwordInput.addTextChangedListener {
|
binding.passwordInput.addTextChangedListener {
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package com.meloda.fast.fragment.login
|
package com.meloda.fast.screens.login
|
||||||
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.util.Log
|
import android.util.Log
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user