Commit f7ccfa3d by YKai

feat:一键登录UI优化,代码优化

parent baf269ab
......@@ -41,6 +41,23 @@ android {
}
}
//配置签名文件
signingConfigs {
ydl {
storeFile file("keystore.jks")
storePassword "123456"
keyAlias "ydl"
keyPassword "123456"
}
xlzx {
storeFile file("keystore.jks")
storePassword "123456"
keyAlias "ydl"
keyPassword "123456"
}
}
compileOptions {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
......@@ -54,6 +71,10 @@ android {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
debug {
signingConfig signingConfigs.ydl
}
// debug {
// versionNameSuffix "-debug"
// signingConfig null
......@@ -63,23 +84,6 @@ android {
buildToolsVersion = '28.0.3'
//配置签名文件
signingConfigs {
ydl {
storeFile file("keystore.jks")
storePassword "123456"
keyAlias "ydl"
keyPassword "123456"
}
xlzx {
storeFile file("keystore.jks")
storePassword "123456"
keyAlias "ydl"
keyPassword "123456"
}
}
dexOptions {
//使用增量模式构建
// incremental true//最大堆内存
......
......@@ -96,7 +96,7 @@ class MainActivity : BaseLceActivity<DemoContract.View, DemoContract.Presenter>(
if (!it.isGetTokenSuccess){
it.setAuthListener()
}
oneKeyLoginHelp?.getLoginToken(true)
oneKeyLoginHelp?.getLoginToken(false)
}
}
......@@ -200,7 +200,13 @@ class MainActivity : BaseLceActivity<DemoContract.View, DemoContract.Presenter>(
FragmentContainerActivity.start(this, "YdlHomeFragment")
}
bt_to_mine.setOnClickListener {
FragmentContainerActivity.start(this, "MineFragment")
// FragmentContainerActivity.start(this, "MineFragment")
oneKeyLoginHelp?.let {
if (!it.isGetTokenSuccess){
it.setAuthListener()
}
oneKeyLoginHelp?.getLoginToken(true)
}
}
bt_to_privacy.setOnClickListener {
......
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android"
tools:ignore="ResourceName">
<alpha
android:duration="0"
/>
</set>
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android"
tools:ignore="ResourceName">
<alpha
android:duration="0"
/>
</set>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment