注册和登录放开国际区号选择
This commit is contained in:
@@ -47,12 +47,12 @@ android {
|
||||
applicationId = "com.dskj.rbchat"
|
||||
minSdk = 24
|
||||
targetSdk = 34
|
||||
versionCode = 192
|
||||
versionName = "1.9.2"
|
||||
versionCode = 193
|
||||
versionName = "1.9.3"
|
||||
multiDexEnabled = true
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
// manifestPlaceholders["IMAPPKEY"] = "c38c8bbebf7d12992d2a361bfceb6c6f" //正式
|
||||
manifestPlaceholders["IMAPPKEY"] = "4cb6b0998f9e7af9d7673963e429959a" //测试
|
||||
//manifestPlaceholders["IMAPPKEY"] = "c38c8bbebf7d12992d2a361bfceb6c6f" //正式
|
||||
//manifestPlaceholders["IMAPPKEY"] = "4cb6b0998f9e7af9d7673963e429959a" //测试
|
||||
|
||||
manifestPlaceholders["JPUSH_PKGNAME"] = "com.dskj.rbchat"
|
||||
manifestPlaceholders["JPUSH_APPKEY"] = "9041bc22de91e3d9af3cfd23"
|
||||
@@ -102,7 +102,7 @@ android {
|
||||
)
|
||||
//正式服
|
||||
manifestPlaceholders["IMAPPKEY"] = "c38c8bbebf7d12992d2a361bfceb6c6f" //正式
|
||||
// manifestPlaceholders["IMAPPKEY"] = "4cb6b0998f9e7af9d7673963e429959a"
|
||||
//manifestPlaceholders["IMAPPKEY"] = "4cb6b0998f9e7af9d7673963e429959a"
|
||||
|
||||
}
|
||||
|
||||
@@ -126,8 +126,8 @@ android {
|
||||
"\"AIzaSyB7P1o1EIA02eWoNP_7QJ9XwWe3WkSZb9k\""
|
||||
)
|
||||
//测试APPKEY
|
||||
manifestPlaceholders["IMAPPKEY"] = "4cb6b0998f9e7af9d7673963e429959a"
|
||||
// manifestPlaceholders["IMAPPKEY"] = "c38c8bbebf7d12992d2a361bfceb6c6f"
|
||||
manifestPlaceholders["IMAPPKEY"] = "4cb6b0998f9e7af9d7673963e429959a"
|
||||
// manifestPlaceholders["IMAPPKEY"] = "c38c8bbebf7d12992d2a361bfceb6c6f"
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -95,22 +95,22 @@ public class PhoneLoginActivity extends BaseActivity {
|
||||
setPrivacyContent(activityWelcomeBinding.mobileTipsTv);
|
||||
|
||||
countryBean = DataUtils.getLocCountry(PhoneLoginActivity.this);
|
||||
// changeArea();
|
||||
// activityWelcomeBinding.areaTv.setOnClickListener(new View.OnClickListener() {
|
||||
// @Override
|
||||
// public void onClick(View v) {
|
||||
// SelectCountryDialog selectCountryDialog = new SelectCountryDialog(PhoneLoginActivity.this);
|
||||
// selectCountryDialog.setOnToVipListener(new SelectCountryDialog.OnToTypeListener() {
|
||||
// @Override
|
||||
// public void toType(CountryBean type) {
|
||||
// countryBean = type;
|
||||
// changeArea();
|
||||
// DataUtils.set(PhoneLoginActivity.this, IMUIKitConfig.LOC_COUNTRY_CODE, type.getAreaCodeName());
|
||||
// }
|
||||
// });
|
||||
// selectCountryDialog.show();
|
||||
// }
|
||||
// });
|
||||
changeArea();
|
||||
activityWelcomeBinding.areaTv.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
SelectCountryDialog selectCountryDialog = new SelectCountryDialog(PhoneLoginActivity.this);
|
||||
selectCountryDialog.setOnToVipListener(new SelectCountryDialog.OnToTypeListener() {
|
||||
@Override
|
||||
public void toType(CountryBean type) {
|
||||
countryBean = type;
|
||||
changeArea();
|
||||
DataUtils.set(PhoneLoginActivity.this, IMUIKitConfig.LOC_COUNTRY_CODE, type.getAreaCodeName());
|
||||
}
|
||||
});
|
||||
selectCountryDialog.show();
|
||||
}
|
||||
});
|
||||
activityWelcomeBinding.nextIv.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
|
||||
@@ -157,19 +157,19 @@ public class RegisterActivity extends BaseActivity {
|
||||
setPrivacyContent(activityWelcomeBinding.mobileTipsTv);
|
||||
|
||||
countryBean = DataUtils.getLocCountry(RegisterActivity.this);
|
||||
// changeArea();
|
||||
// activityWelcomeBinding.areaTv.setOnClickListener(v -> {
|
||||
// SelectCountryDialog selectCountryDialog = new SelectCountryDialog(RegisterActivity.this);
|
||||
// selectCountryDialog.setOnToVipListener(new SelectCountryDialog.OnToTypeListener() {
|
||||
// @Override
|
||||
// public void toType(CountryBean type) {
|
||||
// countryBean = type;
|
||||
// changeArea();
|
||||
// DataUtils.set(RegisterActivity.this, IMUIKitConfig.LOC_COUNTRY_CODE, type.getAreaCodeName());
|
||||
// }
|
||||
// });
|
||||
// selectCountryDialog.show();
|
||||
// });
|
||||
changeArea();
|
||||
activityWelcomeBinding.areaTv.setOnClickListener(v -> {
|
||||
SelectCountryDialog selectCountryDialog = new SelectCountryDialog(RegisterActivity.this);
|
||||
selectCountryDialog.setOnToVipListener(new SelectCountryDialog.OnToTypeListener() {
|
||||
@Override
|
||||
public void toType(CountryBean type) {
|
||||
countryBean = type;
|
||||
changeArea();
|
||||
DataUtils.set(RegisterActivity.this, IMUIKitConfig.LOC_COUNTRY_CODE, type.getAreaCodeName());
|
||||
}
|
||||
});
|
||||
selectCountryDialog.show();
|
||||
});
|
||||
activityWelcomeBinding.nextIv.setOnClickListener(v -> {
|
||||
if(lastTime>0){
|
||||
if(System.currentTimeMillis()-lastTime<2000){
|
||||
|
||||
@@ -57,6 +57,7 @@
|
||||
android:id="@+id/area_tv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/dp_50"
|
||||
android:drawableRight="@mipmap/select_county_img"
|
||||
android:gravity="center_vertical"
|
||||
android:text="+86"
|
||||
android:textColor="@color/color_333333"
|
||||
|
||||
@@ -60,6 +60,7 @@
|
||||
android:id="@+id/area_tv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/dp_50"
|
||||
android:drawableRight="@mipmap/select_county_img"
|
||||
android:gravity="center_vertical"
|
||||
android:text="+86"
|
||||
android:textColor="@color/color_333333"
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@color/ic_launcher_background"/>
|
||||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
||||
</adaptive-icon>
|
||||
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@color/ic_launcher_background"/>
|
||||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
||||
</adaptive-icon>
|
||||
@@ -49,12 +49,12 @@ public interface ApiService {
|
||||
/**
|
||||
* 正式环境
|
||||
*/
|
||||
String URL = "https://api.letschat2023.com/";
|
||||
String URL = "https://api.letschat2023.com/";
|
||||
|
||||
/**
|
||||
* 测试环境
|
||||
*/
|
||||
//String URL = "https://api-test.letschat2023.com/";
|
||||
// String URL = "https://api-test.letschat2023.com/";
|
||||
|
||||
|
||||
String SUBSTATIONID = "1703655363476242434";
|
||||
|
||||
Reference in New Issue
Block a user