修改版本号
This commit is contained in:
+7
-7
@@ -54,13 +54,13 @@ android {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
signingConfig signingConfigs.release
|
||||
// android.applicationVariants.all { variant ->
|
||||
// variant.outputs.all { output ->
|
||||
// def sourceFile = "app-release"
|
||||
// def replaceFile = "app-yixiong_v${defaultConfig.versionName}"
|
||||
// outputFileName = output.outputFile.name.replace(sourceFile, replaceFile)
|
||||
// }
|
||||
// }
|
||||
android.applicationVariants.all { variant ->
|
||||
variant.outputs.all { output ->
|
||||
def sourceFile = "app-release"
|
||||
def replaceFile = "app-xinjiang_user_v${defaultConfig.versionName}"
|
||||
outputFileName = output.outputFile.name.replace(sourceFile, replaceFile)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ import android.os.Bundle
|
||||
import android.view.View
|
||||
import com.sw.healthyclients.data.local.DataStoreManager
|
||||
import com.xjjk.healthyclients.AppViewModel
|
||||
import com.xjjk.healthyclients.BuildConfig
|
||||
import com.xjjk.healthyclients.R
|
||||
import com.xjjk.healthyclients.base.BaseVMBActivity
|
||||
import com.xjjk.healthyclients.databinding.ActivitySettingBinding
|
||||
@@ -22,6 +23,8 @@ class UserSettingActivity :
|
||||
settingEditPassword.setOrderStateInfo("账号与安全(修改密码)",0,View.GONE)
|
||||
settingUserAgreement.setOrderStateInfo("用户协议",0,View.VISIBLE)
|
||||
settingUserPrivacyPolicy.setOrderStateInfo("隐私政策",0,View.VISIBLE)
|
||||
settingVersion.setOrderStateInfo("当前版本",0,View.VISIBLE,false, "v"+BuildConfig.VERSION_NAME)
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -43,6 +43,11 @@
|
||||
android:layout_marginLeft="@dimen/dp_12"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
<com.xjjk.healthyclients.view.CustomUserInfoMenu
|
||||
android:id="@+id/setting_version"
|
||||
android:layout_marginLeft="@dimen/dp_12"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
Reference in New Issue
Block a user